ninegrid2 6.902.0 → 6.904.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.
@@ -11526,6 +11526,40 @@ class ninegrid {
11526
11526
  return nxAlertPopup.alert(message, title, options);
11527
11527
  };
11528
11528
 
11529
+ static loading = (show = true) => {
11530
+ return {
11531
+ show: () => {
11532
+ let overlay = document.getElementById("global-loading-overlay");
11533
+ if (!overlay) {
11534
+ overlay = document.createElement("div");
11535
+ overlay.id = "global-loading-overlay";
11536
+ overlay.className = "loading-overlay";
11537
+ overlay.innerText = "로딩 중입니다...";
11538
+
11539
+ overlay.style.position = "fixed";
11540
+ overlay.style.inset = "0";
11541
+ overlay.style.zIndex = "9999";
11542
+ overlay.style.background = "rgba(0, 0, 0, 0.4)";
11543
+ overlay.style.color = "white";
11544
+ overlay.style.display = "flex";
11545
+ overlay.style.justifyContent = "center";
11546
+ overlay.style.alignItems = "center";
11547
+ overlay.style.fontSize = "20px";
11548
+ overlay.style.pointerEvents = "all";
11549
+ overlay.style.backdropFilter = "blur(2px)";
11550
+
11551
+ document.body.appendChild(overlay);
11552
+ }
11553
+
11554
+ overlay.style.display = "flex";
11555
+ },
11556
+ hide: () => {
11557
+ const overlay = document.getElementById("global-loading-overlay");
11558
+ if (overlay) overlay.style.display = "none";
11559
+ },
11560
+ }
11561
+ };
11562
+
11529
11563
  static i18n = {
11530
11564
  convertArrayToJSON : (arr) => {
11531
11565
  let result = {};
@@ -11522,6 +11522,40 @@ class ninegrid {
11522
11522
  return nxAlertPopup.alert(message, title, options);
11523
11523
  };
11524
11524
 
11525
+ static loading = (show = true) => {
11526
+ return {
11527
+ show: () => {
11528
+ let overlay = document.getElementById("global-loading-overlay");
11529
+ if (!overlay) {
11530
+ overlay = document.createElement("div");
11531
+ overlay.id = "global-loading-overlay";
11532
+ overlay.className = "loading-overlay";
11533
+ overlay.innerText = "로딩 중입니다...";
11534
+
11535
+ overlay.style.position = "fixed";
11536
+ overlay.style.inset = "0";
11537
+ overlay.style.zIndex = "9999";
11538
+ overlay.style.background = "rgba(0, 0, 0, 0.4)";
11539
+ overlay.style.color = "white";
11540
+ overlay.style.display = "flex";
11541
+ overlay.style.justifyContent = "center";
11542
+ overlay.style.alignItems = "center";
11543
+ overlay.style.fontSize = "20px";
11544
+ overlay.style.pointerEvents = "all";
11545
+ overlay.style.backdropFilter = "blur(2px)";
11546
+
11547
+ document.body.appendChild(overlay);
11548
+ }
11549
+
11550
+ overlay.style.display = "flex";
11551
+ },
11552
+ hide: () => {
11553
+ const overlay = document.getElementById("global-loading-overlay");
11554
+ if (overlay) overlay.style.display = "none";
11555
+ },
11556
+ }
11557
+ };
11558
+
11525
11559
  static i18n = {
11526
11560
  convertArrayToJSON : (arr) => {
11527
11561
  let result = {};
@@ -370,42 +370,6 @@ class ninegrid
370
370
  lang : navigator.language,
371
371
  };
372
372
 
373
- static loading = (show = true) => {
374
- return {
375
- show: () => {
376
- let overlay = document.getElementById("global-loading-overlay");
377
- if (!overlay) {
378
- overlay = document.createElement("div");
379
- overlay.id = "global-loading-overlay";
380
- overlay.className = "loading-overlay";
381
- overlay.innerText = "로딩 중입니다...";
382
-
383
- document.body.appendChild(overlay);
384
- }
385
-
386
- overlay.style.display = "flex";
387
- },
388
- hide: () => {
389
- const overlay = document.getElementById("global-loading-overlay");
390
- if (overlay) overlay.style.display = "none";
391
- },
392
- }
393
- };
394
- /**
395
- // 스타일도 동적으로 적용 (선택사항)
396
- overlay.style.position = "fixed";
397
- overlay.style.inset = "0";
398
- overlay.style.zIndex = "9999";
399
- overlay.style.background = "rgba(0, 0, 0, 0.4)";
400
- overlay.style.color = "white";
401
- overlay.style.display = "flex";
402
- overlay.style.justifyContent = "center";
403
- overlay.style.alignItems = "center";
404
- overlay.style.fontSize = "20px";
405
- overlay.style.pointerEvents = "all";
406
- overlay.style.backdropFilter = "blur(2px)";
407
- */
408
-
409
373
 
410
374
  static querySelectorAll = (selector, root) => {
411
375
 
@@ -659,6 +659,40 @@ export class ninegrid {
659
659
  return nxAlertPopup.alert(message, title, options);
660
660
  };
661
661
 
662
+ static loading = (show = true) => {
663
+ return {
664
+ show: () => {
665
+ let overlay = document.getElementById("global-loading-overlay");
666
+ if (!overlay) {
667
+ overlay = document.createElement("div");
668
+ overlay.id = "global-loading-overlay";
669
+ overlay.className = "loading-overlay";
670
+ overlay.innerText = "로딩 중입니다...";
671
+
672
+ overlay.style.position = "fixed";
673
+ overlay.style.inset = "0";
674
+ overlay.style.zIndex = "9999";
675
+ overlay.style.background = "rgba(0, 0, 0, 0.4)";
676
+ overlay.style.color = "white";
677
+ overlay.style.display = "flex";
678
+ overlay.style.justifyContent = "center";
679
+ overlay.style.alignItems = "center";
680
+ overlay.style.fontSize = "20px";
681
+ overlay.style.pointerEvents = "all";
682
+ overlay.style.backdropFilter = "blur(2px)";
683
+
684
+ document.body.appendChild(overlay);
685
+ }
686
+
687
+ overlay.style.display = "flex";
688
+ },
689
+ hide: () => {
690
+ const overlay = document.getElementById("global-loading-overlay");
691
+ if (overlay) overlay.style.display = "none";
692
+ },
693
+ }
694
+ };
695
+
662
696
  static i18n = {
663
697
  convertArrayToJSON : (arr) => {
664
698
  let result = {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.902.0",
4
+ "version": "6.904.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -370,42 +370,6 @@ class ninegrid
370
370
  lang : navigator.language,
371
371
  };
372
372
 
373
- static loading = (show = true) => {
374
- return {
375
- show: () => {
376
- let overlay = document.getElementById("global-loading-overlay");
377
- if (!overlay) {
378
- overlay = document.createElement("div");
379
- overlay.id = "global-loading-overlay";
380
- overlay.className = "loading-overlay";
381
- overlay.innerText = "로딩 중입니다...";
382
-
383
- document.body.appendChild(overlay);
384
- }
385
-
386
- overlay.style.display = "flex";
387
- },
388
- hide: () => {
389
- const overlay = document.getElementById("global-loading-overlay");
390
- if (overlay) overlay.style.display = "none";
391
- },
392
- }
393
- };
394
- /**
395
- // 스타일도 동적으로 적용 (선택사항)
396
- overlay.style.position = "fixed";
397
- overlay.style.inset = "0";
398
- overlay.style.zIndex = "9999";
399
- overlay.style.background = "rgba(0, 0, 0, 0.4)";
400
- overlay.style.color = "white";
401
- overlay.style.display = "flex";
402
- overlay.style.justifyContent = "center";
403
- overlay.style.alignItems = "center";
404
- overlay.style.fontSize = "20px";
405
- overlay.style.pointerEvents = "all";
406
- overlay.style.backdropFilter = "blur(2px)";
407
- */
408
-
409
373
 
410
374
  static querySelectorAll = (selector, root) => {
411
375
 
@@ -659,6 +659,40 @@ export class ninegrid {
659
659
  return nxAlertPopup.alert(message, title, options);
660
660
  };
661
661
 
662
+ static loading = (show = true) => {
663
+ return {
664
+ show: () => {
665
+ let overlay = document.getElementById("global-loading-overlay");
666
+ if (!overlay) {
667
+ overlay = document.createElement("div");
668
+ overlay.id = "global-loading-overlay";
669
+ overlay.className = "loading-overlay";
670
+ overlay.innerText = "로딩 중입니다...";
671
+
672
+ overlay.style.position = "fixed";
673
+ overlay.style.inset = "0";
674
+ overlay.style.zIndex = "9999";
675
+ overlay.style.background = "rgba(0, 0, 0, 0.4)";
676
+ overlay.style.color = "white";
677
+ overlay.style.display = "flex";
678
+ overlay.style.justifyContent = "center";
679
+ overlay.style.alignItems = "center";
680
+ overlay.style.fontSize = "20px";
681
+ overlay.style.pointerEvents = "all";
682
+ overlay.style.backdropFilter = "blur(2px)";
683
+
684
+ document.body.appendChild(overlay);
685
+ }
686
+
687
+ overlay.style.display = "flex";
688
+ },
689
+ hide: () => {
690
+ const overlay = document.getElementById("global-loading-overlay");
691
+ if (overlay) overlay.style.display = "none";
692
+ },
693
+ }
694
+ };
695
+
662
696
  static i18n = {
663
697
  convertArrayToJSON : (arr) => {
664
698
  let result = {};