@hybridcore/ui 1.5.69 → 1.5.70
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/components/charts/candlestick/index.js +19881 -0
- package/dist/main.d.ts +24 -0
- package/dist/main.js +77 -75
- package/package.json +2 -1
package/dist/main.d.ts
CHANGED
|
@@ -63,6 +63,30 @@ declare interface ButtonType {
|
|
|
63
63
|
onClick?(event?: React.MouseEvent<HTMLElement>): void;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export declare function CandlestickChart<T extends CandlestickData>({ data, seriesName, height, width, chartId, showVolume, risingColor, fallingColor, loading, emptyMessage, }: CandlestickChartProps<T>): JSX_2.Element;
|
|
67
|
+
|
|
68
|
+
export declare interface CandlestickChartProps<T extends CandlestickData> {
|
|
69
|
+
data: T[];
|
|
70
|
+
height?: string | number;
|
|
71
|
+
width?: string | number;
|
|
72
|
+
chartId?: string;
|
|
73
|
+
showVolume?: boolean;
|
|
74
|
+
risingColor?: string;
|
|
75
|
+
fallingColor?: string;
|
|
76
|
+
loading?: boolean;
|
|
77
|
+
emptyMessage?: string;
|
|
78
|
+
seriesName?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare interface CandlestickData {
|
|
82
|
+
date: number | Date; // timestamp or Date object
|
|
83
|
+
open: number;
|
|
84
|
+
high: number;
|
|
85
|
+
low: number;
|
|
86
|
+
close: number;
|
|
87
|
+
volume?: number; // optional volume
|
|
88
|
+
}
|
|
89
|
+
|
|
66
90
|
export declare const Card: React.FC<CardProps>;
|
|
67
91
|
|
|
68
92
|
export declare const CardAlternate: FC<CardAlternateProps>;
|
package/dist/main.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { ThemeProvider as Ht, createTheme as Ft } from "@mui/material";
|
|
2
|
-
import { LocalizationProvider as
|
|
2
|
+
import { LocalizationProvider as Ct } from "@mui/x-date-pickers";
|
|
3
3
|
import { Access as Pt } from "./components/access/index.js";
|
|
4
4
|
import { b as $t } from "./helpers-DaCoWmi2.js";
|
|
5
5
|
import { Card as Et } from "./components/card/index.js";
|
|
6
6
|
import { CardAlternate as zt } from "./components/card-alternate/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
7
|
+
import { CandlestickChart as Nt } from "./components/charts/candlestick/index.js";
|
|
8
|
+
import { CollapsibleCard as Vt } from "./components/collapsible-card/index.js";
|
|
9
|
+
import { ConditionalWrapper as qt } from "./components/conditional-wrapper/index.js";
|
|
10
|
+
import { alert as Kt, confirm as Qt } from "./components/confirm/index.js";
|
|
11
|
+
import { Container as Xt } from "./components/container/index.js";
|
|
12
|
+
import { ContextMenu as ee } from "./components/context-menu/index.js";
|
|
13
|
+
import { DisseminationList as se } from "./components/data-security-selectors/dissemination-list/index.js";
|
|
14
|
+
import { SecurityLevel as oe } from "./components/data-security-selectors/security-level/index.js";
|
|
15
|
+
import { DateTimePicker as ie } from "./components/date-time-picker/index.js";
|
|
16
|
+
import { DocumentViewer as de } from "./components/document-viewer/index.js";
|
|
17
|
+
import { GeometryPicker as ce } from "./components/geometry-picker/index.js";
|
|
18
|
+
import { IconButton as me } from "./components/icon-button/index.js";
|
|
19
|
+
import { InstanceForm as pe } from "./components/instance-form/index.js";
|
|
20
|
+
import { InstanceHierarchyTable as Me } from "./components/instance-hierarchy-table/index.js";
|
|
21
|
+
import { InstanceTable as De } from "./components/instance-table/index.js";
|
|
22
|
+
import { InstanceVariableList as Ye } from "./components/instance-variable-list/index.js";
|
|
23
|
+
import { KeyProtectionMenu as Te } from "./components/key-protection/menu.js";
|
|
24
|
+
import { S as ke } from "./utils-Bq0ye5vf.js";
|
|
25
|
+
import { LinearIndicator as Oe } from "./components/linear-indicator/index.js";
|
|
26
|
+
import { Loading as Se } from "./components/loading/index.js";
|
|
27
|
+
import { i as He } from "./index-JrtqxUdI.js";
|
|
28
|
+
import { PaginatedList as Be } from "./components/paginated-list/index.js";
|
|
29
|
+
import { PhoneInput as Ie } from "./components/phone-input/index.js";
|
|
30
|
+
import { SearchInput as je } from "./components/search-input/index.js";
|
|
31
|
+
import { Tabs as We } from "./components/tabs/index.js";
|
|
32
|
+
import { TemplateFilters as Ue } from "./components/template-filters/index.js";
|
|
33
|
+
import { TemplateForm as Ze } from "./components/template-form/index.js";
|
|
34
|
+
import { TemplatePropertyFilters as Je } from "./components/template-property-filters/index.js";
|
|
35
|
+
import { Property as _e } from "./components/template-property-filters/property.js";
|
|
36
|
+
import { TreeSelect as Ge } from "./components/tree-select/index.js";
|
|
37
|
+
import { TreeViewFilter as Qe } from "./components/treeview-filter/index.js";
|
|
38
|
+
import { Uploader as Xe } from "./components/uploader/index.js";
|
|
38
39
|
import { a as dt } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
39
|
-
import
|
|
40
|
+
import C from "dayjs";
|
|
40
41
|
import { h as U, j as z } from "./createTheme-DrgvKMA_.js";
|
|
41
42
|
import { b as ut } from "./index-R_b1ETBe.js";
|
|
42
43
|
var tt = { exports: {} };
|
|
@@ -130,8 +131,8 @@ var et = { exports: {} };
|
|
|
130
131
|
return v || S.slice(1);
|
|
131
132
|
});
|
|
132
133
|
})).match(c), g = u.length, Y = 0; Y < g; Y += 1) {
|
|
133
|
-
var
|
|
134
|
-
u[Y] = T ? { regex: L, parser: T } :
|
|
134
|
+
var I = u[Y], O = Z[I], L = O && O[0], T = O && O[1];
|
|
135
|
+
u[Y] = T ? { regex: L, parser: T } : I.replace(/^\[|\]$/g, "");
|
|
135
136
|
}
|
|
136
137
|
return function(b) {
|
|
137
138
|
for (var w = {}, M = 0, y = 0; M < g; M += 1) {
|
|
@@ -155,7 +156,7 @@ var et = { exports: {} };
|
|
|
155
156
|
d.p.customParseFormat = !0, r && r.parseTwoDigitYear && (i = r.parseTwoDigitYear);
|
|
156
157
|
var u = h.prototype, g = u.parse;
|
|
157
158
|
u.parse = function(Y) {
|
|
158
|
-
var
|
|
159
|
+
var I = Y.date, O = Y.utc, L = Y.args;
|
|
159
160
|
this.$u = O;
|
|
160
161
|
var T = L[1];
|
|
161
162
|
if (typeof T == "string") {
|
|
@@ -170,7 +171,7 @@ var et = { exports: {} };
|
|
|
170
171
|
} catch {
|
|
171
172
|
return /* @__PURE__ */ new Date("");
|
|
172
173
|
}
|
|
173
|
-
}(
|
|
174
|
+
}(I, T, O, d), this.init(), y && y !== !0 && (this.$L = this.locale(y).$L), M && I != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), n = {};
|
|
174
175
|
} else if (T instanceof Array) for (var k = T.length, v = 1; v <= k; v += 1) {
|
|
175
176
|
L[1] = T[v - 1];
|
|
176
177
|
var S = d.apply(this, L);
|
|
@@ -227,9 +228,9 @@ var st = { exports: {} };
|
|
|
227
228
|
})(st);
|
|
228
229
|
var Mt = st.exports;
|
|
229
230
|
const xt = /* @__PURE__ */ z(Mt);
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
C.extend(lt);
|
|
232
|
+
C.extend(yt);
|
|
233
|
+
C.extend(xt);
|
|
233
234
|
const Dt = ut(["Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale", "Or you forget to import the locale with `require('dayjs/locale/{localeUsed}')`", "fallback on English locale"]), gt = {
|
|
234
235
|
// Year
|
|
235
236
|
YY: "year",
|
|
@@ -352,7 +353,7 @@ class bt {
|
|
|
352
353
|
end: "]"
|
|
353
354
|
}, this.formatTokenMap = gt, this.getLocaleFormats = () => {
|
|
354
355
|
var t;
|
|
355
|
-
const e = (t = this.rawDayJsInstance.Ls) != null ? t :
|
|
356
|
+
const e = (t = this.rawDayJsInstance.Ls) != null ? t : C.Ls, s = this.locale || "en";
|
|
356
357
|
let o = e[s];
|
|
357
358
|
return o === void 0 && (Dt(), o = e.en), o.formats;
|
|
358
359
|
}, this.date = (t) => t === null ? null : this.dayjs(t), this.toJsDate = (t) => t.toDate(), this.parseISO = (t) => this.dayjs(t), this.toISO = (t) => t.toISOString(), this.parse = (t, e) => t === "" ? null : this.dayjs(t, e, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || "en", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || ""), this.expandFormat = (t) => {
|
|
@@ -386,48 +387,49 @@ class bt {
|
|
|
386
387
|
for (; i.isBefore(o); )
|
|
387
388
|
n.push(i), i = i.add(1, "year");
|
|
388
389
|
return n;
|
|
389
|
-
}, this.getMeridiemText = (t) => t === "am" ? "AM" : "PM", this.rawDayJsInstance = c ||
|
|
390
|
+
}, this.getMeridiemText = (t) => t === "am" ? "AM" : "PM", this.rawDayJsInstance = c || C, this.dayjs = Lt(this.rawDayJsInstance, x), this.locale = x, this.formats = dt({}, Yt, f), C.extend(ft);
|
|
390
391
|
}
|
|
391
392
|
}
|
|
392
393
|
export {
|
|
393
394
|
Pt as Access,
|
|
394
395
|
$t as AccessUtils,
|
|
395
396
|
bt as AdapterDayjs,
|
|
397
|
+
Nt as CandlestickChart,
|
|
396
398
|
Et as Card,
|
|
397
399
|
zt as CardAlternate,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
400
|
+
Vt as CollapsibleCard,
|
|
401
|
+
qt as ConditionalWrapper,
|
|
402
|
+
Xt as Container,
|
|
403
|
+
ee as ContextMenu,
|
|
404
|
+
ie as DateTimePicker,
|
|
405
|
+
se as DisseminationList,
|
|
406
|
+
de as DocumentViewer,
|
|
407
|
+
ce as GeometryPicker,
|
|
408
|
+
me as IconButton,
|
|
409
|
+
pe as InstanceForm,
|
|
410
|
+
Me as InstanceHierarchyTable,
|
|
411
|
+
De as InstanceTable,
|
|
412
|
+
Ye as InstanceVariableList,
|
|
413
|
+
ke as KeyProductionUtils,
|
|
414
|
+
Te as KeyProtectionMenu,
|
|
415
|
+
Oe as LinearIndicator,
|
|
416
|
+
Se as Loading,
|
|
417
|
+
Ct as LocalizationProvider,
|
|
418
|
+
He as Map,
|
|
419
|
+
Be as PaginatedList,
|
|
420
|
+
Ie as PhoneInput,
|
|
421
|
+
_e as PropertyFilterInput,
|
|
422
|
+
je as SearchInput,
|
|
423
|
+
oe as SecurityLevel,
|
|
424
|
+
We as Tabs,
|
|
425
|
+
Ue as TemplateFilters,
|
|
426
|
+
Ze as TemplateForm,
|
|
427
|
+
Je as TemplatePropertyFilters,
|
|
426
428
|
Ht as ThemeProvider,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
429
|
+
Ge as TreeSelect,
|
|
430
|
+
Qe as TreeViewFilter,
|
|
431
|
+
Xe as Uploader,
|
|
432
|
+
Kt as alert,
|
|
433
|
+
Qt as confirm,
|
|
432
434
|
Ft as createTheme
|
|
433
435
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridcore/ui",
|
|
3
3
|
"description": "Hybrid Core UI Library",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.70",
|
|
5
5
|
"author": "Hybrid Core",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"type": "module",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"tsc": "tsc -b ./tsconfig.lib.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@amcharts/amcharts5": "^5.14.4",
|
|
28
29
|
"@cyntler/react-doc-viewer": "^1.17.0",
|
|
29
30
|
"@emotion/react": "^11.10.6",
|
|
30
31
|
"@emotion/styled": "^11.10.6",
|