@hybridcore/ui 1.6.12 → 1.6.13
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/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +149 -41
- package/dist/components/charts/_common/utils.js +16 -11
- package/dist/components/collapsible-card/index.js +21 -30
- package/dist/components/collapsible-card/styled.js +16 -14
- package/dist/components/color-picker/index.js +2227 -3357
- package/dist/components/color-picker/styled.js +87 -7
- package/dist/components/confirm/dialog.js +89 -8
- 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 +32 -3117
- package/dist/components/date-picker-with-custom-range/index.js +86 -7
- package/dist/components/date-range-picker/index.js +464 -452
- 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 +145 -3656
- package/dist/components/geometry-picker/map/style.js +18 -17
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +43 -1255
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +77 -1924
- package/dist/components/instance-hierarchy-table/styled.js +18 -16
- package/dist/components/map/helpers/mapbox.js +17 -15
- package/dist/components/map/helpers/ol.js +386 -27
- package/dist/components/map/index.js +11 -10
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +31 -27
- package/dist/components/metric-card/logic.js +46 -49
- package/dist/components/phone-input/index.js +10 -9
- 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 +27 -26
- package/dist/components/range-selector/styled.js +65 -4228
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +60 -57
- package/dist/components/simple-pivot-table/index.js +17 -17
- package/dist/components/simple-pivot-table/logic.js +67 -76
- package/dist/components/sortable-list/index.js +1091 -1264
- package/dist/components/template-form/components/property-list/index.js +36 -33
- package/dist/components/template-form/components/property-list/property-list-columns.js +19 -18
- package/dist/components/template-form/components/property-list/property-list-form.js +137 -601
- package/dist/components/template-form/components/recognition-property-list/index.js +40 -37
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +11 -10
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +55 -63
- package/dist/components/tree-select/index.js +16 -16
- package/dist/index.esm-UfGMjYOL.js +197 -0
- package/dist/main.d.ts +54 -8
- package/dist/main.js +176 -175
- package/package.json +1 -1
- package/dist/AccordionSummary-CJppWeqF.js +0 -781
- package/dist/Add-CqcD1PWb.js +0 -403
- package/dist/Box-DqUMmZjL.js +0 -31
- package/dist/Button-C5yquWAB.js +0 -357
- package/dist/ButtonBase-BEF7oTOe.js +0 -887
- package/dist/Delete-BdyYpINH.js +0 -23
- package/dist/DialogContent-BvVjD9z3.js +0 -523
- package/dist/FormGroup-CpBsIyYR.js +0 -89
- package/dist/IconButton-BoGwbvrP.js +0 -184
- package/dist/InputLabel-Dd8RrneV.js +0 -341
- package/dist/MenuItem-DwqJqzuM.js +0 -233
- package/dist/Modal-MUZygjmQ.js +0 -1158
- package/dist/Paper-BkQLdsCI.js +0 -582
- package/dist/Select-DHUl_uG3.js +0 -3916
- package/dist/Source-BSZST_GH.js +0 -4410
- package/dist/SwitchBase-DTndTqI8.js +0 -235
- package/dist/Text-ChJRuaD8.js +0 -2197
- package/dist/TextField-e2oKaUN1.js +0 -669
- package/dist/TransitionGroupContext-BDAp2T0O.js +0 -96
- package/dist/Typography-DgsSLCFC.js +0 -178
- package/dist/Vector-BmuhQO4p.js +0 -3606
- package/dist/Vector-DfTqQEln.js +0 -1735
- package/dist/WKT-2wsDT-nq.js +0 -2310
- package/dist/assertThisInitialized-C1dAyb4j.js +0 -7
- package/dist/assets/index3.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSvgIcon-Ch_cT8az.js +0 -185
- package/dist/createSvgIcon-DuDuASu1.js +0 -62
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/dialog-BYRnCztH.js +0 -154
- package/dist/formControlState-vgaj2ksH.js +0 -10
- package/dist/generateUtilityClasses-C3ivN9Ie.js +0 -2973
- package/dist/index-DH6qsPBn.js +0 -153
- package/dist/index-e9xTIYWt.js +0 -1934
- package/dist/index.esm-BLLrbTzY.js +0 -318
- package/dist/math-Bvt2Ubuz.js +0 -704
- package/dist/objectWithoutPropertiesLoose-DJteAcBH.js +0 -22
- package/dist/ol-yOE-NV0X.js +0 -7465
- package/dist/ownerWindow-wg6foiOE.js +0 -10
- package/dist/setPrototypeOf-NPgp4cYc.js +0 -8
- package/dist/styled-SoqbyrkW.js +0 -350
- package/dist/unsupportedProp-DuqR2hj9.js +0 -36
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
- package/dist/useSlot-B_Q4vnX5.js +0 -42
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { a as l, _ as P } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
-
import * as d from "react";
|
|
3
|
-
import { P as t } from "./index-C__OZmYy.js";
|
|
4
|
-
import { c as I } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { g as u, a as F, s as _, r as j, f as p, u as D, c as E } from "./generateUtilityClasses-C3ivN9Ie.js";
|
|
6
|
-
import { L as $ } from "./Select-DHUl_uG3.js";
|
|
7
|
-
import { jsx as M } from "react/jsx-runtime";
|
|
8
|
-
import { B as G } from "./ButtonBase-BEF7oTOe.js";
|
|
9
|
-
import { a as U, u as S } from "./TransitionGroupContext-BDAp2T0O.js";
|
|
10
|
-
const O = u("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), N = u("MuiListItemIcon", ["root", "alignItemsFlexStart"]), V = u("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
11
|
-
function H(e) {
|
|
12
|
-
return F("MuiMenuItem", e);
|
|
13
|
-
}
|
|
14
|
-
const n = u("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), W = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"], h = (e, o) => {
|
|
15
|
-
const {
|
|
16
|
-
ownerState: s
|
|
17
|
-
} = e;
|
|
18
|
-
return [o.root, s.dense && o.dense, s.divider && o.divider, !s.disableGutters && o.gutters];
|
|
19
|
-
}, z = (e) => {
|
|
20
|
-
const {
|
|
21
|
-
disabled: o,
|
|
22
|
-
dense: s,
|
|
23
|
-
divider: a,
|
|
24
|
-
disableGutters: c,
|
|
25
|
-
selected: b,
|
|
26
|
-
classes: i
|
|
27
|
-
} = e, r = E({
|
|
28
|
-
root: ["root", s && "dense", o && "disabled", !c && "gutters", a && "divider", b && "selected"]
|
|
29
|
-
}, H, i);
|
|
30
|
-
return l({}, i, r);
|
|
31
|
-
}, A = _(G, {
|
|
32
|
-
shouldForwardProp: (e) => j(e) || e === "classes",
|
|
33
|
-
name: "MuiMenuItem",
|
|
34
|
-
slot: "Root",
|
|
35
|
-
overridesResolver: h
|
|
36
|
-
})(({
|
|
37
|
-
theme: e,
|
|
38
|
-
ownerState: o
|
|
39
|
-
}) => l({}, e.typography.body1, {
|
|
40
|
-
display: "flex",
|
|
41
|
-
justifyContent: "flex-start",
|
|
42
|
-
alignItems: "center",
|
|
43
|
-
position: "relative",
|
|
44
|
-
textDecoration: "none",
|
|
45
|
-
minHeight: 48,
|
|
46
|
-
paddingTop: 6,
|
|
47
|
-
paddingBottom: 6,
|
|
48
|
-
boxSizing: "border-box",
|
|
49
|
-
whiteSpace: "nowrap"
|
|
50
|
-
}, !o.disableGutters && {
|
|
51
|
-
paddingLeft: 16,
|
|
52
|
-
paddingRight: 16
|
|
53
|
-
}, o.divider && {
|
|
54
|
-
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
55
|
-
backgroundClip: "padding-box"
|
|
56
|
-
}, {
|
|
57
|
-
"&:hover": {
|
|
58
|
-
textDecoration: "none",
|
|
59
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
60
|
-
// Reset on touch devices, it doesn't add specificity
|
|
61
|
-
"@media (hover: none)": {
|
|
62
|
-
backgroundColor: "transparent"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
[`&.${n.selected}`]: {
|
|
66
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
67
|
-
[`&.${n.focusVisible}`]: {
|
|
68
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : p(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
[`&.${n.selected}:hover`]: {
|
|
72
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : p(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
73
|
-
// Reset on touch devices, it doesn't add specificity
|
|
74
|
-
"@media (hover: none)": {
|
|
75
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : p(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
[`&.${n.focusVisible}`]: {
|
|
79
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
80
|
-
},
|
|
81
|
-
[`&.${n.disabled}`]: {
|
|
82
|
-
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
83
|
-
},
|
|
84
|
-
[`& + .${O.root}`]: {
|
|
85
|
-
marginTop: e.spacing(1),
|
|
86
|
-
marginBottom: e.spacing(1)
|
|
87
|
-
},
|
|
88
|
-
[`& + .${O.inset}`]: {
|
|
89
|
-
marginLeft: 52
|
|
90
|
-
},
|
|
91
|
-
[`& .${V.root}`]: {
|
|
92
|
-
marginTop: 0,
|
|
93
|
-
marginBottom: 0
|
|
94
|
-
},
|
|
95
|
-
[`& .${V.inset}`]: {
|
|
96
|
-
paddingLeft: 36
|
|
97
|
-
},
|
|
98
|
-
[`& .${N.root}`]: {
|
|
99
|
-
minWidth: 36
|
|
100
|
-
}
|
|
101
|
-
}, !o.dense && {
|
|
102
|
-
[e.breakpoints.up("sm")]: {
|
|
103
|
-
minHeight: "auto"
|
|
104
|
-
}
|
|
105
|
-
}, o.dense && l({
|
|
106
|
-
minHeight: 32,
|
|
107
|
-
// https://m2.material.io/components/menus#specs > Dense
|
|
108
|
-
paddingTop: 4,
|
|
109
|
-
paddingBottom: 4
|
|
110
|
-
}, e.typography.body2, {
|
|
111
|
-
[`& .${N.root} svg`]: {
|
|
112
|
-
fontSize: "1.25rem"
|
|
113
|
-
}
|
|
114
|
-
}))), q = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
115
|
-
const a = D({
|
|
116
|
-
props: o,
|
|
117
|
-
name: "MuiMenuItem"
|
|
118
|
-
}), {
|
|
119
|
-
autoFocus: c = !1,
|
|
120
|
-
component: b = "li",
|
|
121
|
-
dense: i = !1,
|
|
122
|
-
divider: g = !1,
|
|
123
|
-
disableGutters: r = !1,
|
|
124
|
-
focusVisibleClassName: R,
|
|
125
|
-
role: T = "menuitem",
|
|
126
|
-
tabIndex: v,
|
|
127
|
-
className: k
|
|
128
|
-
} = a, w = P(a, W), y = d.useContext($), C = d.useMemo(() => ({
|
|
129
|
-
dense: i || y.dense || !1,
|
|
130
|
-
disableGutters: r
|
|
131
|
-
}), [y.dense, i, r]), m = d.useRef(null);
|
|
132
|
-
U(() => {
|
|
133
|
-
c && (m.current ? m.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
134
|
-
}, [c]);
|
|
135
|
-
const L = l({}, a, {
|
|
136
|
-
dense: C.dense,
|
|
137
|
-
divider: g,
|
|
138
|
-
disableGutters: r
|
|
139
|
-
}), f = z(a), B = S(m, s);
|
|
140
|
-
let x;
|
|
141
|
-
return a.disabled || (x = v !== void 0 ? v : -1), /* @__PURE__ */ M($.Provider, {
|
|
142
|
-
value: C,
|
|
143
|
-
children: /* @__PURE__ */ M(A, l({
|
|
144
|
-
ref: B,
|
|
145
|
-
role: T,
|
|
146
|
-
tabIndex: x,
|
|
147
|
-
component: b,
|
|
148
|
-
focusVisibleClassName: I(f.focusVisible, R),
|
|
149
|
-
className: I(f.root, k)
|
|
150
|
-
}, w, {
|
|
151
|
-
ownerState: L,
|
|
152
|
-
classes: f
|
|
153
|
-
}))
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
157
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
158
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
159
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
160
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
161
|
-
/**
|
|
162
|
-
* If `true`, the list item is focused during the first mount.
|
|
163
|
-
* Focus will also be triggered if the value changes from false to true.
|
|
164
|
-
* @default false
|
|
165
|
-
*/
|
|
166
|
-
autoFocus: t.bool,
|
|
167
|
-
/**
|
|
168
|
-
* The content of the component.
|
|
169
|
-
*/
|
|
170
|
-
children: t.node,
|
|
171
|
-
/**
|
|
172
|
-
* Override or extend the styles applied to the component.
|
|
173
|
-
*/
|
|
174
|
-
classes: t.object,
|
|
175
|
-
/**
|
|
176
|
-
* @ignore
|
|
177
|
-
*/
|
|
178
|
-
className: t.string,
|
|
179
|
-
/**
|
|
180
|
-
* The component used for the root node.
|
|
181
|
-
* Either a string to use a HTML element or a component.
|
|
182
|
-
*/
|
|
183
|
-
component: t.elementType,
|
|
184
|
-
/**
|
|
185
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
186
|
-
* The prop defaults to the value inherited from the parent Menu component.
|
|
187
|
-
* @default false
|
|
188
|
-
*/
|
|
189
|
-
dense: t.bool,
|
|
190
|
-
/**
|
|
191
|
-
* @ignore
|
|
192
|
-
*/
|
|
193
|
-
disabled: t.bool,
|
|
194
|
-
/**
|
|
195
|
-
* If `true`, the left and right padding is removed.
|
|
196
|
-
* @default false
|
|
197
|
-
*/
|
|
198
|
-
disableGutters: t.bool,
|
|
199
|
-
/**
|
|
200
|
-
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
201
|
-
* @default false
|
|
202
|
-
*/
|
|
203
|
-
divider: t.bool,
|
|
204
|
-
/**
|
|
205
|
-
* This prop can help identify which element has keyboard focus.
|
|
206
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
207
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
208
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
209
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
210
|
-
* if needed.
|
|
211
|
-
*/
|
|
212
|
-
focusVisibleClassName: t.string,
|
|
213
|
-
/**
|
|
214
|
-
* @ignore
|
|
215
|
-
*/
|
|
216
|
-
role: t.string,
|
|
217
|
-
/**
|
|
218
|
-
* If `true`, the component is selected.
|
|
219
|
-
* @default false
|
|
220
|
-
*/
|
|
221
|
-
selected: t.bool,
|
|
222
|
-
/**
|
|
223
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
224
|
-
*/
|
|
225
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
226
|
-
/**
|
|
227
|
-
* @default 0
|
|
228
|
-
*/
|
|
229
|
-
tabIndex: t.number
|
|
230
|
-
});
|
|
231
|
-
export {
|
|
232
|
-
q as M
|
|
233
|
-
};
|