@dpuse/dpuse-shared 0.3.801 → 0.3.802
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 +5 -5
- package/dist/{componentConfig.schema-BvhUd4m4.js → componentConfig.schema-CIFzGnyU.js} +34 -65
- package/dist/dpuse-shared-component.es.js +1 -1
- package/dist/dpuse-shared-componentModuleConnector.es.js +2 -2
- package/dist/dpuse-shared-componentModuleCookbook.es.js +2 -2
- package/dist/dpuse-shared-componentModulePresenter.es.js +2 -2
- package/dist/{moduleConfig.schema-CcJFr8H1.js → moduleConfig.schema-BS3a4OcS.js} +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -142,18 +142,18 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
142
142
|
|
|
143
143
|
|Chunk/Module/File|Composition|
|
|
144
144
|
|:------ |:-----------|
|
|
145
|
-
| dist/componentConfig.schema-
|
|
145
|
+
| dist/componentConfig.schema-CIFzGnyU.js | 9.9 kB · brotli 2.2 kB |
|
|
146
146
|
| dist/dpuse-shared-encoding.es.js | 6.8 kB · brotli 953 B |
|
|
147
147
|
| dist/dpuse-shared-componentModuleConnector.es.js | 3.6 kB · brotli 1.2 kB |
|
|
148
148
|
| dist/dpuse-shared-utilities.es.js | 3.6 kB · brotli 1.1 kB |
|
|
149
149
|
| dist/dpuse-shared-errors.es.js | 3.5 kB · brotli 1.1 kB |
|
|
150
150
|
| dist/dpuse-shared-locale.es.js | 1.0 kB · brotli 393 B |
|
|
151
|
-
| dist/dpuse-shared-component.es.js | 842 B · brotli
|
|
151
|
+
| dist/dpuse-shared-component.es.js | 842 B · brotli 352 B |
|
|
152
152
|
| dist/dpuse-shared-componentModuleTool.es.js | 784 B · brotli 398 B |
|
|
153
153
|
| dist/dpuse-shared-componentDataView.es.js | 722 B · brotli 310 B |
|
|
154
|
-
| dist/dpuse-shared-componentModulePresenter.es.js | 411 B · brotli
|
|
155
|
-
| dist/moduleConfig.schema-
|
|
156
|
-
| dist/dpuse-shared-componentModuleCookbook.es.js | 370 B · brotli
|
|
154
|
+
| dist/dpuse-shared-componentModulePresenter.es.js | 411 B · brotli 227 B |
|
|
155
|
+
| dist/moduleConfig.schema-BS3a4OcS.js | 405 B · brotli 225 B |
|
|
156
|
+
| dist/dpuse-shared-componentModuleCookbook.es.js | 370 B · brotli 234 B |
|
|
157
157
|
| dist/dpuse-shared-componentRecipe.es.js | 94 B · brotli 70 B |
|
|
158
158
|
| dist/dpuse-shared-componentConnection.es.js | 0 B · brotli 1 B |
|
|
159
159
|
| dist/dpuse-shared-componentContext.es.js | 0 B · brotli 1 B |
|
|
@@ -36,27 +36,26 @@ function r(e, t, r, i, a) {
|
|
|
36
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
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
38
|
}
|
|
39
|
-
var i = /* @__PURE__ */ new WeakMap();
|
|
40
39
|
/* @__NO_SIDE_EFFECTS__ */
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
return n || (n = {
|
|
44
|
-
version: 1,
|
|
45
|
-
vendor: "valibot",
|
|
46
|
-
validate(n) {
|
|
47
|
-
return e["~run"]({ value: n }, /* @__PURE__ */ t());
|
|
48
|
-
}
|
|
49
|
-
}, i.set(e, n)), n;
|
|
40
|
+
function i(e, t) {
|
|
41
|
+
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
50
42
|
}
|
|
51
43
|
/* @__NO_SIDE_EFFECTS__ */
|
|
52
|
-
function
|
|
44
|
+
function a(e, t) {
|
|
53
45
|
return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
54
46
|
}
|
|
55
47
|
/* @__NO_SIDE_EFFECTS__ */
|
|
56
|
-
function
|
|
48
|
+
function o(e, t) {
|
|
57
49
|
let n = [...new Set(e)];
|
|
58
50
|
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
59
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
|
+
}
|
|
60
59
|
/* @__NO_SIDE_EFFECTS__ */
|
|
61
60
|
function c(e, t, n) {
|
|
62
61
|
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
@@ -67,7 +66,7 @@ function l(e, t, n) {
|
|
|
67
66
|
}
|
|
68
67
|
/* @__NO_SIDE_EFFECTS__ */
|
|
69
68
|
function u(e, t) {
|
|
70
|
-
return {
|
|
69
|
+
return s({
|
|
71
70
|
kind: "schema",
|
|
72
71
|
type: "array",
|
|
73
72
|
reference: u,
|
|
@@ -75,9 +74,6 @@ function u(e, t) {
|
|
|
75
74
|
async: !1,
|
|
76
75
|
item: e,
|
|
77
76
|
message: t,
|
|
78
|
-
get "~standard"() {
|
|
79
|
-
return /* @__PURE__ */ a(this);
|
|
80
|
-
},
|
|
81
77
|
"~run"(e, t) {
|
|
82
78
|
let n = e.value;
|
|
83
79
|
if (Array.isArray(n)) {
|
|
@@ -103,28 +99,25 @@ function u(e, t) {
|
|
|
103
99
|
} else r(this, "type", e, t);
|
|
104
100
|
return e;
|
|
105
101
|
}
|
|
106
|
-
};
|
|
102
|
+
});
|
|
107
103
|
}
|
|
108
104
|
/* @__NO_SIDE_EFFECTS__ */
|
|
109
105
|
function d(e) {
|
|
110
|
-
return {
|
|
106
|
+
return s({
|
|
111
107
|
kind: "schema",
|
|
112
108
|
type: "boolean",
|
|
113
109
|
reference: d,
|
|
114
110
|
expects: "boolean",
|
|
115
111
|
async: !1,
|
|
116
112
|
message: e,
|
|
117
|
-
get "~standard"() {
|
|
118
|
-
return /* @__PURE__ */ a(this);
|
|
119
|
-
},
|
|
120
113
|
"~run"(e, t) {
|
|
121
114
|
return typeof e.value == "boolean" ? e.typed = !0 : r(this, "type", e, t), e;
|
|
122
115
|
}
|
|
123
|
-
};
|
|
116
|
+
});
|
|
124
117
|
}
|
|
125
118
|
/* @__NO_SIDE_EFFECTS__ */
|
|
126
119
|
function f(e, t) {
|
|
127
|
-
return {
|
|
120
|
+
return s({
|
|
128
121
|
kind: "schema",
|
|
129
122
|
type: "literal",
|
|
130
123
|
reference: f,
|
|
@@ -132,17 +125,14 @@ function f(e, t) {
|
|
|
132
125
|
async: !1,
|
|
133
126
|
literal: e,
|
|
134
127
|
message: t,
|
|
135
|
-
get "~standard"() {
|
|
136
|
-
return /* @__PURE__ */ a(this);
|
|
137
|
-
},
|
|
138
128
|
"~run"(e, t) {
|
|
139
|
-
return e.value
|
|
129
|
+
return /* @__PURE__ */ i(e.value, this.literal) ? e.typed = !0 : r(this, "type", e, t), e;
|
|
140
130
|
}
|
|
141
|
-
};
|
|
131
|
+
});
|
|
142
132
|
}
|
|
143
133
|
/* @__NO_SIDE_EFFECTS__ */
|
|
144
134
|
function p(e, t) {
|
|
145
|
-
return {
|
|
135
|
+
return s({
|
|
146
136
|
kind: "schema",
|
|
147
137
|
type: "nullable",
|
|
148
138
|
reference: p,
|
|
@@ -150,34 +140,28 @@ function p(e, t) {
|
|
|
150
140
|
async: !1,
|
|
151
141
|
wrapped: e,
|
|
152
142
|
default: t,
|
|
153
|
-
get "~standard"() {
|
|
154
|
-
return /* @__PURE__ */ a(this);
|
|
155
|
-
},
|
|
156
143
|
"~run"(e, t) {
|
|
157
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);
|
|
158
145
|
}
|
|
159
|
-
};
|
|
146
|
+
});
|
|
160
147
|
}
|
|
161
148
|
/* @__NO_SIDE_EFFECTS__ */
|
|
162
149
|
function m(e) {
|
|
163
|
-
return {
|
|
150
|
+
return s({
|
|
164
151
|
kind: "schema",
|
|
165
152
|
type: "number",
|
|
166
153
|
reference: m,
|
|
167
154
|
expects: "number",
|
|
168
155
|
async: !1,
|
|
169
156
|
message: e,
|
|
170
|
-
get "~standard"() {
|
|
171
|
-
return /* @__PURE__ */ a(this);
|
|
172
|
-
},
|
|
173
157
|
"~run"(e, t) {
|
|
174
158
|
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : r(this, "type", e, t), e;
|
|
175
159
|
}
|
|
176
|
-
};
|
|
160
|
+
});
|
|
177
161
|
}
|
|
178
162
|
/* @__NO_SIDE_EFFECTS__ */
|
|
179
163
|
function h(e, t) {
|
|
180
|
-
return {
|
|
164
|
+
return s({
|
|
181
165
|
kind: "schema",
|
|
182
166
|
type: "object",
|
|
183
167
|
reference: h,
|
|
@@ -185,9 +169,6 @@ function h(e, t) {
|
|
|
185
169
|
async: !1,
|
|
186
170
|
entries: e,
|
|
187
171
|
message: t,
|
|
188
|
-
get "~standard"() {
|
|
189
|
-
return /* @__PURE__ */ a(this);
|
|
190
|
-
},
|
|
191
172
|
"~run"(e, t) {
|
|
192
173
|
let n = e.value;
|
|
193
174
|
if (n && typeof n == "object") {
|
|
@@ -227,11 +208,11 @@ function h(e, t) {
|
|
|
227
208
|
} else r(this, "type", e, t);
|
|
228
209
|
return e;
|
|
229
210
|
}
|
|
230
|
-
};
|
|
211
|
+
});
|
|
231
212
|
}
|
|
232
213
|
/* @__NO_SIDE_EFFECTS__ */
|
|
233
214
|
function g(e, t) {
|
|
234
|
-
return {
|
|
215
|
+
return s({
|
|
235
216
|
kind: "schema",
|
|
236
217
|
type: "optional",
|
|
237
218
|
reference: g,
|
|
@@ -239,17 +220,14 @@ function g(e, t) {
|
|
|
239
220
|
async: !1,
|
|
240
221
|
wrapped: e,
|
|
241
222
|
default: t,
|
|
242
|
-
get "~standard"() {
|
|
243
|
-
return /* @__PURE__ */ a(this);
|
|
244
|
-
},
|
|
245
223
|
"~run"(e, t) {
|
|
246
224
|
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);
|
|
247
225
|
}
|
|
248
|
-
};
|
|
226
|
+
});
|
|
249
227
|
}
|
|
250
228
|
/* @__NO_SIDE_EFFECTS__ */
|
|
251
229
|
function _(e, t, n) {
|
|
252
|
-
return {
|
|
230
|
+
return s({
|
|
253
231
|
kind: "schema",
|
|
254
232
|
type: "record",
|
|
255
233
|
reference: _,
|
|
@@ -258,14 +236,11 @@ function _(e, t, n) {
|
|
|
258
236
|
key: e,
|
|
259
237
|
value: t,
|
|
260
238
|
message: n,
|
|
261
|
-
get "~standard"() {
|
|
262
|
-
return /* @__PURE__ */ a(this);
|
|
263
|
-
},
|
|
264
239
|
"~run"(e, t) {
|
|
265
240
|
let n = e.value;
|
|
266
241
|
if (n && typeof n == "object") {
|
|
267
242
|
e.typed = !0, e.value = {};
|
|
268
|
-
for (let r in n) if (/* @__PURE__ */
|
|
243
|
+
for (let r in n) if (/* @__PURE__ */ a(n, r)) {
|
|
269
244
|
let i = n[r], a = this.key["~run"]({ value: r }, t);
|
|
270
245
|
if (a.issues) {
|
|
271
246
|
let o = {
|
|
@@ -301,24 +276,21 @@ function _(e, t, n) {
|
|
|
301
276
|
} else r(this, "type", e, t);
|
|
302
277
|
return e;
|
|
303
278
|
}
|
|
304
|
-
};
|
|
279
|
+
});
|
|
305
280
|
}
|
|
306
281
|
/* @__NO_SIDE_EFFECTS__ */
|
|
307
282
|
function v(e) {
|
|
308
|
-
return {
|
|
283
|
+
return s({
|
|
309
284
|
kind: "schema",
|
|
310
285
|
type: "string",
|
|
311
286
|
reference: v,
|
|
312
287
|
expects: "string",
|
|
313
288
|
async: !1,
|
|
314
289
|
message: e,
|
|
315
|
-
get "~standard"() {
|
|
316
|
-
return /* @__PURE__ */ a(this);
|
|
317
|
-
},
|
|
318
290
|
"~run"(e, t) {
|
|
319
291
|
return typeof e.value == "string" ? e.typed = !0 : r(this, "type", e, t), e;
|
|
320
292
|
}
|
|
321
|
-
};
|
|
293
|
+
});
|
|
322
294
|
}
|
|
323
295
|
/* @__NO_SIDE_EFFECTS__ */
|
|
324
296
|
function y(e) {
|
|
@@ -329,17 +301,14 @@ function y(e) {
|
|
|
329
301
|
}
|
|
330
302
|
/* @__NO_SIDE_EFFECTS__ */
|
|
331
303
|
function b(e, t) {
|
|
332
|
-
return {
|
|
304
|
+
return s({
|
|
333
305
|
kind: "schema",
|
|
334
306
|
type: "union",
|
|
335
307
|
reference: b,
|
|
336
|
-
expects: /* @__PURE__ */
|
|
308
|
+
expects: /* @__PURE__ */ o(e.map((e) => e.expects), "|"),
|
|
337
309
|
async: !1,
|
|
338
310
|
options: e,
|
|
339
311
|
message: t,
|
|
340
|
-
get "~standard"() {
|
|
341
|
-
return /* @__PURE__ */ a(this);
|
|
342
|
-
},
|
|
343
312
|
"~run"(e, t) {
|
|
344
313
|
let n, i, a;
|
|
345
314
|
for (let r of this.options) {
|
|
@@ -360,7 +329,7 @@ function b(e, t) {
|
|
|
360
329
|
else r(this, "type", e, t, { issues: /* @__PURE__ */ y(a) });
|
|
361
330
|
return e;
|
|
362
331
|
}
|
|
363
|
-
};
|
|
332
|
+
});
|
|
364
333
|
}
|
|
365
334
|
//#endregion
|
|
366
335
|
//#region src/locale/locale.schema.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createLabelMap as e, resolveLabel as t } from "./dpuse-shared-locale.es.js";
|
|
2
|
-
import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-
|
|
3
|
-
import { t as p } from "./moduleConfig.schema-
|
|
2
|
+
import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-CIFzGnyU.js";
|
|
3
|
+
import { t as p } from "./moduleConfig.schema-BS3a4OcS.js";
|
|
4
4
|
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
5
5
|
var m = o([
|
|
6
6
|
"abortOperation",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, d as t, i as n, o as r, r as i } from "./componentConfig.schema-
|
|
2
|
-
import { t as a } from "./moduleConfig.schema-
|
|
1
|
+
import { c as e, d as t, i as n, o as r, r as i } from "./componentConfig.schema-CIFzGnyU.js";
|
|
2
|
+
import { t as a } from "./moduleConfig.schema-BS3a4OcS.js";
|
|
3
3
|
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
4
4
|
var o = n(["list"]), s = t({
|
|
5
5
|
...a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, d as t, i as n, o as r, r as i } from "./componentConfig.schema-
|
|
2
|
-
import { t as a } from "./moduleConfig.schema-
|
|
1
|
+
import { c as e, d as t, i as n, o as r, r as i } from "./componentConfig.schema-CIFzGnyU.js";
|
|
2
|
+
import { t as a } from "./moduleConfig.schema-BS3a4OcS.js";
|
|
3
3
|
//#region src/component/module/presenter/presenterConfig.schema.ts
|
|
4
4
|
var o = n([
|
|
5
5
|
"list",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.802",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across all DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -149,15 +149,15 @@
|
|
|
149
149
|
"devDependencies": {
|
|
150
150
|
"@dpuse/dpuse-development": "^0.3.706",
|
|
151
151
|
"@dpuse/eslint-config-dpuse": "^1.0.116",
|
|
152
|
-
"@types/node": "^26.
|
|
153
|
-
"eslint": "^10.
|
|
154
|
-
"file-type": "^22.0
|
|
152
|
+
"@types/node": "^26.5.1",
|
|
153
|
+
"eslint": "^10.10.0",
|
|
154
|
+
"file-type": "^22.1.0",
|
|
155
155
|
"prettier": "^3.9.6",
|
|
156
156
|
"sonda": "^0.14.0",
|
|
157
157
|
"typescript": "^6.0.3",
|
|
158
|
-
"valibot": "^1.
|
|
159
|
-
"vite": "^8.
|
|
160
|
-
"vite-plugin-dts": "^5.0
|
|
161
|
-
"vitest": "^
|
|
158
|
+
"valibot": "^1.5.0",
|
|
159
|
+
"vite": "^8.3.0",
|
|
160
|
+
"vite-plugin-dts": "^5.1.0",
|
|
161
|
+
"vitest": "^5.0.0"
|
|
162
162
|
}
|
|
163
163
|
}
|