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.
Files changed (137) hide show
  1. package/README.md +1 -1
  2. package/lib/README.txt +1 -1
  3. package/lib/changelog.txt +3 -0
  4. package/lib/cjs/{index.js → x4js.js} +7 -7
  5. package/lib/cjs/x4js.js.map +7 -0
  6. package/lib/esm/{index.mjs → x4js.mjs} +18 -12
  7. package/lib/esm/x4js.mjs.map +7 -0
  8. package/lib/src/MIT-license.md +1 -1
  9. package/lib/src/action.ts +1 -1
  10. package/lib/src/app_sockets.ts +1 -1
  11. package/lib/src/application.ts +3 -3
  12. package/lib/src/autocomplete.ts +1 -1
  13. package/lib/src/base64.ts +1 -1
  14. package/lib/src/base_component.ts +1 -1
  15. package/lib/src/button.ts +1 -1
  16. package/lib/src/calendar.ts +2 -2
  17. package/lib/src/canvas.ts +9 -4
  18. package/lib/src/cardview.ts +9 -8
  19. package/lib/src/checkbox.ts +1 -1
  20. package/lib/src/color.ts +4 -4
  21. package/lib/src/colorpicker.ts +18 -8
  22. package/lib/src/combobox.ts +7 -7
  23. package/lib/src/component.ts +45 -41
  24. package/lib/src/copyright.txt +1 -1
  25. package/lib/src/datastore.ts +1 -1
  26. package/lib/src/dialog.ts +2 -2
  27. package/lib/src/dom_events.ts +1 -1
  28. package/lib/src/drag_manager.ts +4 -4
  29. package/lib/src/drawtext.ts +1 -1
  30. package/lib/src/fileupload.ts +4 -4
  31. package/lib/src/form.ts +2 -2
  32. package/lib/src/formatters.ts +1 -1
  33. package/lib/src/gridview.ts +1 -1
  34. package/lib/src/i18n.ts +1 -1
  35. package/lib/src/icon.ts +1 -1
  36. package/lib/src/image.ts +1 -1
  37. package/lib/src/index.ts +1 -1
  38. package/lib/src/input.ts +1 -1
  39. package/lib/src/label.ts +1 -1
  40. package/lib/src/layout.ts +1 -1
  41. package/lib/src/link.ts +1 -1
  42. package/lib/src/listview.ts +1 -1
  43. package/lib/src/md5.ts +1 -1
  44. package/lib/src/menu.ts +1 -1
  45. package/lib/src/messagebox.ts +1 -1
  46. package/lib/src/panel.ts +1 -1
  47. package/lib/src/popup.ts +1 -1
  48. package/lib/src/property_editor.ts +1 -1
  49. package/lib/src/radiobtn.ts +1 -1
  50. package/lib/src/rating.ts +1 -1
  51. package/lib/src/request.ts +1 -1
  52. package/lib/src/router.ts +1 -1
  53. package/lib/src/settings.ts +1 -1
  54. package/lib/src/sidebarview.ts +1 -1
  55. package/lib/src/spreadsheet.ts +1 -1
  56. package/lib/src/styles.ts +1 -1
  57. package/lib/src/svgcomponent.ts +13 -8
  58. package/lib/src/tabbar.ts +1 -1
  59. package/lib/src/tabview.ts +1 -1
  60. package/lib/src/textarea.ts +1 -1
  61. package/lib/src/textedit.ts +1 -1
  62. package/lib/src/toaster.ts +1 -1
  63. package/lib/src/tools.ts +1 -1
  64. package/lib/src/tooltips.ts +1 -1
  65. package/lib/src/treeview.ts +1 -1
  66. package/lib/src/version.ts +2 -2
  67. package/lib/src/x4.less +1 -1
  68. package/lib/src/x4dom.ts +1 -1
  69. package/lib/src/x4events.ts +10 -10
  70. package/lib/src/x4js.ts +89 -0
  71. package/lib/src/x4react.ts +1 -1
  72. package/lib/styles/x4.css +1 -1
  73. package/lib/styles/x4.less +1 -1
  74. package/lib/types/x4js.d.ts +6762 -0
  75. package/package.json +10 -8
  76. package/lib/cjs/index.js.map +0 -7
  77. package/lib/esm/index.js.map +0 -7
  78. package/lib/esm/index.mjs.map +0 -7
  79. package/lib/types/action.d.ts +0 -57
  80. package/lib/types/app_sockets.d.ts +0 -29
  81. package/lib/types/application.d.ts +0 -108
  82. package/lib/types/autocomplete.d.ts +0 -63
  83. package/lib/types/base_component.d.ts +0 -88
  84. package/lib/types/button.d.ts +0 -151
  85. package/lib/types/calendar.d.ts +0 -82
  86. package/lib/types/canvas.d.ts +0 -92
  87. package/lib/types/cardview.d.ts +0 -87
  88. package/lib/types/checkbox.d.ts +0 -77
  89. package/lib/types/color.d.ts +0 -148
  90. package/lib/types/colorpicker.d.ts +0 -107
  91. package/lib/types/combobox.d.ts +0 -111
  92. package/lib/types/component.d.ts +0 -603
  93. package/lib/types/datastore.d.ts +0 -396
  94. package/lib/types/dialog.d.ts +0 -175
  95. package/lib/types/dom_events.d.ts +0 -302
  96. package/lib/types/drag_manager.d.ts +0 -58
  97. package/lib/types/drawtext.d.ts +0 -48
  98. package/lib/types/fileupload.d.ts +0 -64
  99. package/lib/types/form.d.ts +0 -142
  100. package/lib/types/formatters.d.ts +0 -35
  101. package/lib/types/gridview.d.ts +0 -175
  102. package/lib/types/i18n.d.ts +0 -73
  103. package/lib/types/icon.d.ts +0 -71
  104. package/lib/types/image.d.ts +0 -56
  105. package/lib/types/index.d.ts +0 -84
  106. package/lib/types/input.d.ts +0 -97
  107. package/lib/types/label.d.ts +0 -67
  108. package/lib/types/layout.d.ts +0 -89
  109. package/lib/types/link.d.ts +0 -50
  110. package/lib/types/listview.d.ts +0 -178
  111. package/lib/types/md5.d.ts +0 -61
  112. package/lib/types/menu.d.ts +0 -130
  113. package/lib/types/messagebox.d.ts +0 -69
  114. package/lib/types/panel.d.ts +0 -47
  115. package/lib/types/popup.d.ts +0 -75
  116. package/lib/types/property_editor.d.ts +0 -71
  117. package/lib/types/radiobtn.d.ts +0 -73
  118. package/lib/types/rating.d.ts +0 -53
  119. package/lib/types/request.d.ts +0 -52
  120. package/lib/types/router.d.ts +0 -67
  121. package/lib/types/settings.d.ts +0 -37
  122. package/lib/types/sidebarview.d.ts +0 -51
  123. package/lib/types/spreadsheet.d.ts +0 -222
  124. package/lib/types/styles.d.ts +0 -85
  125. package/lib/types/svgcomponent.d.ts +0 -216
  126. package/lib/types/tabbar.d.ts +0 -58
  127. package/lib/types/tabview.d.ts +0 -49
  128. package/lib/types/textarea.d.ts +0 -77
  129. package/lib/types/textedit.d.ts +0 -126
  130. package/lib/types/toaster.d.ts +0 -42
  131. package/lib/types/tools.d.ts +0 -394
  132. package/lib/types/tooltips.d.ts +0 -46
  133. package/lib/types/treeview.d.ts +0 -144
  134. package/lib/types/version.d.ts +0 -29
  135. package/lib/types/x4dom.d.ts +0 -49
  136. package/lib/types/x4events.d.ts +0 -269
  137. package/lib/types/x4react.d.ts +0 -41
@@ -8,7 +8,7 @@
8
8
  * @file components.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -54,6 +54,10 @@ export interface ICaptureInfo {
54
54
  iframes: NodeListOf<HTMLIFrameElement>;
55
55
  }
56
56
 
57
+ type CSSPropertyName = {
58
+ -readonly [K in keyof CSSStyleDeclaration & string]: CSSStyleDeclaration[K];
59
+ };
60
+
57
61
  /** @ignore classname prefix for system classes */
58
62
  const _x4_ns_prefix = 'x-';
59
63
 
@@ -66,7 +70,7 @@ const _x4_el_store = Symbol();
66
70
  const _x4_el_sym = Symbol();
67
71
 
68
72
  /** @ignore properties without 'px' unit */
69
- export const _x4_unitless = {
73
+ export const _x4_unitless: Record<string,1> = {
70
74
  animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1,
71
75
  boxOrdinalGroup: 1, columnCount: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1,
72
76
  gridRow: 1, gridColumn: 1, fontWeight: 1, lineClamp: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1,
@@ -114,7 +118,7 @@ interface IMap<T> {
114
118
  export interface EvDblClick extends BasicEvent {
115
119
  }
116
120
 
117
- export function EvDblClick(context = null) {
121
+ export function EvDblClick(context: any = null) {
118
122
  return BasicEvent<EvDblClick>({ context });
119
123
  }
120
124
 
@@ -127,7 +131,7 @@ export interface EvFocus extends BasicEvent {
127
131
  readonly focus: boolean;
128
132
  }
129
133
 
130
- export function EvFocus( focus = true, context = null) {
134
+ export function EvFocus( focus = true, context: any = null) {
131
135
  return BasicEvent<EvFocus>({ focus, context });
132
136
  }
133
137
 
@@ -151,7 +155,7 @@ export interface CProps<T extends CEventMap = CEventMap> extends BaseComponentPr
151
155
  cls?: string; // elements classes (space separated), prefix class name with @ to make it system wide
152
156
  id?: string; // element id
153
157
  style?: IMap<string | number>; // element style
154
- attrs?: object; // element attributes
158
+ attrs?: Record<string,string|number|boolean>; // element attributes
155
159
 
156
160
  dom_events?: IDOMEvents; // DOM event handlers
157
161
  data?: any; // element user data (you can store everything you need here)
@@ -191,7 +195,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
191
195
  private m_dom: HTMLElement;
192
196
  private m_iprops: CInternalProps;
193
197
 
194
- private static __sb_width; // scrollbar width
198
+ private static __sb_width: number; // scrollbar width
195
199
  private static __comp_guid = 1000; // component global unique id
196
200
  private static __privateEvents: any = {};
197
201
  private static __sizeObserver: ResizeObserver; // resize observer
@@ -199,8 +203,8 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
199
203
  //private static __intersectionObserver: IntersectionObserver; // visibility observer
200
204
 
201
205
  private static __capture: ICaptureInfo = null;
202
- private static __capture_mask = null;
203
- private static __css = null;
206
+ private static __capture_mask: HTMLElement = null;
207
+ private static __css: Stylesheet = null;
204
208
 
205
209
  constructor(props: P = null ) {
206
210
  super(props ?? {} as P );
@@ -262,7 +266,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
262
266
  return;
263
267
  }
264
268
 
265
- const append = (c) => {
269
+ const append = (c: ComponentOrString) => {
266
270
 
267
271
  if (!this.m_props.content) {
268
272
  this.m_props.content = [];
@@ -409,7 +413,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
409
413
  * el.setStyle( {left:100} );
410
414
  */
411
415
 
412
- public setStyle(style: object) {
416
+ public setStyle(style: Record<string,any>) {
413
417
  for (let s in style) {
414
418
  this.setStyleValue(s, style[s]);
415
419
  }
@@ -432,16 +436,16 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
432
436
  }
433
437
 
434
438
  private _setDomStyleValue(name: string, value: string | number) {
435
- if (this.m_dom) {
436
439
 
440
+ if (this.m_dom) {
437
441
  if (value === undefined) {
438
442
  value = null;
439
443
  }
440
- else if (!_x4_unitless[name] && (isNumber(value) || reNumber.test(value))) {
444
+ else if (!_x4_unitless[name as string] && (isNumber(value) || reNumber.test(value))) {
441
445
  value = value + 'px';
442
446
  }
443
447
 
444
- this.m_dom.style[name] = value;
448
+ (this.m_dom.style as any)[name] = value;
445
449
  }
446
450
  }
447
451
 
@@ -464,7 +468,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
464
468
  */
465
469
 
466
470
  public getStyleValue(name: string) {
467
- return this.getComputedStyle()[name];
471
+ return (this.getComputedStyle() as any)[name];
468
472
  }
469
473
 
470
474
  /**
@@ -549,7 +553,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
549
553
  return this.m_props.id;
550
554
  }
551
555
 
552
- return this.m_props.attrs ? this.m_props.attrs[name] : undefined;
556
+ return this.m_props.attrs ? this.m_props.attrs[name]+'' : undefined;
553
557
  }
554
558
  }
555
559
 
@@ -591,7 +595,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
591
595
  return;
592
596
  }
593
597
 
594
- let add = (c) => {
598
+ let add = (c: string) => {
595
599
 
596
600
  if (c === undefined || c === null || c === '') {
597
601
  return;
@@ -633,7 +637,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
633
637
  return;
634
638
  }
635
639
 
636
- let remove = (c) => {
640
+ let remove = (c: string) => {
637
641
  if (c === undefined || c === null || c === '') {
638
642
  return;
639
643
  }
@@ -684,7 +688,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
684
688
 
685
689
  public toggleClass(name: string): void {
686
690
 
687
- let toggle = (c) => {
691
+ let toggle = (c: string) => {
688
692
  if (c === undefined && c === null && c === '') {
689
693
  return;
690
694
  }
@@ -796,7 +800,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
796
800
  // prepare iprops
797
801
  if (props.dom_events) {
798
802
  for (let ename in props.dom_events) {
799
- this._setDomEvent(ename, props.dom_events[ename]);
803
+ this._setDomEvent(ename, (props.dom_events as any)[ename]);
800
804
  }
801
805
  }
802
806
 
@@ -813,7 +817,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
813
817
  this.m_dom = x4document.createElement( (props.tag ?? 'div') as any );
814
818
  }
815
819
 
816
- this.m_dom[_x4_el_sym] = this;
820
+ (this.m_dom as any)[_x4_el_sym] = this;
817
821
 
818
822
  //let me = Object.getPrototypeOf(this);
819
823
  //console.log( 'create', this.m_iprops.uid, me.constructor.name );
@@ -835,7 +839,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
835
839
  for (let a in att) {
836
840
  const attr = att[a];
837
841
  if( attr!==false && attr!==undefined ) {
838
- this._setDomAttribute(a, att[a]);
842
+ this._setDomAttribute(a, ''+att[a] );
839
843
  }
840
844
  }
841
845
  }
@@ -932,7 +936,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
932
936
  for (let i = 0, n = mutation.addedNodes.length; i < n; i++) {
933
937
 
934
938
  let add = mutation.addedNodes[i] as HTMLElement;
935
- let el = add[_x4_el_sym] as Component;
939
+ let el = (add as any)[_x4_el_sym] as Component;
936
940
 
937
941
  if (el) {
938
942
  el.enumChilds((c: Component) => {
@@ -959,8 +963,8 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
959
963
  let _dom = this.m_dom;
960
964
 
961
965
  // free attached resources
962
- delete _dom[_x4_el_sym];
963
- delete _dom[_x4_el_store];
966
+ delete (_dom as any)[_x4_el_sym];
967
+ delete (_dom as any)[_x4_el_store];
964
968
 
965
969
  //
966
970
  if (with_dom) {
@@ -1155,7 +1159,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
1155
1159
 
1156
1160
  let _dom = this.m_dom;
1157
1161
  if (_dom) {
1158
- let store = _dom[_x4_el_store];
1162
+ let store = (_dom as any)[_x4_el_store];
1159
1163
  if (store) {
1160
1164
  delete store[type];
1161
1165
  }
@@ -1171,10 +1175,10 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
1171
1175
  private _createEvent(name: string, handler: Function, passive?: boolean) {
1172
1176
 
1173
1177
  let _dom = this.m_dom;
1174
- let store = _dom[_x4_el_store];
1178
+ let store = (_dom as any)[_x4_el_store];
1175
1179
 
1176
1180
  if (!store) {
1177
- store = _dom[_x4_el_store] = {};
1181
+ store = (_dom as any)[_x4_el_store] = {};
1178
1182
  }
1179
1183
 
1180
1184
  if (!store[name]) {
@@ -1186,14 +1190,14 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
1186
1190
  store[name].push(handler);
1187
1191
  }
1188
1192
 
1189
- if (unbubbleEvents[name] === 1) {
1190
- _dom['on' + name] = Component._dispatchUnbubbleEvent;
1193
+ if ((unbubbleEvents as any)[name] === 1) {
1194
+ (_dom as any)['on' + name] = Component._dispatchUnbubbleEvent;
1191
1195
  }
1192
1196
  else if (!Component.__privateEvents[name]) {
1193
1197
  Component.__privateEvents[name] = true; // todo count it
1194
1198
 
1195
1199
  if( passive===undefined ) {
1196
- if ( passiveEvents[name] ) {
1200
+ if ( (passiveEvents as any)[name] ) {
1197
1201
  x4document.addEventListener(name as any, Component._dispatchEvent, { passive: false, capture: true });
1198
1202
  }
1199
1203
  else {
@@ -1222,7 +1226,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
1222
1226
  private static _dispatchEvent(ev: any) {
1223
1227
 
1224
1228
  let target = ev.target,
1225
- noup = unbubbleEvents[ev.type] === 2;
1229
+ noup = (unbubbleEvents as any)[ev.type] === 2;
1226
1230
 
1227
1231
  while (target) {
1228
1232
  if (target[_x4_el_store]) {
@@ -1317,7 +1321,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
1317
1321
 
1318
1322
  while (el) {
1319
1323
  // get component (if any)
1320
- let cel = el[_x4_el_sym];
1324
+ let cel = (el as any)[_x4_el_sym];
1321
1325
  if (cel) {
1322
1326
  cb(cel);
1323
1327
 
@@ -1678,7 +1682,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
1678
1682
  const srhCls = isString(classname);
1679
1683
 
1680
1684
  while (dom) {
1681
- let el: Component = dom[_x4_el_sym];
1685
+ let el: Component = (dom as any)[_x4_el_sym];
1682
1686
 
1683
1687
  if( srhCls ) {
1684
1688
  if( el && el.hasClass(classname) ) {
@@ -1695,7 +1699,7 @@ export class Component<P extends CProps<CEventMap> = CProps<CEventMap>, E extend
1695
1699
  return null;
1696
1700
  }
1697
1701
  else {
1698
- return dom ? dom[_x4_el_sym] : null;
1702
+ return dom ? (dom as any)[_x4_el_sym] : null;
1699
1703
  }
1700
1704
  }
1701
1705
 
@@ -1747,8 +1751,8 @@ let fly_element: Component = null;
1747
1751
 
1748
1752
  export function flyWrap<T extends Component>(dom: HTMLElement | EventTarget): T {
1749
1753
 
1750
- if (dom[_x4_el_sym]) {
1751
- return dom[_x4_el_sym];
1754
+ if ((dom as any)[_x4_el_sym]) {
1755
+ return (dom as any)[_x4_el_sym];
1752
1756
  }
1753
1757
 
1754
1758
  let f = fly_element;
@@ -1801,7 +1805,7 @@ export class Space extends Component {
1801
1805
  let style = null;
1802
1806
 
1803
1807
  while (dom) {
1804
- let el: Component = dom[_x4_el_sym];
1808
+ let el: Component = (dom as any)[_x4_el_sym];
1805
1809
  if (el.hasClass('@hlayout')) {
1806
1810
  style = { width: this.m_size };
1807
1811
  break;
@@ -1833,7 +1837,7 @@ export interface EvSize extends BasicEvent {
1833
1837
  readonly mode: SizeMode;
1834
1838
  }
1835
1839
 
1836
- export function EvSize(size: Size, mode: SizeMode = null, context = null ): EvSize {
1840
+ export function EvSize(size: Size, mode: SizeMode = null, context: any = null ): EvSize {
1837
1841
  return BasicEvent<EvSize>({ size, mode, context });
1838
1842
  }
1839
1843
 
@@ -1927,7 +1931,7 @@ export class Separator extends Component<SeparatorProps, SeparatorEventMap> {
1927
1931
 
1928
1932
  private _pointerMoved(ev: UIEvent) {
1929
1933
 
1930
- let __move = (ex, ey) => {
1934
+ let __move = (ex: number, ey: number) => {
1931
1935
 
1932
1936
  if (this.m_props.orientation == 'horizontal') {
1933
1937
 
@@ -2121,7 +2125,7 @@ export class SizerOverlay extends Component<SizerOverlayProps, SizerOverlayEvent
2121
2125
  }
2122
2126
 
2123
2127
  private _handle_mouse(ev: UIEvent) {
2124
- let __move = (ex, ey) => {
2128
+ let __move = (ex:number, ey:number) => {
2125
2129
  if (this._is_horz()) {
2126
2130
 
2127
2131
  let width;
@@ -2200,7 +2204,7 @@ export interface Shortcut {
2200
2204
  sequence: string;
2201
2205
  name: string;
2202
2206
  immediate: boolean;
2203
- callback?: (domTarget) => void;
2207
+ callback?: EventHandler<KeyboardEvent>;
2204
2208
  }
2205
2209
 
2206
2210
  interface EvShortcut extends BasicEvent {
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @author Etienne Cochard
9
9
  *
10
- * Copyright (c) 2019-2022 R-libre ingenierie
10
+ * Copyright (c) 2019-2023 R-libre ingenierie
11
11
  *
12
12
  * Permission is hereby granted, free of charge, to any person obtaining a copy
13
13
  * of this software and associated documentation files (the "Software"), to deal
@@ -8,7 +8,7 @@
8
8
  * @file datastore.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/dialog.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file dialog.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -498,7 +498,7 @@ export class Dialog<P extends DialogProps = DialogProps, E extends DialogBoxEven
498
498
  return;
499
499
  }
500
500
 
501
- let __move = (ex, ey) => {
501
+ let __move = (ex: number, ey: number) => {
502
502
 
503
503
  if( ex>wrc.right ) {
504
504
  ex = wrc.right;
@@ -8,7 +8,7 @@
8
8
  * @file dom_events.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file drag_manager.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -55,7 +55,7 @@ class DragManager {
55
55
 
56
56
  notified: Component;
57
57
 
58
- timer;
58
+ timer: any; // pb with name of settimeout return
59
59
 
60
60
  /**
61
61
  *
@@ -178,14 +178,14 @@ class DragManager {
178
178
 
179
179
  _check( ) {
180
180
 
181
- const leaving = ( x ) => {
181
+ const leaving = ( x: Component ) => {
182
182
  x.removeClass('drop-over');
183
183
 
184
184
  const cb = x.getData( x_drag_cb );
185
185
  cb( 'leave', this.dragSource );
186
186
  }
187
187
 
188
- const entering = ( x ) => {
188
+ const entering = ( x: Component ) => {
189
189
  x.addClass('drop-over');
190
190
  const cb = x.getData( x_drag_cb );
191
191
  cb( 'enter', this.dragSource );
@@ -8,7 +8,7 @@
8
8
  * @file drawtext.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file fileupload.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -105,14 +105,14 @@ export class ImageUpload extends FileUpload {
105
105
  return this.m_path;
106
106
  }
107
107
 
108
- private _set_value(v) {
108
+ private _set_value(v: any) {
109
109
  debugger;
110
110
  }
111
111
 
112
- private _handleChange(e) {
112
+ private _handleChange(e: any) {
113
113
 
114
114
  let self = this;
115
- function createThumbnail(file) {
115
+ function createThumbnail(file: Blob) {
116
116
 
117
117
  let reader = new FileReader();
118
118
  reader.addEventListener('load', (e) => {
package/lib/src/form.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file form.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -324,7 +324,7 @@ export class Form<T extends FormProps = FormProps, E extends FormEventMap = Form
324
324
 
325
325
  public getValues(): any {
326
326
  let elements = this._getElements();
327
- let result = {};
327
+ let result: Record<string,any> = {};
328
328
 
329
329
  for (let e = 0; e < elements.length; e++) {
330
330
 
@@ -8,7 +8,7 @@
8
8
  * @file formatters.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file gridview.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/i18n.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file i18n.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/icon.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file icon.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/image.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file image.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/index.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file index.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/input.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file input.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/label.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file label.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/layout.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file layout.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/link.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file link.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file listview.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/md5.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * @author Etienne Cochard
10
10
  * @license
11
11
  *
12
- * Copyright (c) 2019-2022 R-libre ingenierie
12
+ * Copyright (c) 2019-2023 R-libre ingenierie
13
13
  *
14
14
  * Permission is hereby granted, free of charge, to any person obtaining a copy
15
15
  * of this software and associated documentation files (the "Software"), to deal
package/lib/src/menu.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file menu.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file messagebox.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/panel.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file panel.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/popup.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file popup.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file propertyeditor.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file radiobtn.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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/rating.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file rating.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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
@@ -8,7 +8,7 @@
8
8
  * @file request.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * Copyright (c) 2019-2022 R-libre ingenierie
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