x4js 1.5.40 → 1.6.1
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 +1 -1
- package/lib/README.txt +1 -1
- package/lib/changelog.txt +3 -0
- package/lib/cjs/{index.js → x4js.js} +7 -7
- package/lib/cjs/x4js.js.map +7 -0
- package/lib/esm/{index.mjs → x4js.mjs} +18 -12
- package/lib/esm/x4js.mjs.map +7 -0
- package/lib/src/MIT-license.md +1 -1
- package/lib/src/action.ts +1 -1
- package/lib/src/app_sockets.ts +1 -1
- package/lib/src/application.ts +3 -3
- package/lib/src/autocomplete.ts +1 -1
- package/lib/src/base64.ts +1 -1
- package/lib/src/base_component.ts +1 -1
- package/lib/src/button.ts +1 -1
- package/lib/src/calendar.ts +2 -2
- package/lib/src/canvas.ts +9 -4
- package/lib/src/cardview.ts +9 -8
- package/lib/src/checkbox.ts +1 -1
- package/lib/src/color.ts +4 -4
- package/lib/src/colorpicker.ts +18 -8
- package/lib/src/combobox.ts +7 -7
- package/lib/src/component.ts +45 -41
- package/lib/src/copyright.txt +1 -1
- package/lib/src/datastore.ts +1 -1
- package/lib/src/dialog.ts +2 -2
- package/lib/src/dom_events.ts +1 -1
- package/lib/src/drag_manager.ts +4 -4
- package/lib/src/drawtext.ts +1 -1
- package/lib/src/fileupload.ts +4 -4
- package/lib/src/form.ts +2 -2
- package/lib/src/formatters.ts +1 -1
- package/lib/src/gridview.ts +1 -1
- package/lib/src/i18n.ts +1 -1
- package/lib/src/icon.ts +1 -1
- package/lib/src/image.ts +1 -1
- package/lib/src/index.ts +1 -1
- package/lib/src/input.ts +1 -1
- package/lib/src/label.ts +1 -1
- package/lib/src/layout.ts +1 -1
- package/lib/src/link.ts +1 -1
- package/lib/src/listview.ts +1 -1
- package/lib/src/md5.ts +1 -1
- package/lib/src/menu.ts +1 -1
- package/lib/src/messagebox.ts +1 -1
- package/lib/src/panel.ts +1 -1
- package/lib/src/popup.ts +1 -1
- package/lib/src/property_editor.ts +1 -1
- package/lib/src/radiobtn.ts +1 -1
- package/lib/src/rating.ts +1 -1
- package/lib/src/request.ts +1 -1
- package/lib/src/router.ts +1 -1
- package/lib/src/settings.ts +1 -1
- package/lib/src/sidebarview.ts +1 -1
- package/lib/src/spreadsheet.ts +1 -1
- package/lib/src/styles.ts +1 -1
- package/lib/src/svgcomponent.ts +13 -8
- package/lib/src/tabbar.ts +1 -1
- package/lib/src/tabview.ts +1 -1
- package/lib/src/textarea.ts +1 -1
- package/lib/src/textedit.ts +1 -1
- package/lib/src/toaster.ts +1 -1
- package/lib/src/tools.ts +1 -1
- package/lib/src/tooltips.ts +1 -1
- package/lib/src/treeview.ts +1 -1
- package/lib/src/version.ts +2 -2
- package/lib/src/x4.less +1 -1
- package/lib/src/x4dom.ts +1 -1
- package/lib/src/x4events.ts +10 -10
- package/lib/src/x4js.ts +89 -0
- package/lib/src/x4react.ts +1 -1
- package/lib/styles/x4.css +1 -1
- package/lib/styles/x4.less +1 -1
- package/lib/types/x4js.d.ts +6762 -0
- package/package.json +10 -8
- package/lib/cjs/index.js.map +0 -7
- package/lib/esm/index.js.map +0 -7
- package/lib/esm/index.mjs.map +0 -7
- package/lib/types/action.d.ts +0 -57
- package/lib/types/app_sockets.d.ts +0 -29
- package/lib/types/application.d.ts +0 -108
- package/lib/types/autocomplete.d.ts +0 -63
- package/lib/types/base_component.d.ts +0 -88
- package/lib/types/button.d.ts +0 -151
- package/lib/types/calendar.d.ts +0 -82
- package/lib/types/canvas.d.ts +0 -92
- package/lib/types/cardview.d.ts +0 -87
- package/lib/types/checkbox.d.ts +0 -77
- package/lib/types/color.d.ts +0 -148
- package/lib/types/colorpicker.d.ts +0 -107
- package/lib/types/combobox.d.ts +0 -111
- package/lib/types/component.d.ts +0 -603
- package/lib/types/datastore.d.ts +0 -396
- package/lib/types/dialog.d.ts +0 -175
- package/lib/types/dom_events.d.ts +0 -302
- package/lib/types/drag_manager.d.ts +0 -58
- package/lib/types/drawtext.d.ts +0 -48
- package/lib/types/fileupload.d.ts +0 -64
- package/lib/types/form.d.ts +0 -142
- package/lib/types/formatters.d.ts +0 -35
- package/lib/types/gridview.d.ts +0 -175
- package/lib/types/i18n.d.ts +0 -73
- package/lib/types/icon.d.ts +0 -71
- package/lib/types/image.d.ts +0 -56
- package/lib/types/index.d.ts +0 -84
- package/lib/types/input.d.ts +0 -97
- package/lib/types/label.d.ts +0 -67
- package/lib/types/layout.d.ts +0 -89
- package/lib/types/link.d.ts +0 -50
- package/lib/types/listview.d.ts +0 -178
- package/lib/types/md5.d.ts +0 -61
- package/lib/types/menu.d.ts +0 -130
- package/lib/types/messagebox.d.ts +0 -69
- package/lib/types/panel.d.ts +0 -47
- package/lib/types/popup.d.ts +0 -75
- package/lib/types/property_editor.d.ts +0 -71
- package/lib/types/radiobtn.d.ts +0 -73
- package/lib/types/rating.d.ts +0 -53
- package/lib/types/request.d.ts +0 -52
- package/lib/types/router.d.ts +0 -67
- package/lib/types/settings.d.ts +0 -37
- package/lib/types/sidebarview.d.ts +0 -51
- package/lib/types/spreadsheet.d.ts +0 -222
- package/lib/types/styles.d.ts +0 -85
- package/lib/types/svgcomponent.d.ts +0 -216
- package/lib/types/tabbar.d.ts +0 -58
- package/lib/types/tabview.d.ts +0 -49
- package/lib/types/textarea.d.ts +0 -77
- package/lib/types/textedit.d.ts +0 -126
- package/lib/types/toaster.d.ts +0 -42
- package/lib/types/tools.d.ts +0 -394
- package/lib/types/tooltips.d.ts +0 -46
- package/lib/types/treeview.d.ts +0 -144
- package/lib/types/version.d.ts +0 -29
- package/lib/types/x4dom.d.ts +0 -49
- package/lib/types/x4events.d.ts +0 -269
- package/lib/types/x4react.d.ts +0 -41
package/lib/src/router.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file router.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/settings.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file local_storage.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/sidebarview.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file sidebarview.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/spreadsheet.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file spreadsheet.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/styles.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file styles.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/svgcomponent.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file svgcomponent.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -50,10 +50,10 @@ function num( x: number ): number {
|
|
|
50
50
|
return Math.round( x * 1000 ) / 1000;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
function clean( a, ...b ) {
|
|
53
|
+
function clean( a: any, ...b: any ) {
|
|
54
54
|
|
|
55
55
|
// just round number values to 3 digits
|
|
56
|
-
b = b.map( v => {
|
|
56
|
+
b = b.map( ( v: any ) => {
|
|
57
57
|
if( typeof v === 'number' && isFinite(v) ) {
|
|
58
58
|
return num(v);
|
|
59
59
|
}
|
|
@@ -79,10 +79,15 @@ export abstract class SVGItem {
|
|
|
79
79
|
this.m_style = new Map( );
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
setTag( t: string ) {
|
|
83
|
+
this.m_tag = t;
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
/**
|
|
83
87
|
* render the item
|
|
84
88
|
* @returns
|
|
85
89
|
*/
|
|
90
|
+
|
|
86
91
|
render( ) : string {
|
|
87
92
|
return `<${this.m_tag} ${this.renderAttrs()} ${this.renderStyle()}>${this.renderContent( )}</${this.m_tag}>`;
|
|
88
93
|
}
|
|
@@ -421,7 +426,7 @@ export class SVGGradient extends SVGItem {
|
|
|
421
426
|
|
|
422
427
|
override renderContent(): string {
|
|
423
428
|
|
|
424
|
-
const result = [];
|
|
429
|
+
const result: string[] = [];
|
|
425
430
|
this.m_stops.forEach( s => {
|
|
426
431
|
result.push( `<stop offset="${s.offset}%" stop-color="${s.color}"></stop>`);
|
|
427
432
|
});
|
|
@@ -449,13 +454,13 @@ export class SVGGroup extends SVGItem {
|
|
|
449
454
|
return path;
|
|
450
455
|
}
|
|
451
456
|
|
|
452
|
-
text( x, y, txt ) {
|
|
457
|
+
text( x: number, y: number, txt: string ) {
|
|
453
458
|
const text = new SVGText( x, y, txt );
|
|
454
459
|
this.m_items.push( text );
|
|
455
460
|
return text;
|
|
456
461
|
}
|
|
457
462
|
|
|
458
|
-
ellipse( x, y, r1, r2 = r1 ) {
|
|
463
|
+
ellipse( x: number, y: number, r1: number, r2 = r1 ): SVGShape {
|
|
459
464
|
const shape = new SVGShape( 'ellipse' );
|
|
460
465
|
shape.attr( 'cx', num(x)+'' );
|
|
461
466
|
shape.attr( 'cy', num(y)+'' );
|
|
@@ -465,7 +470,7 @@ export class SVGGroup extends SVGItem {
|
|
|
465
470
|
return shape;
|
|
466
471
|
}
|
|
467
472
|
|
|
468
|
-
rect( x, y, w, h ) {
|
|
473
|
+
rect( x: number, y: number, w: number, h: number ): SVGShape {
|
|
469
474
|
const shape = new SVGShape( 'rect' );
|
|
470
475
|
shape.attr( 'x', num(x)+'' );
|
|
471
476
|
shape.attr( 'y', num(y)+'' );
|
|
@@ -545,7 +550,7 @@ export class SVGPathBuilder extends SVGGroup
|
|
|
545
550
|
|
|
546
551
|
render() {
|
|
547
552
|
|
|
548
|
-
let result = [];
|
|
553
|
+
let result: string[] = [];
|
|
549
554
|
this.m_items.forEach(i => {
|
|
550
555
|
result.push(i.render());
|
|
551
556
|
});
|
package/lib/src/tabbar.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file tabbar.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/tabview.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file tabview.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/textarea.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file textarea.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/textedit.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file textedit.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/toaster.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file toaster.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/tools.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file tools.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/tooltips.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file tooltips.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/treeview.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file treeview.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/version.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file version.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
28
|
**/
|
|
29
29
|
|
|
30
|
-
export const x4js_version = "1.
|
|
30
|
+
export const x4js_version = "1.6.1";
|
package/lib/src/x4.less
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @file x4.less
|
|
11
11
|
* @author Etienne Cochard
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c) 2019-
|
|
13
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
14
14
|
*
|
|
15
15
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
16
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/x4dom.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file x4events.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/src/x4events.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file x4events.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -85,7 +85,7 @@ export function BasicEvent<T extends BasicEvent = BasicEvent>(params: any): T {
|
|
|
85
85
|
export interface EvClick extends BasicEvent {
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export function EvClick( context = null ) {
|
|
88
|
+
export function EvClick( context: any = null ) {
|
|
89
89
|
return BasicEvent<EvClick>({ context });
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -99,7 +99,7 @@ export interface EvChange extends BasicEvent {
|
|
|
99
99
|
readonly value: any;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export function EvChange(value: unknown, context = null ) {
|
|
102
|
+
export function EvChange(value: unknown, context: any = null ) {
|
|
103
103
|
return BasicEvent<EvChange>({ value, context });
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -115,7 +115,7 @@ export interface EvSelectionChange extends BasicEvent {
|
|
|
115
115
|
readonly selection: X4Selection;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export function EvSelectionChange( selection: X4Selection, context = null ) {
|
|
118
|
+
export function EvSelectionChange( selection: X4Selection, context: any = null ) {
|
|
119
119
|
return BasicEvent<EvSelectionChange>( { selection, context } );
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -127,7 +127,7 @@ export interface EvContextMenu extends BasicEvent {
|
|
|
127
127
|
uievent: UIEvent; // UI event that fire this event
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
export function EvContextMenu( uievent: UIEvent, context = null ) {
|
|
130
|
+
export function EvContextMenu( uievent: UIEvent, context: any = null ) {
|
|
131
131
|
return BasicEvent<EvContextMenu>( { uievent, context } );
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -141,7 +141,7 @@ export interface EvTimer extends BasicEvent {
|
|
|
141
141
|
time: number;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
export function EvTimer( timer: string, time = 0, context = null ) {
|
|
144
|
+
export function EvTimer( timer: string, time = 0, context: any = null ) {
|
|
145
145
|
return BasicEvent<EvTimer>( { timer, time, context });
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -411,7 +411,7 @@ export class EventSource<Q extends EventMap, T extends EventTypes = MapEvents<Q>
|
|
|
411
411
|
|
|
412
412
|
_once(eventName: string, callback: EventCallback) {
|
|
413
413
|
|
|
414
|
-
const newCallback = ( ev ) => {
|
|
414
|
+
const newCallback = ( ev: BasicEvent ) => {
|
|
415
415
|
this._off(eventName, newCallback);
|
|
416
416
|
callback( ev );
|
|
417
417
|
}
|
|
@@ -568,17 +568,17 @@ export class EventSource<Q extends EventMap, T extends EventTypes = MapEvents<Q>
|
|
|
568
568
|
* @param eventName - event name
|
|
569
569
|
*/
|
|
570
570
|
|
|
571
|
-
removeAllListeners(eventName: string
|
|
571
|
+
removeAllListeners(eventName: string ): void {
|
|
572
572
|
if (!eventName) {
|
|
573
573
|
this.m_eventRegistry = this.m_defaultHandlers = undefined;
|
|
574
574
|
}
|
|
575
575
|
else {
|
|
576
576
|
if (this.m_eventRegistry) {
|
|
577
|
-
this.m_eventRegistry
|
|
577
|
+
this.m_eventRegistry.delete( eventName );
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
if (this.m_defaultHandlers) {
|
|
581
|
-
this.m_defaultHandlers
|
|
581
|
+
this.m_defaultHandlers.delete( eventName );
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
}
|
package/lib/src/x4js.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ___ ___ __
|
|
3
|
+
* \ \_/ / / _
|
|
4
|
+
* \ / /_| |_
|
|
5
|
+
* / _ \____ _|
|
|
6
|
+
* /__/ \__\ |_|
|
|
7
|
+
*
|
|
8
|
+
* @file x4js.ts
|
|
9
|
+
* @author Etienne Cochard
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
|
+
*
|
|
13
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
* in the Software without restriction, including without limitation the rights
|
|
16
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
17
|
+
* of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
18
|
+
* subject to the following conditions:
|
|
19
|
+
* The above copyright notice and this permission notice shall be included in all copies
|
|
20
|
+
* or substantial portions of the Software.
|
|
21
|
+
*
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
23
|
+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
24
|
+
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
25
|
+
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
26
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
27
|
+
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
+
**/
|
|
29
|
+
|
|
30
|
+
export * from "./application"
|
|
31
|
+
export * from "./autocomplete"
|
|
32
|
+
export * from "./base_component"
|
|
33
|
+
//export * from "./base64"
|
|
34
|
+
export * from "./button"
|
|
35
|
+
export * from "./calendar"
|
|
36
|
+
export * from "./canvas"
|
|
37
|
+
export * from "./cardview"
|
|
38
|
+
export * from "./checkbox"
|
|
39
|
+
export * from "./color"
|
|
40
|
+
export * from "./colorpicker"
|
|
41
|
+
export * from "./combobox"
|
|
42
|
+
export * from "./component"
|
|
43
|
+
export * from "./datastore"
|
|
44
|
+
export * from "./dialog"
|
|
45
|
+
export * from "./dom_events"
|
|
46
|
+
export * from "./drag_manager"
|
|
47
|
+
export * from "./drawtext"
|
|
48
|
+
export * from "./fileupload"
|
|
49
|
+
export * from "./form"
|
|
50
|
+
export * from "./formatters"
|
|
51
|
+
export * from "./gridview"
|
|
52
|
+
export * from "./i18n"
|
|
53
|
+
export * from "./icon"
|
|
54
|
+
export * from "./image"
|
|
55
|
+
export * from "./input"
|
|
56
|
+
export * from "./label"
|
|
57
|
+
export * from "./layout"
|
|
58
|
+
export * from "./link"
|
|
59
|
+
export * from "./listview"
|
|
60
|
+
export * from "./md5"
|
|
61
|
+
export * from "./menu"
|
|
62
|
+
export * from "./messagebox"
|
|
63
|
+
export * from "./panel"
|
|
64
|
+
export * from "./popup"
|
|
65
|
+
export * from "./property_editor"
|
|
66
|
+
export * from "./radiobtn"
|
|
67
|
+
export * from "./rating"
|
|
68
|
+
export * from "./request"
|
|
69
|
+
export * from "./router"
|
|
70
|
+
export * from "./settings"
|
|
71
|
+
export * from "./sidebarview"
|
|
72
|
+
//export * from "./smartedit"
|
|
73
|
+
export * from "./spreadsheet"
|
|
74
|
+
export * from "./styles"
|
|
75
|
+
export * from "./svgcomponent"
|
|
76
|
+
export * from "./tabbar"
|
|
77
|
+
export * from "./tabview"
|
|
78
|
+
export * from "./textarea"
|
|
79
|
+
export * from "./textedit"
|
|
80
|
+
//export * from "./texthiliter"
|
|
81
|
+
export * from "./toaster"
|
|
82
|
+
export * from "./tools"
|
|
83
|
+
export * from "./tooltips"
|
|
84
|
+
export * from "./treeview"
|
|
85
|
+
export * from "./x4events"
|
|
86
|
+
export * from "./x4react"
|
|
87
|
+
export * from "./app_sockets"
|
|
88
|
+
|
|
89
|
+
export * from "./version"
|
package/lib/src/x4react.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file x4react.ts
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/styles/x4.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @file x4.less
|
|
9
9
|
* @author Etienne Cochard
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
12
12
|
*
|
|
13
13
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
14
|
* of this software and associated documentation files (the "Software"), to deal
|
package/lib/styles/x4.less
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @file x4.less
|
|
11
11
|
* @author Etienne Cochard
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c) 2019-
|
|
13
|
+
* Copyright (c) 2019-2023 R-libre ingenierie
|
|
14
14
|
*
|
|
15
15
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
16
|
* of this software and associated documentation files (the "Software"), to deal
|