@wireweave/core 1.4.0 → 1.4.1-beta.0
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/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/dist/renderer.cjs +5 -5
- package/dist/renderer.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8122,7 +8122,7 @@ var BaseRenderer = class {
|
|
|
8122
8122
|
continue;
|
|
8123
8123
|
}
|
|
8124
8124
|
if (value === true) {
|
|
8125
|
-
parts.push(key);
|
|
8125
|
+
parts.push(`${key}="${key}"`);
|
|
8126
8126
|
} else {
|
|
8127
8127
|
parts.push(`${key}="${this.escapeHtml(value)}"`);
|
|
8128
8128
|
}
|
|
@@ -55034,13 +55034,13 @@ function renderSelect(node, ctx) {
|
|
|
55034
55034
|
};
|
|
55035
55035
|
const options = node.options.map((opt) => {
|
|
55036
55036
|
if (typeof opt === "string") {
|
|
55037
|
-
const selected2 = opt === node.value ?
|
|
55037
|
+
const selected2 = opt === node.value ? ' selected="selected"' : "";
|
|
55038
55038
|
return `<option value="${ctx.escapeHtml(opt)}"${selected2}>${ctx.escapeHtml(opt)}</option>`;
|
|
55039
55039
|
}
|
|
55040
|
-
const selected = opt.value === node.value ?
|
|
55040
|
+
const selected = opt.value === node.value ? ' selected="selected"' : "";
|
|
55041
55041
|
return `<option value="${ctx.escapeHtml(opt.value)}"${selected}>${ctx.escapeHtml(opt.label)}</option>`;
|
|
55042
55042
|
}).join("\n");
|
|
55043
|
-
const placeholder = node.placeholder ? `<option value="" disabled selected>${ctx.escapeHtml(node.placeholder)}</option>
|
|
55043
|
+
const placeholder = node.placeholder ? `<option value="" disabled="disabled" selected="selected">${ctx.escapeHtml(node.placeholder)}</option>
|
|
55044
55044
|
` : "";
|
|
55045
55045
|
const select = `<select${ctx.buildAttrsString(attrs)}${styleAttr}>
|
|
55046
55046
|
${placeholder}${options}
|
|
@@ -55282,7 +55282,7 @@ function renderDropdown(node, ctx) {
|
|
|
55282
55282
|
dropdownItem.danger ? `${ctx.prefix}-dropdown-item-danger` : void 0,
|
|
55283
55283
|
dropdownItem.disabled ? `${ctx.prefix}-dropdown-item-disabled` : void 0
|
|
55284
55284
|
]);
|
|
55285
|
-
return `<button class="${itemClasses}"${dropdownItem.disabled ?
|
|
55285
|
+
return `<button class="${itemClasses}"${dropdownItem.disabled ? ' disabled="disabled"' : ""}>${ctx.escapeHtml(dropdownItem.label)}</button>`;
|
|
55286
55286
|
}).join("\n");
|
|
55287
55287
|
return `<div class="${classes}"${styleAttr}>
|
|
55288
55288
|
${items}
|
package/dist/index.js
CHANGED
|
@@ -7982,7 +7982,7 @@ var BaseRenderer = class {
|
|
|
7982
7982
|
continue;
|
|
7983
7983
|
}
|
|
7984
7984
|
if (value === true) {
|
|
7985
|
-
parts.push(key);
|
|
7985
|
+
parts.push(`${key}="${key}"`);
|
|
7986
7986
|
} else {
|
|
7987
7987
|
parts.push(`${key}="${this.escapeHtml(value)}"`);
|
|
7988
7988
|
}
|
|
@@ -54894,13 +54894,13 @@ function renderSelect(node, ctx) {
|
|
|
54894
54894
|
};
|
|
54895
54895
|
const options = node.options.map((opt) => {
|
|
54896
54896
|
if (typeof opt === "string") {
|
|
54897
|
-
const selected2 = opt === node.value ?
|
|
54897
|
+
const selected2 = opt === node.value ? ' selected="selected"' : "";
|
|
54898
54898
|
return `<option value="${ctx.escapeHtml(opt)}"${selected2}>${ctx.escapeHtml(opt)}</option>`;
|
|
54899
54899
|
}
|
|
54900
|
-
const selected = opt.value === node.value ?
|
|
54900
|
+
const selected = opt.value === node.value ? ' selected="selected"' : "";
|
|
54901
54901
|
return `<option value="${ctx.escapeHtml(opt.value)}"${selected}>${ctx.escapeHtml(opt.label)}</option>`;
|
|
54902
54902
|
}).join("\n");
|
|
54903
|
-
const placeholder = node.placeholder ? `<option value="" disabled selected>${ctx.escapeHtml(node.placeholder)}</option>
|
|
54903
|
+
const placeholder = node.placeholder ? `<option value="" disabled="disabled" selected="selected">${ctx.escapeHtml(node.placeholder)}</option>
|
|
54904
54904
|
` : "";
|
|
54905
54905
|
const select = `<select${ctx.buildAttrsString(attrs)}${styleAttr}>
|
|
54906
54906
|
${placeholder}${options}
|
|
@@ -55142,7 +55142,7 @@ function renderDropdown(node, ctx) {
|
|
|
55142
55142
|
dropdownItem.danger ? `${ctx.prefix}-dropdown-item-danger` : void 0,
|
|
55143
55143
|
dropdownItem.disabled ? `${ctx.prefix}-dropdown-item-disabled` : void 0
|
|
55144
55144
|
]);
|
|
55145
|
-
return `<button class="${itemClasses}"${dropdownItem.disabled ?
|
|
55145
|
+
return `<button class="${itemClasses}"${dropdownItem.disabled ? ' disabled="disabled"' : ""}>${ctx.escapeHtml(dropdownItem.label)}</button>`;
|
|
55146
55146
|
}).join("\n");
|
|
55147
55147
|
return `<div class="${classes}"${styleAttr}>
|
|
55148
55148
|
${items}
|
package/dist/renderer.cjs
CHANGED
|
@@ -1802,7 +1802,7 @@ var BaseRenderer = class {
|
|
|
1802
1802
|
continue;
|
|
1803
1803
|
}
|
|
1804
1804
|
if (value === true) {
|
|
1805
|
-
parts.push(key);
|
|
1805
|
+
parts.push(`${key}="${key}"`);
|
|
1806
1806
|
} else {
|
|
1807
1807
|
parts.push(`${key}="${this.escapeHtml(value)}"`);
|
|
1808
1808
|
}
|
|
@@ -48685,13 +48685,13 @@ function renderSelect(node, ctx) {
|
|
|
48685
48685
|
};
|
|
48686
48686
|
const options = node.options.map((opt) => {
|
|
48687
48687
|
if (typeof opt === "string") {
|
|
48688
|
-
const selected2 = opt === node.value ?
|
|
48688
|
+
const selected2 = opt === node.value ? ' selected="selected"' : "";
|
|
48689
48689
|
return `<option value="${ctx.escapeHtml(opt)}"${selected2}>${ctx.escapeHtml(opt)}</option>`;
|
|
48690
48690
|
}
|
|
48691
|
-
const selected = opt.value === node.value ?
|
|
48691
|
+
const selected = opt.value === node.value ? ' selected="selected"' : "";
|
|
48692
48692
|
return `<option value="${ctx.escapeHtml(opt.value)}"${selected}>${ctx.escapeHtml(opt.label)}</option>`;
|
|
48693
48693
|
}).join("\n");
|
|
48694
|
-
const placeholder = node.placeholder ? `<option value="" disabled selected>${ctx.escapeHtml(node.placeholder)}</option>
|
|
48694
|
+
const placeholder = node.placeholder ? `<option value="" disabled="disabled" selected="selected">${ctx.escapeHtml(node.placeholder)}</option>
|
|
48695
48695
|
` : "";
|
|
48696
48696
|
const select = `<select${ctx.buildAttrsString(attrs)}${styleAttr}>
|
|
48697
48697
|
${placeholder}${options}
|
|
@@ -48933,7 +48933,7 @@ function renderDropdown(node, ctx) {
|
|
|
48933
48933
|
dropdownItem.danger ? `${ctx.prefix}-dropdown-item-danger` : void 0,
|
|
48934
48934
|
dropdownItem.disabled ? `${ctx.prefix}-dropdown-item-disabled` : void 0
|
|
48935
48935
|
]);
|
|
48936
|
-
return `<button class="${itemClasses}"${dropdownItem.disabled ?
|
|
48936
|
+
return `<button class="${itemClasses}"${dropdownItem.disabled ? ' disabled="disabled"' : ""}>${ctx.escapeHtml(dropdownItem.label)}</button>`;
|
|
48937
48937
|
}).join("\n");
|
|
48938
48938
|
return `<div class="${classes}"${styleAttr}>
|
|
48939
48939
|
${items}
|
package/dist/renderer.js
CHANGED
|
@@ -1764,7 +1764,7 @@ var BaseRenderer = class {
|
|
|
1764
1764
|
continue;
|
|
1765
1765
|
}
|
|
1766
1766
|
if (value === true) {
|
|
1767
|
-
parts.push(key);
|
|
1767
|
+
parts.push(`${key}="${key}"`);
|
|
1768
1768
|
} else {
|
|
1769
1769
|
parts.push(`${key}="${this.escapeHtml(value)}"`);
|
|
1770
1770
|
}
|
|
@@ -48647,13 +48647,13 @@ function renderSelect(node, ctx) {
|
|
|
48647
48647
|
};
|
|
48648
48648
|
const options = node.options.map((opt) => {
|
|
48649
48649
|
if (typeof opt === "string") {
|
|
48650
|
-
const selected2 = opt === node.value ?
|
|
48650
|
+
const selected2 = opt === node.value ? ' selected="selected"' : "";
|
|
48651
48651
|
return `<option value="${ctx.escapeHtml(opt)}"${selected2}>${ctx.escapeHtml(opt)}</option>`;
|
|
48652
48652
|
}
|
|
48653
|
-
const selected = opt.value === node.value ?
|
|
48653
|
+
const selected = opt.value === node.value ? ' selected="selected"' : "";
|
|
48654
48654
|
return `<option value="${ctx.escapeHtml(opt.value)}"${selected}>${ctx.escapeHtml(opt.label)}</option>`;
|
|
48655
48655
|
}).join("\n");
|
|
48656
|
-
const placeholder = node.placeholder ? `<option value="" disabled selected>${ctx.escapeHtml(node.placeholder)}</option>
|
|
48656
|
+
const placeholder = node.placeholder ? `<option value="" disabled="disabled" selected="selected">${ctx.escapeHtml(node.placeholder)}</option>
|
|
48657
48657
|
` : "";
|
|
48658
48658
|
const select = `<select${ctx.buildAttrsString(attrs)}${styleAttr}>
|
|
48659
48659
|
${placeholder}${options}
|
|
@@ -48895,7 +48895,7 @@ function renderDropdown(node, ctx) {
|
|
|
48895
48895
|
dropdownItem.danger ? `${ctx.prefix}-dropdown-item-danger` : void 0,
|
|
48896
48896
|
dropdownItem.disabled ? `${ctx.prefix}-dropdown-item-disabled` : void 0
|
|
48897
48897
|
]);
|
|
48898
|
-
return `<button class="${itemClasses}"${dropdownItem.disabled ?
|
|
48898
|
+
return `<button class="${itemClasses}"${dropdownItem.disabled ? ' disabled="disabled"' : ""}>${ctx.escapeHtml(dropdownItem.label)}</button>`;
|
|
48899
48899
|
}).join("\n");
|
|
48900
48900
|
return `<div class="${classes}"${styleAttr}>
|
|
48901
48901
|
${items}
|