ninegrid2 6.949.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) => {
@@ -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) => {
@@ -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.949.0",
4
+ "version": "6.950.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -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) => {