@tradecanvas/chart 1.37.0 → 1.39.0
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/README.md +1 -1
- package/dist/Chart.d.ts +22 -5
- package/dist/Chart.d.ts.map +1 -1
- package/dist/{LayoutSession-DCTwvtwp.js → LayoutSession-Cu_2o34T.js} +18 -4
- package/dist/LayoutSession-Cu_2o34T.js.map +1 -0
- package/dist/LayoutSession-DgJNtsTx.cjs +2 -0
- package/dist/LayoutSession-DgJNtsTx.cjs.map +1 -0
- package/dist/i18n-82FrUIVP.cjs +2 -0
- package/dist/i18n-82FrUIVP.cjs.map +1 -0
- package/dist/{i18n-CCRcUMIR.js → i18n-LW1r5UcX.js} +81 -11
- package/dist/i18n-LW1r5UcX.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/widget/ChartWidget.d.ts +18 -5
- package/dist/widget/ChartWidget.d.ts.map +1 -1
- package/dist/widget/WidgetDrawingSettings.d.ts +33 -32
- package/dist/widget/WidgetDrawingSettings.d.ts.map +1 -1
- package/dist/widget/WidgetGoToDate.d.ts +72 -20
- package/dist/widget/WidgetGoToDate.d.ts.map +1 -1
- package/dist/widget/WidgetHotkeySheet.d.ts.map +1 -1
- package/dist/widget/WidgetIndicatorSettings.d.ts +1 -1
- package/dist/widget/WidgetIndicatorSettings.d.ts.map +1 -1
- package/dist/widget/WidgetObjectTree.d.ts +2 -0
- package/dist/widget/WidgetObjectTree.d.ts.map +1 -1
- package/dist/widget/WidgetSymbolSearch.d.ts +104 -20
- package/dist/widget/WidgetSymbolSearch.d.ts.map +1 -1
- package/dist/widget/calendarPopup.d.ts +2 -28
- package/dist/widget/calendarPopup.d.ts.map +1 -1
- package/dist/widget/drawingSettingsTabs.d.ts +42 -0
- package/dist/widget/drawingSettingsTabs.d.ts.map +1 -0
- package/dist/widget/formControls.d.ts +1 -1
- package/dist/widget/formControls.d.ts.map +1 -1
- package/dist/widget/index.cjs +537 -137
- package/dist/widget/index.cjs.map +1 -1
- package/dist/widget/index.js +2169 -1609
- package/dist/widget/index.js.map +1 -1
- package/dist/widget/keyTarget.d.ts +2 -2
- package/dist/widget/keyTarget.d.ts.map +1 -1
- package/dist/widget/locales/ar.d.ts.map +1 -1
- package/dist/widget/locales/cs.d.ts.map +1 -1
- package/dist/widget/locales/da.d.ts.map +1 -1
- package/dist/widget/locales/de.d.ts.map +1 -1
- package/dist/widget/locales/el.d.ts.map +1 -1
- package/dist/widget/locales/en.d.ts +40 -5
- package/dist/widget/locales/en.d.ts.map +1 -1
- package/dist/widget/locales/es.d.ts.map +1 -1
- package/dist/widget/locales/et.d.ts.map +1 -1
- package/dist/widget/locales/fa.d.ts.map +1 -1
- package/dist/widget/locales/fr.d.ts.map +1 -1
- package/dist/widget/locales/he.d.ts.map +1 -1
- package/dist/widget/locales/hu.d.ts.map +1 -1
- package/dist/widget/locales/id.d.ts.map +1 -1
- package/dist/widget/locales/index.cjs +1 -1
- package/dist/widget/locales/index.cjs.map +1 -1
- package/dist/widget/locales/index.js +1121 -141
- package/dist/widget/locales/index.js.map +1 -1
- package/dist/widget/locales/it.d.ts.map +1 -1
- package/dist/widget/locales/ja.d.ts.map +1 -1
- package/dist/widget/locales/ko.d.ts.map +1 -1
- package/dist/widget/locales/ms.d.ts.map +1 -1
- package/dist/widget/locales/nb.d.ts.map +1 -1
- package/dist/widget/locales/nl.d.ts.map +1 -1
- package/dist/widget/locales/pl.d.ts.map +1 -1
- package/dist/widget/locales/pt.d.ts.map +1 -1
- package/dist/widget/locales/ro.d.ts.map +1 -1
- package/dist/widget/locales/ru.d.ts.map +1 -1
- package/dist/widget/locales/sk.d.ts.map +1 -1
- package/dist/widget/locales/sv.d.ts.map +1 -1
- package/dist/widget/locales/th.d.ts.map +1 -1
- package/dist/widget/locales/tr.d.ts.map +1 -1
- package/dist/widget/locales/vi.d.ts.map +1 -1
- package/dist/widget/locales/zh.d.ts.map +1 -1
- package/dist/widget/locales/zhHant.d.ts.map +1 -1
- package/dist/widget/monthView.d.ts +56 -0
- package/dist/widget/monthView.d.ts.map +1 -0
- package/dist/widget/settingsControls.d.ts +5 -2
- package/dist/widget/settingsControls.d.ts.map +1 -1
- package/dist/widget/widgetCompare.d.ts +34 -0
- package/dist/widget/widgetCompare.d.ts.map +1 -0
- package/dist/widget/widgetFeatures.d.ts +1 -1
- package/dist/widget/widgetFeatures.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/LayoutSession-CHx7F_fj.cjs +0 -2
- package/dist/LayoutSession-CHx7F_fj.cjs.map +0 -1
- package/dist/LayoutSession-DCTwvtwp.js.map +0 -1
- package/dist/i18n-BXzSqL8c.cjs +0 -2
- package/dist/i18n-BXzSqL8c.cjs.map +0 -1
- package/dist/i18n-CCRcUMIR.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/it.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAe;AACf,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/it.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAe;AACf,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ja.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,UAAU;AACV,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ja.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,UAAU;AACV,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ko.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,UAAU;AACV,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ko.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,UAAU;AACV,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ms.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,oBAAoB;AACpB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ms.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,oBAAoB;AACpB,eAAO,MAAM,WAAW,EAAE,cAk3BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nb.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/nb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,mBAAmB;AACnB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"nb.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/nb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,mBAAmB;AACnB,eAAO,MAAM,WAAW,EAAE,cAk3BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/nl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,iBAAiB;AACjB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/nl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,iBAAiB;AACjB,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pl.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/pl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,aAAa;AACb,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"pl.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/pl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,aAAa;AACb,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/pt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,yBAAyB;AACzB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/pt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,yBAAyB;AACzB,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,aAAa;AACb,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,aAAa;AACb,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ru.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,cAAc;AACd,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ru.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/ru.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,cAAc;AACd,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sk.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/sk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,iBAAiB;AACjB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"sk.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/sk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,iBAAiB;AACjB,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sv.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/sv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,cAAc;AACd,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"sv.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/sv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,cAAc;AACd,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"th.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/th.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,cAAc;AACd,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"th.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/th.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,cAAc;AACd,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/tr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,aAAa;AACb,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"tr.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/tr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,aAAa;AACb,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vi.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/vi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,kBAAkB;AAClB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"vi.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/vi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,kBAAkB;AAClB,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/zh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,WAAW;AACX,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/zh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,WAAW;AACX,eAAO,MAAM,WAAW,EAAE,cA+1BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zhHant.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/zhHant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,WAAW;AACX,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"zhHant.d.ts","sourceRoot":"","sources":["../../../src/widget/locales/zhHant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,WAAW;AACX,eAAO,MAAM,gBAAgB,EAAE,cA+1B9B,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface CalendarLabels {
|
|
2
|
+
prevMonth: string;
|
|
3
|
+
nextMonth: string;
|
|
4
|
+
today: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CalendarDay {
|
|
7
|
+
year: number;
|
|
8
|
+
/** 0–11. */
|
|
9
|
+
month: number;
|
|
10
|
+
day: number;
|
|
11
|
+
}
|
|
12
|
+
/** The first and last day that can be picked, and today, YYYY-MM-DD; each may be left out. */
|
|
13
|
+
export interface DayLimits {
|
|
14
|
+
min?: string;
|
|
15
|
+
max?: string;
|
|
16
|
+
/** Today where the dates are read (the chart's time zone); the browser's when left out. */
|
|
17
|
+
today?: string;
|
|
18
|
+
}
|
|
19
|
+
/** The first day of the week where `locale` is spoken: 0 Sunday, 1 Monday. */
|
|
20
|
+
export declare function weekStart(locale: string): 0 | 1;
|
|
21
|
+
/** Six whole weeks around month `month` of `year`, from `firstDay` (0 Sunday, 1 Monday). */
|
|
22
|
+
export declare function monthGrid(year: number, month: number, firstDay: 0 | 1): CalendarDay[];
|
|
23
|
+
/**
|
|
24
|
+
* A month of days drawn by the widget: arrows to turn it, today marked, the
|
|
25
|
+
* chosen day marked, a button for today, and the keys a date grid takes. It
|
|
26
|
+
* only tells which day was picked; what that day goes into is its owner's
|
|
27
|
+
* business (a date field's calendar, the Go to dialog).
|
|
28
|
+
*/
|
|
29
|
+
export declare class MonthView {
|
|
30
|
+
private readonly locale;
|
|
31
|
+
private readonly onPick;
|
|
32
|
+
readonly element: HTMLDivElement;
|
|
33
|
+
private readonly grid;
|
|
34
|
+
private readonly titleEl;
|
|
35
|
+
private chosen;
|
|
36
|
+
private limits;
|
|
37
|
+
private today;
|
|
38
|
+
/** The month shown and the day the keys are on. */
|
|
39
|
+
private view;
|
|
40
|
+
private focusDay;
|
|
41
|
+
constructor(labels: CalendarLabels, locale: string, onPick: (value: string) => void);
|
|
42
|
+
/** Show the month of `value` (today's when it is no date), that day marked, days outside `limits` greyed. */
|
|
43
|
+
show(value: string, limits?: DayLimits): void;
|
|
44
|
+
/** Moves keyboard focus onto the days. */
|
|
45
|
+
focusGrid(): void;
|
|
46
|
+
private navButton;
|
|
47
|
+
private turn;
|
|
48
|
+
/** `day` moved inside the limits, so the keys never rest on a greyed day. */
|
|
49
|
+
private clamp;
|
|
50
|
+
private allowed;
|
|
51
|
+
private render;
|
|
52
|
+
private onKey;
|
|
53
|
+
private moveFocus;
|
|
54
|
+
private pick;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=monthView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monthView.d.ts","sourceRoot":"","sources":["../../src/widget/monthView.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,8FAA8F;AAC9F,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAQD,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAY/C;AAED,4FAA4F;AAC5F,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,WAAW,EAAE,CASrF;AAsBD;;;;;GAKG;AACH,qBAAa,SAAS;IAalB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAbzB,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,KAAK,CAAmB;IAChC,mDAAmD;IACnD,OAAO,CAAC,IAAI,CAAyB;IACrC,OAAO,CAAC,QAAQ,CAA2B;gBAGzC,MAAM,EAAE,cAAc,EACL,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAiDlD,6GAA6G;IAC7G,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,SAAc,GAAG,IAAI;IAUjD,0CAA0C;IAC1C,SAAS,IAAI,IAAI;IAIjB,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,IAAI;IAUZ,6EAA6E;IAC7E,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,MAAM;IAiCd,OAAO,CAAC,KAAK;IAoBb,OAAO,CAAC,SAAS;IAUjB,OAAO,CAAC,IAAI;CAGb"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Form controls shared by the settings dialogs: a labelled row, a
|
|
3
|
-
* number field, a colour picker and a select. Each calls
|
|
2
|
+
* Form controls shared by the settings dialogs: a labelled row, a ticked
|
|
3
|
+
* row, a switch, a number field, a colour picker and a select. Each calls
|
|
4
|
+
* back on change.
|
|
4
5
|
*/
|
|
5
6
|
/** A labelled control: clicking the label reaches the control. */
|
|
6
7
|
export declare function settingsRow(label: string, control: HTMLElement): HTMLLabelElement;
|
|
8
|
+
/** A box ticked or not, its label after it: the whole row ticks it. */
|
|
9
|
+
export declare function checkRow(label: string, value: boolean, onChange: (value: boolean) => void): HTMLLabelElement;
|
|
7
10
|
export declare function toggleSwitch(value: boolean, onChange: (value: boolean) => void): HTMLButtonElement;
|
|
8
11
|
export declare function numberInput(value: number, range: {
|
|
9
12
|
min?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settingsControls.d.ts","sourceRoot":"","sources":["../../src/widget/settingsControls.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"settingsControls.d.ts","sourceRoot":"","sources":["../../src/widget/settingsControls.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,kEAAkE;AAClE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,gBAAgB,CAQjF;AAED,uEAAuE;AACvE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,gBAAgB,CAY5G;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,iBAAiB,CAalG;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,EAC5D,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAChC,gBAAgB,CAkBlB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,gBAAgB,CAO5F;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EACpD,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAChC,iBAAiB,CAYnB;AAED,8EAA8E;AAC9E,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAW5C;AAoBD,wDAAwD;AACxD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAIjD;AAED,6CAA6C;AAC7C,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAI5D"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Translator } from './i18n.js';
|
|
2
|
+
import { CompareEntry } from './WidgetSymbolSearch.js';
|
|
3
|
+
/**
|
|
4
|
+
* How `addCompareSymbol` compares: percent change on the price scale, the
|
|
5
|
+
* price on a scale or in a pane of its own, the spread or ratio, or how the
|
|
6
|
+
* two correlate (by price or by returns).
|
|
7
|
+
*/
|
|
8
|
+
export type CompareWay = 'percent' | 'scale' | 'pane' | 'spread' | 'ratio' | 'correlation' | 'correlationLog';
|
|
9
|
+
export declare const COMPARE_WAYS: readonly CompareWay[];
|
|
10
|
+
export declare function isCompareWay(value: string): value is CompareWay;
|
|
11
|
+
/** The ways as the compare dialog offers them. */
|
|
12
|
+
export declare function compareWayOptions(t: Translator): {
|
|
13
|
+
id: CompareWay;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
/** A symbol on the chart in percent, over the main series. */
|
|
17
|
+
export interface CompareOverlay {
|
|
18
|
+
id: string;
|
|
19
|
+
symbol: string;
|
|
20
|
+
color: string;
|
|
21
|
+
}
|
|
22
|
+
/** What the compare list needs to know of an indicator on the chart. */
|
|
23
|
+
export interface CompareIndicator {
|
|
24
|
+
instanceId: string;
|
|
25
|
+
id: string;
|
|
26
|
+
params: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* What is compared with the chart's symbol: the percent overlays, then the
|
|
30
|
+
* indicators that read another symbol, each with how it compares.
|
|
31
|
+
* `ownPanes` holds the indicators drawn in a pane of their own.
|
|
32
|
+
*/
|
|
33
|
+
export declare function comparedEntries(overlays: readonly CompareOverlay[], indicators: readonly CompareIndicator[], ownPanes: ReadonlySet<string>, t: Translator): CompareEntry[];
|
|
34
|
+
//# sourceMappingURL=widgetCompare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetCompare.d.ts","sourceRoot":"","sources":["../../src/widget/widgetCompare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAE9G,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAAqF,CAAC;AAYpI,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAE/D;AAED,kDAAkD;AAClD,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,UAAU,GAAG;IAAE,EAAE,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAEpF;AAED,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAaD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,cAAc,EAAE,EACnC,UAAU,EAAE,SAAS,gBAAgB,EAAE,EACvC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAC7B,CAAC,EAAE,UAAU,GACZ,YAAY,EAAE,CAShB"}
|
|
@@ -7,7 +7,7 @@ import { DrawingMenuAction } from './drawingMenu.js';
|
|
|
7
7
|
* its menu entries, its command, its keys); a dotted name is one place.
|
|
8
8
|
* The names are a contract: new ones are added, none is renamed.
|
|
9
9
|
*/
|
|
10
|
-
export declare const WIDGET_FEATURES: readonly ["toolbar", "sidebar", "statusBar", "alerts", "objectTree", "symbolInfo", "symbolSearch", "settings", "indicatorSettings", "drawingSettings", "dataWindow", "commandPalette", "hotkeySheet", "goToDate", "replay", "screenshot", "copyImage", "shareView", "autoFib", "themeToggle", "fullscreen", "accountPanel", "orderTicket", "bracketOrders", "depthLadder", "layouts", "indicatorTemplates", "compare", "indicatorLegend", "navigation", "customTimeframes", "intervalTyping", "dragDropImport", "hotkeys", "toasts", "toolbar.symbol", "toolbar.symbolInfo", "toolbar.timeframes", "toolbar.timeframeMenu", "toolbar.chartType", "toolbar.indicators", "toolbar.layouts", "toolbar.replay", "toolbar.bracketOrders", "toolbar.depthLadder", "toolbar.accountPanel", "toolbar.objectTree", "toolbar.alerts", "toolbar.screenshot", "toolbar.settings", "toolbar.themeToggle", "toolbar.fullscreen", "toolbar.compare", "toolbar.undo", "toolbar.redo", "toolbar.trade", "sidebar.cursor", "sidebar.favorites", "sidebar.lines", "sidebar.fibonacci", "sidebar.patterns", "sidebar.forecasting", "sidebar.annotation", "sidebar.style", "sidebar.magnet", "sidebar.eraser", "sidebar.zoomArea", "sidebar.stayInDrawing", "sidebar.undo", "sidebar.redo", "sidebar.clear", "sidebar.lockAll", "sidebar.hideAll", "statusBar.range", "statusBar.goToDate", "statusBar.market", "statusBar.connection", "statusBar.symbol", "statusBar.clock", "statusBar.scale", "statusBar.rangeTimeframe", "indicatorLegend.values", "indicatorLegend.visibility", "indicatorLegend.settings", "indicatorLegend.remove", "indicatorLegend.more", "pane.move", "pane.collapse", "pane.maximize", "navigation.zoom", "navigation.scroll", "navigation.reset", "menu.chart", "menu.chart.alert", "menu.chart.order", "menu.chart.orderTicket", "menu.chart.horizontalLine", "menu.chart.resetView", "menu.chart.drawings", "menu.chart.exportData", "menu.chart.settings", "menu.chart.scale", "menu.chart.goToDate", "menu.chart.paneScale", "menu.priceAxisAdd", "menu.chart.indicators", "menu.chart.timezone", "menu.drawing", "menu.drawing.settings", "menu.drawing.alert", "menu.drawing.order", "menu.drawing.group", "menu.drawing.lock", "menu.drawing.hide", "menu.drawing.duplicate", "menu.drawing.delete", "selectionToolbar", "hotkeys.commandPalette", "hotkeys.symbolSearch", "hotkeys.save", "hotkeys.tools", "hotkeys.invertScale", "hotkeys.goToDate", "hotkeys.help", "hotkeys.resetView"];
|
|
10
|
+
export declare const WIDGET_FEATURES: readonly ["toolbar", "sidebar", "statusBar", "alerts", "objectTree", "symbolInfo", "symbolSearch", "settings", "indicatorSettings", "drawingSettings", "dataWindow", "commandPalette", "hotkeySheet", "goToDate", "replay", "screenshot", "copyImage", "shareView", "autoFib", "themeToggle", "fullscreen", "accountPanel", "orderTicket", "bracketOrders", "depthLadder", "layouts", "indicatorTemplates", "compare", "indicatorLegend", "navigation", "customTimeframes", "intervalTyping", "symbolTyping", "dragDropImport", "hotkeys", "toasts", "toolbar.symbol", "toolbar.symbolInfo", "toolbar.timeframes", "toolbar.timeframeMenu", "toolbar.chartType", "toolbar.indicators", "toolbar.layouts", "toolbar.replay", "toolbar.bracketOrders", "toolbar.depthLadder", "toolbar.accountPanel", "toolbar.objectTree", "toolbar.alerts", "toolbar.screenshot", "toolbar.settings", "toolbar.themeToggle", "toolbar.fullscreen", "toolbar.compare", "toolbar.undo", "toolbar.redo", "toolbar.trade", "sidebar.cursor", "sidebar.favorites", "sidebar.lines", "sidebar.fibonacci", "sidebar.patterns", "sidebar.forecasting", "sidebar.annotation", "sidebar.style", "sidebar.magnet", "sidebar.eraser", "sidebar.zoomArea", "sidebar.stayInDrawing", "sidebar.undo", "sidebar.redo", "sidebar.clear", "sidebar.lockAll", "sidebar.hideAll", "statusBar.range", "statusBar.goToDate", "statusBar.market", "statusBar.connection", "statusBar.symbol", "statusBar.clock", "statusBar.scale", "statusBar.rangeTimeframe", "indicatorLegend.values", "indicatorLegend.visibility", "indicatorLegend.settings", "indicatorLegend.remove", "indicatorLegend.more", "pane.move", "pane.collapse", "pane.maximize", "navigation.zoom", "navigation.scroll", "navigation.reset", "menu.chart", "menu.chart.alert", "menu.chart.order", "menu.chart.orderTicket", "menu.chart.horizontalLine", "menu.chart.resetView", "menu.chart.drawings", "menu.chart.exportData", "menu.chart.settings", "menu.chart.scale", "menu.chart.goToDate", "menu.chart.paneScale", "menu.priceAxisAdd", "menu.chart.indicators", "menu.chart.timezone", "menu.drawing", "menu.drawing.settings", "menu.drawing.alert", "menu.drawing.order", "menu.drawing.group", "menu.drawing.lock", "menu.drawing.hide", "menu.drawing.duplicate", "menu.drawing.delete", "selectionToolbar", "hotkeys.commandPalette", "hotkeys.symbolSearch", "hotkeys.save", "hotkeys.tools", "hotkeys.invertScale", "hotkeys.goToDate", "hotkeys.help", "hotkeys.resetView"];
|
|
11
11
|
export type WidgetFeature = (typeof WIDGET_FEATURES)[number];
|
|
12
12
|
/** Switches to turn on (`true`) or off (`false`), by name. */
|
|
13
13
|
export type WidgetFeatures = Partial<Record<WidgetFeature, boolean>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetFeatures.d.ts","sourceRoot":"","sources":["../../src/widget/widgetFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"widgetFeatures.d.ts","sourceRoot":"","sources":["../../src/widget/widgetFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,43EAwClB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,8DAA8D;AAC9D,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;AACrE,+BAA+B;AAC/B,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;AAI1E,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;CAiB0B,CAAC;AAE9D,KAAK,aAAa,GAAG;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,OAAO,sBAAsB,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC;AAEvF,wGAAwG;AACxG,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,SAAS,aAAa,EAAE,CAAC,CAmC3F,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,SAAS,aAAa,EAAE,CAAC,CAc/F,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CASpE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAYjE;AAED,2GAA2G;AAC3G,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,kBAAkB,CAOlH;AAED,0EAA0E;AAC1E,wBAAgB,WAAW,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAE7D;AAeD,0HAA0H;AAC1H,wBAAgB,gBAAgB,IAAI,MAAM,CAOzC;AAED,+FAA+F;AAC/F,wBAAgB,QAAQ,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,GAAG,IAAI,CAEzE;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,aAAa,EAAE,GAAG,MAAM,CAE1D;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEpE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CA4BvG;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,MAAM,EACjD,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,aAAa,EAAE,CAAC,CAAC,EAC1D,KAAK,EAAE,kBAAkB,GACxB,gBAAgB,EAAE,CAepB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradecanvas/chart",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "High-performance canvas trading chart with built-in indicators, drawing tools, and real-time streaming. Zero external dependencies.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"README.md"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@tradecanvas/commons": "1.
|
|
62
|
-
"@tradecanvas/core": "1.
|
|
61
|
+
"@tradecanvas/commons": "1.39.0",
|
|
62
|
+
"@tradecanvas/core": "1.39.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"jsdom": "^25.0.1",
|