@ddd-tool/domain-designer-generator 0.1.0-beta.8 → 0.1.0-beta.9
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/index.js +31 -31
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function Bn(e) {
|
|
|
12
12
|
}
|
|
13
13
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
14
14
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15
|
-
const
|
|
15
|
+
const Fe = Object.assign, Un = Object.prototype.hasOwnProperty, Ve = (e, n) => Un.call(e, n), Y = Array.isArray, te = (e) => dn(e) === "[object Map]", zn = (e) => typeof e == "function", Gn = (e) => typeof e == "string", ue = (e) => typeof e == "symbol", Ee = (e) => e !== null && typeof e == "object", Jn = Object.prototype.toString, dn = (e) => Jn.call(e), mn = (e) => dn(e).slice(8, -1), Ye = (e) => Gn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Wn = (e) => {
|
|
16
16
|
const n = /* @__PURE__ */ Object.create(null);
|
|
17
17
|
return (t) => n[t] || (n[t] = e(t));
|
|
18
18
|
}, Yn = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), q = (e, n) => !Object.is(e, n);
|
|
@@ -142,7 +142,7 @@ class Qe {
|
|
|
142
142
|
r.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = r), t.prevDep = A.depsTail, t.nextDep = void 0, A.depsTail.nextDep = t, A.depsTail = t, A.deps === t && (A.deps = r);
|
|
143
143
|
}
|
|
144
144
|
return process.env.NODE_ENV !== "production" && A.onTrack && A.onTrack(
|
|
145
|
-
|
|
145
|
+
Fe(
|
|
146
146
|
{
|
|
147
147
|
effect: A
|
|
148
148
|
},
|
|
@@ -159,7 +159,7 @@ class Qe {
|
|
|
159
159
|
if (process.env.NODE_ENV !== "production")
|
|
160
160
|
for (let t = this.subsHead; t; t = t.nextSub)
|
|
161
161
|
t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(
|
|
162
|
-
|
|
162
|
+
Fe(
|
|
163
163
|
{
|
|
164
164
|
effect: t.sub
|
|
165
165
|
},
|
|
@@ -540,7 +540,7 @@ function mt(e, n) {
|
|
|
540
540
|
return !e && x(C, "iterate", K), _.forEach((i, a) => o.call(s, m(i), m(a), p));
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
|
-
return
|
|
543
|
+
return Fe(
|
|
544
544
|
t,
|
|
545
545
|
e ? {
|
|
546
546
|
add: de("add"),
|
|
@@ -1044,10 +1044,10 @@ function kt(e) {
|
|
|
1044
1044
|
function Dt(e) {
|
|
1045
1045
|
return e && e._attributes && e._attributes.rule === "Command";
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Pt(e) {
|
|
1048
1048
|
return e && e._attributes && e._attributes.rule === "FacadeCommand";
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Ft(e) {
|
|
1051
1051
|
return e && e._attributes && e._attributes.rule === "Event";
|
|
1052
1052
|
}
|
|
1053
1053
|
function Vt(e) {
|
|
@@ -1285,14 +1285,14 @@ function Zt(e, n, t, r = !0, o = !1) {
|
|
|
1285
1285
|
throw e;
|
|
1286
1286
|
}
|
|
1287
1287
|
const T = [];
|
|
1288
|
-
let
|
|
1288
|
+
let P = -1;
|
|
1289
1289
|
const Q = [];
|
|
1290
|
-
let
|
|
1290
|
+
let F = null, W = 0;
|
|
1291
1291
|
const Qt = /* @__PURE__ */ Promise.resolve();
|
|
1292
1292
|
let Je = null;
|
|
1293
1293
|
const Xt = 100;
|
|
1294
1294
|
function eo(e) {
|
|
1295
|
-
let n =
|
|
1295
|
+
let n = P + 1, t = T.length;
|
|
1296
1296
|
for (; n < t; ) {
|
|
1297
1297
|
const r = n + t >>> 1, o = T[r], s = ce(o);
|
|
1298
1298
|
s < e || s === e && o.flags & 2 ? n = r + 1 : t = r;
|
|
@@ -1310,22 +1310,22 @@ function On() {
|
|
|
1310
1310
|
Je || (Je = Qt.then(xn));
|
|
1311
1311
|
}
|
|
1312
1312
|
function to(e) {
|
|
1313
|
-
k(e) ? Q.push(...e) :
|
|
1313
|
+
k(e) ? Q.push(...e) : F && e.id === -1 ? F.splice(W + 1, 0, e) : e.flags & 1 || (Q.push(e), e.flags |= 1), On();
|
|
1314
1314
|
}
|
|
1315
1315
|
function oo(e) {
|
|
1316
1316
|
if (Q.length) {
|
|
1317
1317
|
const n = [...new Set(Q)].sort(
|
|
1318
1318
|
(t, r) => ce(t) - ce(r)
|
|
1319
1319
|
);
|
|
1320
|
-
if (Q.length = 0,
|
|
1321
|
-
|
|
1320
|
+
if (Q.length = 0, F) {
|
|
1321
|
+
F.push(...n);
|
|
1322
1322
|
return;
|
|
1323
1323
|
}
|
|
1324
|
-
for (
|
|
1325
|
-
const t =
|
|
1324
|
+
for (F = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W = 0; W < F.length; W++) {
|
|
1325
|
+
const t = F[W];
|
|
1326
1326
|
process.env.NODE_ENV !== "production" && Tn(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
|
|
1327
1327
|
}
|
|
1328
|
-
|
|
1328
|
+
F = null, W = 0;
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
const ce = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
@@ -1333,8 +1333,8 @@ function xn(e) {
|
|
|
1333
1333
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1334
1334
|
const n = process.env.NODE_ENV !== "production" ? (t) => Tn(e, t) : Rt;
|
|
1335
1335
|
try {
|
|
1336
|
-
for (
|
|
1337
|
-
const t = T[
|
|
1336
|
+
for (P = 0; P < T.length; P++) {
|
|
1337
|
+
const t = T[P];
|
|
1338
1338
|
if (t && !(t.flags & 8)) {
|
|
1339
1339
|
if (process.env.NODE_ENV !== "production" && n(t))
|
|
1340
1340
|
continue;
|
|
@@ -1346,11 +1346,11 @@ function xn(e) {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
1348
|
} finally {
|
|
1349
|
-
for (;
|
|
1350
|
-
const t = T[
|
|
1349
|
+
for (; P < T.length; P++) {
|
|
1350
|
+
const t = T[P];
|
|
1351
1351
|
t && (t.flags &= -2);
|
|
1352
1352
|
}
|
|
1353
|
-
|
|
1353
|
+
P = -1, T.length = 0, oo(e), Je = null, (T.length || Q.length) && xn(e);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
function Tn(e, n) {
|
|
@@ -1425,24 +1425,24 @@ Se().requestIdleCallback;
|
|
|
1425
1425
|
Se().cancelIdleCallback;
|
|
1426
1426
|
const uo = Symbol.for("v-ndc");
|
|
1427
1427
|
process.env.NODE_ENV;
|
|
1428
|
-
const lo = {}, Dn = (e) => Object.getPrototypeOf(e) === lo, po = (e) => e.__isSuspense,
|
|
1428
|
+
const lo = {}, Dn = (e) => Object.getPrototypeOf(e) === lo, po = (e) => e.__isSuspense, Pn = Symbol.for("v-fgt"), mo = Symbol.for("v-txt"), fo = Symbol.for("v-cmt");
|
|
1429
1429
|
function ho(e) {
|
|
1430
1430
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1431
1431
|
}
|
|
1432
1432
|
const vo = (...e) => Vn(
|
|
1433
1433
|
...e
|
|
1434
|
-
),
|
|
1434
|
+
), Fn = ({ key: e }) => e ?? null, he = ({
|
|
1435
1435
|
ref: e,
|
|
1436
1436
|
ref_key: n,
|
|
1437
1437
|
ref_for: t
|
|
1438
1438
|
}) => (typeof e == "number" && (e = "" + e), e != null ? L(e) || sn(e) || G(e) ? { i: $e, r: e, k: n, f: !!t } : e : null);
|
|
1439
|
-
function go(e, n = null, t = null, r = 0, o = null, s = e ===
|
|
1439
|
+
function go(e, n = null, t = null, r = 0, o = null, s = e === Pn ? 0 : 1, p = !1, _ = !1) {
|
|
1440
1440
|
const C = {
|
|
1441
1441
|
__v_isVNode: !0,
|
|
1442
1442
|
__v_skip: !0,
|
|
1443
1443
|
type: e,
|
|
1444
1444
|
props: n,
|
|
1445
|
-
key: n &&
|
|
1445
|
+
key: n && Fn(n),
|
|
1446
1446
|
ref: n && he(n),
|
|
1447
1447
|
scopeId: io,
|
|
1448
1448
|
slotScopeIds: null,
|
|
@@ -1510,7 +1510,7 @@ function be(e, n, t = !1, r = !1) {
|
|
|
1510
1510
|
__v_skip: !0,
|
|
1511
1511
|
type: e.type,
|
|
1512
1512
|
props: m,
|
|
1513
|
-
key: m &&
|
|
1513
|
+
key: m && Fn(m),
|
|
1514
1514
|
ref: n && n.ref ? (
|
|
1515
1515
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1516
1516
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -1529,7 +1529,7 @@ function be(e, n, t = !1, r = !1) {
|
|
|
1529
1529
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1530
1530
|
// note: preserve flag for fragments since they use the flag for children
|
|
1531
1531
|
// fast paths only.
|
|
1532
|
-
patchFlag: n && e.type !==
|
|
1532
|
+
patchFlag: n && e.type !== Pn ? p === -1 ? 16 : p | 16 : p,
|
|
1533
1533
|
dynamicProps: e.dynamicProps,
|
|
1534
1534
|
dynamicChildren: e.dynamicChildren,
|
|
1535
1535
|
appContext: e.appContext,
|
|
@@ -1755,7 +1755,7 @@ function Eo() {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
process.env.NODE_ENV !== "production" && Eo();
|
|
1757
1757
|
function jo(e) {
|
|
1758
|
-
return Dt(e) ||
|
|
1758
|
+
return Dt(e) || Pt(e) || kt(e) || Ft(e) || Vt(e);
|
|
1759
1759
|
}
|
|
1760
1760
|
var Kn = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Kn || {});
|
|
1761
1761
|
class S {
|
|
@@ -2371,7 +2371,7 @@ const E = Ne.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2371
2371
|
});
|
|
2372
2372
|
}
|
|
2373
2373
|
};
|
|
2374
|
-
}),
|
|
2374
|
+
}), Pe = we.KotlinGeneratorAddition, Oo = le.createHotSwapPlugin(() => ({
|
|
2375
2375
|
unmount({ api: e }) {
|
|
2376
2376
|
e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
|
|
2377
2377
|
},
|
|
@@ -2399,12 +2399,12 @@ const E = Ne.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
function C(m, i) {
|
|
2401
2401
|
const a = t.value.additions, l = w.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
|
|
2402
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(l) ? a.has(
|
|
2402
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(l) ? a.has(Pe.Timezone) ? (m.add("java.time.OffsetDateTime"), "OffsetDateTime") : (m.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l) ? "Integer" : /\b(price)$/.test(l) ? (m.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l) ? "Boolean" : je(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") || /\b(id|identifier|ver|version)$/.test(l) ? "Long" : "String";
|
|
2403
2403
|
}
|
|
2404
2404
|
e.commands._setInfoCodeProvider(
|
|
2405
2405
|
(m) => {
|
|
2406
2406
|
const i = /* @__PURE__ */ new Set(), a = p(m), l = t.value.additions, h = [];
|
|
2407
|
-
return l.has(
|
|
2407
|
+
return l.has(Pe.ValueClass) ? (i.add("kotlin.jvm.JvmInline"), h.push("@JvmInline"), h.push(`value class ${a}(val value: ${C(i, m)})`)) : h.push(`data class ${a}(val value: ${C(i, m)})`), [
|
|
2408
2408
|
{
|
|
2409
2409
|
type: "Info",
|
|
2410
2410
|
imports: i,
|
|
@@ -2431,7 +2431,7 @@ const E = Ne.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2431
2431
|
`)
|
|
2432
2432
|
});
|
|
2433
2433
|
}
|
|
2434
|
-
if (!a.has(
|
|
2434
|
+
if (!a.has(Pe.CommandHandler))
|
|
2435
2435
|
return i;
|
|
2436
2436
|
{
|
|
2437
2437
|
const l = /* @__PURE__ */ new Set(), h = p(m), b = [];
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-tool/domain-designer-generator",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@ddd-tool/domain-designer-core": "0.1.0-beta.
|
|
10
|
+
"@ddd-tool/domain-designer-core": "0.1.0-beta.7",
|
|
11
11
|
"@types/node": "^22.13.10",
|
|
12
12
|
"@vitest/coverage-v8": "3.0.9",
|
|
13
13
|
"@vue/reactivity": "^3.5.13",
|