juxscript 1.1.237 → 1.1.238
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/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js +3 -3
- package/lib/data/DataPipeline.d.ts +60 -112
- package/lib/data/DataPipeline.d.ts.map +1 -1
- package/lib/data/DataPipeline.js +170 -141
- package/lib/data/DataPipeline.ts +211 -154
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { checkbox } from './lib/components/checkbox.js';
|
|
|
8
8
|
import { code } from './lib/components/code.js';
|
|
9
9
|
import { container } from './lib/components/container.js';
|
|
10
10
|
import { data } from './lib/components/data.js';
|
|
11
|
-
import {
|
|
11
|
+
import { gather } from './lib/data/DataPipeline.js';
|
|
12
12
|
import { datepicker } from './lib/components/datepicker.js';
|
|
13
13
|
import { dialog } from './lib/components/dialog.js';
|
|
14
14
|
import { divider } from './lib/components/divider.js';
|
|
@@ -58,8 +58,8 @@ export { DataFrameSource, dataFrameSource } from './lib/storage/DataFrameSource.
|
|
|
58
58
|
export type { SourceOptions, APIOptions, StreamOptions, MultiSheetResult } from './lib/storage/DataFrameSource.js';
|
|
59
59
|
export { indexedDBDriver } from './lib/storage/IndexedDBDriver.js';
|
|
60
60
|
export { fileStorage } from './lib/storage/FileStorage.js';
|
|
61
|
-
export {
|
|
62
|
-
export type { PipelineOptions, FetchOptions, IntoOptions } from './lib/data/DataPipeline.js';
|
|
61
|
+
export { gather, DataPipeline } from './lib/data/DataPipeline.js';
|
|
62
|
+
export type { PipelineOptions, FetchOptions, GatherOptions, IntoOptions } from './lib/data/DataPipeline.js';
|
|
63
63
|
export { dataframe } from './lib/components/dataframe.js';
|
|
64
64
|
import { VStack, vstack } from './lib/components/stack/VStack.js';
|
|
65
65
|
import { HStack, hstack } from './lib/components/stack/HStack.js';
|
|
@@ -89,6 +89,7 @@ export declare const jux: {
|
|
|
89
89
|
dropdownMenu: typeof dropdownMenu;
|
|
90
90
|
element: typeof element;
|
|
91
91
|
fileupload: typeof fileupload;
|
|
92
|
+
gather: typeof gather;
|
|
92
93
|
grid: typeof grid;
|
|
93
94
|
heading: typeof heading;
|
|
94
95
|
hero: typeof hero;
|
|
@@ -106,7 +107,6 @@ export declare const jux: {
|
|
|
106
107
|
nav: typeof nav;
|
|
107
108
|
paragraph: typeof paragraph;
|
|
108
109
|
pen: typeof pen;
|
|
109
|
-
pipeline: typeof pipeline;
|
|
110
110
|
progress: typeof progress;
|
|
111
111
|
radio: typeof radio;
|
|
112
112
|
req: import("./lib/components/req.js").Req;
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,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GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Df,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC"}
|
package/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { checkbox } from './lib/components/checkbox.js';
|
|
|
8
8
|
import { code } from './lib/components/code.js';
|
|
9
9
|
import { container } from './lib/components/container.js';
|
|
10
10
|
import { data } from './lib/components/data.js';
|
|
11
|
-
import {
|
|
11
|
+
import { gather } from './lib/data/DataPipeline.js';
|
|
12
12
|
import { datepicker } from './lib/components/datepicker.js';
|
|
13
13
|
import { dialog } from './lib/components/dialog.js';
|
|
14
14
|
import { divider } from './lib/components/divider.js';
|
|
@@ -60,7 +60,7 @@ export { DataFrameSource, dataFrameSource } from './lib/storage/DataFrameSource.
|
|
|
60
60
|
export { indexedDBDriver } from './lib/storage/IndexedDBDriver.js';
|
|
61
61
|
export { fileStorage } from './lib/storage/FileStorage.js';
|
|
62
62
|
// Data Pipeline
|
|
63
|
-
export {
|
|
63
|
+
export { gather, DataPipeline } from './lib/data/DataPipeline.js';
|
|
64
64
|
// DataFrame UI Component (separate from data layer)
|
|
65
65
|
export { dataframe } from './lib/components/dataframe.js';
|
|
66
66
|
// Import Stack components (already added earlier)
|
|
@@ -94,6 +94,7 @@ export const jux = {
|
|
|
94
94
|
dropdownMenu,
|
|
95
95
|
element,
|
|
96
96
|
fileupload,
|
|
97
|
+
gather,
|
|
97
98
|
grid,
|
|
98
99
|
heading,
|
|
99
100
|
hero,
|
|
@@ -111,7 +112,6 @@ export const jux = {
|
|
|
111
112
|
nav,
|
|
112
113
|
paragraph,
|
|
113
114
|
pen,
|
|
114
|
-
pipeline,
|
|
115
115
|
progress,
|
|
116
116
|
radio,
|
|
117
117
|
req,
|
|
@@ -9,157 +9,105 @@ export interface FetchOptions {
|
|
|
9
9
|
headerRow?: number;
|
|
10
10
|
mimeType?: 'csv' | 'tsv' | 'json' | 'auto';
|
|
11
11
|
}
|
|
12
|
+
export interface GatherOptions extends FetchOptions {
|
|
13
|
+
/** Authorization bearer token */
|
|
14
|
+
bearer?: string;
|
|
15
|
+
/** API key (sent as x-api-key header) */
|
|
16
|
+
apiKey?: string;
|
|
17
|
+
/** Custom headers for URL fetches */
|
|
18
|
+
headers?: Record<string, string>;
|
|
19
|
+
/** IndexedDB database name override */
|
|
20
|
+
dbName?: string;
|
|
21
|
+
/** IndexedDB store name override */
|
|
22
|
+
storeName?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IntoOptions {
|
|
25
|
+
/** Override which columns to use (for Table targets) */
|
|
26
|
+
columns?: string[];
|
|
27
|
+
/** Column name → display label mapping */
|
|
28
|
+
columnLabels?: Record<string, string>;
|
|
29
|
+
/** Key for option labels (Dropdown/Select/List targets) */
|
|
30
|
+
labelKey?: string;
|
|
31
|
+
/** Key for option values (Dropdown/Select targets) */
|
|
32
|
+
valueKey?: string;
|
|
33
|
+
}
|
|
12
34
|
/**
|
|
13
35
|
* DataPipeline — Headless, promise-based data loading and transformation.
|
|
14
36
|
*
|
|
15
37
|
* Usage:
|
|
16
|
-
* const df = await
|
|
17
|
-
* const df = await
|
|
18
|
-
* const df = await
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* await data.fromUrl(url)
|
|
22
|
-
* .transform(df => df.select('name', 'age').filter(r => r.age > 30))
|
|
23
|
-
* .into(myTable);
|
|
24
|
-
*
|
|
25
|
-
* await data.fromStorage('encounters')
|
|
26
|
-
* .transform(df => df.distinct('provider'))
|
|
27
|
-
* .into(myDropdown, { labelKey: 'provider', valueKey: 'provider' });
|
|
38
|
+
* const df = await jux.gather('raw/myfile.xlsx').result();
|
|
39
|
+
* const df = await jux.gather('https://api.com/data', { bearer: 'xxx' }).result();
|
|
40
|
+
* const df = await jux.gather(myUpload).select('name').result();
|
|
41
|
+
* const df = await jux.gather([{a:1}, {b:2}]).result();
|
|
42
|
+
* await jux.gather(key).filter(r => r.active).intoTable(myTable);
|
|
28
43
|
*/
|
|
29
44
|
export declare class DataPipeline {
|
|
30
45
|
private _driver;
|
|
31
46
|
private _pending;
|
|
32
47
|
private _transforms;
|
|
48
|
+
private _gatherOptions;
|
|
33
49
|
constructor(options?: PipelineOptions);
|
|
34
50
|
/**
|
|
35
|
-
*
|
|
36
|
-
|
|
51
|
+
* Auto-detect source type and load accordingly.
|
|
52
|
+
*
|
|
53
|
+
* - string starting with http/https → URL fetch
|
|
54
|
+
* - string → IndexedDB storage key
|
|
55
|
+
* - File → parse file
|
|
56
|
+
* - Array → row objects
|
|
57
|
+
* - DataFrame → clone
|
|
58
|
+
* - object with .storageKey → FileUpload cached key
|
|
59
|
+
* - object with string keys + array values → column-oriented data
|
|
60
|
+
*/
|
|
61
|
+
from(source: any, options?: GatherOptions): this;
|
|
37
62
|
fromStorage(key: string): this;
|
|
38
|
-
|
|
39
|
-
* Load from a URL (CSV, TSV, or JSON)
|
|
40
|
-
*/
|
|
41
|
-
fromUrl(url: string, options?: FetchOptions): this;
|
|
42
|
-
/**
|
|
43
|
-
* Load from a File object directly
|
|
44
|
-
*/
|
|
63
|
+
fromUrl(url: string, options?: GatherOptions): this;
|
|
45
64
|
fromFile(file: File, options?: FetchOptions): this;
|
|
46
|
-
/**
|
|
47
|
-
* Load from an array of row objects
|
|
48
|
-
*/
|
|
49
65
|
fromRows(rows: Record<string, any>[], columns?: string[]): this;
|
|
50
|
-
/**
|
|
51
|
-
* Load from column-oriented data
|
|
52
|
-
*/
|
|
53
66
|
fromColumns(columns: Record<string, any[]>): this;
|
|
54
|
-
/**
|
|
55
|
-
* Load from a JSON response (array of objects or column-oriented)
|
|
56
|
-
*/
|
|
57
67
|
fromJson(json: Record<string, any>[] | Record<string, any[]> | string): this;
|
|
58
|
-
/**
|
|
59
|
-
* Load from a FileUpload component's cached storage key.
|
|
60
|
-
* Requires .cache() enabled on the FileUpload and a file already uploaded.
|
|
61
|
-
*
|
|
62
|
-
* Usage:
|
|
63
|
-
* await data().fromUpload(myUpload).select('name').into(myTable);
|
|
64
|
-
*/
|
|
65
68
|
fromUpload(upload: any): this;
|
|
66
|
-
/**
|
|
67
|
-
* Start from an existing DataFrame
|
|
68
|
-
*/
|
|
69
|
-
from(df: DataFrame): this;
|
|
70
|
-
/**
|
|
71
|
-
* Apply an arbitrary transform
|
|
72
|
-
*/
|
|
73
69
|
transform(fn: (df: DataFrame) => DataFrame): this;
|
|
74
|
-
/**
|
|
75
|
-
* Select columns
|
|
76
|
-
*/
|
|
77
70
|
select(...cols: string[]): this;
|
|
78
|
-
/**
|
|
79
|
-
* Filter rows
|
|
80
|
-
*/
|
|
81
71
|
filter(predicate: (row: Record<string, any>, index: number) => boolean): this;
|
|
82
|
-
/**
|
|
83
|
-
* Sort by column
|
|
84
|
-
*/
|
|
85
72
|
sort(column: string, descending?: boolean): this;
|
|
86
|
-
/**
|
|
87
|
-
* Take first N rows
|
|
88
|
-
*/
|
|
89
73
|
head(n?: number): this;
|
|
90
|
-
/**
|
|
91
|
-
* Take last N rows
|
|
92
|
-
*/
|
|
93
74
|
tail(n?: number): this;
|
|
94
|
-
/**
|
|
95
|
-
* Rename columns
|
|
96
|
-
*/
|
|
97
75
|
rename(mapping: Record<string, string>): this;
|
|
98
|
-
/**
|
|
99
|
-
* Add a computed column
|
|
100
|
-
*/
|
|
101
76
|
withColumn(name: string, fn: (row: Record<string, any>, index: number) => any): this;
|
|
102
|
-
/**
|
|
103
|
-
* Drop nulls
|
|
104
|
-
*/
|
|
105
77
|
dropna(columns?: string[]): this;
|
|
106
|
-
/**
|
|
107
|
-
* Drop duplicates
|
|
108
|
-
*/
|
|
109
78
|
dropDuplicates(columns?: string[]): this;
|
|
110
|
-
/**
|
|
111
|
-
* Execute the pipeline and return the DataFrame
|
|
112
|
-
*/
|
|
113
79
|
result(): Promise<DataFrame>;
|
|
114
|
-
/**
|
|
115
|
-
* Execute and return rows as plain objects
|
|
116
|
-
*/
|
|
117
80
|
toRows(): Promise<Record<string, any>[]>;
|
|
118
|
-
/**
|
|
119
|
-
* Execute and return a single column as an array
|
|
120
|
-
*/
|
|
121
81
|
toArray(column: string): Promise<any[]>;
|
|
122
|
-
/**
|
|
123
|
-
* Execute and return distinct values from a column
|
|
124
|
-
*/
|
|
125
82
|
toDistinct(column: string): Promise<any[]>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
* - Any object with a .rows() or .options() or .items() method
|
|
135
|
-
*/
|
|
83
|
+
toOptions(labelKey: string, valueKey?: string): Promise<{
|
|
84
|
+
label: string;
|
|
85
|
+
value: any;
|
|
86
|
+
}[]>;
|
|
87
|
+
toList(column: string): Promise<string[]>;
|
|
88
|
+
intoTable(table: any, columnLabels?: Record<string, string>): Promise<DataFrame>;
|
|
89
|
+
intoDropdown(dropdown: any, labelKey: string, valueKey?: string): Promise<DataFrame>;
|
|
90
|
+
intoList(list: any, column: string): Promise<DataFrame>;
|
|
136
91
|
into(target: any, options?: IntoOptions): Promise<DataFrame>;
|
|
137
|
-
/**
|
|
138
|
-
* Execute and persist to IndexedDB
|
|
139
|
-
*/
|
|
140
92
|
store(key: string, metadata?: Record<string, any>): Promise<DataFrame>;
|
|
93
|
+
private _loadFromStorage;
|
|
141
94
|
private _loadFromUrl;
|
|
142
95
|
private _loadFromFile;
|
|
143
96
|
private _detectMimeType;
|
|
144
97
|
}
|
|
145
|
-
export interface IntoOptions {
|
|
146
|
-
/** Override which columns to use (for Table targets) */
|
|
147
|
-
columns?: string[];
|
|
148
|
-
/** Column name → display label mapping */
|
|
149
|
-
columnLabels?: Record<string, string>;
|
|
150
|
-
/** Key for option labels (Dropdown/Select/List targets) */
|
|
151
|
-
labelKey?: string;
|
|
152
|
-
/** Key for option values (Dropdown/Select targets) */
|
|
153
|
-
valueKey?: string;
|
|
154
|
-
}
|
|
155
98
|
/**
|
|
156
|
-
* Factory function —
|
|
99
|
+
* Factory function — primary entry point via jux.gather()
|
|
157
100
|
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
101
|
+
* Smart single-arg:
|
|
102
|
+
* jux.gather('raw/myfile.xlsx') // storage key
|
|
103
|
+
* jux.gather('https://api.com/data', { bearer: 'xxx' }) // URL with auth
|
|
104
|
+
* jux.gather(myUpload) // FileUpload
|
|
105
|
+
* jux.gather([{a:1}, {b:2}]) // inline rows
|
|
106
|
+
* jux.gather(existingDf) // clone DataFrame
|
|
160
107
|
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
108
|
+
* Explicit source:
|
|
109
|
+
* jux.gather().fromStorage(key)
|
|
110
|
+
* jux.gather().fromUrl(url, opts)
|
|
163
111
|
*/
|
|
164
|
-
export declare function
|
|
112
|
+
export declare function gather(source?: any, options?: GatherOptions): DataPipeline;
|
|
165
113
|
//# sourceMappingURL=DataPipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataPipeline.d.ts","sourceRoot":"","sources":["DataPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;CAC9C;AAED
|
|
1
|
+
{"version":3,"file":"DataPipe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