@hybridcore/ui 1.6.13 → 1.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccordionSummary-DUtr16g6.js +781 -0
- package/dist/Add-Bk8R160M.js +403 -0
- package/dist/Button-Cem3nbwc.js +357 -0
- package/dist/ButtonBase-DObmf4Q_.js +886 -0
- package/dist/Delete-CVJ6FeDn.js +203 -0
- package/dist/FormGroup-BRj1o7-E.js +89 -0
- package/dist/InputLabel-CjD30ZHz.js +341 -0
- package/dist/MenuItem-BKvRGLvM.js +233 -0
- package/dist/Modal-BVYydOr5.js +1156 -0
- package/dist/Paper-B1HV8GyO.js +582 -0
- package/dist/Select-Bfhvigsx.js +3914 -0
- package/dist/Source-BSZST_GH.js +4410 -0
- package/dist/SwitchBase-BEK49kdS.js +235 -0
- package/dist/Text-ChJRuaD8.js +2197 -0
- package/dist/TextField-Ca9ykixI.js +696 -0
- package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
- package/dist/Typography-D3X-Y5fh.js +178 -0
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +126 -82
- package/dist/components/charts/_common/tooltip.js +44 -35
- package/dist/components/charts/chart-wrapper/index.js +44 -43
- package/dist/components/charts/donut-chart/logic.js +53 -40
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/charts/xy-chart/logic.js +135 -134
- package/dist/components/collapsible-card/index.js +30 -21
- package/dist/components/collapsible-card/styled.js +14 -16
- package/dist/components/color-picker/index.js +3358 -2228
- package/dist/components/color-picker/styled.js +7 -87
- package/dist/components/confirm/dialog.js +7 -89
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
- package/dist/components/date-range-picker/index.js +454 -466
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +3656 -145
- package/dist/components/geometry-picker/map/style.js +17 -18
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +1924 -77
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
- package/dist/components/instance-hierarchy-table/styled.js +16 -18
- package/dist/components/map/helpers/mapbox.js +15 -17
- package/dist/components/map/helpers/ol.js +27 -386
- package/dist/components/map/index.js +10 -11
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +27 -31
- package/dist/components/phone-input/index.js +9 -10
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +26 -27
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +57 -60
- package/dist/components/sortable-list/index.js +1264 -1091
- package/dist/components/template-form/components/property-list/index.js +32 -36
- package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
- package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
- package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
- package/dist/components/tree-select/index.js +16 -16
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/createSvgIcon-D7U1nd99.js +185 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/dialog-BtJhjyF5.js +664 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/index.esm-DAf19hyR.js +318 -0
- package/dist/main.d.ts +9 -1
- package/dist/math-Bvt2Ubuz.js +704 -0
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-DD4BkuVf.js +350 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useSlot-u4t0X96G.js +42 -0
- package/package.json +1 -1
- package/dist/index.esm-UfGMjYOL.js +0 -197
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { a as c, _ as M } from "./extends-C3382pL0.js";
|
|
2
|
+
import * as D from "react";
|
|
3
|
+
import { P as e } from "./index-CblbdqjE.js";
|
|
4
|
+
import { c as V } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { a as W, g as $, s as F, r as A, b as G, c as H } from "./generateUtilityClasses-Cc-owZ4J.js";
|
|
6
|
+
import { u as J } from "./useFormControl-CatNKXAi.js";
|
|
7
|
+
import { jsxs as K, jsx as Q } from "react/jsx-runtime";
|
|
8
|
+
import { B as X } from "./ButtonBase-DObmf4Q_.js";
|
|
9
|
+
import { u as Y } from "./useControlled-BYdyS7Pn.js";
|
|
10
|
+
import { r as Z } from "./TransitionGroupContext-Ja2CgIob.js";
|
|
11
|
+
function ee(o) {
|
|
12
|
+
return W("PrivateSwitchBase", o);
|
|
13
|
+
}
|
|
14
|
+
$("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
15
|
+
const oe = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], se = (o) => {
|
|
16
|
+
const {
|
|
17
|
+
classes: a,
|
|
18
|
+
checked: r,
|
|
19
|
+
disabled: l,
|
|
20
|
+
edge: n
|
|
21
|
+
} = o, u = {
|
|
22
|
+
root: ["root", r && "checked", l && "disabled", n && `edge${G(n)}`],
|
|
23
|
+
input: ["input"]
|
|
24
|
+
};
|
|
25
|
+
return H(u, ee, a);
|
|
26
|
+
}, te = F(X, {
|
|
27
|
+
name: "MuiSwitchBase"
|
|
28
|
+
})(({
|
|
29
|
+
ownerState: o
|
|
30
|
+
}) => c({
|
|
31
|
+
padding: 9,
|
|
32
|
+
borderRadius: "50%"
|
|
33
|
+
}, o.edge === "start" && {
|
|
34
|
+
marginLeft: o.size === "small" ? -3 : -12
|
|
35
|
+
}, o.edge === "end" && {
|
|
36
|
+
marginRight: o.size === "small" ? -3 : -12
|
|
37
|
+
})), ae = F("input", {
|
|
38
|
+
name: "MuiSwitchBase",
|
|
39
|
+
shouldForwardProp: A
|
|
40
|
+
})({
|
|
41
|
+
cursor: "inherit",
|
|
42
|
+
position: "absolute",
|
|
43
|
+
opacity: 0,
|
|
44
|
+
width: "100%",
|
|
45
|
+
height: "100%",
|
|
46
|
+
top: 0,
|
|
47
|
+
left: 0,
|
|
48
|
+
margin: 0,
|
|
49
|
+
padding: 0,
|
|
50
|
+
zIndex: 1
|
|
51
|
+
}), ne = /* @__PURE__ */ D.forwardRef(function(a, r) {
|
|
52
|
+
const {
|
|
53
|
+
autoFocus: l,
|
|
54
|
+
checked: n,
|
|
55
|
+
checkedIcon: u,
|
|
56
|
+
className: R,
|
|
57
|
+
defaultChecked: f,
|
|
58
|
+
disabled: w,
|
|
59
|
+
disableFocusRipple: h = !1,
|
|
60
|
+
edge: x = !1,
|
|
61
|
+
icon: S,
|
|
62
|
+
id: P,
|
|
63
|
+
inputProps: I,
|
|
64
|
+
inputRef: q,
|
|
65
|
+
name: N,
|
|
66
|
+
onBlur: m,
|
|
67
|
+
onChange: b,
|
|
68
|
+
onFocus: g,
|
|
69
|
+
readOnly: O,
|
|
70
|
+
required: j = !1,
|
|
71
|
+
tabIndex: v,
|
|
72
|
+
type: d,
|
|
73
|
+
value: k
|
|
74
|
+
} = a, _ = M(a, oe), [B, z] = Y({
|
|
75
|
+
controlled: n,
|
|
76
|
+
default: !!f,
|
|
77
|
+
name: "SwitchBase",
|
|
78
|
+
state: "checked"
|
|
79
|
+
}), t = J(), E = (s) => {
|
|
80
|
+
g && g(s), t && t.onFocus && t.onFocus(s);
|
|
81
|
+
}, T = (s) => {
|
|
82
|
+
m && m(s), t && t.onBlur && t.onBlur(s);
|
|
83
|
+
}, U = (s) => {
|
|
84
|
+
if (s.nativeEvent.defaultPrevented)
|
|
85
|
+
return;
|
|
86
|
+
const C = s.target.checked;
|
|
87
|
+
z(C), b && b(s, C);
|
|
88
|
+
};
|
|
89
|
+
let i = w;
|
|
90
|
+
t && typeof i > "u" && (i = t.disabled);
|
|
91
|
+
const L = d === "checkbox" || d === "radio", p = c({}, a, {
|
|
92
|
+
checked: B,
|
|
93
|
+
disabled: i,
|
|
94
|
+
disableFocusRipple: h,
|
|
95
|
+
edge: x
|
|
96
|
+
}), y = se(p);
|
|
97
|
+
return /* @__PURE__ */ K(te, c({
|
|
98
|
+
component: "span",
|
|
99
|
+
className: V(y.root, R),
|
|
100
|
+
centerRipple: !0,
|
|
101
|
+
focusRipple: !h,
|
|
102
|
+
disabled: i,
|
|
103
|
+
tabIndex: null,
|
|
104
|
+
role: void 0,
|
|
105
|
+
onFocus: E,
|
|
106
|
+
onBlur: T,
|
|
107
|
+
ownerState: p,
|
|
108
|
+
ref: r
|
|
109
|
+
}, _, {
|
|
110
|
+
children: [/* @__PURE__ */ Q(ae, c({
|
|
111
|
+
autoFocus: l,
|
|
112
|
+
checked: n,
|
|
113
|
+
defaultChecked: f,
|
|
114
|
+
className: y.input,
|
|
115
|
+
disabled: i,
|
|
116
|
+
id: L ? P : void 0,
|
|
117
|
+
name: N,
|
|
118
|
+
onChange: U,
|
|
119
|
+
readOnly: O,
|
|
120
|
+
ref: q,
|
|
121
|
+
required: j,
|
|
122
|
+
ownerState: p,
|
|
123
|
+
tabIndex: v,
|
|
124
|
+
type: d
|
|
125
|
+
}, d === "checkbox" && k === void 0 ? {} : {
|
|
126
|
+
value: k
|
|
127
|
+
}, I)), B ? u : S]
|
|
128
|
+
}));
|
|
129
|
+
});
|
|
130
|
+
process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
131
|
+
/**
|
|
132
|
+
* If `true`, the `input` element is focused during the first mount.
|
|
133
|
+
*/
|
|
134
|
+
autoFocus: e.bool,
|
|
135
|
+
/**
|
|
136
|
+
* If `true`, the component is checked.
|
|
137
|
+
*/
|
|
138
|
+
checked: e.bool,
|
|
139
|
+
/**
|
|
140
|
+
* The icon to display when the component is checked.
|
|
141
|
+
*/
|
|
142
|
+
checkedIcon: e.node.isRequired,
|
|
143
|
+
/**
|
|
144
|
+
* Override or extend the styles applied to the component.
|
|
145
|
+
*/
|
|
146
|
+
classes: e.object,
|
|
147
|
+
/**
|
|
148
|
+
* @ignore
|
|
149
|
+
*/
|
|
150
|
+
className: e.string,
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
defaultChecked: e.bool,
|
|
155
|
+
/**
|
|
156
|
+
* If `true`, the component is disabled.
|
|
157
|
+
*/
|
|
158
|
+
disabled: e.bool,
|
|
159
|
+
/**
|
|
160
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
161
|
+
* @default false
|
|
162
|
+
*/
|
|
163
|
+
disableFocusRipple: e.bool,
|
|
164
|
+
/**
|
|
165
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
166
|
+
* side (this is often helpful for aligning the left or right
|
|
167
|
+
* side of the icon with content above or below, without ruining the border
|
|
168
|
+
* size and shape).
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
172
|
+
/**
|
|
173
|
+
* The icon to display when the component is unchecked.
|
|
174
|
+
*/
|
|
175
|
+
icon: e.node.isRequired,
|
|
176
|
+
/**
|
|
177
|
+
* The id of the `input` element.
|
|
178
|
+
*/
|
|
179
|
+
id: e.string,
|
|
180
|
+
/**
|
|
181
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
182
|
+
*/
|
|
183
|
+
inputProps: e.object,
|
|
184
|
+
/**
|
|
185
|
+
* Pass a ref to the `input` element.
|
|
186
|
+
*/
|
|
187
|
+
inputRef: Z,
|
|
188
|
+
/*
|
|
189
|
+
* @ignore
|
|
190
|
+
*/
|
|
191
|
+
name: e.string,
|
|
192
|
+
/**
|
|
193
|
+
* @ignore
|
|
194
|
+
*/
|
|
195
|
+
onBlur: e.func,
|
|
196
|
+
/**
|
|
197
|
+
* Callback fired when the state is changed.
|
|
198
|
+
*
|
|
199
|
+
* @param {object} event The event source of the callback.
|
|
200
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
201
|
+
*/
|
|
202
|
+
onChange: e.func,
|
|
203
|
+
/**
|
|
204
|
+
* @ignore
|
|
205
|
+
*/
|
|
206
|
+
onFocus: e.func,
|
|
207
|
+
/**
|
|
208
|
+
* It prevents the user from changing the value of the field
|
|
209
|
+
* (not from interacting with the field).
|
|
210
|
+
*/
|
|
211
|
+
readOnly: e.bool,
|
|
212
|
+
/**
|
|
213
|
+
* If `true`, the `input` element is required.
|
|
214
|
+
*/
|
|
215
|
+
required: e.bool,
|
|
216
|
+
/**
|
|
217
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
218
|
+
*/
|
|
219
|
+
sx: e.object,
|
|
220
|
+
/**
|
|
221
|
+
* @ignore
|
|
222
|
+
*/
|
|
223
|
+
tabIndex: e.oneOfType([e.number, e.string]),
|
|
224
|
+
/**
|
|
225
|
+
* The input component prop `type`.
|
|
226
|
+
*/
|
|
227
|
+
type: e.string.isRequired,
|
|
228
|
+
/**
|
|
229
|
+
* The value of the component.
|
|
230
|
+
*/
|
|
231
|
+
value: e.any
|
|
232
|
+
});
|
|
233
|
+
export {
|
|
234
|
+
ne as S
|
|
235
|
+
};
|