nuxt-ignis 0.5.0-rc.1 → 0.5.0-rc.2
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/.data/content/contents.sqlite +0 -0
- package/.env +1 -1
- package/.nuxt/components.d.ts +218 -230
- package/.nuxt/content/components.ts +108 -107
- package/.nuxt/dev/index.mjs +148 -111
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.json +2 -2
- package/.nuxt/dist/server/client.manifest.mjs +2 -2
- package/.nuxt/eslint-typegen.d.ts +60 -6
- package/.nuxt/eslint.config.d.mts +3 -3
- package/.nuxt/eslint.config.mjs +11 -11
- package/.nuxt/imports.d.ts +56 -56
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/mdc-image-component.mjs +1 -1
- package/.nuxt/module/nuxt-robots.d.ts +12 -12
- package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
- package/.nuxt/module/nuxt-site-config.d.ts +11 -8
- package/.nuxt/module/nuxt-sitemap.d.ts +17 -17
- package/.nuxt/nitro.json +5 -5
- package/.nuxt/nuxt.d.ts +11 -8
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/nuxt.node.d.ts +9 -7
- package/.nuxt/tsconfig.app.json +186 -162
- package/.nuxt/tsconfig.json +188 -161
- package/.nuxt/tsconfig.node.json +101 -84
- package/.nuxt/tsconfig.server.json +124 -120
- package/.nuxt/tsconfig.shared.json +60 -55
- package/.nuxt/types/build.d.ts +1 -1
- package/.nuxt/types/components.d.ts +288 -300
- package/.nuxt/types/i18n-plugin.d.ts +2 -2
- package/.nuxt/types/imports.d.ts +677 -673
- package/.nuxt/types/modules.d.ts +34 -14
- package/.nuxt/types/nitro-imports.d.ts +249 -249
- package/.nuxt/types/nitro-nuxt.d.ts +3 -1
- package/.nuxt/types/nitro-routes.d.ts +15 -15
- package/.nuxt/types/plugins.d.ts +36 -36
- package/.nuxt/ui-image-component.ts +1 -1
- package/.output/nitro.json +2 -2
- package/.output/public/_fonts/31PZhXd_YTCmsoiPQZc-xVtAWAkLogRFRj5mWplmKFE-6WsTw05QKugcwLySGc_b9CIheG8j8LRyo47qPL430Mk.woff2 +0 -0
- package/.output/public/_fonts/9FWLUGCSCYLRIRMtCzLrt4Go7DMFXOeN_pyCOJD_44Y-Yh2wNaqrq_e759vVlc3tX81lMwRu9ktkQJX_Svgs-VI.woff2 +0 -0
- package/.output/public/_fonts/BQnDL9FFy0Q_jvURlmv87luvmXLSMbSuXsfZv_R2Rkk-y5MVrLtP4J_1al8rz8R-MDaUOMAHckAWCwDrKhw25fY.woff2 +0 -0
- package/.output/public/_fonts/JSrPAbQHsQEdUrIE5Ts6fIQ2ymsa4i7HhiCpui6ulCc-_AoyGWssOn06OMh3ZY_GddBBPRny4Igxin4fT_1K6F4.woff2 +0 -0
- package/.output/public/_fonts/Jtqhy44WKYEjGWTSusP5YJfJv7Wf74QqgkBOI9u_77s-Rl_Bht5SvmaotE20bkavBEAJEEGEa0hcz3d_8yOeXmw.woff +0 -0
- package/.output/public/_fonts/M-60tFLmAJxdPjHsK-2ILWom5zPbu37lb3Qex2waL14-A9y4QcXALPi_RvQsmRsSFUxrT3_J213W4zPFIXetlbw.woff2 +0 -0
- package/.output/public/_fonts/T-ozk-QJ_Ck37B2RHPl2i-s_gAGGo7suFgagWoJ8bO4-maDXQ_nEXKAaLHm4Joud3DJR9EVzS7QXWMWK8YOTIcs.woff2 +0 -0
- package/.output/public/_fonts/TTYbISAfwy-y4uVGS9AH32sK7b2xJsoCESo64ryf8LU-y87nRMqBGo42rUOW9tWZa06o4oTa0USJrAMMoKDamgs.woff2 +0 -0
- package/.output/public/_fonts/Y_5DOsLit49q2i2tbcNxnyUen9__GPCX8mwAi03q1aA-pBCjVKDT5tBT3BJckh9uzNkfUWeUIBPz9Y8T55vcj8E.woff2 +0 -0
- package/.output/public/_fonts/ZHaz3DhCHNWhsElqYfuM71rfBBDgjuU2sd34vaYJwQg-71NZaZSGjxzAGjCMnCc2zS5rS_EGA0xHKPGCggWuXik.woff +0 -0
- package/.output/public/_fonts/h9PwCjip_BNPVO50hT4v29USWFv6H3ZlYx_IestfqgY-sYfLVuZXl9E1aYbn1S0pAr4zfdQ_WT7iBZhrgQY6N-4.woff2 +0 -0
- package/.output/public/_fonts/l00UCz_-QvI_NO8AGcu7ooAcrFDlxYUdxCSCh6gBwd4-vPjTZ3ztgw27A2TnHeCycxPvUtXWEVpG33_97ra6su8.woff2 +0 -0
- package/.output/public/_fonts/nuenOq7ZFSZ65QudJO7uQ0sOjDqow2WjfXrQh4S9gEc-uF81rxcswER5srfhzyLfPoGlKNAIt2C_BvkXFOc19rw.woff2 +0 -0
- package/.output/public/_fonts/pWMvGwciZ-EfQsfR2ueelhC7Jnt5K-8Px8PjPK0mDII-eT9iD0iZ9WWhTJs6V5GxXr0iaUwx_WxgGGriOiGb81o.woff2 +0 -0
- package/.output/public/_fonts/y3mP_zJcojQwJn30TpF_XxDzgeM6Nbk7MaRg1Ne0YcI-lFx13nqMCMgk_S70gRmwEHXlE5BLp1B4W82RpFihpMs.woff2 +0 -0
- package/.output/public/_fonts/zr3WxpLd5PmlBr7e4PWGkhZv6XTg70Pi4sCbC-CEV0Q-v2yL98XOiD3FkbiYlYYeAeTSVSkgAckeOp55Q5kHJmU.woff2 +0 -0
- package/.output/public/_ignis-config.json +1789 -1
- package/.output/public/_nuxt/Bhpb4lc3.js +1 -0
- package/.output/public/_nuxt/{DXbccJ2T.js → BqsN2CZp.js} +1 -1
- package/.output/public/_nuxt/C9ePPGPX.js +94 -0
- package/.output/public/_nuxt/CQozUI2A.js +1 -0
- package/.output/public/_nuxt/DBJqMhGy.js +35 -0
- package/.output/public/_nuxt/{BiUZ9mZX.js → DvwlldUy.js} +1 -1
- package/.output/public/_nuxt/RbPLLy5S.js +1 -0
- package/.output/public/_nuxt/{DXBpKbsa.js → aetvq4w9.js} +40 -32
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/cbc9377a-971e-4db1-b4b1-01807b82ee58.json +1 -0
- package/.output/public/_nuxt/entry.whtwWr_z.css +1 -0
- package/.output/public/_nuxt/error-404.Cq535Uij.css +1 -0
- package/.output/public/_nuxt/error-500.BHm_N15n.css +1 -0
- package/.output/public/_nuxt/{dJ-vStNn.js → jpnxxCHq.js} +1 -1
- package/.output/public/nuxt-spec.png +0 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +273 -154
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +64 -64
- package/.output/server/chunks/routes/renderer.mjs +3 -3
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +131 -96
- package/.output/server/node_modules/@vue/compiler-core/package.json +4 -4
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +4 -1
- package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +10 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +4 -3
- package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +25 -27
- package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +40 -14
- package/.output/server/node_modules/@vue/runtime-dom/package.json +4 -4
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/shared/package.json +1 -1
- package/.output/server/node_modules/debug/package.json +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/vue/package.json +6 -6
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +158 -53
- package/.output/server/node_modules/vue-bundle-renderer/package.json +16 -11
- package/.output/server/node_modules/vue-router/dist/devtools-BLCumUwL.mjs +1218 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1459 -3688
- package/.output/server/node_modules/vue-router/package.json +43 -38
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/package.json +13 -13
- package/README.md +4 -0
- package/app/app.vue +2 -2
- package/app/assets/css/ignis-open-props.css +4 -5
- package/app/components/CurrentTime.vue +8 -1
- package/app/components/ignis/{IgnisInfo.vue → IgnisContent.vue} +3 -3
- package/app/components/ignis/{IgnisConfig.vue → IgnisContentConfig.vue} +5 -1
- package/app/components/ignis/IgnisContentFeatures.vue +102 -0
- package/app/components/ignis/{IgnisWelcome.vue → IgnisContentWelcome.vue} +2 -2
- package/app/components/ignis/IgnisFooter.vue +11 -3
- package/app/pages/_ignis-config.vue +1 -1
- package/app/pages/_ignis-info.vue +1 -1
- package/app/pages/_ignis-welcome.vue +1 -1
- package/app/pages/index.vue +2 -2
- package/bin/cli.js +59 -0
- package/bin/set-app-vue.js +18 -0
- package/bin/set-css.js +3 -8
- package/bin/set-eslint.js +3 -8
- package/bin/setup.js +208 -45
- package/features.ts +17 -8
- package/nuxt.config.ts +9 -4
- package/package.json +15 -17
- package/public/_ignis-config.json +1789 -1
- package/test/config/css-multiple.txt +30 -24
- package/test/config/css-nuxt-ui.txt +34 -28
- package/test/config/css-open-props.txt +1812 -1805
- package/test/config/css-single.txt +28 -22
- package/test/config/css-tailwind.txt +55 -48
- package/test/config/custom-lang.txt +27 -21
- package/test/config/db-neon.txt +28 -22
- package/test/config/db-supabase.txt +31 -25
- package/test/config/default.txt +27 -21
- package/test/config/equipment-1-composable.txt +33 -27
- package/test/config/equipment-2-plugins.txt +34 -28
- package/test/config/equipment-all.txt +38 -32
- package/test/config/forms-formkit.txt +32 -26
- package/test/config/forms-vueform.txt +28 -22
- package/test/config/i18n.txt +36 -30
- package/test/config/no-default-css.txt +24 -18
- package/test/config/open-props.txt +1811 -1804
- package/test/config/seo-ssr-false.txt +35 -29
- package/test/config/ui-nuxt-ui.txt +33 -27
- package/test/config/ui-tailwind.txt +54 -47
- package/test/features.test.ts +33 -33
- package/.nuxt/i18n.options.mjs +0 -165
- package/.nuxt/nuxt-i18n-logger.mjs +0 -1
- package/.output/public/_nuxt/BA2WKEAc.js +0 -1
- package/.output/public/_nuxt/BE_a_Zhd.js +0 -1
- package/.output/public/_nuxt/Bnm5Nral.js +0 -1
- package/.output/public/_nuxt/BrY1radz.js +0 -35
- package/.output/public/_nuxt/CmzFGS1a.js +0 -90
- package/.output/public/_nuxt/builds/meta/9a624d26-216d-4e69-b3a7-54b68357876f.json +0 -1
- package/.output/public/_nuxt/entry.jMyW6Sg0.css +0 -1
- package/.output/public/_nuxt/error-404.BGUbR0Uk.css +0 -1
- package/.output/public/_nuxt/error-500.CQfkKpQ2.css +0 -1
- package/.output/server/node_modules/vue-router/dist/vue-router.node.mjs +0 -2
- package/app/components/ignis/IgnisFeatureList.vue +0 -111
- /package/app/components/ignis/{IgnisFeature.vue → IgnisContentFeaturesDetail.vue} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1570,16 +1570,34 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
|
|
|
1570
1570
|
(id) => markScopeIdentifier(node, id, knownIds)
|
|
1571
1571
|
);
|
|
1572
1572
|
}
|
|
1573
|
+
} else if (node.type === "SwitchStatement") {
|
|
1574
|
+
if (node.scopeIds) {
|
|
1575
|
+
node.scopeIds.forEach((id) => markKnownIds(id, knownIds));
|
|
1576
|
+
} else {
|
|
1577
|
+
walkSwitchStatement(
|
|
1578
|
+
node,
|
|
1579
|
+
false,
|
|
1580
|
+
(id) => markScopeIdentifier(node, id, knownIds)
|
|
1581
|
+
);
|
|
1582
|
+
}
|
|
1573
1583
|
} else if (node.type === "CatchClause" && node.param) {
|
|
1574
|
-
|
|
1575
|
-
|
|
1584
|
+
if (node.scopeIds) {
|
|
1585
|
+
node.scopeIds.forEach((id) => markKnownIds(id, knownIds));
|
|
1586
|
+
} else {
|
|
1587
|
+
for (const id of extractIdentifiers(node.param)) {
|
|
1588
|
+
markScopeIdentifier(node, id, knownIds);
|
|
1589
|
+
}
|
|
1576
1590
|
}
|
|
1577
1591
|
} else if (isForStatement(node)) {
|
|
1578
|
-
|
|
1579
|
-
node,
|
|
1580
|
-
|
|
1581
|
-
(
|
|
1582
|
-
|
|
1592
|
+
if (node.scopeIds) {
|
|
1593
|
+
node.scopeIds.forEach((id) => markKnownIds(id, knownIds));
|
|
1594
|
+
} else {
|
|
1595
|
+
walkForStatement(
|
|
1596
|
+
node,
|
|
1597
|
+
false,
|
|
1598
|
+
(id) => markScopeIdentifier(node, id, knownIds)
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1583
1601
|
}
|
|
1584
1602
|
},
|
|
1585
1603
|
leave(node, parent) {
|
|
@@ -1650,7 +1668,8 @@ function walkFunctionParams(node, onIdent) {
|
|
|
1650
1668
|
}
|
|
1651
1669
|
}
|
|
1652
1670
|
function walkBlockDeclarations(block, onIdent) {
|
|
1653
|
-
|
|
1671
|
+
const body = block.type === "SwitchCase" ? block.consequent : block.body;
|
|
1672
|
+
for (const stmt of body) {
|
|
1654
1673
|
if (stmt.type === "VariableDeclaration") {
|
|
1655
1674
|
if (stmt.declare) continue;
|
|
1656
1675
|
for (const decl of stmt.declarations) {
|
|
@@ -1663,6 +1682,8 @@ function walkBlockDeclarations(block, onIdent) {
|
|
|
1663
1682
|
onIdent(stmt.id);
|
|
1664
1683
|
} else if (isForStatement(stmt)) {
|
|
1665
1684
|
walkForStatement(stmt, true, onIdent);
|
|
1685
|
+
} else if (stmt.type === "SwitchStatement") {
|
|
1686
|
+
walkSwitchStatement(stmt, true, onIdent);
|
|
1666
1687
|
}
|
|
1667
1688
|
}
|
|
1668
1689
|
}
|
|
@@ -1679,6 +1700,20 @@ function walkForStatement(stmt, isVar, onIdent) {
|
|
|
1679
1700
|
}
|
|
1680
1701
|
}
|
|
1681
1702
|
}
|
|
1703
|
+
function walkSwitchStatement(stmt, isVar, onIdent) {
|
|
1704
|
+
for (const cs of stmt.cases) {
|
|
1705
|
+
for (const stmt2 of cs.consequent) {
|
|
1706
|
+
if (stmt2.type === "VariableDeclaration" && (stmt2.kind === "var" ? isVar : !isVar)) {
|
|
1707
|
+
for (const decl of stmt2.declarations) {
|
|
1708
|
+
for (const id of extractIdentifiers(decl.id)) {
|
|
1709
|
+
onIdent(id);
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
walkBlockDeclarations(cs, onIdent);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1682
1717
|
function extractIdentifiers(param, nodes = []) {
|
|
1683
1718
|
switch (param.type) {
|
|
1684
1719
|
case "Identifier":
|
|
@@ -4753,90 +4788,6 @@ function getParentCondition(node) {
|
|
|
4753
4788
|
}
|
|
4754
4789
|
}
|
|
4755
4790
|
|
|
4756
|
-
const transformBind = (dir, _node, context) => {
|
|
4757
|
-
const { modifiers, loc } = dir;
|
|
4758
|
-
const arg = dir.arg;
|
|
4759
|
-
let { exp } = dir;
|
|
4760
|
-
if (exp && exp.type === 4 && !exp.content.trim()) {
|
|
4761
|
-
{
|
|
4762
|
-
context.onError(
|
|
4763
|
-
createCompilerError(34, loc)
|
|
4764
|
-
);
|
|
4765
|
-
return {
|
|
4766
|
-
props: [
|
|
4767
|
-
createObjectProperty(arg, createSimpleExpression("", true, loc))
|
|
4768
|
-
]
|
|
4769
|
-
};
|
|
4770
|
-
}
|
|
4771
|
-
}
|
|
4772
|
-
if (!exp) {
|
|
4773
|
-
if (arg.type !== 4 || !arg.isStatic) {
|
|
4774
|
-
context.onError(
|
|
4775
|
-
createCompilerError(
|
|
4776
|
-
52,
|
|
4777
|
-
arg.loc
|
|
4778
|
-
)
|
|
4779
|
-
);
|
|
4780
|
-
return {
|
|
4781
|
-
props: [
|
|
4782
|
-
createObjectProperty(arg, createSimpleExpression("", true, loc))
|
|
4783
|
-
]
|
|
4784
|
-
};
|
|
4785
|
-
}
|
|
4786
|
-
transformBindShorthand(dir, context);
|
|
4787
|
-
exp = dir.exp;
|
|
4788
|
-
}
|
|
4789
|
-
if (arg.type !== 4) {
|
|
4790
|
-
arg.children.unshift(`(`);
|
|
4791
|
-
arg.children.push(`) || ""`);
|
|
4792
|
-
} else if (!arg.isStatic) {
|
|
4793
|
-
arg.content = arg.content ? `${arg.content} || ""` : `""`;
|
|
4794
|
-
}
|
|
4795
|
-
if (modifiers.some((mod) => mod.content === "camel")) {
|
|
4796
|
-
if (arg.type === 4) {
|
|
4797
|
-
if (arg.isStatic) {
|
|
4798
|
-
arg.content = shared.camelize(arg.content);
|
|
4799
|
-
} else {
|
|
4800
|
-
arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
|
|
4801
|
-
}
|
|
4802
|
-
} else {
|
|
4803
|
-
arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
|
|
4804
|
-
arg.children.push(`)`);
|
|
4805
|
-
}
|
|
4806
|
-
}
|
|
4807
|
-
if (!context.inSSR) {
|
|
4808
|
-
if (modifiers.some((mod) => mod.content === "prop")) {
|
|
4809
|
-
injectPrefix(arg, ".");
|
|
4810
|
-
}
|
|
4811
|
-
if (modifiers.some((mod) => mod.content === "attr")) {
|
|
4812
|
-
injectPrefix(arg, "^");
|
|
4813
|
-
}
|
|
4814
|
-
}
|
|
4815
|
-
return {
|
|
4816
|
-
props: [createObjectProperty(arg, exp)]
|
|
4817
|
-
};
|
|
4818
|
-
};
|
|
4819
|
-
const transformBindShorthand = (dir, context) => {
|
|
4820
|
-
const arg = dir.arg;
|
|
4821
|
-
const propName = shared.camelize(arg.content);
|
|
4822
|
-
dir.exp = createSimpleExpression(propName, false, arg.loc);
|
|
4823
|
-
{
|
|
4824
|
-
dir.exp = processExpression(dir.exp, context);
|
|
4825
|
-
}
|
|
4826
|
-
};
|
|
4827
|
-
const injectPrefix = (arg, prefix) => {
|
|
4828
|
-
if (arg.type === 4) {
|
|
4829
|
-
if (arg.isStatic) {
|
|
4830
|
-
arg.content = prefix + arg.content;
|
|
4831
|
-
} else {
|
|
4832
|
-
arg.content = `\`${prefix}\${${arg.content}}\``;
|
|
4833
|
-
}
|
|
4834
|
-
} else {
|
|
4835
|
-
arg.children.unshift(`'${prefix}' + (`);
|
|
4836
|
-
arg.children.push(`)`);
|
|
4837
|
-
}
|
|
4838
|
-
};
|
|
4839
|
-
|
|
4840
4791
|
const transformFor = createStructuralDirectiveTransform(
|
|
4841
4792
|
"for",
|
|
4842
4793
|
(node, dir, context) => {
|
|
@@ -4849,9 +4800,6 @@ const transformFor = createStructuralDirectiveTransform(
|
|
|
4849
4800
|
const memo = findDir(node, "memo");
|
|
4850
4801
|
const keyProp = findProp(node, `key`, false, true);
|
|
4851
4802
|
const isDirKey = keyProp && keyProp.type === 7;
|
|
4852
|
-
if (isDirKey && !keyProp.exp) {
|
|
4853
|
-
transformBindShorthand(keyProp, context);
|
|
4854
|
-
}
|
|
4855
4803
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
4856
4804
|
if (memo && keyExp && isDirKey) {
|
|
4857
4805
|
{
|
|
@@ -6134,6 +6082,65 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
6134
6082
|
return ret;
|
|
6135
6083
|
};
|
|
6136
6084
|
|
|
6085
|
+
const transformBind = (dir, _node, context) => {
|
|
6086
|
+
const { modifiers, loc } = dir;
|
|
6087
|
+
const arg = dir.arg;
|
|
6088
|
+
let { exp } = dir;
|
|
6089
|
+
if (exp && exp.type === 4 && !exp.content.trim()) {
|
|
6090
|
+
{
|
|
6091
|
+
context.onError(
|
|
6092
|
+
createCompilerError(34, loc)
|
|
6093
|
+
);
|
|
6094
|
+
return {
|
|
6095
|
+
props: [
|
|
6096
|
+
createObjectProperty(arg, createSimpleExpression("", true, loc))
|
|
6097
|
+
]
|
|
6098
|
+
};
|
|
6099
|
+
}
|
|
6100
|
+
}
|
|
6101
|
+
if (arg.type !== 4) {
|
|
6102
|
+
arg.children.unshift(`(`);
|
|
6103
|
+
arg.children.push(`) || ""`);
|
|
6104
|
+
} else if (!arg.isStatic) {
|
|
6105
|
+
arg.content = arg.content ? `${arg.content} || ""` : `""`;
|
|
6106
|
+
}
|
|
6107
|
+
if (modifiers.some((mod) => mod.content === "camel")) {
|
|
6108
|
+
if (arg.type === 4) {
|
|
6109
|
+
if (arg.isStatic) {
|
|
6110
|
+
arg.content = shared.camelize(arg.content);
|
|
6111
|
+
} else {
|
|
6112
|
+
arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
|
|
6113
|
+
}
|
|
6114
|
+
} else {
|
|
6115
|
+
arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
|
|
6116
|
+
arg.children.push(`)`);
|
|
6117
|
+
}
|
|
6118
|
+
}
|
|
6119
|
+
if (!context.inSSR) {
|
|
6120
|
+
if (modifiers.some((mod) => mod.content === "prop")) {
|
|
6121
|
+
injectPrefix(arg, ".");
|
|
6122
|
+
}
|
|
6123
|
+
if (modifiers.some((mod) => mod.content === "attr")) {
|
|
6124
|
+
injectPrefix(arg, "^");
|
|
6125
|
+
}
|
|
6126
|
+
}
|
|
6127
|
+
return {
|
|
6128
|
+
props: [createObjectProperty(arg, exp)]
|
|
6129
|
+
};
|
|
6130
|
+
};
|
|
6131
|
+
const injectPrefix = (arg, prefix) => {
|
|
6132
|
+
if (arg.type === 4) {
|
|
6133
|
+
if (arg.isStatic) {
|
|
6134
|
+
arg.content = prefix + arg.content;
|
|
6135
|
+
} else {
|
|
6136
|
+
arg.content = `\`${prefix}\${${arg.content}}\``;
|
|
6137
|
+
}
|
|
6138
|
+
} else {
|
|
6139
|
+
arg.children.unshift(`'${prefix}' + (`);
|
|
6140
|
+
arg.children.push(`)`);
|
|
6141
|
+
}
|
|
6142
|
+
};
|
|
6143
|
+
|
|
6137
6144
|
const transformText = (node, context) => {
|
|
6138
6145
|
if (node.type === 0 || node.type === 1 || node.type === 11 || node.type === 10) {
|
|
6139
6146
|
return () => {
|
|
@@ -6484,9 +6491,35 @@ const transformMemo = (node, context) => {
|
|
|
6484
6491
|
}
|
|
6485
6492
|
};
|
|
6486
6493
|
|
|
6494
|
+
const transformVBindShorthand = (node, context) => {
|
|
6495
|
+
if (node.type === 1) {
|
|
6496
|
+
for (const prop of node.props) {
|
|
6497
|
+
if (prop.type === 7 && prop.name === "bind" && !prop.exp) {
|
|
6498
|
+
const arg = prop.arg;
|
|
6499
|
+
if (arg.type !== 4 || !arg.isStatic) {
|
|
6500
|
+
context.onError(
|
|
6501
|
+
createCompilerError(
|
|
6502
|
+
52,
|
|
6503
|
+
arg.loc
|
|
6504
|
+
)
|
|
6505
|
+
);
|
|
6506
|
+
prop.exp = createSimpleExpression("", true, arg.loc);
|
|
6507
|
+
} else {
|
|
6508
|
+
const propName = shared.camelize(arg.content);
|
|
6509
|
+
if (validFirstIdentCharRE.test(propName[0]) || // allow hyphen first char for https://github.com/vuejs/language-tools/pull/3424
|
|
6510
|
+
propName[0] === "-") {
|
|
6511
|
+
prop.exp = createSimpleExpression(propName, false, arg.loc);
|
|
6512
|
+
}
|
|
6513
|
+
}
|
|
6514
|
+
}
|
|
6515
|
+
}
|
|
6516
|
+
}
|
|
6517
|
+
};
|
|
6518
|
+
|
|
6487
6519
|
function getBaseTransformPreset(prefixIdentifiers) {
|
|
6488
6520
|
return [
|
|
6489
6521
|
[
|
|
6522
|
+
transformVBindShorthand,
|
|
6490
6523
|
transformOnce,
|
|
6491
6524
|
transformIf,
|
|
6492
6525
|
transformMemo,
|
|
@@ -6698,8 +6731,10 @@ exports.transformElement = transformElement;
|
|
|
6698
6731
|
exports.transformExpression = transformExpression;
|
|
6699
6732
|
exports.transformModel = transformModel;
|
|
6700
6733
|
exports.transformOn = transformOn;
|
|
6734
|
+
exports.transformVBindShorthand = transformVBindShorthand;
|
|
6701
6735
|
exports.traverseNode = traverseNode;
|
|
6702
6736
|
exports.unwrapTSNode = unwrapTSNode;
|
|
6737
|
+
exports.validFirstIdentCharRE = validFirstIdentCharRE;
|
|
6703
6738
|
exports.walkBlockDeclarations = walkBlockDeclarations;
|
|
6704
6739
|
exports.walkFunctionParams = walkFunctionParams;
|
|
6705
6740
|
exports.walkIdentifiers = walkIdentifiers;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.22",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@babel/parser": "^7.28.
|
|
49
|
+
"@babel/parser": "^7.28.4",
|
|
50
50
|
"entities": "^4.5.0",
|
|
51
51
|
"estree-walker": "^2.0.2",
|
|
52
52
|
"source-map-js": "^1.2.1",
|
|
53
|
-
"@vue/shared": "3.5.
|
|
53
|
+
"@vue/shared": "3.5.22"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/types": "^7.28.
|
|
56
|
+
"@babel/types": "^7.28.4"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.5.
|
|
2
|
+
* @vue/compiler-dom v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -469,6 +469,9 @@ function analyzeNode(node) {
|
|
|
469
469
|
if (node.type === 1 && isNonStringifiable(node.tag)) {
|
|
470
470
|
return false;
|
|
471
471
|
}
|
|
472
|
+
if (node.type === 1 && compilerCore.findDir(node, "once", true)) {
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
472
475
|
if (node.type === 12) {
|
|
473
476
|
return [1, 0];
|
|
474
477
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-dom",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.22",
|
|
4
4
|
"description": "@vue/compiler-dom",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-dom.esm-bundler.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@vue/shared": "3.5.
|
|
55
|
-
"@vue/compiler-core": "3.5.
|
|
54
|
+
"@vue/shared": "3.5.22",
|
|
55
|
+
"@vue/compiler-core": "3.5.22"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-ssr v3.5.
|
|
2
|
+
* @vue/compiler-ssr v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -298,6 +298,14 @@ const ssrTransformElement = (node, context) => {
|
|
|
298
298
|
const hasCustomDir = node.props.some(
|
|
299
299
|
(p) => p.type === 7 && !shared.isBuiltInDirective(p.name)
|
|
300
300
|
);
|
|
301
|
+
const vShowPropIndex = node.props.findIndex(
|
|
302
|
+
(i) => i.type === 7 && i.name === "show"
|
|
303
|
+
);
|
|
304
|
+
if (vShowPropIndex !== -1) {
|
|
305
|
+
const vShowProp = node.props[vShowPropIndex];
|
|
306
|
+
node.props.splice(vShowPropIndex, 1);
|
|
307
|
+
node.props.push(vShowProp);
|
|
308
|
+
}
|
|
301
309
|
const needMergeProps = hasDynamicVBind || hasCustomDir;
|
|
302
310
|
if (needMergeProps) {
|
|
303
311
|
const { props, directives } = compilerDom.buildProps(
|
|
@@ -1365,6 +1373,7 @@ function compile(source, options = {}) {
|
|
|
1365
1373
|
...options,
|
|
1366
1374
|
hoistStatic: false,
|
|
1367
1375
|
nodeTransforms: [
|
|
1376
|
+
compilerDom.transformVBindShorthand,
|
|
1368
1377
|
ssrTransformIf,
|
|
1369
1378
|
ssrTransformFor,
|
|
1370
1379
|
compilerDom.trackVForSlotScopes,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.22",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.5.
|
|
32
|
-
"@vue/compiler-dom": "3.5.
|
|
31
|
+
"@vue/shared": "3.5.22",
|
|
32
|
+
"@vue/compiler-dom": "3.5.22"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.5.
|
|
2
|
+
* @vue/reactivity v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -792,7 +792,7 @@ function iterator(self, method, wrapValue) {
|
|
|
792
792
|
iter._next = iter.next;
|
|
793
793
|
iter.next = () => {
|
|
794
794
|
const result = iter._next();
|
|
795
|
-
if (result.
|
|
795
|
+
if (!result.done) {
|
|
796
796
|
result.value = wrapValue(result.value);
|
|
797
797
|
}
|
|
798
798
|
return result;
|
|
@@ -919,7 +919,8 @@ class BaseReactiveHandler {
|
|
|
919
919
|
return res;
|
|
920
920
|
}
|
|
921
921
|
if (isRef(res)) {
|
|
922
|
-
|
|
922
|
+
const value = targetIsArray && shared.isIntegerKey(key) ? res : res.value;
|
|
923
|
+
return isReadonly2 && shared.isObject(value) ? readonly(value) : value;
|
|
923
924
|
}
|
|
924
925
|
if (shared.isObject(res)) {
|
|
925
926
|
return isReadonly2 ? readonly(res) : reactive(res);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/reactivity",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.22",
|
|
4
4
|
"description": "@vue/reactivity",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/reactivity.esm-bundler.js",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@vue/shared": "3.5.
|
|
53
|
+
"@vue/shared": "3.5.22"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -414,9 +414,6 @@ const TeleportImpl = {
|
|
|
414
414
|
insert(mainAnchor, container, anchor);
|
|
415
415
|
const mount = (container2, anchor2) => {
|
|
416
416
|
if (shapeFlag & 16) {
|
|
417
|
-
if (parentComponent && parentComponent.isCE) {
|
|
418
|
-
parentComponent.ce._teleportTarget = container2;
|
|
419
|
-
}
|
|
420
417
|
mountChildren(
|
|
421
418
|
children,
|
|
422
419
|
container2,
|
|
@@ -438,6 +435,9 @@ const TeleportImpl = {
|
|
|
438
435
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
439
436
|
namespace = "mathml";
|
|
440
437
|
}
|
|
438
|
+
if (parentComponent && parentComponent.isCE) {
|
|
439
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
440
|
+
}
|
|
441
441
|
if (!disabled) {
|
|
442
442
|
mount(target, targetAnchor);
|
|
443
443
|
updateCssVars(n2, false);
|
|
@@ -2327,12 +2327,13 @@ function createSlots(slots, dynamicSlots) {
|
|
|
2327
2327
|
|
|
2328
2328
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
2329
2329
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
2330
|
+
const hasProps = Object.keys(props).length > 0;
|
|
2330
2331
|
if (name !== "default") props.name = name;
|
|
2331
2332
|
return openBlock(), createBlock(
|
|
2332
2333
|
Fragment,
|
|
2333
2334
|
null,
|
|
2334
2335
|
[createVNode("slot", props, fallback && fallback())],
|
|
2335
|
-
64
|
|
2336
|
+
hasProps ? -2 : 64
|
|
2336
2337
|
);
|
|
2337
2338
|
}
|
|
2338
2339
|
let slot = slots[name];
|
|
@@ -6504,31 +6505,28 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
6504
6505
|
};
|
|
6505
6506
|
|
|
6506
6507
|
function h(type, propsOrChildren, children) {
|
|
6507
|
-
|
|
6508
|
+
try {
|
|
6508
6509
|
setBlockTracking(-1);
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
if (isVNode(propsOrChildren)) {
|
|
6519
|
-
return doCreateVNode(type, null, [propsOrChildren]);
|
|
6510
|
+
const l = arguments.length;
|
|
6511
|
+
if (l === 2) {
|
|
6512
|
+
if (shared.isObject(propsOrChildren) && !shared.isArray(propsOrChildren)) {
|
|
6513
|
+
if (isVNode(propsOrChildren)) {
|
|
6514
|
+
return createVNode(type, null, [propsOrChildren]);
|
|
6515
|
+
}
|
|
6516
|
+
return createVNode(type, propsOrChildren);
|
|
6517
|
+
} else {
|
|
6518
|
+
return createVNode(type, null, propsOrChildren);
|
|
6520
6519
|
}
|
|
6521
|
-
return doCreateVNode(type, propsOrChildren);
|
|
6522
6520
|
} else {
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
children = [children];
|
|
6521
|
+
if (l > 3) {
|
|
6522
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
6523
|
+
} else if (l === 3 && isVNode(children)) {
|
|
6524
|
+
children = [children];
|
|
6525
|
+
}
|
|
6526
|
+
return createVNode(type, propsOrChildren, children);
|
|
6530
6527
|
}
|
|
6531
|
-
|
|
6528
|
+
} finally {
|
|
6529
|
+
setBlockTracking(1);
|
|
6532
6530
|
}
|
|
6533
6531
|
}
|
|
6534
6532
|
|
|
@@ -6564,7 +6562,7 @@ function isMemoSame(cached, memo) {
|
|
|
6564
6562
|
return true;
|
|
6565
6563
|
}
|
|
6566
6564
|
|
|
6567
|
-
const version = "3.5.
|
|
6565
|
+
const version = "3.5.22";
|
|
6568
6566
|
const warn$1 = shared.NOOP;
|
|
6569
6567
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6570
6568
|
const devtools = void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.22",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.5.
|
|
50
|
-
"@vue/reactivity": "3.5.
|
|
49
|
+
"@vue/shared": "3.5.22",
|
|
50
|
+
"@vue/reactivity": "3.5.22"
|
|
51
51
|
}
|
|
52
52
|
}
|