ide-assi 0.500.0 → 0.501.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,23 @@ 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
+ }
203213
203221
 
203222
+ button.apply {
203223
+ cursor: pointer;
203224
+ }
203214
203225
  </style>
203215
203226
 
203216
203227
  <nx-dialog>
203217
- <div>
203218
- <button onclick="this.#apply()">소스 적용</button>
203228
+ <div class="buttons">
203229
+ <button class="apply">Apply</button>
203219
203230
  </div>
203220
203231
 
203221
203232
  <nx-tab theme="theme-4">
@@ -203234,6 +203245,14 @@ class IdeDiffPopup extends HTMLElement
203234
203245
  </nx-tab>
203235
203246
  </nx-dialog>
203236
203247
  `;
203248
+
203249
+ this.#init();
203250
+ }
203251
+
203252
+ #init = () => {
203253
+ this.shadowRoot.querySelector(".apply").addEventListener("click", e => {
203254
+ this.#apply();
203255
+ });
203237
203256
  }
203238
203257
 
203239
203258
  #apply = () => {
@@ -203206,12 +203206,23 @@ 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
+ }
203209
203217
 
203218
+ button.apply {
203219
+ cursor: pointer;
203220
+ }
203210
203221
  </style>
203211
203222
 
203212
203223
  <nx-dialog>
203213
- <div>
203214
- <button onclick="this.#apply()">소스 적용</button>
203224
+ <div class="buttons">
203225
+ <button class="apply">Apply</button>
203215
203226
  </div>
203216
203227
 
203217
203228
  <nx-tab theme="theme-4">
@@ -203230,6 +203241,14 @@ class IdeDiffPopup extends HTMLElement
203230
203241
  </nx-tab>
203231
203242
  </nx-dialog>
203232
203243
  `;
203244
+
203245
+ this.#init();
203246
+ }
203247
+
203248
+ #init = () => {
203249
+ this.shadowRoot.querySelector(".apply").addEventListener("click", e => {
203250
+ this.#apply();
203251
+ });
203233
203252
  }
203234
203253
 
203235
203254
  #apply = () => {
@@ -18,12 +18,23 @@ 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
+ }
21
29
 
30
+ button.apply {
31
+ cursor: pointer;
32
+ }
22
33
  </style>
23
34
 
24
35
  <nx-dialog>
25
- <div>
26
- <button onclick="this.#apply()">소스 적용</button>
36
+ <div class="buttons">
37
+ <button class="apply">Apply</button>
27
38
  </div>
28
39
 
29
40
  <nx-tab theme="theme-4">
@@ -42,6 +53,14 @@ class IdeDiffPopup extends HTMLElement
42
53
  </nx-tab>
43
54
  </nx-dialog>
44
55
  `;
56
+
57
+ this.#init();
58
+ }
59
+
60
+ #init = () => {
61
+ this.shadowRoot.querySelector(".apply").addEventListener("click", e => {
62
+ this.#apply();
63
+ });
45
64
  }
46
65
 
47
66
  #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.501.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -18,12 +18,23 @@ 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
+ }
21
29
 
30
+ button.apply {
31
+ cursor: pointer;
32
+ }
22
33
  </style>
23
34
 
24
35
  <nx-dialog>
25
- <div>
26
- <button onclick="this.#apply()">소스 적용</button>
36
+ <div class="buttons">
37
+ <button class="apply">Apply</button>
27
38
  </div>
28
39
 
29
40
  <nx-tab theme="theme-4">
@@ -42,6 +53,14 @@ class IdeDiffPopup extends HTMLElement
42
53
  </nx-tab>
43
54
  </nx-dialog>
44
55
  `;
56
+
57
+ this.#init();
58
+ }
59
+
60
+ #init = () => {
61
+ this.shadowRoot.querySelector(".apply").addEventListener("click", e => {
62
+ this.#apply();
63
+ });
45
64
  }
46
65
 
47
66
  #apply = () => {