@ddd-tool/domain-designer-generator 0.1.0-beta.6 → 0.1.0-beta.7
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 +43 -43
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
**/
|
|
6
6
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
7
|
// @__NO_SIDE_EFFECTS__
|
|
8
|
-
function
|
|
8
|
+
function Bn(e) {
|
|
9
9
|
const n = /* @__PURE__ */ Object.create(null);
|
|
10
10
|
for (const t of e.split(",")) n[t] = 1;
|
|
11
11
|
return (t) => t in n;
|
|
12
12
|
}
|
|
13
13
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
14
14
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15
|
-
const Pe = Object.assign,
|
|
15
|
+
const Pe = Object.assign, Gn = Object.prototype.hasOwnProperty, Ve = (e, n) => Gn.call(e, n), Y = Array.isArray, te = (e) => dn(e) === "[object Map]", Un = (e) => typeof e == "function", zn = (e) => typeof e == "string", ue = (e) => typeof e == "symbol", je = (e) => e !== null && typeof e == "object", Jn = Object.prototype.toString, dn = (e) => Jn.call(e), mn = (e) => dn(e).slice(8, -1), Ye = (e) => zn(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);
|
|
@@ -383,7 +383,7 @@ function ne(e, n, t = []) {
|
|
|
383
383
|
const r = E(e)[n].apply(e, t);
|
|
384
384
|
return Ze(), tt(), r;
|
|
385
385
|
}
|
|
386
|
-
const at = /* @__PURE__ */
|
|
386
|
+
const at = /* @__PURE__ */ Bn("__proto__,__v_isRef,__isVue"), Cn = new Set(
|
|
387
387
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ue)
|
|
388
388
|
);
|
|
389
389
|
function it(e) {
|
|
@@ -750,7 +750,7 @@ class Nt {
|
|
|
750
750
|
}
|
|
751
751
|
function Ke(e, n, t = !1) {
|
|
752
752
|
let r, o;
|
|
753
|
-
|
|
753
|
+
Un(e) ? r = e : (r = e.get, o = e.set);
|
|
754
754
|
const s = new Nt(r, o, t);
|
|
755
755
|
return process.env.NODE_ENV, s;
|
|
756
756
|
}
|
|
@@ -815,7 +815,7 @@ function Et(e, n = !0, t = !1) {
|
|
|
815
815
|
error: Ke(() => r.value)
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function Be() {
|
|
819
819
|
return jt();
|
|
820
820
|
}
|
|
821
821
|
function At() {
|
|
@@ -839,7 +839,7 @@ function At() {
|
|
|
839
839
|
createSetupPlugin(o) {
|
|
840
840
|
let s;
|
|
841
841
|
return o instanceof Function ? s = o() : s = o, Object.freeze({
|
|
842
|
-
__id:
|
|
842
|
+
__id: Be(),
|
|
843
843
|
type: "Setup",
|
|
844
844
|
mount(p) {
|
|
845
845
|
if (p.isInitialized.value)
|
|
@@ -851,7 +851,7 @@ function At() {
|
|
|
851
851
|
createHotSwapPlugin(o) {
|
|
852
852
|
let s;
|
|
853
853
|
return o instanceof Function ? s = o() : s = o, Object.freeze({
|
|
854
|
-
__id:
|
|
854
|
+
__id: Be(),
|
|
855
855
|
type: "HotSwap",
|
|
856
856
|
mount: s.mount,
|
|
857
857
|
unmount: s.unmount
|
|
@@ -943,7 +943,7 @@ function Tt(e) {
|
|
|
943
943
|
);
|
|
944
944
|
const C = _.states || {}, d = _.commands || {}, i = _.events || {};
|
|
945
945
|
return {
|
|
946
|
-
__id:
|
|
946
|
+
__id: Be(),
|
|
947
947
|
type: "Singleton",
|
|
948
948
|
api: It({
|
|
949
949
|
states: C,
|
|
@@ -1053,30 +1053,30 @@ function Pt(e) {
|
|
|
1053
1053
|
function Vt(e) {
|
|
1054
1054
|
return e && e._attributes && e._attributes.rule === "ReadModel";
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1056
|
+
const Ge = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
1057
1057
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1058
1058
|
const Rt = () => {
|
|
1059
1059
|
}, Ht = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
1060
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ae = Object.assign, k = Array.isArray, z = (e) => typeof e == "function", L = (e) => typeof e == "string", Lt = (e) => typeof e == "symbol",
|
|
1060
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ae = Object.assign, k = Array.isArray, z = (e) => typeof e == "function", L = (e) => typeof e == "string", Lt = (e) => typeof e == "symbol", B = (e) => e !== null && typeof e == "object";
|
|
1061
1061
|
let ln;
|
|
1062
1062
|
const Se = () => ln || (ln = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
1063
1063
|
function tn(e) {
|
|
1064
1064
|
if (k(e)) {
|
|
1065
1065
|
const n = {};
|
|
1066
1066
|
for (let t = 0; t < e.length; t++) {
|
|
1067
|
-
const r = e[t], o = L(r) ?
|
|
1067
|
+
const r = e[t], o = L(r) ? Gt(r) : tn(r);
|
|
1068
1068
|
if (o)
|
|
1069
1069
|
for (const s in o)
|
|
1070
1070
|
n[s] = o[s];
|
|
1071
1071
|
}
|
|
1072
1072
|
return n;
|
|
1073
|
-
} else if (L(e) ||
|
|
1073
|
+
} else if (L(e) || B(e))
|
|
1074
1074
|
return e;
|
|
1075
1075
|
}
|
|
1076
|
-
const Mt = /;(?![^(]*\))/g, Kt = /:([^]+)/,
|
|
1077
|
-
function
|
|
1076
|
+
const Mt = /;(?![^(]*\))/g, Kt = /:([^]+)/, Bt = /\/\*[^]*?\*\//g;
|
|
1077
|
+
function Gt(e) {
|
|
1078
1078
|
const n = {};
|
|
1079
|
-
return e.replace(
|
|
1079
|
+
return e.replace(Bt, "").split(Mt).forEach((t) => {
|
|
1080
1080
|
if (t) {
|
|
1081
1081
|
const r = t.split(Kt);
|
|
1082
1082
|
r.length > 1 && (n[r[0].trim()] = r[1].trim());
|
|
@@ -1092,7 +1092,7 @@ function on(e) {
|
|
|
1092
1092
|
const r = on(e[t]);
|
|
1093
1093
|
r && (n += r + " ");
|
|
1094
1094
|
}
|
|
1095
|
-
else if (
|
|
1095
|
+
else if (B(e))
|
|
1096
1096
|
for (const t in e)
|
|
1097
1097
|
e[t] && (n += t + " ");
|
|
1098
1098
|
return n.trim();
|
|
@@ -1110,9 +1110,9 @@ new Set(
|
|
|
1110
1110
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Lt)
|
|
1111
1111
|
);
|
|
1112
1112
|
function En(e) {
|
|
1113
|
-
return
|
|
1113
|
+
return Ue(e) ? En(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Ue(e) {
|
|
1116
1116
|
return !!(e && e.__v_isReadonly);
|
|
1117
1117
|
}
|
|
1118
1118
|
function Te(e) {
|
|
@@ -1121,9 +1121,9 @@ function Te(e) {
|
|
|
1121
1121
|
function ze(e) {
|
|
1122
1122
|
return e ? !!e.__v_raw : !1;
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function G(e) {
|
|
1125
1125
|
const n = e && e.__v_raw;
|
|
1126
|
-
return n ?
|
|
1126
|
+
return n ? G(n) : e;
|
|
1127
1127
|
}
|
|
1128
1128
|
function sn(e) {
|
|
1129
1129
|
return e ? e.__v_isRef === !0 : !1;
|
|
@@ -1133,18 +1133,18 @@ function sn(e) {
|
|
|
1133
1133
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1134
1134
|
* @license MIT
|
|
1135
1135
|
**/
|
|
1136
|
-
const
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1136
|
+
const U = [];
|
|
1137
|
+
function Ut(e) {
|
|
1138
|
+
U.push(e);
|
|
1139
1139
|
}
|
|
1140
1140
|
function zt() {
|
|
1141
|
-
|
|
1141
|
+
U.pop();
|
|
1142
1142
|
}
|
|
1143
1143
|
let xe = !1;
|
|
1144
1144
|
function ie(e, ...n) {
|
|
1145
1145
|
if (xe) return;
|
|
1146
1146
|
xe = !0;
|
|
1147
|
-
const t =
|
|
1147
|
+
const t = U.length ? U[U.length - 1].component : null, r = t && t.appContext.config.warnHandler, o = Jt();
|
|
1148
1148
|
if (r)
|
|
1149
1149
|
rn(
|
|
1150
1150
|
r,
|
|
@@ -1172,7 +1172,7 @@ function ie(e, ...n) {
|
|
|
1172
1172
|
xe = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function Jt() {
|
|
1175
|
-
let e =
|
|
1175
|
+
let e = U[U.length - 1];
|
|
1176
1176
|
if (!e)
|
|
1177
1177
|
return [];
|
|
1178
1178
|
const n = [];
|
|
@@ -1209,7 +1209,7 @@ function qt(e) {
|
|
|
1209
1209
|
}), t.length > 3 && n.push(" ..."), n;
|
|
1210
1210
|
}
|
|
1211
1211
|
function An(e, n, t) {
|
|
1212
|
-
return L(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : sn(n) ? (n = An(e,
|
|
1212
|
+
return L(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : sn(n) ? (n = An(e, G(n.value), !0), t ? n : [`${e}=Ref<`, n, ">"]) : z(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = G(n), t ? n : [`${e}=`, n]);
|
|
1213
1213
|
}
|
|
1214
1214
|
const Sn = {
|
|
1215
1215
|
sp: "serverPrefetch hook",
|
|
@@ -1252,7 +1252,7 @@ function rn(e, n, t, r) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
function In(e, n, t, r = !0) {
|
|
1255
|
-
const o = n ? n.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: p } = n && n.appContext.config ||
|
|
1255
|
+
const o = n ? n.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: p } = n && n.appContext.config || Ge;
|
|
1256
1256
|
if (n) {
|
|
1257
1257
|
let _ = n.parent;
|
|
1258
1258
|
const C = n.proxy, d = process.env.NODE_ENV !== "production" ? Sn[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
|
|
@@ -1279,7 +1279,7 @@ function In(e, n, t, r = !0) {
|
|
|
1279
1279
|
function Zt(e, n, t, r = !0, o = !1) {
|
|
1280
1280
|
if (process.env.NODE_ENV !== "production") {
|
|
1281
1281
|
const s = Sn[n];
|
|
1282
|
-
if (t &&
|
|
1282
|
+
if (t && Ut(t), ie(`Unhandled error${s ? ` during execution of ${s}` : ""}`), t && zt(), r)
|
|
1283
1283
|
throw e;
|
|
1284
1284
|
} else if (o)
|
|
1285
1285
|
throw e;
|
|
@@ -1482,10 +1482,10 @@ function Vn(e, n = null, t = null, r = 0, o = null, s = !1) {
|
|
|
1482
1482
|
if (Mn(e) && (e = e.__vccOpts), n) {
|
|
1483
1483
|
n = Co(n);
|
|
1484
1484
|
let { class: _, style: C } = n;
|
|
1485
|
-
_ && !L(_) && (n.class = on(_)),
|
|
1485
|
+
_ && !L(_) && (n.class = on(_)), B(C) && (ze(C) && !k(C) && (C = Ae({}, C)), n.style = tn(C));
|
|
1486
1486
|
}
|
|
1487
|
-
const p = L(e) ? 1 : po(e) ? 128 : co(e) ? 64 :
|
|
1488
|
-
return process.env.NODE_ENV !== "production" && p & 4 && ze(e) && (e =
|
|
1487
|
+
const p = L(e) ? 1 : po(e) ? 128 : co(e) ? 64 : B(e) ? 4 : z(e) ? 2 : 0;
|
|
1488
|
+
return process.env.NODE_ENV !== "production" && p & 4 && ze(e) && (e = G(e), ie(
|
|
1489
1489
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1490
1490
|
`
|
|
1491
1491
|
Component that was made reactive: `,
|
|
@@ -1640,7 +1640,7 @@ function yo() {
|
|
|
1640
1640
|
const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, o = {
|
|
1641
1641
|
__vue_custom_formatter: !0,
|
|
1642
1642
|
header(a) {
|
|
1643
|
-
return
|
|
1643
|
+
return B(a) ? a.__isVue ? ["div", e, "VueInstance"] : sn(a) ? [
|
|
1644
1644
|
"div",
|
|
1645
1645
|
{},
|
|
1646
1646
|
["span", e, i(a)],
|
|
@@ -1654,8 +1654,8 @@ function yo() {
|
|
|
1654
1654
|
["span", e, Te(a) ? "ShallowReactive" : "Reactive"],
|
|
1655
1655
|
"<",
|
|
1656
1656
|
_(a),
|
|
1657
|
-
`>${
|
|
1658
|
-
] :
|
|
1657
|
+
`>${Ue(a) ? " (readonly)" : ""}`
|
|
1658
|
+
] : Ue(a) ? [
|
|
1659
1659
|
"div",
|
|
1660
1660
|
{},
|
|
1661
1661
|
["span", e, Te(a) ? "ShallowReadonly" : "Readonly"],
|
|
@@ -1678,7 +1678,7 @@ function yo() {
|
|
|
1678
1678
|
};
|
|
1679
1679
|
function s(a) {
|
|
1680
1680
|
const l = [];
|
|
1681
|
-
a.type.props && a.props && l.push(p("props",
|
|
1681
|
+
a.type.props && a.props && l.push(p("props", G(a.props))), a.setupState !== Ge && l.push(p("setup", a.setupState)), a.data !== Ge && l.push(p("data", G(a.data)));
|
|
1682
1682
|
const f = C(a, "computed");
|
|
1683
1683
|
f && l.push(p("computed", f));
|
|
1684
1684
|
const b = C(a, "inject");
|
|
@@ -1721,7 +1721,7 @@ function yo() {
|
|
|
1721
1721
|
] : ["span", {}];
|
|
1722
1722
|
}
|
|
1723
1723
|
function _(a, l = !0) {
|
|
1724
|
-
return typeof a == "number" ? ["span", n, a] : typeof a == "string" ? ["span", t, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] :
|
|
1724
|
+
return typeof a == "number" ? ["span", n, a] : typeof a == "string" ? ["span", t, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : B(a) ? ["object", { object: l ? G(a) : a }] : ["span", t, String(a)];
|
|
1725
1725
|
}
|
|
1726
1726
|
function C(a, l) {
|
|
1727
1727
|
const f = a.type;
|
|
@@ -1734,7 +1734,7 @@ function yo() {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
function d(a, l, f) {
|
|
1736
1736
|
const b = a[f];
|
|
1737
|
-
if (k(b) && b.includes(l) ||
|
|
1737
|
+
if (k(b) && b.includes(l) || B(b) && l in b || a.extends && d(a.extends, l, f) || a.mixins && a.mixins.some((g) => d(g, l, f)))
|
|
1738
1738
|
return !0;
|
|
1739
1739
|
}
|
|
1740
1740
|
function i(a) {
|
|
@@ -2104,7 +2104,7 @@ const j = we.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2104
2104
|
const m = [], $ = [], w = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
|
|
2105
2105
|
for (const c of w) {
|
|
2106
2106
|
const h = r(c);
|
|
2107
|
-
$.push(`public void handle${h}(@${b} ${h} command);`);
|
|
2107
|
+
v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h}`), $.push(`public void handle${h}(@${b} ${h} command);`);
|
|
2108
2108
|
}
|
|
2109
2109
|
m.push(`public interface ${g} {`), m.push(` ${$.join(`
|
|
2110
2110
|
|
|
@@ -2136,7 +2136,7 @@ const j = we.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2136
2136
|
), v.add(
|
|
2137
2137
|
s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
|
|
2138
2138
|
), m.push(
|
|
2139
|
-
` @AttributeOverride(name = "value", column = @Column(name = "${N.
|
|
2139
|
+
` @AttributeOverride(name = "value", column = @Column(name = "${N.camelToLowerSnake(
|
|
2140
2140
|
h
|
|
2141
2141
|
)}"))`
|
|
2142
2142
|
)), m.push(` private ${C(v, c)} ${N.lowerFirst(h)};`);
|
|
@@ -2144,7 +2144,7 @@ const j = we.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2144
2144
|
const w = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
|
|
2145
2145
|
for (const c of w) {
|
|
2146
2146
|
const h = r(c);
|
|
2147
|
-
m.push(""), m.push(
|
|
2147
|
+
v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h}`), m.push(""), m.push(
|
|
2148
2148
|
` public void handle${h}(@${b} ${h} ${N.lowerFirst(
|
|
2149
2149
|
h
|
|
2150
2150
|
)}) {`
|
|
@@ -2166,7 +2166,7 @@ const j = we.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2166
2166
|
), v.add(
|
|
2167
2167
|
s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
|
|
2168
2168
|
), m.push(
|
|
2169
|
-
` @AttributeOverride(name = "value", column = @Column(name = "${N.
|
|
2169
|
+
` @AttributeOverride(name = "value", column = @Column(name = "${N.camelToLowerSnake(
|
|
2170
2170
|
I
|
|
2171
2171
|
)}"))`
|
|
2172
2172
|
)), m.push(` private ${C(v, y)} ${N.lowerFirst(I)};`);
|
|
@@ -2192,7 +2192,7 @@ const j = we.JavaGeneratorAddition, Io = le.createHotSwapPlugin(() => {
|
|
|
2192
2192
|
);
|
|
2193
2193
|
for (const y of h) {
|
|
2194
2194
|
const I = r(y);
|
|
2195
|
-
m.push(""), m.push(
|
|
2195
|
+
v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${I}`), m.push(""), m.push(
|
|
2196
2196
|
` public void handle${I}(@${b} ${I} ${N.lowerFirst(
|
|
2197
2197
|
I
|
|
2198
2198
|
)}) {`
|