ninegrid2 6.948.0 → 6.950.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.
@@ -11289,6 +11289,20 @@ class ninegrid {
11289
11289
  return formatedDate;
11290
11290
  };
11291
11291
 
11292
+ static goto = (selector, params) => {
11293
+
11294
+ const el = document.querySelector(selector);
11295
+ if (!el) return;
11296
+
11297
+ document.querySelectorAll(".list-wrapper.active,[class*='detail-wrapper-'].active").forEach((el) => {
11298
+ el.classList.remove("active");
11299
+ });
11300
+
11301
+ el.classList.add("active");
11302
+
11303
+ return el;
11304
+ };
11305
+
11292
11306
 
11293
11307
  static context;
11294
11308
  static measureTextSize = (_text, _font) => {
@@ -121825,7 +121839,7 @@ class nxTitle extends HTMLElement {
121825
121839
  const isCurrent = index === this.#breadcrumbPath.length - 1;
121826
121840
  // static 메서드를 직접 호출하도록 수정
121827
121841
  const linkTag = item.path && !isCurrent
121828
- ? `<a href="javascript:void(0);">
121842
+ ? `<a href="javascript:void(0);"
121829
121843
  class="breadcrumb-item breadcrumb-link"
121830
121844
  data-path="${item.path}"
121831
121845
  >${item.caption}</a>`
@@ -11285,6 +11285,20 @@ class ninegrid {
11285
11285
  return formatedDate;
11286
11286
  };
11287
11287
 
11288
+ static goto = (selector, params) => {
11289
+
11290
+ const el = document.querySelector(selector);
11291
+ if (!el) return;
11292
+
11293
+ document.querySelectorAll(".list-wrapper.active,[class*='detail-wrapper-'].active").forEach((el) => {
11294
+ el.classList.remove("active");
11295
+ });
11296
+
11297
+ el.classList.add("active");
11298
+
11299
+ return el;
11300
+ };
11301
+
11288
11302
 
11289
11303
  static context;
11290
11304
  static measureTextSize = (_text, _font) => {
@@ -121821,7 +121835,7 @@ class nxTitle extends HTMLElement {
121821
121835
  const isCurrent = index === this.#breadcrumbPath.length - 1;
121822
121836
  // static 메서드를 직접 호출하도록 수정
121823
121837
  const linkTag = item.path && !isCurrent
121824
- ? `<a href="javascript:void(0);">
121838
+ ? `<a href="javascript:void(0);"
121825
121839
  class="breadcrumb-item breadcrumb-link"
121826
121840
  data-path="${item.path}"
121827
121841
  >${item.caption}</a>`
@@ -160,7 +160,7 @@ export class nxTitle extends HTMLElement {
160
160
  const isCurrent = index === this.#breadcrumbPath.length - 1;
161
161
  // static 메서드를 직접 호출하도록 수정
162
162
  const linkTag = item.path && !isCurrent
163
- ? `<a href="javascript:void(0);">
163
+ ? `<a href="javascript:void(0);"
164
164
  class="breadcrumb-item breadcrumb-link"
165
165
  data-path="${item.path}"
166
166
  >${item.caption}</a>`
@@ -422,6 +422,20 @@ export class ninegrid {
422
422
  return formatedDate;
423
423
  };
424
424
 
425
+ static goto = (selector, params) => {
426
+
427
+ const el = document.querySelector(selector);
428
+ if (!el) return;
429
+
430
+ document.querySelectorAll(".list-wrapper.active,[class*='detail-wrapper-'].active").forEach((el) => {
431
+ el.classList.remove("active");
432
+ });
433
+
434
+ el.classList.add("active");
435
+
436
+ return el;
437
+ };
438
+
425
439
 
426
440
  static context;
427
441
  static measureTextSize = (_text, _font) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.948.0",
4
+ "version": "6.950.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/src/nx/nxTitle.js CHANGED
@@ -160,7 +160,7 @@ export class nxTitle extends HTMLElement {
160
160
  const isCurrent = index === this.#breadcrumbPath.length - 1;
161
161
  // static 메서드를 직접 호출하도록 수정
162
162
  const linkTag = item.path && !isCurrent
163
- ? `<a href="javascript:void(0);">
163
+ ? `<a href="javascript:void(0);"
164
164
  class="breadcrumb-item breadcrumb-link"
165
165
  data-path="${item.path}"
166
166
  >${item.caption}</a>`
@@ -422,6 +422,20 @@ export class ninegrid {
422
422
  return formatedDate;
423
423
  };
424
424
 
425
+ static goto = (selector, params) => {
426
+
427
+ const el = document.querySelector(selector);
428
+ if (!el) return;
429
+
430
+ document.querySelectorAll(".list-wrapper.active,[class*='detail-wrapper-'].active").forEach((el) => {
431
+ el.classList.remove("active");
432
+ });
433
+
434
+ el.classList.add("active");
435
+
436
+ return el;
437
+ };
438
+
425
439
 
426
440
  static context;
427
441
  static measureTextSize = (_text, _font) => {