dhx-suite 7.3.7 → 7.3.9

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.
@@ -25,9 +25,9 @@ export declare class Combobox extends View implements ICombobox {
25
25
  disable(): void;
26
26
  isDisabled(): boolean;
27
27
  clear(): void | boolean;
28
- getValue<T extends boolean = false>(asArray?: T): T extends true ? string[] : string;
28
+ getValue<T extends boolean = false>(asArray?: T): T extends true ? Id[] : Id;
29
29
  setValue(ids: Id[] | Id): void | boolean;
30
- addOption(value: string): void;
30
+ addOption(value: string, join?: boolean): void;
31
31
  destructor(): void;
32
32
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
33
33
  setState(state: State): void;
@@ -21,7 +21,7 @@ export interface IComboboxConfig {
21
21
  helpMessage?: string;
22
22
  hiddenLabel?: boolean;
23
23
  css?: string;
24
- value?: string | string[];
24
+ value?: Id | Id[];
25
25
  newOptions?: boolean;
26
26
  htmlEnable?: boolean;
27
27
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
@@ -73,9 +73,9 @@ export interface ICombobox {
73
73
  clear(): void;
74
74
  focus(): void;
75
75
  blur(): void;
76
- getValue(asArray?: boolean): Id[] | string;
76
+ getValue(asArray?: boolean): Id[] | Id;
77
77
  setValue(ids: Id[] | Id): void;
78
- addOption(value: string): void;
78
+ addOption(value: string, join?: boolean): void;
79
79
  /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
80
80
  setState(state: State): void;
81
81
  }
@@ -2,6 +2,7 @@ import { Combobox } from "../../../ts-combobox";
2
2
  import { IEventSystem } from "../../../ts-common/events";
3
3
  import { Label } from "./helper/label";
4
4
  import { IComboConfig, ItemEvent, IComboEventHandlersMap, ICombo, IComboProps } from "../types";
5
+ import { Id } from "../../../ts-common/types";
5
6
  export declare class Combo extends Label implements ICombo {
6
7
  config: IComboConfig;
7
8
  combobox: Combobox;
@@ -21,9 +22,9 @@ export declare class Combo extends Label implements ICombo {
21
22
  enable(): void;
22
23
  isDisabled(): boolean;
23
24
  clear(): void;
24
- getValue(): string | string[];
25
- setValue(value: string | string[]): void;
26
- validate(silent?: boolean, validateValue?: string | string[]): boolean;
25
+ getValue(): Id | Id[];
26
+ setValue(value: Id | Id[]): void;
27
+ validate(silent?: boolean, validateValue?: Id | Id[]): boolean;
27
28
  clearValidate(): void;
28
29
  getWidget(): Combobox;
29
30
  focus(): void;
@@ -323,7 +323,7 @@ export interface IComboProps extends IBaseLayoutItem {
323
323
  export interface IComboConfig extends IItem, IComboboxConfig {
324
324
  type?: "combo";
325
325
  required?: boolean;
326
- value?: string | string[];
326
+ value?: Id | Id[];
327
327
  data?: any[];
328
328
  validation?: ValidationComboFn;
329
329
  }
@@ -338,10 +338,10 @@ export interface ICombo {
338
338
  disable(): void;
339
339
  enable(): void;
340
340
  isDisabled(): boolean;
341
- validate(silent?: boolean, validateValue?: string | string[]): boolean;
341
+ validate(silent?: boolean, validateValue?: Id | Id[]): boolean;
342
342
  clearValidate(): void;
343
- setValue(value: string | string[]): void;
344
- getValue(): string | string[];
343
+ setValue(value: Id | Id[]): void;
344
+ getValue(): Id | Id[];
345
345
  focus(): void;
346
346
  blur(): void;
347
347
  clear(): void;
@@ -933,16 +933,16 @@ export interface IColorPickerEventHandlersMap extends IBaseHandlersMap {
933
933
  [ItemEvent.afterChangeProperties]: (properties: IColorpickerProps) => void;
934
934
  }
935
935
  export interface IComboEventHandlersMap extends IBaseHandlersMap {
936
- [ItemEvent.change]: (value: string | string[]) => void;
937
- [ItemEvent.focus]: (value: string | string[]) => void;
938
- [ItemEvent.blur]: (value: string | string[]) => void;
939
- [ItemEvent.keydown]: (event: KeyboardEvent, id: string | undefined) => void;
940
- [ItemEvent.beforeHide]: (value: string | string[], init: boolean) => boolean | void;
941
- [ItemEvent.beforeShow]: (value: string | string[]) => boolean | void;
942
- [ItemEvent.afterHide]: (value: string | string[], init: boolean) => void;
943
- [ItemEvent.afterShow]: (value: string | string[]) => void;
944
- [ItemEvent.beforeValidate]: (value: string | string[]) => boolean | void;
945
- [ItemEvent.afterValidate]: (value: string | string[], isValidate: boolean) => void;
936
+ [ItemEvent.change]: (value: Id | Id[]) => void;
937
+ [ItemEvent.focus]: (value: Id | Id[]) => void;
938
+ [ItemEvent.blur]: (value: Id | Id[]) => void;
939
+ [ItemEvent.keydown]: (event: KeyboardEvent, id: Id | undefined) => void;
940
+ [ItemEvent.beforeHide]: (value: Id | Id[], init: boolean) => boolean | void;
941
+ [ItemEvent.beforeShow]: (value: Id | Id[]) => boolean | void;
942
+ [ItemEvent.afterHide]: (value: Id | Id[], init: boolean) => void;
943
+ [ItemEvent.afterShow]: (value: Id | Id[]) => void;
944
+ [ItemEvent.beforeValidate]: (value: Id | Id[]) => boolean | void;
945
+ [ItemEvent.afterValidate]: (value: Id | Id[], isValidate: boolean) => void;
946
946
  [ItemEvent.beforeChangeProperties]: (properties: IComboProps) => boolean | void;
947
947
  [ItemEvent.afterChangeProperties]: (properties: IComboProps) => void;
948
948
  }
@@ -1116,7 +1116,7 @@ export declare type ValidationInputFn = (input: string | number) => boolean;
1116
1116
  export declare type ValidationDateInput = (input: string | Date) => boolean;
1117
1117
  export declare type ValidationTimepickerFn = (input: string | ITimeObject) => boolean;
1118
1118
  export declare type ValidationSelectFn = (input: string | number | boolean) => boolean;
1119
- export declare type ValidationComboFn = (input: string | string[]) => boolean;
1119
+ export declare type ValidationComboFn = (input: Id | Id[], text: string | string[]) => boolean;
1120
1120
  export declare enum ClearMethod {
1121
1121
  value = "value",
1122
1122
  validation = "validation"
@@ -43,7 +43,7 @@ export declare class Grid extends View implements IGrid {
43
43
  getCellRect(rowId: Id, colId: Id): ICellRect;
44
44
  getColumn(colId: Id): ICol;
45
45
  addSpan(spanObj: ISpan): void;
46
- getSpan(rowId: Id, colId: Id): ISpan;
46
+ getSpan(rowId: Id, colId: Id): ISpan | null;
47
47
  removeSpan(rowId: Id, colId: Id): void;
48
48
  editCell(rowId: Id, colId: Id, editorType?: EditorType): void;
49
49
  editEnd(withoutSave?: boolean): void;
@@ -1,4 +1,4 @@
1
- import { GridEvents, ICol, ICoords, IRendererConfig, GridSystemEvents } from "../types";
1
+ import { GridEvents, ICol, ICoords, IRendererConfig, GridSystemEvents, IGridConfig, ISpan } from "../types";
2
2
  declare type mouseEvents = GridEvents.cellClick | GridEvents.cellMouseOver | GridEvents.cellMouseDown | GridEvents.cellDblClick | GridEvents.cellRightClick;
3
3
  declare type touchEvents = GridSystemEvents.cellTouchEnd | GridSystemEvents.cellTouchMove;
4
4
  declare function handleMouse(rowStart: number, colStart: number, conf: IRendererConfig, type: mouseEvents & touchEvents, e: any): void;
@@ -16,4 +16,15 @@ export declare function getTreeCell(content: any, row: any, col: ICol, conf: IRe
16
16
  export declare function getCells(conf: IRendererConfig): any[];
17
17
  export declare function getSpans(config: IRendererConfig, frozen?: boolean): any[];
18
18
  export declare function getShifts(conf: IRendererConfig): ICoords;
19
+ export declare function normalizeSpan(span: ISpan, renderConfig: IGridConfig): {
20
+ $renderFrom: string[];
21
+ row: string | number;
22
+ column: string | number;
23
+ rowspan?: number;
24
+ colspan?: number;
25
+ text?: string | number;
26
+ css?: string;
27
+ tooltip?: boolean;
28
+ tooltipTemplate?: (spanValue: any, span: ISpan) => string;
29
+ };
19
30
  export {};
@@ -29,7 +29,7 @@ export declare class Cell extends View implements ICell {
29
29
  destructor(): void;
30
30
  getWidget(): IViewLike;
31
31
  getCellView(): any;
32
- attach(name: any, config?: any): IViewLike;
32
+ attach(component: any, config?: any): IViewLike;
33
33
  attachHTML(html: string): void;
34
34
  toVDOM(nodes?: any[]): any;
35
35
  protected _getCss(_content?: boolean): string;
@@ -52,7 +52,7 @@ export interface ICell extends IView {
52
52
  id: string;
53
53
  config: ICellConfig;
54
54
  events: IEventSystem<LayoutEvents, ILayoutEventHandlersMap>;
55
- attach(name: string | IViewFn | IView | IViewConstructor, config?: any): IViewLike;
55
+ attach(component: string | IViewFn | IView | IViewConstructor, config?: any): IViewLike;
56
56
  attachHTML(html: string): void;
57
57
  isVisible(): boolean;
58
58
  toVDOM(nodes?: any[]): any;
@@ -120,6 +120,7 @@ export interface IInput extends IItem {
120
120
  placeholder?: string;
121
121
  width?: string;
122
122
  label?: string;
123
+ hiddenLabel?: boolean;
123
124
  value?: string;
124
125
  }
125
126
  export interface IImageButton extends IItem {
@@ -161,6 +162,7 @@ export interface IDatePicker extends IItem {
161
162
  placeholder?: string;
162
163
  width?: string;
163
164
  label?: string;
165
+ hiddenLabel?: boolean;
164
166
  value?: string | Date;
165
167
  dateFormat?: string;
166
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhx-suite",
3
- "version": "7.3.7",
3
+ "version": "7.3.9",
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.7 Standard
4
+ dhtmlxSuite v.7.3.9 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,26 @@
1
+ Version 7.3.9 (September 26, 2022)
2
+
3
+ ### Fixes
4
+
5
+ - Combobox. Fix work of the "addOption()" method
6
+ - Combobox&Combo control of Form. Fix the issue with the "setValue()" method which caused currently selected options to remain selected after setting new values
7
+ - Form. Combo control. Fix the issue with validation of the control in the "multiselection:true" mode
8
+ - List, DataView, Combobox&Combo control of Form. Fix work with IDs specified as numbers
9
+
10
+ Version 7.3.8 (September 19, 2022)
11
+
12
+ ### Fixes
13
+
14
+ - Calendar. Fix the issue which appeared when the "width" property specified as a number was used together with "weekNumbers: true"
15
+ - Grid. Fix the behavior of selection with frozen spans
16
+ - Grid. Fix the incorrect work of the "dragItem" property when the item's ID was defined as a number
17
+ - Grid. Fix the issue which caused the resized width of the columns to be reset to the initial values after dragging the columns
18
+ - Grid. Fix the issue with the "getCells()" method which returned incorrect results if multiple cells were selected with the Shift key
19
+ - Layout. Fix the issue with the "attachHTML()" method
20
+ - Ribbon. Input control. Fix the behavior of the label which caused focus not to be moved to the input field
21
+ - Toolbar. Input control. Fix the behavior of the label which caused focus not to be moved to the input field
22
+ - TreeGrid. Fix the incorrect calculation of the columns and rows displayed on the screen when calling the "hideColumn()" or "hideRow()" methods correspondingly
23
+
1
24
  # Version 7.3.7 (September 5, 2022)
2
25
 
3
26
  ### Fixes