x4js 1.5.3 → 1.5.5

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.
@@ -29,4 +29,4 @@
29
29
  **/
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
31
  exports.x4js_version = void 0;
32
- exports.x4js_version = "1.5.2";
32
+ exports.x4js_version = "1.5.5";
@@ -26,4 +26,4 @@
26
26
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
- export const x4js_version = "1.5.2";
29
+ export const x4js_version = "1.5.5";
@@ -40,7 +40,7 @@ import { HLayout, VLayout } from './layout'
40
40
  import { Component, ContainerEventMap, EvSize, EvDblClick, CProps, flyWrap, html, HtmlString, SizerOverlay, Flex } from './component'
41
41
  import { Label } from './label'
42
42
  import { _tr } from './i18n'
43
- import * as Formatters from './formatters'
43
+ import { FormatFunc } from './formatters'
44
44
  import { downloadData, isFunction } from './tools'
45
45
  import { DataView, DataStore, Record } from './datastore'
46
46
 
@@ -71,7 +71,7 @@ export interface GridColumn {
71
71
  flex?: number;
72
72
  align?: 'left' | 'center' | 'right';
73
73
  renderer?: CellRenderer;
74
- formatter?: Formatters.FormatFunc;
74
+ formatter?: FormatFunc;
75
75
  cls?: string;
76
76
  sortable?: boolean;
77
77
  }
@@ -28,6 +28,7 @@
28
28
  **/
29
29
 
30
30
  import { x4document } from './x4dom'
31
+ import { HtmlString } from './tools'
31
32
 
32
33
  import { Component, CProps, CEventMap } from './component'
33
34
  import { EvChange, EventCallback } from './x4events'
@@ -185,11 +186,11 @@ export class RadioBtn extends Component<RadioBtnProps,RadioBtnEventMap> {
185
186
  }
186
187
  }
187
188
 
188
- get text( ) {
189
+ get text( ): HtmlString | string {
189
190
  return this.itemWithRef<Label>('label').text;
190
191
  }
191
192
 
192
- set text( text ) {
193
+ set text( text: HtmlString | string ) {
193
194
  this.itemWithRef<Label>('label').text = text;
194
195
  }
195
196
  }
@@ -33,7 +33,7 @@ import { Component, SizerOverlay, EvDblClick, EvSize, ContainerEventMap, Contain
33
33
  import { Input, InputProps } from './input';
34
34
  import { HLayout, VLayout } from './layout';
35
35
  import { TextEditProps, TextEdit } from './textedit';
36
- import * as Formatters from './formatters';
36
+ import { FormatFunc } from './formatters'
37
37
  import { asap, parseIntlFloat } from './tools';
38
38
  import { deferCall } from './tools';
39
39
  import { EvContextMenu, EvChange, EvSelectionChange, EventCallback } from './x4events'
@@ -56,7 +56,7 @@ export interface ColProp {
56
56
  align?: string;
57
57
  cls?: string;
58
58
  min_width?: number;
59
- renderer?: Formatters.FormatFunc;
59
+ renderer?: FormatFunc;
60
60
  createEditor?: EditorFactory; // null => disable edition
61
61
  }
62
62
 
package/lib/src/tabbar.ts CHANGED
@@ -145,7 +145,7 @@ export class TabBar extends Container<TabBarProps,TabBarEventMap> {
145
145
  }
146
146
  }
147
147
 
148
- get selection( ) {
148
+ get selection( ): Component {
149
149
  return this.m_curPage?.page;
150
150
  }
151
151
  }
@@ -30,7 +30,7 @@
30
30
  import { x4document } from './x4dom'
31
31
 
32
32
  import { Component, EvFocus, HtmlString } from './component'
33
- import { Input, InputProps, InputEventMap } from './input'
33
+ import { Input, InputProps, InputEventMap, EditType } from './input'
34
34
  import { IconID } from './icon'
35
35
  import { Button } from './button'
36
36
  import { HLayout } from './layout'
@@ -538,7 +538,7 @@ export class TextEdit<T extends TextEditProps = TextEditProps, E extends TextEdi
538
538
  return this.m_ui_input;
539
539
  }
540
540
 
541
- get type() {
541
+ get type(): EditType {
542
542
  return this.m_props.type;
543
543
  }
544
544
  }
@@ -27,4 +27,4 @@
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
29
 
30
- export const x4js_version = "1.5.2";
30
+ export const x4js_version = "1.5.5";
@@ -29,7 +29,7 @@
29
29
  import { VLayout } from './layout';
30
30
  import { Component, ContainerEventMap, EvDblClick, CProps, HtmlString } from './component';
31
31
  import { Label } from './label';
32
- import * as Formatters from './formatters';
32
+ import { FormatFunc } from './formatters';
33
33
  import { DataView, DataStore, Record } from './datastore';
34
34
  import { EvContextMenu, EvSelectionChange, BasicEvent, EventDisposer } from "./x4events";
35
35
  export interface EvGridCheck extends BasicEvent {
@@ -47,7 +47,7 @@ export interface GridColumn {
47
47
  flex?: number;
48
48
  align?: 'left' | 'center' | 'right';
49
49
  renderer?: CellRenderer;
50
- formatter?: Formatters.FormatFunc;
50
+ formatter?: FormatFunc;
51
51
  cls?: string;
52
52
  sortable?: boolean;
53
53
  }
@@ -26,6 +26,7 @@
26
26
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
+ import { HtmlString } from './tools';
29
30
  import { Component, CProps, CEventMap } from './component';
30
31
  import { EvChange, EventCallback } from './x4events';
31
32
  import { IconID } from './icon';
@@ -66,7 +67,7 @@ export declare class RadioBtn extends Component<RadioBtnProps, RadioBtnEventMap>
66
67
  * @param {boolean} ck new checked value
67
68
  */
68
69
  set check(ck: boolean);
69
- get text(): string | import("./tools").HtmlString;
70
- set text(text: string | import("./tools").HtmlString);
70
+ get text(): HtmlString | string;
71
+ set text(text: HtmlString | string);
71
72
  }
72
73
  export {};
@@ -29,7 +29,7 @@
29
29
  import { Component, EvDblClick, ContainerEventMap, ContainerProps } from './component';
30
30
  import { InputProps } from './input';
31
31
  import { VLayout } from './layout';
32
- import * as Formatters from './formatters';
32
+ import { FormatFunc } from './formatters';
33
33
  import { EvContextMenu, EvChange, EvSelectionChange, EventCallback } from './x4events';
34
34
  export interface EditorFactory {
35
35
  (props: InputProps, row: number, col: number): Component;
@@ -44,7 +44,7 @@ export interface ColProp {
44
44
  align?: string;
45
45
  cls?: string;
46
46
  min_width?: number;
47
- renderer?: Formatters.FormatFunc;
47
+ renderer?: FormatFunc;
48
48
  createEditor?: EditorFactory;
49
49
  }
50
50
  /**
@@ -53,6 +53,6 @@ export declare class TabBar extends Container<TabBarProps, TabBarEventMap> {
53
53
  render(): void;
54
54
  select(id: string | null, notify?: boolean): boolean;
55
55
  private _select;
56
- get selection(): Component<CProps<import("./component").CEventMap>, import("./component").CEventMap>;
56
+ get selection(): Component;
57
57
  }
58
58
  export {};
@@ -27,7 +27,7 @@
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
29
  import { Component, EvFocus, HtmlString } from './component';
30
- import { Input, InputProps, InputEventMap } from './input';
30
+ import { Input, InputProps, InputEventMap, EditType } from './input';
31
31
  import { IconID } from './icon';
32
32
  import { EvClick, EvChange, EventCallback } from './x4events';
33
33
  type ValidationFunction = (value: string) => string;
@@ -118,6 +118,6 @@ export declare class TextEdit<T extends TextEditProps = TextEditProps, E extends
118
118
  _date_validator(value: string): string;
119
119
  private _showDatePicker;
120
120
  get input(): Input;
121
- get type(): import("./input").EditType;
121
+ get type(): EditType;
122
122
  }
123
123
  export {};
@@ -26,4 +26,4 @@
26
26
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
27
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
28
  **/
29
- export declare const x4js_version = "1.5.2";
29
+ export declare const x4js_version = "1.5.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "X4js core files",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",