@malloydata/render 0.0.135-dev240325191847 → 0.0.135-dev240326154530
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/component/render-webcomponent.d.ts +6 -0
- package/dist/component/render.d.ts +7 -17
- package/dist/component/result-context.d.ts +2 -3
- package/dist/component/table/table-context.d.ts +9 -0
- package/dist/component/{table-layout.d.ts → table/table-layout.d.ts} +2 -2
- package/dist/component/table/table.d.ts +9 -0
- package/dist/html/html_view.d.ts +1 -1
- package/dist/module/index.mjs +145243 -0
- package/dist/module/index.umd.js +1643 -0
- package/dist/module/style.css +1 -0
- package/dist/stories/bars.stories.d.ts +1 -1
- package/dist/stories/tables.stories.d.ts +1 -1
- package/dist/stories/themes.stories.d.ts +1 -1
- package/dist/webcomponent/malloy-render.mjs +90572 -0
- package/dist/webcomponent/malloy-render.umd.js +1491 -0
- package/dist/webcomponent/style.css +1 -0
- package/package.json +21 -7
- package/vite.config.ts +25 -0
- package/vite.config.webcomponent.ts +25 -0
- package/dist/bundle/bundled_renderer.js +0 -139374
- package/dist/bundle/bundled_renderer.min.js +0 -2374
- package/dist/bundle/main.js +0 -29
- package/dist/bundle/renderer.js +0 -71
- package/dist/component/bar-chart.js +0 -130
- package/dist/component/chart-settings.js +0 -152
- package/dist/component/render-numeric-field.js +0 -104
- package/dist/component/render-result-metadata.js +0 -91
- package/dist/component/render.js +0 -155
- package/dist/component/result-context.js +0 -28
- package/dist/component/table-layout.js +0 -83
- package/dist/component/table.d.ts +0 -35
- package/dist/component/table.js +0 -375
- package/dist/component/util.js +0 -53
- package/dist/component/vega-chart.js +0 -105
- package/dist/component/vega-lite-base-spec.js +0 -61
- package/dist/component/vega-types.js +0 -34
- package/dist/data_styles.js +0 -50
- package/dist/drill.js +0 -124
- package/dist/html/area_sparkline.js +0 -118
- package/dist/html/bar_chart.js +0 -70
- package/dist/html/bar_sparkline.js +0 -119
- package/dist/html/boolean.js +0 -53
- package/dist/html/bytes.js +0 -47
- package/dist/html/cartesian_chart.js +0 -110
- package/dist/html/chart.js +0 -120
- package/dist/html/column_sparkline.js +0 -120
- package/dist/html/container.js +0 -44
- package/dist/html/currency.js +0 -75
- package/dist/html/dashboard.js +0 -242
- package/dist/html/data_volume.js +0 -94
- package/dist/html/date.js +0 -66
- package/dist/html/duration.js +0 -108
- package/dist/html/html_view.js +0 -187
- package/dist/html/image.js +0 -77
- package/dist/html/index.js +0 -28
- package/dist/html/json.js +0 -52
- package/dist/html/line_chart.js +0 -72
- package/dist/html/link.js +0 -57
- package/dist/html/list.js +0 -73
- package/dist/html/list_detail.js +0 -33
- package/dist/html/number.js +0 -73
- package/dist/html/percent.js +0 -50
- package/dist/html/point_map.js +0 -182
- package/dist/html/scatter_chart.js +0 -72
- package/dist/html/segment_map.js +0 -151
- package/dist/html/shape_map.js +0 -194
- package/dist/html/sparkline.js +0 -120
- package/dist/html/state_codes.js +0 -137
- package/dist/html/table.js +0 -475
- package/dist/html/text.js +0 -65
- package/dist/html/unsupported.js +0 -72
- package/dist/html/utils.js +0 -277
- package/dist/html/vega_spec.js +0 -544
- package/dist/index.js +0 -47
- package/dist/main_renderer_factory.js +0 -101
- package/dist/renderer.js +0 -34
- package/dist/renderer_factory.js +0 -57
- package/dist/renderer_types.js +0 -25
- package/dist/stories/bars.stories.js +0 -52
- package/dist/stories/basic.stories.js +0 -34
- package/dist/stories/image.stories.js +0 -34
- package/dist/stories/render-malloy-legacy.js +0 -27
- package/dist/stories/tables.stories.js +0 -65
- package/dist/stories/themes.stories.js +0 -47
- package/dist/stories/util.js +0 -25
- package/dist/tags_utils.js +0 -30
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.malloy-table .sticky-header{position:sticky;top:0;z-index:100}.malloy-table .sticky-header-content{position:absolute;top:0;left:0;pointer-events:none}.malloy-table .sticky-header-content th{pointer-events:all}.malloy-table table{border-collapse:collapse;background:var(--malloy-render--table-background)}.malloy-table th{transition:background-color .25s}.malloy-table table *{box-sizing:border-box}.malloy-table .column-cell{height:var(--malloy-render--table-row-height);overflow:hidden;white-space:nowrap;text-align:left;padding:0;vertical-align:top;position:relative}.malloy-table td.column-cell{font-weight:var(--malloy-render--table-body-weight);color:var(--malloy-render--table-body-color)}.malloy-table th.column-cell{font-weight:var(--malloy-render--table-header-weight);color:var(--malloy-render--table-header-color)}.malloy-table .column-cell.numeric{text-align:right;font-variant-numeric:tabular-nums}.malloy-table .cell-wrapper{display:flex;align-items:start;overflow:hidden}.malloy-table .cell-content{border-top:var(--malloy-render--table-border);height:100%;line-height:var(--malloy-render--table-row-height);flex:1;overflow:hidden;text-overflow:ellipsis}.malloy-table .cell-gutter{border-top:var(--malloy-render--table-border);height:var(--malloy-render--table-row-height);width:var(--malloy-render--table-gutter-size);transition:border-color .25s}.malloy-table .cell-gutter.hide-gutter-border{border-color:transparent}.malloy-table.pinned-header table{background:transparent}.malloy-table.pinned-header th{background:var(--malloy-render--table-background)}.malloy-table.root{width:100%;height:100%;position:relative;overflow:auto}.malloy-table.scrolled .pinned-header .cell-content,.malloy-table.scrolled .pinned-header .cell-gutter,.malloy-table.scrolled .pinned-header .cell-gutter.hide-gutter-border{border-top:var(--malloy-render--table-pinned-border)}.malloy-table.scrolled .pinned-header th{background:var(--malloy-render--table-pinned-background);box-shadow:0 0 .5em #00000080}:host{--malloy-theme--table-row-height: 28px;--malloy-theme--table-font-size: 12px;--malloy-theme--table-header-color: #5d626b;--malloy-theme--table-header-weight: bold;--malloy-theme--table-body-color: #727883;--malloy-theme--table-body-weight: 400;--malloy-theme--table-border: 1px solid #e5e7eb;--malloy-theme--table-background: white;--malloy-theme--table-gutter-size: 15px;--malloy-theme--table-pinned-background: #f5fafc;--malloy-theme--table-pinned-border: 1px solid #daedf3;--malloy-theme--font-family: Inter, system-ui, sans-serif;font-family:var(--malloy-render--font-family);font-size:var(--malloy-render--table-font-size)}@supports (font-variation-settings: normal){:host{font-family:InterVariable,Inter,system-ui sans-serif;font-feature-settings:"liga" 1,"calt" 1}}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/render",
|
|
3
|
-
"version": "0.0.135-
|
|
3
|
+
"version": "0.0.135-dev240326154530",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"main": "dist/index.js",
|
|
5
|
+
"main": "dist/module/index.umd.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"homepage": "https://github.com/malloydata/malloy#readme",
|
|
8
8
|
"repository": {
|
|
@@ -12,24 +12,36 @@
|
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=16"
|
|
14
14
|
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./dist/module/index.umd.js",
|
|
17
|
+
"./style": "./dist/module/style.css",
|
|
18
|
+
"./webcomponent": "./dist/webcomponent/malloy-render.umd.js",
|
|
19
|
+
"./webcomponent/style": "./dist/webcomponent/style.css"
|
|
20
|
+
},
|
|
15
21
|
"scripts": {
|
|
16
22
|
"bundle_renderer": "node src/bundle/esbuild_bundler.js",
|
|
17
23
|
"lint": "eslint '**/*.ts{,x}'",
|
|
18
24
|
"lint-fix": "eslint '**/*.ts{,x}' --fix",
|
|
19
25
|
"test": "jest --config=../../jest.config.js",
|
|
20
|
-
"build": "
|
|
26
|
+
"build": "npm run build-types && npm run build-source && npm run build-webcomponent",
|
|
21
27
|
"clean": "tsc --build --clean",
|
|
22
|
-
"prepublishOnly": "npm run build
|
|
28
|
+
"prepublishOnly": "npm run build",
|
|
23
29
|
"storybook": "storybook dev -p 6006",
|
|
24
|
-
"build-storybook": "storybook build"
|
|
30
|
+
"build-storybook": "storybook build",
|
|
31
|
+
"build-source": "vite build --outDir 'dist/module' --config vite.config.ts",
|
|
32
|
+
"build-webcomponent": "vite build --outDir 'dist/webcomponent' --config vite.config.webcomponent.ts",
|
|
33
|
+
"build-types": "tsc --build --declaration --emitDeclarationOnly"
|
|
25
34
|
},
|
|
26
35
|
"dependencies": {
|
|
27
36
|
"@lit/context": "^1.1.0",
|
|
28
|
-
"@malloydata/malloy": "^0.0.135-
|
|
37
|
+
"@malloydata/malloy": "^0.0.135-dev240326154530",
|
|
29
38
|
"@types/luxon": "^2.4.0",
|
|
39
|
+
"component-register": "^0.8.3",
|
|
30
40
|
"lit": "^3.0.2",
|
|
31
41
|
"lodash": "^4.17.20",
|
|
32
42
|
"luxon": "^2.4.0",
|
|
43
|
+
"solid-element": "^1.8.0",
|
|
44
|
+
"solid-js": "^1.8.15",
|
|
33
45
|
"ssf": "^0.11.2",
|
|
34
46
|
"us-atlas": "^3.0.0",
|
|
35
47
|
"vega": "^5.21.0",
|
|
@@ -45,6 +57,8 @@
|
|
|
45
57
|
"@storybook/testing-library": "^0.2.2",
|
|
46
58
|
"@storybook/types": "^7.5.3",
|
|
47
59
|
"esbuild": "0.19.11",
|
|
48
|
-
"storybook": "^7.5.0"
|
|
60
|
+
"storybook": "^7.5.0",
|
|
61
|
+
"vite": "^5.1.5",
|
|
62
|
+
"vite-plugin-solid": "^2.10.1"
|
|
49
63
|
}
|
|
50
64
|
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// eslint-disable-next-line node/no-unpublished-import
|
|
2
|
+
import {defineConfig} from 'vite';
|
|
3
|
+
// eslint-disable-next-line node/no-unpublished-import
|
|
4
|
+
import solidPlugin from 'vite-plugin-solid';
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
plugins: [solidPlugin()],
|
|
8
|
+
optimizeDeps: {
|
|
9
|
+
include: ['@malloydata/malloy'],
|
|
10
|
+
},
|
|
11
|
+
build: {
|
|
12
|
+
lib: {
|
|
13
|
+
entry: 'src/index.ts',
|
|
14
|
+
name: 'index',
|
|
15
|
+
fileName: 'index',
|
|
16
|
+
},
|
|
17
|
+
rollupOptions: {
|
|
18
|
+
external: [],
|
|
19
|
+
output: {},
|
|
20
|
+
},
|
|
21
|
+
commonjsOptions: {
|
|
22
|
+
include: [/malloy/, /node_modules/],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// eslint-disable-next-line node/no-unpublished-import
|
|
2
|
+
import {defineConfig} from 'vite';
|
|
3
|
+
// eslint-disable-next-line node/no-unpublished-import
|
|
4
|
+
import solidPlugin from 'vite-plugin-solid';
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
plugins: [solidPlugin()],
|
|
8
|
+
optimizeDeps: {
|
|
9
|
+
include: ['@malloydata/malloy'],
|
|
10
|
+
},
|
|
11
|
+
build: {
|
|
12
|
+
lib: {
|
|
13
|
+
entry: 'src/component/render-webcomponent.ts',
|
|
14
|
+
name: 'malloy-render',
|
|
15
|
+
fileName: 'malloy-render',
|
|
16
|
+
},
|
|
17
|
+
rollupOptions: {
|
|
18
|
+
external: [],
|
|
19
|
+
output: {},
|
|
20
|
+
},
|
|
21
|
+
commonjsOptions: {
|
|
22
|
+
include: [/malloy/, /node_modules/],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|