sml-baseline 1.3.6 → 1.3.8

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.
Files changed (34) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +53 -53
  3. package/dist/common/core/SmlBaseService.d.ts +5 -5
  4. package/dist/common/utility/dto/filter-options-dto.js +1 -1
  5. package/dist/common/utility/dto/filter-options-dto.js.map +1 -1
  6. package/dist/factoryViewModules/smlimagemapview.module.d.ts +1 -0
  7. package/dist/factoryViewModules/smlimagemapview.module.js +98 -0
  8. package/dist/factoryViewModules/smlimagemapview.module.js.map +1 -0
  9. package/dist/factoryViewModules/smltimelineview.module.d.ts +1 -0
  10. package/dist/factoryViewModules/smltimelineview.module.js +84 -0
  11. package/dist/factoryViewModules/smltimelineview.module.js.map +1 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.js +6 -2
  14. package/dist/index.js.map +1 -1
  15. package/dist/smlcustomcode/smlcustomcode.controller.js +30 -30
  16. package/dist/smlcustomfunction/smlcustomfunction.service.js +2 -2
  17. package/dist/smlform/dto/item.dto.d.ts +1 -0
  18. package/dist/smlform/dto/item.dto.js +10 -0
  19. package/dist/smlform/dto/item.dto.js.map +1 -1
  20. package/dist/tsconfig.build.tsbuildinfo +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/package.json +125 -125
  23. package/dist/viewschema/schemas/dashboard.schema.d.ts +0 -322
  24. package/dist/viewschema/schemas/dashboard.schema.js +0 -98
  25. package/dist/viewschema/schemas/dashboard.schema.js.map +0 -1
  26. package/dist/viewschema/viewschema.controller.d.ts +0 -6
  27. package/dist/viewschema/viewschema.controller.js +0 -45
  28. package/dist/viewschema/viewschema.controller.js.map +0 -1
  29. package/dist/viewschema/viewschema.module.d.ts +0 -2
  30. package/dist/viewschema/viewschema.module.js +0 -23
  31. package/dist/viewschema/viewschema.module.js.map +0 -1
  32. package/dist/viewschema/viewschema.service.d.ts +0 -13
  33. package/dist/viewschema/viewschema.service.js +0 -77
  34. package/dist/viewschema/viewschema.service.js.map +0 -1
package/package.json CHANGED
@@ -1,125 +1,125 @@
1
- {
2
- "name": "sml-baseline",
3
- "version": "1.3.6",
4
- "publishConfig": {
5
- "registry": "https://registry.npmjs.org/"
6
- },
7
- "description": "",
8
- "author": "SMl Team",
9
- "private": false,
10
- "license": "GNU",
11
- "main": "dist/index.js",
12
- "types": "dist/index.d.ts",
13
- "files": [
14
- "dist"
15
- ],
16
- "scripts": {
17
- "build": "nest build",
18
- "build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
19
- "dev": "tsc -p tsconfig.build.json --watch & tsc-alias -p tsconfig.build.json --watch",
20
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
21
- "start": "nest start",
22
- "start:dev": "npx cross-env NODE_ENV=development nest start --watch",
23
- "start:debug": "nest start --debug --watch",
24
- "start:prod": "node dist/main",
25
- "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
26
- "test": "jest",
27
- "test:watch": "jest --watch",
28
- "test:cov": "jest --coverage",
29
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
30
- "test:e2e": "jest --config ./test/jest-e2e.json",
31
- "doc": "npx @compodoc/compodoc -p tsconfig.json -s --port 3001 --watch -d ./docs",
32
- "prepublishOnly": "npm run build:lib"
33
- },
34
- "dependencies": {
35
- "@opentelemetry/api-logs": "^0.217.0",
36
- "@opentelemetry/exporter-logs-otlp-http": "^0.217.0",
37
- "@opentelemetry/resources": "^2.7.1",
38
- "@opentelemetry/sdk-logs": "^0.217.0",
39
- "acorn": "^8.14.0",
40
- "acorn-walk": "^8.3.4",
41
- "axios": "^1.16.0",
42
- "bcrypt": "5.1.1",
43
- "jsonata": "2.1.0",
44
- "lodash": "4.17.21",
45
- "uuid": "^11.0.0",
46
- "winston": "^3.17.0",
47
- "winston-daily-rotate-file": "^5.0.0"
48
- },
49
- "peerDependencies": {
50
- "@nestjs/axios": "4.0.0",
51
- "@nestjs/common": "11.0.3",
52
- "@nestjs/config": "4.0.0",
53
- "@nestjs/core": "11.0.3",
54
- "@nestjs/jwt": "11.0.0",
55
- "@nestjs/mapped-types": "*",
56
- "@nestjs/mongoose": "11.0.1",
57
- "@nestjs/platform-express": "11.0.3",
58
- "@nestjs/serve-static": "5.0.1",
59
- "@nestjs/swagger": "11.0.3",
60
- "class-transformer": "0.5.1",
61
- "class-validator": "0.14.1",
62
- "mongoose": "8.7.3",
63
- "reflect-metadata": "0.2.2",
64
- "rxjs": "7.8.1"
65
- },
66
- "devDependencies": {
67
- "@compodoc/compodoc": "^1.1.26",
68
- "@nestjs/axios": "4.0.0",
69
- "@nestjs/cli": "^10.0.0",
70
- "@nestjs/common": "11.0.3",
71
- "@nestjs/config": "4.0.0",
72
- "@nestjs/core": "11.0.3",
73
- "@nestjs/jwt": "11.0.0",
74
- "@nestjs/mapped-types": "*",
75
- "@nestjs/mongoose": "11.0.1",
76
- "@nestjs/platform-express": "11.0.3",
77
- "@nestjs/schematics": "^10.0.0",
78
- "@nestjs/serve-static": "5.0.1",
79
- "@nestjs/swagger": "11.0.3",
80
- "@nestjs/testing": "11.0.10",
81
- "@types/bcrypt": "5.0.2",
82
- "@types/express": "^5.0.0",
83
- "@types/jest": "^29.5.2",
84
- "@types/node": "^20.3.1",
85
- "@types/supertest": "^6.0.0",
86
- "@typescript-eslint/eslint-plugin": "^8.0.0",
87
- "@typescript-eslint/parser": "^8.0.0",
88
- "class-transformer": "0.5.1",
89
- "class-validator": "0.14.1",
90
- "cross-env": "7.0.3",
91
- "eslint": "^9.0.0",
92
- "eslint-config-prettier": "^9.0.0",
93
- "eslint-plugin-prettier": "^5.0.0",
94
- "jest": "^29.5.0",
95
- "mongoose": "8.7.3",
96
- "prettier": "^3.0.0",
97
- "reflect-metadata": "0.2.2",
98
- "rxjs": "7.8.1",
99
- "source-map-support": "^0.5.21",
100
- "supertest": "^7.0.0",
101
- "ts-jest": "^29.1.0",
102
- "ts-loader": "^9.4.3",
103
- "ts-node": "^10.9.1",
104
- "tsc-alias": "^1.8.16",
105
- "tsconfig-paths": "^4.2.0",
106
- "typescript": "^5.9.3"
107
- },
108
- "jest": {
109
- "moduleFileExtensions": [
110
- "js",
111
- "json",
112
- "ts"
113
- ],
114
- "rootDir": "src",
115
- "testRegex": ".*\\.spec\\.ts$",
116
- "transform": {
117
- "^.+\\.(t|j)s$": "ts-jest"
118
- },
119
- "collectCoverageFrom": [
120
- "**/*.(t|j)s"
121
- ],
122
- "coverageDirectory": "../coverage",
123
- "testEnvironment": "node"
124
- }
125
- }
1
+ {
2
+ "name": "sml-baseline",
3
+ "version": "1.3.8",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org/"
6
+ },
7
+ "description": "",
8
+ "author": "SMl Team",
9
+ "private": false,
10
+ "license": "GNU",
11
+ "main": "dist/index.js",
12
+ "types": "dist/index.d.ts",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "nest build",
18
+ "build:lib": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
19
+ "dev": "tsc -p tsconfig.build.json --watch & tsc-alias -p tsconfig.build.json --watch",
20
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
21
+ "start": "nest start",
22
+ "start:dev": "npx cross-env NODE_ENV=development nest start --watch",
23
+ "start:debug": "nest start --debug --watch",
24
+ "start:prod": "node dist/main",
25
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
26
+ "test": "jest",
27
+ "test:watch": "jest --watch",
28
+ "test:cov": "jest --coverage",
29
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
30
+ "test:e2e": "jest --config ./test/jest-e2e.json",
31
+ "doc": "npx @compodoc/compodoc -p tsconfig.json -s --port 3001 --watch -d ./docs",
32
+ "prepublishOnly": "npm run build:lib"
33
+ },
34
+ "dependencies": {
35
+ "@opentelemetry/api-logs": "^0.217.0",
36
+ "@opentelemetry/exporter-logs-otlp-http": "^0.217.0",
37
+ "@opentelemetry/resources": "^2.7.1",
38
+ "@opentelemetry/sdk-logs": "^0.217.0",
39
+ "acorn": "^8.14.0",
40
+ "acorn-walk": "^8.3.4",
41
+ "axios": "^1.16.0",
42
+ "bcrypt": "5.1.1",
43
+ "jsonata": "2.1.0",
44
+ "lodash": "4.17.21",
45
+ "uuid": "^11.0.0",
46
+ "winston": "^3.17.0",
47
+ "winston-daily-rotate-file": "^5.0.0"
48
+ },
49
+ "peerDependencies": {
50
+ "@nestjs/axios": "4.0.0",
51
+ "@nestjs/common": "11.0.3",
52
+ "@nestjs/config": "4.0.0",
53
+ "@nestjs/core": "11.0.3",
54
+ "@nestjs/jwt": "11.0.0",
55
+ "@nestjs/mapped-types": "*",
56
+ "@nestjs/mongoose": "11.0.1",
57
+ "@nestjs/platform-express": "11.0.3",
58
+ "@nestjs/serve-static": "5.0.1",
59
+ "@nestjs/swagger": "11.0.3",
60
+ "class-transformer": "0.5.1",
61
+ "class-validator": "0.14.1",
62
+ "mongoose": "8.7.3",
63
+ "reflect-metadata": "0.2.2",
64
+ "rxjs": "7.8.1"
65
+ },
66
+ "devDependencies": {
67
+ "@compodoc/compodoc": "^1.1.26",
68
+ "@nestjs/axios": "4.0.0",
69
+ "@nestjs/cli": "^10.0.0",
70
+ "@nestjs/common": "11.0.3",
71
+ "@nestjs/config": "4.0.0",
72
+ "@nestjs/core": "11.0.3",
73
+ "@nestjs/jwt": "11.0.0",
74
+ "@nestjs/mapped-types": "*",
75
+ "@nestjs/mongoose": "11.0.1",
76
+ "@nestjs/platform-express": "11.0.3",
77
+ "@nestjs/schematics": "^10.0.0",
78
+ "@nestjs/serve-static": "5.0.1",
79
+ "@nestjs/swagger": "11.0.3",
80
+ "@nestjs/testing": "11.0.10",
81
+ "@types/bcrypt": "5.0.2",
82
+ "@types/express": "^5.0.0",
83
+ "@types/jest": "^29.5.2",
84
+ "@types/node": "^20.3.1",
85
+ "@types/supertest": "^6.0.0",
86
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
87
+ "@typescript-eslint/parser": "^8.0.0",
88
+ "class-transformer": "0.5.1",
89
+ "class-validator": "0.14.1",
90
+ "cross-env": "7.0.3",
91
+ "eslint": "^9.0.0",
92
+ "eslint-config-prettier": "^9.0.0",
93
+ "eslint-plugin-prettier": "^5.0.0",
94
+ "jest": "^29.5.0",
95
+ "mongoose": "8.7.3",
96
+ "prettier": "^3.0.0",
97
+ "reflect-metadata": "0.2.2",
98
+ "rxjs": "7.8.1",
99
+ "source-map-support": "^0.5.21",
100
+ "supertest": "^7.0.0",
101
+ "ts-jest": "^29.1.0",
102
+ "ts-loader": "^9.4.3",
103
+ "ts-node": "^10.9.1",
104
+ "tsc-alias": "^1.8.16",
105
+ "tsconfig-paths": "^4.2.0",
106
+ "typescript": "^5.9.3"
107
+ },
108
+ "jest": {
109
+ "moduleFileExtensions": [
110
+ "js",
111
+ "json",
112
+ "ts"
113
+ ],
114
+ "rootDir": "src",
115
+ "testRegex": ".*\\.spec\\.ts$",
116
+ "transform": {
117
+ "^.+\\.(t|j)s$": "ts-jest"
118
+ },
119
+ "collectCoverageFrom": [
120
+ "**/*.(t|j)s"
121
+ ],
122
+ "coverageDirectory": "../coverage",
123
+ "testEnvironment": "node"
124
+ }
125
+ }
@@ -1,322 +0,0 @@
1
- export declare const dashboardSchema: {
2
- readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3
- readonly $id: "viewschema/dashboard";
4
- readonly type: "object";
5
- readonly properties: {
6
- readonly columns: {
7
- readonly type: "integer";
8
- readonly default: 12;
9
- readonly 'x-widget': "number";
10
- readonly 'x-group': "Layout";
11
- };
12
- readonly gap: {
13
- readonly type: "number";
14
- readonly default: 16;
15
- readonly 'x-widget': "number";
16
- readonly 'x-group': "Layout";
17
- };
18
- readonly globalContexts: {
19
- readonly type: "array";
20
- readonly items: {
21
- readonly $ref: "#/$defs/globalContext";
22
- };
23
- };
24
- readonly components: {
25
- readonly type: "array";
26
- readonly items: {
27
- readonly $ref: "#/$defs/component";
28
- };
29
- };
30
- };
31
- readonly required: readonly ["components"];
32
- readonly $defs: {
33
- readonly common: {
34
- readonly type: "object";
35
- readonly properties: {
36
- readonly visibleIf: {
37
- readonly type: "string";
38
- readonly 'x-widget': "template";
39
- readonly 'x-jsonata': true;
40
- readonly 'x-group': "Comune";
41
- };
42
- readonly colSpan: {
43
- readonly type: "integer";
44
- readonly minimum: 1;
45
- readonly maximum: 12;
46
- readonly 'x-widget': "number";
47
- readonly 'x-group': "Layout";
48
- readonly 'x-render': "grid.span";
49
- };
50
- readonly flexGrow: {
51
- readonly type: "integer";
52
- readonly minimum: 0;
53
- readonly 'x-widget': "number";
54
- readonly 'x-group': "Layout";
55
- readonly 'x-render': "sx.flexGrow";
56
- };
57
- readonly padding: {
58
- readonly type: "string";
59
- readonly 'x-widget': "cssLength";
60
- readonly 'x-group': "Layout";
61
- readonly 'x-render': "sx.p";
62
- };
63
- readonly background: {
64
- readonly type: "string";
65
- readonly 'x-widget': "color";
66
- readonly 'x-group': "Layout";
67
- readonly 'x-render': "sx.bgcolor";
68
- };
69
- readonly minHeight: {
70
- readonly type: "string";
71
- readonly 'x-widget': "cssLength";
72
- readonly 'x-group': "Layout";
73
- readonly 'x-render': "sx.minHeight";
74
- };
75
- readonly storeKey: {
76
- readonly type: "string";
77
- readonly 'x-widget': "text";
78
- readonly 'x-group': "Layout";
79
- };
80
- };
81
- };
82
- readonly globalContext: {
83
- readonly type: "object";
84
- readonly properties: {
85
- readonly id: {
86
- readonly type: "string";
87
- readonly 'x-widget': "text";
88
- };
89
- readonly contextId: {
90
- readonly type: "string";
91
- readonly 'x-widget': "text";
92
- };
93
- readonly autoLoad: {
94
- readonly type: "boolean";
95
- readonly 'x-widget': "boolean";
96
- readonly default: true;
97
- };
98
- readonly queries: {
99
- readonly type: "string";
100
- readonly 'x-widget': "template";
101
- readonly 'x-jsonata': true;
102
- };
103
- readonly dependsOn: {
104
- readonly type: "string";
105
- readonly 'x-widget': "text";
106
- };
107
- readonly refreshInterval: {
108
- readonly type: "number";
109
- readonly 'x-widget': "number";
110
- readonly default: 0;
111
- };
112
- readonly mapTemplate: {
113
- readonly type: "string";
114
- readonly 'x-widget': "template";
115
- readonly 'x-jsonata': true;
116
- };
117
- readonly errorCondition: {
118
- readonly type: "string";
119
- readonly 'x-widget': "template";
120
- readonly 'x-jsonata': true;
121
- };
122
- };
123
- readonly required: readonly ["contextId", "queries"];
124
- };
125
- readonly component: {
126
- readonly type: "object";
127
- readonly properties: {
128
- readonly id: {
129
- readonly type: "string";
130
- };
131
- readonly type: {
132
- readonly type: "string";
133
- };
134
- readonly props: {
135
- readonly type: "object";
136
- };
137
- readonly children: {
138
- readonly type: "array";
139
- readonly items: {
140
- readonly $ref: "#/$defs/component";
141
- };
142
- };
143
- };
144
- readonly required: readonly ["id", "type"];
145
- readonly allOf: readonly [{
146
- readonly if: {
147
- readonly properties: {
148
- readonly type: {
149
- readonly const: "text";
150
- };
151
- };
152
- };
153
- readonly then: {
154
- readonly properties: {
155
- readonly props: {
156
- readonly $ref: "#/$defs/props_text";
157
- };
158
- };
159
- };
160
- }, {
161
- readonly if: {
162
- readonly properties: {
163
- readonly type: {
164
- readonly const: "chip";
165
- };
166
- };
167
- };
168
- readonly then: {
169
- readonly properties: {
170
- readonly props: {
171
- readonly $ref: "#/$defs/props_chip";
172
- };
173
- };
174
- };
175
- }, {
176
- readonly if: {
177
- readonly properties: {
178
- readonly type: {
179
- readonly const: "flex";
180
- };
181
- };
182
- };
183
- readonly then: {
184
- readonly properties: {
185
- readonly props: {
186
- readonly $ref: "#/$defs/props_flex";
187
- };
188
- };
189
- };
190
- }];
191
- };
192
- readonly props_text: {
193
- readonly type: "object";
194
- readonly allOf: readonly [{
195
- readonly $ref: "#/$defs/common";
196
- }];
197
- readonly properties: {
198
- readonly content: {
199
- readonly type: "string";
200
- readonly 'x-widget': "template";
201
- readonly 'x-jsonata': true;
202
- readonly 'x-group': "Text";
203
- };
204
- readonly textVariant: {
205
- readonly type: "string";
206
- readonly enum: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "body1", "body2", "caption", "subtitle1", "subtitle2"];
207
- readonly 'x-widget': "select";
208
- readonly 'x-group': "Text";
209
- };
210
- readonly textAlign: {
211
- readonly type: "string";
212
- readonly enum: readonly ["left", "center", "right"];
213
- readonly 'x-widget': "select";
214
- readonly 'x-group': "Text";
215
- };
216
- readonly bold: {
217
- readonly type: "boolean";
218
- readonly 'x-widget': "boolean";
219
- readonly 'x-group': "Text";
220
- };
221
- readonly italic: {
222
- readonly type: "boolean";
223
- readonly 'x-widget': "boolean";
224
- readonly 'x-group': "Text";
225
- };
226
- };
227
- readonly unevaluatedProperties: false;
228
- readonly 'x-component': {
229
- readonly label: "Text";
230
- readonly icon: "Type";
231
- readonly category: "content";
232
- readonly isContainer: false;
233
- };
234
- };
235
- readonly props_chip: {
236
- readonly type: "object";
237
- readonly allOf: readonly [{
238
- readonly $ref: "#/$defs/common";
239
- }];
240
- readonly properties: {
241
- readonly label: {
242
- readonly type: "string";
243
- readonly 'x-widget': "template";
244
- readonly 'x-jsonata': true;
245
- readonly 'x-group': "Chip";
246
- };
247
- readonly chipColor: {
248
- readonly type: "string";
249
- readonly enum: readonly ["default", "primary", "secondary", "error", "info", "success", "warning"];
250
- readonly 'x-widget': "select";
251
- readonly default: "primary";
252
- readonly 'x-group': "Chip";
253
- };
254
- readonly chipVariant: {
255
- readonly type: "string";
256
- readonly enum: readonly ["filled", "outlined"];
257
- readonly 'x-widget': "select";
258
- readonly 'x-group': "Chip";
259
- };
260
- readonly chipSize: {
261
- readonly type: "string";
262
- readonly enum: readonly ["small", "medium"];
263
- readonly 'x-widget': "select";
264
- readonly 'x-group': "Chip";
265
- };
266
- };
267
- readonly unevaluatedProperties: false;
268
- readonly 'x-component': {
269
- readonly label: "Chip";
270
- readonly icon: "Tag";
271
- readonly category: "content";
272
- readonly isContainer: false;
273
- };
274
- };
275
- readonly props_flex: {
276
- readonly type: "object";
277
- readonly allOf: readonly [{
278
- readonly $ref: "#/$defs/common";
279
- }];
280
- readonly properties: {
281
- readonly flexDirection: {
282
- readonly type: "string";
283
- readonly enum: readonly ["row", "column", "row-reverse", "column-reverse"];
284
- readonly 'x-widget': "select";
285
- readonly 'x-group': "Flex";
286
- };
287
- readonly flexWrap: {
288
- readonly type: "string";
289
- readonly enum: readonly ["nowrap", "wrap", "wrap-reverse"];
290
- readonly 'x-widget': "select";
291
- readonly 'x-group': "Flex";
292
- };
293
- readonly justifyContent: {
294
- readonly type: "string";
295
- readonly enum: readonly ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly"];
296
- readonly 'x-widget': "select";
297
- readonly 'x-group': "Flex";
298
- };
299
- readonly alignItems: {
300
- readonly type: "string";
301
- readonly enum: readonly ["flex-start", "flex-end", "center", "stretch", "baseline"];
302
- readonly 'x-widget': "select";
303
- readonly 'x-group': "Flex";
304
- };
305
- readonly flexGap: {
306
- readonly type: "string";
307
- readonly 'x-widget': "cssLength";
308
- readonly 'x-group': "Flex";
309
- };
310
- };
311
- readonly unevaluatedProperties: false;
312
- readonly 'x-component': {
313
- readonly label: "Flex";
314
- readonly icon: "Columns";
315
- readonly category: "layout";
316
- readonly isContainer: true;
317
- };
318
- };
319
- };
320
- };
321
- export type ArtifactName = 'dashboard';
322
- export declare const VIEW_SCHEMAS: Record<ArtifactName, object>;