@dpuse/dpuse-shared 0.3.863 → 0.3.867
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/README.md +30 -84
- package/dist/dpuse-shared.es.js +1473 -0
- package/dist/dpuse-shared.es.js.map +1 -0
- package/dist/types/src/index.d.ts +24 -0
- package/package.json +10 -110
- package/dist/componentConfig.schema-DT3mO5rS.js +0 -416
- package/dist/componentConfig.schema-DT3mO5rS.js.map +0 -1
- package/dist/dpuse-shared-component.es.js +0 -53
- package/dist/dpuse-shared-component.es.js.map +0 -1
- package/dist/dpuse-shared-componentConnection.es.js +0 -0
- package/dist/dpuse-shared-componentContext.es.js +0 -0
- package/dist/dpuse-shared-componentContextModel.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelDimension.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelDimensionHierarchy.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntity.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntityDataItem.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntityEvent.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntityPrimaryMeasure.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelSecondaryMeasure.es.js +0 -0
- package/dist/dpuse-shared-componentDataView.es.js +0 -18
- package/dist/dpuse-shared-componentDataView.es.js.map +0 -1
- package/dist/dpuse-shared-componentEventQuery.es.js +0 -0
- package/dist/dpuse-shared-componentModule.es.js +0 -0
- package/dist/dpuse-shared-componentModuleConnector.es.js +0 -182
- package/dist/dpuse-shared-componentModuleConnector.es.js.map +0 -1
- package/dist/dpuse-shared-componentModuleCookbook.es.js +0 -11
- package/dist/dpuse-shared-componentModuleCookbook.es.js.map +0 -1
- package/dist/dpuse-shared-componentModuleEngine.es.js +0 -0
- package/dist/dpuse-shared-componentModulePresenter.es.js +0 -15
- package/dist/dpuse-shared-componentModulePresenter.es.js.map +0 -1
- package/dist/dpuse-shared-componentModuleTool.es.js +0 -29
- package/dist/dpuse-shared-componentModuleTool.es.js.map +0 -1
- package/dist/dpuse-shared-componentPresentation.es.js +0 -0
- package/dist/dpuse-shared-componentRecipe.es.js +0 -0
- package/dist/dpuse-shared-encoding.es.js +0 -467
- package/dist/dpuse-shared-encoding.es.js.map +0 -1
- package/dist/dpuse-shared-errors.es.js +0 -150
- package/dist/dpuse-shared-errors.es.js.map +0 -1
- package/dist/dpuse-shared-locale.es.js +0 -28
- package/dist/dpuse-shared-locale.es.js.map +0 -1
- package/dist/dpuse-shared-utilities.es.js +0 -109
- package/dist/dpuse-shared-utilities.es.js.map +0 -1
- package/dist/label-DexpXrnC.js +0 -19
- package/dist/label-DexpXrnC.js.map +0 -1
- package/dist/moduleConfig.schema-aYmFWSrn.js +0 -22
- package/dist/moduleConfig.schema-aYmFWSrn.js.map +0 -1
|
@@ -1,3 +1,27 @@
|
|
|
1
1
|
import { InferOutput, strictObject } from 'valibot';
|
|
2
2
|
import { baseConfigSchema } from './baseConfig.schema';
|
|
3
3
|
export type BaseConfig = InferOutput<ReturnType<typeof strictObject<typeof baseConfigSchema>>>;
|
|
4
|
+
export * from './component';
|
|
5
|
+
export * from './component/connection';
|
|
6
|
+
export * from './component/context';
|
|
7
|
+
export * from './component/context/model';
|
|
8
|
+
export * from './component/context/model/dimension';
|
|
9
|
+
export * from './component/context/model/dimension/hierarchy';
|
|
10
|
+
export * from './component/context/model/entity';
|
|
11
|
+
export * from './component/context/model/entity/dataItem';
|
|
12
|
+
export * from './component/context/model/entity/event';
|
|
13
|
+
export * from './component/context/model/entity/primaryMeasure';
|
|
14
|
+
export * from './component/context/model/secondaryMeasure';
|
|
15
|
+
export * from './component/dataView';
|
|
16
|
+
export * from './component/eventQuery';
|
|
17
|
+
export * from './component/module';
|
|
18
|
+
export * from './component/module/connector';
|
|
19
|
+
export * from './component/module/cookbook';
|
|
20
|
+
export * from './component/module/engine';
|
|
21
|
+
export * from './component/module/presenter';
|
|
22
|
+
export * from './component/module/tool';
|
|
23
|
+
export * from './component/presentation';
|
|
24
|
+
export * from './encoding';
|
|
25
|
+
export * from './errors';
|
|
26
|
+
export * from './locale';
|
|
27
|
+
export * from './utilities';
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.867",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "Common constants, types and utilities used across
|
|
5
|
+
"description": "Common constants, types and utilities used across DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
8
8
|
"type": "module",
|
|
@@ -21,106 +21,6 @@
|
|
|
21
21
|
".": {
|
|
22
22
|
"import": "./dist/dpuse-shared.es.js",
|
|
23
23
|
"types": "./dist/types/src/index.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./component": {
|
|
26
|
-
"import": "./dist/dpuse-shared-component.es.js",
|
|
27
|
-
"types": "./dist/types/src/component/index.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"./component/connection": {
|
|
30
|
-
"import": "./dist/dpuse-shared-componentConnection.es.js",
|
|
31
|
-
"types": "./dist/types/src/component/connection/index.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./component/dataView": {
|
|
34
|
-
"import": "./dist/dpuse-shared-componentDataView.es.js",
|
|
35
|
-
"types": "./dist/types/src/component/dataView/index.d.ts"
|
|
36
|
-
},
|
|
37
|
-
"./component/eventQuery": {
|
|
38
|
-
"import": "./dist/dpuse-shared-componentEventQuery.es.js",
|
|
39
|
-
"types": "./dist/types/src/component/eventQuery/index.d.ts"
|
|
40
|
-
},
|
|
41
|
-
"./component/context": {
|
|
42
|
-
"import": "./dist/dpuse-shared-componentContext.es.js",
|
|
43
|
-
"types": "./dist/types/src/component/context/index.d.ts"
|
|
44
|
-
},
|
|
45
|
-
"./component/context/model": {
|
|
46
|
-
"import": "./dist/dpuse-shared-componentContextModel.es.js",
|
|
47
|
-
"types": "./dist/types/src/component/context/model/index.d.ts"
|
|
48
|
-
},
|
|
49
|
-
"./component/context/model/dimension": {
|
|
50
|
-
"import": "./dist/dpuse-shared-componentContextModelDimension.es.js",
|
|
51
|
-
"types": "./dist/types/src/component/context/model/dimension/index.d.ts"
|
|
52
|
-
},
|
|
53
|
-
"./component/context/model/dimension/hierarchy": {
|
|
54
|
-
"import": "./dist/dpuse-shared-componentContextModelDimensionHierarchy.es.js",
|
|
55
|
-
"types": "./dist/types/src/component/context/model/dimension/hierarchy/index.d.ts"
|
|
56
|
-
},
|
|
57
|
-
"./component/context/model/entity": {
|
|
58
|
-
"import": "./dist/dpuse-shared-componentContextModelEntity.es.js",
|
|
59
|
-
"types": "./dist/types/src/component/context/model/entity/index.d.ts"
|
|
60
|
-
},
|
|
61
|
-
"./component/context/model/entity/dataItem": {
|
|
62
|
-
"import": "./dist/dpuse-shared-componentContextModelEntityDataItem.es.js",
|
|
63
|
-
"types": "./dist/types/src/component/context/model/entity/dataItem/index.d.ts"
|
|
64
|
-
},
|
|
65
|
-
"./component/context/model/entity/event": {
|
|
66
|
-
"import": "./dist/dpuse-shared-componentContextModelEntityEvent.es.js",
|
|
67
|
-
"types": "./dist/types/src/component/context/model/entity/event/index.d.ts"
|
|
68
|
-
},
|
|
69
|
-
"./component/context/model/entity/primaryMeasure": {
|
|
70
|
-
"import": "./dist/dpuse-shared-componentContextModelEntityPrimaryMeasure.es.js",
|
|
71
|
-
"types": "./dist/types/src/component/context/model/entity/primaryMeasure/index.d.ts"
|
|
72
|
-
},
|
|
73
|
-
"./component/context/model/secondaryMeasure": {
|
|
74
|
-
"import": "./dist/dpuse-shared-componentContextModelSecondaryMeasure.es.js",
|
|
75
|
-
"types": "./dist/types/src/component/context/model/secondaryMeasure/index.d.ts"
|
|
76
|
-
},
|
|
77
|
-
"./component/module": {
|
|
78
|
-
"import": "./dist/dpuse-shared-componentModule.es.js",
|
|
79
|
-
"types": "./dist/types/src/component/module/index.d.ts"
|
|
80
|
-
},
|
|
81
|
-
"./component/module/connector": {
|
|
82
|
-
"import": "./dist/dpuse-shared-componentModuleConnector.es.js",
|
|
83
|
-
"types": "./dist/types/src/component/module/connector/index.d.ts"
|
|
84
|
-
},
|
|
85
|
-
"./component/module/engine": {
|
|
86
|
-
"import": "./dist/dpuse-shared-componentModuleEngine.es.js",
|
|
87
|
-
"types": "./dist/types/src/component/module/engine/index.d.ts"
|
|
88
|
-
},
|
|
89
|
-
"./component/module/presenter": {
|
|
90
|
-
"import": "./dist/dpuse-shared-componentModulePresenter.es.js",
|
|
91
|
-
"types": "./dist/types/src/component/module/presenter/index.d.ts"
|
|
92
|
-
},
|
|
93
|
-
"./component/module/cookbook": {
|
|
94
|
-
"import": "./dist/dpuse-shared-componentModuleCookbook.es.js",
|
|
95
|
-
"types": "./dist/types/src/component/module/cookbook/index.d.ts"
|
|
96
|
-
},
|
|
97
|
-
"./component/module/tool": {
|
|
98
|
-
"import": "./dist/dpuse-shared-componentModuleTool.es.js",
|
|
99
|
-
"types": "./dist/types/src/component/module/tool/index.d.ts"
|
|
100
|
-
},
|
|
101
|
-
"./component/presentation": {
|
|
102
|
-
"import": "./dist/dpuse-shared-componentPresentation.es.js",
|
|
103
|
-
"types": "./dist/types/src/component/presentation/index.d.ts"
|
|
104
|
-
},
|
|
105
|
-
"./component/recipe": {
|
|
106
|
-
"import": "./dist/dpuse-shared-componentRecipe.es.js",
|
|
107
|
-
"types": "./dist/types/src/component/recipe/index.d.ts"
|
|
108
|
-
},
|
|
109
|
-
"./encoding": {
|
|
110
|
-
"import": "./dist/dpuse-shared-encoding.es.js",
|
|
111
|
-
"types": "./dist/types/src/encoding/index.d.ts"
|
|
112
|
-
},
|
|
113
|
-
"./errors": {
|
|
114
|
-
"import": "./dist/dpuse-shared-errors.es.js",
|
|
115
|
-
"types": "./dist/types/src/errors/index.d.ts"
|
|
116
|
-
},
|
|
117
|
-
"./locale": {
|
|
118
|
-
"import": "./dist/dpuse-shared-locale.es.js",
|
|
119
|
-
"types": "./dist/types/src/locale/index.d.ts"
|
|
120
|
-
},
|
|
121
|
-
"./utilities": {
|
|
122
|
-
"import": "./dist/dpuse-shared-utilities.es.js",
|
|
123
|
-
"types": "./dist/types/src/utilities/index.d.ts"
|
|
124
24
|
}
|
|
125
25
|
},
|
|
126
26
|
"files": [
|
|
@@ -151,7 +51,7 @@
|
|
|
151
51
|
"audit": "node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
|
|
152
52
|
"build": "node -e \"import('@dpuse/dpuse-development').then(m => m.buildProject())\"",
|
|
153
53
|
"check": "node -e \"import('@dpuse/dpuse-development').then(m => m.checkProject())\"",
|
|
154
|
-
"document": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentProject(
|
|
54
|
+
"document": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentProject('BSD-3-Clause;MIT'))\"",
|
|
155
55
|
"format": "node -e \"import('@dpuse/dpuse-development').then(m => m.formatCode())\"",
|
|
156
56
|
"lint": "node -e \"import('@dpuse/dpuse-development').then(m => m.lintCode())\"",
|
|
157
57
|
"release": "npm run build && npm run document && npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --target \"$(git rev-parse HEAD)\" --generate-notes --latest",
|
|
@@ -163,18 +63,18 @@
|
|
|
163
63
|
"valibot": "^1.5.0"
|
|
164
64
|
},
|
|
165
65
|
"devDependencies": {
|
|
166
|
-
"@dpuse/dpuse-development": "^0.3.
|
|
167
|
-
"@dpuse/eslint-config-dpuse": "^1.0.
|
|
168
|
-
"@types/node": "^26.6.
|
|
169
|
-
"@vitest/coverage-v8": "^5.0.
|
|
66
|
+
"@dpuse/dpuse-development": "^0.3.813",
|
|
67
|
+
"@dpuse/eslint-config-dpuse": "^1.0.124",
|
|
68
|
+
"@types/node": "^26.6.4",
|
|
69
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
170
70
|
"eslint": "^10.11.0",
|
|
171
|
-
"fallow": "^3.
|
|
71
|
+
"fallow": "^3.31.0",
|
|
172
72
|
"fast-check": "^4.10.2",
|
|
173
73
|
"prettier": "^3.9.9",
|
|
174
74
|
"sonda": "^0.14.0",
|
|
175
75
|
"typescript": "^6.0.3",
|
|
176
|
-
"vite": "^8.3.
|
|
76
|
+
"vite": "^8.3.2",
|
|
177
77
|
"vite-plugin-dts": "^5.1.1",
|
|
178
|
-
"vitest": "^5.0.
|
|
78
|
+
"vitest": "^5.0.3"
|
|
179
79
|
}
|
|
180
80
|
}
|
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
//#region node_modules/valibot/dist/index.mjs
|
|
2
|
-
var e = {
|
|
3
|
-
lang: void 0,
|
|
4
|
-
message: void 0,
|
|
5
|
-
abortEarly: void 0,
|
|
6
|
-
abortPipeEarly: void 0
|
|
7
|
-
};
|
|
8
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
9
|
-
function t(t) {
|
|
10
|
-
return t ? {
|
|
11
|
-
lang: t?.lang ?? void 0,
|
|
12
|
-
message: t?.message,
|
|
13
|
-
abortEarly: t?.abortEarly ?? void 0,
|
|
14
|
-
abortPipeEarly: t?.abortPipeEarly ?? void 0
|
|
15
|
-
} : e;
|
|
16
|
-
}
|
|
17
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
18
|
-
function n(e) {
|
|
19
|
-
let t = typeof e;
|
|
20
|
-
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
21
|
-
}
|
|
22
|
-
function r(e, t, r, i, a) {
|
|
23
|
-
let o = a && "input" in a ? a.input : r.value, s = a?.expected ?? e.expects ?? null, c = a?.received ?? /* @__PURE__ */ n(o), l = {
|
|
24
|
-
kind: e.kind,
|
|
25
|
-
type: e.type,
|
|
26
|
-
input: o,
|
|
27
|
-
expected: s,
|
|
28
|
-
received: c,
|
|
29
|
-
message: `Invalid ${t}: ${s ? `Expected ${s} but r` : "R"}eceived ${c}`,
|
|
30
|
-
requirement: e.requirement,
|
|
31
|
-
path: a?.path,
|
|
32
|
-
issues: a?.issues,
|
|
33
|
-
lang: i.lang,
|
|
34
|
-
abortEarly: i.abortEarly,
|
|
35
|
-
abortPipeEarly: i.abortPipeEarly
|
|
36
|
-
}, u = e.kind === "schema", d = a?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? i.message ?? (l.lang, void 0);
|
|
37
|
-
d !== void 0 && (l.message = typeof d == "function" ? d(l) : d), u && (r.typed = !1), r.issues ? r.issues.push(l) : r.issues = [l];
|
|
38
|
-
}
|
|
39
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
40
|
-
function i(e, t) {
|
|
41
|
-
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
42
|
-
}
|
|
43
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
44
|
-
function a(e, t) {
|
|
45
|
-
return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
46
|
-
}
|
|
47
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
48
|
-
function o(e, t) {
|
|
49
|
-
let n = [...new Set(e)];
|
|
50
|
-
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
51
|
-
}
|
|
52
|
-
function s(e) {
|
|
53
|
-
return e["~standard"] = {
|
|
54
|
-
version: 1,
|
|
55
|
-
vendor: "valibot",
|
|
56
|
-
validate: (n) => e["~run"]({ value: n }, /* @__PURE__ */ t())
|
|
57
|
-
}, e;
|
|
58
|
-
}
|
|
59
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
60
|
-
function c(e, t, n) {
|
|
61
|
-
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
62
|
-
}
|
|
63
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
64
|
-
function l(e, t, n) {
|
|
65
|
-
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
66
|
-
}
|
|
67
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
68
|
-
function u(e, t) {
|
|
69
|
-
return s({
|
|
70
|
-
kind: "schema",
|
|
71
|
-
type: "array",
|
|
72
|
-
reference: u,
|
|
73
|
-
expects: "Array",
|
|
74
|
-
async: !1,
|
|
75
|
-
item: e,
|
|
76
|
-
message: t,
|
|
77
|
-
"~run"(e, t) {
|
|
78
|
-
let n = e.value;
|
|
79
|
-
if (Array.isArray(n)) {
|
|
80
|
-
e.typed = !0, e.value = [];
|
|
81
|
-
for (let r = 0; r < n.length; r++) {
|
|
82
|
-
let i = n[r], a = this.item["~run"]({ value: i }, t);
|
|
83
|
-
if (a.issues) {
|
|
84
|
-
let o = {
|
|
85
|
-
type: "array",
|
|
86
|
-
origin: "value",
|
|
87
|
-
input: n,
|
|
88
|
-
key: r,
|
|
89
|
-
value: i
|
|
90
|
-
};
|
|
91
|
-
for (let t of a.issues) t.path ? t.path.unshift(o) : t.path = [o], e.issues?.push(t);
|
|
92
|
-
if (e.issues ||= a.issues, t.abortEarly) {
|
|
93
|
-
e.typed = !1;
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
a.typed || (e.typed = !1), e.value.push(a.value);
|
|
98
|
-
}
|
|
99
|
-
} else r(this, "type", e, t);
|
|
100
|
-
return e;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
105
|
-
function d(e) {
|
|
106
|
-
return s({
|
|
107
|
-
kind: "schema",
|
|
108
|
-
type: "boolean",
|
|
109
|
-
reference: d,
|
|
110
|
-
expects: "boolean",
|
|
111
|
-
async: !1,
|
|
112
|
-
message: e,
|
|
113
|
-
"~run"(e, t) {
|
|
114
|
-
return typeof e.value == "boolean" ? e.typed = !0 : r(this, "type", e, t), e;
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
119
|
-
function f(e, t) {
|
|
120
|
-
return s({
|
|
121
|
-
kind: "schema",
|
|
122
|
-
type: "literal",
|
|
123
|
-
reference: f,
|
|
124
|
-
expects: /* @__PURE__ */ n(e),
|
|
125
|
-
async: !1,
|
|
126
|
-
literal: e,
|
|
127
|
-
message: t,
|
|
128
|
-
"~run"(e, t) {
|
|
129
|
-
return /* @__PURE__ */ i(e.value, this.literal) ? e.typed = !0 : r(this, "type", e, t), e;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
134
|
-
function p(e, t) {
|
|
135
|
-
return s({
|
|
136
|
-
kind: "schema",
|
|
137
|
-
type: "nullable",
|
|
138
|
-
reference: p,
|
|
139
|
-
expects: `(${e.expects} | null)`,
|
|
140
|
-
async: !1,
|
|
141
|
-
wrapped: e,
|
|
142
|
-
default: t,
|
|
143
|
-
"~run"(e, t) {
|
|
144
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ l(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
149
|
-
function m(e) {
|
|
150
|
-
return s({
|
|
151
|
-
kind: "schema",
|
|
152
|
-
type: "number",
|
|
153
|
-
reference: m,
|
|
154
|
-
expects: "number",
|
|
155
|
-
async: !1,
|
|
156
|
-
message: e,
|
|
157
|
-
"~run"(e, t) {
|
|
158
|
-
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : r(this, "type", e, t), e;
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
163
|
-
function h(e, t) {
|
|
164
|
-
return s({
|
|
165
|
-
kind: "schema",
|
|
166
|
-
type: "optional",
|
|
167
|
-
reference: h,
|
|
168
|
-
expects: `(${e.expects} | undefined)`,
|
|
169
|
-
async: !1,
|
|
170
|
-
wrapped: e,
|
|
171
|
-
default: t,
|
|
172
|
-
"~run"(e, t) {
|
|
173
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ l(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
178
|
-
function g(e, t, n) {
|
|
179
|
-
return s({
|
|
180
|
-
kind: "schema",
|
|
181
|
-
type: "record",
|
|
182
|
-
reference: g,
|
|
183
|
-
expects: "Object",
|
|
184
|
-
async: !1,
|
|
185
|
-
key: e,
|
|
186
|
-
value: t,
|
|
187
|
-
message: n,
|
|
188
|
-
"~run"(e, t) {
|
|
189
|
-
let n = e.value;
|
|
190
|
-
if (n && typeof n == "object") {
|
|
191
|
-
e.typed = !0, e.value = {};
|
|
192
|
-
for (let r in n) if (/* @__PURE__ */ a(n, r)) {
|
|
193
|
-
let i = n[r], a = this.key["~run"]({ value: r }, t);
|
|
194
|
-
if (a.issues) {
|
|
195
|
-
let o = {
|
|
196
|
-
type: "object",
|
|
197
|
-
origin: "key",
|
|
198
|
-
input: n,
|
|
199
|
-
key: r,
|
|
200
|
-
value: i
|
|
201
|
-
};
|
|
202
|
-
for (let t of a.issues) t.path = [o], e.issues?.push(t);
|
|
203
|
-
if (e.issues ||= a.issues, t.abortEarly) {
|
|
204
|
-
e.typed = !1;
|
|
205
|
-
break;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
let o = this.value["~run"]({ value: i }, t);
|
|
209
|
-
if (o.issues) {
|
|
210
|
-
let a = {
|
|
211
|
-
type: "object",
|
|
212
|
-
origin: "value",
|
|
213
|
-
input: n,
|
|
214
|
-
key: r,
|
|
215
|
-
value: i
|
|
216
|
-
};
|
|
217
|
-
for (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);
|
|
218
|
-
if (e.issues ||= o.issues, t.abortEarly) {
|
|
219
|
-
e.typed = !1;
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
(!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
|
|
224
|
-
}
|
|
225
|
-
} else r(this, "type", e, t);
|
|
226
|
-
return e;
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
231
|
-
function _(e, t) {
|
|
232
|
-
return s({
|
|
233
|
-
kind: "schema",
|
|
234
|
-
type: "strict_object",
|
|
235
|
-
reference: _,
|
|
236
|
-
expects: "Object",
|
|
237
|
-
async: !1,
|
|
238
|
-
entries: e,
|
|
239
|
-
message: t,
|
|
240
|
-
"~run"(e, t) {
|
|
241
|
-
let n = e.value;
|
|
242
|
-
if (n && typeof n == "object") {
|
|
243
|
-
e.typed = !0, e.value = {};
|
|
244
|
-
for (let i in this.entries) {
|
|
245
|
-
let a = this.entries[i];
|
|
246
|
-
if (i in n || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
|
|
247
|
-
let r = i in n ? n[i] : /* @__PURE__ */ l(a), o = a["~run"]({ value: r }, t);
|
|
248
|
-
if (o.issues) {
|
|
249
|
-
let a = {
|
|
250
|
-
type: "object",
|
|
251
|
-
origin: "value",
|
|
252
|
-
input: n,
|
|
253
|
-
key: i,
|
|
254
|
-
value: r
|
|
255
|
-
};
|
|
256
|
-
for (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);
|
|
257
|
-
if (e.issues ||= o.issues, t.abortEarly) {
|
|
258
|
-
e.typed = !1;
|
|
259
|
-
break;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
o.typed || (e.typed = !1), e.value[i] = o.value;
|
|
263
|
-
} else if (a.fallback !== void 0) e.value[i] = /* @__PURE__ */ c(a);
|
|
264
|
-
else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (r(this, "key", e, t, {
|
|
265
|
-
input: void 0,
|
|
266
|
-
expected: `"${i}"`,
|
|
267
|
-
path: [{
|
|
268
|
-
type: "object",
|
|
269
|
-
origin: "key",
|
|
270
|
-
input: n,
|
|
271
|
-
key: i,
|
|
272
|
-
value: n[i]
|
|
273
|
-
}]
|
|
274
|
-
}), t.abortEarly)) break;
|
|
275
|
-
}
|
|
276
|
-
if (!e.issues || !t.abortEarly) {
|
|
277
|
-
for (let i in n) if (!Object.prototype.hasOwnProperty.call(this.entries, i)) {
|
|
278
|
-
r(this, "key", e, t, {
|
|
279
|
-
input: i,
|
|
280
|
-
expected: "never",
|
|
281
|
-
path: [{
|
|
282
|
-
type: "object",
|
|
283
|
-
origin: "key",
|
|
284
|
-
input: n,
|
|
285
|
-
key: i,
|
|
286
|
-
value: n[i]
|
|
287
|
-
}]
|
|
288
|
-
});
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
} else r(this, "type", e, t);
|
|
293
|
-
return e;
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
298
|
-
function v(e) {
|
|
299
|
-
return s({
|
|
300
|
-
kind: "schema",
|
|
301
|
-
type: "string",
|
|
302
|
-
reference: v,
|
|
303
|
-
expects: "string",
|
|
304
|
-
async: !1,
|
|
305
|
-
message: e,
|
|
306
|
-
"~run"(e, t) {
|
|
307
|
-
return typeof e.value == "string" ? e.typed = !0 : r(this, "type", e, t), e;
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
312
|
-
function y(e) {
|
|
313
|
-
let t;
|
|
314
|
-
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
315
|
-
else t = n.issues;
|
|
316
|
-
return t;
|
|
317
|
-
}
|
|
318
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
319
|
-
function b(e, t) {
|
|
320
|
-
return s({
|
|
321
|
-
kind: "schema",
|
|
322
|
-
type: "union",
|
|
323
|
-
reference: b,
|
|
324
|
-
expects: /* @__PURE__ */ o(e.map((e) => e.expects), "|"),
|
|
325
|
-
async: !1,
|
|
326
|
-
options: e,
|
|
327
|
-
message: t,
|
|
328
|
-
"~run"(e, t) {
|
|
329
|
-
let n, i, a;
|
|
330
|
-
for (let r of this.options) {
|
|
331
|
-
let o = r["~run"]({ value: e.value }, t);
|
|
332
|
-
if (o.typed) {
|
|
333
|
-
if (o.issues) i ? i.push(o) : i = [o];
|
|
334
|
-
else {
|
|
335
|
-
n = o;
|
|
336
|
-
break;
|
|
337
|
-
}
|
|
338
|
-
} else a ? a.push(o) : a = [o];
|
|
339
|
-
}
|
|
340
|
-
if (n) return n;
|
|
341
|
-
if (i) {
|
|
342
|
-
if (i.length === 1) return i[0];
|
|
343
|
-
r(this, "type", e, t, { issues: /* @__PURE__ */ y(i) }), e.typed = !0;
|
|
344
|
-
} else if (a?.length === 1) return a[0];
|
|
345
|
-
else r(this, "type", e, t, { issues: /* @__PURE__ */ y(a) });
|
|
346
|
-
return e;
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
//#endregion
|
|
351
|
-
//#region src/locale/locale.schema.ts
|
|
352
|
-
var x = /* @__PURE__ */ _({
|
|
353
|
-
en: /* @__PURE__ */ v(),
|
|
354
|
-
es: /* @__PURE__ */ v()
|
|
355
|
-
}), S = {
|
|
356
|
-
id: /* @__PURE__ */ v(),
|
|
357
|
-
label: /* @__PURE__ */ _({
|
|
358
|
-
en: /* @__PURE__ */ h(/* @__PURE__ */ v()),
|
|
359
|
-
es: /* @__PURE__ */ h(/* @__PURE__ */ v())
|
|
360
|
-
}),
|
|
361
|
-
description: /* @__PURE__ */ _({
|
|
362
|
-
en: /* @__PURE__ */ h(/* @__PURE__ */ v()),
|
|
363
|
-
es: /* @__PURE__ */ h(/* @__PURE__ */ v())
|
|
364
|
-
}),
|
|
365
|
-
icon: /* @__PURE__ */ p(/* @__PURE__ */ v()),
|
|
366
|
-
iconDark: /* @__PURE__ */ p(/* @__PURE__ */ v())
|
|
367
|
-
}, C = (e) => /* @__PURE__ */ b(e.map((e) => /* @__PURE__ */ f(e))), w = C([
|
|
368
|
-
"app",
|
|
369
|
-
"connector",
|
|
370
|
-
"connectorConnection",
|
|
371
|
-
"context",
|
|
372
|
-
"contextArea",
|
|
373
|
-
"contextModel",
|
|
374
|
-
"contextModelDimension",
|
|
375
|
-
"contextModelDimensionHierarchy",
|
|
376
|
-
"contextModelEntity",
|
|
377
|
-
"contextModelEntityDataItem",
|
|
378
|
-
"contextModelEntityEvent",
|
|
379
|
-
"contextModelEntityPrimaryMeasure",
|
|
380
|
-
"contextModelSecondaryMeasure",
|
|
381
|
-
"cookbook",
|
|
382
|
-
"cookbookRecipe",
|
|
383
|
-
"dataView",
|
|
384
|
-
"engine",
|
|
385
|
-
"eventQuery",
|
|
386
|
-
"presenter",
|
|
387
|
-
"presenterPresentation",
|
|
388
|
-
"tool"
|
|
389
|
-
]), T = C([
|
|
390
|
-
"danger",
|
|
391
|
-
"success",
|
|
392
|
-
"warning"
|
|
393
|
-
]), E = C([
|
|
394
|
-
"alpha",
|
|
395
|
-
"beta",
|
|
396
|
-
"releaseCandidate",
|
|
397
|
-
"generalAvailability"
|
|
398
|
-
]), D = /* @__PURE__ */ _({
|
|
399
|
-
color: T,
|
|
400
|
-
label: /* @__PURE__ */ v()
|
|
401
|
-
}), O = {
|
|
402
|
-
...S,
|
|
403
|
-
typeId: w
|
|
404
|
-
}, k = /* @__PURE__ */ _({
|
|
405
|
-
...O,
|
|
406
|
-
order: /* @__PURE__ */ m(),
|
|
407
|
-
path: /* @__PURE__ */ v()
|
|
408
|
-
}), A = {
|
|
409
|
-
...O,
|
|
410
|
-
firstCreatedAt: /* @__PURE__ */ p(/* @__PURE__ */ m()),
|
|
411
|
-
lastUpdatedAt: /* @__PURE__ */ p(/* @__PURE__ */ m()),
|
|
412
|
-
status: /* @__PURE__ */ p(D),
|
|
413
|
-
statusId: /* @__PURE__ */ p(E)
|
|
414
|
-
}, j = /* @__PURE__ */ _({ ...A });
|
|
415
|
-
//#endregion
|
|
416
|
-
export { x as a, f as c, h as d, g as f, C as i, p as l, v as m, j as n, u as o, _ as p, k as r, d as s, A as t, m as u };
|