@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.
- package/README.md +251 -0
- package/codebase/fonts/roboto-bold-webfont.woff +0 -0
- package/codebase/fonts/roboto-bold-webfont.woff2 +0 -0
- package/codebase/fonts/roboto-medium-webfont.woff +0 -0
- package/codebase/fonts/roboto-medium-webfont.woff2 +0 -0
- package/codebase/fonts/roboto-regular-webfont.woff +0 -0
- package/codebase/fonts/roboto-regular-webfont.woff2 +0 -0
- package/codebase/types/ts-calendar/index.d.ts +2 -0
- package/codebase/types/ts-calendar/sources/Calendar.d.ts +37 -0
- package/codebase/types/ts-calendar/sources/helper.d.ts +1 -0
- package/codebase/types/ts-calendar/sources/types.d.ts +64 -0
- package/codebase/types/ts-combobox/index.d.ts +3 -0
- package/codebase/types/ts-combobox/sources/Combobox.d.ts +53 -0
- package/codebase/types/ts-combobox/sources/ProCombobox.d.ts +6 -0
- package/codebase/types/ts-combobox/sources/helper.d.ts +4 -0
- package/codebase/types/ts-combobox/sources/keyListener.d.ts +14 -0
- package/codebase/types/ts-combobox/sources/locales/en.d.ts +8 -0
- package/codebase/types/ts-combobox/sources/types.d.ts +95 -0
- package/codebase/types/ts-common/FocusManager.d.ts +15 -0
- package/codebase/types/ts-common/KeyManager.d.ts +19 -0
- package/codebase/types/ts-common/ScrollView.d.ts +40 -0
- package/codebase/types/ts-common/core.d.ts +40 -0
- package/codebase/types/ts-common/date.d.ts +34 -0
- package/codebase/types/ts-common/dom.d.ts +24 -0
- package/codebase/types/ts-common/events.d.ts +35 -0
- package/codebase/types/ts-common/html.d.ts +74 -0
- package/codebase/types/ts-common/input.d.ts +24 -0
- package/codebase/types/ts-common/keycodes.d.ts +9 -0
- package/codebase/types/ts-common/locale.d.ts +1 -0
- package/codebase/types/ts-common/polyfills/array.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/element.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/fetch.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/math.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/object.d.ts +0 -0
- package/codebase/types/ts-common/polyfills/string.d.ts +0 -0
- package/codebase/types/ts-common/types.d.ts +76 -0
- package/codebase/types/ts-common/view.d.ts +27 -0
- package/codebase/types/ts-data/index.d.ts +13 -0
- package/codebase/types/ts-data/sources/CollectionStore.d.ts +7 -0
- package/codebase/types/ts-data/sources/DragManager.d.ts +19 -0
- package/codebase/types/ts-data/sources/ajax.d.ts +2 -0
- package/codebase/types/ts-data/sources/datacollection/group.d.ts +43 -0
- package/codebase/types/ts-data/sources/datacollection/loader.d.ts +16 -0
- package/codebase/types/ts-data/sources/datacollection/sort.d.ts +7 -0
- package/codebase/types/ts-data/sources/datacollection.d.ts +101 -0
- package/codebase/types/ts-data/sources/dataproxy.d.ts +10 -0
- package/codebase/types/ts-data/sources/drivers/CsvDriver.d.ts +16 -0
- package/codebase/types/ts-data/sources/drivers/JsonDriver.d.ts +10 -0
- package/codebase/types/ts-data/sources/drivers/XMLDriver.d.ts +18 -0
- package/codebase/types/ts-data/sources/drivers/drivers.d.ts +12 -0
- package/codebase/types/ts-data/sources/helpers.d.ts +17 -0
- package/codebase/types/ts-data/sources/lazydataproxy.d.ts +9 -0
- package/codebase/types/ts-data/sources/methods.d.ts +11 -0
- package/codebase/types/ts-data/sources/selection.d.ts +17 -0
- package/codebase/types/ts-data/sources/serializers/xml.d.ts +2 -0
- package/codebase/types/ts-data/sources/treecollection.d.ts +72 -0
- package/codebase/types/ts-data/sources/types.d.ts +340 -0
- package/codebase/types/ts-dataview/index.d.ts +3 -0
- package/codebase/types/ts-dataview/sources/DataView.d.ts +41 -0
- package/codebase/types/ts-dataview/sources/ProDataView.d.ts +11 -0
- package/codebase/types/ts-dataview/sources/editors/InputEditor.d.ts +16 -0
- package/codebase/types/ts-dataview/sources/editors/editors.d.ts +4 -0
- package/codebase/types/ts-dataview/sources/types.d.ts +63 -0
- package/codebase/types/ts-grid/index.d.ts +7 -0
- package/codebase/types/ts-grid/sources/ExtendedGrid.d.ts +47 -0
- package/codebase/types/ts-grid/sources/Grid.d.ts +114 -0
- package/codebase/types/ts-grid/sources/ProGrid.d.ts +67 -0
- package/codebase/types/ts-grid/sources/helpers/cells.d.ts +9 -0
- package/codebase/types/ts-grid/sources/helpers/data.d.ts +36 -0
- package/codebase/types/ts-grid/sources/helpers/default.d.ts +6 -0
- package/codebase/types/ts-grid/sources/helpers/dom.d.ts +3 -0
- package/codebase/types/ts-grid/sources/helpers/keys.d.ts +27 -0
- package/codebase/types/ts-grid/sources/helpers/main.d.ts +23 -0
- package/codebase/types/ts-grid/sources/locales/en.d.ts +7 -0
- package/codebase/types/ts-grid/sources/modules/BlockSelection.d.ts +122 -0
- package/codebase/types/ts-grid/sources/modules/Clipboard.d.ts +55 -0
- package/codebase/types/ts-grid/sources/modules/DropManager.d.ts +21 -0
- package/codebase/types/ts-grid/sources/modules/Exporter.d.ts +80 -0
- package/codebase/types/ts-grid/sources/modules/History.d.ts +72 -0
- package/codebase/types/ts-grid/sources/modules/Range.d.ts +71 -0
- package/codebase/types/ts-grid/sources/modules/Resizer.d.ts +2 -0
- package/codebase/types/ts-grid/sources/modules/Selection.d.ts +58 -0
- package/codebase/types/ts-grid/sources/types.d.ts +660 -0
- package/codebase/types/ts-grid/sources/ui/FixedCols.d.ts +3 -0
- package/codebase/types/ts-grid/sources/ui/FixedRows.d.ts +5 -0
- package/codebase/types/ts-grid/sources/ui/cells.d.ts +34 -0
- package/codebase/types/ts-grid/sources/ui/common.d.ts +8 -0
- package/codebase/types/ts-grid/sources/ui/components/dragPanel.d.ts +7 -0
- package/codebase/types/ts-grid/sources/ui/components/groupPanel.d.ts +13 -0
- package/codebase/types/ts-grid/sources/ui/components/subRow.d.ts +4 -0
- package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +35 -0
- package/codebase/types/ts-grid/sources/ui/content/DateFilter.d.ts +42 -0
- package/codebase/types/ts-grid/sources/ui/content/InputFilter.d.ts +32 -0
- package/codebase/types/ts-grid/sources/ui/content/SelectFilter.d.ts +28 -0
- package/codebase/types/ts-grid/sources/ui/content.d.ts +55 -0
- package/codebase/types/ts-grid/sources/ui/editors/CheckboxEditor.d.ts +18 -0
- package/codebase/types/ts-grid/sources/ui/editors/ComboboxEditor.d.ts +18 -0
- package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +37 -0
- package/codebase/types/ts-grid/sources/ui/editors/InputEditor.d.ts +22 -0
- package/codebase/types/ts-grid/sources/ui/editors/SelectEditor.d.ts +16 -0
- package/codebase/types/ts-grid/sources/ui/editors/TextAreaEditor.d.ts +27 -0
- package/codebase/types/ts-grid/sources/ui/editors/editors.d.ts +2 -0
- package/codebase/types/ts-grid/sources/ui/proContent.d.ts +37 -0
- package/codebase/types/ts-grid/sources/ui/render.d.ts +9 -0
- package/codebase/types/ts-layout/index.d.ts +3 -0
- package/codebase/types/ts-layout/sources/Cell.d.ts +60 -0
- package/codebase/types/ts-layout/sources/Layout.d.ts +29 -0
- package/codebase/types/ts-layout/sources/ProCell.d.ts +9 -0
- package/codebase/types/ts-layout/sources/ProLayout.d.ts +6 -0
- package/codebase/types/ts-layout/sources/helpers.d.ts +6 -0
- package/codebase/types/ts-layout/sources/types.d.ts +129 -0
- package/codebase/types/ts-list/index.d.ts +4 -0
- package/codebase/types/ts-list/sources/List.d.ts +56 -0
- package/codebase/types/ts-list/sources/ProList.d.ts +11 -0
- package/codebase/types/ts-list/sources/Selection.d.ts +24 -0
- package/codebase/types/ts-list/sources/editors/InputEditor.d.ts +16 -0
- package/codebase/types/ts-list/sources/editors/editors.d.ts +4 -0
- package/codebase/types/ts-list/sources/types.d.ts +98 -0
- package/codebase/types/ts-message/index.d.ts +5 -0
- package/codebase/types/ts-message/sources/alert.d.ts +2 -0
- package/codebase/types/ts-message/sources/common.d.ts +1 -0
- package/codebase/types/ts-message/sources/confirm.d.ts +2 -0
- package/codebase/types/ts-message/sources/locales/en.d.ts +5 -0
- package/codebase/types/ts-message/sources/message.d.ts +4 -0
- package/codebase/types/ts-message/sources/tooltip.d.ts +6 -0
- package/codebase/types/ts-message/sources/types.d.ts +79 -0
- package/codebase/types/ts-navbar/index.d.ts +3 -0
- package/codebase/types/ts-navbar/sources/Navbar.d.ts +61 -0
- package/codebase/types/ts-navbar/sources/elements/button.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/customHTMLButton.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/datePicker.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/helpers.d.ts +17 -0
- package/codebase/types/ts-navbar/sources/elements/imageButton.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/input.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/menuItem.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/navItem.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/separator.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/spacer.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/elements/title.d.ts +1 -0
- package/codebase/types/ts-navbar/sources/itemfactory.d.ts +10 -0
- package/codebase/types/ts-navbar/sources/types.d.ts +210 -0
- package/codebase/types/ts-popup/index.d.ts +2 -0
- package/codebase/types/ts-popup/sources/Popup.d.ts +29 -0
- package/codebase/types/ts-popup/sources/types.d.ts +42 -0
- package/codebase/types/ts-slider/index.d.ts +2 -0
- package/codebase/types/ts-slider/sources/Slider.d.ts +55 -0
- package/codebase/types/ts-slider/sources/types.d.ts +60 -0
- package/codebase/types/ts-timepicker/index.d.ts +2 -0
- package/codebase/types/ts-timepicker/sources/Timepicker.d.ts +28 -0
- package/codebase/types/ts-timepicker/sources/helper.d.ts +4 -0
- package/codebase/types/ts-timepicker/sources/locales/en.d.ts +6 -0
- package/codebase/types/ts-timepicker/sources/types.d.ts +52 -0
- package/codebase/types/ts-toolbar/index.d.ts +2 -0
- package/codebase/types/ts-toolbar/sources/ProToolbar.d.ts +10 -0
- package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +33 -0
- package/codebase/types/ts-treegrid/index.d.ts +3 -0
- package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +26 -0
- package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +21 -0
- package/codebase/types/ts-treegrid/sources/types.d.ts +17 -0
- package/codebase/types/ts-vault/sources/ProgressBar.d.ts +12 -0
- package/codebase/types/ts-vault/sources/ReadStackPreview.d.ts +11 -0
- package/codebase/types/ts-vault/sources/Uploader.d.ts +26 -0
- package/codebase/types/ts-vault/sources/Vault.d.ts +39 -0
- package/codebase/types/ts-vault/sources/configs.d.ts +2 -0
- package/codebase/types/ts-vault/sources/entry.d.ts +8 -0
- package/codebase/types/ts-vault/sources/helper.d.ts +31 -0
- package/codebase/types/ts-vault/sources/locales/en.d.ts +21 -0
- package/codebase/types/ts-vault/sources/types.d.ts +127 -0
- package/codebase/vault.d.ts +3 -0
- package/codebase/vault.min.css +1 -0
- package/codebase/vault.min.js +21 -0
- package/codebase/vault.min.js.map +1 -0
- package/license.md +360 -0
- package/package.json +14 -0
- package/whatsnew.txt +99 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type fn<T extends any[], K> = (...args: T) => K;
|
|
2
|
+
type anyFunction = fn<any[], any>;
|
|
3
|
+
export declare function uid(): string;
|
|
4
|
+
export declare function extendComponent(target: any, source: any): any;
|
|
5
|
+
export declare function extend(target: any, source: any, deep?: boolean): any;
|
|
6
|
+
interface IOBj {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export declare function copy(source: IOBj, withoutInner?: boolean): IOBj;
|
|
10
|
+
export declare function naturalSort(arr: any): any[];
|
|
11
|
+
export declare function findIndex<T = any>(arr: T[], predicate: (obj: T) => boolean): number;
|
|
12
|
+
export declare function isExistValue(target: number | string, value: number | string): boolean;
|
|
13
|
+
export declare function singleOuterClick(fn: (e: MouseEvent) => boolean): void;
|
|
14
|
+
export declare function detectWidgetClick(widgetId: string, cb: (inner: boolean) => void): () => void;
|
|
15
|
+
export declare function unwrapBox<T>(box: T | T[]): T;
|
|
16
|
+
export declare function wrapBox<T>(unboxed: T | T[]): T[];
|
|
17
|
+
export declare function isDefined<T>(some: T): boolean;
|
|
18
|
+
export declare function isId<T>(some: T): boolean;
|
|
19
|
+
export declare function range(from: number, to: number): number[];
|
|
20
|
+
export declare function isNumeric(val: any): boolean;
|
|
21
|
+
export declare function downloadFile(data: Blob | string, filename: string, mimeType?: string): void;
|
|
22
|
+
export declare function debounce(func: anyFunction, wait: number, immediate?: boolean): (...args: any[]) => void;
|
|
23
|
+
export declare function compare(obj1: any, obj2: any): boolean;
|
|
24
|
+
export declare const isType: (value: any) => string;
|
|
25
|
+
export declare const isEmptyObj: (obj: any) => boolean;
|
|
26
|
+
export declare const getMaxArrayNumber: (array: number[]) => number;
|
|
27
|
+
export declare const getMinArrayNumber: (array: number[]) => number;
|
|
28
|
+
export interface IContainerConfig {
|
|
29
|
+
lineHeight?: number;
|
|
30
|
+
font?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const getStringWidth: (value: string, config?: IContainerConfig) => number;
|
|
33
|
+
export declare const rgbToHex: (color: string) => string;
|
|
34
|
+
export declare function getCloneObject(obj: any): any;
|
|
35
|
+
export declare function getTextLines({ ctx, text, maxWidth }: {
|
|
36
|
+
ctx: any;
|
|
37
|
+
text: any;
|
|
38
|
+
maxWidth: any;
|
|
39
|
+
}): string[];
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const locale: {
|
|
2
|
+
monthsShort: string[];
|
|
3
|
+
months: string[];
|
|
4
|
+
daysShort: string[];
|
|
5
|
+
days: string[];
|
|
6
|
+
cancel: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function getFormattedDate(format: string, date: Date): string;
|
|
9
|
+
export declare function getExcelDate(date: Date): number;
|
|
10
|
+
export declare function stringToDate(str: string, format: string, validate?: boolean): any;
|
|
11
|
+
export declare class DateHelper {
|
|
12
|
+
static nullTimestampDate: Date;
|
|
13
|
+
static copy(d: Date): Date;
|
|
14
|
+
static fromYear(year: number): Date;
|
|
15
|
+
static fromYearAndMonth(year: number, month: number): Date;
|
|
16
|
+
static weekStart(d: Date, firstWeekday: -1 | 0 | 1): Date;
|
|
17
|
+
static monthStart(d: Date): Date;
|
|
18
|
+
static yearStart(d: Date): Date;
|
|
19
|
+
static dayStart(d: Date): Date;
|
|
20
|
+
static addDay(d: Date, count?: number): Date;
|
|
21
|
+
static addMonth(d: Date, count?: number): Date;
|
|
22
|
+
static addYear(d: Date, count?: number): Date;
|
|
23
|
+
static withHoursAndMinutes(d: Date, hours: number, minutes: number, dateFormat: boolean): Date;
|
|
24
|
+
static setMonth(d: Date, month: number): void;
|
|
25
|
+
static setYear(d: Date, year: number): void;
|
|
26
|
+
static mergeHoursAndMinutes(source: Date, target: Date): Date;
|
|
27
|
+
static isWeekEnd(d: Date): boolean;
|
|
28
|
+
static getTwelweYears(d: Date): number[];
|
|
29
|
+
static getDayOrdinal(d: Date): number;
|
|
30
|
+
static getWeekNumber(d: Date): number;
|
|
31
|
+
static isSameDay(d1: Date, d2: Date): boolean;
|
|
32
|
+
static toDateObject(date: Date | string, dateFormat: string): Date;
|
|
33
|
+
}
|
|
34
|
+
export declare function stripTime(d: Date, full?: boolean): Date;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TTheme } from "./types";
|
|
2
|
+
export declare const el: any;
|
|
3
|
+
export declare const sv: any;
|
|
4
|
+
export declare const view: any;
|
|
5
|
+
export declare const create: any;
|
|
6
|
+
export declare const inject: any;
|
|
7
|
+
export declare const KEYED_LIST: any;
|
|
8
|
+
export declare function disableHelp(): void;
|
|
9
|
+
export type VNode = any;
|
|
10
|
+
export interface IDomView {
|
|
11
|
+
redraw(): any;
|
|
12
|
+
mount(el: HTMLElement): any;
|
|
13
|
+
}
|
|
14
|
+
export interface IDomRender {
|
|
15
|
+
render(view: IDomView, data: any): VNode;
|
|
16
|
+
}
|
|
17
|
+
export interface IViewHash {
|
|
18
|
+
[name: string]: IDomRender;
|
|
19
|
+
}
|
|
20
|
+
export declare function resizer(handler: any): any;
|
|
21
|
+
export declare function resizeHandler(container: any, handler: any): any;
|
|
22
|
+
export declare function awaitRedraw(): Promise<void>;
|
|
23
|
+
export declare function setTheme(theme: TTheme, container: string | HTMLElement): void;
|
|
24
|
+
export declare function getViewHeight(view: VNode, width: number): number;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type Callback = (...args: any[]) => any;
|
|
2
|
+
export interface IEventSystem<E, T extends IEventHandlersMap = IEventHandlersMap> {
|
|
3
|
+
context: any;
|
|
4
|
+
events: IEvents;
|
|
5
|
+
on<K extends keyof T>(name: K, callback: T[K], context?: any): any;
|
|
6
|
+
detach(name: E, context?: any): any;
|
|
7
|
+
clear(): void;
|
|
8
|
+
fire<K extends keyof T>(name: K, args?: ArgumentTypes<T[K]>): boolean;
|
|
9
|
+
}
|
|
10
|
+
interface IEvent {
|
|
11
|
+
callback: Callback;
|
|
12
|
+
context: any;
|
|
13
|
+
}
|
|
14
|
+
interface IEvents {
|
|
15
|
+
[key: string]: IEvent[];
|
|
16
|
+
}
|
|
17
|
+
interface IEventHandlersMap {
|
|
18
|
+
[key: string]: Callback;
|
|
19
|
+
}
|
|
20
|
+
type ArgumentTypes<F extends (...args: any[]) => any> = F extends (...args: infer A) => any ? A : never;
|
|
21
|
+
export declare class EventSystem<E extends string, T extends IEventHandlersMap = IEventHandlersMap> implements IEventSystem<E, T> {
|
|
22
|
+
events: IEvents;
|
|
23
|
+
context: any;
|
|
24
|
+
constructor(context?: any);
|
|
25
|
+
on<K extends keyof T>(name: K, callback: T[K], context?: any): void;
|
|
26
|
+
detach(name: E, context?: any): void;
|
|
27
|
+
fire<K extends keyof T>(name: K, args: ArgumentTypes<T[K]>): boolean;
|
|
28
|
+
clear(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare function EventsMixin(obj: any): void;
|
|
31
|
+
export interface IEventFacade {
|
|
32
|
+
attachEvent: any;
|
|
33
|
+
callEvent: any;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { anyFunction } from "./types";
|
|
2
|
+
export declare function toNode(node: string | HTMLElement): HTMLElement;
|
|
3
|
+
type eventPrepare = (ev: Event) => any;
|
|
4
|
+
interface IHandlerHash {
|
|
5
|
+
[name: string]: (...args: any[]) => boolean | void;
|
|
6
|
+
}
|
|
7
|
+
export declare function eventHandler(prepare: eventPrepare, hash: IHandlerHash, afterCall?: anyFunction): (ev: Event) => boolean;
|
|
8
|
+
export declare function locateNode(target: Event | Element, attr?: string, dir?: string): Element;
|
|
9
|
+
export declare function locate(target: Event | Element, attr?: string): string;
|
|
10
|
+
export declare function locateNodeByClassName(target: Event | Element, className?: string): Element;
|
|
11
|
+
export declare function getBox(elem: any): {
|
|
12
|
+
top: any;
|
|
13
|
+
left: any;
|
|
14
|
+
right: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
export declare function getScrollbarWidth(): number;
|
|
20
|
+
export declare function getScrollbarHeight(): number;
|
|
21
|
+
export interface IFitTarget {
|
|
22
|
+
top: number;
|
|
23
|
+
left: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}
|
|
27
|
+
export interface IFitPosition {
|
|
28
|
+
left: number;
|
|
29
|
+
right: number;
|
|
30
|
+
top: number;
|
|
31
|
+
bottom: number;
|
|
32
|
+
}
|
|
33
|
+
export interface IFitPositionConfig {
|
|
34
|
+
mode?: Position;
|
|
35
|
+
auto?: boolean;
|
|
36
|
+
centering?: boolean;
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
}
|
|
40
|
+
export type IAlign = "left" | "center" | "right";
|
|
41
|
+
export type Position = "left" | "right" | "bottom" | "top";
|
|
42
|
+
export type FlexDirection = "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
43
|
+
export declare function isIE(): boolean;
|
|
44
|
+
export declare function isSafari(): any;
|
|
45
|
+
export declare function isFirefox(): any;
|
|
46
|
+
export declare function getRealPosition(node: HTMLElement): IFitPosition;
|
|
47
|
+
export declare function calculatePosition(pos: IFitPosition, config: IFitPositionConfig): {
|
|
48
|
+
left: string;
|
|
49
|
+
top: string;
|
|
50
|
+
minWidth: string;
|
|
51
|
+
position: string;
|
|
52
|
+
};
|
|
53
|
+
export declare function fitPosition(node: HTMLElement, config: IFitPositionConfig): {
|
|
54
|
+
left: string;
|
|
55
|
+
top: string;
|
|
56
|
+
minWidth: string;
|
|
57
|
+
position: string;
|
|
58
|
+
};
|
|
59
|
+
export declare function getPageCss(): string;
|
|
60
|
+
export declare function getLabelStyle(config: any): false | {
|
|
61
|
+
style: {
|
|
62
|
+
width: any;
|
|
63
|
+
"max-width": string;
|
|
64
|
+
};
|
|
65
|
+
label: any;
|
|
66
|
+
};
|
|
67
|
+
export declare function getPageInlineCss(): string;
|
|
68
|
+
export declare function getPageLinksCss(exportStyles?: string[]): string;
|
|
69
|
+
export declare function getElementFromPoint(e: MouseEvent | TouchEvent): Element | null;
|
|
70
|
+
export declare function getNodeOffset(node1: HTMLElement, node2: HTMLElement): {
|
|
71
|
+
left: number;
|
|
72
|
+
top: number;
|
|
73
|
+
};
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface INumberMask {
|
|
2
|
+
prefix?: string;
|
|
3
|
+
suffix?: string;
|
|
4
|
+
groupSeparator?: string;
|
|
5
|
+
decSeparator?: string;
|
|
6
|
+
allowNegative?: boolean;
|
|
7
|
+
maxIntLength?: number;
|
|
8
|
+
maxDecLength?: number;
|
|
9
|
+
minDecLength?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface INumberMaskConfig extends INumberMask {
|
|
12
|
+
onlyView?: boolean;
|
|
13
|
+
lastCall?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function numberMask(value: string | number, options: INumberMaskConfig, input?: HTMLInputElement): string | number;
|
|
16
|
+
export declare function removeNumberMask(value: string, options: INumberMaskConfig): string;
|
|
17
|
+
export interface IPatternMask {
|
|
18
|
+
pattern: ((value: string | number) => string) | string;
|
|
19
|
+
charFormat?: {
|
|
20
|
+
[char: string]: RegExp;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare function patternMask(value: string | number, options: IPatternMask | string, input?: HTMLInputElement): string;
|
|
24
|
+
export declare function removePatternMask(value: string, options: IPatternMask | string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setLocale(component: string, value: any): void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { IEventSystem } from "./events";
|
|
2
|
+
export interface IHandlers {
|
|
3
|
+
[key: string]: anyFunction | IHandlers;
|
|
4
|
+
}
|
|
5
|
+
export type TTheme = "light" | "dark" | "contrast-light" | "contrast-dark" | string;
|
|
6
|
+
export type Id = string | number;
|
|
7
|
+
export type fn<T extends any[], K> = (...args: T) => K;
|
|
8
|
+
export type anyFunction = fn<any[], any>;
|
|
9
|
+
export interface IAnyObj {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface ISelectionConfig {
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ISelection {
|
|
16
|
+
events: IEventSystem<SelectionEvents>;
|
|
17
|
+
config: ISelectionConfig;
|
|
18
|
+
getId(): Id;
|
|
19
|
+
getItem(): any;
|
|
20
|
+
add(id: Id): void;
|
|
21
|
+
remove(id?: Id): boolean;
|
|
22
|
+
enable(): void;
|
|
23
|
+
disable(): void;
|
|
24
|
+
}
|
|
25
|
+
export declare enum SelectionEvents {
|
|
26
|
+
beforeUnSelect = "beforeunselect",
|
|
27
|
+
afterUnSelect = "afterunselect",
|
|
28
|
+
beforeSelect = "beforeselect",
|
|
29
|
+
afterSelect = "afterselect"
|
|
30
|
+
}
|
|
31
|
+
export interface ISelectionEventsHandlersMap {
|
|
32
|
+
[key: string]: (...args: any[]) => any;
|
|
33
|
+
[SelectionEvents.afterSelect]: (id: Id) => void;
|
|
34
|
+
[SelectionEvents.afterUnSelect]: (id: Id) => void;
|
|
35
|
+
[SelectionEvents.beforeSelect]: (id: Id) => void | boolean;
|
|
36
|
+
[SelectionEvents.beforeUnSelect]: (id: Id) => void | boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ITouchParam {
|
|
39
|
+
duration?: number;
|
|
40
|
+
timer?: any;
|
|
41
|
+
start?: boolean;
|
|
42
|
+
timeStamp?: number;
|
|
43
|
+
dblDuration?: number;
|
|
44
|
+
}
|
|
45
|
+
export type TExportType = "pdf" | "png";
|
|
46
|
+
export type TPaperFormat = "Letter" | "Legal" | "Tabloid" | "Ledger" | "A0" | "A1" | "A2" | "A3" | "A4" | "A5" | "A6";
|
|
47
|
+
export interface IExportFileConfig {
|
|
48
|
+
url?: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
header?: string;
|
|
51
|
+
footer?: string;
|
|
52
|
+
exportStyles?: boolean | string[];
|
|
53
|
+
theme?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IPDFConfig extends IExportFileConfig {
|
|
56
|
+
pdf?: {
|
|
57
|
+
scale?: number;
|
|
58
|
+
landscape?: boolean;
|
|
59
|
+
format?: TPaperFormat;
|
|
60
|
+
margin?: {
|
|
61
|
+
top?: string | number;
|
|
62
|
+
right?: string | number;
|
|
63
|
+
bottom?: string | number;
|
|
64
|
+
left?: string | number;
|
|
65
|
+
};
|
|
66
|
+
width?: string;
|
|
67
|
+
height?: string;
|
|
68
|
+
pageRanges?: string;
|
|
69
|
+
displayHeaderFooter?: boolean;
|
|
70
|
+
footerTemplate?: string;
|
|
71
|
+
headerTemplate?: string;
|
|
72
|
+
printBackground?: boolean;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export type IPNGConfig = IExportFileConfig;
|
|
76
|
+
export type TLabelAlignment = "left" | "right" | "center";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface IView {
|
|
2
|
+
getRootView(): any;
|
|
3
|
+
paint(): void;
|
|
4
|
+
mount(container: any, vnode?: any): void;
|
|
5
|
+
}
|
|
6
|
+
export interface IViewLike {
|
|
7
|
+
mount?(container: any, vnode?: any): void;
|
|
8
|
+
getRootView(): any;
|
|
9
|
+
}
|
|
10
|
+
export declare class View {
|
|
11
|
+
config: any;
|
|
12
|
+
protected _container: any;
|
|
13
|
+
protected _uid: any;
|
|
14
|
+
protected _doNotRepaint: boolean;
|
|
15
|
+
private _view;
|
|
16
|
+
constructor(_container: any, config: any);
|
|
17
|
+
mount(container: any, vnode?: any): void;
|
|
18
|
+
unmount(): void;
|
|
19
|
+
getRootView(): any;
|
|
20
|
+
getRootNode(): HTMLElement;
|
|
21
|
+
paint(): void;
|
|
22
|
+
}
|
|
23
|
+
export declare function toViewLike(view: any): {
|
|
24
|
+
getRootView: () => any;
|
|
25
|
+
paint: () => any;
|
|
26
|
+
mount: (container: any) => any;
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./sources/types";
|
|
2
|
+
export * from "./sources/datacollection";
|
|
3
|
+
export * from "./sources/treecollection";
|
|
4
|
+
export * from "./sources/DragManager";
|
|
5
|
+
export * from "./sources/dataproxy";
|
|
6
|
+
export * from "./sources/lazydataproxy";
|
|
7
|
+
export * from "./sources/helpers";
|
|
8
|
+
export * from "./sources/drivers/CsvDriver";
|
|
9
|
+
export * from "./sources/drivers/JsonDriver";
|
|
10
|
+
export * from "./sources/selection";
|
|
11
|
+
export * from "./sources/drivers/drivers";
|
|
12
|
+
export * from "./sources/ajax";
|
|
13
|
+
export * from "./sources/methods";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Id } from "../../ts-common/types";
|
|
2
|
+
export type TDragItem = "row" | "group" | "column";
|
|
3
|
+
interface IDragConfig {
|
|
4
|
+
event: MouseEvent | TouchEvent;
|
|
5
|
+
type: TDragItem;
|
|
6
|
+
source?: Id[];
|
|
7
|
+
itemsForGhost?: NodeList | HTMLDivElement[] | Element[];
|
|
8
|
+
ghost?: HTMLElement;
|
|
9
|
+
groupable?: boolean;
|
|
10
|
+
groupOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IDragManager {
|
|
13
|
+
setItem(id: Id, item: any): void;
|
|
14
|
+
onMouseDown(config: IDragConfig): void;
|
|
15
|
+
isDrag(): boolean;
|
|
16
|
+
cancelCanDrop(event: MouseEvent | TouchEvent): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const dragManager: IDragManager;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IDataItem } from "../types";
|
|
2
|
+
export type TGroupOrderFunc = (i: IDataItem) => string;
|
|
3
|
+
export type TAggregate = "sum" | "count" | "min" | "max" | "avg" | string;
|
|
4
|
+
export interface IGroupOrder {
|
|
5
|
+
by: string | TGroupOrderFunc;
|
|
6
|
+
map?: {
|
|
7
|
+
[field: string]: [string, TAggregate] | ((i: IDataItem[]) => string | number);
|
|
8
|
+
};
|
|
9
|
+
summary?: "top" | "bottom";
|
|
10
|
+
}
|
|
11
|
+
export interface IGroupOrderConfig extends IGroupOrder {
|
|
12
|
+
by: string;
|
|
13
|
+
}
|
|
14
|
+
export type TGroupOrder = string | TGroupOrderFunc | IGroupOrder;
|
|
15
|
+
export type TDisplayMode = "original" | "column" | "row";
|
|
16
|
+
export interface IGroupConfig {
|
|
17
|
+
displayMode?: TDisplayMode;
|
|
18
|
+
showMissed?: boolean | string;
|
|
19
|
+
field?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IGroup {
|
|
22
|
+
group(order: TGroupOrder[], arr: IDataItem[], config: IGroupConfig): IDataItem[];
|
|
23
|
+
ungroup(arr?: IDataItem[]): IDataItem[];
|
|
24
|
+
isGrouped(): boolean;
|
|
25
|
+
getGroupedFields(): string[];
|
|
26
|
+
getGroupConfig(config?: IGroupConfig): IGroupConfig;
|
|
27
|
+
}
|
|
28
|
+
export declare class Group implements IGroup {
|
|
29
|
+
private _init;
|
|
30
|
+
private _config;
|
|
31
|
+
private _groupSet;
|
|
32
|
+
private _groupOrderFields;
|
|
33
|
+
constructor();
|
|
34
|
+
group(order: TGroupOrder[], arr: IDataItem[], config?: IGroupConfig): IDataItem[];
|
|
35
|
+
ungroup(modifiedData?: IDataItem[]): IDataItem[];
|
|
36
|
+
isGrouped(): boolean;
|
|
37
|
+
getGroupedFields(): string[];
|
|
38
|
+
getGroupConfig(config?: IGroupConfig): IGroupConfig;
|
|
39
|
+
private _group;
|
|
40
|
+
private _addSummaryRow;
|
|
41
|
+
private _toAggregate;
|
|
42
|
+
private _getOrderConfig;
|
|
43
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDataChangeStack, IDataDriver, IDataProxy, IDataCollection, DataDriver } from "../types";
|
|
2
|
+
export declare class Loader {
|
|
3
|
+
private _parent;
|
|
4
|
+
private _saving;
|
|
5
|
+
private _changes;
|
|
6
|
+
constructor(parent: IDataCollection, changes: any);
|
|
7
|
+
load(url: IDataProxy, driver?: IDataDriver | DataDriver): Promise<any>;
|
|
8
|
+
parse(data: any | any[], driver?: IDataDriver | DataDriver): any;
|
|
9
|
+
save(url: IDataProxy): void;
|
|
10
|
+
updateChanges(changes: IDataChangeStack): void;
|
|
11
|
+
private _setPromise;
|
|
12
|
+
private _addToChain;
|
|
13
|
+
private _findPrevState;
|
|
14
|
+
private _removeFromOrder;
|
|
15
|
+
private _getUniqueOrder;
|
|
16
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { IEventSystem } from "../../ts-common/events";
|
|
2
|
+
import { Id } from "../../ts-common/types";
|
|
3
|
+
import { Sort } from "./datacollection/sort";
|
|
4
|
+
import { DataCallback, DataEvents, IDataCollection, IDataItem, IDataProxy, IFilterCallback, IFilterConfig, IFilterMode, ISortMode, ITreeCollection, IUpdateObject, ReduceCallBack, Statuses, IDataEventsHandlersMap, DataDriver, IDataConfig, ISortConfig, IDataDriver, IFilterComplexMode, IFilter, IResetFilterConfig, IGroupDataConfig, ISortingState } from "./types";
|
|
5
|
+
import { TGroupOrder, IGroup } from "./datacollection/group";
|
|
6
|
+
export declare class DataCollection<T extends IDataItem = IDataItem> implements IDataCollection<T> {
|
|
7
|
+
loadData: Promise<any>;
|
|
8
|
+
saveData: Promise<any>;
|
|
9
|
+
dataProxy: IDataProxy;
|
|
10
|
+
config: IDataConfig;
|
|
11
|
+
events: IEventSystem<DataEvents, IDataEventsHandlersMap>;
|
|
12
|
+
protected _order: T[];
|
|
13
|
+
protected _pull: {
|
|
14
|
+
[id: string]: T;
|
|
15
|
+
};
|
|
16
|
+
protected _sort: Sort;
|
|
17
|
+
protected _sorter: ISortMode;
|
|
18
|
+
protected _meta: any;
|
|
19
|
+
protected _range: [number, number];
|
|
20
|
+
protected _loaded: boolean;
|
|
21
|
+
protected _initFilterOrder: T[];
|
|
22
|
+
protected _initSortOrder: T[];
|
|
23
|
+
protected _filters: IFilter;
|
|
24
|
+
protected _group: IGroup;
|
|
25
|
+
protected _sortingStates: ISortingState[];
|
|
26
|
+
private _changes;
|
|
27
|
+
private _loader;
|
|
28
|
+
constructor(config?: any, events?: IEventSystem<any>);
|
|
29
|
+
protected _reset(config?: {
|
|
30
|
+
grouping?: boolean;
|
|
31
|
+
}): void;
|
|
32
|
+
group(order: TGroupOrder[], config?: IGroupDataConfig): void;
|
|
33
|
+
ungroup(): void;
|
|
34
|
+
isGrouped(): boolean;
|
|
35
|
+
add(newItem: IDataItem, index?: number): Id;
|
|
36
|
+
add(newItem: IDataItem[], index?: number): Id[];
|
|
37
|
+
remove(id: Id | Id[]): void;
|
|
38
|
+
removeAll(): void;
|
|
39
|
+
exists(id: Id): boolean;
|
|
40
|
+
getNearId(id: Id): Id;
|
|
41
|
+
getItem(id: Id): T;
|
|
42
|
+
update(id: Id, newItem: IUpdateObject, silent?: boolean): void;
|
|
43
|
+
getIndex(id: Id): number;
|
|
44
|
+
getId(index: number): Id;
|
|
45
|
+
getLength(): number;
|
|
46
|
+
isDataLoaded(from?: number, to?: number): boolean;
|
|
47
|
+
filter(rule?: IFilterMode | IFilterComplexMode | IFilterCallback, config?: IFilterConfig, silent?: boolean): string;
|
|
48
|
+
resetFilter(config?: IResetFilterConfig, silent?: boolean): boolean;
|
|
49
|
+
getFilters(config?: {
|
|
50
|
+
permanent?: boolean;
|
|
51
|
+
}): IFilter;
|
|
52
|
+
getRawFilters(config?: {
|
|
53
|
+
permanent?: boolean;
|
|
54
|
+
}): IFilter;
|
|
55
|
+
find(conf: IFilterMode | DataCallback<T>): any;
|
|
56
|
+
findAll(conf: IFilterMode | DataCallback<T>): any[];
|
|
57
|
+
sort(rule?: ISortMode, config?: ISortConfig, ignore?: boolean): void;
|
|
58
|
+
getSortingStates(): ISortMode[];
|
|
59
|
+
copy(id: Id | Id[], index: number, target?: IDataCollection | ITreeCollection, targetId?: Id): Id | Id[];
|
|
60
|
+
move(id: Id | Id[], index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, newId?: Id): Id | Id[];
|
|
61
|
+
forEach(callback: DataCallback<T>): void;
|
|
62
|
+
load(url: IDataProxy | string, driver?: IDataDriver | DataDriver): Promise<any>;
|
|
63
|
+
parse(data: T[] | string, driver?: DataDriver | IDataDriver): any;
|
|
64
|
+
$parse(data: any[]): void;
|
|
65
|
+
save(url: IDataProxy | string): void;
|
|
66
|
+
changeId(id: Id, newId?: Id, silent?: boolean): void;
|
|
67
|
+
isSaved(): boolean;
|
|
68
|
+
map(callback: DataCallback<T>): any[];
|
|
69
|
+
mapRange(from: number, to: number, callback: DataCallback<T>): any[];
|
|
70
|
+
reduce<A>(callback: ReduceCallBack<T, A>, acc: A): A;
|
|
71
|
+
serialize(driver?: DataDriver): any;
|
|
72
|
+
getInitialData(): T[];
|
|
73
|
+
setMeta(obj: T, key: string, value: any): void;
|
|
74
|
+
getMeta(obj: T, key: string): any;
|
|
75
|
+
getMetaMap(obj: T): any;
|
|
76
|
+
setRange(from: number, to: number): void;
|
|
77
|
+
getRawData(from: number, to: number, order?: T[], mode?: number): T[];
|
|
78
|
+
protected _add({ newItem, index, order, batch, }: {
|
|
79
|
+
newItem: IDataItem;
|
|
80
|
+
batch: IDataItem[];
|
|
81
|
+
order?: number;
|
|
82
|
+
index?: number;
|
|
83
|
+
}): Id;
|
|
84
|
+
protected _remove(id: Id, batch: Id[], index?: number): void;
|
|
85
|
+
protected _copy(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number): Id;
|
|
86
|
+
protected _move(id: Id, index: number, target?: IDataCollection | ITreeCollection, targetId?: Id, key?: number, newId?: Id): Id;
|
|
87
|
+
protected _addCore(obj: IDataItem, index?: number): Id;
|
|
88
|
+
protected _removeCore(id: Id): void;
|
|
89
|
+
protected _parse_data(data: any[]): void;
|
|
90
|
+
protected _approximate(data: any[], values: string[], maxNum: number): any[];
|
|
91
|
+
protected _onChange(status: Statuses, id: Id, obj: any): void;
|
|
92
|
+
protected _addToOrder(array: any[], obj: any, index?: number): void;
|
|
93
|
+
protected _applySorters(): void;
|
|
94
|
+
protected _applyFilters(rule?: IFilterMode | IFilterCallback): void;
|
|
95
|
+
protected _reapplyFilters(): void;
|
|
96
|
+
protected _getRuleCallback(rule: IFilterMode): IFilterCallback;
|
|
97
|
+
protected _getPureFilters(filters: IFilter): IFilter;
|
|
98
|
+
protected _normalizeFilters(filters: any): any;
|
|
99
|
+
protected _checkFilterRule(rule: IFilterMode | IFilterCallback): boolean;
|
|
100
|
+
private _parse;
|
|
101
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDataProxy } from "./types";
|
|
2
|
+
export declare class DataProxy implements IDataProxy {
|
|
3
|
+
url: string;
|
|
4
|
+
config: any;
|
|
5
|
+
protected _url: string;
|
|
6
|
+
constructor(url: string, config?: {});
|
|
7
|
+
updateUrl(url?: string, params?: any): void;
|
|
8
|
+
load<T = string>(): Promise<T | void>;
|
|
9
|
+
save(data: any, mode: string): Promise<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDataDriver, ICsvDriverConfig } from "../types";
|
|
2
|
+
import { IAnyObj } from "../../../ts-common/types";
|
|
3
|
+
export interface ICsvDriver extends IDataDriver {
|
|
4
|
+
getFields(data: string, headers?: string[]): any;
|
|
5
|
+
}
|
|
6
|
+
export declare class CsvDriver implements ICsvDriver {
|
|
7
|
+
config: ICsvDriverConfig;
|
|
8
|
+
constructor(config?: ICsvDriverConfig);
|
|
9
|
+
getFields(row: string, headers?: string[]): {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
getRows(data: string): string[];
|
|
13
|
+
toJsonArray(data: string): any[];
|
|
14
|
+
serialize(data: IAnyObj[], withoutHeader?: boolean): string;
|
|
15
|
+
private _serialize;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDataDriver } from "../types";
|
|
2
|
+
import { IAnyObj } from "../../../ts-common/types";
|
|
3
|
+
export declare class JsonDriver implements IDataDriver {
|
|
4
|
+
toJsonArray(data: any): any[];
|
|
5
|
+
serialize(data: IAnyObj[]): IAnyObj[];
|
|
6
|
+
getFields(row: any): {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
getRows(data: string): any[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDataDriver } from "../types";
|
|
2
|
+
import { IAnyObj } from "../../../ts-common/types";
|
|
3
|
+
export declare class XMLDriver implements IDataDriver {
|
|
4
|
+
toJsonArray(data: any): any[];
|
|
5
|
+
toJsonObject(data: string): {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
serialize(data: IAnyObj[]): string;
|
|
9
|
+
getFields(row: any): {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
getRows(data: Document | string): any[];
|
|
13
|
+
private _getRows;
|
|
14
|
+
private _fromString;
|
|
15
|
+
private _nodeToJS;
|
|
16
|
+
private _toType;
|
|
17
|
+
private _haveAttrs;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JsonDriver } from "./JsonDriver";
|
|
2
|
+
import { CsvDriver } from "./CsvDriver";
|
|
3
|
+
import { XMLDriver } from "./XMLDriver";
|
|
4
|
+
export declare const dataDrivers: {
|
|
5
|
+
json: typeof JsonDriver;
|
|
6
|
+
csv: typeof CsvDriver;
|
|
7
|
+
};
|
|
8
|
+
export declare const dataDriversPro: {
|
|
9
|
+
xml: typeof XMLDriver;
|
|
10
|
+
json: typeof JsonDriver;
|
|
11
|
+
csv: typeof CsvDriver;
|
|
12
|
+
};
|