x4js 2.0.18 → 2.0.20

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 (86) hide show
  1. package/README.md +1 -0
  2. package/lib/src/components/boxes/boxes.ts +2 -2
  3. package/lib/src/components/breadcrumb/breadcrumb.ts +4 -4
  4. package/lib/src/components/btngroup/btngroup.ts +4 -4
  5. package/lib/src/components/button/button.ts +2 -2
  6. package/lib/src/components/calendar/calendar.ts +1 -1
  7. package/lib/src/components/canvas/canvas.ts +2 -2
  8. package/lib/src/components/checkbox/checkbox.ts +4 -4
  9. package/lib/src/components/colorinput/colorinput.ts +3 -3
  10. package/lib/src/components/combobox/combobox.ts +3 -3
  11. package/lib/src/components/dialog/dialog.ts +7 -7
  12. package/lib/src/components/form/form.ts +1 -1
  13. package/lib/src/components/header/header.ts +5 -5
  14. package/lib/src/components/icon/icon.ts +1 -1
  15. package/lib/src/components/image/image.ts +3 -3
  16. package/lib/src/components/input/input.ts +2 -2
  17. package/lib/src/components/keyboard/keyboard.ts +5 -5
  18. package/lib/src/components/label/label.ts +1 -1
  19. package/lib/src/components/listbox/listbox.ts +4 -4
  20. package/lib/src/components/messages/messages.ts +1 -1
  21. package/lib/src/components/notification/notification.ts +8 -8
  22. package/lib/src/components/popup/popup.ts +1 -1
  23. package/lib/src/components/progress/progress.ts +1 -1
  24. package/lib/src/components/propgrid/propgrid.ts +1 -1
  25. package/lib/src/components/radio/radio.ts +2 -2
  26. package/lib/src/components/rating/rating.ts +6 -6
  27. package/lib/src/components/select/select.ts +1 -1
  28. package/lib/src/components/sizers/sizer.ts +1 -1
  29. package/lib/src/components/slider/slider.ts +3 -3
  30. package/lib/src/components/switch/switch.ts +3 -3
  31. package/lib/src/components/tabs/tabs.ts +1 -1
  32. package/lib/src/components/textarea/textarea.ts +1 -1
  33. package/lib/src/components/textedit/textedit.ts +1 -1
  34. package/lib/src/components/tickline/tickline.ts +1 -1
  35. package/lib/src/components/tooltips/tooltips.ts +2 -2
  36. package/lib/src/components/treeview/treeview.ts +1 -1
  37. package/lib/src/components/viewport/viewport.ts +1 -1
  38. package/lib/src/core/core_application.ts +3 -3
  39. package/lib/src/core/core_data.ts +4 -4
  40. package/lib/src/core/core_element.ts +1 -1
  41. package/lib/src/core/core_react.ts +2 -2
  42. package/lib/src/core/core_router.ts +2 -2
  43. package/lib/src/core/core_styles.ts +1 -1
  44. package/package.json +1 -1
  45. package/src/components/boxes/boxes.ts +2 -2
  46. package/src/components/breadcrumb/breadcrumb.ts +4 -4
  47. package/src/components/btngroup/btngroup.ts +4 -4
  48. package/src/components/button/button.ts +2 -2
  49. package/src/components/calendar/calendar.ts +1 -1
  50. package/src/components/canvas/canvas.ts +2 -2
  51. package/src/components/checkbox/checkbox.ts +4 -4
  52. package/src/components/colorinput/colorinput.ts +3 -3
  53. package/src/components/combobox/combobox.ts +3 -3
  54. package/src/components/dialog/dialog.ts +7 -7
  55. package/src/components/form/form.ts +1 -1
  56. package/src/components/header/header.ts +5 -5
  57. package/src/components/icon/icon.ts +1 -1
  58. package/src/components/image/image.ts +3 -3
  59. package/src/components/input/input.ts +2 -2
  60. package/src/components/keyboard/keyboard.ts +5 -5
  61. package/src/components/label/label.ts +1 -1
  62. package/src/components/listbox/listbox.ts +4 -4
  63. package/src/components/messages/messages.ts +1 -1
  64. package/src/components/notification/notification.ts +8 -8
  65. package/src/components/popup/popup.ts +1 -1
  66. package/src/components/progress/progress.ts +1 -1
  67. package/src/components/propgrid/propgrid.ts +1 -1
  68. package/src/components/radio/radio.ts +2 -2
  69. package/src/components/rating/rating.ts +6 -6
  70. package/src/components/select/select.ts +1 -1
  71. package/src/components/sizers/sizer.ts +1 -1
  72. package/src/components/slider/slider.ts +3 -3
  73. package/src/components/switch/switch.ts +3 -3
  74. package/src/components/tabs/tabs.ts +1 -1
  75. package/src/components/textarea/textarea.ts +1 -1
  76. package/src/components/textedit/textedit.ts +1 -1
  77. package/src/components/tickline/tickline.ts +1 -1
  78. package/src/components/tooltips/tooltips.ts +2 -2
  79. package/src/components/treeview/treeview.ts +1 -1
  80. package/src/components/viewport/viewport.ts +1 -1
  81. package/src/core/core_application.ts +3 -3
  82. package/src/core/core_data.ts +4 -4
  83. package/src/core/core_element.ts +1 -1
  84. package/src/core/core_react.ts +2 -2
  85. package/src/core/core_router.ts +2 -2
  86. package/src/core/core_styles.ts +1 -1
package/README.md CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  # x4 framework
2
3
 
3
4
  This is the x4 framework repository.
@@ -14,11 +14,11 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { asap, class_ns, isArray, isNumber, isString } from '@core/core_tools.js';
17
+ import { asap, class_ns, isArray, isNumber, isString } from '../../core/core_tools';
18
18
  import { Component, ComponentContent, ComponentEvents, ComponentProps, EvSelectionChange } from "../../core/component"
19
19
 
20
20
  import "./boxes.module.scss";
21
- import { EventCallback } from '@core/core_events.js';
21
+ import { EventCallback } from '../../core/core_events';
22
22
 
23
23
  export interface BoxProps extends ComponentProps {
24
24
  tag?: string;
@@ -14,12 +14,12 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { class_ns } from '@core/core_tools.js';
18
- import { parseRoute, Router } from '@core/core_router.js';
17
+ import { class_ns } from '../../core/core_tools';
18
+ import { parseRoute, Router } from '../../core/core_router';
19
19
 
20
20
  import { BoxProps, Button, HBox, Icon } from '../components';
21
- import { Component, ComponentEvents, EvClick } from '@core/component.js';
22
- import { EventCallback } from '@core/core_events.js';
21
+ import { Component, ComponentEvents, EvClick } from '../../core/component';
22
+ import { EventCallback } from '../../core/core_events';
23
23
 
24
24
  import "./breadcrumb.scss"
25
25
 
@@ -20,12 +20,12 @@ import { class_ns, isString } from '../../core/core_tools';
20
20
  import { _tr } from '../../core/core_i18n'
21
21
 
22
22
  import { Button } from '../button/button';
23
- import { Box } from '../boxes/boxes.js';
24
- import { Label } from '../label/label.js';
25
- import { EvBtnClick } from '../dialog/dialog.js';
23
+ import { Box } from '../boxes/boxes';
24
+ import { Label } from '../label/label';
25
+ import { EvBtnClick } from '../dialog/dialog';
26
26
 
27
27
  import "./btngroup.module.scss"
28
- import { Input } from '../components.js';
28
+ import { Input } from '../components';
29
29
 
30
30
  /**
31
31
  * accept "ok" or "ok.<classname>"
@@ -15,8 +15,8 @@
15
15
  **/
16
16
 
17
17
  import { Component, ComponentEvents, ComponentProps, EvClick } from "../../core/component"
18
- import { EventCallback } from '../../core/core_events.js';
19
- import { class_ns, UnsafeHtml } from '../../core/core_tools.js';
18
+ import { EventCallback } from '../../core/core_events';
19
+ import { class_ns, UnsafeHtml } from '../../core/core_tools';
20
20
 
21
21
  import { Icon } from "../icon/icon"
22
22
 
@@ -17,7 +17,7 @@
17
17
  import { Component, ComponentEvents, ComponentProps, EvChange, Flex } from '../../core/component'
18
18
  import { class_ns, date_clone, date_hash, formatIntlDate, Point, unsafeHtml } from "../../core/core_tools"
19
19
  import { _tr } from '../../core/core_i18n';
20
- import { EventCallback } from '../../core/core_events.js';
20
+ import { EventCallback } from '../../core/core_events';
21
21
 
22
22
  import { Button } from '../button/button';
23
23
  import { Label } from '../label/label';
@@ -14,10 +14,10 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { class_ns } from '@core/core_tools.js';
17
+ import { class_ns } from '../../core/core_tools';
18
18
  import { Component, ComponentEvent, ComponentEvents, ComponentProps } from '../../core/component';
19
19
  import { EventCallback } from "../../core/core_events"
20
- import { CanvasEx, createPainter } from './canvas_ex.js';
20
+ import { CanvasEx, createPainter } from './canvas_ex';
21
21
 
22
22
  import './canvas.module.scss'
23
23
 
@@ -1,14 +1,14 @@
1
- import { Component, ComponentEvents, ComponentProps, EvChange, makeUniqueComponentId } from '../../core/component.js';
2
- import { EventCallback } from '../../core/core_events.js';
1
+ import { Component, ComponentEvents, ComponentProps, EvChange, makeUniqueComponentId } from '../../core/component';
2
+ import { EventCallback } from '../../core/core_events';
3
3
 
4
4
  import { Input } from '../input/input';
5
5
  import { Label } from '../label/label';
6
6
 
7
- import { svgLoader } from '../icon/icon.js';
7
+ import { svgLoader } from '../icon/icon';
8
8
 
9
9
  import "./checkbox.module.scss"
10
10
  import icon from "./check.svg";
11
- import { class_ns } from '@core/core_tools.js';
11
+ import { class_ns } from '../../core/core_tools';
12
12
 
13
13
  /**
14
14
  * Checkbox events
@@ -15,12 +15,12 @@
15
15
  **/
16
16
 
17
17
  import { Component } from '../../core/component';
18
- import { isFeatureAvailable, class_ns } from '../../core/core_tools.js';
18
+ import { isFeatureAvailable, class_ns } from '../../core/core_tools';
19
19
  import { Color } from '../../core/core_colors';
20
20
 
21
21
  import { BoxProps, HBox } from '../boxes/boxes';
22
- import { Input } from '../input/input.js';
23
- import { Button } from '../button/button.js';
22
+ import { Input } from '../input/input';
23
+ import { Button } from '../button/button';
24
24
 
25
25
 
26
26
  import "./colorinput.module.scss"
@@ -15,11 +15,11 @@
15
15
  **/
16
16
 
17
17
  import { Component, ComponentEvents, ComponentProps, EvSelectionChange, makeUniqueComponentId } from '../../core/component';
18
- import { class_ns, IComponentInterface, IFormElement, kbNav } from '@core/core_tools';
19
- import { EventCallback } from '@core/core_events';
18
+ import { class_ns, IComponentInterface, IFormElement, kbNav } from '../../core/core_tools';
19
+ import { EventCallback } from '../../core/core_events';
20
20
 
21
21
  import { Listbox, ListboxID, ListItem } from '../listbox/listbox';
22
- import { Popup, PopupEvents, PopupProps } from '../popup/popup.js';
22
+ import { Popup, PopupEvents, PopupProps } from '../popup/popup';
23
23
  import { Label } from '../label/label';
24
24
  import { Input } from '../input/input';
25
25
  import { Button } from '../button/button';
@@ -15,14 +15,14 @@
15
15
  **/
16
16
 
17
17
  import { Form } from "../form/form.js"
18
- import { PopupEvents, PopupProps, Popup } from '../popup/popup.js';
18
+ import { PopupEvents, PopupProps, Popup } from '../popup/popup';
19
19
  import { BtnGroup, BtnGroupItem } from "../btngroup/btngroup"
20
- import { HBox } from '../boxes/boxes.js';
21
- import { Label } from '../label/label.js';
22
- import { CoreEvent, EventCallback } from '@core/core_events.js';
23
- import { class_ns, getFocusableElements, IComponentInterface, isString, ITabHandler } from '@core/core_tools.js';
24
- import { ComponentEvent } from '../../core/component.js';
25
- import { Button } from '../button/button.js';
20
+ import { HBox } from '../boxes/boxes';
21
+ import { Label } from '../label/label';
22
+ import { CoreEvent, EventCallback } from '../../core/core_events';
23
+ import { class_ns, getFocusableElements, IComponentInterface, isString, ITabHandler } from '../../core/core_tools';
24
+ import { ComponentEvent } from '../../core/component';
25
+ import { Button } from '../button/button';
26
26
 
27
27
  import "./dialog.module.scss"
28
28
  import close_icon from "./xmark-sharp-light.svg";
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { class_ns, IFormElement } from '@core/core_tools.js';
17
+ import { class_ns, IFormElement } from '../../core/core_tools';
18
18
  import { Box, BoxProps } from '../boxes/boxes';
19
19
 
20
20
  import "./form.module.scss"
@@ -1,8 +1,8 @@
1
- import { class_ns } from '@core/core_tools.js';
2
- import { Component, ComponentProps } from '../../core/component.js';
3
- import { HBox } from '../boxes/boxes.js';
4
- import { Label } from '../label/label.js';
5
- import { CSizer } from '../sizers/sizer.js';
1
+ import { class_ns } from '../../core/core_tools';
2
+ import { Component, ComponentProps } from '../../core/component';
3
+ import { HBox } from '../boxes/boxes';
4
+ import { Label } from '../label/label';
5
+ import { CSizer } from '../sizers/sizer';
6
6
 
7
7
  import "./header.module.scss"
8
8
 
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { class_ns } from '@core/core_tools.js';
17
+ import { class_ns } from '../../core/core_tools';
18
18
  import { Component, ComponentProps } from '../../core/component';
19
19
 
20
20
  import "./icon.module.scss"
@@ -16,8 +16,8 @@
16
16
 
17
17
  import { class_ns } from '../../core/core_tools';
18
18
  import { Component, ComponentEvents, ComponentProps } from '../../core/component';
19
- import { EventCallback, CoreEvent } from '../../core/core_events.js';
20
- import { dragManager } from '../../core/core_dragdrop.js';
19
+ import { EventCallback, CoreEvent } from '../../core/core_events';
20
+ import { dragManager } from '../../core/core_dragdrop';
21
21
 
22
22
  import { EvDropChange, FileDialog } from '../filedrop/filedrop';
23
23
  import { Menu } from '../menu/menu';
@@ -25,7 +25,7 @@ import { Menu } from '../menu/menu';
25
25
 
26
26
 
27
27
  import "./image.module.scss"
28
- import { _tr } from '@core/core_i18n.js';
28
+ import { _tr } from '../../core/core_i18n';
29
29
 
30
30
 
31
31
  interface ImageEvents extends ComponentEvents {
@@ -14,9 +14,9 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { EventCallback } from '@core/core_events.js';
17
+ import { EventCallback } from '../../core/core_events';
18
18
  import { Component, ComponentEvent, ComponentProps, EvChange, EvFocus } from '../../core/component';
19
- import { class_ns, formatIntlDate, IComponentInterface, IFormElement, isString } from '../../core/core_tools.js';
19
+ import { class_ns, formatIntlDate, IComponentInterface, IFormElement, isString } from '../../core/core_tools';
20
20
 
21
21
  import "./input.module.scss"
22
22
 
@@ -14,13 +14,13 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { Component, ComponentProps, Flex } from '@core/component.js';
18
- import { Box, BoxProps, Button, HBox, VBox } from '../components.js';
19
- import { _tr } from '@core/core_i18n.js';
17
+ import { Component, ComponentProps, Flex } from '../../core/component';
18
+ import { Box, BoxProps, Button, HBox, VBox } from '../components';
19
+ import { _tr } from '../../core/core_i18n';
20
20
 
21
21
  import "./keyboard.module.scss"
22
- import { class_ns } from '@core/core_tools.js';
23
- import { Application } from '@core/core_application.js';
22
+ import { class_ns } from '../../core/core_tools';
23
+ import { Application } from '../../core/core_application';
24
24
 
25
25
  import icon_bksp from "./delete-left.svg";
26
26
  import icon_shift from "./arrow-up.svg";
@@ -18,7 +18,7 @@ import { Component, ComponentProps } from "../../core/component"
18
18
  import { Icon } from "../icon/icon"
19
19
 
20
20
  import "./label.module.scss";
21
- import { class_ns, UnsafeHtml } from '../../core/core_tools.js';
21
+ import { class_ns, UnsafeHtml } from '../../core/core_tools';
22
22
 
23
23
  export interface LabelProps extends ComponentProps {
24
24
  text?: string | UnsafeHtml;
@@ -15,12 +15,12 @@
15
15
  **/
16
16
 
17
17
  import { Component, ComponentEvent, ComponentEvents, componentFromDOM, ComponentProps, EvChange, EvClick, EvContextMenu, EvDblClick, EvSelectionChange } from '../../core/component';
18
- import { EventCallback } from '../../core/core_events.js';
19
- import { kbNav, class_ns, isArray, UnsafeHtml } from '@core/core_tools.js';
18
+ import { EventCallback } from '../../core/core_events';
19
+ import { kbNav, class_ns, isArray, UnsafeHtml } from '../../core/core_tools';
20
20
 
21
21
  import { ScrollView, Viewport } from '../viewport/viewport';
22
- import { HBox } from '../boxes/boxes.js';
23
- import { Label } from '../label/label.js';
22
+ import { HBox } from '../boxes/boxes';
23
+ import { Label } from '../label/label';
24
24
 
25
25
  import "./listbox.module.scss"
26
26
 
@@ -16,7 +16,7 @@ import "./messages.module.scss";
16
16
 
17
17
  import error_icon from "./circle-exclamation.svg";
18
18
  import pen_icon from "./pen-field.svg";
19
- import { Component } from '@core/component.js';
19
+ import { Component } from '../../core/component';
20
20
 
21
21
  export interface MessageBoxProps extends DialogProps {
22
22
  message: string;
@@ -14,14 +14,14 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { ComponentProps } from '../../core/component.js';
18
- import { class_ns, Rect, UnsafeHtml } from '../../core/core_tools.js';
19
-
20
- import { Popup } from '../popup/popup.js';
21
- import { HBox, VBox } from '../boxes/boxes.js';
22
- import { Icon } from '../icon/icon.js';
23
- import { Label } from '../label/label.js';
24
- import { Button } from '../button/button.js';
17
+ import { ComponentProps } from '../../core/component';
18
+ import { class_ns, Rect, UnsafeHtml } from '../../core/core_tools';
19
+
20
+ import { Popup } from '../popup/popup';
21
+ import { HBox, VBox } from '../boxes/boxes';
22
+ import { Icon } from '../icon/icon';
23
+ import { Label } from '../label/label';
24
+ import { Button } from '../button/button';
25
25
 
26
26
  import "./notification.module.scss";
27
27
 
@@ -17,7 +17,7 @@
17
17
  import { Component, ComponentEvent, ComponentEvents, ComponentProps, componentFromDOM, makeUniqueComponentId } from "../../core/component"
18
18
 
19
19
  import { CSizer } from '../sizers/sizer';
20
- import { Rect, Point, class_ns, asap } from '../../core/core_tools.js';
20
+ import { Rect, Point, class_ns, asap } from '../../core/core_tools';
21
21
  import { Box } from '../boxes/boxes'
22
22
 
23
23
  import "./popup.module.scss"
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { class_ns } from '@core/core_tools.js';
17
+ import { class_ns } from '../../core/core_tools';
18
18
  import { Component, ComponentProps } from '../../core/component';
19
19
 
20
20
  import "./progress.module.scss";
@@ -22,7 +22,7 @@ import { Input, InputProps } from "../input/input"
22
22
  import { ListItem } from "../listbox/listbox"
23
23
  import { Label, SimpleText } from "../label/label"
24
24
  import { class_ns, isFunction } from '../../core/core_tools';
25
- import { Icon } from '../components.js'
25
+ import { Icon } from '../components'
26
26
 
27
27
  import "./progrid.module.scss"
28
28
  import updown_icon from "./updown.svg"
@@ -15,8 +15,8 @@
15
15
  **/
16
16
 
17
17
  import { Component, ComponentEvents, ComponentProps, EvChange, makeUniqueComponentId } from '../../core/component';
18
- import { class_ns } from '@core/core_tools';
19
- import { EventCallback } from '@core/core_events';
18
+ import { class_ns } from '../../core/core_tools';
19
+ import { EventCallback } from '../../core/core_events';
20
20
 
21
21
  import { Label } from '../label/label';
22
22
  import { Input } from '../input/input'
@@ -14,15 +14,15 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { Component, ComponentEvents, componentFromDOM, ComponentProps, EvChange } from '../../core/component.js';
18
- import { EventCallback } from '../../core/core_events.js';
19
- import { HBox } from '../boxes/boxes.js';
20
- import { Input } from '../input/input.js';
21
- import { Icon } from '../icon/icon.js';
17
+ import { Component, ComponentEvents, componentFromDOM, ComponentProps, EvChange } from '../../core/component';
18
+ import { EventCallback } from '../../core/core_events';
19
+ import { HBox } from '../boxes/boxes';
20
+ import { Input } from '../input/input';
21
+ import { Icon } from '../icon/icon';
22
22
 
23
23
  import "./rating.module.scss"
24
24
  import star_icon from "./star-sharp-solid.svg"
25
- import { class_ns } from '@core/core_tools.js';
25
+ import { class_ns } from '../../core/core_tools';
26
26
 
27
27
  interface RatingEventMap extends ComponentEvents {
28
28
  change: EvChange;
@@ -15,7 +15,7 @@
15
15
  **/
16
16
 
17
17
 
18
- import { EventCallback } from '../../core/core_events.js';
18
+ import { EventCallback } from '../../core/core_events';
19
19
  import { Component, ComponentEvent, ComponentProps, EvChange, EvFocus } from '../../core/component';
20
20
  import { class_ns } from '../../core/core_tools';
21
21
 
@@ -15,7 +15,7 @@
15
15
  **/
16
16
 
17
17
  import { Component, ComponentEvent, ComponentEvents, ComponentProps, componentFromDOM } from '../../core/component';
18
- import { class_ns, Point } from '../../core/core_tools.js';
18
+ import { class_ns, Point } from '../../core/core_tools';
19
19
 
20
20
  import "./sizer.module.scss"
21
21
 
@@ -14,12 +14,12 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { EventCallback } from '@core/core_events.js';
17
+ import { EventCallback } from '../../core/core_events';
18
18
  import { Component, ComponentEvents, ComponentProps, EvChange } from '../../core/component';
19
- import { class_ns, Rect } from '../../core/core_tools.js';
19
+ import { class_ns, Rect } from '../../core/core_tools';
20
20
 
21
21
  import { HBox } from '../boxes/boxes';
22
- import { Input } from '../input/input.js';
22
+ import { Input } from '../input/input';
23
23
 
24
24
  import './slider.module.scss';
25
25
 
@@ -16,13 +16,13 @@
16
16
 
17
17
  import { Component, ComponentProps, makeUniqueComponentId } from '../../core/component';
18
18
 
19
- //import { Checkbox } from '@controls/controls.js';
19
+ //import { Checkbox } from '@controls/controls';
20
20
  import { Input } from '../input/input';
21
21
  import { Label } from '../label/label';
22
- import { HBox } from '../boxes/boxes.js';
22
+ import { HBox } from '../boxes/boxes';
23
23
 
24
24
  import "./switch.module.scss";
25
- import { class_ns } from '@core/core_tools.js';
25
+ import { class_ns } from '../../core/core_tools';
26
26
 
27
27
  interface SwitchProps extends ComponentProps {
28
28
  label: string;
@@ -20,7 +20,7 @@ import { Button, ButtonProps } from '../button/button';
20
20
  import { HBox, VBox, StackBox } from '../boxes/boxes';
21
21
 
22
22
  import "./tabs.module.scss"
23
- import { class_ns } from '@core/core_tools.js';
23
+ import { class_ns } from '../../core/core_tools';
24
24
 
25
25
  /**
26
26
  *
@@ -21,7 +21,7 @@ import { Label } from '../label/label';
21
21
  import { VBox } from '../boxes/boxes';
22
22
 
23
23
  import "./textarea.module.scss";
24
- import { class_ns, IFormElement } from '@core/core_tools.js';
24
+ import { class_ns, IFormElement } from '../../core/core_tools';
25
25
 
26
26
  /**
27
27
  *
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- //import { EventCallback } from '@core/core_events.js';
17
+ //import { EventCallback } from '../../core/core_events';
18
18
  import { Component, makeUniqueComponentId } from '../../core/component';
19
19
  import { class_ns, UnsafeHtml } from '../../core/core_tools';
20
20
 
@@ -1,6 +1,6 @@
1
1
  import { SvgBuilder, SvgComponent } from '../../core/core_svg';
2
2
  import { Color } from '../../core/core_colors';
3
- import { Component, ComponentProps } from '@core/component.js';
3
+ import { Component, ComponentProps } from '../../core/component';
4
4
 
5
5
  import "./tickline.module.scss"
6
6
 
@@ -18,8 +18,8 @@ import { Component, componentFromDOM, wrapDOM } from '../../core/component';
18
18
  import { class_ns, ITipHandler, Point, Rect, Timer, UnsafeHtml, unsafeHtml } from '../../core/core_tools';
19
19
 
20
20
  import { HBox } from '../boxes/boxes';
21
- import { Popup, PopupProps } from '../popup/popup.js';
22
- import { Icon } from '../icon/icon.js';
21
+ import { Popup, PopupProps } from '../popup/popup';
22
+ import { Icon } from '../icon/icon';
23
23
 
24
24
  import "./tooltips.scss"
25
25
 
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { class_ns } from '@core/core_tools';
17
+ import { class_ns } from '../../core/core_tools';
18
18
  import { Component, ComponentEvent, ComponentEvents, ComponentProps, EvSelectionChange, componentFromDOM } from '../../core/component';
19
19
 
20
20
  import { ScrollView, Viewport } from '../viewport/viewport';
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { class_ns } from '@core/core_tools.js';
17
+ import { class_ns } from '../../core/core_tools';
18
18
  import { Component, ComponentProps } from "../../core/component"
19
19
 
20
20
  import "./viewport.module.scss"
@@ -14,10 +14,10 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { Component, componentFromDOM } from './component.js';
18
- import { CoreElement } from './core_element.js';
17
+ import { Component, componentFromDOM } from './component';
18
+ import { CoreElement } from './core_element';
19
19
  import { CoreEvent, EventMap } from './core_events';
20
- import { getFocusableElements, ITabHandler } from './core_tools.js';
20
+ import { getFocusableElements, ITabHandler } from './core_tools';
21
21
 
22
22
  const socket_sent = Symbol( 'socket' );
23
23
 
@@ -15,10 +15,10 @@
15
15
  **/
16
16
 
17
17
 
18
- import { EvChange } from '@core/component.js';
19
- import { CoreElement } from '@core/core_element.js';
20
- import { CoreEvent, EventCallback, EventMap, EventSource } from '@core/core_events.js';
21
- import { isArray, isString } from '@core/core_tools.js';
18
+ import { EvChange } from './component';
19
+ import { CoreElement } from './core_element';
20
+ import { CoreEvent, EventMap, EventSource } from './core_events';
21
+ import { isArray, isString } from './core_tools';
22
22
 
23
23
  export type DataRecordID = any;
24
24
  export type DataFieldValue = string | Date | number | boolean;
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { EventMap, EventSource } from './core_events.js';
17
+ import { EventMap, EventSource } from './core_events';
18
18
 
19
19
  /**
20
20
  *
@@ -34,8 +34,8 @@
34
34
  *
35
35
  */
36
36
 
37
- import { Component } from './component.js';
38
- import { Constructor, isString } from './core_tools.js';
37
+ import { Component } from './component';
38
+ import { Constructor, isString } from './core_tools';
39
39
 
40
40
 
41
41
  /**
@@ -14,8 +14,8 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { EvChange, EvError } from './component.js';
18
- import { EventMap, EventSource } from './core_events.js';
17
+ import { EvChange, EvError } from './component';
18
+ import { EventMap, EventSource } from './core_events';
19
19
 
20
20
  type RouteHandler = ( params: any, path: string ) => void;
21
21
 
@@ -14,7 +14,7 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { isString } from './core_tools.js';
17
+ import { isString } from './core_tools';
18
18
 
19
19
  export const unitless: Record<string,1> = {
20
20
  animationIterationCount: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "description": "X4 framework",
5
5
  "author": "etienne cochard",
6
6
  "license": "MIT",
@@ -14,11 +14,11 @@
14
14
  * that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
15
15
  **/
16
16
 
17
- import { asap, class_ns, isArray, isNumber, isString } from '@core/core_tools.js';
17
+ import { asap, class_ns, isArray, isNumber, isString } from '../../core/core_tools';
18
18
  import { Component, ComponentContent, ComponentEvents, ComponentProps, EvSelectionChange } from "../../core/component"
19
19
 
20
20
  import "./boxes.module.scss";
21
- import { EventCallback } from '@core/core_events.js';
21
+ import { EventCallback } from '../../core/core_events';
22
22
 
23
23
  export interface BoxProps extends ComponentProps {
24
24
  tag?: string;