@uwdata/mosaic-inputs 0.30.0 → 0.31.0
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/dist/src/Menu.d.ts +48 -18
- package/dist/src/Menu.d.ts.map +1 -1
- package/dist/src/Search.d.ts +43 -17
- package/dist/src/Search.d.ts.map +1 -1
- package/dist/src/Slider.d.ts +50 -19
- package/dist/src/Slider.d.ts.map +1 -1
- package/dist/src/Table.d.ts +69 -36
- package/dist/src/Table.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input.d.ts +6 -6
- package/dist/src/input.d.ts.map +1 -1
- package/dist/src/util/format.d.ts +8 -8
- package/dist/src/util/format.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/src/Menu.d.ts
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Param, Selection } from '@uwdata/mosaic-core';
|
|
2
|
+
import { Input } from './input.js';
|
|
3
|
+
/**
|
|
4
|
+
* Create a new menu input instance.
|
|
5
|
+
* @param {object} [options] Options object
|
|
6
|
+
* @param {HTMLElement} [options.element] The parent DOM element in which to
|
|
7
|
+
* place the menu elements. If undefined, a new `div` element is created.
|
|
8
|
+
* @param {Selection} [options.filterBy] A selection to filter the database
|
|
9
|
+
* table indicated by the *from* option.
|
|
10
|
+
* @param {Param} [options.as] The output param or selection. A selection
|
|
11
|
+
* clause is added for the currently selected menu option.
|
|
12
|
+
* @param {string} [options.field] The database column name to use within
|
|
13
|
+
* generated selection clause predicates. Defaults to the *column* option.
|
|
14
|
+
* @param {(any | { value: any, label?: string })[]} [options.options] An
|
|
15
|
+
* array of menu options, as literal values or option objects. Option
|
|
16
|
+
* objects have a `value` property and an optional `label` property. If no
|
|
17
|
+
* label or *format* function is provided, the string-coerced value is used.
|
|
18
|
+
* @param {(value: any) => string} [options.format] A format function that
|
|
19
|
+
* takes an option value as input and generates a string label. The format
|
|
20
|
+
* function is not applied when an explicit label is provided in an option
|
|
21
|
+
* object.
|
|
22
|
+
* @param {*} [options.value] The initial selected menu value.
|
|
23
|
+
* @param {string} [options.from] The name of a database table to use as a data
|
|
24
|
+
* source for this widget. Used in conjunction with the *column* option.
|
|
25
|
+
* @param {string} [options.column] The name of a database column from which
|
|
26
|
+
* to pull menu options. The unique column values are used as menu options.
|
|
27
|
+
* Used in conjunction with the *from* option.
|
|
28
|
+
* @param {string} [options.label] A text label for this input.
|
|
29
|
+
* @param {'any' | 'all'} [options.listMatch] The list match mode.
|
|
30
|
+
* @returns {HTMLElement} The container element for a menu input.
|
|
31
|
+
*/
|
|
32
|
+
export declare const menu: (options?: {
|
|
2
33
|
element?: HTMLElement;
|
|
3
34
|
filterBy?: Selection;
|
|
4
35
|
as?: Param<any>;
|
|
@@ -12,13 +43,21 @@ export function menu(options?: {
|
|
|
12
43
|
from?: string;
|
|
13
44
|
column?: string;
|
|
14
45
|
label?: string;
|
|
15
|
-
listMatch?:
|
|
16
|
-
})
|
|
46
|
+
listMatch?: 'any' | 'all';
|
|
47
|
+
}) => HTMLElement;
|
|
17
48
|
/**
|
|
18
49
|
* A HTML <select>-based dropdown menu input.
|
|
19
50
|
* @extends {Input}
|
|
20
51
|
*/
|
|
21
|
-
export class Menu extends Input {
|
|
52
|
+
export declare class Menu extends Input {
|
|
53
|
+
from: string;
|
|
54
|
+
column: string;
|
|
55
|
+
format: (value: any) => string;
|
|
56
|
+
field: string;
|
|
57
|
+
listMatch: "all" | "any";
|
|
58
|
+
selection: Param<any>;
|
|
59
|
+
select: HTMLSelectElement;
|
|
60
|
+
data: any[];
|
|
22
61
|
/**
|
|
23
62
|
* Create a new menu input.
|
|
24
63
|
* @param {object} [options] Options object
|
|
@@ -47,7 +86,8 @@ export class Menu extends Input {
|
|
|
47
86
|
* @param {string} [options.label] A text label for this input.
|
|
48
87
|
* @param {'any' | 'all'} [options.listMatch] The list match mode.
|
|
49
88
|
*/
|
|
50
|
-
constructor({ element, filterBy, as, from, column, label, format,
|
|
89
|
+
constructor({ element, filterBy, as, from, column, label, format, // TODO
|
|
90
|
+
options, value, field, listMatch, }?: {
|
|
51
91
|
element?: HTMLElement;
|
|
52
92
|
filterBy?: Selection;
|
|
53
93
|
as?: Param<any>;
|
|
@@ -61,24 +101,14 @@ export class Menu extends Input {
|
|
|
61
101
|
from?: string;
|
|
62
102
|
column?: string;
|
|
63
103
|
label?: string;
|
|
64
|
-
listMatch?:
|
|
104
|
+
listMatch?: 'any' | 'all';
|
|
65
105
|
});
|
|
66
|
-
|
|
67
|
-
column: string;
|
|
68
|
-
format: (value: any) => string;
|
|
69
|
-
field: string;
|
|
70
|
-
listMatch: "any" | "all";
|
|
71
|
-
selection: Param<any>;
|
|
72
|
-
select: HTMLSelectElement;
|
|
73
|
-
data: any[];
|
|
74
|
-
selectedValue(value: any, ...args: any[]): any;
|
|
106
|
+
selectedValue(value: any): any;
|
|
75
107
|
reset(): void;
|
|
108
|
+
activate(): void;
|
|
76
109
|
publish(value: any): void;
|
|
77
110
|
query(filter?: any[]): import("@uwdata/mosaic-sql").SelectQuery;
|
|
78
111
|
queryResult(data: any): this;
|
|
79
112
|
update(): this;
|
|
80
113
|
}
|
|
81
|
-
import type { Selection } from '@uwdata/mosaic-core';
|
|
82
|
-
import type { Param } from '@uwdata/mosaic-core';
|
|
83
|
-
import { Input } from './input.js';
|
|
84
114
|
//# sourceMappingURL=Menu.d.ts.map
|
package/dist/src/Menu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../src/Menu.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../src/Menu.js"],"names":[],"mappings":"AAAI,OAAQ,KAAA,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAG3D,OAAO,EAAE,KAAK,EAAS,MAAM,YAAY,CAAC;AAM1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AA;QAAyB,KAAK,AAA9B,CAEA,EAFQ,MAAM,CAEd;QAA2D,OAAO,AAAlE,CAIA,EAJQ,CAAC,GAAG,GAAG;YAAE,KAAK,EAAE,GAAG,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,CAIhD;QAAyC,MAAM,AAA/C,CAIA,EAJQ,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAI9B;QAAoB,KAAK,AAAzB,CACA,EADQ,GAAC,CACT;QAAyB,IAAI,AAA7B,CAEA,EAFQ,MAAM,CAEd;QAAyB,MAAM,AAA/B,CAGA,EAHQ,MAAM,CAGd;QAAyB,KAAK,AAA9B,CACA,EADQ,MAAM,CACd;QAAgC,SAAS,AAAzC,CACF,EADU,KAAK,GAAG,KAAK,CACvB;KAaK,EAsDL;IAED,aAAa,CAAC,KAAK,KAAA,OAYlB;IAED,KAAK,SAEJ;IAED,QAAQ,SAIP;IAED,OAAO,CAAC,KAAK,KAAA,QAWZ;IAED,KAAK,CAAC,MAAM,QAAK,4CAShB;IAED,WAAW,CAAC,IAAI,KAAA,QAIf;IAED,MAAM,SAqBL;CACF"}
|
package/dist/src/Search.d.ts
CHANGED
|
@@ -1,18 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Param, Selection } from '@uwdata/mosaic-core';
|
|
2
|
+
import { Input } from './input.js';
|
|
3
|
+
/**
|
|
4
|
+
* Create a new text search input instance.
|
|
5
|
+
* @param {object} [options] Options object
|
|
6
|
+
* @param {HTMLElement} [options.element] The parent DOM element in which to
|
|
7
|
+
* place the search elements. If undefined, a new `div` element is created.
|
|
8
|
+
* @param {Selection} [options.filterBy] A selection to filter the database
|
|
9
|
+
* table indicated by the *from* option.
|
|
10
|
+
* @param {Param} [options.as] The output param or selection. A selection
|
|
11
|
+
* clause is added based on the current text search query.
|
|
12
|
+
* @param {string} [options.field] The database column name to use within
|
|
13
|
+
* generated selection clause predicates. Defaults to the *column* option.
|
|
14
|
+
* @param {'contains' | 'prefix' | 'suffix' | 'regexp'} [options.type] The
|
|
15
|
+
* type of text search query to perform. One of:
|
|
16
|
+
* - `"contains"` (default): the query string may appear anywhere in the text
|
|
17
|
+
* - `"prefix"`: the query string must appear at the start of the text
|
|
18
|
+
* - `"suffix"`: the query string must appear at the end of the text
|
|
19
|
+
* - `"regexp"`: the query string is a regular expression the text must match
|
|
20
|
+
* @param {string} [options.from] The name of a database table to use as an
|
|
21
|
+
* autocomplete data source for this widget. Used in conjunction with the
|
|
22
|
+
* *column* option.
|
|
23
|
+
* @param {string} [options.column] The name of a database column from which
|
|
24
|
+
* to pull valid search results. The unique column values are used as search
|
|
25
|
+
* autocomplete values. Used in conjunction with the *from* option.
|
|
26
|
+
* @param {string} [options.label] A text label for this input.
|
|
27
|
+
* @returns {HTMLElement} The container element for a text search input.
|
|
28
|
+
*/
|
|
29
|
+
export declare const search: (options?: {
|
|
2
30
|
element?: HTMLElement;
|
|
3
31
|
filterBy?: Selection;
|
|
4
32
|
as?: Param<any>;
|
|
5
33
|
field?: string;
|
|
6
|
-
type?:
|
|
34
|
+
type?: 'contains' | 'prefix' | 'suffix' | 'regexp';
|
|
7
35
|
from?: string;
|
|
8
36
|
column?: string;
|
|
9
37
|
label?: string;
|
|
10
|
-
})
|
|
38
|
+
}) => HTMLElement;
|
|
11
39
|
/**
|
|
12
40
|
* A HTML text search input.
|
|
13
41
|
* @extends {Input}
|
|
14
42
|
*/
|
|
15
|
-
export class Search extends Input {
|
|
43
|
+
export declare class Search extends Input {
|
|
44
|
+
id: string;
|
|
45
|
+
type: "contains" | "prefix" | "regexp" | "suffix";
|
|
46
|
+
from: string;
|
|
47
|
+
column: string;
|
|
48
|
+
selection: Param<any>;
|
|
49
|
+
field: string;
|
|
50
|
+
searchbox: HTMLInputElement;
|
|
51
|
+
data: any;
|
|
52
|
+
datalist: HTMLDataListElement;
|
|
16
53
|
/**
|
|
17
54
|
* Create a new text search input.
|
|
18
55
|
* @param {object} [options] Options object
|
|
@@ -43,28 +80,17 @@ export class Search extends Input {
|
|
|
43
80
|
filterBy?: Selection;
|
|
44
81
|
as?: Param<any>;
|
|
45
82
|
field?: string;
|
|
46
|
-
type?:
|
|
83
|
+
type?: 'contains' | 'prefix' | 'suffix' | 'regexp';
|
|
47
84
|
from?: string;
|
|
48
85
|
column?: string;
|
|
49
86
|
label?: string;
|
|
50
87
|
});
|
|
51
|
-
id: string;
|
|
52
|
-
type: "contains" | "prefix" | "suffix" | "regexp";
|
|
53
|
-
from: string;
|
|
54
|
-
column: string;
|
|
55
|
-
selection: Param<any>;
|
|
56
|
-
field: string;
|
|
57
|
-
searchbox: HTMLInputElement;
|
|
58
88
|
reset(): void;
|
|
59
89
|
clause(value: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
90
|
+
activate(): void;
|
|
60
91
|
publish(value: any): void;
|
|
61
92
|
query(filter?: any[]): import("@uwdata/mosaic-sql").SelectQuery;
|
|
62
93
|
queryResult(data: any): this;
|
|
63
|
-
data: any;
|
|
64
94
|
update(): this;
|
|
65
|
-
datalist: HTMLDataListElement;
|
|
66
95
|
}
|
|
67
|
-
import type { Selection } from '@uwdata/mosaic-core';
|
|
68
|
-
import type { Param } from '@uwdata/mosaic-core';
|
|
69
|
-
import { Input } from './input.js';
|
|
70
96
|
//# sourceMappingURL=Search.d.ts.map
|
package/dist/src/Search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../src/Search.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../src/Search.js"],"names":[],"mappings":"AAAI,OAAQ,KAAA,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAG3D,OAAO,EAAE,KAAK,EAAS,MAAM,YAAY,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,MAAM,aAvBhB;IAA8B,OAAO,AA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OZ;IAED,KAAK,CAAC,MAAM,QAAK,4CAQhB;IAED,WAAW,CAAC,IAAI,KAAA,QAGf;IAED,MAAM,SAaL;CACF"}
|
package/dist/src/Slider.d.ts
CHANGED
|
@@ -1,9 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Param, Selection } from '@uwdata/mosaic-core';
|
|
2
|
+
import { Input } from './input.js';
|
|
3
|
+
/**
|
|
4
|
+
* Create a new slider input instance.
|
|
5
|
+
* @param {object} [options] Options object
|
|
6
|
+
* @param {HTMLElement} [options.element] The parent DOM element in which to
|
|
7
|
+
* place the slider elements. If undefined, a new `div` element is created.
|
|
8
|
+
* @param {Selection} [options.filterBy] A selection to filter the database
|
|
9
|
+
* table indicated by the *from* option.
|
|
10
|
+
* @param {Param} [options.as] The output param or selection. A selection
|
|
11
|
+
* clause is added based on the currently selected slider option.
|
|
12
|
+
* @param {string} [options.field] The database column name to use within
|
|
13
|
+
* generated selection clause predicates. Defaults to the *column* option.
|
|
14
|
+
* @param {'point' | 'interval'} [options.select] The type of selection clause
|
|
15
|
+
* predicate to generate if the **as** option is a Selection. If `'point'`
|
|
16
|
+
* (the default), the selection predicate is an equality check for the slider
|
|
17
|
+
* value. If `'interval'`, the predicate checks an interval from the minimum
|
|
18
|
+
* to the current slider value.
|
|
19
|
+
* @param {number} [options.min] The minimum slider value.
|
|
20
|
+
* @param {number} [options.max] The maximum slider value.
|
|
21
|
+
* @param {number} [options.step] The slider step, the amount to increment
|
|
22
|
+
* between consecutive values.
|
|
23
|
+
* @param {number} [options.value] The initial slider value.
|
|
24
|
+
* @param {string} [options.from] The name of a database table to use as a data
|
|
25
|
+
* source for this widget. Used in conjunction with the *column* option.
|
|
26
|
+
* The minimum and maximum values of the column determine the slider range.
|
|
27
|
+
* @param {string} [options.column] The name of a database column whose values
|
|
28
|
+
* determine the slider range. Used in conjunction with the *from* option.
|
|
29
|
+
* The minimum and maximum values of the column determine the slider range.
|
|
30
|
+
* @param {string} [options.label] A text label for this input.
|
|
31
|
+
* @param {number} [options.width] The width of the slider in screen pixels.
|
|
32
|
+
* @returns {HTMLElement} The container element for a slider input.
|
|
33
|
+
*/
|
|
34
|
+
export declare const slider: (options?: {
|
|
2
35
|
element?: HTMLElement;
|
|
3
36
|
filterBy?: Selection;
|
|
4
37
|
as?: Param<any>;
|
|
5
38
|
field?: string;
|
|
6
|
-
select?:
|
|
39
|
+
select?: 'point' | 'interval';
|
|
7
40
|
min?: number;
|
|
8
41
|
max?: number;
|
|
9
42
|
step?: number;
|
|
@@ -12,12 +45,23 @@ export function slider(options?: {
|
|
|
12
45
|
column?: string;
|
|
13
46
|
label?: string;
|
|
14
47
|
width?: number;
|
|
15
|
-
})
|
|
48
|
+
}) => HTMLElement;
|
|
16
49
|
/**
|
|
17
50
|
* A HTML range-based slider input.
|
|
18
51
|
* @extends {Input}
|
|
19
52
|
*/
|
|
20
|
-
export class Slider extends Input {
|
|
53
|
+
export declare class Slider extends Input {
|
|
54
|
+
id: string;
|
|
55
|
+
from: string;
|
|
56
|
+
column: string;
|
|
57
|
+
selection: Param<any>;
|
|
58
|
+
selectionType: "interval" | "point";
|
|
59
|
+
field: string;
|
|
60
|
+
min: number;
|
|
61
|
+
max: number;
|
|
62
|
+
step: number;
|
|
63
|
+
slider: HTMLInputElement;
|
|
64
|
+
curval: HTMLLabelElement;
|
|
21
65
|
/**
|
|
22
66
|
* Create a new slider input.
|
|
23
67
|
* @param {object} [options] Options object
|
|
@@ -53,7 +97,7 @@ export class Slider extends Input {
|
|
|
53
97
|
filterBy?: Selection;
|
|
54
98
|
as?: Param<any>;
|
|
55
99
|
field?: string;
|
|
56
|
-
select?:
|
|
100
|
+
select?: 'point' | 'interval';
|
|
57
101
|
min?: number;
|
|
58
102
|
max?: number;
|
|
59
103
|
step?: number;
|
|
@@ -63,23 +107,10 @@ export class Slider extends Input {
|
|
|
63
107
|
label?: string;
|
|
64
108
|
width?: number;
|
|
65
109
|
});
|
|
66
|
-
id: string;
|
|
67
|
-
from: string;
|
|
68
|
-
column: string;
|
|
69
|
-
selection: Param<any>;
|
|
70
|
-
selectionType: "point" | "interval";
|
|
71
|
-
field: string;
|
|
72
|
-
min: number;
|
|
73
|
-
max: number;
|
|
74
|
-
step: number;
|
|
75
|
-
slider: HTMLInputElement;
|
|
76
|
-
curval: HTMLLabelElement;
|
|
77
110
|
query(filter?: any[]): import("@uwdata/mosaic-sql").SelectQuery;
|
|
78
111
|
queryResult(data: any): this;
|
|
79
112
|
clause(value: any): import("@uwdata/mosaic-core").SelectionClause;
|
|
113
|
+
activate(): void;
|
|
80
114
|
publish(value: any): void;
|
|
81
115
|
}
|
|
82
|
-
import type { Selection } from '@uwdata/mosaic-core';
|
|
83
|
-
import type { Param } from '@uwdata/mosaic-core';
|
|
84
|
-
import { Input } from './input.js';
|
|
85
116
|
//# sourceMappingURL=Slider.d.ts.map
|
package/dist/src/Slider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../src/Slider.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../src/Slider.js"],"names":[],"mappings":"AAAI,OAAQ,KAAA,EAAgB,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAGzE,OAAO,EAAE,KAAK,EAAS,MAAM,YAAY,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,MAAM,aA5BhB;IAA8B,OAAO,AAArC,CAEA,EAFQ,WAAW,CAEnB;IAA4B,QAAQ,AAApC,CAEA,EAFQ,SAAS,CAEjB;IAAwB,EAAE,AAA1B,CAEA,aAAA;IAAyB,KAAK,AAA9B,CAEA,EAFQ,MAAM,CAEd;IAAuC,MAAM,AAA7C,CAKA,EALQ,OAAO,GAAG,UAAU,CAK5B;IAAyB,GAAG,AAA5B,CACA,EADQ,MAAM,CACd;IAAyB,GAAG,AAA5B,C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EADQ,MAAM,CACd;QAAyB,KAAK,AAA9B,CACF,EADU,MAAM,CAChB;KAeK,EAiEL;IAED,KAAK,CAAC,MAAM,QAAK,4CAOhB;IAED,WAAW,CAAC,IAAI,KAAA,QAef;IAED,MAAM,CAAC,KAAK,KAAA,iDAcX;IAED,QAAQ,SAIP;IAED,OAAO,CAAC,KAAK,KAAA,QAOZ;CACF"}
|
package/dist/src/Table.d.ts
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Selection } from '@uwdata/mosaic-core';
|
|
2
|
+
import type { FilterExpr } from '@uwdata/mosaic-sql';
|
|
3
|
+
import { Input } from './input.js';
|
|
4
|
+
/**
|
|
5
|
+
* Create a new table input instance.
|
|
6
|
+
* @param {object} options Options object
|
|
7
|
+
* @param {HTMLElement} [options.element] The parent DOM element in which to
|
|
8
|
+
* place the table element. If undefined, a new `div` element is created.
|
|
9
|
+
* @param {Selection} [options.filterBy] A selection to filter the database
|
|
10
|
+
* table indicated by the *from* option.
|
|
11
|
+
* @param {Selection} [options.as] The output selection. A selection
|
|
12
|
+
* clause is added for the currently selected table row.
|
|
13
|
+
* @param {{ [name: string]: 'left' | 'right' | 'center' }} [options.align]
|
|
14
|
+
* An object that maps column names to horizontal text alignment values. If
|
|
15
|
+
* unspecified, alignment is determined based on the column data type.
|
|
16
|
+
* @param {{ [name: string]: (value: any) => string }} [options.format] An
|
|
17
|
+
* object that maps column names to format functions to use for that
|
|
18
|
+
* column's data. Each format function takes a value as input and generates
|
|
19
|
+
* formatted text to show in the table.
|
|
20
|
+
* @param {string} [options.from] The name of a database table to use as a data
|
|
21
|
+
* source for this widget. Used in conjunction with the *columns* option.
|
|
22
|
+
* @param {string[]} [options.columns] The name of database columns to include
|
|
23
|
+
* in the table component. If unspecified, all columns are included.
|
|
24
|
+
* Used in conjunction with the *from* option.
|
|
25
|
+
* @param {number | { [name: string]: number }} [options.width] If a number,
|
|
26
|
+
* sets the desired width of the table, in pixels. If an object, is used to
|
|
27
|
+
* set explicit pixel widths for each named column included in the object.
|
|
28
|
+
* @param {number} [options.maxWidth] The maximum width of the table, in pixels.
|
|
29
|
+
* @param {number} [options.height] The desired height of the table, in pixels.
|
|
30
|
+
* @param {number} [options.rowBatch] The number of rows to request per query
|
|
31
|
+
* batch. The batch size will be used to prefetch data beyond the currently
|
|
32
|
+
* visible range.
|
|
33
|
+
* @returns {HTMLElement} The container element for a table component.
|
|
34
|
+
*/
|
|
35
|
+
export declare const table: (options: {
|
|
2
36
|
element?: HTMLElement;
|
|
3
37
|
filterBy?: Selection;
|
|
4
38
|
as?: Selection;
|
|
5
39
|
align?: {
|
|
6
|
-
[name: string]:
|
|
40
|
+
[name: string]: 'left' | 'right' | 'center';
|
|
7
41
|
};
|
|
8
42
|
format?: {
|
|
9
43
|
[name: string]: (value: any) => string;
|
|
@@ -16,12 +50,40 @@ export function table(options: {
|
|
|
16
50
|
maxWidth?: number;
|
|
17
51
|
height?: number;
|
|
18
52
|
rowBatch?: number;
|
|
19
|
-
})
|
|
53
|
+
}) => HTMLElement;
|
|
20
54
|
/**
|
|
21
55
|
* A HTML table based table component.
|
|
22
56
|
* @extends {Input}
|
|
23
57
|
*/
|
|
24
|
-
export class Table extends Input {
|
|
58
|
+
export declare class Table extends Input {
|
|
59
|
+
id: string;
|
|
60
|
+
from: string;
|
|
61
|
+
columns: string[];
|
|
62
|
+
format: {
|
|
63
|
+
[name: string]: (value: any) => string;
|
|
64
|
+
};
|
|
65
|
+
align: {
|
|
66
|
+
[name: string]: "center" | "left" | "right";
|
|
67
|
+
};
|
|
68
|
+
widths: {
|
|
69
|
+
[name: string]: number;
|
|
70
|
+
};
|
|
71
|
+
offset: number;
|
|
72
|
+
limit: number;
|
|
73
|
+
isPending: boolean;
|
|
74
|
+
selection: Selection;
|
|
75
|
+
currentRow: number;
|
|
76
|
+
sortHeader: any;
|
|
77
|
+
sortColumn: any;
|
|
78
|
+
sortDesc: boolean;
|
|
79
|
+
tbl: HTMLTableElement;
|
|
80
|
+
head: HTMLTableSectionElement;
|
|
81
|
+
body: HTMLTableSectionElement;
|
|
82
|
+
style: HTMLStyleElement;
|
|
83
|
+
schema: import("@uwdata/mosaic-core").FieldInfo[];
|
|
84
|
+
formats: any;
|
|
85
|
+
loaded: boolean;
|
|
86
|
+
data: any[];
|
|
25
87
|
/**
|
|
26
88
|
* Create a new Table instance.
|
|
27
89
|
* @param {object} options Options object
|
|
@@ -57,7 +119,7 @@ export class Table extends Input {
|
|
|
57
119
|
filterBy?: Selection;
|
|
58
120
|
as?: Selection;
|
|
59
121
|
align?: {
|
|
60
|
-
[name: string]:
|
|
122
|
+
[name: string]: 'left' | 'right' | 'center';
|
|
61
123
|
};
|
|
62
124
|
format?: {
|
|
63
125
|
[name: string]: (value: any) => string;
|
|
@@ -71,46 +133,17 @@ export class Table extends Input {
|
|
|
71
133
|
height?: number;
|
|
72
134
|
rowBatch?: number;
|
|
73
135
|
});
|
|
74
|
-
id: string;
|
|
75
|
-
from: string;
|
|
76
|
-
columns: string[];
|
|
77
|
-
format: {
|
|
78
|
-
[name: string]: (value: any) => string;
|
|
79
|
-
};
|
|
80
|
-
align: {
|
|
81
|
-
[name: string]: "left" | "right" | "center";
|
|
82
|
-
};
|
|
83
|
-
widths: {
|
|
84
|
-
[name: string]: number;
|
|
85
|
-
};
|
|
86
|
-
offset: number;
|
|
87
|
-
limit: number;
|
|
88
|
-
isPending: boolean;
|
|
89
|
-
selection: Selection;
|
|
90
|
-
currentRow: number;
|
|
91
|
-
sortHeader: any;
|
|
92
|
-
sortColumn: any;
|
|
93
|
-
sortDesc: boolean;
|
|
94
|
-
tbl: HTMLTableElement;
|
|
95
|
-
head: HTMLTableSectionElement;
|
|
96
|
-
body: HTMLTableSectionElement;
|
|
97
|
-
style: HTMLStyleElement;
|
|
98
136
|
sourceTable(): any;
|
|
99
137
|
clause(rows?: any[]): import("@uwdata/mosaic-core").SelectionClause;
|
|
100
138
|
requestData(offset?: number): void;
|
|
101
|
-
|
|
102
|
-
formats: any;
|
|
139
|
+
prepare(): Promise<void>;
|
|
103
140
|
/**
|
|
104
141
|
* @param {FilterExpr} filter
|
|
105
142
|
*/
|
|
106
143
|
query(filter?: FilterExpr): import("@uwdata/mosaic-sql").SelectQuery;
|
|
107
144
|
queryResult(data: any): this;
|
|
108
|
-
loaded: boolean;
|
|
109
|
-
data: any[];
|
|
110
145
|
update(): this;
|
|
146
|
+
activate(): void;
|
|
111
147
|
sort(event: any, column: any): void;
|
|
112
148
|
}
|
|
113
|
-
import type { Selection } from '@uwdata/mosaic-core';
|
|
114
|
-
import { Input } from './input.js';
|
|
115
|
-
import type { FilterExpr } from '@uwdata/mosaic-sql';
|
|
116
149
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/src/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table.js"],"names":[],"mappings":"AACG,OAAQ,KAAA,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAChD;AAAA,OAAQ,KAAA,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAKnD,OAAO,EAAE,KAAK,EAAS,MAAM,YAAY,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,KAAK,YA5Bf;IAA8B,OAAO,AAArC,CAEA,EAFQ,WAAW,CAEnB;IAA4B,QAAQ,AAApC,CAEA,EAFQ,SAAS,CAEjB;IAA4B,EAAE,AAA9B,CAEA,EAFQ,SAAS,CAEjB;IAAkE,KAAK,AAAvE,CAGA,EAHQ;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;KAAE,CAGvD;IAA6D,MAAM,AAAnE,CAIA,EAJQ;QAAE,CAAC,IAAI,EAAE,MAAM,G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D,MAAM,AAAnE,CAIA,EAJQ;YAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAA;SAAE,CAIlD;QAAyB,IAAI,AAA7B,CAEA,EAFQ,MAAM,CAEd;QAA2B,OAAO,AAAlC,CAGA,EAHQ,MAAM,EAAE,CAGhB;QAAsD,KAAK,AAA3D,CAGA,EAHQ,MAAM,GAAG;YAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAG3C;QAAyB,QAAQ,AAAjC,CACA,EADQ,MAAM,CACd;QAAyB,MAAM,AAA/B,CACA,EADQ,MAAM,CACd;QAAyB,QAAQ,AAAjC,CAGF,EAHU,MAAM,CAGhB;KAaK,EA0EL;IAED,WAAW,QAEV;IAED,MAAM,CAAC,IAAI,QAAK,iDAQf;IAED,WAAW,CAAC,MAAM,SAAI,QASrB;IAEK,OAAO,kBA6BZ;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,GAFD,UAEM,4CAQhB;IAED,WAAW,CAAC,IAAI,KAAA,QAUf;IAED,MAAM,SA2BL;IAED,QAAQ,SAIP;IAED,IAAI,CAAC,KAAK,KAAA,EAAE,MAAM,KAAA,QAsBjB;CACF"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Menu, menu } from
|
|
2
|
-
export { Search, search } from
|
|
3
|
-
export { Slider, slider } from
|
|
4
|
-
export { Table, table } from
|
|
1
|
+
export { Menu, menu } from './Menu.js';
|
|
2
|
+
export { Search, search } from './Search.js';
|
|
3
|
+
export { Slider, slider } from './Slider.js';
|
|
4
|
+
export { Table, table } from './Table.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/src/input.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MosaicClient } from '@uwdata/mosaic-core';
|
|
1
2
|
/**
|
|
2
3
|
* Instantiate an input, register it with the coordinator, and
|
|
3
4
|
* return the corresponding HTML element.
|
|
@@ -6,13 +7,15 @@
|
|
|
6
7
|
* @param {ConstructorParameters<T>} params
|
|
7
8
|
* @returns {HTMLElement} The container element of the input.
|
|
8
9
|
*/
|
|
9
|
-
export function input<T extends new (...args: any) => Input>(InputClass: T, ...params: ConstructorParameters<T>): HTMLElement;
|
|
10
|
+
export declare function input<T extends new (...args: any) => Input>(InputClass: T, ...params: ConstructorParameters<T>): HTMLElement;
|
|
11
|
+
import type { Activatable } from '@uwdata/mosaic-core';
|
|
10
12
|
/**
|
|
11
13
|
* Base class for input components.
|
|
12
14
|
* @import {Activatable} from '@uwdata/mosaic-core'
|
|
13
15
|
* @implements {Activatable}
|
|
14
16
|
*/
|
|
15
|
-
export class Input extends MosaicClient implements Activatable {
|
|
17
|
+
export declare class Input extends MosaicClient implements Activatable {
|
|
18
|
+
element: HTMLElement;
|
|
16
19
|
/**
|
|
17
20
|
* Create a new input instance.
|
|
18
21
|
* @param {import('@uwdata/mosaic-core').Selection} [filterBy] A selection
|
|
@@ -20,10 +23,7 @@ export class Input extends MosaicClient implements Activatable {
|
|
|
20
23
|
* @param {HTMLElement} [element] Optional container HTML element to use.
|
|
21
24
|
* @param {string} [className] A class name to set on the container element.
|
|
22
25
|
*/
|
|
23
|
-
constructor(filterBy?: import(
|
|
24
|
-
element: HTMLElement;
|
|
26
|
+
constructor(filterBy?: import('@uwdata/mosaic-core').Selection, element?: HTMLElement, className?: string);
|
|
25
27
|
activate(): void;
|
|
26
28
|
}
|
|
27
|
-
import type { Activatable } from '@uwdata/mosaic-core';
|
|
28
|
-
import { MosaicClient } from '@uwdata/mosaic-core';
|
|
29
29
|
//# sourceMappingURL=input.d.ts.map
|
package/dist/src/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/input.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/input.js"],"names":[],"mappings":"AAAA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;;;;;GAOG;AACH,wBAAgB,KAAK,CALsB,CAAC,SAA9B,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,KAAQ,EAKtB,UAAU,EAJrB,CAIqB,EAAE,GAAG,MAAM,EAHhC,qBAAqB,CAAC,CAAC,CAGS,GAF9B,WAAW,CAMvB;AAIE,OAAQ,KAAA,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAChD;AAHH;;;;GAIG;AACH,qBAAa,KAAM,SAAQ,YAAY,AAFvB,YAAA,WAAW;IAYlB,OAAO;IATd;;;;;;OAMG;IACH,YAAY,QAAQ,AALjB,CAEA,EAFQ,OAAO,qBAAqB,EAAE,SAKrB,EAAE,OAAO,AAH1B,CACA,EADQ,WAGkB,EAAE,SAAS,AAFrC,CACF,EADU,MAEuC,EAKjD;IAED,QAAQ,SAEP;CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function stringify(x: any): string;
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export function
|
|
7
|
-
export
|
|
8
|
-
export
|
|
1
|
+
export declare function stringify(x: any): string;
|
|
2
|
+
export declare const formatLocaleAuto: (locale?: string) => any;
|
|
3
|
+
export declare const formatLocaleNumber: (locale?: string) => any;
|
|
4
|
+
export declare const formatAuto: any;
|
|
5
|
+
export declare const formatNumber: any;
|
|
6
|
+
export declare function formatTrim(value: any): any;
|
|
7
|
+
export declare function formatDate(date: any): string;
|
|
8
|
+
export declare function localize(f: any): (locale?: string) => any;
|
|
9
9
|
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/util/format.js"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/util/format.js"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,CAAC,KAAA,UAE1B;AAED,eAAO,MAAM,gBAAgB,0BAM3B,CAAC;AAEH,eAAO,MAAM,kBAAkB,0BAE7B,CAAC;AAEH,eAAO,MAAM,UAAU,KAAqB,CAAC;AAE7C,eAAO,MAAM,YAAY,KAAuB,CAAC;AAEjD,wBAAgB,UAAU,CAAC,KAAK,KAAA,OAY/B;AAED,wBAAgB,UAAU,CAAC,IAAI,KAAA,UAE9B;AAGD,wBAAgB,QAAQ,CAAC,CAAC,KAAA,4BAMzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uwdata/mosaic-inputs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Mosaic input components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"inputs",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"url": "https://github.com/uwdata/mosaic.git"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@uwdata/mosaic-core": "^0.
|
|
27
|
-
"@uwdata/mosaic-sql": "^0.
|
|
26
|
+
"@uwdata/mosaic-core": "^0.31.0",
|
|
27
|
+
"@uwdata/mosaic-sql": "^0.31.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rimraf dist && mkdir dist",
|