x4js 2.2.7 → 2.2.9

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 (99) hide show
  1. package/package.json +1 -1
  2. package/src/components/base.scss +19 -1
  3. package/src/components/boxes/boxes.module.scss +1 -1
  4. package/src/components/boxes/boxes.ts +1 -1
  5. package/src/components/breadcrumb/breadcrumb.ts +1 -1
  6. package/src/components/btngroup/btngroup.module.scss +1 -1
  7. package/src/components/btngroup/btngroup.ts +9 -1
  8. package/src/components/button/button.module.scss +1 -1
  9. package/src/components/button/button.ts +1 -1
  10. package/src/components/calendar/calendar.module.scss +1 -1
  11. package/src/components/calendar/calendar.ts +1 -1
  12. package/src/components/checkbox/checkbox.module.scss +1 -1
  13. package/src/components/colorinput/colorinput.module.scss +1 -1
  14. package/src/components/colorinput/colorinput.ts +1 -1
  15. package/src/components/colorpicker/colorpicker.module.scss +1 -1
  16. package/src/components/colorpicker/colorpicker.ts +1 -1
  17. package/src/components/combobox/combobox.module.scss +1 -1
  18. package/src/components/combobox/combobox.ts +1 -1
  19. package/src/components/dialog/dialog.module.scss +1 -1
  20. package/src/components/dialog/dialog.ts +22 -2
  21. package/src/components/filedrop/filedrop.module.scss +1 -1
  22. package/src/components/filedrop/filedrop.ts +1 -1
  23. package/src/components/form/form.module.scss +1 -1
  24. package/src/components/form/form.ts +1 -1
  25. package/src/components/gridview/gridview.module.scss +1 -1
  26. package/src/components/gridview/gridview.ts +1 -1
  27. package/src/components/header/header.ts +1 -1
  28. package/src/components/icon/icon.module.scss +1 -1
  29. package/src/components/icon/icon.ts +4 -1
  30. package/src/components/image/image.module.scss +1 -1
  31. package/src/components/image/image.ts +1 -1
  32. package/src/components/input/input.module.scss +1 -1
  33. package/src/components/input/input.ts +1 -1
  34. package/src/components/keyboard/keyboard.module.scss +1 -1
  35. package/src/components/keyboard/keyboard.ts +1 -1
  36. package/src/components/label/label.module.scss +1 -1
  37. package/src/components/label/label.ts +1 -1
  38. package/src/components/link/link.ts +1 -1
  39. package/src/components/listbox/listbox.module.scss +36 -2
  40. package/src/components/listbox/listbox.ts +1 -1
  41. package/src/components/menu/menu.module.scss +1 -1
  42. package/src/components/menu/menu.ts +1 -1
  43. package/src/components/messages/messages.module.scss +1 -1
  44. package/src/components/messages/messages.ts +22 -5
  45. package/src/components/monaco/monaco.module.scss +22 -0
  46. package/src/components/monaco/monaco.ts +95 -9
  47. package/src/components/monaco/readme.md +2 -1
  48. package/src/components/normalize.scss +1 -1
  49. package/src/components/notification/notification.module.scss +1 -1
  50. package/src/components/notification/notification.ts +1 -1
  51. package/src/components/panel/panel.module.scss +1 -1
  52. package/src/components/panel/panel.ts +1 -1
  53. package/src/components/popup/popup.module.scss +1 -1
  54. package/src/components/popup/popup.ts +1 -1
  55. package/src/components/progress/progress.module.scss +1 -1
  56. package/src/components/progress/progress.ts +1 -1
  57. package/src/components/propgrid/progrid.module.scss +2 -2
  58. package/src/components/propgrid/propgrid.ts +1 -1
  59. package/src/components/radio/radio.module.scss +1 -1
  60. package/src/components/radio/radio.ts +1 -1
  61. package/src/components/rating/rating.ts +1 -1
  62. package/src/components/select/select.module.scss +26 -3
  63. package/src/components/shared.scss +1 -1
  64. package/src/components/sizers/sizer.module.scss +9 -5
  65. package/src/components/sizers/sizer.ts +20 -14
  66. package/src/components/slider/slider.module.scss +1 -1
  67. package/src/components/slider/slider.ts +1 -1
  68. package/src/components/spreadsheet/spreadsheet.module.scss +1 -1
  69. package/src/components/spreadsheet/spreadsheet.ts +1 -1
  70. package/src/components/switch/switch.module.scss +1 -1
  71. package/src/components/switch/switch.ts +1 -1
  72. package/src/components/tabs/tabs.ts +2 -2
  73. package/src/components/textarea/textarea.module.scss +1 -1
  74. package/src/components/textarea/textarea.ts +1 -1
  75. package/src/components/textedit/textedit.module.scss +1 -1
  76. package/src/components/textedit/textedit.ts +1 -1
  77. package/src/components/themes.scss +1 -1
  78. package/src/components/tickline/tickline.module.scss +1 -1
  79. package/src/components/tooltips/tooltips.scss +1 -1
  80. package/src/components/tooltips/tooltips.ts +1 -1
  81. package/src/components/treeview/treeview.module.scss +6 -2
  82. package/src/components/treeview/treeview.ts +5 -3
  83. package/src/components/viewport/viewport.module.scss +1 -1
  84. package/src/components/viewport/viewport.ts +1 -1
  85. package/src/core/component.ts +9 -7
  86. package/src/core/core_application.ts +2 -1
  87. package/src/core/core_colors.ts +1 -1
  88. package/src/core/core_data.ts +1 -1
  89. package/src/core/core_dom.ts +1 -1
  90. package/src/core/core_dragdrop.ts +1 -1
  91. package/src/core/core_element.ts +1 -1
  92. package/src/core/core_events.ts +1 -1
  93. package/src/core/core_i18n.ts +1 -1
  94. package/src/core/core_router.ts +1 -1
  95. package/src/core/core_styles.ts +1 -1
  96. package/src/core/core_svg.ts +1 -1
  97. package/src/core/core_tools.ts +1 -1
  98. package/src/x4.scss +1 -1
  99. package/src/x4.ts +1 -1
@@ -8,7 +8,7 @@
8
8
  * @file textedit.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file themes.scss
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file tickline.module.scss
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file tooltips.scss
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file tooltips.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file treeview.module.scss
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -37,7 +37,7 @@
37
37
  @extend %vbox;
38
38
 
39
39
  overflow-y: auto;
40
- height: 100%;
40
+ align-self: stretch;
41
41
  margin: 5px;
42
42
 
43
43
  outline: none;
@@ -67,6 +67,10 @@
67
67
  color: inherit;
68
68
  }
69
69
 
70
+ >.x4icon.empty {
71
+ display: none;
72
+ }
73
+
70
74
  .x4icon {
71
75
  width: 16px;
72
76
  }
@@ -8,7 +8,7 @@
8
8
  * @file treeview.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -380,7 +380,9 @@ export class Treeview extends Component<TreeviewProps,TreeviewEvents> {
380
380
  }
381
381
 
382
382
  if( newSel ) {
383
- const nsel = this.query( `[data-id="${newSel}"]`)
383
+ //const nsel = this.query( `[data-id="${newSel}"]`)
384
+ const all = this._view.enumChildComponents( true );
385
+ const nsel = all.find( x => x.getInternalData("id")===newSel )
384
386
  this._selectItem( newSel, nsel );
385
387
  return true;
386
388
  }
@@ -393,7 +395,7 @@ export class Treeview extends Component<TreeviewProps,TreeviewEvents> {
393
395
  let all: { id: ListboxID, level: number }[] = [];
394
396
 
395
397
  const build = ( x: TreeItem, level: number ) => {
396
- all.push( {id: x.id+"", level } );
398
+ all.push( {id: x.id, level } );
397
399
  if( x.children && x.open ) {
398
400
  x.children.forEach( y => build( y, level+1 ) );
399
401
  }
@@ -8,7 +8,7 @@
8
8
  * @file viewport.module.scss
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file viewport.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,18 +8,18 @@
8
8
  * @file component.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { isArray, UnsafeHtml, isNumber, Rect, Constructor, class_ns, x4_class_ns_sym, IRect } from './core_tools.ts';
18
- import { CoreElement } from './core_element.ts';
19
- import { ariaValues, unitless } from './core_styles.ts';
20
- import { CoreEvent, EventMap } from './core_events.ts';
21
- import { addEvent, DOMEventHandler, GlobalDOMEvents } from './core_dom.ts';
22
- import { Application, EvMessage } from './core_application.ts';
17
+ import { isArray, UnsafeHtml, isNumber, Rect, Constructor, class_ns, x4_class_ns_sym, IRect } from './core_tools';
18
+ import { CoreElement } from './core_element';
19
+ import { ariaValues, unitless } from './core_styles';
20
+ import { CoreEvent, EventMap } from './core_events';
21
+ import { addEvent, DOMEventHandler, GlobalDOMEvents } from './core_dom';
22
+ import { Application, EvMessage } from './core_application';
23
23
 
24
24
  interface RefType<T extends Component> {
25
25
  dom: T;
@@ -1198,6 +1198,7 @@ export function wrapDOM( el: HTMLElement ): Component {
1198
1198
  * Automatically generates CSS class: `x4flex`.
1199
1199
  */
1200
1200
 
1201
+ @class_ns( "x4" )
1201
1202
  export class Flex extends Component {
1202
1203
  constructor( ) {
1203
1204
  super({})
@@ -1214,6 +1215,7 @@ export class Flex extends Component {
1214
1215
  * ```
1215
1216
  */
1216
1217
 
1218
+ @class_ns( "x4" )
1217
1219
  export class Space extends Component {
1218
1220
  constructor( width?: number|string, cls?: string ) {
1219
1221
  super( { width, cls } )
@@ -8,7 +8,7 @@
8
8
  * @file core_application.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -127,6 +127,7 @@ export class Application<E extends ApplicationEvents = ApplicationEvents> extend
127
127
 
128
128
  setMainView( view: Component ) {
129
129
  this.mainview = view;
130
+ this.mount( );
130
131
  this._setupKeyboard( );
131
132
  }
132
133
 
@@ -8,7 +8,7 @@
8
8
  * @file core_colors.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_data.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_dom.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_dragdrop.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_element.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_events.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_i18n.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_router.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_styles.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_svg.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
@@ -8,7 +8,7 @@
8
8
  * @file core_tools.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
package/src/x4.scss CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file x4.scss
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
package/src/x4.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * @file x4.ts
9
9
  * @author Etienne Cochard
10
10
  *
11
- * @copyright (c) 2024 R-libre ingenierie
11
+ * @copyright (c) 2026 R-libre ingenierie
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.