@luzmo/embed 6.2.1 → 6.2.2
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/.prettierignore +4 -0
- package/esbuild.config.cjs +13 -0
- package/eslint.config.cjs +8 -0
- package/jest.config.ts +11 -0
- package/package.json +4 -2
- package/project.json +39 -0
- package/src/index.ts +42 -0
- package/src/lib/dashboard-component/dashboard-base.ts +828 -0
- package/src/lib/dashboard-component/dashboard-component.spec.ts +27 -0
- package/src/lib/dashboard-component/dashboard-component.ts +12 -0
- package/src/lib/dashboard-component/dashboard-styles.ts +117 -0
- package/src/lib/helper/event-bus-handler.ts +195 -0
- package/src/lib/helper/json-schema-utils.ts +129 -0
- package/src/lib/luzmo-iq-components/luzmo-iq-answer.ts +106 -0
- package/src/lib/luzmo-iq-components/luzmo-iq-chat.ts +106 -0
- package/src/lib/luzmo-service.ts +7 -0
- package/src/lib/viz-item/viz-item-component.ts +9 -0
- package/src/lib/viz-item/viz-item.base.ts +227 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +27 -0
- package/tsconfig.lib.json +10 -0
- package/tsconfig.spec.json +9 -0
- package/index.cjs +0 -1579
- package/index.d.ts +0 -8
- package/index.js +0 -1548
- package/lib/dashboard-component/dashboard-base.d.ts +0 -98
- package/lib/dashboard-component/dashboard-component.d.ts +0 -8
- package/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/lib/helper/event-bus-handler.d.ts +0 -1
- package/lib/helper/json-schema-utils.d.ts +0 -64
- package/lib/luzmo-iq-components/luzmo-iq-answer.d.ts +0 -22
- package/lib/luzmo-iq-components/luzmo-iq-chat.d.ts +0 -23
- package/lib/luzmo-service.d.ts +0 -6
- package/lib/viz-item/viz-item-component.d.ts +0 -4
- package/lib/viz-item/viz-item.base.d.ts +0 -71
- package/luzmo-embed.min.js +0 -3630
- package/src/index.d.ts +0 -8
- package/src/lib/dashboard-component/dashboard-base.d.ts +0 -98
- package/src/lib/dashboard-component/dashboard-component.d.ts +0 -8
- package/src/lib/dashboard-component/dashboard-styles.d.ts +0 -1
- package/src/lib/helper/event-bus-handler.d.ts +0 -1
- package/src/lib/helper/json-schema-utils.d.ts +0 -64
- package/src/lib/luzmo-iq-components/luzmo-iq-answer.d.ts +0 -22
- package/src/lib/luzmo-iq-components/luzmo-iq-chat.d.ts +0 -23
- package/src/lib/luzmo-service.d.ts +0 -6
- package/src/lib/viz-item/viz-item-component.d.ts +0 -4
- package/src/lib/viz-item/viz-item.base.d.ts +0 -71
package/.prettierignore
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const esbuild = require("esbuild");
|
|
2
|
+
const { umdWrapper } = require("esbuild-plugin-umd-wrapper");
|
|
3
|
+
|
|
4
|
+
esbuild
|
|
5
|
+
.build({
|
|
6
|
+
entryPoints: ["libs/embed-libs/embed/src/index.ts"],
|
|
7
|
+
outfile: "dist/libs/embed-libs/embed/luzmo-embed.min.js",
|
|
8
|
+
format: "umd", // or "cjs"
|
|
9
|
+
bundle: true,
|
|
10
|
+
plugins: [umdWrapper()],
|
|
11
|
+
})
|
|
12
|
+
.then((result) => console.log(result))
|
|
13
|
+
.catch(() => process.exit(1));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const nx = require('@nx/eslint-plugin');
|
|
2
|
+
const baseConfig = require('../../../eslint.config.js');
|
|
3
|
+
const eslintUtilsConfig = require('../../../eslint-utils-config');
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
...baseConfig,
|
|
7
|
+
eslintUtilsConfig.methods.getNoRestrictedImportsConfig(['@luzmo/embed'])
|
|
8
|
+
];
|
package/jest.config.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export default {
|
|
3
|
+
displayName: 'embed',
|
|
4
|
+
preset: '../../../jest.preset.js',
|
|
5
|
+
testEnvironment: 'node',
|
|
6
|
+
transform: {
|
|
7
|
+
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }]
|
|
8
|
+
},
|
|
9
|
+
moduleFileExtensions: ['ts', 'js', 'html'],
|
|
10
|
+
coverageDirectory: '../../../coverage/libs/embed-libs/embed'
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luzmo/embed",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "3.1.2",
|
|
6
6
|
"@luzmo/shared-embed": "5.2.1",
|
|
@@ -20,5 +20,7 @@
|
|
|
20
20
|
"chart",
|
|
21
21
|
"cumul.io",
|
|
22
22
|
"component"
|
|
23
|
-
]
|
|
23
|
+
],
|
|
24
|
+
"module": "./index.js",
|
|
25
|
+
"types": "./src/index.d.ts"
|
|
24
26
|
}
|
package/project.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "embed-libs-embed",
|
|
3
|
+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "libs/embed-libs/embed/src",
|
|
5
|
+
"projectType": "library",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"targets": {
|
|
8
|
+
"build": {
|
|
9
|
+
"executor": "@nx/esbuild:esbuild",
|
|
10
|
+
"outputs": ["{options.outputPath}"],
|
|
11
|
+
"options": {
|
|
12
|
+
"outputPath": "dist/libs/embed-libs/embed",
|
|
13
|
+
"main": "libs/embed-libs/embed/src/index.ts",
|
|
14
|
+
"tsConfig": "libs/embed-libs/embed/tsconfig.lib.json",
|
|
15
|
+
"assets": ["libs/embed-libs/embed/*.md"],
|
|
16
|
+
"generatePackageJson": false,
|
|
17
|
+
"format": ["esm", "cjs"],
|
|
18
|
+
"external": ["lit"]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"build-min": {
|
|
22
|
+
"executor": "nx:run-commands",
|
|
23
|
+
"options": {
|
|
24
|
+
"commands": ["node libs/embed-libs/embed/esbuild.config.cjs"]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"test": {
|
|
28
|
+
"options": {
|
|
29
|
+
"passWithNoTests": true
|
|
30
|
+
},
|
|
31
|
+
"configurations": {
|
|
32
|
+
"ci": {
|
|
33
|
+
"ci": true,
|
|
34
|
+
"coverage": true
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type * from '@luzmo/dashboard-contents-types';
|
|
2
|
+
export type {
|
|
3
|
+
// region Events
|
|
4
|
+
LoadEvent,
|
|
5
|
+
ChangedFiltersEvent,
|
|
6
|
+
CustomEvent,
|
|
7
|
+
ItemsRenderedEvent,
|
|
8
|
+
ExportedEvent,
|
|
9
|
+
DashboardActionEvent,
|
|
10
|
+
// endregion
|
|
11
|
+
|
|
12
|
+
// region Filters
|
|
13
|
+
SelectedDataInput,
|
|
14
|
+
// endregion
|
|
15
|
+
|
|
16
|
+
// region Common
|
|
17
|
+
ExportType,
|
|
18
|
+
ItemData,
|
|
19
|
+
ExportDashboard,
|
|
20
|
+
AccessibleDashboard,
|
|
21
|
+
SetEditMode,
|
|
22
|
+
SetSelectedData,
|
|
23
|
+
// endregion
|
|
24
|
+
|
|
25
|
+
// region VizItemPostMessage
|
|
26
|
+
VizItemPostMessageLoadEvent,
|
|
27
|
+
VizItemPostMessageRenderedEvent,
|
|
28
|
+
VizItemPostMessageExportedEvent,
|
|
29
|
+
VizItemPostMessageChangedFiltersEvent,
|
|
30
|
+
VizItemPostMessageCustomEventEvent
|
|
31
|
+
// endregion
|
|
32
|
+
} from '@luzmo/shared-embed';
|
|
33
|
+
|
|
34
|
+
export { selectedDataUtils } from '@luzmo/shared-embed';
|
|
35
|
+
|
|
36
|
+
export * from './lib/dashboard-component/dashboard-component';
|
|
37
|
+
export * from './lib/viz-item/viz-item-component';
|
|
38
|
+
|
|
39
|
+
export * from './lib/luzmo-iq-components/luzmo-iq-chat';
|
|
40
|
+
export * from './lib/luzmo-iq-components/luzmo-iq-answer';
|
|
41
|
+
|
|
42
|
+
export * from './lib/helper/json-schema-utils';
|