@dhtmlx/vault 5.0.6

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 (175) hide show
  1. package/README.md +251 -0
  2. package/codebase/fonts/roboto-bold-webfont.woff +0 -0
  3. package/codebase/fonts/roboto-bold-webfont.woff2 +0 -0
  4. package/codebase/fonts/roboto-medium-webfont.woff +0 -0
  5. package/codebase/fonts/roboto-medium-webfont.woff2 +0 -0
  6. package/codebase/fonts/roboto-regular-webfont.woff +0 -0
  7. package/codebase/fonts/roboto-regular-webfont.woff2 +0 -0
  8. package/codebase/types/ts-calendar/index.d.ts +2 -0
  9. package/codebase/types/ts-calendar/sources/Calendar.d.ts +37 -0
  10. package/codebase/types/ts-calendar/sources/helper.d.ts +1 -0
  11. package/codebase/types/ts-calendar/sources/types.d.ts +64 -0
  12. package/codebase/types/ts-combobox/index.d.ts +3 -0
  13. package/codebase/types/ts-combobox/sources/Combobox.d.ts +53 -0
  14. package/codebase/types/ts-combobox/sources/ProCombobox.d.ts +6 -0
  15. package/codebase/types/ts-combobox/sources/helper.d.ts +4 -0
  16. package/codebase/types/ts-combobox/sources/keyListener.d.ts +14 -0
  17. package/codebase/types/ts-combobox/sources/locales/en.d.ts +8 -0
  18. package/codebase/types/ts-combobox/sources/types.d.ts +95 -0
  19. package/codebase/types/ts-common/FocusManager.d.ts +15 -0
  20. package/codebase/types/ts-common/KeyManager.d.ts +19 -0
  21. package/codebase/types/ts-common/ScrollView.d.ts +40 -0
  22. package/codebase/types/ts-common/core.d.ts +40 -0
  23. package/codebase/types/ts-common/date.d.ts +34 -0
  24. package/codebase/types/ts-common/dom.d.ts +24 -0
  25. package/codebase/types/ts-common/events.d.ts +35 -0
  26. package/codebase/types/ts-common/html.d.ts +74 -0
  27. package/codebase/types/ts-common/input.d.ts +24 -0
  28. package/codebase/types/ts-common/keycodes.d.ts +9 -0
  29. package/codebase/types/ts-common/locale.d.ts +1 -0
  30. package/codebase/types/ts-common/polyfills/array.d.ts +0 -0
  31. package/codebase/types/ts-common/polyfills/element.d.ts +0 -0
  32. package/codebase/types/ts-common/polyfills/fetch.d.ts +0 -0
  33. package/codebase/types/ts-common/polyfills/math.d.ts +0 -0
  34. package/codebase/types/ts-common/polyfills/object.d.ts +0 -0
  35. package/codebase/types/ts-common/polyfills/string.d.ts +0 -0
  36. package/codebase/types/ts-common/types.d.ts +76 -0
  37. package/codebase/types/ts-common/view.d.ts +27 -0
  38. package/codebase/types/ts-data/index.d.ts +13 -0
  39. package/codebase/types/ts-data/sources/CollectionStore.d.ts +7 -0
  40. package/codebase/types/ts-data/sources/DragManager.d.ts +19 -0
  41. package/codebase/types/ts-data/sources/ajax.d.ts +2 -0
  42. package/codebase/types/ts-data/sources/datacollection/group.d.ts +43 -0
  43. package/codebase/types/ts-data/sources/datacollection/loader.d.ts +16 -0
  44. package/codebase/types/ts-data/sources/datacollection/sort.d.ts +7 -0
  45. package/codebase/types/ts-data/sources/datacollection.d.ts +101 -0
  46. package/codebase/types/ts-data/sources/dataproxy.d.ts +10 -0
  47. package/codebase/types/ts-data/sources/drivers/CsvDriver.d.ts +16 -0
  48. package/codebase/types/ts-data/sources/drivers/JsonDriver.d.ts +10 -0
  49. package/codebase/types/ts-data/sources/drivers/XMLDriver.d.ts +18 -0
  50. package/codebase/types/ts-data/sources/drivers/drivers.d.ts +12 -0
  51. package/codebase/types/ts-data/sources/helpers.d.ts +17 -0
  52. package/codebase/types/ts-data/sources/lazydataproxy.d.ts +9 -0
  53. package/codebase/types/ts-data/sources/methods.d.ts +11 -0
  54. package/codebase/types/ts-data/sources/selection.d.ts +17 -0
  55. package/codebase/types/ts-data/sources/serializers/xml.d.ts +2 -0
  56. package/codebase/types/ts-data/sources/treecollection.d.ts +72 -0
  57. package/codebase/types/ts-data/sources/types.d.ts +340 -0
  58. package/codebase/types/ts-dataview/index.d.ts +3 -0
  59. package/codebase/types/ts-dataview/sources/DataView.d.ts +41 -0
  60. package/codebase/types/ts-dataview/sources/ProDataView.d.ts +11 -0
  61. package/codebase/types/ts-dataview/sources/editors/InputEditor.d.ts +16 -0
  62. package/codebase/types/ts-dataview/sources/editors/editors.d.ts +4 -0
  63. package/codebase/types/ts-dataview/sources/types.d.ts +63 -0
  64. package/codebase/types/ts-grid/index.d.ts +7 -0
  65. package/codebase/types/ts-grid/sources/ExtendedGrid.d.ts +47 -0
  66. package/codebase/types/ts-grid/sources/Grid.d.ts +114 -0
  67. package/codebase/types/ts-grid/sources/ProGrid.d.ts +67 -0
  68. package/codebase/types/ts-grid/sources/helpers/cells.d.ts +9 -0
  69. package/codebase/types/ts-grid/sources/helpers/data.d.ts +36 -0
  70. package/codebase/types/ts-grid/sources/helpers/default.d.ts +6 -0
  71. package/codebase/types/ts-grid/sources/helpers/dom.d.ts +3 -0
  72. package/codebase/types/ts-grid/sources/helpers/keys.d.ts +27 -0
  73. package/codebase/types/ts-grid/sources/helpers/main.d.ts +23 -0
  74. package/codebase/types/ts-grid/sources/locales/en.d.ts +7 -0
  75. package/codebase/types/ts-grid/sources/modules/BlockSelection.d.ts +122 -0
  76. package/codebase/types/ts-grid/sources/modules/Clipboard.d.ts +55 -0
  77. package/codebase/types/ts-grid/sources/modules/DropManager.d.ts +21 -0
  78. package/codebase/types/ts-grid/sources/modules/Exporter.d.ts +80 -0
  79. package/codebase/types/ts-grid/sources/modules/History.d.ts +72 -0
  80. package/codebase/types/ts-grid/sources/modules/Range.d.ts +71 -0
  81. package/codebase/types/ts-grid/sources/modules/Resizer.d.ts +2 -0
  82. package/codebase/types/ts-grid/sources/modules/Selection.d.ts +58 -0
  83. package/codebase/types/ts-grid/sources/types.d.ts +660 -0
  84. package/codebase/types/ts-grid/sources/ui/FixedCols.d.ts +3 -0
  85. package/codebase/types/ts-grid/sources/ui/FixedRows.d.ts +5 -0
  86. package/codebase/types/ts-grid/sources/ui/cells.d.ts +34 -0
  87. package/codebase/types/ts-grid/sources/ui/common.d.ts +8 -0
  88. package/codebase/types/ts-grid/sources/ui/components/dragPanel.d.ts +7 -0
  89. package/codebase/types/ts-grid/sources/ui/components/groupPanel.d.ts +13 -0
  90. package/codebase/types/ts-grid/sources/ui/components/subRow.d.ts +4 -0
  91. package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +35 -0
  92. package/codebase/types/ts-grid/sources/ui/content/DateFilter.d.ts +42 -0
  93. package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +32 -0
  94. package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +28 -0
  95. package/codebase/types/ts-grid/sources/ui/content.d.ts +55 -0
  96. package/codebase/types/ts-grid/sources/ui/editors/CheckboxEditor.d.ts +18 -0
  97. package/codebase/types/ts-grid/sources/ui/editors/ComboboxEditor.d.ts +18 -0
  98. package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +37 -0
  99. package/codebase/types/ts-grid/sources/ui/editors/InputEditor.d.ts +22 -0
  100. package/codebase/types/ts-grid/sources/ui/editors/SelectEditor.d.ts +16 -0
  101. package/codebase/types/ts-grid/sources/ui/editors/TextAreaEditor.d.ts +27 -0
  102. package/codebase/types/ts-grid/sources/ui/editors/editors.d.ts +2 -0
  103. package/codebase/types/ts-grid/sources/ui/proContent.d.ts +37 -0
  104. package/codebase/types/ts-grid/sources/ui/render.d.ts +9 -0
  105. package/codebase/types/ts-layout/index.d.ts +3 -0
  106. package/codebase/types/ts-layout/sources/Cell.d.ts +60 -0
  107. package/codebase/types/ts-layout/sources/Layout.d.ts +29 -0
  108. package/codebase/types/ts-layout/sources/ProCell.d.ts +9 -0
  109. package/codebase/types/ts-layout/sources/ProLayout.d.ts +6 -0
  110. package/codebase/types/ts-layout/sources/helpers.d.ts +6 -0
  111. package/codebase/types/ts-layout/sources/types.d.ts +129 -0
  112. package/codebase/types/ts-list/index.d.ts +4 -0
  113. package/codebase/types/ts-list/sources/List.d.ts +56 -0
  114. package/codebase/types/ts-list/sources/ProList.d.ts +11 -0
  115. package/codebase/types/ts-list/sources/Selection.d.ts +24 -0
  116. package/codebase/types/ts-list/sources/editors/InputEditor.d.ts +16 -0
  117. package/codebase/types/ts-list/sources/editors/editors.d.ts +4 -0
  118. package/codebase/types/ts-list/sources/types.d.ts +98 -0
  119. package/codebase/types/ts-message/index.d.ts +5 -0
  120. package/codebase/types/ts-message/sources/alert.d.ts +2 -0
  121. package/codebase/types/ts-message/sources/common.d.ts +1 -0
  122. package/codebase/types/ts-message/sources/confirm.d.ts +2 -0
  123. package/codebase/types/ts-message/sources/locales/en.d.ts +5 -0
  124. package/codebase/types/ts-message/sources/message.d.ts +4 -0
  125. package/codebase/types/ts-message/sources/tooltip.d.ts +6 -0
  126. package/codebase/types/ts-message/sources/types.d.ts +79 -0
  127. package/codebase/types/ts-navbar/index.d.ts +3 -0
  128. package/codebase/types/ts-navbar/sources/Navbar.d.ts +61 -0
  129. package/codebase/types/ts-navbar/sources/elements/button.d.ts +1 -0
  130. package/codebase/types/ts-navbar/sources/elements/customHTMLButton.d.ts +1 -0
  131. package/codebase/types/ts-navbar/sources/elements/datePicker.d.ts +1 -0
  132. package/codebase/types/ts-navbar/sources/elements/helpers.d.ts +17 -0
  133. package/codebase/types/ts-navbar/sources/elements/imageButton.d.ts +1 -0
  134. package/codebase/types/ts-navbar/sources/elements/input.d.ts +1 -0
  135. package/codebase/types/ts-navbar/sources/elements/menuItem.d.ts +1 -0
  136. package/codebase/types/ts-navbar/sources/elements/navItem.d.ts +1 -0
  137. package/codebase/types/ts-navbar/sources/elements/separator.d.ts +1 -0
  138. package/codebase/types/ts-navbar/sources/elements/spacer.d.ts +1 -0
  139. package/codebase/types/ts-navbar/sources/elements/title.d.ts +1 -0
  140. package/codebase/types/ts-navbar/sources/itemfactory.d.ts +10 -0
  141. package/codebase/types/ts-navbar/sources/types.d.ts +210 -0
  142. package/codebase/types/ts-popup/index.d.ts +2 -0
  143. package/codebase/types/ts-popup/sources/Popup.d.ts +29 -0
  144. package/codebase/types/ts-popup/sources/types.d.ts +42 -0
  145. package/codebase/types/ts-slider/index.d.ts +2 -0
  146. package/codebase/types/ts-slider/sources/Slider.d.ts +55 -0
  147. package/codebase/types/ts-slider/sources/types.d.ts +60 -0
  148. package/codebase/types/ts-timepicker/index.d.ts +2 -0
  149. package/codebase/types/ts-timepicker/sources/Timepicker.d.ts +28 -0
  150. package/codebase/types/ts-timepicker/sources/helper.d.ts +4 -0
  151. package/codebase/types/ts-timepicker/sources/locales/en.d.ts +6 -0
  152. package/codebase/types/ts-timepicker/sources/types.d.ts +52 -0
  153. package/codebase/types/ts-toolbar/index.d.ts +2 -0
  154. package/codebase/types/ts-toolbar/sources/ProToolbar.d.ts +10 -0
  155. package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +33 -0
  156. package/codebase/types/ts-treegrid/index.d.ts +3 -0
  157. package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +26 -0
  158. package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +21 -0
  159. package/codebase/types/ts-treegrid/sources/types.d.ts +17 -0
  160. package/codebase/types/ts-vault/sources/ProgressBar.d.ts +12 -0
  161. package/codebase/types/ts-vault/sources/ReadStackPreview.d.ts +11 -0
  162. package/codebase/types/ts-vault/sources/Uploader.d.ts +26 -0
  163. package/codebase/types/ts-vault/sources/Vault.d.ts +39 -0
  164. package/codebase/types/ts-vault/sources/configs.d.ts +2 -0
  165. package/codebase/types/ts-vault/sources/entry.d.ts +8 -0
  166. package/codebase/types/ts-vault/sources/helper.d.ts +31 -0
  167. package/codebase/types/ts-vault/sources/locales/en.d.ts +21 -0
  168. package/codebase/types/ts-vault/sources/types.d.ts +127 -0
  169. package/codebase/vault.d.ts +3 -0
  170. package/codebase/vault.min.css +1 -0
  171. package/codebase/vault.min.js +21 -0
  172. package/codebase/vault.min.js.map +1 -0
  173. package/license.md +360 -0
  174. package/package.json +14 -0
  175. package/whatsnew.txt +99 -0
@@ -0,0 +1,34 @@
1
+ import { GridEvents, GridSystemEvents, ICoords, IGridConfig, IRendererConfig, ISpan, Split } from "../types";
2
+ import { IDataCollection } from "../../../ts-data";
3
+ type mouseEvents = GridEvents.cellClick | GridEvents.cellMouseOver | GridEvents.cellMouseDown | GridEvents.cellDblClick | GridEvents.cellRightClick;
4
+ type touchEvents = GridSystemEvents.cellTouchEnd | GridSystemEvents.cellTouchMove;
5
+ declare function handleMouse(rowStart: number, colStart: number, conf: IRendererConfig, type: mouseEvents & touchEvents, e: any): void;
6
+ export declare function getHandlers(row: number, column: number, conf: IRendererConfig): {
7
+ onclick: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
8
+ onmouseover: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
9
+ onmousedown: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
10
+ ondblclick: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
11
+ oncontextmenu: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
12
+ ontouchstart: (number | GridEvents | IRendererConfig | typeof handleMouse)[];
13
+ ontouchmove: (number | GridSystemEvents | IRendererConfig | typeof handleMouse)[];
14
+ ontouchend: (number | GridSystemEvents | IRendererConfig | typeof handleMouse)[];
15
+ };
16
+ export declare function getCells(conf: IRendererConfig): any[];
17
+ export declare function getSpans(config: IRendererConfig, mode?: Split): any[];
18
+ export declare function getShifts(conf: IRendererConfig): ICoords;
19
+ export declare function normalizeSpan(span: ISpan, config: IGridConfig, data: IDataCollection): {
20
+ $renderFrom: any[];
21
+ $rowsVisibility: number[];
22
+ $colsVisibility: number[];
23
+ row: import("../../../ts-common/types").Id;
24
+ column: import("../../../ts-common/types").Id;
25
+ rowspan?: number;
26
+ colspan?: number;
27
+ text?: string | ((args: import("../types").ISummaryList) => string);
28
+ css?: string;
29
+ tooltip?: boolean | import("../types").IGridTooltipConfig;
30
+ tooltipTemplate?: (content: {
31
+ value: string;
32
+ } & import("../types").ISummaryList, span: ISpan) => string | boolean;
33
+ };
34
+ export {};
@@ -0,0 +1,8 @@
1
+ import { IGridConfig, IRendererConfig, IScrollBarWidth, Split } from "../types";
2
+ export declare const BORDERS = 2;
3
+ export declare function calcScrollBarWidth(config: IGridConfig | IRendererConfig, customScroll?: boolean, sizes?: {
4
+ width: number;
5
+ height: number;
6
+ }): IScrollBarWidth;
7
+ export declare function getCurrFixedCols(config: IGridConfig, split: Split.left | Split.right): import("../types").ICol[];
8
+ export declare function getNormalizeDateObject(item: string | Date, dateFormat: string): Date | null;
@@ -0,0 +1,7 @@
1
+ import { VNode } from "../../../../ts-common/dom";
2
+ import { ILayoutState, IProGrid, IRendererConfig } from "../../types";
3
+ export interface IDragPanelState {
4
+ lessHeight: boolean;
5
+ footerAtBottom: boolean;
6
+ }
7
+ export declare function getDragPanelNode(grid: IProGrid, config: IRendererConfig, scroll: ILayoutState, lessByHeight?: boolean): VNode;
@@ -0,0 +1,13 @@
1
+ import { IProGrid } from "../../types";
2
+ export interface IGroupItem {
3
+ id: string;
4
+ label: string;
5
+ closable?: boolean;
6
+ sortable?: boolean;
7
+ sortDir?: "asc" | "desc" | null;
8
+ sortOrder?: number | null;
9
+ mode?: "basic" | "drop";
10
+ notGrouped?: boolean;
11
+ }
12
+ export declare function getGroupItem({ id, label, sortDir, sortOrder, mode, sortable, closable, }: IGroupItem): any;
13
+ export declare function getGroupPanel(grouped: IGroupItem[], grid: IProGrid): any;
@@ -0,0 +1,4 @@
1
+ import { VNode } from "../../../../ts-common/dom";
2
+ import { IProGrid, IRendererConfig, IRow } from "../../types";
3
+ export declare function getSubRowContent(config: IRendererConfig): VNode[];
4
+ export declare function setSubRowCell(grid: IProGrid, rows: IRow[]): void;
@@ -0,0 +1,35 @@
1
+ import { ProCombobox } from "../../../../ts-combobox";
2
+ import { IEventSystem } from "../../../../ts-common/events";
3
+ import { IDataItem } from "../../../../ts-data";
4
+ import { ICol, IRendererConfig } from "../../types";
5
+ import { HeaderFilterEvent, IComboFilterConfig, IHeaderFilter } from "../content";
6
+ export declare class ComboFilter implements IHeaderFilter {
7
+ column: ICol;
8
+ config: IRendererConfig;
9
+ data: string[] | IDataItem[];
10
+ value: string | string[];
11
+ filterConfig: IComboFilterConfig;
12
+ events: IEventSystem<HeaderFilterEvent>;
13
+ private _filter;
14
+ private _grid;
15
+ private _isFocused;
16
+ private _silentMode;
17
+ constructor({ column, config, headerConfig, uniqueData, value, grid }: {
18
+ column: any;
19
+ config: any;
20
+ headerConfig: any;
21
+ uniqueData: any;
22
+ value: any;
23
+ grid: any;
24
+ });
25
+ protected initFilter(): void;
26
+ protected initHandlers(): void;
27
+ getFilter(): ProCombobox;
28
+ setValue(value: string | string[], silent?: boolean): void;
29
+ clear(silent?: boolean): void;
30
+ focus(): void;
31
+ blur(): void;
32
+ destructor(): void;
33
+ private _setData;
34
+ private _checkValue;
35
+ }
@@ -0,0 +1,42 @@
1
+ import { IEventSystem } from "../../../../ts-common/events";
2
+ import { ICol, IEventHandlersMap, IRendererConfig } from "../../types";
3
+ import { HeaderFilterEvent } from "../content";
4
+ import { IDateFilterConfig, IProHeaderFilter } from "../proContent";
5
+ import { Calendar } from "../../../../ts-calendar";
6
+ import { VNode } from "../../../../ts-common/dom";
7
+ import { Id } from "../../../../ts-common/types";
8
+ export declare class DateFilter implements IProHeaderFilter {
9
+ id: Id;
10
+ column: ICol;
11
+ config: IRendererConfig;
12
+ events: IEventSystem<HeaderFilterEvent, IEventHandlersMap>;
13
+ filterConfig: IDateFilterConfig;
14
+ value: Date | Date[];
15
+ private _calendar;
16
+ private _popup;
17
+ private _handlers;
18
+ private _grid;
19
+ private _keyManager;
20
+ constructor({ column, config, headerConfig, value, id, grid }: {
21
+ column: any;
22
+ config: any;
23
+ headerConfig: any;
24
+ value: any;
25
+ id: any;
26
+ grid: any;
27
+ });
28
+ getFilter(): Calendar;
29
+ setValue(value: Date | Date[] | null, silent?: boolean): void;
30
+ clear(): void;
31
+ focus(): void;
32
+ blur(): void;
33
+ destructor(): void;
34
+ toHTML(): VNode;
35
+ private _initFilter;
36
+ private _initHandlers;
37
+ private shouldUpdateCalendar;
38
+ private _getRootElement;
39
+ private _changeTab;
40
+ private _showPopup;
41
+ private _initHotkeys;
42
+ }
@@ -0,0 +1,32 @@
1
+ import { VNode } from "../../../../ts-common/dom";
2
+ import { IEventSystem } from "../../../../ts-common/events";
3
+ import { Id } from "../../../../ts-common/types";
4
+ import { IBaseHandlersMap, ICol, IRendererConfig } from "../../types";
5
+ import { HeaderFilterEvent, IHeaderFilter, IInputFilterConfig } from "../content";
6
+ export declare class InputFilter implements IHeaderFilter {
7
+ column: ICol;
8
+ config: IRendererConfig;
9
+ value: string;
10
+ id: Id;
11
+ events: IEventSystem<HeaderFilterEvent>;
12
+ filterConfig: IInputFilterConfig;
13
+ protected _handlers: IBaseHandlersMap;
14
+ protected _inputDelay: any;
15
+ private _isFocused;
16
+ private _grid;
17
+ constructor({ column, config, id, value, headerConfig, grid }: {
18
+ column: any;
19
+ config: any;
20
+ id: any;
21
+ value: any;
22
+ headerConfig: any;
23
+ grid: any;
24
+ });
25
+ toHTML(): VNode;
26
+ getFilter(): any;
27
+ setValue(value: string, silent?: boolean): void;
28
+ clear(silent?: boolean): void;
29
+ focus(): void;
30
+ blur(): void;
31
+ private initHandlers;
32
+ }
@@ -0,0 +1,28 @@
1
+ import { VNode } from "../../../../ts-common/dom";
2
+ import { IEventSystem } from "../../../../ts-common/events";
3
+ import { IBaseHandlersMap, ICol, IRendererConfig } from "../../types";
4
+ import { HeaderFilterEvent, IHeaderFilter } from "../content";
5
+ export declare class SelectFilter implements IHeaderFilter {
6
+ column: ICol;
7
+ config: IRendererConfig;
8
+ data: any[];
9
+ value: string;
10
+ events: IEventSystem<HeaderFilterEvent>;
11
+ protected _handlers: IBaseHandlersMap;
12
+ private _isFocused;
13
+ private _grid;
14
+ constructor({ column, config, uniqueData, value, grid }: {
15
+ column: any;
16
+ config: any;
17
+ uniqueData?: any[];
18
+ value: any;
19
+ grid: any;
20
+ });
21
+ toHTML(): VNode;
22
+ getFilter(): any;
23
+ setValue(value: string, silent?: boolean): void;
24
+ clear(silent?: boolean): void;
25
+ focus(): void;
26
+ blur(): void;
27
+ private initHandlers;
28
+ }
@@ -0,0 +1,55 @@
1
+ import { VNode } from "../../../ts-common/dom";
2
+ import { ICol, IExtendedGrid, IGrid, IProGrid, IRendererConfig } from "../types";
3
+ import { DataCollection, IDataItem } from "../../../ts-data";
4
+ import { Combobox } from "../../../ts-combobox";
5
+ import { IEventSystem } from "../../../ts-common/events";
6
+ import { Id } from "../../../ts-common/types";
7
+ export interface IComboFilterConfig {
8
+ template?: (item: IDataItem) => string;
9
+ filter?: (item: IDataItem, input: string) => boolean;
10
+ data?: DataCollection<IDataItem> | IDataItem[];
11
+ placeholder?: string;
12
+ readonly?: boolean;
13
+ virtual?: boolean;
14
+ multiselection?: boolean;
15
+ }
16
+ export interface IInputFilterConfig {
17
+ placeholder?: string;
18
+ icon?: string;
19
+ }
20
+ export declare enum HeaderFilterEvent {
21
+ change = "change"
22
+ }
23
+ export interface IHeaderFilter {
24
+ column: ICol;
25
+ config: IRendererConfig;
26
+ value: string | string[];
27
+ events: IEventSystem<HeaderFilterEvent>;
28
+ data?: string[] | IDataItem[];
29
+ id?: Id;
30
+ filterConfig?: IComboFilterConfig | IInputFilterConfig;
31
+ getFilter(): VNode | Combobox;
32
+ setValue(value: string | string[], silent?: boolean): void;
33
+ clear(silent?: boolean): void;
34
+ focus(): void;
35
+ blur(): void;
36
+ }
37
+ export interface ICellContent {
38
+ toHtml: (column: ICol, config: IRendererConfig) => VNode;
39
+ match?: (obj: IMatch) => boolean;
40
+ destructor?: () => void;
41
+ element?: Record<string, IHeaderFilter>;
42
+ value?: Record<string, string>;
43
+ }
44
+ interface IMatch {
45
+ val: number | string | Date;
46
+ match: string | string[] | Date | Date[];
47
+ obj: IDataItem;
48
+ col?: ICol;
49
+ multi?: boolean;
50
+ }
51
+ export interface IContentList {
52
+ [key: string]: ICellContent;
53
+ }
54
+ export declare function getContent(grid: IGrid | IProGrid | IExtendedGrid): IContentList;
55
+ export {};
@@ -0,0 +1,18 @@
1
+ import { ICol, IRendererConfig, IRow, IEditor } from "../../types";
2
+ export declare class CheckboxEditor implements IEditor {
3
+ protected _handlers: {
4
+ [key: string]: (...args: any[]) => void;
5
+ };
6
+ protected _cell: {
7
+ row: IRow;
8
+ col: ICol;
9
+ };
10
+ protected _config: IRendererConfig;
11
+ protected _checkbox: HTMLInputElement;
12
+ protected _input: HTMLInputElement;
13
+ protected _checked: boolean;
14
+ constructor(row: IRow, col: ICol, config: IRendererConfig);
15
+ endEdit(): void;
16
+ toHTML(): any;
17
+ protected _initHandlers(): void;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { ICol, IRendererConfig, IEditor, IRow } from "../../types";
2
+ import { ProCombobox } from "../../../../ts-combobox";
3
+ export declare class ComboboxEditor implements IEditor {
4
+ protected _handlers: {
5
+ [key: string]: (...args: any[]) => void;
6
+ };
7
+ protected _cell: {
8
+ row: IRow;
9
+ col: ICol;
10
+ };
11
+ protected _config: IRendererConfig;
12
+ protected _input: ProCombobox;
13
+ constructor(row: any, col: ICol, config: IRendererConfig);
14
+ endEdit(withoutSave?: boolean): void;
15
+ toHTML(): any;
16
+ protected _initHandlers(): void;
17
+ private _setCustomOptions;
18
+ }
@@ -0,0 +1,37 @@
1
+ import { ICol, IRendererConfig, IRow, IEditor } from "../../types";
2
+ export declare class DateEditor implements IEditor {
3
+ protected _handlers: {
4
+ [key: string]: (...args: any[]) => void;
5
+ };
6
+ protected _cell: {
7
+ row: IRow;
8
+ col: ICol;
9
+ };
10
+ protected _config: IRendererConfig;
11
+ protected _input: HTMLInputElement;
12
+ private _calendar;
13
+ private _popup;
14
+ private _value;
15
+ private _editorConfig;
16
+ constructor(row: IRow, col: ICol, config: IRendererConfig);
17
+ endEdit(withoutSave?: boolean, calendarChange?: boolean): void;
18
+ toHTML(): any;
19
+ protected _cleanConfig(col: ICol): {
20
+ date?: string | Date;
21
+ css?: string;
22
+ mark?: (a: Date) => string;
23
+ disabledDates?: (a: Date) => boolean;
24
+ weekStart?: "saturday" | "sunday" | "monday";
25
+ weekNumbers?: boolean;
26
+ mode?: import("../../../../ts-calendar").ViewMode;
27
+ timePicker?: boolean;
28
+ timeFormat?: 12 | 24;
29
+ thisMonthOnly?: boolean;
30
+ width?: string | number;
31
+ $rangeMark?: (a: Date) => string;
32
+ block?: (a: Date) => boolean;
33
+ view?: import("../../../../ts-calendar").ViewMode;
34
+ };
35
+ protected _initHandlers(): void;
36
+ private _getValue;
37
+ }
@@ -0,0 +1,22 @@
1
+ import { ICol, IRendererConfig, IRow, IEditor } from "../../types";
2
+ export declare class InputEditor implements IEditor {
3
+ protected _handlers: {
4
+ [key: string]: (...args: any[]) => void;
5
+ };
6
+ protected _cell: {
7
+ row: IRow;
8
+ col: ICol;
9
+ };
10
+ protected _config: IRendererConfig;
11
+ protected _input: HTMLInputElement;
12
+ private prevValue;
13
+ private type;
14
+ constructor(row: IRow, col: ICol, config: IRendererConfig);
15
+ endEdit(withoutSave?: boolean): void;
16
+ toHTML(value?: string | number): any;
17
+ protected _initHandlers(): void;
18
+ private _isValidWord;
19
+ private _isCorrectRange;
20
+ private _applyValuePattern;
21
+ private _removeValuePattern;
22
+ }
@@ -0,0 +1,16 @@
1
+ import { ICol, IRendererConfig, IEditor, IRow } from "../../types";
2
+ export declare class SelectEditor implements IEditor {
3
+ protected _handlers: {
4
+ [key: string]: (...args: any[]) => void;
5
+ };
6
+ protected _cell: {
7
+ row: IRow;
8
+ col: ICol;
9
+ };
10
+ protected _config: IRendererConfig;
11
+ protected _input: HTMLSelectElement;
12
+ constructor(row: any, col: ICol, config: IRendererConfig);
13
+ endEdit(withoutSave?: boolean): void;
14
+ toHTML(): any;
15
+ protected _initHandlers(): void;
16
+ }
@@ -0,0 +1,27 @@
1
+ import { ICol, IRendererConfig, IRow, IEditor, ISpan } from "../../types";
2
+ export declare class TextAreaEditor implements IEditor {
3
+ protected _handlers: {
4
+ [key: string]: (...args: any[]) => void;
5
+ };
6
+ protected _cell: {
7
+ row: IRow;
8
+ col: ICol;
9
+ };
10
+ protected _config: IRendererConfig;
11
+ protected _input: HTMLTextAreaElement;
12
+ private type;
13
+ private _minHeight;
14
+ private _prevHeight;
15
+ private _width;
16
+ private _initialValue;
17
+ constructor(row: IRow, col: ICol, config: IRendererConfig, span?: ISpan);
18
+ endEdit(withoutSave?: boolean): void;
19
+ toHTML(value?: string): any;
20
+ protected _initHandlers(): void;
21
+ private _getCurrentHeight;
22
+ private _getElementHeight;
23
+ private _applyValuePattern;
24
+ private _removeValuePattern;
25
+ private _getCellWidth;
26
+ private _updateHeight;
27
+ }
@@ -0,0 +1,2 @@
1
+ import { IRendererConfig, ICol, IEditor, ISpan } from "../../types";
2
+ export declare function getEditor(row: any, col: ICol, conf: IRendererConfig, span?: ISpan): IEditor;
@@ -0,0 +1,37 @@
1
+ import { IExtendedGrid, IProGrid } from "../types";
2
+ import { ICellContent, IHeaderFilter } from "./content";
3
+ import { VNode } from "../../../ts-common/dom";
4
+ import { DataCollection, IDataItem } from "../../../ts-data";
5
+ import { Calendar, ICalendarConfig } from "../../../ts-calendar";
6
+ import { Combobox } from "../../../ts-combobox";
7
+ export interface IComboFilterConfig {
8
+ template?: (item: IDataItem) => string;
9
+ filter?: (item: IDataItem, input: string) => boolean;
10
+ data?: DataCollection<IDataItem> | IDataItem[];
11
+ placeholder?: string;
12
+ readonly?: boolean;
13
+ virtual?: boolean;
14
+ multiselection?: boolean;
15
+ }
16
+ export interface IInputFilterConfig {
17
+ placeholder?: string;
18
+ icon?: string;
19
+ }
20
+ export interface IDateFilterConfig extends Omit<ICalendarConfig, "value" | "css" | "$rangeMark"> {
21
+ icon?: string;
22
+ placeholder?: string;
23
+ asDateObject?: boolean;
24
+ }
25
+ export interface IProHeaderFilter extends Omit<IHeaderFilter, "value" | "filterConfig"> {
26
+ value: string | string[] | Date | Date[];
27
+ filterConfig?: IComboFilterConfig | IDateFilterConfig | IInputFilterConfig;
28
+ getFilter(): VNode | Combobox | Calendar;
29
+ setValue(value: string | string[] | Date | Date[], silent?: boolean): void;
30
+ }
31
+ export interface IProCellContent extends Omit<ICellContent, "element"> {
32
+ element?: Record<string, IProHeaderFilter>;
33
+ }
34
+ export interface IProContentList {
35
+ [key: string]: IProCellContent;
36
+ }
37
+ export declare function getProContent(grid: IProGrid | IExtendedGrid): IProContentList;
@@ -0,0 +1,9 @@
1
+ import { IGrid, IGridConfig, IProGrid, IRendererConfig, IRow, ISizes } from "../types";
2
+ export declare function getRenderConfig(obj: any, data: IRow[], wrapperSizes: ISizes): IRendererConfig;
3
+ export declare function getElementSizes(element: HTMLElement | any): {
4
+ width: number;
5
+ height: number;
6
+ };
7
+ export declare function applyAutoWidth(config: IGridConfig, wrapperSizes: any, scrollViewConfig?: boolean): void;
8
+ export declare function render(vm: any, obj: IGrid, htmlEvents: any, selection: any, uid: string): any;
9
+ export declare function proRender(vm: any, obj: IProGrid, htmlEvents: any, selection: any, uid: string): any;
@@ -0,0 +1,3 @@
1
+ export * from "./sources/Layout";
2
+ export * from "./sources/ProLayout";
3
+ export * from "./sources/types";
@@ -0,0 +1,60 @@
1
+ import { IViewLike, View } from "../../ts-common/view";
2
+ import { ICell, ICellConfig, ILayout, LayoutEvents, ILayoutEventHandlersMap } from "./types";
3
+ import { IEventSystem } from "../../ts-common/events";
4
+ import { ScrollView } from "../../ts-common/ScrollView";
5
+ export declare class Cell extends View implements ICell {
6
+ id: string;
7
+ config: ICellConfig;
8
+ events: IEventSystem<LayoutEvents, ILayoutEventHandlersMap>;
9
+ scrollView: ScrollView;
10
+ protected _handlers: {
11
+ [key: string]: (...args: any) => any;
12
+ };
13
+ protected _disabled: string[];
14
+ protected _parent: ILayout;
15
+ protected _ui: IViewLike;
16
+ protected _resizerHandlers: any;
17
+ protected _progress: boolean;
18
+ protected _stopProgressDefault: boolean;
19
+ protected _theme: string;
20
+ private _isLastFlexCell;
21
+ private _afterWindowResized;
22
+ constructor(parent: string | HTMLElement | ILayout, config: ICellConfig);
23
+ paint(): void;
24
+ isVisible(): boolean;
25
+ hide(): void;
26
+ show(): void;
27
+ expand(): void;
28
+ collapse(): void;
29
+ toggle(): void;
30
+ protected _checkNextSize(cell?: ICell): any;
31
+ getParent(): ILayout;
32
+ destructor(): void;
33
+ getWidget(): IViewLike;
34
+ getCellView(): any;
35
+ attach(component: any, config?: any): IViewLike;
36
+ attachHTML(html: string): void;
37
+ detach(): void;
38
+ progressShow(): void;
39
+ progressHide(): void;
40
+ isVisibleProgress(): boolean;
41
+ toVDOM(nodes?: any[]): any;
42
+ protected _saveTheme(): void;
43
+ protected _getProgressBar(): any;
44
+ protected _getCss(_content?: boolean): string;
45
+ protected _initHandlers(): void;
46
+ protected _getCollapsedSize(cell: ICell, nextCell: ICell): number;
47
+ protected _getCollapseIcon(): "dxi dxi-chevron-right" | "dxi dxi-chevron-left" | "dxi dxi-chevron-up" | "dxi dxi-chevron-down";
48
+ protected _isLastCell(): boolean;
49
+ protected _getNextCell(): any;
50
+ protected _getAnyFlexCell(selfInclude?: boolean): any;
51
+ protected _getResizerView(): any;
52
+ protected _isXDirection(): any;
53
+ protected _checkProgress(): boolean;
54
+ protected _checkAutoProgress(): boolean;
55
+ protected _calculateProgressState(): void;
56
+ protected _calculateStyle(): any;
57
+ private _resizedWindow;
58
+ private _resetCellsSize;
59
+ private _checkFullSizeCell;
60
+ }
@@ -0,0 +1,29 @@
1
+ import { ICell, ICellConfig, ILayout, ILayoutConfig, LayoutCallback } from "./types";
2
+ import { Cell } from "./Cell";
3
+ export declare class Layout extends Cell implements ILayout {
4
+ config: ILayoutConfig;
5
+ protected _all: any;
6
+ protected _cells: ICell[];
7
+ protected _root: ILayout;
8
+ protected _progress: boolean;
9
+ private _xLayout;
10
+ private _isViewLayout;
11
+ constructor(parent: any, config: ILayoutConfig);
12
+ destructor(): void;
13
+ toVDOM(): any;
14
+ removeCell(id: string): void;
15
+ getId(index: number): string;
16
+ getRefs(name: string): any;
17
+ getCell(id: string): any;
18
+ forEach(callback: LayoutCallback, parent?: string, level?: number): void;
19
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
20
+ cell(id: string): any;
21
+ progressShow(): void;
22
+ progressHide(): void;
23
+ protected _addCell(config: ICellConfig, index?: number): void;
24
+ protected _getCss(content?: boolean): string;
25
+ private _parseConfig;
26
+ protected _createCell(cell: ILayoutConfig): ICell;
27
+ private _haveCells;
28
+ private _inheritTypes;
29
+ }
@@ -0,0 +1,9 @@
1
+ import { ScrollView } from "../../ts-common/ScrollView";
2
+ import { Cell } from "./Cell";
3
+ import { ILayout, ICellConfig, IProCell } from "./types";
4
+ export declare class ProCell extends Cell implements IProCell {
5
+ scrollView: ScrollView;
6
+ constructor(parent: string | HTMLElement | ILayout | null, config: ICellConfig);
7
+ private _getFirstRootView;
8
+ toVDOM(nodes?: any[]): any;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { ILayout, ILayoutConfig, ICell } from "./types";
2
+ import { Layout } from "./Layout";
3
+ export declare class ProLayout extends Layout implements ILayout {
4
+ constructor(parent: any, config: ILayoutConfig);
5
+ protected _createCell(cell: ILayoutConfig): ICell;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ICellConfig } from "./types";
2
+ export declare function getBlockRange(block1: ClientRect, block2: ClientRect, isXLayout?: boolean): {
3
+ min: number;
4
+ max: number;
5
+ };
6
+ export declare function getMarginSize(config: ICellConfig): 0 | 12;