@nine-lab/nine-mu 0.1.309 → 0.1.311

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.308"}/dist/css/nine-mu.css";
17566
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.310"}/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.308"}/dist/css/nine-mu.css";
43818
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.310"}/dist/css/nine-mu.css";
43819
43819
  ${customImport}
43820
43820
  </style>
43821
43821
 
@@ -43912,6 +43912,13 @@ 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
+ element.addEventListener("change-dirty", (e) => {
43917
+ const { isDirty: isDirty2 } = e.detail;
43918
+ trace.log(isDirty2);
43919
+ this.shadowRoot.querySelector(".btn-confirm").disabled = !isDirty2;
43920
+ });
43921
+ });
43915
43922
  if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).connectedCallback === "function") {
43916
43923
  __privateGet(this, _tabContainer).connectedCallback();
43917
43924
  }
@@ -43945,7 +43952,7 @@ renderScaffolding_fn = function() {
43945
43952
  const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
43946
43953
  this.shadowRoot.innerHTML = `
43947
43954
  <style>
43948
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.308"}/dist/css/nine-mu.css";
43955
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.310"}/dist/css/nine-mu.css";
43949
43956
  ${customImport}
43950
43957
  </style>
43951
43958
 
@@ -43954,7 +43961,7 @@ renderScaffolding_fn = function() {
43954
43961
 
43955
43962
  <div class="footer">
43956
43963
  <button class="btn btn-cancel">취소</button>
43957
- <button class="btn btn-confirm">모두 저장</button>
43964
+ <button class="btn btn-confirm" disabled>모두 저장</button>
43958
43965
  </div>
43959
43966
  </nine-dialog>
43960
43967
  `;
@@ -43969,7 +43976,7 @@ handleConfirmAll_fn = async function() {
43969
43976
  for (const file of __privateGet(this, _fileList)) {
43970
43977
  const { layer: layer2, full_path, asis_source } = file;
43971
43978
  const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
43972
- const currentContent = diff ? diff.getContents() : asis_source;
43979
+ const currentContent = diff ? diff.getAsisContents() : asis_source;
43973
43980
  payloadList.push({
43974
43981
  layer: layer2,
43975
43982
  fullPath: full_path,
@@ -44055,7 +44062,7 @@ render_fn2 = function() {
44055
44062
  const customImport = nine$1.cssPath ? `@import "${nine$1.cssPath}/nine-mu.css";` : "";
44056
44063
  this.shadowRoot.innerHTML = `
44057
44064
  <style>
44058
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.308"}/dist/css/nine-mu.css";
44065
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.310"}/dist/css/nine-mu.css";
44059
44066
  ${customImport}
44060
44067
  </style>
44061
44068
 
@@ -44066,7 +44073,7 @@ render_fn2 = function() {
44066
44073
  </div>
44067
44074
  <div class="footer">
44068
44075
  <button class="btn btn-cancel">취소</button>
44069
- <button class="btn btn-confirm">저장</button>
44076
+ <button class="btn btn-confirm" disabled>저장</button>
44070
44077
  </div>
44071
44078
  </div>
44072
44079
  </nine-dialog>
@@ -44078,7 +44085,6 @@ render_fn2 = function() {
44078
44085
  this.shadowRoot.querySelector(".btn-cancel").onclick = () => __privateMethod(this, _NineMenuDiffPopup_instances, handleCancel_fn2).call(this);
44079
44086
  __privateGet(this, _diffView).addEventListener("change-dirty", (e) => {
44080
44087
  const { isDirty: isDirty2 } = e.detail;
44081
- console.log(e);
44082
44088
  $btnConfirm.disabled = !isDirty2;
44083
44089
  });
44084
44090
  };
@@ -44387,7 +44393,7 @@ class ChatMessageBody extends HTMLElement {
44387
44393
  const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
44388
44394
  this.shadowRoot.innerHTML = `
44389
44395
  <style>
44390
- @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.308"}/dist/css/nine-mu.css";
44396
+ @import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.310"}/dist/css/nine-mu.css";
44391
44397
  ${customImport}
44392
44398
  </style>
44393
44399
 
@@ -44481,7 +44487,7 @@ if (!customElements.get("nine-chat-progress")) {
44481
44487
  customElements.define("nine-chat-progress", ProgressMessage);
44482
44488
  }
44483
44489
  const NineMu = {
44484
- version: "0.1.308",
44490
+ version: "0.1.310",
44485
44491
  init: (config2) => {
44486
44492
  trace$1.log("🛠️ Nine-Mu Engine initialized", config2);
44487
44493
  }