x4js 1.5.4 → 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.
- package/lib/cjs/version.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/src/gridview.ts +2 -2
- package/lib/src/radiobtn.ts +3 -2
- package/lib/src/spreadsheet.ts +2 -2
- package/lib/src/tabbar.ts +1 -1
- package/lib/src/textedit.ts +2 -2
- package/lib/src/version.ts +1 -1
- package/lib/types/gridview.d.ts +2 -2
- package/lib/types/radiobtn.d.ts +3 -2
- package/lib/types/spreadsheet.d.ts +2 -2
- package/lib/types/tabbar.d.ts +1 -1
- package/lib/types/textedit.d.ts +2 -2
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/version.js
CHANGED
package/lib/esm/version.js
CHANGED
package/lib/src/gridview.ts
CHANGED
|
@@ -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
|
|
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?:
|
|
74
|
+
formatter?: FormatFunc;
|
|
75
75
|
cls?: string;
|
|
76
76
|
sortable?: boolean;
|
|
77
77
|
}
|
package/lib/src/radiobtn.ts
CHANGED
|
@@ -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
|
}
|
package/lib/src/spreadsheet.ts
CHANGED
|
@@ -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
|
|
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?:
|
|
59
|
+
renderer?: FormatFunc;
|
|
60
60
|
createEditor?: EditorFactory; // null => disable edition
|
|
61
61
|
}
|
|
62
62
|
|
package/lib/src/tabbar.ts
CHANGED
package/lib/src/textedit.ts
CHANGED
|
@@ -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
|
}
|
package/lib/src/version.ts
CHANGED
package/lib/types/gridview.d.ts
CHANGED
|
@@ -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
|
|
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?:
|
|
50
|
+
formatter?: FormatFunc;
|
|
51
51
|
cls?: string;
|
|
52
52
|
sortable?: boolean;
|
|
53
53
|
}
|
package/lib/types/radiobtn.d.ts
CHANGED
|
@@ -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():
|
|
70
|
-
set text(text:
|
|
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
|
|
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?:
|
|
47
|
+
renderer?: FormatFunc;
|
|
48
48
|
createEditor?: EditorFactory;
|
|
49
49
|
}
|
|
50
50
|
/**
|
package/lib/types/tabbar.d.ts
CHANGED
|
@@ -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
|
|
56
|
+
get selection(): Component;
|
|
57
57
|
}
|
|
58
58
|
export {};
|
package/lib/types/textedit.d.ts
CHANGED
|
@@ -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():
|
|
121
|
+
get type(): EditType;
|
|
122
122
|
}
|
|
123
123
|
export {};
|
package/lib/types/version.d.ts
CHANGED