@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/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 It } from "@mui/x-date-pickers";
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 { CollapsibleCard as Nt } from "./components/collapsible-card/index.js";
8
- import { ConditionalWrapper as Vt } from "./components/conditional-wrapper/index.js";
9
- import { alert as qt, confirm as Gt } from "./components/confirm/index.js";
10
- import { Container as Qt } from "./components/container/index.js";
11
- import { ContextMenu as Xt } from "./components/context-menu/index.js";
12
- import { DisseminationList as ee } from "./components/data-security-selectors/dissemination-list/index.js";
13
- import { SecurityLevel as se } from "./components/data-security-selectors/security-level/index.js";
14
- import { DateTimePicker as oe } from "./components/date-time-picker/index.js";
15
- import { DocumentViewer as ie } from "./components/document-viewer/index.js";
16
- import { GeometryPicker as de } from "./components/geometry-picker/index.js";
17
- import { IconButton as ce } from "./components/icon-button/index.js";
18
- import { InstanceForm as me } from "./components/instance-form/index.js";
19
- import { InstanceHierarchyTable as pe } from "./components/instance-hierarchy-table/index.js";
20
- import { InstanceTable as Me } from "./components/instance-table/index.js";
21
- import { InstanceVariableList as De } from "./components/instance-variable-list/index.js";
22
- import { KeyProtectionMenu as Ye } from "./components/key-protection/menu.js";
23
- import { S as Te } from "./utils-Bq0ye5vf.js";
24
- import { LinearIndicator as ke } from "./components/linear-indicator/index.js";
25
- import { Loading as Oe } from "./components/loading/index.js";
26
- import { i as Se } from "./index-JrtqxUdI.js";
27
- import { PaginatedList as He } from "./components/paginated-list/index.js";
28
- import { PhoneInput as Be } from "./components/phone-input/index.js";
29
- import { SearchInput as Ce } from "./components/search-input/index.js";
30
- import { Tabs as je } from "./components/tabs/index.js";
31
- import { TemplateFilters as We } from "./components/template-filters/index.js";
32
- import { TemplateForm as Ue } from "./components/template-form/index.js";
33
- import { TemplatePropertyFilters as Ze } from "./components/template-property-filters/index.js";
34
- import { Property as Je } from "./components/template-property-filters/property.js";
35
- import { TreeSelect as _e } from "./components/tree-select/index.js";
36
- import { TreeViewFilter as Ge } from "./components/treeview-filter/index.js";
37
- import { Uploader as Qe } from "./components/uploader/index.js";
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 I from "dayjs";
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 C = u[Y], O = Z[C], L = O && O[0], T = O && O[1];
134
- u[Y] = T ? { regex: L, parser: T } : C.replace(/^\[|\]$/g, "");
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 C = Y.date, O = Y.utc, L = Y.args;
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
- }(C, T, O, d), this.init(), y && y !== !0 && (this.$L = this.locale(y).$L), M && C != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), n = {};
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
- I.extend(lt);
231
- I.extend(yt);
232
- I.extend(xt);
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 : I.Ls, s = this.locale || "en";
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 || I, this.dayjs = Lt(this.rawDayJsInstance, x), this.locale = x, this.formats = dt({}, Yt, f), I.extend(ft);
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
- Nt as CollapsibleCard,
399
- Vt as ConditionalWrapper,
400
- Qt as Container,
401
- Xt as ContextMenu,
402
- oe as DateTimePicker,
403
- ee as DisseminationList,
404
- ie as DocumentViewer,
405
- de as GeometryPicker,
406
- ce as IconButton,
407
- me as InstanceForm,
408
- pe as InstanceHierarchyTable,
409
- Me as InstanceTable,
410
- De as InstanceVariableList,
411
- Te as KeyProductionUtils,
412
- Ye as KeyProtectionMenu,
413
- ke as LinearIndicator,
414
- Oe as Loading,
415
- It as LocalizationProvider,
416
- Se as Map,
417
- He as PaginatedList,
418
- Be as PhoneInput,
419
- Je as PropertyFilterInput,
420
- Ce as SearchInput,
421
- se as SecurityLevel,
422
- je as Tabs,
423
- We as TemplateFilters,
424
- Ue as TemplateForm,
425
- Ze as TemplatePropertyFilters,
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
- _e as TreeSelect,
428
- Ge as TreeViewFilter,
429
- Qe as Uploader,
430
- qt as alert,
431
- Gt as confirm,
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.69",
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",