ninegrid2 6.650.0 → 6.651.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.
- package/dist/bundle.cjs.js +49 -1
- package/dist/bundle.esm.js +49 -1
- package/dist/utils/ninegrid.js +49 -1
- package/package.json +1 -1
- package/src/utils/ninegrid.js +49 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -11432,6 +11432,7 @@ class ninegrid {
|
|
|
11432
11432
|
}
|
|
11433
11433
|
|
|
11434
11434
|
|
|
11435
|
+
/**
|
|
11435
11436
|
static querySelectorAll = (selector, root) => {
|
|
11436
11437
|
|
|
11437
11438
|
root = root || document;
|
|
@@ -11457,7 +11458,54 @@ class ninegrid {
|
|
|
11457
11458
|
|
|
11458
11459
|
return results;
|
|
11459
11460
|
};
|
|
11460
|
-
|
|
11461
|
+
*/
|
|
11462
|
+
|
|
11463
|
+
static querySelectorAll(selector, root = document) {
|
|
11464
|
+
const results = [];
|
|
11465
|
+
|
|
11466
|
+
const search = (node) => {
|
|
11467
|
+
// 현재 노드에서 찾기
|
|
11468
|
+
node.querySelectorAll?.(selector)?.forEach(elem => {
|
|
11469
|
+
if (!results.includes(elem)) results.push(elem);
|
|
11470
|
+
});
|
|
11471
|
+
|
|
11472
|
+
// 모든 자식 요소 순회
|
|
11473
|
+
node.querySelectorAll?.('*')?.forEach(child => {
|
|
11474
|
+
if (child.shadowRoot) {
|
|
11475
|
+
search(child.shadowRoot); // 💡 재귀적으로 계속 들어가!
|
|
11476
|
+
}
|
|
11477
|
+
});
|
|
11478
|
+
};
|
|
11479
|
+
|
|
11480
|
+
// 시작점
|
|
11481
|
+
search(root.shadowRoot ?? root);
|
|
11482
|
+
|
|
11483
|
+
return results;
|
|
11484
|
+
}
|
|
11485
|
+
|
|
11486
|
+
static querySelector(selector, root = document) {
|
|
11487
|
+
let found = root.querySelector?.(selector);
|
|
11488
|
+
if (found) return found;
|
|
11489
|
+
|
|
11490
|
+
// 최상위 shadow root가 있다면 먼저 탐색
|
|
11491
|
+
if (root.shadowRoot) {
|
|
11492
|
+
found = this.querySelector(selector, root.shadowRoot);
|
|
11493
|
+
if (found) return found;
|
|
11494
|
+
}
|
|
11495
|
+
|
|
11496
|
+
// 모든 자식 요소 탐색
|
|
11497
|
+
for (const elem of root.querySelectorAll?.('*') ?? []) {
|
|
11498
|
+
if (elem.shadowRoot) {
|
|
11499
|
+
found = this.querySelector(selector, elem.shadowRoot);
|
|
11500
|
+
if (found) return found;
|
|
11501
|
+
}
|
|
11502
|
+
}
|
|
11503
|
+
|
|
11504
|
+
return null; // 없으면 null 반환
|
|
11505
|
+
}
|
|
11506
|
+
|
|
11507
|
+
|
|
11508
|
+
|
|
11461
11509
|
static i18n = {
|
|
11462
11510
|
convertArrayToJSON : (arr) => {
|
|
11463
11511
|
let result = {};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -11428,6 +11428,7 @@ class ninegrid {
|
|
|
11428
11428
|
}
|
|
11429
11429
|
|
|
11430
11430
|
|
|
11431
|
+
/**
|
|
11431
11432
|
static querySelectorAll = (selector, root) => {
|
|
11432
11433
|
|
|
11433
11434
|
root = root || document;
|
|
@@ -11453,7 +11454,54 @@ class ninegrid {
|
|
|
11453
11454
|
|
|
11454
11455
|
return results;
|
|
11455
11456
|
};
|
|
11456
|
-
|
|
11457
|
+
*/
|
|
11458
|
+
|
|
11459
|
+
static querySelectorAll(selector, root = document) {
|
|
11460
|
+
const results = [];
|
|
11461
|
+
|
|
11462
|
+
const search = (node) => {
|
|
11463
|
+
// 현재 노드에서 찾기
|
|
11464
|
+
node.querySelectorAll?.(selector)?.forEach(elem => {
|
|
11465
|
+
if (!results.includes(elem)) results.push(elem);
|
|
11466
|
+
});
|
|
11467
|
+
|
|
11468
|
+
// 모든 자식 요소 순회
|
|
11469
|
+
node.querySelectorAll?.('*')?.forEach(child => {
|
|
11470
|
+
if (child.shadowRoot) {
|
|
11471
|
+
search(child.shadowRoot); // 💡 재귀적으로 계속 들어가!
|
|
11472
|
+
}
|
|
11473
|
+
});
|
|
11474
|
+
};
|
|
11475
|
+
|
|
11476
|
+
// 시작점
|
|
11477
|
+
search(root.shadowRoot ?? root);
|
|
11478
|
+
|
|
11479
|
+
return results;
|
|
11480
|
+
}
|
|
11481
|
+
|
|
11482
|
+
static querySelector(selector, root = document) {
|
|
11483
|
+
let found = root.querySelector?.(selector);
|
|
11484
|
+
if (found) return found;
|
|
11485
|
+
|
|
11486
|
+
// 최상위 shadow root가 있다면 먼저 탐색
|
|
11487
|
+
if (root.shadowRoot) {
|
|
11488
|
+
found = this.querySelector(selector, root.shadowRoot);
|
|
11489
|
+
if (found) return found;
|
|
11490
|
+
}
|
|
11491
|
+
|
|
11492
|
+
// 모든 자식 요소 탐색
|
|
11493
|
+
for (const elem of root.querySelectorAll?.('*') ?? []) {
|
|
11494
|
+
if (elem.shadowRoot) {
|
|
11495
|
+
found = this.querySelector(selector, elem.shadowRoot);
|
|
11496
|
+
if (found) return found;
|
|
11497
|
+
}
|
|
11498
|
+
}
|
|
11499
|
+
|
|
11500
|
+
return null; // 없으면 null 반환
|
|
11501
|
+
}
|
|
11502
|
+
|
|
11503
|
+
|
|
11504
|
+
|
|
11457
11505
|
static i18n = {
|
|
11458
11506
|
convertArrayToJSON : (arr) => {
|
|
11459
11507
|
let result = {};
|
package/dist/utils/ninegrid.js
CHANGED
|
@@ -565,6 +565,7 @@ export class ninegrid {
|
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
|
|
568
|
+
/**
|
|
568
569
|
static querySelectorAll = (selector, root) => {
|
|
569
570
|
|
|
570
571
|
root = root || document;
|
|
@@ -590,7 +591,54 @@ export class ninegrid {
|
|
|
590
591
|
|
|
591
592
|
return results;
|
|
592
593
|
};
|
|
593
|
-
|
|
594
|
+
*/
|
|
595
|
+
|
|
596
|
+
static querySelectorAll(selector, root = document) {
|
|
597
|
+
const results = [];
|
|
598
|
+
|
|
599
|
+
const search = (node) => {
|
|
600
|
+
// 현재 노드에서 찾기
|
|
601
|
+
node.querySelectorAll?.(selector)?.forEach(elem => {
|
|
602
|
+
if (!results.includes(elem)) results.push(elem);
|
|
603
|
+
});
|
|
604
|
+
|
|
605
|
+
// 모든 자식 요소 순회
|
|
606
|
+
node.querySelectorAll?.('*')?.forEach(child => {
|
|
607
|
+
if (child.shadowRoot) {
|
|
608
|
+
search(child.shadowRoot); // 💡 재귀적으로 계속 들어가!
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
// 시작점
|
|
614
|
+
search(root.shadowRoot ?? root);
|
|
615
|
+
|
|
616
|
+
return results;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
static querySelector(selector, root = document) {
|
|
620
|
+
let found = root.querySelector?.(selector);
|
|
621
|
+
if (found) return found;
|
|
622
|
+
|
|
623
|
+
// 최상위 shadow root가 있다면 먼저 탐색
|
|
624
|
+
if (root.shadowRoot) {
|
|
625
|
+
found = this.querySelector(selector, root.shadowRoot);
|
|
626
|
+
if (found) return found;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// 모든 자식 요소 탐색
|
|
630
|
+
for (const elem of root.querySelectorAll?.('*') ?? []) {
|
|
631
|
+
if (elem.shadowRoot) {
|
|
632
|
+
found = this.querySelector(selector, elem.shadowRoot);
|
|
633
|
+
if (found) return found;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
return null; // 없으면 null 반환
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
594
642
|
static i18n = {
|
|
595
643
|
convertArrayToJSON : (arr) => {
|
|
596
644
|
let result = {};
|
package/package.json
CHANGED
package/src/utils/ninegrid.js
CHANGED
|
@@ -565,6 +565,7 @@ export class ninegrid {
|
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
|
|
568
|
+
/**
|
|
568
569
|
static querySelectorAll = (selector, root) => {
|
|
569
570
|
|
|
570
571
|
root = root || document;
|
|
@@ -590,7 +591,54 @@ export class ninegrid {
|
|
|
590
591
|
|
|
591
592
|
return results;
|
|
592
593
|
};
|
|
593
|
-
|
|
594
|
+
*/
|
|
595
|
+
|
|
596
|
+
static querySelectorAll(selector, root = document) {
|
|
597
|
+
const results = [];
|
|
598
|
+
|
|
599
|
+
const search = (node) => {
|
|
600
|
+
// 현재 노드에서 찾기
|
|
601
|
+
node.querySelectorAll?.(selector)?.forEach(elem => {
|
|
602
|
+
if (!results.includes(elem)) results.push(elem);
|
|
603
|
+
});
|
|
604
|
+
|
|
605
|
+
// 모든 자식 요소 순회
|
|
606
|
+
node.querySelectorAll?.('*')?.forEach(child => {
|
|
607
|
+
if (child.shadowRoot) {
|
|
608
|
+
search(child.shadowRoot); // 💡 재귀적으로 계속 들어가!
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
// 시작점
|
|
614
|
+
search(root.shadowRoot ?? root);
|
|
615
|
+
|
|
616
|
+
return results;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
static querySelector(selector, root = document) {
|
|
620
|
+
let found = root.querySelector?.(selector);
|
|
621
|
+
if (found) return found;
|
|
622
|
+
|
|
623
|
+
// 최상위 shadow root가 있다면 먼저 탐색
|
|
624
|
+
if (root.shadowRoot) {
|
|
625
|
+
found = this.querySelector(selector, root.shadowRoot);
|
|
626
|
+
if (found) return found;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// 모든 자식 요소 탐색
|
|
630
|
+
for (const elem of root.querySelectorAll?.('*') ?? []) {
|
|
631
|
+
if (elem.shadowRoot) {
|
|
632
|
+
found = this.querySelector(selector, elem.shadowRoot);
|
|
633
|
+
if (found) return found;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
return null; // 없으면 null 반환
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
594
642
|
static i18n = {
|
|
595
643
|
convertArrayToJSON : (arr) => {
|
|
596
644
|
let result = {};
|