@nine-lab/nine-mu 0.1.310 → 0.1.312
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/nine-mu.js
CHANGED
|
@@ -17563,7 +17563,7 @@ render_fn = function() {
|
|
|
17563
17563
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17564
17564
|
this.shadowRoot.innerHTML = `
|
|
17565
17565
|
<style>
|
|
17566
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17566
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.311"}/dist/css/nine-mu.css";
|
|
17567
17567
|
${customImport}
|
|
17568
17568
|
</style>
|
|
17569
17569
|
<div class="wrapper">
|
|
@@ -43815,7 +43815,7 @@ class NineDiff extends HTMLElement {
|
|
|
43815
43815
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43816
43816
|
this.shadowRoot.innerHTML = `
|
|
43817
43817
|
<style>
|
|
43818
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43818
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.311"}/dist/css/nine-mu.css";
|
|
43819
43819
|
${customImport}
|
|
43820
43820
|
</style>
|
|
43821
43821
|
|
|
@@ -43912,6 +43912,15 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43912
43912
|
`;
|
|
43913
43913
|
});
|
|
43914
43914
|
__privateGet(this, _tabContainer).innerHTML = totalTabHtml;
|
|
43915
|
+
__privateGet(this, _tabContainer).querySelectorAll("nine-diff").forEach((element) => {
|
|
43916
|
+
trace.log(element);
|
|
43917
|
+
element.addEventListener("change-dirty", (e) => {
|
|
43918
|
+
const { isDirty: isDirty2 } = e.detail;
|
|
43919
|
+
trace.log(isDirty2);
|
|
43920
|
+
trace.log(this.shadowRoot.querySelector(".btn-confirm"));
|
|
43921
|
+
this.shadowRoot.querySelector(".btn-confirm").disabled = !isDirty2;
|
|
43922
|
+
});
|
|
43923
|
+
});
|
|
43915
43924
|
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).connectedCallback === "function") {
|
|
43916
43925
|
__privateGet(this, _tabContainer).connectedCallback();
|
|
43917
43926
|
}
|
|
@@ -43945,7 +43954,7 @@ renderScaffolding_fn = function() {
|
|
|
43945
43954
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43946
43955
|
this.shadowRoot.innerHTML = `
|
|
43947
43956
|
<style>
|
|
43948
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43957
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.311"}/dist/css/nine-mu.css";
|
|
43949
43958
|
${customImport}
|
|
43950
43959
|
</style>
|
|
43951
43960
|
|
|
@@ -43954,7 +43963,7 @@ renderScaffolding_fn = function() {
|
|
|
43954
43963
|
|
|
43955
43964
|
<div class="footer">
|
|
43956
43965
|
<button class="btn btn-cancel">취소</button>
|
|
43957
|
-
<button class="btn btn-confirm">모두 저장</button>
|
|
43966
|
+
<button class="btn btn-confirm" disabled>모두 저장</button>
|
|
43958
43967
|
</div>
|
|
43959
43968
|
</nine-dialog>
|
|
43960
43969
|
`;
|
|
@@ -43969,7 +43978,7 @@ handleConfirmAll_fn = async function() {
|
|
|
43969
43978
|
for (const file of __privateGet(this, _fileList)) {
|
|
43970
43979
|
const { layer: layer2, full_path, asis_source } = file;
|
|
43971
43980
|
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43972
|
-
const currentContent = diff ? diff.
|
|
43981
|
+
const currentContent = diff ? diff.getAsisContents() : asis_source;
|
|
43973
43982
|
payloadList.push({
|
|
43974
43983
|
layer: layer2,
|
|
43975
43984
|
fullPath: full_path,
|
|
@@ -44055,7 +44064,7 @@ render_fn2 = function() {
|
|
|
44055
44064
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44056
44065
|
this.shadowRoot.innerHTML = `
|
|
44057
44066
|
<style>
|
|
44058
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44067
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.311"}/dist/css/nine-mu.css";
|
|
44059
44068
|
${customImport}
|
|
44060
44069
|
</style>
|
|
44061
44070
|
|
|
@@ -44078,7 +44087,6 @@ render_fn2 = function() {
|
|
|
44078
44087
|
this.shadowRoot.querySelector(".btn-cancel").onclick = () => __privateMethod(this, _NineMenuDiffPopup_instances, handleCancel_fn2).call(this);
|
|
44079
44088
|
__privateGet(this, _diffView).addEventListener("change-dirty", (e) => {
|
|
44080
44089
|
const { isDirty: isDirty2 } = e.detail;
|
|
44081
|
-
console.log(e);
|
|
44082
44090
|
$btnConfirm.disabled = !isDirty2;
|
|
44083
44091
|
});
|
|
44084
44092
|
};
|
|
@@ -44387,7 +44395,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44387
44395
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44388
44396
|
this.shadowRoot.innerHTML = `
|
|
44389
44397
|
<style>
|
|
44390
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44398
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.311"}/dist/css/nine-mu.css";
|
|
44391
44399
|
${customImport}
|
|
44392
44400
|
</style>
|
|
44393
44401
|
|
|
@@ -44481,7 +44489,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44481
44489
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44482
44490
|
}
|
|
44483
44491
|
const NineMu = {
|
|
44484
|
-
version: "0.1.
|
|
44492
|
+
version: "0.1.311",
|
|
44485
44493
|
init: (config2) => {
|
|
44486
44494
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44487
44495
|
}
|