@pie-lib/config-ui 13.0.4-next.31 → 13.0.4-next.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/CHANGELOG.json +32 -0
- package/CHANGELOG.md +2419 -0
- package/LICENSE.md +5 -0
- package/lib/alert-dialog.js +68 -0
- package/lib/alert-dialog.js.map +1 -0
- package/lib/checkbox.js +84 -0
- package/lib/checkbox.js.map +1 -0
- package/lib/choice-configuration/feedback-menu.js +129 -0
- package/lib/choice-configuration/feedback-menu.js.map +1 -0
- package/lib/choice-configuration/index.js +381 -0
- package/lib/choice-configuration/index.js.map +1 -0
- package/lib/choice-utils.js +42 -0
- package/lib/choice-utils.js.map +1 -0
- package/lib/feedback-config/feedback-selector.js +155 -0
- package/lib/feedback-config/feedback-selector.js.map +1 -0
- package/lib/feedback-config/group.js +61 -0
- package/lib/feedback-config/group.js.map +1 -0
- package/lib/feedback-config/index.js +146 -0
- package/lib/feedback-config/index.js.map +1 -0
- package/lib/form-section.js +44 -0
- package/lib/form-section.js.map +1 -0
- package/lib/help.js +106 -0
- package/lib/help.js.map +1 -0
- package/lib/index.js +186 -0
- package/lib/index.js.map +1 -0
- package/lib/input.js +106 -0
- package/lib/input.js.map +1 -0
- package/lib/inputs.js +105 -0
- package/lib/inputs.js.map +1 -0
- package/lib/langs.js +136 -0
- package/lib/langs.js.map +1 -0
- package/lib/layout/config-layout.js +137 -0
- package/lib/layout/config-layout.js.map +1 -0
- package/lib/layout/index.js +21 -0
- package/lib/layout/index.js.map +1 -0
- package/lib/layout/layout-contents.js +160 -0
- package/lib/layout/layout-contents.js.map +1 -0
- package/lib/layout/settings-box.js +57 -0
- package/lib/layout/settings-box.js.map +1 -0
- package/lib/mui-box/index.js +63 -0
- package/lib/mui-box/index.js.map +1 -0
- package/lib/number-text-field-custom.js +376 -0
- package/lib/number-text-field-custom.js.map +1 -0
- package/lib/number-text-field.js +229 -0
- package/lib/number-text-field.js.map +1 -0
- package/lib/radio-with-label.js +48 -0
- package/lib/radio-with-label.js.map +1 -0
- package/lib/settings/display-size.js +61 -0
- package/lib/settings/display-size.js.map +1 -0
- package/lib/settings/index.js +110 -0
- package/lib/settings/index.js.map +1 -0
- package/lib/settings/panel.js +392 -0
- package/lib/settings/panel.js.map +1 -0
- package/lib/settings/settings-radio-label.js +51 -0
- package/lib/settings/settings-radio-label.js.map +1 -0
- package/lib/settings/toggle.js +63 -0
- package/lib/settings/toggle.js.map +1 -0
- package/lib/tabs/index.js +75 -0
- package/lib/tabs/index.js.map +1 -0
- package/lib/tags-input/index.js +149 -0
- package/lib/tags-input/index.js.map +1 -0
- package/lib/two-choice.js +136 -0
- package/lib/two-choice.js.map +1 -0
- package/lib/with-stateful-model.js +61 -0
- package/lib/with-stateful-model.js.map +1 -0
- package/package.json +19 -33
- package/src/__tests__/alert-dialog.test.jsx +183 -0
- package/src/__tests__/checkbox.test.jsx +152 -0
- package/src/__tests__/choice-utils.test.js +12 -0
- package/src/__tests__/form-section.test.jsx +328 -0
- package/src/__tests__/help.test.jsx +184 -0
- package/src/__tests__/input.test.jsx +156 -0
- package/src/__tests__/langs.test.jsx +376 -0
- package/src/__tests__/number-text-field-custom.test.jsx +255 -0
- package/src/__tests__/number-text-field.test.jsx +263 -0
- package/src/__tests__/radio-with-label.test.jsx +155 -0
- package/src/__tests__/settings-panel.test.js +187 -0
- package/src/__tests__/settings.test.jsx +452 -0
- package/src/__tests__/tabs.test.jsx +188 -0
- package/src/__tests__/two-choice.test.js +110 -0
- package/src/__tests__/with-stateful-model.test.jsx +139 -0
- package/src/alert-dialog.jsx +75 -0
- package/src/checkbox.jsx +61 -0
- package/src/choice-configuration/__tests__/feedback-menu.test.jsx +151 -0
- package/src/choice-configuration/__tests__/index.test.jsx +234 -0
- package/src/choice-configuration/feedback-menu.jsx +96 -0
- package/src/choice-configuration/index.jsx +357 -0
- package/src/choice-utils.js +30 -0
- package/src/feedback-config/__tests__/feedback-config.test.jsx +141 -0
- package/src/feedback-config/__tests__/feedback-selector.test.jsx +97 -0
- package/src/feedback-config/feedback-selector.jsx +112 -0
- package/src/feedback-config/group.jsx +51 -0
- package/src/feedback-config/index.jsx +111 -0
- package/src/form-section.jsx +31 -0
- package/src/help.jsx +79 -0
- package/src/index.js +55 -0
- package/src/input.jsx +72 -0
- package/src/inputs.jsx +69 -0
- package/src/langs.jsx +111 -0
- package/src/layout/__tests__/config.layout.test.jsx +59 -0
- package/src/layout/__tests__/layout-content.test.jsx +3 -0
- package/src/layout/config-layout.jsx +103 -0
- package/src/layout/index.js +4 -0
- package/src/layout/layout-contents.jsx +117 -0
- package/src/layout/settings-box.jsx +32 -0
- package/src/mui-box/index.jsx +56 -0
- package/src/number-text-field-custom.jsx +333 -0
- package/src/number-text-field.jsx +215 -0
- package/src/radio-with-label.jsx +30 -0
- package/src/settings/display-size.jsx +53 -0
- package/src/settings/index.js +83 -0
- package/src/settings/panel.jsx +333 -0
- package/src/settings/settings-radio-label.jsx +32 -0
- package/src/settings/toggle.jsx +46 -0
- package/src/tabs/index.jsx +47 -0
- package/src/tags-input/__tests__/index.test.jsx +113 -0
- package/src/tags-input/index.jsx +116 -0
- package/src/two-choice.jsx +90 -0
- package/src/with-stateful-model.jsx +36 -0
- package/dist/_virtual/_rolldown/runtime.js +0 -11
- package/dist/alert-dialog.d.ts +0 -44
- package/dist/alert-dialog.js +0 -47
- package/dist/checkbox.d.ts +0 -34
- package/dist/checkbox.js +0 -57
- package/dist/choice-configuration/feedback-menu.d.ts +0 -32
- package/dist/choice-configuration/feedback-menu.js +0 -85
- package/dist/choice-configuration/index.d.ts +0 -62
- package/dist/choice-configuration/index.js +0 -240
- package/dist/choice-utils.d.ts +0 -21
- package/dist/choice-utils.js +0 -15
- package/dist/feedback-config/feedback-selector.d.ts +0 -33
- package/dist/feedback-config/feedback-selector.js +0 -92
- package/dist/feedback-config/group.d.ts +0 -21
- package/dist/feedback-config/group.js +0 -33
- package/dist/feedback-config/index.d.ts +0 -48
- package/dist/feedback-config/index.js +0 -96
- package/dist/form-section.d.ts +0 -25
- package/dist/form-section.js +0 -25
- package/dist/fraction-to-number.d.ts +0 -7
- package/dist/fraction-to-number.js +0 -9
- package/dist/help.d.ts +0 -41
- package/dist/help.js +0 -61
- package/dist/index.d.ts +0 -31
- package/dist/index.js +0 -34
- package/dist/input.d.ts +0 -29
- package/dist/input.js +0 -65
- package/dist/inputs.d.ts +0 -63
- package/dist/inputs.js +0 -70
- package/dist/langs.d.ts +0 -41
- package/dist/langs.js +0 -76
- package/dist/layout/config-layout.d.ts +0 -10
- package/dist/layout/config-layout.js +0 -75
- package/dist/layout/index.d.ts +0 -11
- package/dist/layout/index.js +0 -10
- package/dist/layout/layout-contents.d.ts +0 -21
- package/dist/layout/layout-contents.js +0 -70
- package/dist/layout/settings-box.d.ts +0 -19
- package/dist/layout/settings-box.js +0 -31
- package/dist/mui-box/index.d.ts +0 -21
- package/dist/mui-box/index.js +0 -47
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -7
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
- package/dist/node_modules/.bun/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- package/dist/node_modules/.bun/react-measure@2.5.2_6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js +0 -122
- package/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -276
- package/dist/number-text-field-custom.d.ts +0 -51
- package/dist/number-text-field-custom.js +0 -192
- package/dist/number-text-field.d.ts +0 -47
- package/dist/number-text-field.js +0 -122
- package/dist/radio-with-label.d.ts +0 -25
- package/dist/radio-with-label.js +0 -27
- package/dist/settings/display-size.d.ts +0 -26
- package/dist/settings/display-size.js +0 -45
- package/dist/settings/index.d.ts +0 -45
- package/dist/settings/index.js +0 -63
- package/dist/settings/panel.d.ts +0 -27
- package/dist/settings/panel.js +0 -201
- package/dist/settings/settings-radio-label.d.ts +0 -25
- package/dist/settings/settings-radio-label.js +0 -29
- package/dist/settings/toggle.d.ts +0 -25
- package/dist/settings/toggle.js +0 -33
- package/dist/tabs/index.d.ts +0 -22
- package/dist/tabs/index.js +0 -39
- package/dist/tags-input/index.d.ts +0 -21
- package/dist/tags-input/index.js +0 -83
- package/dist/two-choice.d.ts +0 -43
- package/dist/two-choice.js +0 -79
- package/dist/with-stateful-model.d.ts +0 -42
- package/dist/with-stateful-model.js +0 -32
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import e from "../tabs/index.js";
|
|
2
|
-
import t from "react";
|
|
3
|
-
import n from "prop-types";
|
|
4
|
-
import { styled as r } from "@mui/material/styles";
|
|
5
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
//#region src/layout/layout-contents.tsx
|
|
7
|
-
var o = r("div")(() => ({
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexDirection: "column",
|
|
10
|
-
position: "relative"
|
|
11
|
-
})), s = r("div")(() => ({
|
|
12
|
-
display: "flex",
|
|
13
|
-
justifyContent: "space-between"
|
|
14
|
-
})), c = r("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), l = r("div")(() => ({ flex: "1" })), u = r("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), d = class extends t.Component {
|
|
15
|
-
static propTypes = {
|
|
16
|
-
mode: n.oneOf(["tabbed", "inline"]),
|
|
17
|
-
secondary: n.oneOfType([n.arrayOf(n.node), n.node]),
|
|
18
|
-
children: n.oneOfType([n.arrayOf(n.node), n.node]),
|
|
19
|
-
dimensions: n.object
|
|
20
|
-
};
|
|
21
|
-
getConfiguration = () => {
|
|
22
|
-
let { secondary: e } = this.props;
|
|
23
|
-
return e?.props?.configuration || e?.props?.children?.props?.configuration || void 0;
|
|
24
|
-
};
|
|
25
|
-
render() {
|
|
26
|
-
let { mode: t, secondary: n, children: r, dimensions: d } = this.props, { minHeight: f, minWidth: p, maxHeight: m, maxWidth: h } = d || {}, g = this.getConfiguration(), _ = Object.entries(g || {}).some(([, e]) => !!e?.settings);
|
|
27
|
-
if (!_) try {
|
|
28
|
-
_ = JSON.stringify(g)?.match(/settings":true/)?.length;
|
|
29
|
-
} catch (e) {
|
|
30
|
-
console.log(e.toString());
|
|
31
|
-
}
|
|
32
|
-
return /* @__PURE__ */ a(o, {
|
|
33
|
-
style: {
|
|
34
|
-
minHeight: f,
|
|
35
|
-
minWidth: p,
|
|
36
|
-
maxHeight: m,
|
|
37
|
-
maxWidth: h
|
|
38
|
-
},
|
|
39
|
-
children: [
|
|
40
|
-
t === "inline" && /* @__PURE__ */ a(s, { children: [/* @__PURE__ */ i(l, {
|
|
41
|
-
className: "design-container",
|
|
42
|
-
children: r
|
|
43
|
-
}), _ && /* @__PURE__ */ i(u, {
|
|
44
|
-
className: "settings-container",
|
|
45
|
-
children: n
|
|
46
|
-
})] }),
|
|
47
|
-
t === "tabbed" && _ && /* @__PURE__ */ a(e, {
|
|
48
|
-
onChange: this.onTabsChange,
|
|
49
|
-
contentClassName: "content-container",
|
|
50
|
-
indicatorColor: "primary",
|
|
51
|
-
children: [/* @__PURE__ */ i(c, {
|
|
52
|
-
title: "Design",
|
|
53
|
-
className: "design-container",
|
|
54
|
-
children: r
|
|
55
|
-
}), /* @__PURE__ */ i(c, {
|
|
56
|
-
title: "Settings",
|
|
57
|
-
className: "settings-container",
|
|
58
|
-
children: n
|
|
59
|
-
})]
|
|
60
|
-
}),
|
|
61
|
-
t === "tabbed" && !_ && /* @__PURE__ */ i(c, {
|
|
62
|
-
className: "design-container",
|
|
63
|
-
children: r
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
export { d as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/config-ui/src/layout/settings-box.jsx
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
export declare class SettingsBox extends React.Component {
|
|
12
|
-
static propTypes: {
|
|
13
|
-
className: PropTypes.Requireable<string>;
|
|
14
|
-
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
15
|
-
};
|
|
16
|
-
static defaultProps: {};
|
|
17
|
-
render(): React.JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
export default SettingsBox;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import t from "prop-types";
|
|
3
|
-
import { styled as n } from "@mui/material/styles";
|
|
4
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
//#region src/layout/settings-box.tsx
|
|
6
|
-
var i = n("div")(({ theme: e }) => ({
|
|
7
|
-
backgroundColor: e.palette.background.paper,
|
|
8
|
-
border: `2px solid ${e.palette.grey[200]}`,
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column",
|
|
11
|
-
justifyContent: "flex-start",
|
|
12
|
-
minWidth: "275px",
|
|
13
|
-
maxWidth: "300px",
|
|
14
|
-
padding: "20px 4px 4px 20px",
|
|
15
|
-
zIndex: 99
|
|
16
|
-
})), a = class extends e.Component {
|
|
17
|
-
static propTypes = {
|
|
18
|
-
className: t.string,
|
|
19
|
-
children: t.oneOfType([t.arrayOf(t.node), t.node]).isRequired
|
|
20
|
-
};
|
|
21
|
-
static defaultProps = {};
|
|
22
|
-
render() {
|
|
23
|
-
let { className: e, children: t } = this.props;
|
|
24
|
-
return /* @__PURE__ */ r(i, {
|
|
25
|
-
className: e,
|
|
26
|
-
children: t
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { a as default };
|
package/dist/mui-box/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/config-ui/src/mui-box/index.jsx
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
declare const MuiBox: {
|
|
12
|
-
({ children, focused }: {
|
|
13
|
-
children: any;
|
|
14
|
-
focused: any;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
propTypes: {
|
|
17
|
-
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
18
|
-
focused: PropTypes.Validator<boolean>;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default MuiBox;
|
package/dist/mui-box/index.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import e from "prop-types";
|
|
3
|
-
import { styled as t } from "@mui/material/styles";
|
|
4
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
-
import r from "debug";
|
|
6
|
-
//#region src/mui-box/index.tsx
|
|
7
|
-
var i = r("pie-elements:config-ui:mui-box"), a = t("div")(({ theme: e, focused: t }) => {
|
|
8
|
-
let n = e.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
9
|
-
return i(e.palette.primary[e.palette.mode || "light"]), {
|
|
10
|
-
paddingTop: e.spacing(1),
|
|
11
|
-
paddingBottom: e.spacing(1),
|
|
12
|
-
position: "relative",
|
|
13
|
-
"&:before": {
|
|
14
|
-
left: 0,
|
|
15
|
-
right: 0,
|
|
16
|
-
bottom: 0,
|
|
17
|
-
height: "1px",
|
|
18
|
-
content: "\"\"",
|
|
19
|
-
position: "absolute",
|
|
20
|
-
transition: "background-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
21
|
-
pointerEvents: "none",
|
|
22
|
-
backgroundColor: n
|
|
23
|
-
},
|
|
24
|
-
"&:hover:before": { height: "2px" },
|
|
25
|
-
"&:after": {
|
|
26
|
-
left: 0,
|
|
27
|
-
right: 0,
|
|
28
|
-
bottom: 0,
|
|
29
|
-
height: "2px",
|
|
30
|
-
content: "\"\"",
|
|
31
|
-
position: "absolute",
|
|
32
|
-
transform: t ? "scaleX(1)" : "scaleX(0)",
|
|
33
|
-
transition: "transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms",
|
|
34
|
-
pointerEvents: "none",
|
|
35
|
-
backgroundColor: e.palette.primary[e.palette.mode]
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}), o = ({ children: e, focused: t }) => /* @__PURE__ */ n(a, {
|
|
39
|
-
focused: t,
|
|
40
|
-
children: e
|
|
41
|
-
});
|
|
42
|
-
o.propTypes = {
|
|
43
|
-
children: e.oneOfType([e.arrayOf(e.node), e.node]).isRequired,
|
|
44
|
-
focused: e.bool.isRequired
|
|
45
|
-
};
|
|
46
|
-
//#endregion
|
|
47
|
-
export { o as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
2
|
-
function e() {
|
|
3
|
-
return e = Object.assign ? Object.assign.bind() : function(e) {
|
|
4
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
5
|
-
var n = arguments[t];
|
|
6
|
-
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7
|
-
}
|
|
8
|
-
return e;
|
|
9
|
-
}, e.apply(null, arguments);
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { e as _extends };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { _setPrototypeOf as e } from "./setPrototypeOf.js";
|
|
2
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
3
|
-
function t(t, n) {
|
|
4
|
-
t.prototype = Object.create(n.prototype), t.prototype.constructor = t, e(t, n);
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
export { t as _inheritsLoose };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
if (e == null) return {};
|
|
4
|
-
var n = {};
|
|
5
|
-
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
6
|
-
if (t.indexOf(r) !== -1) continue;
|
|
7
|
-
n[r] = e[r];
|
|
8
|
-
}
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { e as _objectWithoutPropertiesLoose };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
2
|
-
function e(t, n) {
|
|
3
|
-
return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
4
|
-
return e.__proto__ = t, e;
|
|
5
|
-
}, e(t, n);
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as _setPrototypeOf };
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { _extends as e } from "../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/extends.js";
|
|
2
|
-
import { _objectWithoutPropertiesLoose as t } from "../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
3
|
-
import { _inheritsLoose as n } from "../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
4
|
-
import r from "../../../../resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
5
|
-
import { Component as i, createElement as a } from "react";
|
|
6
|
-
import o from "prop-types";
|
|
7
|
-
//#region ../../../node_modules/.bun/react-measure@2.5.2+6dbf9a050bc9aadb/node_modules/react-measure/dist/index.esm.js
|
|
8
|
-
var s = [
|
|
9
|
-
"client",
|
|
10
|
-
"offset",
|
|
11
|
-
"scroll",
|
|
12
|
-
"bounds",
|
|
13
|
-
"margin"
|
|
14
|
-
];
|
|
15
|
-
function c(e) {
|
|
16
|
-
var t = [];
|
|
17
|
-
return s.forEach(function(n) {
|
|
18
|
-
e[n] && t.push(n);
|
|
19
|
-
}), t;
|
|
20
|
-
}
|
|
21
|
-
function l(e, t) {
|
|
22
|
-
var n = {};
|
|
23
|
-
if (t.indexOf("client") > -1 && (n.client = {
|
|
24
|
-
top: e.clientTop,
|
|
25
|
-
left: e.clientLeft,
|
|
26
|
-
width: e.clientWidth,
|
|
27
|
-
height: e.clientHeight
|
|
28
|
-
}), t.indexOf("offset") > -1 && (n.offset = {
|
|
29
|
-
top: e.offsetTop,
|
|
30
|
-
left: e.offsetLeft,
|
|
31
|
-
width: e.offsetWidth,
|
|
32
|
-
height: e.offsetHeight
|
|
33
|
-
}), t.indexOf("scroll") > -1 && (n.scroll = {
|
|
34
|
-
top: e.scrollTop,
|
|
35
|
-
left: e.scrollLeft,
|
|
36
|
-
width: e.scrollWidth,
|
|
37
|
-
height: e.scrollHeight
|
|
38
|
-
}), t.indexOf("bounds") > -1) {
|
|
39
|
-
var r = e.getBoundingClientRect();
|
|
40
|
-
n.bounds = {
|
|
41
|
-
top: r.top,
|
|
42
|
-
right: r.right,
|
|
43
|
-
bottom: r.bottom,
|
|
44
|
-
left: r.left,
|
|
45
|
-
width: r.width,
|
|
46
|
-
height: r.height
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
if (t.indexOf("margin") > -1) {
|
|
50
|
-
var i = getComputedStyle(e);
|
|
51
|
-
n.margin = {
|
|
52
|
-
top: i ? parseInt(i.marginTop) : 0,
|
|
53
|
-
right: i ? parseInt(i.marginRight) : 0,
|
|
54
|
-
bottom: i ? parseInt(i.marginBottom) : 0,
|
|
55
|
-
left: i ? parseInt(i.marginLeft) : 0
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
return n;
|
|
59
|
-
}
|
|
60
|
-
function u(e) {
|
|
61
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
62
|
-
}
|
|
63
|
-
function d(s) {
|
|
64
|
-
return function(d) {
|
|
65
|
-
var f, p;
|
|
66
|
-
return p = f = /*#__PURE__*/ function(i) {
|
|
67
|
-
n(o, i);
|
|
68
|
-
function o() {
|
|
69
|
-
var e, t = [...arguments];
|
|
70
|
-
return e = i.call.apply(i, [this].concat(t)) || this, e.state = { contentRect: {
|
|
71
|
-
entry: {},
|
|
72
|
-
client: {},
|
|
73
|
-
offset: {},
|
|
74
|
-
scroll: {},
|
|
75
|
-
bounds: {},
|
|
76
|
-
margin: {}
|
|
77
|
-
} }, e._animationFrameID = null, e._resizeObserver = null, e._node = null, e._window = null, e.measure = function(t) {
|
|
78
|
-
var n = l(e._node, s || c(e.props));
|
|
79
|
-
t && (n.entry = t[0].contentRect), e._animationFrameID = e._window.requestAnimationFrame(function() {
|
|
80
|
-
e._resizeObserver !== null && (e.setState({ contentRect: n }), typeof e.props.onResize == "function" && e.props.onResize(n));
|
|
81
|
-
});
|
|
82
|
-
}, e._handleRef = function(t) {
|
|
83
|
-
e._resizeObserver !== null && e._node !== null && e._resizeObserver.unobserve(e._node), e._node = t, e._window = u(e._node);
|
|
84
|
-
var n = e.props.innerRef;
|
|
85
|
-
n && (typeof n == "function" ? n(e._node) : n.current = e._node), e._resizeObserver !== null && e._node !== null && e._resizeObserver.observe(e._node);
|
|
86
|
-
}, e;
|
|
87
|
-
}
|
|
88
|
-
var f = o.prototype;
|
|
89
|
-
return f.componentDidMount = function() {
|
|
90
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new r(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(l(this._node, s || c(this.props))));
|
|
91
|
-
}, f.componentWillUnmount = function() {
|
|
92
|
-
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
93
|
-
}, f.render = function() {
|
|
94
|
-
var n = this.props;
|
|
95
|
-
return n.innerRef, n.onResize, a(d, e({}, t(n, ["innerRef", "onResize"]), {
|
|
96
|
-
measureRef: this._handleRef,
|
|
97
|
-
measure: this.measure,
|
|
98
|
-
contentRect: this.state.contentRect
|
|
99
|
-
}));
|
|
100
|
-
}, o;
|
|
101
|
-
}(i), f.propTypes = {
|
|
102
|
-
client: o.bool,
|
|
103
|
-
offset: o.bool,
|
|
104
|
-
scroll: o.bool,
|
|
105
|
-
bounds: o.bool,
|
|
106
|
-
margin: o.bool,
|
|
107
|
-
innerRef: o.oneOfType([o.object, o.func]),
|
|
108
|
-
onResize: o.func
|
|
109
|
-
}, p;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
var f = d()(function(e) {
|
|
113
|
-
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
114
|
-
return i({
|
|
115
|
-
measure: t,
|
|
116
|
-
measureRef: n,
|
|
117
|
-
contentRect: r
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
f.displayName = "Measure", f.propTypes.children = o.func;
|
|
121
|
-
//#endregion
|
|
122
|
-
export { f as default, d as withContentRect };
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
2
|
-
var e = (function() {
|
|
3
|
-
if (typeof Map < "u") return Map;
|
|
4
|
-
function e(e, t) {
|
|
5
|
-
var n = -1;
|
|
6
|
-
return e.some(function(e, r) {
|
|
7
|
-
return e[0] === t ? (n = r, !0) : !1;
|
|
8
|
-
}), n;
|
|
9
|
-
}
|
|
10
|
-
return function() {
|
|
11
|
-
function t() {
|
|
12
|
-
this.__entries__ = [];
|
|
13
|
-
}
|
|
14
|
-
return Object.defineProperty(t.prototype, "size", {
|
|
15
|
-
get: function() {
|
|
16
|
-
return this.__entries__.length;
|
|
17
|
-
},
|
|
18
|
-
enumerable: !0,
|
|
19
|
-
configurable: !0
|
|
20
|
-
}), t.prototype.get = function(t) {
|
|
21
|
-
var n = e(this.__entries__, t), r = this.__entries__[n];
|
|
22
|
-
return r && r[1];
|
|
23
|
-
}, t.prototype.set = function(t, n) {
|
|
24
|
-
var r = e(this.__entries__, t);
|
|
25
|
-
~r ? this.__entries__[r][1] = n : this.__entries__.push([t, n]);
|
|
26
|
-
}, t.prototype.delete = function(t) {
|
|
27
|
-
var n = this.__entries__, r = e(n, t);
|
|
28
|
-
~r && n.splice(r, 1);
|
|
29
|
-
}, t.prototype.has = function(t) {
|
|
30
|
-
return !!~e(this.__entries__, t);
|
|
31
|
-
}, t.prototype.clear = function() {
|
|
32
|
-
this.__entries__.splice(0);
|
|
33
|
-
}, t.prototype.forEach = function(e, t) {
|
|
34
|
-
t === void 0 && (t = null);
|
|
35
|
-
for (var n = 0, r = this.__entries__; n < r.length; n++) {
|
|
36
|
-
var i = r[n];
|
|
37
|
-
e.call(t, i[1], i[0]);
|
|
38
|
-
}
|
|
39
|
-
}, t;
|
|
40
|
-
}();
|
|
41
|
-
})(), t = typeof window < "u" && typeof document < "u" && window.document === document, n = (function() {
|
|
42
|
-
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
43
|
-
})(), r = (function() {
|
|
44
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(n) : function(e) {
|
|
45
|
-
return setTimeout(function() {
|
|
46
|
-
return e(Date.now());
|
|
47
|
-
}, 1e3 / 60);
|
|
48
|
-
};
|
|
49
|
-
})(), i = 2;
|
|
50
|
-
function a(e, t) {
|
|
51
|
-
var n = !1, a = !1, o = 0;
|
|
52
|
-
function s() {
|
|
53
|
-
n && (n = !1, e()), a && l();
|
|
54
|
-
}
|
|
55
|
-
function c() {
|
|
56
|
-
r(s);
|
|
57
|
-
}
|
|
58
|
-
function l() {
|
|
59
|
-
var e = Date.now();
|
|
60
|
-
if (n) {
|
|
61
|
-
if (e - o < i) return;
|
|
62
|
-
a = !0;
|
|
63
|
-
} else n = !0, a = !1, setTimeout(c, t);
|
|
64
|
-
o = e;
|
|
65
|
-
}
|
|
66
|
-
return l;
|
|
67
|
-
}
|
|
68
|
-
var o = 20, s = [
|
|
69
|
-
"top",
|
|
70
|
-
"right",
|
|
71
|
-
"bottom",
|
|
72
|
-
"left",
|
|
73
|
-
"width",
|
|
74
|
-
"height",
|
|
75
|
-
"size",
|
|
76
|
-
"weight"
|
|
77
|
-
], c = typeof MutationObserver < "u", l = function() {
|
|
78
|
-
function e() {
|
|
79
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = a(this.refresh.bind(this), o);
|
|
80
|
-
}
|
|
81
|
-
return e.prototype.addObserver = function(e) {
|
|
82
|
-
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
83
|
-
}, e.prototype.removeObserver = function(e) {
|
|
84
|
-
var t = this.observers_, n = t.indexOf(e);
|
|
85
|
-
~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_();
|
|
86
|
-
}, e.prototype.refresh = function() {
|
|
87
|
-
this.updateObservers_() && this.refresh();
|
|
88
|
-
}, e.prototype.updateObservers_ = function() {
|
|
89
|
-
var e = this.observers_.filter(function(e) {
|
|
90
|
-
return e.gatherActive(), e.hasActive();
|
|
91
|
-
});
|
|
92
|
-
return e.forEach(function(e) {
|
|
93
|
-
return e.broadcastActive();
|
|
94
|
-
}), e.length > 0;
|
|
95
|
-
}, e.prototype.connect_ = function() {
|
|
96
|
-
!t || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), c ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
97
|
-
attributes: !0,
|
|
98
|
-
childList: !0,
|
|
99
|
-
characterData: !0,
|
|
100
|
-
subtree: !0
|
|
101
|
-
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
102
|
-
}, e.prototype.disconnect_ = function() {
|
|
103
|
-
!t || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
104
|
-
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
105
|
-
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
106
|
-
s.some(function(e) {
|
|
107
|
-
return !!~n.indexOf(e);
|
|
108
|
-
}) && this.refresh();
|
|
109
|
-
}, e.getInstance = function() {
|
|
110
|
-
return this.instance_ ||= new e(), this.instance_;
|
|
111
|
-
}, e.instance_ = null, e;
|
|
112
|
-
}(), u = (function(e, t) {
|
|
113
|
-
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
114
|
-
var i = r[n];
|
|
115
|
-
Object.defineProperty(e, i, {
|
|
116
|
-
value: t[i],
|
|
117
|
-
enumerable: !1,
|
|
118
|
-
writable: !1,
|
|
119
|
-
configurable: !0
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
return e;
|
|
123
|
-
}), d = (function(e) {
|
|
124
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView || n;
|
|
125
|
-
}), f = S(0, 0, 0, 0);
|
|
126
|
-
function p(e) {
|
|
127
|
-
return parseFloat(e) || 0;
|
|
128
|
-
}
|
|
129
|
-
function m(e) {
|
|
130
|
-
return [...arguments].slice(1).reduce(function(t, n) {
|
|
131
|
-
var r = e["border-" + n + "-width"];
|
|
132
|
-
return t + p(r);
|
|
133
|
-
}, 0);
|
|
134
|
-
}
|
|
135
|
-
function h(e) {
|
|
136
|
-
for (var t = [
|
|
137
|
-
"top",
|
|
138
|
-
"right",
|
|
139
|
-
"bottom",
|
|
140
|
-
"left"
|
|
141
|
-
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
142
|
-
var a = i[r], o = e["padding-" + a];
|
|
143
|
-
n[a] = p(o);
|
|
144
|
-
}
|
|
145
|
-
return n;
|
|
146
|
-
}
|
|
147
|
-
function g(e) {
|
|
148
|
-
var t = e.getBBox();
|
|
149
|
-
return S(0, 0, t.width, t.height);
|
|
150
|
-
}
|
|
151
|
-
function _(e) {
|
|
152
|
-
var t = e.clientWidth, n = e.clientHeight;
|
|
153
|
-
if (!t && !n) return f;
|
|
154
|
-
var r = d(e).getComputedStyle(e), i = h(r), a = i.left + i.right, o = i.top + i.bottom, s = p(r.width), c = p(r.height);
|
|
155
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= m(r, "left", "right") + a), Math.round(c + o) !== n && (c -= m(r, "top", "bottom") + o)), !y(e)) {
|
|
156
|
-
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
157
|
-
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
158
|
-
}
|
|
159
|
-
return S(i.left, i.top, s, c);
|
|
160
|
-
}
|
|
161
|
-
var v = (function() {
|
|
162
|
-
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
163
|
-
return e instanceof d(e).SVGGraphicsElement;
|
|
164
|
-
} : function(e) {
|
|
165
|
-
return e instanceof d(e).SVGElement && typeof e.getBBox == "function";
|
|
166
|
-
};
|
|
167
|
-
})();
|
|
168
|
-
function y(e) {
|
|
169
|
-
return e === d(e).document.documentElement;
|
|
170
|
-
}
|
|
171
|
-
function b(e) {
|
|
172
|
-
return t ? v(e) ? g(e) : _(e) : f;
|
|
173
|
-
}
|
|
174
|
-
function x(e) {
|
|
175
|
-
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
176
|
-
return u(a, {
|
|
177
|
-
x: t,
|
|
178
|
-
y: n,
|
|
179
|
-
width: r,
|
|
180
|
-
height: i,
|
|
181
|
-
top: n,
|
|
182
|
-
right: t + r,
|
|
183
|
-
bottom: i + n,
|
|
184
|
-
left: t
|
|
185
|
-
}), a;
|
|
186
|
-
}
|
|
187
|
-
function S(e, t, n, r) {
|
|
188
|
-
return {
|
|
189
|
-
x: e,
|
|
190
|
-
y: t,
|
|
191
|
-
width: n,
|
|
192
|
-
height: r
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
var C = function() {
|
|
196
|
-
function e(e) {
|
|
197
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = S(0, 0, 0, 0), this.target = e;
|
|
198
|
-
}
|
|
199
|
-
return e.prototype.isActive = function() {
|
|
200
|
-
var e = b(this.target);
|
|
201
|
-
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
202
|
-
}, e.prototype.broadcastRect = function() {
|
|
203
|
-
var e = this.contentRect_;
|
|
204
|
-
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
205
|
-
}, e;
|
|
206
|
-
}(), w = function() {
|
|
207
|
-
function e(e, t) {
|
|
208
|
-
var n = x(t);
|
|
209
|
-
u(this, {
|
|
210
|
-
target: e,
|
|
211
|
-
contentRect: n
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
return e;
|
|
215
|
-
}(), T = function() {
|
|
216
|
-
function t(t, n, r) {
|
|
217
|
-
if (this.activeObservations_ = [], this.observations_ = new e(), typeof t != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
218
|
-
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
|
|
219
|
-
}
|
|
220
|
-
return t.prototype.observe = function(e) {
|
|
221
|
-
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
222
|
-
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
223
|
-
if (!(e instanceof d(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
224
|
-
var t = this.observations_;
|
|
225
|
-
t.has(e) || (t.set(e, new C(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
226
|
-
}
|
|
227
|
-
}, t.prototype.unobserve = function(e) {
|
|
228
|
-
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
229
|
-
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
230
|
-
if (!(e instanceof d(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
231
|
-
var t = this.observations_;
|
|
232
|
-
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
233
|
-
}
|
|
234
|
-
}, t.prototype.disconnect = function() {
|
|
235
|
-
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
236
|
-
}, t.prototype.gatherActive = function() {
|
|
237
|
-
var e = this;
|
|
238
|
-
this.clearActive(), this.observations_.forEach(function(t) {
|
|
239
|
-
t.isActive() && e.activeObservations_.push(t);
|
|
240
|
-
});
|
|
241
|
-
}, t.prototype.broadcastActive = function() {
|
|
242
|
-
if (this.hasActive()) {
|
|
243
|
-
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
244
|
-
return new w(e.target, e.broadcastRect());
|
|
245
|
-
});
|
|
246
|
-
this.callback_.call(e, t, e), this.clearActive();
|
|
247
|
-
}
|
|
248
|
-
}, t.prototype.clearActive = function() {
|
|
249
|
-
this.activeObservations_.splice(0);
|
|
250
|
-
}, t.prototype.hasActive = function() {
|
|
251
|
-
return this.activeObservations_.length > 0;
|
|
252
|
-
}, t;
|
|
253
|
-
}(), E = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new e(), D = function() {
|
|
254
|
-
function e(t) {
|
|
255
|
-
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
256
|
-
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
257
|
-
var n = new T(t, l.getInstance(), this);
|
|
258
|
-
E.set(this, n);
|
|
259
|
-
}
|
|
260
|
-
return e;
|
|
261
|
-
}();
|
|
262
|
-
[
|
|
263
|
-
"observe",
|
|
264
|
-
"unobserve",
|
|
265
|
-
"disconnect"
|
|
266
|
-
].forEach(function(e) {
|
|
267
|
-
D.prototype[e] = function() {
|
|
268
|
-
var t;
|
|
269
|
-
return (t = E.get(this))[e].apply(t, arguments);
|
|
270
|
-
};
|
|
271
|
-
});
|
|
272
|
-
var O = (function() {
|
|
273
|
-
return n.ResizeObserver === void 0 ? D : n.ResizeObserver;
|
|
274
|
-
})();
|
|
275
|
-
//#endregion
|
|
276
|
-
export { O as default };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/config-ui/src/number-text-field-custom.jsx
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export declare class NumberTextFieldCustom extends React.Component {
|
|
12
|
-
static propTypes: {
|
|
13
|
-
className: PropTypes.Requireable<string>;
|
|
14
|
-
customValues: PropTypes.Requireable<any[]>;
|
|
15
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
16
|
-
error: PropTypes.Requireable<boolean>;
|
|
17
|
-
inputClassName: PropTypes.Requireable<string>;
|
|
18
|
-
helperText: PropTypes.Requireable<string>;
|
|
19
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
20
|
-
onlyIntegersAllowed: PropTypes.Requireable<boolean>;
|
|
21
|
-
value: PropTypes.Requireable<any>;
|
|
22
|
-
min: PropTypes.Requireable<number>;
|
|
23
|
-
max: PropTypes.Requireable<number>;
|
|
24
|
-
step: PropTypes.Requireable<number>;
|
|
25
|
-
label: PropTypes.Requireable<string>;
|
|
26
|
-
disableUnderline: PropTypes.Requireable<boolean>;
|
|
27
|
-
textAlign: PropTypes.Requireable<string>;
|
|
28
|
-
variant: PropTypes.Requireable<string>;
|
|
29
|
-
type: PropTypes.Requireable<string>;
|
|
30
|
-
};
|
|
31
|
-
static defaultProps: {
|
|
32
|
-
step: number;
|
|
33
|
-
customValues: never[];
|
|
34
|
-
textAlign: string;
|
|
35
|
-
variant: string;
|
|
36
|
-
onlyIntegersAllowed: boolean;
|
|
37
|
-
};
|
|
38
|
-
constructor(props: any);
|
|
39
|
-
UNSAFE_componentWillReceiveProps(props: any): void;
|
|
40
|
-
clamp(value: any, min?: any, max?: any): any;
|
|
41
|
-
normalizeValueAndIndex: any;
|
|
42
|
-
getClosestValue: (customValues: any, number: any) => any;
|
|
43
|
-
getClosestFractionValue: (customValues: any, number: any) => any;
|
|
44
|
-
getValidFraction: any;
|
|
45
|
-
isPositiveInteger: any;
|
|
46
|
-
onBlur: any;
|
|
47
|
-
onChange(event: any): void;
|
|
48
|
-
changeValue(event: any, sign?: number, shouldUpdate?: boolean): void;
|
|
49
|
-
render(): React.JSX.Element;
|
|
50
|
-
}
|
|
51
|
-
export default NumberTextFieldCustom;
|