x4js 1.5.0 → 1.5.2
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/lib/README.md +19 -0
- package/lib/changelog.txt +5 -0
- package/lib/cjs/application.js +6 -6
- package/lib/cjs/icon.js +5 -0
- package/lib/cjs/md5.js +7 -7
- package/lib/cjs/tools.js +8 -5
- package/lib/cjs/version.js +1 -1
- package/lib/esm/icon.js +5 -0
- package/lib/esm/tools.js +8 -5
- package/lib/esm/version.js +1 -1
- package/lib/license.md +21 -0
- package/lib/{ts_src → src}/MIT-license.md +0 -0
- package/lib/{ts_src → src}/action.ts +0 -0
- package/lib/{ts_src → src}/alpha.jpg +0 -0
- package/lib/{ts_src → src}/application.ts +0 -0
- package/lib/{ts_src → src}/autocomplete.ts +0 -0
- package/lib/{ts_src → src}/base64.ts +0 -0
- package/lib/{ts_src → src}/base_component.ts +0 -0
- package/lib/{ts_src → src}/button.ts +0 -0
- package/lib/{ts_src → src}/calendar.ts +0 -0
- package/lib/{ts_src → src}/canvas.ts +0 -0
- package/lib/{ts_src → src}/cardview.ts +0 -0
- package/lib/{ts_src → src}/checkbox.ts +0 -0
- package/lib/{ts_src → src}/color.ts +0 -0
- package/lib/{ts_src → src}/colorpicker.ts +0 -0
- package/lib/{ts_src → src}/combobox.ts +0 -0
- package/lib/{ts_src → src}/component.ts +0 -0
- package/lib/{ts_src → src}/datastore.ts +0 -0
- package/lib/{ts_src → src}/dialog.ts +0 -0
- package/lib/{ts_src → src}/dom_events.ts +0 -0
- package/lib/{ts_src → src}/drag_manager.ts +0 -0
- package/lib/{ts_src → src}/drawtext.ts +0 -0
- package/lib/{ts_src → src}/fileupload.ts +0 -0
- package/lib/{ts_src → src}/form.ts +0 -0
- package/lib/{ts_src → src}/formatters.ts +0 -0
- package/lib/{ts_src → src}/gridview.ts +0 -0
- package/lib/{ts_src → src}/i18n.ts +0 -0
- package/lib/{ts_src → src}/icon.ts +6 -0
- package/lib/{ts_src → src}/image.ts +0 -0
- package/lib/{ts_src → src}/index.ts +0 -0
- package/lib/{ts_src → src}/input.ts +0 -0
- package/lib/{ts_src → src}/label.ts +0 -0
- package/lib/{ts_src → src}/layout.ts +0 -0
- package/lib/{ts_src → src}/link.ts +0 -0
- package/lib/{ts_src → src}/listview.ts +0 -0
- package/lib/{ts_src → src}/md5.ts +0 -0
- package/lib/{ts_src → src}/menu.ts +0 -0
- package/lib/{ts_src → src}/messagebox.ts +0 -0
- package/lib/{ts_src → src}/panel.ts +0 -0
- package/lib/{ts_src → src}/popup.ts +0 -0
- package/lib/{ts_src → src}/property_editor.ts +0 -0
- package/lib/{ts_src → src}/radiobtn.ts +0 -0
- package/lib/{ts_src → src}/rating.ts +0 -0
- package/lib/{ts_src → src}/request.ts +0 -0
- package/lib/{ts_src → src}/router.ts +0 -0
- package/lib/{ts_src → src}/settings.ts +0 -0
- package/lib/{ts_src → src}/sidebarview.ts +0 -0
- package/lib/{ts_src → src}/spreadsheet.ts +0 -0
- package/lib/{ts_src → src}/styles.ts +0 -0
- package/lib/{ts_src → src}/svgcomponent.ts +0 -0
- package/lib/{ts_src → src}/tabbar.ts +0 -0
- package/lib/{ts_src → src}/tabview.ts +0 -0
- package/lib/{ts_src → src}/textarea.ts +0 -0
- package/lib/{ts_src → src}/textedit.ts +0 -0
- package/lib/{ts_src → src}/toaster.ts +0 -0
- package/lib/{ts_src → src}/tools.ts +12 -7
- package/lib/{ts_src → src}/tooltips.ts +0 -0
- package/lib/{ts_src → src}/treeview.ts +0 -0
- package/lib/{ts_src → src}/version.ts +1 -1
- package/lib/{ts_src → src}/x4.less +5 -3
- package/lib/{ts_src → src}/x4dom.ts +0 -0
- package/lib/{ts_src → src}/x4events.ts +0 -0
- package/lib/{ts_src → src}/x4react.ts +0 -0
- package/lib/styles/x4.css +5 -3
- package/lib/styles/x4.less +5 -3
- package/lib/{cjs → types}/action.d.ts +0 -0
- package/lib/{cjs → types}/application.d.ts +0 -0
- package/lib/{cjs → types}/autocomplete.d.ts +0 -0
- package/lib/{cjs → types}/base_component.d.ts +0 -0
- package/lib/{cjs/types → types}/button.d.ts +1 -1
- package/lib/{cjs → types}/calendar.d.ts +0 -0
- package/lib/{cjs → types}/canvas.d.ts +1 -1
- package/lib/{cjs/types → types}/cardview.d.ts +1 -1
- package/lib/{cjs → types}/checkbox.d.ts +0 -0
- package/lib/{cjs → types}/color.d.ts +0 -0
- package/lib/{cjs → types}/colorpicker.d.ts +0 -0
- package/lib/{cjs → types}/combobox.d.ts +0 -0
- package/lib/{cjs → types}/component.d.ts +6 -6
- package/lib/{cjs/types → types}/datastore.d.ts +5 -5
- package/lib/{cjs/types → types}/dialog.d.ts +1 -1
- package/lib/{cjs → types}/dom_events.d.ts +0 -0
- package/lib/{esm → types}/drag_manager.d.ts +2 -2
- package/lib/{cjs → types}/drawtext.d.ts +0 -0
- package/lib/{cjs → types}/fileupload.d.ts +0 -0
- package/lib/{cjs → types}/form.d.ts +2 -2
- package/lib/{cjs → types}/formatters.d.ts +1 -1
- package/lib/{cjs → types}/gridview.d.ts +4 -4
- package/lib/{cjs → types}/i18n.d.ts +0 -0
- package/lib/{cjs → types}/icon.d.ts +1 -1
- package/lib/{cjs → types}/image.d.ts +0 -0
- package/lib/{cjs → types}/index.d.ts +0 -0
- package/lib/{cjs/types → types}/input.d.ts +1 -1
- package/lib/{cjs → types}/label.d.ts +0 -0
- package/lib/{cjs → types}/layout.d.ts +0 -0
- package/lib/{cjs → types}/link.d.ts +0 -0
- package/lib/{cjs → types}/listview.d.ts +0 -0
- package/lib/{cjs → types}/md5.d.ts +0 -0
- package/lib/{esm → types}/menu.d.ts +1 -1
- package/lib/{cjs → types}/messagebox.d.ts +0 -0
- package/lib/{cjs → types}/panel.d.ts +0 -0
- package/lib/{cjs → types}/popup.d.ts +0 -0
- package/lib/{esm → types}/property_editor.d.ts +1 -1
- package/lib/{cjs → types}/radiobtn.d.ts +0 -0
- package/lib/{cjs → types}/rating.d.ts +0 -0
- package/lib/{cjs → types}/request.d.ts +0 -0
- package/lib/{cjs/types → types}/router.d.ts +1 -1
- package/lib/{cjs → types}/settings.d.ts +0 -0
- package/lib/{cjs → types}/sidebarview.d.ts +0 -0
- package/lib/{cjs → types}/spreadsheet.d.ts +0 -0
- package/lib/{cjs → types}/styles.d.ts +0 -0
- package/lib/{cjs → types}/svgcomponent.d.ts +0 -0
- package/lib/{cjs → types}/tabbar.d.ts +0 -0
- package/lib/{cjs → types}/tabview.d.ts +0 -0
- package/lib/{cjs → types}/textarea.d.ts +0 -0
- package/lib/{esm → types}/textedit.d.ts +1 -1
- package/lib/{cjs → types}/toaster.d.ts +0 -0
- package/lib/{cjs → types}/tools.d.ts +1 -1
- package/lib/{esm → types}/tooltips.d.ts +1 -1
- package/lib/{cjs → types}/treeview.d.ts +0 -0
- package/lib/{esm/types → types}/version.d.ts +1 -1
- package/lib/{cjs/types → types}/x4dom.d.ts +0 -0
- package/lib/{cjs/types → types}/x4events.d.ts +2 -2
- package/lib/{cjs/types → types}/x4react.d.ts +0 -0
- package/lib/x4.css +1780 -0
- package/package.json +11 -12
- package/lib/cjs/button.d.ts +0 -151
- package/lib/cjs/cardview.d.ts +0 -87
- package/lib/cjs/datastore.d.ts +0 -396
- package/lib/cjs/dialog.d.ts +0 -175
- package/lib/cjs/drag_manager.d.ts +0 -54
- package/lib/cjs/input.d.ts +0 -91
- package/lib/cjs/menu.d.ts +0 -130
- package/lib/cjs/property_editor.d.ts +0 -71
- package/lib/cjs/router.d.ts +0 -42
- package/lib/cjs/textedit.d.ts +0 -123
- package/lib/cjs/tooltips.d.ts +0 -46
- package/lib/cjs/types/action.d.ts +0 -57
- package/lib/cjs/types/application.d.ts +0 -104
- package/lib/cjs/types/autocomplete.d.ts +0 -58
- package/lib/cjs/types/base_component.d.ts +0 -88
- package/lib/cjs/types/calendar.d.ts +0 -81
- package/lib/cjs/types/canvas.d.ts +0 -92
- package/lib/cjs/types/checkbox.d.ts +0 -77
- package/lib/cjs/types/color.d.ts +0 -148
- package/lib/cjs/types/colorpicker.d.ts +0 -107
- package/lib/cjs/types/combobox.d.ts +0 -101
- package/lib/cjs/types/component.d.ts +0 -601
- package/lib/cjs/types/dom_events.d.ts +0 -302
- package/lib/cjs/types/drag_manager.d.ts +0 -54
- package/lib/cjs/types/drawtext.d.ts +0 -48
- package/lib/cjs/types/fileupload.d.ts +0 -64
- package/lib/cjs/types/form.d.ts +0 -126
- package/lib/cjs/types/formatters.d.ts +0 -35
- package/lib/cjs/types/gridview.d.ts +0 -175
- package/lib/cjs/types/i18n.d.ts +0 -73
- package/lib/cjs/types/icon.d.ts +0 -64
- package/lib/cjs/types/image.d.ts +0 -55
- package/lib/cjs/types/index.d.ts +0 -83
- package/lib/cjs/types/label.d.ts +0 -58
- package/lib/cjs/types/layout.d.ts +0 -87
- package/lib/cjs/types/link.d.ts +0 -50
- package/lib/cjs/types/listview.d.ts +0 -178
- package/lib/cjs/types/md5.d.ts +0 -61
- package/lib/cjs/types/menu.d.ts +0 -130
- package/lib/cjs/types/messagebox.d.ts +0 -68
- package/lib/cjs/types/panel.d.ts +0 -47
- package/lib/cjs/types/popup.d.ts +0 -75
- package/lib/cjs/types/property_editor.d.ts +0 -71
- package/lib/cjs/types/radiobtn.d.ts +0 -72
- package/lib/cjs/types/rating.d.ts +0 -53
- package/lib/cjs/types/request.d.ts +0 -52
- package/lib/cjs/types/settings.d.ts +0 -37
- package/lib/cjs/types/sidebarview.d.ts +0 -49
- package/lib/cjs/types/spreadsheet.d.ts +0 -218
- package/lib/cjs/types/styles.d.ts +0 -85
- package/lib/cjs/types/svgcomponent.d.ts +0 -191
- package/lib/cjs/types/tabbar.d.ts +0 -58
- package/lib/cjs/types/tabview.d.ts +0 -49
- package/lib/cjs/types/textarea.d.ts +0 -63
- package/lib/cjs/types/textedit.d.ts +0 -123
- package/lib/cjs/types/toaster.d.ts +0 -42
- package/lib/cjs/types/tools.d.ts +0 -394
- package/lib/cjs/types/tooltips.d.ts +0 -46
- package/lib/cjs/types/treeview.d.ts +0 -132
- package/lib/cjs/types/version.d.ts +0 -29
- package/lib/cjs/version.d.ts +0 -29
- package/lib/cjs/x4dom.d.ts +0 -49
- package/lib/cjs/x4events.d.ts +0 -269
- package/lib/cjs/x4react.d.ts +0 -41
- package/lib/esm/action.d.ts +0 -57
- package/lib/esm/application.d.ts +0 -104
- package/lib/esm/autocomplete.d.ts +0 -58
- package/lib/esm/base_component.d.ts +0 -88
- package/lib/esm/button.d.ts +0 -151
- package/lib/esm/calendar.d.ts +0 -81
- package/lib/esm/canvas.d.ts +0 -92
- package/lib/esm/cardview.d.ts +0 -87
- package/lib/esm/checkbox.d.ts +0 -77
- package/lib/esm/color.d.ts +0 -148
- package/lib/esm/colorpicker.d.ts +0 -107
- package/lib/esm/combobox.d.ts +0 -101
- package/lib/esm/component.d.ts +0 -601
- package/lib/esm/datastore.d.ts +0 -396
- package/lib/esm/dialog.d.ts +0 -175
- package/lib/esm/dom_events.d.ts +0 -302
- package/lib/esm/drawtext.d.ts +0 -48
- package/lib/esm/fileupload.d.ts +0 -64
- package/lib/esm/form.d.ts +0 -126
- package/lib/esm/formatters.d.ts +0 -35
- package/lib/esm/gridview.d.ts +0 -175
- package/lib/esm/i18n.d.ts +0 -73
- package/lib/esm/icon.d.ts +0 -64
- package/lib/esm/image.d.ts +0 -55
- package/lib/esm/index.d.ts +0 -83
- package/lib/esm/input.d.ts +0 -91
- package/lib/esm/label.d.ts +0 -58
- package/lib/esm/layout.d.ts +0 -87
- package/lib/esm/link.d.ts +0 -50
- package/lib/esm/listview.d.ts +0 -178
- package/lib/esm/md5.d.ts +0 -61
- package/lib/esm/messagebox.d.ts +0 -68
- package/lib/esm/panel.d.ts +0 -47
- package/lib/esm/popup.d.ts +0 -75
- package/lib/esm/radiobtn.d.ts +0 -72
- package/lib/esm/rating.d.ts +0 -53
- package/lib/esm/request.d.ts +0 -52
- package/lib/esm/router.d.ts +0 -42
- package/lib/esm/settings.d.ts +0 -37
- package/lib/esm/sidebarview.d.ts +0 -49
- package/lib/esm/spreadsheet.d.ts +0 -218
- package/lib/esm/styles.d.ts +0 -85
- package/lib/esm/svgcomponent.d.ts +0 -191
- package/lib/esm/tabbar.d.ts +0 -58
- package/lib/esm/tabview.d.ts +0 -49
- package/lib/esm/textarea.d.ts +0 -63
- package/lib/esm/toaster.d.ts +0 -42
- package/lib/esm/tools.d.ts +0 -394
- package/lib/esm/treeview.d.ts +0 -132
- package/lib/esm/types/action.d.ts +0 -57
- package/lib/esm/types/application.d.ts +0 -104
- package/lib/esm/types/autocomplete.d.ts +0 -58
- package/lib/esm/types/base_component.d.ts +0 -88
- package/lib/esm/types/button.d.ts +0 -151
- package/lib/esm/types/calendar.d.ts +0 -81
- package/lib/esm/types/canvas.d.ts +0 -92
- package/lib/esm/types/cardview.d.ts +0 -87
- package/lib/esm/types/checkbox.d.ts +0 -77
- package/lib/esm/types/color.d.ts +0 -148
- package/lib/esm/types/colorpicker.d.ts +0 -107
- package/lib/esm/types/combobox.d.ts +0 -101
- package/lib/esm/types/component.d.ts +0 -601
- package/lib/esm/types/datastore.d.ts +0 -396
- package/lib/esm/types/dialog.d.ts +0 -175
- package/lib/esm/types/dom_events.d.ts +0 -302
- package/lib/esm/types/drag_manager.d.ts +0 -54
- package/lib/esm/types/drawtext.d.ts +0 -48
- package/lib/esm/types/fileupload.d.ts +0 -64
- package/lib/esm/types/form.d.ts +0 -126
- package/lib/esm/types/formatters.d.ts +0 -35
- package/lib/esm/types/gridview.d.ts +0 -175
- package/lib/esm/types/i18n.d.ts +0 -73
- package/lib/esm/types/icon.d.ts +0 -64
- package/lib/esm/types/image.d.ts +0 -55
- package/lib/esm/types/index.d.ts +0 -83
- package/lib/esm/types/input.d.ts +0 -91
- package/lib/esm/types/label.d.ts +0 -58
- package/lib/esm/types/layout.d.ts +0 -87
- package/lib/esm/types/link.d.ts +0 -50
- package/lib/esm/types/listview.d.ts +0 -178
- package/lib/esm/types/md5.d.ts +0 -61
- package/lib/esm/types/menu.d.ts +0 -130
- package/lib/esm/types/messagebox.d.ts +0 -68
- package/lib/esm/types/panel.d.ts +0 -47
- package/lib/esm/types/popup.d.ts +0 -75
- package/lib/esm/types/property_editor.d.ts +0 -71
- package/lib/esm/types/radiobtn.d.ts +0 -72
- package/lib/esm/types/rating.d.ts +0 -53
- package/lib/esm/types/request.d.ts +0 -52
- package/lib/esm/types/router.d.ts +0 -42
- package/lib/esm/types/settings.d.ts +0 -37
- package/lib/esm/types/sidebarview.d.ts +0 -49
- package/lib/esm/types/spreadsheet.d.ts +0 -218
- package/lib/esm/types/styles.d.ts +0 -85
- package/lib/esm/types/svgcomponent.d.ts +0 -191
- package/lib/esm/types/tabbar.d.ts +0 -58
- package/lib/esm/types/tabview.d.ts +0 -49
- package/lib/esm/types/textarea.d.ts +0 -63
- package/lib/esm/types/textedit.d.ts +0 -123
- package/lib/esm/types/toaster.d.ts +0 -42
- package/lib/esm/types/tools.d.ts +0 -394
- package/lib/esm/types/tooltips.d.ts +0 -46
- package/lib/esm/types/treeview.d.ts +0 -132
- package/lib/esm/types/x4dom.d.ts +0 -49
- package/lib/esm/types/x4events.d.ts +0 -269
- package/lib/esm/types/x4react.d.ts +0 -41
- package/lib/esm/version.d.ts +0 -29
- package/lib/esm/x4dom.d.ts +0 -49
- package/lib/esm/x4events.d.ts +0 -269
- package/lib/esm/x4react.d.ts +0 -41
|
File without changes
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
**/
|
|
29
29
|
import { Component } from './component';
|
|
30
30
|
import { Point } from './tools';
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
type DropCallback = (command: 'enter' | 'leave' | 'drag' | 'drop', el: Component, point: Point) => void;
|
|
32
|
+
type FilterCallback = (el: Component) => boolean;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
File without changes
|
|
File without changes
|
|
@@ -32,8 +32,8 @@ import { Button } from './button';
|
|
|
32
32
|
import { RequestProps } from './request';
|
|
33
33
|
import { EventCallback } from './x4events';
|
|
34
34
|
import { EvBtnClick } from './dialog';
|
|
35
|
-
export
|
|
36
|
-
export
|
|
35
|
+
export type FormBtn = 'ok' | 'cancel' | 'ignore' | 'yes' | 'no' | 'close' | 'save' | 'dontsave';
|
|
36
|
+
export type FormButtons = (FormBtn | Button | Component)[];
|
|
37
37
|
export interface FormEventMap extends ContainerEventMap {
|
|
38
38
|
btnClick?: EvBtnClick;
|
|
39
39
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
**/
|
|
29
|
-
export
|
|
29
|
+
export type FormatFunc = (input: any, rec: any) => string;
|
|
30
30
|
export declare function setCurrencySymbol(symbol: string | null): void;
|
|
31
31
|
export declare function sql_date_formatter(input: any): string;
|
|
32
32
|
export declare function date_formatter(input: any): string;
|
|
@@ -51,10 +51,10 @@ export interface GridColumn {
|
|
|
51
51
|
cls?: string;
|
|
52
52
|
sortable?: boolean;
|
|
53
53
|
}
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
|
|
54
|
+
export type CellRenderer = (rec: Record) => Component;
|
|
55
|
+
export type RowClassifier = (rec: Record, Row: Component) => void;
|
|
56
|
+
export type ContextMenuGridItem = (event: MouseEvent, item: Record, grid: GridView) => any;
|
|
57
|
+
type emptyFn = () => string;
|
|
58
58
|
interface GridViewEventMap extends ContainerEventMap {
|
|
59
59
|
dblClick?: EvDblClick;
|
|
60
60
|
selectionChange?: EvSelectionChange;
|
|
File without changes
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
**/
|
|
29
29
|
import { Component, CProps } from './component';
|
|
30
30
|
import { BasicEvent } from './x4events';
|
|
31
|
-
export
|
|
31
|
+
export type IconID = string | number;
|
|
32
32
|
export interface IconProps extends CProps {
|
|
33
33
|
icon: IconID;
|
|
34
34
|
size?: number;
|
|
File without changes
|
|
File without changes
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
**/
|
|
29
29
|
import { Component, CProps, CEventMap } from './component';
|
|
30
|
-
export
|
|
30
|
+
export type EditType = 'text' | 'number' | 'email' | 'date' | 'password' | 'file' | 'checkbox' | 'radio';
|
|
31
31
|
export interface ValueHook {
|
|
32
32
|
get(): any;
|
|
33
33
|
set(v: any): void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -40,7 +40,7 @@ export declare class MenuTitle extends Label {
|
|
|
40
40
|
/**
|
|
41
41
|
* Standard Menu
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type MenuOrSep = MenuItem | MenuSeparator | MenuTitle;
|
|
44
44
|
export interface MenuProps extends PopupProps {
|
|
45
45
|
items?: MenuOrSep[];
|
|
46
46
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -34,7 +34,7 @@ import { Record } from './datastore';
|
|
|
34
34
|
export interface SaveCallback {
|
|
35
35
|
(id: any, record: any[]): void;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type IPropertyField = {
|
|
38
38
|
id: any;
|
|
39
39
|
title: string;
|
|
40
40
|
type: Function | "string" | 'number' | 'boolean' | 'choice' | 'password' | 'button' | 'color';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
**/
|
|
29
29
|
import { EventSource, EvError, EventMap } from "./x4events";
|
|
30
|
-
|
|
30
|
+
type RouteHandler = (params: any, path: string) => void;
|
|
31
31
|
interface RouterEventMap extends EventMap {
|
|
32
32
|
error: EvError;
|
|
33
33
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -30,7 +30,7 @@ import { Component, EvFocus, HtmlString } from './component';
|
|
|
30
30
|
import { Input, InputProps, InputEventMap } from './input';
|
|
31
31
|
import { IconID } from './icon';
|
|
32
32
|
import { EvClick, EvChange, EventCallback } from './x4events';
|
|
33
|
-
|
|
33
|
+
type ValidationFunction = (value: string) => string;
|
|
34
34
|
interface TextEditEventMap extends InputEventMap {
|
|
35
35
|
click: EvClick;
|
|
36
36
|
change: EvChange;
|
|
File without changes
|
|
@@ -51,7 +51,7 @@ export declare function parseIntlFloat(num: string): number;
|
|
|
51
51
|
*/
|
|
52
52
|
export declare function pascalCase(string: string): string;
|
|
53
53
|
export declare function camelCase(text: string): string;
|
|
54
|
-
export
|
|
54
|
+
export type Constructor<T> = new (...args: any[]) => T;
|
|
55
55
|
export declare class Point {
|
|
56
56
|
x: number;
|
|
57
57
|
y: number;
|
|
@@ -42,5 +42,5 @@ export declare class Tooltip extends Component {
|
|
|
42
42
|
*/
|
|
43
43
|
displayAt(x: number, y: number, align?: string): void;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type TooltipHandler = (text: string) => void;
|
|
46
46
|
export declare function initTooltips(cb?: TooltipHandler): void;
|
|
File without changes
|
|
File without changes
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
**/
|
|
29
|
-
export
|
|
29
|
+
export type EventCallback<T extends BasicEvent = BasicEvent> = (event: T) => any;
|
|
30
30
|
export interface EventDisposer {
|
|
31
31
|
dispose(): void;
|
|
32
32
|
}
|
|
@@ -144,7 +144,7 @@ export interface EventTypes {
|
|
|
144
144
|
/**
|
|
145
145
|
* convert an EventMap to a EventType
|
|
146
146
|
*/
|
|
147
|
-
export
|
|
147
|
+
export type MapEvents<Type> = {
|
|
148
148
|
[Property in keyof Type]?: (ev: Type[Property]) => any;
|
|
149
149
|
};
|
|
150
150
|
/**
|
|
File without changes
|