ide-assi 0.499.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,14 +203210,25 @@ 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
-
203216
- <div>
203217
- <button onclick="this.#apply()">소스 적용</button>
203218
- </div>
203219
-
203226
+
203220
203227
  <nx-dialog>
203228
+ <div class="buttons">
203229
+ <button class="apply">Apply</button>
203230
+ </div>
203231
+
203221
203232
  <nx-tab theme="theme-4">
203222
203233
  <nx-tab-page caption="mybatis">
203223
203234
  <ide-diff class="mybatis"></ide-diff>
@@ -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,14 +203206,25 @@ 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
-
203212
- <div>
203213
- <button onclick="this.#apply()">소스 적용</button>
203214
- </div>
203215
-
203222
+
203216
203223
  <nx-dialog>
203224
+ <div class="buttons">
203225
+ <button class="apply">Apply</button>
203226
+ </div>
203227
+
203217
203228
  <nx-tab theme="theme-4">
203218
203229
  <nx-tab-page caption="mybatis">
203219
203230
  <ide-diff class="mybatis"></ide-diff>
@@ -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,14 +18,25 @@ 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
-
24
- <div>
25
- <button onclick="this.#apply()">소스 적용</button>
26
- </div>
27
-
34
+
28
35
  <nx-dialog>
36
+ <div class="buttons">
37
+ <button class="apply">Apply</button>
38
+ </div>
39
+
29
40
  <nx-tab theme="theme-4">
30
41
  <nx-tab-page caption="mybatis">
31
42
  <ide-diff class="mybatis"></ide-diff>
@@ -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.499.0",
4
+ "version": "0.501.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -18,14 +18,25 @@ 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
-
24
- <div>
25
- <button onclick="this.#apply()">소스 적용</button>
26
- </div>
27
-
34
+
28
35
  <nx-dialog>
36
+ <div class="buttons">
37
+ <button class="apply">Apply</button>
38
+ </div>
39
+
29
40
  <nx-tab theme="theme-4">
30
41
  <nx-tab-page caption="mybatis">
31
42
  <ide-diff class="mybatis"></ide-diff>
@@ -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 = () => {