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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "type": "module",
5
5
  "main": "src/x4.ts",
6
6
  "module": "src/x4.ts",
@@ -8,7 +8,7 @@
8
8
  * @file base.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.
@@ -24,6 +24,19 @@
24
24
  @extend %flex;
25
25
  }
26
26
 
27
+ .x4fit-h {
28
+ width: stretch;
29
+ }
30
+
31
+ .x4fit-v {
32
+ height: stretch;
33
+ }
34
+
35
+ .x4fit {
36
+ height: stretch;
37
+ width: stretch;
38
+ }
39
+
27
40
  .fit {
28
41
  @extend %fit;
29
42
  }
@@ -86,4 +99,9 @@
86
99
  animation-iteration-count: infinite;
87
100
  animation-timing-function: linear;
88
101
  animation-direction: reverse;
102
+ }
103
+
104
+ option:checked {
105
+ background-color: var( --accent-background );
106
+ color: var( --accent-color );
89
107
  }
@@ -8,7 +8,7 @@
8
8
  * @file boxes.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 boxes.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 breadcrumb.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 btngroup.model.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 btngroup.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.
@@ -140,6 +140,14 @@ export class BtnGroup extends Box<BtnGroupProps,BtnGroupEvents> {
140
140
 
141
141
  b.addClass( def.join(" ") );
142
142
  }
143
+ else if( b instanceof Button ) {
144
+ const btn = b as Button;
145
+ if( !btn.props.click && btn.props.id ) {
146
+ btn.on( "click", ( ) => {
147
+ this.fire( "btnclick", { button: btn.props.id} );
148
+ } );
149
+ }
150
+ }
143
151
 
144
152
  childs.push( b );
145
153
  });
@@ -8,7 +8,7 @@
8
8
  * @file button.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 button.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 calendar.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 calendar.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 checkbox.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 colorinput.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 colorinput.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 colorpicker.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 colorpicker.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 combobox.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 combobox.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 dialog.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 dialog.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.
@@ -20,7 +20,7 @@ import { BtnGroup, BtnGroupItem } from "../btngroup/btngroup"
20
20
  import { HBox } from '../boxes/boxes';
21
21
  import { Label } from '../label/label';
22
22
  import { CoreEvent, EventCallback } from '../../core/core_events';
23
- import { class_ns, getFocusableElements, IComponentInterface, isString, ITabHandler } from '../../core/core_tools';
23
+ import { asap, class_ns, getFocusableElements, IComponentInterface, isString, ITabHandler } from '../../core/core_tools';
24
24
  import { ComponentEvent } from '../../core/component';
25
25
  import { Button } from '../button/button';
26
26
 
@@ -228,6 +228,26 @@ export class Dialog<P extends DialogProps = DialogProps, E extends DialogEvents
228
228
  getBtnBar( ) {
229
229
  return this.query<BtnGroup>("#btnbar");
230
230
  }
231
+
232
+ /**
233
+ * ! cannot stop close action
234
+ */
235
+
236
+ async showAsync( ) : Promise<string> {
237
+
238
+ return new Promise( (resolve ) => {
239
+
240
+ this.on( "btnclick", ( ev ) => {
241
+ asap( ( ) => {
242
+ this.close( );
243
+ resolve( ev.button );
244
+ });
245
+ });
246
+
247
+ this.show();
248
+ } );
249
+ }
250
+
231
251
  }
232
252
 
233
253
 
@@ -8,7 +8,7 @@
8
8
  * @file filedrop.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 filedrop.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 form.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 form.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 gridview.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 gridview.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.
@@ -116,7 +116,7 @@ export class Header extends HBox<HeaderProps> {
116
116
 
117
117
  const flex = c.getInternalData( "flex" );
118
118
  if( flex ) {
119
- width = Math.min( unit*flex, rest );
119
+ width = Math.floor(Math.min( unit*flex, rest ));
120
120
  rest -= width;
121
121
  }
122
122
  else {
@@ -8,7 +8,7 @@
8
8
  * @file icon.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 icon.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.
@@ -142,6 +142,9 @@ export class Icon extends Component<IconProps> {
142
142
  if( iconId.startsWith("data:image/svg+xml,<svg") ) {
143
143
  this.dom.insertAdjacentHTML('beforeend', iconId.substring(19) );
144
144
  }
145
+ else if( iconId.startsWith("<svg") ) { // raw
146
+ this.dom.insertAdjacentHTML('beforeend', iconId );
147
+ }
145
148
  else if( iconId.endsWith(".svg") ) {
146
149
  svgLoader.load( iconId ).then( svg => {
147
150
  this.clearContent( );
@@ -8,7 +8,7 @@
8
8
  * @file image.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 image.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 input.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 input.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 keyboard.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 keyboard.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 label.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 label.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 link.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 listbox.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.
@@ -62,17 +62,25 @@
62
62
  position: relative;
63
63
 
64
64
  &> .x4viewport {
65
+ overflow: hidden;
65
66
  display: table;
66
67
  }
67
68
 
68
69
  .x4item {
69
70
  @extend %flex;
70
71
 
72
+
71
73
  padding: 4px;
72
74
  background-color: transparent;
73
75
  color: var( --text-primary );
74
76
 
75
- &> .x4label {
77
+ // multicolumns
78
+ &:has( >.x4hbox ) {
79
+ padding: 4px 0;
80
+ }
81
+
82
+ .x4label,
83
+ .x4simpletext {
76
84
  color: inherit;
77
85
  padding: 2px 6px;
78
86
 
@@ -108,6 +116,7 @@
108
116
  //background-color: var( --color-80 );
109
117
  //color: var(--color-0);
110
118
  //}
119
+
111
120
  }
112
121
  }
113
122
 
@@ -130,6 +139,31 @@
130
139
  .x4icon {
131
140
  height: 1.5em;
132
141
  width: 1.5em;
142
+
143
+ .fa-primary, .fa-secondary {
144
+ fill: var( --accent-background );
145
+ }
146
+ }
147
+
148
+ &.icon-danger {
149
+ .x4icon {
150
+ .fa-secondary {
151
+ fill: var( --disabled-color-dark);
152
+ opacity: 0.7;
153
+ }
154
+
155
+ .fa-primary {
156
+ fill: var( --alert-background );
157
+ }
158
+ }
159
+ }
160
+
161
+ &.icon-success {
162
+ .x4icon {
163
+ .fa-primary {
164
+ fill: var( --success-background );
165
+ }
166
+ }
133
167
  }
134
168
 
135
169
  &:hover{
@@ -8,7 +8,7 @@
8
8
  * @file listbox.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 menu.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 menu.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 messages.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.