dhx-suite 7.3.13 → 8.0.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.
Files changed (58) hide show
  1. package/codebase/suite.min.css +1 -1
  2. package/codebase/suite.min.js +3 -3
  3. package/codebase/types/ts-all/sources/entry.d.ts +1 -1
  4. package/codebase/types/ts-chart/index.d.ts +1 -0
  5. package/codebase/types/ts-chart/sources/Chart.d.ts +8 -6
  6. package/codebase/types/ts-chart/sources/Export.d.ts +10 -0
  7. package/codebase/types/ts-chart/sources/Legend.d.ts +1 -0
  8. package/codebase/types/ts-chart/sources/ProChart.d.ts +7 -0
  9. package/codebase/types/ts-chart/sources/series/CalendarHeatMap.d.ts +20 -0
  10. package/codebase/types/ts-chart/sources/series/index.d.ts +2 -0
  11. package/codebase/types/ts-chart/sources/shapes/legend.d.ts +1 -0
  12. package/codebase/types/ts-chart/sources/types.d.ts +42 -10
  13. package/codebase/types/ts-colorpicker/sources/types.d.ts +2 -0
  14. package/codebase/types/ts-combobox/sources/types.d.ts +2 -0
  15. package/codebase/types/ts-common/dom.d.ts +2 -0
  16. package/codebase/types/ts-common/html.d.ts +2 -0
  17. package/codebase/types/ts-common/types.d.ts +1 -0
  18. package/codebase/types/ts-data/sources/types.d.ts +8 -4
  19. package/codebase/types/ts-form/sources/Form.d.ts +1 -1
  20. package/codebase/types/ts-form/sources/ProForm.d.ts +1 -2
  21. package/codebase/types/ts-form/sources/elements/checkbox.d.ts +1 -0
  22. package/codebase/types/ts-form/sources/elements/checkboxGroup.d.ts +6 -6
  23. package/codebase/types/ts-form/sources/elements/radioGroup.d.ts +6 -6
  24. package/codebase/types/ts-form/sources/elements/radiobutton.d.ts +9 -1
  25. package/codebase/types/ts-form/sources/elements/select.d.ts +3 -3
  26. package/codebase/types/ts-form/sources/elements/sliderform.d.ts +0 -1
  27. package/codebase/types/ts-form/sources/elements/textarea.d.ts +0 -1
  28. package/codebase/types/ts-form/sources/elements/timeinput.d.ts +1 -0
  29. package/codebase/types/ts-form/sources/helper.d.ts +1 -1
  30. package/codebase/types/ts-form/sources/types.d.ts +55 -36
  31. package/codebase/types/ts-grid/sources/Grid.d.ts +4 -5
  32. package/codebase/types/ts-grid/sources/ProGrid.d.ts +1 -0
  33. package/codebase/types/ts-grid/sources/Selection.d.ts +5 -1
  34. package/codebase/types/ts-grid/sources/types.d.ts +51 -5
  35. package/codebase/types/ts-grid/sources/ui/Cells.d.ts +10 -10
  36. package/codebase/types/ts-grid/sources/ui/FixedCols.d.ts +3 -3
  37. package/codebase/types/ts-grid/sources/ui/FixedRows.d.ts +2 -2
  38. package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +21 -0
  39. package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +22 -0
  40. package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +20 -0
  41. package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +16 -0
  42. package/codebase/types/ts-grid/sources/ui/render.d.ts +4 -1
  43. package/codebase/types/ts-layout/sources/Cell.d.ts +10 -0
  44. package/codebase/types/ts-layout/sources/Layout.d.ts +3 -0
  45. package/codebase/types/ts-layout/sources/types.d.ts +5 -0
  46. package/codebase/types/ts-message/sources/message.d.ts +3 -1
  47. package/codebase/types/ts-navbar/sources/types.d.ts +16 -0
  48. package/codebase/types/ts-popup/sources/Popup.d.ts +1 -0
  49. package/codebase/types/ts-popup/sources/types.d.ts +2 -0
  50. package/codebase/types/ts-slider/sources/types.d.ts +2 -0
  51. package/codebase/types/ts-tabbar/sources/Tabbar.d.ts +1 -0
  52. package/codebase/types/ts-timepicker/sources/Timepicker.d.ts +3 -1
  53. package/codebase/types/ts-timepicker/sources/types.d.ts +2 -0
  54. package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +1 -0
  55. package/package.json +1 -1
  56. package/readme.txt +1 -1
  57. package/whatsnew.txt +160 -0
  58. package/codebase/types/ts-form/sources/elements/proCombo.d.ts +0 -6
@@ -5,6 +5,7 @@ export declare class Layout extends Cell implements ILayout {
5
5
  protected _all: any;
6
6
  protected _cells: ICell[];
7
7
  protected _root: ILayout;
8
+ protected _progress: boolean;
8
9
  private _xLayout;
9
10
  private _isViewLayout;
10
11
  constructor(parent: any, config: ILayoutConfig);
@@ -18,6 +19,8 @@ export declare class Layout extends Cell implements ILayout {
18
19
  forEach(callback: LayoutCallback, parent?: string, level?: number): void;
19
20
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
20
21
  cell(id: string): any;
22
+ progressShow(): void;
23
+ progressHide(): void;
21
24
  protected _getCss(content?: boolean): string;
22
25
  private _parseConfig;
23
26
  protected _createCell(cell: ILayoutConfig): ICell;
@@ -31,6 +31,7 @@ export interface ICellConfig {
31
31
  tab?: string;
32
32
  tabCss?: string;
33
33
  full?: boolean;
34
+ progressDefault?: boolean;
34
35
  init?: (c: ICell, cfg: ICellConfig | IView) => void;
35
36
  $fixed?: boolean;
36
37
  $autoWidth?: boolean;
@@ -65,6 +66,10 @@ export interface ICell extends IView {
65
66
  collapse(): void;
66
67
  expand(): void;
67
68
  toggle(): void;
69
+ detach(): void;
70
+ progressShow(): void;
71
+ progressHide(): void;
72
+ isVisibleProgress(): boolean;
68
73
  }
69
74
  export interface IProCell extends ICell {
70
75
  scrollView: ScrollView;
@@ -1,2 +1,4 @@
1
1
  import { IMessageProps } from "./types";
2
- export declare function message(props: string | IMessageProps): void;
2
+ export declare function message(props: string | IMessageProps): {
3
+ close: () => void;
4
+ };
@@ -1,6 +1,8 @@
1
1
  import { Id } from "../../ts-common/types";
2
2
  import { IEventSystem } from "../../ts-common/events";
3
3
  import { DataEvents, IDataEventsHandlersMap, IDataItem, TreeCollection } from "../../ts-data";
4
+ import { Calendar, ViewMode } from "../../ts-calendar";
5
+ import { Popup } from "../../ts-popup";
4
6
  export { DataEvents } from "../../ts-data";
5
7
  export interface IHtmlExtendable {
6
8
  html?: string;
@@ -22,6 +24,7 @@ export interface INavbarConfig {
22
24
  menuCss?: string;
23
25
  data?: any[] | TreeCollection<any>;
24
26
  rootId?: string;
27
+ $name?: string;
25
28
  }
26
29
  export interface INavbar {
27
30
  data: TreeCollection;
@@ -164,8 +167,21 @@ export interface IDatePicker extends IItem {
164
167
  width?: string;
165
168
  label?: string;
166
169
  hiddenLabel?: boolean;
170
+ editable?: boolean;
167
171
  value?: string | Date;
168
172
  dateFormat?: string;
173
+ valueFormat?: "string" | "date";
174
+ date?: Date | string;
175
+ mark?: (a: Date) => string;
176
+ disabledDates?: (a: Date) => boolean;
177
+ weekStart?: "saturday" | "sunday" | "monday";
178
+ weekNumbers?: boolean;
179
+ mode?: ViewMode;
180
+ timePicker?: boolean;
181
+ timeFormat?: 24 | 12;
182
+ thisMonthOnly?: boolean;
183
+ $calendar?: Calendar;
184
+ $popup?: Popup;
169
185
  }
170
186
  export declare enum NavigationBarEvents {
171
187
  inputCreated = "inputCreated",
@@ -22,6 +22,7 @@ export declare class Popup extends View implements IPopup {
22
22
  getContainer(): HTMLElement;
23
23
  toVDOM(): any;
24
24
  destructor(): void;
25
+ private _setTheme;
25
26
  private _setPopupSize;
26
27
  private _detectOuterClick;
27
28
  private _hide;
@@ -16,6 +16,7 @@ export interface IPopup {
16
16
  export interface IPopupConfig {
17
17
  css?: string;
18
18
  events?: IEventSystem<any>;
19
+ theme?: HTMLElement | string;
19
20
  }
20
21
  export declare enum PopupEvents {
21
22
  beforeHide = "beforeHide",
@@ -29,6 +30,7 @@ export interface IShowConfig {
29
30
  auto?: boolean;
30
31
  mode?: Position;
31
32
  indent?: number | string;
33
+ theme?: string | HTMLElement;
32
34
  }
33
35
  export interface IPopupEventHandlersMap {
34
36
  [key: string]: (...args: any[]) => any;
@@ -13,6 +13,7 @@ export interface ISlider {
13
13
  blur(): void;
14
14
  }
15
15
  export declare enum SliderEvents {
16
+ beforeChange = "beforeChange",
16
17
  change = "change",
17
18
  focus = "focus",
18
19
  blur = "blur",
@@ -22,6 +23,7 @@ export declare enum SliderEvents {
22
23
  }
23
24
  export interface ISliderEventHandlersMap {
24
25
  [key: string]: (...args: any[]) => any;
26
+ [SliderEvents.beforeChange]: (value: number, oldValue: number, isRange: boolean) => void;
25
27
  [SliderEvents.change]: (value: number, oldValue: number, isRange: boolean) => void;
26
28
  [SliderEvents.focus]: () => void;
27
29
  [SliderEvents.blur]: () => void;
@@ -9,6 +9,7 @@ export declare class Tabbar extends Layout implements ITabbar {
9
9
  private _beforeScrollSize;
10
10
  private _afterScrollSize;
11
11
  private _keyManager;
12
+ private _tabFontSize;
12
13
  constructor(container: any, config: ITabbarConfig);
13
14
  toVDOM(): any;
14
15
  destructor(): void;
@@ -13,14 +13,16 @@ export declare class Timepicker extends View implements ITimepicker {
13
13
  private _handlers;
14
14
  private _outerHandlers;
15
15
  constructor(container: HTMLElement | string, config?: ITimepickerConfig);
16
- getValue<T extends boolean = false>(asOBject?: T): T extends true ? ITimeObject : string;
16
+ getValue<T extends boolean = false>(asObject?: T): T extends true ? ITimeObject : string;
17
17
  setValue(value: Date | number | string | any[] | ITimeObject): void;
18
18
  clear(): void;
19
19
  destructor(): void;
20
20
  getRootView(): any;
21
+ private _getValue;
21
22
  private _setValue;
22
23
  private _initUI;
23
24
  private _initHandlers;
24
25
  private _initEvents;
25
26
  private _draw;
27
+ private _isTimeObj;
26
28
  }
@@ -25,6 +25,7 @@ export interface ITimeObject {
25
25
  AM?: boolean;
26
26
  }
27
27
  export declare enum TimepickerEvents {
28
+ beforeChange = "beforeChange",
28
29
  change = "change",
29
30
  beforeApply = "beforeApply",
30
31
  afterApply = "afterApply",
@@ -39,6 +40,7 @@ export declare enum TimepickerEvents {
39
40
  }
40
41
  export interface ITimepickerHandlersMap {
41
42
  [key: string]: (...args: any[]) => any;
43
+ [TimepickerEvents.beforeChange]: (value: string | ITimeObject) => boolean | void;
42
44
  [TimepickerEvents.change]: (value: string | ITimeObject) => void;
43
45
  [TimepickerEvents.beforeApply]: (value: string | ITimeObject) => boolean | void;
44
46
  [TimepickerEvents.afterApply]: (value: string | ITimeObject) => void;
@@ -19,6 +19,7 @@ export declare class Toolbar extends Navbar<IToolbarElement> implements IToolbar
19
19
  constructor(element?: string | HTMLElement, config?: any);
20
20
  getState(id?: Id): IState;
21
21
  setState(state: IState): void;
22
+ setFocus(id: Id): void;
22
23
  protected _customHandlers(): {
23
24
  input: (e: Event) => void;
24
25
  tooltip: (e: MouseEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-suite",
3
- "version": "7.3.13",
3
+ "version": "8.0.0",
4
4
  "description": "dhtmlxSuite widget",
5
5
  "homepage":"https://docs.dhtmlx.com",
6
6
  "license":"GPL",
package/readme.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
3
 
4
- dhtmlxSuite v.7.3.13 Standard
4
+ dhtmlxSuite v.8.0.0 Standard
5
5
  This software is covered by GPL-2.0 License. Usage without proper license is prohibited.
6
6
 
7
7
  (c) XB Software.
package/whatsnew.txt CHANGED
@@ -1,3 +1,163 @@
1
+ # Version 8.0.0 (February 24, 2023)
2
+
3
+ ### New functionality
4
+
5
+ #### Styling
6
+
7
+ - New "light", "contrast-light", "dark" and "contrast-dark" color themes
8
+ - The ability to change base themes or configure your own color theme
9
+ - New Theme configurator
10
+
11
+ #### Chart
12
+
13
+ - New Calendar heatmap chart (Pro version)
14
+ - The ability to export the Chart data to PDF and PNG
15
+
16
+ #### Colorpicker
17
+
18
+ - New "beforeChange" event
19
+
20
+ #### Combobox
21
+
22
+ - New "beforeChange" event
23
+
24
+ #### Slider
25
+
26
+ - New "beforeChange" event
27
+
28
+ #### Timepicker
29
+
30
+ - New "beforeChange" event
31
+
32
+ #### Form
33
+
34
+ - New "beforeChange" event
35
+
36
+ #### Form controls
37
+ - Datepicker "beforeChange" event
38
+ - Checkbox "beforeChange" event
39
+ - CheckboxGroup "beforeChange" event
40
+ - Colorpicker "beforeChange" event
41
+ - Combo "beforeChange" event
42
+ - Input "beforeChange" event
43
+ - Radiogroup "beforeChange" event
44
+ - Slider "beforeChange" event
45
+ - Textarea "beforeChange" event
46
+ - Timepicker "beforeChange" event
47
+ - Select "beforeChange" and "beforeChangeOptions" events
48
+
49
+ #### Grid
50
+
51
+ - Now the user can clear date values in the cell
52
+ - The ability to configure drag-n-drop of multiple rows
53
+ - The ability to control the process of data filtering (new "beforeFilter" event)
54
+ - The ability to configure the "datePicker" editor of a cell by passing most of properties of DHTMLX Calendar to the "columns.editorConfig" property
55
+ - The ability to fix bottom rows and right columns using the corresponding "bottomSplit" and "rightSplit" properties
56
+
57
+ #### Layout
58
+
59
+ - The ability to show a progress bar for empty cells by default (new "progressDefault" property of a Layout cell)
60
+ - The ability to hide/show a progress bar via API calls:
61
+ - new methods of Layout: "progressShow()" and "progressHide()"
62
+ - new method of a Layout cell: "progressShow()" and "progressHide()"
63
+ - The ability to detach a component or HTML content from a cell (new "detach()" method of a Layout cell)
64
+
65
+ #### Message
66
+
67
+ - The ability to close a message box (new "close()" method)
68
+ - The ability to set margin between the node and tooltip (new "margin" property of the tooltip)
69
+
70
+ #### Toolbar
71
+
72
+ - DatePicker control. The ability to let the user enter the date via the input (new "editable" property)
73
+ - DatePicker control. New properties: "valueFormat", "disabledDates", "mark", "mode", "thisMonthOnly", "timeFormat", "timePicker", "weekNumbers" and "weekStart"
74
+ - The ability to set focus on an Input (new "setFocus()" method)
75
+
76
+ #### TreeCollection
77
+
78
+ - New "beforeItemLoad" and "afterItemLoad" events
79
+
80
+ #### TreeGrid
81
+
82
+ - Now the user can clear date values in the cell
83
+ - The ability to control the process of data filtering (new "beforeFilter" event)
84
+ - The ability to configure the datePicker editor of a cell by passing most of properties of DHTMLX Calendar to the "columns.editorConfig" property
85
+ - The ability to fix bottom rows and right columns using the corresponding "bottomSplit" and "rightSplit" properties
86
+
87
+ ### Updates
88
+
89
+ #### Combobox
90
+
91
+ - The "addOption()" method is updated (new "join" parameter)
92
+
93
+ #### Form
94
+
95
+ - New "id" parameter is added for Form events: "afterHide", "afterShow", "beforeHide" and "beforeShow"
96
+
97
+ #### Form. CheckboxGroup control
98
+
99
+ - Now it is possible to hide/show not only of the whole control but also of its separate checkboxes:
100
+ - new "id" parameter is added for CheckboxGroup methods: "hide()" and "show()"
101
+ - new "id" parameter is added for CheckboxGroup events: "afterHide", "afterShow", "beforeHide" and "beforeShow"
102
+
103
+ - Now it is possible to enable/disable and check visibility not only of the whole control but also of its separate checkboxes:
104
+ - new "id" parameter is added for CheckboxGroup methods: "enable()", "disable()", "isVisible()" and "isDisabled()"
105
+
106
+ #### Form. RadioGroup control
107
+
108
+ - Now it is possible to hide/show not only of the whole control but also of its separate radio buttons:
109
+ - new "id" parameter is added for RadioGroup methods: "hide()" and "show()"
110
+ - new "id" parameter is added for RadioGroup events: "afterHide", "afterShow", "beforeHide" and "beforeShow"
111
+
112
+ - Now it is possible to enable/disable and check visibility not only of the whole control but also of its separate radio buttons:
113
+ - new "id" parameter is added for RadioGroup methods: "enable()", "disable()", "isVisible()" and "isDisabled()"
114
+
115
+ #### Form. Select control
116
+
117
+ - Now it is possible to enable/disable and check visibility not only of the whole control but also of its separate radio buttons:
118
+ - new "value" parameter is added for Select methods: "enable()", "disable()" and "isDisabled()"
119
+
120
+ #### Form. Container control
121
+
122
+ - The "value" parameter is removed from Container events: "afterhide", "aftershow", "beforehide" and "beforeshow"
123
+
124
+ #### Form. Spacer control
125
+
126
+ - The "value" parameter is removed from Spacer events: "afterhide", "aftershow", "beforehide" and "beforeshow"
127
+
128
+ #### Grid/TreeGrid
129
+
130
+ - The "getHeaderFilter()" method is updated. Now the method returns an object with a set of methods: "blur()", "clear()", "focus()", "getFilter()" and "setValue()"
131
+ - Now the sorting icon will also appear after sorting data via the "data.sort()" method
132
+
133
+ #### Message
134
+
135
+ - The "position" property of the tooltip is extended by the "left" and "top" values
136
+
137
+ ### Fixes
138
+
139
+ - Grid. Fix the issue related to the "complex" selection that works incorrectly with the multiselection (shift selection)
140
+ - Grid/TreeGrid. Fix the issue related to the Drag'n'drop and highlighting the dropping area
141
+ - Grid/TreeGrid. Fix the issue related to incorrect display rows that available for dropping
142
+ - Tree. Fix the issue related to templated item that cannot be edited
143
+
144
+ # Version 7.3.14 (January 17, 2023)
145
+
146
+ ### Fixes
147
+
148
+ - Grid. Fix the issue which caused "inputFilter"/"selectFilter" to stop working in some browsers
149
+ - Grid. Fix the issue with automatic adjustment of the column's width for header or footer consisting of several rows
150
+ - Grid. Fix the issue with calculation of the height for frozen columns in Grid with horizontal and vertical scrollbars
151
+ - Grid. Fix work of drag-n-drop for columns
152
+ - Grid. Fix work of the "headerSort:false" property specified for the header consisting of the spanned rows
153
+ - Grid. Now it is possible to select several cells/rows when using "multiselection" together with "selection:"complex""
154
+ - Grid. Now the "eventHandlers" property works for frozen columns
155
+ - TreeGrid. Fix the display of selection for spanned cells
156
+ - TreeGrid. Fix the issue with display of total values in the footer of the exported .csv / .xlsx file
157
+ - TreeGrid. Fix the issue with editing of spanned cells
158
+ - TreeGrid. Now it is possible to collapse/expand the content of the first cell of the first column even if it is included into the colspan
159
+ - Fix issues with AJAX helper
160
+
1
161
  # Version 7.3.13 (December 14, 2022)
2
162
 
3
163
  ### Fixes
@@ -1,6 +0,0 @@
1
- import { Combo } from "./combo";
2
- import { IComboConfig } from "../types";
3
- export declare class ProCombo extends Combo {
4
- constructor(container: any, config: IComboConfig);
5
- protected _initView(config: IComboConfig): void;
6
- }