@gramlot/gramlot 0.3.33 → 0.3.35
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/collections/typst.js +3 -0
- package/dist/components/audio/__init__.py +1 -1
- package/dist/components/audio/assets/collection.js +2 -2
- package/dist/components/audio/assets/index.js +1 -1
- package/dist/components/charts/__init__.py +2 -2
- package/dist/components/charts/assets/collection.js +10 -44
- package/dist/components/charts/assets/index.js +1 -1
- package/dist/components/charts/assets/modules/chunk-USZCUBTC.js +1 -0
- package/dist/components/charts/assets/modules/echarts-gl.min-N6L67H2M.js +4282 -0
- package/dist/components/charts/assets/modules/echarts.esm.min-VHLRZDVQ.js +61 -0
- package/dist/components/charts/assets/modules/{plotly.min-4LB7HE7P.js → plotly.min-SSDU2DOH.js} +1 -1
- package/dist/components/charts/assets/modules/{uPlot.esm-5JJNHHRF.js → uPlot.esm-Q2UYUQHJ.js} +1 -1
- package/dist/components/charts/assets/modules/{uPlot.min-N3E3FA74.js → uPlot.min-XXHNQFXH.js} +1 -1
- package/dist/components/charts/assets/modules/{vega.module-2QCOVQ3A.js → vega.module-Y5CWNSZO.js} +1 -1
- package/dist/components/chat/__init__.py +1 -1
- package/dist/components/chat/assets/collection.js +3 -3
- package/dist/components/chat/assets/index.js +1 -1
- package/dist/components/drawing/__init__.py +1 -1
- package/dist/components/drawing/assets/collection.js +3 -24
- package/dist/components/drawing/assets/index.js +1 -1
- package/dist/components/editors/__init__.py +2 -2
- package/dist/components/editors/assets/collection.js +2 -47
- package/dist/components/editors/assets/index.js +1 -1
- package/dist/components/editors/assets/modules/{jodit-engine-MTSA4GZ3.js → jodit-engine-CXRSFV47.js} +6 -6
- package/dist/components/grid/__init__.py +2 -2
- package/dist/components/grid/assets/collection.js +6 -28
- package/dist/components/grid/assets/index.js +1 -1
- package/dist/components/grid/assets/modules/{browser-LVJHKBBV.js → browser-Y2BRNI3P.js} +1 -1
- package/dist/components/grid/assets/modules/chunk-BLMUM44K.js +1 -0
- package/dist/components/grouplets/__init__.py +1 -1
- package/dist/components/grouplets/assets/collection.js +3 -3
- package/dist/components/grouplets/assets/index.js +1 -1
- package/dist/components/inputs/__init__.py +1 -1
- package/dist/components/inputs/assets/collection.js +8 -65
- package/dist/components/inputs/assets/index.js +1 -1
- package/dist/components/layout/__init__.py +1 -1
- package/dist/components/layout/assets/collection.js +9 -30
- package/dist/components/layout/assets/index.js +1 -1
- package/dist/components/selection_trial/__init__.py +1 -1
- package/dist/components/selection_trial/assets/collection.js +3 -3
- package/dist/components/selection_trial/assets/index.js +1 -1
- package/dist/components/tree/__init__.py +1 -1
- package/dist/components/tree/assets/collection.js +6 -27
- package/dist/components/tree/assets/index.js +1 -1
- package/dist/components/typst/__init__.py +1 -1
- package/dist/components/typst/assets/collection.js +3 -3
- package/dist/components/typst/assets/index.js +1 -1
- package/dist/components/uploads/__init__.py +1 -1
- package/dist/components/uploads/assets/collection.js +3 -30
- package/dist/components/uploads/assets/index.js +1 -1
- package/dist/components/vizabi/__init__.py +1 -1
- package/dist/components/vizabi/assets/collection.js +3 -21
- package/dist/components/vizabi/assets/index.js +1 -1
- package/dist/declared-collections.js +2 -0
- package/dist/gramlot.js +1057 -6999
- package/dist/gramlot.min.js +48 -52
- package/dist/libraries.json +126 -0
- package/dist/runtime-notices.json +0 -8
- package/dist/standard-collections.js +1 -1
- package/package.json +3 -2
- package/src/components/chart-engines/echarts.js +10 -4
- package/src/components/chart-engines/plotly.js +3 -2
- package/src/components/chart-engines/uplot.js +5 -3
- package/src/components/chart-engines/vega.js +2 -1
- package/src/components/chart-gauge.js +7 -3
- package/src/components/chart-renderer.js +1 -1
- package/src/components/code-mirror.js +2 -1
- package/src/components/grid-tools.js +2 -1
- package/src/components/html-editor.js +2 -1
- package/src/components/markdown-editor.js +2 -1
- package/src/components/typst-preview.js +2 -1
- package/src/index.d.ts +16 -0
- package/src/index.js +5 -0
- package/src/libraries.js +83 -0
- package/src/server/assets.d.ts +3 -2
- package/src/server/assets.js +6 -3
- package/src/server/gramlot-server.d.ts +8 -0
- package/src/server/gramlot-server.js +45 -4
- package/src/server/index.d.ts +1 -1
- package/src/server/index.js +1 -1
- package/src/shared-modules.js +76 -0
- package/dist/components/charts/assets/modules/chunk-2CCTLZE7.js +0 -76
- package/dist/components/charts/assets/modules/chunk-RMRBEYTI.js +0 -1
- package/dist/components/charts/assets/modules/echarts-gl-CXVTZA6G.js +0 -4409
- package/dist/components/grid/assets/modules/chunk-RMRBEYTI.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gramlot/gramlot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.35",
|
|
4
4
|
"description": "Declarative HTML/SVG interfaces with live data binding, authored in JavaScript or Python.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@myriaddreamin/typst.ts": "0.7.0",
|
|
42
42
|
"codemirror-lang-typst": "0.6.0",
|
|
43
43
|
"dompurify": "3.4.17",
|
|
44
|
-
"echarts": "
|
|
44
|
+
"echarts": "6.1.0",
|
|
45
45
|
"echarts-gl": "2.1.0",
|
|
46
46
|
"jodit": "4.18.10",
|
|
47
47
|
"markdown-it": "14.3.3",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"./components/tree": "./src/components/tree.js",
|
|
83
83
|
"./components/editors": "./src/components/editors.js",
|
|
84
84
|
"./components/typst": "./src/components/typst.js",
|
|
85
|
+
"./collections/typst": "./dist/collections/typst.js",
|
|
85
86
|
"./components/grouplets": "./src/components/grouplets.js",
|
|
86
87
|
"./components/uploads": "./src/components/uploads.js",
|
|
87
88
|
"./device-frames": "./src/device-frames.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as echarts from 'echarts/dist/echarts.js';
|
|
2
1
|
import {randomId} from '../../random-id.js';
|
|
2
|
+
import {loadLibrary} from '../../libraries.js';
|
|
3
3
|
import {chartType} from '../chart-types/index.js';
|
|
4
4
|
import {cartesianOptions} from './echarts-options.js';
|
|
5
5
|
import {chartBar3DOptions} from '../chart-bar3d-options.js';
|
|
@@ -17,11 +17,17 @@ import {chartBoxplotOptions} from '../chart-boxplot-options.js';
|
|
|
17
17
|
import {chartTreemapOptions} from '../chart-treemap-options.js';
|
|
18
18
|
import {chartSunburstOptions} from '../chart-sunburst-options.js';
|
|
19
19
|
|
|
20
|
-
let
|
|
20
|
+
let echarts;
|
|
21
21
|
export class EChartsAdapter {
|
|
22
22
|
static label='ECharts';
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/** ECharts, and ECharts GL for a 3D type, on first use. The UMD build of ECharts GL registers itself
|
|
24
|
+
* into the ECharts it reads from the window property `echarts`. */
|
|
25
|
+
static async load(type,document) {
|
|
26
|
+
echarts=await loadLibrary('echarts',document,()=>import('echarts/dist/echarts.esm.min.mjs'));
|
|
27
|
+
if(chartType(type).threeD) {
|
|
28
|
+
document.defaultView.echarts=echarts;
|
|
29
|
+
await loadLibrary('echartsGl',document,()=>import('echarts-gl/dist/echarts-gl.min.js'));
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
#chart; #type; #element; #options; #renderer;
|
|
27
33
|
#mapName=`chart_${randomId()}`; #mapData;
|
|
@@ -2,12 +2,13 @@ import {chartPalette} from '../chart-domains.js';
|
|
|
2
2
|
import {chartData} from '../chart-data.js';
|
|
3
3
|
import {plotlySpatial} from './plotly-spatial.js';
|
|
4
4
|
import {plotlyMap} from './plotly-map.js';
|
|
5
|
+
import {loadLibrary} from '../../libraries.js';
|
|
5
6
|
|
|
6
7
|
let loading,Plotly;
|
|
7
8
|
export class PlotlyAdapter {
|
|
8
9
|
static label='Plotly';
|
|
9
|
-
static async load() {
|
|
10
|
-
Plotly=await (loading ??= import('plotly.js-dist-min').then(module=>module.default));
|
|
10
|
+
static async load(type,document) {
|
|
11
|
+
Plotly=await (loading ??= loadLibrary('plotly',document,()=>import('plotly.js-dist-min')).then(module=>module.default));
|
|
11
12
|
}
|
|
12
13
|
#element; #options; #type; #listening=false; #style; #disposed=false; #pending=Promise.resolve(); #drawn=false;
|
|
13
14
|
constructor(element,options={}) { this.#element=element;this.#options=options; }
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {chartData} from '../chart-data.js';
|
|
2
|
+
import {loadLibrary} from '../../libraries.js';
|
|
2
3
|
|
|
3
4
|
let loading,UPlot,styleText;
|
|
4
5
|
export class UPlotAdapter {
|
|
5
6
|
static label='uPlot';
|
|
6
|
-
static async load() {
|
|
7
|
-
await (loading ??= Promise.all([
|
|
8
|
-
|
|
7
|
+
static async load(type,document) {
|
|
8
|
+
await (loading ??= Promise.all([loadLibrary('uplot',document,()=>import('uplot/dist/uPlot.esm.js')),
|
|
9
|
+
loadLibrary('uplotStyle',document,()=>import('uplot/dist/uPlot.min.css'))])
|
|
10
|
+
.then(([engine,style])=>{UPlot=engine.default;styleText=style;}));
|
|
9
11
|
}
|
|
10
12
|
#element; #plot; #style; #signature; #disposed=false;
|
|
11
13
|
constructor(element) { this.#element=element; }
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {chartPalette} from '../chart-domains.js';
|
|
2
2
|
import {chartData} from '../chart-data.js';
|
|
3
|
+
import {loadLibrary} from '../../libraries.js';
|
|
3
4
|
|
|
4
5
|
let loading,Vega;
|
|
5
6
|
export class VegaAdapter {
|
|
6
7
|
static label='Vega';
|
|
7
|
-
static async load() { Vega=await (loading ??= import('vega')); }
|
|
8
|
+
static async load(type,document) { Vega=await (loading ??= loadLibrary('vega',document,()=>import('vega'))); }
|
|
8
9
|
#element; #view; #signature; #disposed=false; #pending=Promise.resolve(); #width; #height;
|
|
9
10
|
constructor(element) { this.#element=element; }
|
|
10
11
|
validate(context) { return this[`render_${context.type.id}`](context); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {loadLibrary} from '../libraries.js';
|
|
2
2
|
import {defineComponent} from './registry.js';
|
|
3
3
|
import {Container} from './container.js';
|
|
4
4
|
import {gaugeOption, gaugeValue, parseThresholds} from './chart-gauge-options.js';
|
|
@@ -52,13 +52,17 @@ export const Gauge = defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
connectedCallback() {
|
|
54
54
|
this.#active = true;
|
|
55
|
-
this.#chart = echarts.init(this.#surface, null, {renderer: 'svg'});
|
|
56
55
|
// The node text is where the renderer writes the resolved node value.
|
|
57
56
|
this.#text.observe(this, {childList: true, subtree: true, characterData: true});
|
|
58
57
|
this.#theme.observe(this.ownerDocument.documentElement, {attributes: true, attributeFilter: ['data-theme', 'class']});
|
|
59
58
|
this.#dark.addEventListener('change', this.#onTheme);
|
|
60
59
|
this.#resize.observe(this.#surface);
|
|
61
|
-
|
|
60
|
+
// ECharts loads on first use; the chart starts when it arrives, if the gauge is still connected.
|
|
61
|
+
this.ready = loadLibrary('echarts', this.ownerDocument, () => import('echarts/dist/echarts.esm.min.mjs')).then(echarts => {
|
|
62
|
+
if (!this.#active || this.#chart) return;
|
|
63
|
+
this.#chart = echarts.init(this.#surface, null, {renderer: 'svg'});
|
|
64
|
+
this.#render();
|
|
65
|
+
});
|
|
62
66
|
}
|
|
63
67
|
#onTheme = () => this.#render();
|
|
64
68
|
#palette() {
|
|
@@ -25,7 +25,7 @@ export function chartContext(view,structure,seriesOptions) {
|
|
|
25
25
|
export class ChartRenderer {
|
|
26
26
|
#element; #view; #options; #adapter; #engine; #host; #revision=0;
|
|
27
27
|
constructor(element,view,options={}) { this.#element=element;this.#view=view;this.#options=options; }
|
|
28
|
-
async prepare(engine,type) { await requireChartCapability(engine,type).load(type); }
|
|
28
|
+
async prepare(engine,type) { await requireChartCapability(engine,type).load(type,this.#element.ownerDocument); }
|
|
29
29
|
invalidate() { this.#revision++; }
|
|
30
30
|
update(structure,seriesOptions) {
|
|
31
31
|
const engine=structure.getItem('engine') ?? 'echarts';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {controlElement} from './bases.js';
|
|
2
|
+
import {loadLibrary} from '../libraries.js';
|
|
2
3
|
import {defineComponent} from './registry.js';
|
|
3
4
|
import {Labelbox} from './labelbox.js';
|
|
4
5
|
import {FieldState} from './field-state.js';
|
|
@@ -32,7 +33,7 @@ function EditorControl(HTMLElement) {
|
|
|
32
33
|
connectedCallback() {
|
|
33
34
|
const generation = ++this.#generation;
|
|
34
35
|
this.control.textContent = 'Loading editor…';
|
|
35
|
-
this.ready = (engineModule ??= import('./code-mirror-engine.js')).then(module => {
|
|
36
|
+
this.ready = (engineModule ??= loadLibrary('codemirror',this.ownerDocument,()=>import('./code-mirror-engine.js'))).then(module => {
|
|
36
37
|
if (generation !== this.#generation || !this.isConnected) return;
|
|
37
38
|
this.control.textContent = '';
|
|
38
39
|
this.editor = module.createEditor(this);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {Bag} from '@gramlot/gramlot';
|
|
2
|
+
import {loadLibrary} from '../libraries.js';
|
|
2
3
|
import {isDecimal} from '@genrojs/tytx';
|
|
3
4
|
import {GridRows} from './grid-rows.js';
|
|
4
5
|
|
|
@@ -126,7 +127,7 @@ export class GridTools {
|
|
|
126
127
|
/** XLSX Blob of the visible rows: captions, then typed cells (numbers, dates, booleans, text). */
|
|
127
128
|
async xlsx() {
|
|
128
129
|
const {columns, rows} = this.#records();
|
|
129
|
-
const writeExcelFile = (await (excelEngine ??= import('write-excel-file/browser'))).default;
|
|
130
|
+
const writeExcelFile = (await (excelEngine ??= loadLibrary('writeExcelFile', this.#host.document, () => import('write-excel-file/browser')))).default;
|
|
130
131
|
const cell = (value, column) => {
|
|
131
132
|
if (value === null) return null;
|
|
132
133
|
if (isDecimal(value)) return Number(value.toString());
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {controlElement} from './bases.js';
|
|
2
|
+
import {loadLibrary} from '../libraries.js';
|
|
2
3
|
import {defineComponent} from './registry.js';
|
|
3
4
|
import {Labelbox} from './labelbox.js';
|
|
4
5
|
import {FieldState} from './field-state.js';
|
|
@@ -26,7 +27,7 @@ function HtmlControl(HTMLElement) {
|
|
|
26
27
|
const generation=++this.#generation;
|
|
27
28
|
this.engine?.destroy();this.engine=null;
|
|
28
29
|
this.control.textContent='Loading HTML editor…';
|
|
29
|
-
this.ready=(engineModule ??= import('./jodit-engine.js')).then(module=>{
|
|
30
|
+
this.ready=(engineModule ??= loadLibrary('jodit',this.ownerDocument,()=>import('./jodit-engine.js'))).then(module=>{
|
|
30
31
|
if (generation!==this.#generation || !this.isConnected) return;
|
|
31
32
|
this.control.textContent='';
|
|
32
33
|
this.engine=module.createHtmlEditor(this);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {controlElement} from './bases.js';
|
|
2
|
+
import {loadLibrary} from '../libraries.js';
|
|
2
3
|
import {defineComponent} from './registry.js';
|
|
3
4
|
import {Labelbox} from './labelbox.js';
|
|
4
5
|
import {FieldState} from './field-state.js';
|
|
@@ -26,7 +27,7 @@ function MarkdownControl(MarkdownElement) {
|
|
|
26
27
|
const generation=++this.#generation;
|
|
27
28
|
this.engine?.destroy();this.engine=null;
|
|
28
29
|
this.control.textContent='Loading Markdown editor…';
|
|
29
|
-
this.ready=(engineModule ??= import('./prose-mirror-engine.js')).then(module=>{
|
|
30
|
+
this.ready=(engineModule ??= loadLibrary('prosemirror',this.ownerDocument,()=>import('./prose-mirror-engine.js'))).then(module=>{
|
|
30
31
|
if (generation!==this.#generation || !this.isConnected) return;
|
|
31
32
|
this.control.textContent='';
|
|
32
33
|
this.engine=module.createMarkdownEditor(this);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {defineComponent} from './registry.js';
|
|
2
|
+
import {loadLibrary} from '../libraries.js';
|
|
2
3
|
import {projectParameters} from './parameters.js';
|
|
3
4
|
|
|
4
5
|
function PreviewElement(HTMLElement){
|
|
@@ -61,7 +62,7 @@ function PreviewElement(HTMLElement){
|
|
|
61
62
|
const revision=this.#revision;
|
|
62
63
|
this.#busy=true;
|
|
63
64
|
try{
|
|
64
|
-
this.#loading??=import('./typst-client.js');
|
|
65
|
+
this.#loading??=loadLibrary('typst',this.ownerDocument,()=>import('./typst-client.js'));
|
|
65
66
|
const module=await this.#loading;
|
|
66
67
|
if(!this.isConnected || revision!==this.#revision)return;
|
|
67
68
|
this.#compiler??=module.acquireCompiler();
|
package/src/index.d.ts
CHANGED
|
@@ -68,3 +68,19 @@ export {VisualEditorLogic, visualEditorScope} from './visual-editor.js';
|
|
|
68
68
|
export {VisualEditor} from './server/visual-editor.js';
|
|
69
69
|
export {SourceImport} from './server/source-import.js';
|
|
70
70
|
export {SourcePicker} from './source-picker.js';
|
|
71
|
+
|
|
72
|
+
/** The libraries and runtime modules shared with prepared collections, keyed by import specifier. */
|
|
73
|
+
export declare const sharedModules: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
|
|
74
|
+
/** One third-party library of the manifest (GC-325 §160). */
|
|
75
|
+
export interface LibraryEntry {
|
|
76
|
+
readonly packages: Readonly<Record<string, string>>;
|
|
77
|
+
readonly local: string;
|
|
78
|
+
readonly url: string | null;
|
|
79
|
+
readonly integrity: string | null;
|
|
80
|
+
readonly format: 'module' | 'style' | 'script';
|
|
81
|
+
readonly global?: string;
|
|
82
|
+
}
|
|
83
|
+
/** The third-party libraries of the standard components, keyed by name. */
|
|
84
|
+
export declare const libraries: Readonly<Record<string, LibraryEntry>>;
|
|
85
|
+
/** The library `name` for a component of `document`: from jsDelivr when the document says `cdn`, else the local copy. */
|
|
86
|
+
export declare function loadLibrary(name: string, document: Document, localImport: () => Promise<unknown>): Promise<unknown>;
|
package/src/index.js
CHANGED
|
@@ -61,3 +61,8 @@ export {VisualEditorLogic, visualEditorScope} from './visual-editor.js';
|
|
|
61
61
|
export {VisualEditor} from './server/visual-editor.js';
|
|
62
62
|
export {SourceImport} from './server/source-import.js';
|
|
63
63
|
export {SourcePicker} from './source-picker.js';
|
|
64
|
+
|
|
65
|
+
// Prepared collections read the shared libraries and runtime modules from this table (GC-325 §155).
|
|
66
|
+
export {sharedModules} from './shared-modules.js';
|
|
67
|
+
// Third-party libraries of components: the manifest and the loader on first use (GC-325 §160).
|
|
68
|
+
export {libraries, loadLibrary} from './libraries.js';
|
package/src/libraries.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The third-party libraries of the standard components, and the function that loads one on first use.
|
|
3
|
+
*
|
|
4
|
+
* `libraries` is the manifest: one entry per library, keyed by its name. An entry holds
|
|
5
|
+
*
|
|
6
|
+
* - `packages`: the npm packages it contains, each with its exact installed version;
|
|
7
|
+
* - `local`: the import specifier of the local copy, a file of the package (`echarts/dist/echarts.esm.min.mjs`)
|
|
8
|
+
* or a Gramlot engine module that bundles the packages (`./components/code-mirror-engine.js`, relative to
|
|
9
|
+
* `js/src`); the collection generator emits it as a deferred module of the collection;
|
|
10
|
+
* - `url`: the same file on jsDelivr at the exact version, or `null` when the library has no ESM build that a
|
|
11
|
+
* browser can import alone (UMD builds, builds split across packages, the Typst WebAssembly);
|
|
12
|
+
* - `integrity`: the SRI hash (sha384) of that file, `null` without `url`;
|
|
13
|
+
* - `format`: `module` (the import gives the library), `style` (CSS text) or `script` (a UMD build evaluated as
|
|
14
|
+
* a browser script: it reads its dependencies from globals of the window and writes the library to the
|
|
15
|
+
* window property `global`).
|
|
16
|
+
*
|
|
17
|
+
* The page document says where the libraries come from: the bootstrap HTML of a server carries
|
|
18
|
+
* `data-gramlot-library-source="cdn"` or `"local"` on its root element. A document without the marker (the
|
|
19
|
+
* serverless and file exports) uses the local copies.
|
|
20
|
+
*
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
const jsdelivr = (name, version, file) => `https://cdn.jsdelivr.net/npm/${name}@${version}/${file}`;
|
|
25
|
+
|
|
26
|
+
export const libraries = Object.freeze({
|
|
27
|
+
echarts: Object.freeze({packages: {echarts: '6.1.0'}, local: 'echarts/dist/echarts.esm.min.mjs',
|
|
28
|
+
url: jsdelivr('echarts', '6.1.0', 'dist/echarts.esm.min.mjs'),
|
|
29
|
+
integrity: 'sha384-2svH5QplTeBKhRXWxXOJE2P6pRpgnqVq8l8U1dYXUBXvc2zJ/FMMardtnPnnCXnt', format: 'module'}),
|
|
30
|
+
echartsGl: Object.freeze({packages: {'echarts-gl': '2.1.0'}, local: 'echarts-gl/dist/echarts-gl.min.js',
|
|
31
|
+
url: null, integrity: null, format: 'script', global: 'echarts-gl'}),
|
|
32
|
+
uplot: Object.freeze({packages: {uplot: '1.6.32'}, local: 'uplot/dist/uPlot.esm.js',
|
|
33
|
+
url: jsdelivr('uplot', '1.6.32', 'dist/uPlot.esm.js'),
|
|
34
|
+
integrity: 'sha384-iUdBlEO5qc07+gOz+3rq/Besyud+KVIxM+xJEuUBObxLG3C/Dlkz8OYuPUcPrCGP', format: 'module'}),
|
|
35
|
+
uplotStyle: Object.freeze({packages: {uplot: '1.6.32'}, local: 'uplot/dist/uPlot.min.css',
|
|
36
|
+
url: jsdelivr('uplot', '1.6.32', 'dist/uPlot.min.css'),
|
|
37
|
+
integrity: 'sha384-IfV0B7MIOYuO95kO9G5ySKPz/85zqFNOAs8iy4tkK5zd9izhJAB8b7lHrwYqqmYE', format: 'style'}),
|
|
38
|
+
plotly: Object.freeze({packages: {'plotly.js-dist-min': '4.2.0'}, local: 'plotly.js-dist-min',
|
|
39
|
+
url: null, integrity: null, format: 'module'}),
|
|
40
|
+
vega: Object.freeze({packages: {vega: '6.4.0'}, local: 'vega', url: null, integrity: null, format: 'module'}),
|
|
41
|
+
writeExcelFile: Object.freeze({packages: {'write-excel-file': '4.1.1'}, local: 'write-excel-file/browser',
|
|
42
|
+
url: null, integrity: null, format: 'module'}),
|
|
43
|
+
jodit: Object.freeze({packages: {jodit: '4.18.10'}, local: './components/jodit-engine.js',
|
|
44
|
+
url: null, integrity: null, format: 'module'}),
|
|
45
|
+
codemirror: Object.freeze({packages: {
|
|
46
|
+
'@codemirror/autocomplete': '6.20.4', '@codemirror/commands': '6.11.1', '@codemirror/lang-css': '6.3.1',
|
|
47
|
+
'@codemirror/lang-html': '6.4.12', '@codemirror/lang-javascript': '6.2.5', '@codemirror/lang-json': '6.0.2',
|
|
48
|
+
'@codemirror/lang-markdown': '6.5.2', '@codemirror/lang-python': '6.2.1', '@codemirror/lang-sql': '6.10.0',
|
|
49
|
+
'@codemirror/lang-xml': '6.1.0', '@codemirror/language': '6.13.1', '@codemirror/lint': '6.9.7',
|
|
50
|
+
'@codemirror/search': '6.7.2', '@codemirror/state': '6.7.6', '@codemirror/view': '6.43.15',
|
|
51
|
+
'@lezer/highlight': '1.2.5', 'codemirror-lang-typst': '0.6.0'},
|
|
52
|
+
local: './components/code-mirror-engine.js', url: null, integrity: null, format: 'module'}),
|
|
53
|
+
prosemirror: Object.freeze({packages: {
|
|
54
|
+
'prosemirror-commands': '1.6.2', 'prosemirror-history': '1.4.1', 'prosemirror-keymap': '1.2.2',
|
|
55
|
+
'prosemirror-markdown': '1.13.1', 'prosemirror-model': '1.25.12', 'prosemirror-state': '1.4.3',
|
|
56
|
+
'prosemirror-view': '1.42.6'},
|
|
57
|
+
local: './components/prose-mirror-engine.js', url: null, integrity: null, format: 'module'}),
|
|
58
|
+
typst: Object.freeze({packages: {'@myriaddreamin/typst.ts': '0.7.0', '@myriaddreamin/typst-ts-web-compiler': '0.7.0',
|
|
59
|
+
'@myriaddreamin/typst-ts-renderer': '0.7.0'},
|
|
60
|
+
local: './components/typst-client.js', url: null, integrity: null, format: 'module'}),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The library `name` of the manifest, for a component of `document`. `localImport` is the dynamic import of the
|
|
65
|
+
* local copy written in the component (`() => import('echarts/dist/echarts.esm.min.mjs')`), so that the
|
|
66
|
+
* collection generator emits the copy as a deferred module. With `data-gramlot-library-source="cdn"` on the
|
|
67
|
+
* document and a `url` in the entry the library comes from jsDelivr: the import map of the bootstrap carries
|
|
68
|
+
* its integrity, a style is fetched with it. Resolves with the module namespace (`module`), the CSS text
|
|
69
|
+
* (`style`) or the window property `global` (`script`).
|
|
70
|
+
*/
|
|
71
|
+
export async function loadLibrary(name, document, localImport) {
|
|
72
|
+
if (!Object.hasOwn(libraries, name)) throw new Error(`Unknown third-party library: ${name}`);
|
|
73
|
+
const library = libraries[name];
|
|
74
|
+
const cdn = library.url !== null && document.documentElement.getAttribute('data-gramlot-library-source') === 'cdn';
|
|
75
|
+
if (library.format === 'style') {
|
|
76
|
+
if (!cdn) return (await localImport()).default;
|
|
77
|
+
const response = await document.defaultView.fetch(library.url, {integrity: library.integrity});
|
|
78
|
+
if (!response.ok) throw new Error(`${name}: ${library.url} answered ${response.status}`);
|
|
79
|
+
return response.text();
|
|
80
|
+
}
|
|
81
|
+
const module = cdn ? await import(library.url) : await localImport();
|
|
82
|
+
return library.format === 'script' ? document.defaultView[library.global] : module;
|
|
83
|
+
}
|
package/src/server/assets.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export function gramlotDev(): 'YES' | 'DEBUG' | null;
|
|
|
11
11
|
* when `GRAMLOT_DEV=DEBUG`, `gramlot.min.js` otherwise. Another name throws a `TypeError`. */
|
|
12
12
|
export function runtimeAsset(name?: 'gramlot.js' | 'gramlot.min.js' | 'gramlot-markdown.js' | 'runtime-notices.json' | null): URL;
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
|
|
14
|
+
/** The entry points of every collection the core packages, standard and declared (`typst`), for host artifact
|
|
15
|
+
* verification. */
|
|
16
|
+
export function collectionAssets(): Array<{url: string; file: URL}>;
|
package/src/server/assets.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* @ts-self-types="./assets.d.ts" */
|
|
2
2
|
import {standardCollections} from '../../dist/standard-collections.js';
|
|
3
|
+
import {declaredCollections} from '../../dist/declared-collections.js';
|
|
3
4
|
/**
|
|
4
5
|
* Development mode and the runtime file to serve. `gramlotDev` imports nothing from Node.js, so the
|
|
5
6
|
* neutral `GramlotServer` can read it in a serverless Worker, where it is null without `process`.
|
|
@@ -30,9 +31,11 @@ export function runtimeAsset(name = null) {
|
|
|
30
31
|
return new URL(`../../dist/${name}`, import.meta.url);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
/** The entry points of every collection the core packages: the standard set, which every page receives, and the
|
|
35
|
+
* collections a page declares in `Page.gramlots` (`typst`). A host serves the collections of its page graph from
|
|
36
|
+
* them, as Python reads a declared collection from its package; hosts verify the complete artifact inventories. */
|
|
37
|
+
export function collectionAssets() {
|
|
38
|
+
return [...standardCollections, ...declaredCollections].map(collection => ({
|
|
36
39
|
url: collection.module,
|
|
37
40
|
file: new URL(`../../dist/components/${collection.name}/assets/index.js`, import.meta.url),
|
|
38
41
|
}));
|
|
@@ -78,6 +78,8 @@ export interface GramlotServerOptions {
|
|
|
78
78
|
uploadsEnabled?: boolean;
|
|
79
79
|
/** The base theme of every page, a folder of the core themes, or false for none; default `gramlot-base`. */
|
|
80
80
|
cssTheme?: string | false;
|
|
81
|
+
/** Where the pages take the third-party libraries of the components: jsDelivr or the local copies; default `cdn`. */
|
|
82
|
+
librarySource?: 'cdn' | 'local';
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
/** The result of `registerPage`. */
|
|
@@ -153,6 +155,12 @@ export class GramlotServer {
|
|
|
153
155
|
evaluateAuth(rule: string | null, options?: {owner?: unknown; identity?: unknown}): AuthOutcome;
|
|
154
156
|
/** Drop the expired pages. */
|
|
155
157
|
prune(): void;
|
|
158
|
+
/** Where the pages take the third-party libraries of the components. */
|
|
159
|
+
librarySource: 'cdn' | 'local';
|
|
160
|
+
/** The origins the pages load third-party libraries from: the CDN origin with `cdn`, else none. */
|
|
161
|
+
get libraryOrigins(): string[];
|
|
162
|
+
/** The page policy: `{nonce}` replaced and the library origins added to the directives of scripts and connections. */
|
|
163
|
+
contentSecurityPolicy(policy: string, nonce: string): string;
|
|
156
164
|
/** The CSS URL of the theme of a page class, in an array, or an empty array. */
|
|
157
165
|
themeCss(PageClass: typeof Page): string[];
|
|
158
166
|
/** The file of a `/themes/<path>` URL path whose real path is a file of the core themes, or null. Node.js and Bun only. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* @ts-self-types="./gramlot-server.d.ts" */
|
|
2
2
|
import {standardCollections} from '../../dist/standard-collections.js';
|
|
3
|
+
import {declaredCollections} from '../../dist/declared-collections.js';
|
|
3
4
|
/**
|
|
4
5
|
* The neutral server: registers pages and builds their Sources, with no HTTP engine.
|
|
5
6
|
*
|
|
@@ -14,6 +15,7 @@ import {gramlotDev} from './assets.js';
|
|
|
14
15
|
import {ENDPOINT_METHOD, Page, SOURCE_METHOD, UPLOAD_METHOD, resolveDeclared} from './page.js';
|
|
15
16
|
import {UploadRegistry, UploadTarget} from './upload.js';
|
|
16
17
|
import {InvalidResourceName, SEGMENT, loadOrder} from './resources.js';
|
|
18
|
+
import {libraries} from '../libraries.js';
|
|
17
19
|
|
|
18
20
|
export class PageExpired extends Error { name = 'PageExpired'; }
|
|
19
21
|
export class PageNotFound extends Error { name = 'PageNotFound'; }
|
|
@@ -105,13 +107,21 @@ const prefixed = (prefix, url) => url.startsWith('/') && !url.startsWith('//') ?
|
|
|
105
107
|
*
|
|
106
108
|
* A page expires `pageTtl` seconds after its last use: opening it and every call that names it for its
|
|
107
109
|
* owner move the expiry to now plus `pageTtl` (GC-230 §010).
|
|
110
|
+
*
|
|
111
|
+
* `librarySource` says where the pages take the third-party libraries of the components: `'cdn'` (jsDelivr,
|
|
112
|
+
* at the exact version of the manifest) or `'local'` (the copies served with the collections). With `'cdn'`
|
|
113
|
+
* the import map of the bootstrap carries the integrity of each CDN module and contentSecurityPolicy adds the
|
|
114
|
+
* CDN origin to the policy (GC-325 §160).
|
|
108
115
|
*/
|
|
109
116
|
export class GramlotServer {
|
|
110
117
|
get markdownUrl() { return this.runtimeUrl.replace(/[^/]+$/, 'gramlot-markdown.js'); }
|
|
111
118
|
|
|
112
119
|
constructor({runtimeUrl = '/assets/gramlot.js', rpcUrl = '/gramlot/rpc', closeUrl = '/gramlot/close',
|
|
113
120
|
rootId = 'gramlot-root', pageTtl = 1800, maxPages = 1000, collections = [], uploadsEnabled = false,
|
|
114
|
-
cssTheme = 'gramlot-base'} = {}) {
|
|
121
|
+
cssTheme = 'gramlot-base', librarySource = 'cdn'} = {}) {
|
|
122
|
+
if (!['cdn', 'local'].includes(librarySource)) {
|
|
123
|
+
throw new TypeError(`The library source must be 'cdn' or 'local', not ${JSON.stringify(librarySource)}`);
|
|
124
|
+
}
|
|
115
125
|
if (cssTheme !== false && !isThemeName(cssTheme)) {
|
|
116
126
|
throw new TypeError(`The base theme must be a theme name or false, not ${JSON.stringify(cssTheme)}`);
|
|
117
127
|
}
|
|
@@ -120,7 +130,8 @@ export class GramlotServer {
|
|
|
120
130
|
!Number.isSafeInteger(maxPages) || maxPages < 1) {
|
|
121
131
|
throw new TypeError('Page TTL must be finite and positive; capacity must be a positive safe integer');
|
|
122
132
|
}
|
|
123
|
-
Object.assign(this, {runtimeUrl, rpcUrl, closeUrl, rootId, pageTtl, maxPages, cssTheme});
|
|
133
|
+
Object.assign(this, {runtimeUrl, rpcUrl, closeUrl, rootId, pageTtl, maxPages, cssTheme, librarySource});
|
|
134
|
+
this.libraries = libraries;
|
|
124
135
|
this.pages = new Map();
|
|
125
136
|
this.uploads = uploadsEnabled ? new UploadRegistry() : null;
|
|
126
137
|
this.collections = this.collectionGraph([...standardCollections, ...collections]);
|
|
@@ -128,6 +139,30 @@ export class GramlotServer {
|
|
|
128
139
|
this.environmentPages = new WeakMap();
|
|
129
140
|
}
|
|
130
141
|
|
|
142
|
+
/** The origins the pages load third-party libraries from: the CDN origin with `'cdn'`, else none. */
|
|
143
|
+
get libraryOrigins() {
|
|
144
|
+
if (this.librarySource === 'local') return [];
|
|
145
|
+
return [...new Set(Object.values(this.libraries).filter(entry => entry.url !== null)
|
|
146
|
+
.map(entry => entry.url.split('/').slice(0, 3).join('/')))];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** The `Content-Security-Policy` header of one page: `policy` with `{nonce}` replaced by the nonce of its
|
|
150
|
+
* bootstrap and the library origins added to the directive that governs scripts (`script-src`, else
|
|
151
|
+
* `default-src`) and to the one that governs connections (`connect-src`, else `default-src`); a policy
|
|
152
|
+
* without such a directive leaves that kind unrestricted (GC-101 §140). */
|
|
153
|
+
contentSecurityPolicy(policy, nonce) {
|
|
154
|
+
const directives = policy.replaceAll('{nonce}', nonce).split(';').filter(part => part.trim())
|
|
155
|
+
.map(part => part.trim().split(/\s+/));
|
|
156
|
+
const names = directives.map(directive => directive[0]);
|
|
157
|
+
for (const kind of ['script-src', 'connect-src']) {
|
|
158
|
+
const name = names.includes(kind) ? kind : names.includes('default-src') ? 'default-src' : null;
|
|
159
|
+
if (name === null) continue;
|
|
160
|
+
const directive = directives[names.indexOf(name)];
|
|
161
|
+
directive.push(...this.libraryOrigins.filter(origin => !directive.includes(origin)));
|
|
162
|
+
}
|
|
163
|
+
return directives.map(directive => directive.join(' ')).join('; ');
|
|
164
|
+
}
|
|
165
|
+
|
|
131
166
|
/** The Page class of path, or PageNotFound. */
|
|
132
167
|
async resolvePage(path) { throw new PageNotFound(`Page not found: ${path}`); }
|
|
133
168
|
|
|
@@ -325,7 +360,7 @@ export class GramlotServer {
|
|
|
325
360
|
...(resources.serverAdapter ? {serverAdapter: prefixed(prefix, resources.serverAdapter)} : {})},
|
|
326
361
|
});
|
|
327
362
|
const document = new GramlotBuilder();
|
|
328
|
-
const root = document.root.html();
|
|
363
|
+
const root = document.root.html({'data-gramlot-library-source': this.librarySource});
|
|
329
364
|
const head = root.head();
|
|
330
365
|
head.meta({charset: 'utf-8'});
|
|
331
366
|
head.meta({name: 'viewport', content: 'width=device-width,initial-scale=1'});
|
|
@@ -334,11 +369,17 @@ export class GramlotServer {
|
|
|
334
369
|
head.link({rel: 'manifest', href: prefix + '/app.webmanifest'});
|
|
335
370
|
}
|
|
336
371
|
// A page module served for its Logic imports the core from the runtime already loaded.
|
|
372
|
+
const declared = new Set(declaredCollections.map(({name}) => name));
|
|
337
373
|
head.script(scriptJson({imports: {'@gramlot/gramlot/page': prefixed(prefix, this.runtimeUrl),
|
|
338
374
|
'@gramlot/gramlot': prefixed(prefix, this.runtimeUrl),
|
|
339
375
|
'@gramlot/gramlot/components':prefixed(prefix,this.runtimeUrl),
|
|
340
376
|
'@gramlot/gramlot/markdown':prefixed(prefix,this.markdownUrl),
|
|
341
|
-
...Object.fromEntries((resources.collections ?? []).map(({name,url})=>[`@gramlot/collections/${encodeURIComponent(name)}`,prefixed(prefix,url)]))
|
|
377
|
+
...Object.fromEntries((resources.collections ?? []).map(({name,url})=>[`@gramlot/collections/${encodeURIComponent(name)}`,prefixed(prefix,url)])),
|
|
378
|
+
// A page module imports a declared core collection for gramlots.
|
|
379
|
+
...Object.fromEntries((resources.collections ?? []).filter(({name})=>declared.has(name))
|
|
380
|
+
.map(({name,url})=>[`@gramlot/gramlot/collections/${name}`,prefixed(prefix,url)]))},
|
|
381
|
+
...(this.librarySource === 'cdn' ? {integrity: Object.fromEntries(Object.values(this.libraries)
|
|
382
|
+
.filter(entry => entry.url !== null && entry.format !== 'style').map(entry => [entry.url, entry.integrity]))} : {})}),
|
|
342
383
|
{type: 'importmap', nonce});
|
|
343
384
|
const body = root.body();
|
|
344
385
|
body.div({id: this.rootId});
|
package/src/server/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type {GramlotServerOptions, OpenedPage, RegisteredPage} from './gramlot-s
|
|
|
11
11
|
export {GramlotBuilder} from '../builder/gramlot-builder.js';
|
|
12
12
|
export {GramlotFileServer} from './gramlot-file-server.js';
|
|
13
13
|
export type {GramlotFileServerOptions} from './gramlot-file-server.js';
|
|
14
|
-
export {gramlotDev, runtimeAsset,
|
|
14
|
+
export {gramlotDev, runtimeAsset, collectionAssets} from './assets.js';
|
|
15
15
|
export {checkProtocol} from './conformance.js';
|
|
16
16
|
export {InvalidResourceName, parseRequires} from './resources.js';
|
|
17
17
|
export type {Resources} from './resources.js';
|
package/src/server/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export {GramlotServer, EndpointNotFound, InvalidRequest, NotAuthenticated, NotAu
|
|
|
11
11
|
SourceNotFound, ServerCapacity} from './gramlot-server.js';
|
|
12
12
|
export {GramlotBuilder} from '../builder/gramlot-builder.js';
|
|
13
13
|
export {GramlotFileServer} from './gramlot-file-server.js';
|
|
14
|
-
export {gramlotDev, runtimeAsset,
|
|
14
|
+
export {gramlotDev, runtimeAsset, collectionAssets} from './assets.js';
|
|
15
15
|
export {checkProtocol} from './conformance.js';
|
|
16
16
|
export {InvalidResourceName, parseRequires} from './resources.js';
|
|
17
17
|
export {NAME_SYNTAX, NameSyntax} from '../builder/name-syntax.js';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The modules that the runtime shares with prepared collections.
|
|
3
|
+
*
|
|
4
|
+
* The collection generator keeps every module of this table out of a collection bundle: an import of
|
|
5
|
+
* one of them becomes a read of this table from `@gramlot/gramlot`. A page therefore holds one copy
|
|
6
|
+
* of each module, and its classes keep their identity across the runtime and the collections
|
|
7
|
+
* (`instanceof Bag` holds for a Bag created by a collection).
|
|
8
|
+
*
|
|
9
|
+
* A key is the import specifier: the package name for a library, the path relative to this
|
|
10
|
+
* directory for a runtime module. The generator refuses a collection that would bundle a module of
|
|
11
|
+
* the runtime missing from this table. big.js and @xmldom/xmldom are not shared: the browser runtime
|
|
12
|
+
* does not ship them (see `scripts/runtime-options.mjs`).
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
import * as genrojsBag from '@genrojs/bag';
|
|
17
|
+
import * as genrojsBuilders from '@genrojs/builders';
|
|
18
|
+
import * as genrojsToolbox from '@genrojs/toolbox';
|
|
19
|
+
import * as genrojsTytx from '@genrojs/tytx';
|
|
20
|
+
import * as decimal from 'decimal.js';
|
|
21
|
+
import * as msgpack from '@msgpack/msgpack';
|
|
22
|
+
import * as dompurify from 'dompurify';
|
|
23
|
+
import * as randomId from './random-id.js';
|
|
24
|
+
import * as format from './format.js';
|
|
25
|
+
import * as librariesModule from './libraries.js';
|
|
26
|
+
import * as mediaFrame from './media-frame.js';
|
|
27
|
+
import * as validationRun from './validation-run.js';
|
|
28
|
+
import * as rendererAttributes from './renderer/attributes.js';
|
|
29
|
+
import * as viewLabelbox from './view/labelbox.js';
|
|
30
|
+
import * as columnFilter from './stores/column-filter.js';
|
|
31
|
+
import * as collectionFilter from './stores/collection-filter.js';
|
|
32
|
+
import * as idSet from './stores/id-set.js';
|
|
33
|
+
import * as bagCollectionStore from './stores/bag-collection-store.js';
|
|
34
|
+
import * as bagCollectionView from './stores/bag-collection-view.js';
|
|
35
|
+
import * as bases from './components/bases.js';
|
|
36
|
+
import * as choices from './components/choices.js';
|
|
37
|
+
import * as choiceFieldStyles from './components/choice-field-styles.js';
|
|
38
|
+
import * as fieldState from './components/field-state.js';
|
|
39
|
+
import * as gridFormulas from './components/grid-formulas.js';
|
|
40
|
+
import * as gridStructure from './components/grid-structure.js';
|
|
41
|
+
import * as labelbox from './components/labelbox.js';
|
|
42
|
+
import * as parameters from './components/parameters.js';
|
|
43
|
+
import * as popup from './components/popup.js';
|
|
44
|
+
import * as validation from './components/validation.js';
|
|
45
|
+
|
|
46
|
+
export const sharedModules = Object.freeze({
|
|
47
|
+
'@genrojs/bag': genrojsBag,
|
|
48
|
+
'@genrojs/builders': genrojsBuilders,
|
|
49
|
+
'@genrojs/toolbox': genrojsToolbox,
|
|
50
|
+
'@genrojs/tytx': genrojsTytx,
|
|
51
|
+
'decimal.js': decimal,
|
|
52
|
+
'@msgpack/msgpack': msgpack,
|
|
53
|
+
'dompurify': dompurify,
|
|
54
|
+
'./random-id.js': randomId,
|
|
55
|
+
'./format.js': format,
|
|
56
|
+
'./libraries.js': librariesModule,
|
|
57
|
+
'./media-frame.js': mediaFrame,
|
|
58
|
+
'./validation-run.js': validationRun,
|
|
59
|
+
'./renderer/attributes.js': rendererAttributes,
|
|
60
|
+
'./view/labelbox.js': viewLabelbox,
|
|
61
|
+
'./stores/column-filter.js': columnFilter,
|
|
62
|
+
'./stores/collection-filter.js': collectionFilter,
|
|
63
|
+
'./stores/id-set.js': idSet,
|
|
64
|
+
'./stores/bag-collection-store.js': bagCollectionStore,
|
|
65
|
+
'./stores/bag-collection-view.js': bagCollectionView,
|
|
66
|
+
'./components/bases.js': bases,
|
|
67
|
+
'./components/choices.js': choices,
|
|
68
|
+
'./components/choice-field-styles.js': choiceFieldStyles,
|
|
69
|
+
'./components/field-state.js': fieldState,
|
|
70
|
+
'./components/grid-formulas.js': gridFormulas,
|
|
71
|
+
'./components/grid-structure.js': gridStructure,
|
|
72
|
+
'./components/labelbox.js': labelbox,
|
|
73
|
+
'./components/parameters.js': parameters,
|
|
74
|
+
'./components/popup.js': popup,
|
|
75
|
+
'./components/validation.js': validation,
|
|
76
|
+
});
|