@nine-lab/nine-mu 0.1.318 → 0.1.320
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
|
@@ -17097,22 +17097,17 @@ class NotificationHandler {
|
|
|
17097
17097
|
* 최종 조립이 끝나 시그널이 도달했을 때 딱 한 번 팝업을 열어 일괄 주입
|
|
17098
17098
|
*/
|
|
17099
17099
|
__privateAdd(this, _openDiffPopup, () => {
|
|
17100
|
-
trace.log("1111111");
|
|
17101
17100
|
if (__privateGet(this, _collectedFiles).length === 0) return;
|
|
17102
17101
|
const $oldPopup = __privateGet(this, _owner).shadowRoot.querySelector("nine-diff-popup");
|
|
17103
17102
|
if ($oldPopup) {
|
|
17104
17103
|
$oldPopup.remove();
|
|
17105
17104
|
}
|
|
17106
|
-
trace.log("222222");
|
|
17107
17105
|
const $diffPopup = document.createElement("nine-diff-popup");
|
|
17108
17106
|
$diffPopup.setAttribute("package-name", __privateGet(this, _owner).getAttribute("package-name") || "");
|
|
17109
|
-
trace.log("33333");
|
|
17110
17107
|
const container = __privateGet(this, _owner).shadowRoot.querySelector(".wrapper") || __privateGet(this, _owner).shadowRoot;
|
|
17111
17108
|
container.appendChild($diffPopup);
|
|
17112
|
-
trace.log("444444");
|
|
17113
17109
|
$diffPopup.data([...__privateGet(this, _collectedFiles)]);
|
|
17114
17110
|
$diffPopup.popup();
|
|
17115
|
-
trace.log("55555");
|
|
17116
17111
|
__privateSet(this, _collectedFiles, []);
|
|
17117
17112
|
});
|
|
17118
17113
|
/**
|
|
@@ -17566,7 +17561,7 @@ render_fn = function() {
|
|
|
17566
17561
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17567
17562
|
this.shadowRoot.innerHTML = `
|
|
17568
17563
|
<style>
|
|
17569
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17564
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.319"}/dist/css/nine-mu.css";
|
|
17570
17565
|
${customImport}
|
|
17571
17566
|
</style>
|
|
17572
17567
|
<div class="wrapper">
|
|
@@ -43818,7 +43813,7 @@ class NineDiff extends HTMLElement {
|
|
|
43818
43813
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43819
43814
|
this.shadowRoot.innerHTML = `
|
|
43820
43815
|
<style>
|
|
43821
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43816
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.319"}/dist/css/nine-mu.css";
|
|
43822
43817
|
${customImport}
|
|
43823
43818
|
</style>
|
|
43824
43819
|
|
|
@@ -43914,16 +43909,17 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43914
43909
|
</nine-tab-page>
|
|
43915
43910
|
`;
|
|
43916
43911
|
});
|
|
43912
|
+
__privateGet(this, _tabContainer).removeEventListener("change-dirty", this._onDiffDirtyChange);
|
|
43913
|
+
this._onDiffDirtyChange = (e) => {
|
|
43914
|
+
const { isDirty: isDirty2 } = e.detail;
|
|
43915
|
+
trace.log("이벤트 위임 감지 - IsDirty:", isDirty2);
|
|
43916
|
+
const confirmBtn = this.shadowRoot.querySelector(".btn-confirm");
|
|
43917
|
+
if (confirmBtn) {
|
|
43918
|
+
confirmBtn.disabled = !isDirty2;
|
|
43919
|
+
}
|
|
43920
|
+
};
|
|
43921
|
+
__privateGet(this, _tabContainer).addEventListener("change-dirty", this._onDiffDirtyChange);
|
|
43917
43922
|
__privateGet(this, _tabContainer).innerHTML = totalTabHtml;
|
|
43918
|
-
__privateGet(this, _tabContainer).querySelectorAll("nine-diff").forEach((element) => {
|
|
43919
|
-
trace.log(element);
|
|
43920
|
-
element.addEventListener("change-dirty", (e) => {
|
|
43921
|
-
const { isDirty: isDirty2 } = e.detail;
|
|
43922
|
-
trace.log(isDirty2);
|
|
43923
|
-
trace.log(this.shadowRoot.querySelector(".btn-confirm"));
|
|
43924
|
-
this.shadowRoot.querySelector(".btn-confirm").disabled = !isDirty2;
|
|
43925
|
-
});
|
|
43926
|
-
});
|
|
43927
43923
|
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).connectedCallback === "function") {
|
|
43928
43924
|
__privateGet(this, _tabContainer).connectedCallback();
|
|
43929
43925
|
}
|
|
@@ -43957,7 +43953,7 @@ renderScaffolding_fn = function() {
|
|
|
43957
43953
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
43958
43954
|
this.shadowRoot.innerHTML = `
|
|
43959
43955
|
<style>
|
|
43960
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43956
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.319"}/dist/css/nine-mu.css";
|
|
43961
43957
|
${customImport}
|
|
43962
43958
|
</style>
|
|
43963
43959
|
|
|
@@ -43976,21 +43972,20 @@ renderScaffolding_fn = function() {
|
|
|
43976
43972
|
this.shadowRoot.querySelector(".btn-cancel").onclick = () => __privateMethod(this, _NineDiffPopup_instances, handleCancel_fn).call(this);
|
|
43977
43973
|
};
|
|
43978
43974
|
handleConfirmAll_fn = async function() {
|
|
43979
|
-
var _a2;
|
|
43980
43975
|
const payloadList = [];
|
|
43981
43976
|
for (const file of __privateGet(this, _fileList)) {
|
|
43982
43977
|
const { layer: layer2, full_path, asis_source } = file;
|
|
43983
43978
|
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43984
43979
|
const currentContent = diff ? diff.getAsisContents() : asis_source;
|
|
43985
43980
|
payloadList.push({
|
|
43986
|
-
layer
|
|
43981
|
+
//layer,
|
|
43987
43982
|
fullPath: full_path,
|
|
43988
|
-
packageName:
|
|
43983
|
+
//packageName: this.#host?.getAttribute('package-name') || "com.ninelab.ai",
|
|
43989
43984
|
contents: currentContent
|
|
43990
43985
|
});
|
|
43991
43986
|
}
|
|
43992
43987
|
try {
|
|
43993
|
-
await api.post(`/nine-mu/source/
|
|
43988
|
+
await api.post(`/nine-mu/source/generateRealFile`, { list: payloadList });
|
|
43994
43989
|
await nine$1.alert("요청하신 모든 파일의 소스 변경 사항이 성공적으로 반영되었습니다.");
|
|
43995
43990
|
__privateGet(this, _dialog).close();
|
|
43996
43991
|
} catch (error) {
|
|
@@ -44067,7 +44062,7 @@ render_fn2 = function() {
|
|
|
44067
44062
|
const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
|
|
44068
44063
|
this.shadowRoot.innerHTML = `
|
|
44069
44064
|
<style>
|
|
44070
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44065
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.319"}/dist/css/nine-mu.css";
|
|
44071
44066
|
${customImport}
|
|
44072
44067
|
</style>
|
|
44073
44068
|
|
|
@@ -44398,7 +44393,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44398
44393
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44399
44394
|
this.shadowRoot.innerHTML = `
|
|
44400
44395
|
<style>
|
|
44401
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44396
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.319"}/dist/css/nine-mu.css";
|
|
44402
44397
|
${customImport}
|
|
44403
44398
|
</style>
|
|
44404
44399
|
|
|
@@ -44492,7 +44487,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44492
44487
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44493
44488
|
}
|
|
44494
44489
|
const NineMu = {
|
|
44495
|
-
version: "0.1.
|
|
44490
|
+
version: "0.1.319",
|
|
44496
44491
|
init: (config2) => {
|
|
44497
44492
|
trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
|
|
44498
44493
|
}
|