ide-assi 0.500.0 → 0.502.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.
@@ -203210,12 +203210,24 @@ class IdeDiffPopup extends HTMLElement
203210
203210
 
203211
203211
  this.shadowRoot.innerHTML = `
203212
203212
  <style>
203213
+ div.buttons {
203214
+ position: absolute;
203215
+ right: 16px;
203216
+ /* width: 100px; */
203217
+ display: flex;
203218
+ flex-direction: row;
203219
+ justify-content: flex-end;
203220
+ z-index: 1;
203221
+ }
203213
203222
 
203223
+ button.apply {
203224
+ cursor: pointer;
203225
+ }
203214
203226
  </style>
203215
203227
 
203216
203228
  <nx-dialog>
203217
- <div>
203218
- <button onclick="this.#apply()">소스 적용</button>
203229
+ <div class="buttons">
203230
+ <button class="apply">Apply</button>
203219
203231
  </div>
203220
203232
 
203221
203233
  <nx-tab theme="theme-4">
@@ -203234,6 +203246,14 @@ class IdeDiffPopup extends HTMLElement
203234
203246
  </nx-tab>
203235
203247
  </nx-dialog>
203236
203248
  `;
203249
+
203250
+ this.#init();
203251
+ }
203252
+
203253
+ #init = () => {
203254
+ ninegrid.querySelector(".apply", this.shadowRoot).addEventListener("click", e => {
203255
+ this.#apply();
203256
+ });
203237
203257
  }
203238
203258
 
203239
203259
  #apply = () => {
@@ -203206,12 +203206,24 @@ class IdeDiffPopup extends HTMLElement
203206
203206
 
203207
203207
  this.shadowRoot.innerHTML = `
203208
203208
  <style>
203209
+ div.buttons {
203210
+ position: absolute;
203211
+ right: 16px;
203212
+ /* width: 100px; */
203213
+ display: flex;
203214
+ flex-direction: row;
203215
+ justify-content: flex-end;
203216
+ z-index: 1;
203217
+ }
203209
203218
 
203219
+ button.apply {
203220
+ cursor: pointer;
203221
+ }
203210
203222
  </style>
203211
203223
 
203212
203224
  <nx-dialog>
203213
- <div>
203214
- <button onclick="this.#apply()">소스 적용</button>
203225
+ <div class="buttons">
203226
+ <button class="apply">Apply</button>
203215
203227
  </div>
203216
203228
 
203217
203229
  <nx-tab theme="theme-4">
@@ -203230,6 +203242,14 @@ class IdeDiffPopup extends HTMLElement
203230
203242
  </nx-tab>
203231
203243
  </nx-dialog>
203232
203244
  `;
203245
+
203246
+ this.#init();
203247
+ }
203248
+
203249
+ #init = () => {
203250
+ ninegrid.querySelector(".apply", this.shadowRoot).addEventListener("click", e => {
203251
+ this.#apply();
203252
+ });
203233
203253
  }
203234
203254
 
203235
203255
  #apply = () => {
@@ -18,12 +18,24 @@ class IdeDiffPopup extends HTMLElement
18
18
 
19
19
  this.shadowRoot.innerHTML = `
20
20
  <style>
21
+ div.buttons {
22
+ position: absolute;
23
+ right: 16px;
24
+ /* width: 100px; */
25
+ display: flex;
26
+ flex-direction: row;
27
+ justify-content: flex-end;
28
+ z-index: 1;
29
+ }
21
30
 
31
+ button.apply {
32
+ cursor: pointer;
33
+ }
22
34
  </style>
23
35
 
24
36
  <nx-dialog>
25
- <div>
26
- <button onclick="this.#apply()">소스 적용</button>
37
+ <div class="buttons">
38
+ <button class="apply">Apply</button>
27
39
  </div>
28
40
 
29
41
  <nx-tab theme="theme-4">
@@ -42,6 +54,14 @@ class IdeDiffPopup extends HTMLElement
42
54
  </nx-tab>
43
55
  </nx-dialog>
44
56
  `;
57
+
58
+ this.#init();
59
+ }
60
+
61
+ #init = () => {
62
+ ninegrid.querySelector(".apply", this.shadowRoot).addEventListener("click", e => {
63
+ this.#apply();
64
+ });
45
65
  }
46
66
 
47
67
  #apply = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.500.0",
4
+ "version": "0.502.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -18,12 +18,24 @@ class IdeDiffPopup extends HTMLElement
18
18
 
19
19
  this.shadowRoot.innerHTML = `
20
20
  <style>
21
+ div.buttons {
22
+ position: absolute;
23
+ right: 16px;
24
+ /* width: 100px; */
25
+ display: flex;
26
+ flex-direction: row;
27
+ justify-content: flex-end;
28
+ z-index: 1;
29
+ }
21
30
 
31
+ button.apply {
32
+ cursor: pointer;
33
+ }
22
34
  </style>
23
35
 
24
36
  <nx-dialog>
25
- <div>
26
- <button onclick="this.#apply()">소스 적용</button>
37
+ <div class="buttons">
38
+ <button class="apply">Apply</button>
27
39
  </div>
28
40
 
29
41
  <nx-tab theme="theme-4">
@@ -42,6 +54,14 @@ class IdeDiffPopup extends HTMLElement
42
54
  </nx-tab>
43
55
  </nx-dialog>
44
56
  `;
57
+
58
+ this.#init();
59
+ }
60
+
61
+ #init = () => {
62
+ ninegrid.querySelector(".apply", this.shadowRoot).addEventListener("click", e => {
63
+ this.#apply();
64
+ });
45
65
  }
46
66
 
47
67
  #apply = () => {