@sellmate/design-system 0.0.55 → 0.0.56

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.
Files changed (145) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sd-button_24.cjs.entry.js +32 -32
  4. package/dist/cjs/sd-card.cjs.entry.js +3 -3
  5. package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
  6. package/dist/cjs/sd-date-range-picker.cjs.entry.js +2 -2
  7. package/dist/cjs/sd-popover.cjs.entry.js +2 -2
  8. package/dist/cjs/sd-progress.cjs.entry.js +2 -2
  9. package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
  10. package/dist/cjs/sd-tbody_3.cjs.entry.js +3 -3
  11. package/dist/cjs/sd-td.cjs.entry.js +2 -2
  12. package/dist/collection/components/sd-card/sd-card.css +1 -4
  13. package/dist/collection/components/sd-card/sd-card.js +6 -6
  14. package/dist/collection/components/sd-card/sd-card.js.map +1 -1
  15. package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
  16. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
  17. package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -3
  18. package/dist/collection/components/sd-guide/sd-guide.js +2 -2
  19. package/dist/collection/components/sd-icon/sd-icon.js +1 -1
  20. package/dist/collection/components/sd-input/sd-input.js +4 -4
  21. package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
  22. package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
  23. package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
  24. package/dist/collection/components/sd-popover/sd-popover.js +2 -2
  25. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  26. package/dist/collection/components/sd-progress/sd-progress.js +2 -2
  27. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
  28. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
  29. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +2 -2
  30. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
  31. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
  32. package/dist/collection/components/sd-table/sd-td/sd-td.js +2 -2
  33. package/dist/collection/components/sd-table/sd-th/sd-th.js +1 -1
  34. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +1 -1
  35. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  36. package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
  37. package/dist/collection/components/sd-tooltip/sd-tooltip.js +4 -4
  38. package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
  39. package/dist/components/{p-BLidMbc_.js → p-6qJVnQg4.js} +3 -3
  40. package/dist/components/{p-BLidMbc_.js.map → p-6qJVnQg4.js.map} +1 -1
  41. package/dist/components/{p-D5BkkT2U.js → p-B8yBkdjE.js} +3 -3
  42. package/dist/components/{p-D5BkkT2U.js.map → p-B8yBkdjE.js.map} +1 -1
  43. package/dist/components/{p-vhe6g4Qt.js → p-BHHbLFXg.js} +3 -3
  44. package/dist/components/{p-vhe6g4Qt.js.map → p-BHHbLFXg.js.map} +1 -1
  45. package/dist/components/{p-DRGcUx0C.js → p-BREduhZA.js} +5 -5
  46. package/dist/components/{p-DRGcUx0C.js.map → p-BREduhZA.js.map} +1 -1
  47. package/dist/components/{p-CKhzpdPk.js → p-Bj4u0G5b.js} +3 -3
  48. package/dist/components/{p-CKhzpdPk.js.map → p-Bj4u0G5b.js.map} +1 -1
  49. package/dist/components/{p-CfKJNKMH.js → p-C4kdHNdl.js} +7 -7
  50. package/dist/components/{p-CfKJNKMH.js.map → p-C4kdHNdl.js.map} +1 -1
  51. package/dist/components/{p-njRAT-yp.js → p-C5U6Otnl.js} +3 -3
  52. package/dist/components/{p-njRAT-yp.js.map → p-C5U6Otnl.js.map} +1 -1
  53. package/dist/components/{p-DD9g6GYA.js → p-CNrsaSqW.js} +3 -3
  54. package/dist/components/{p-DD9g6GYA.js.map → p-CNrsaSqW.js.map} +1 -1
  55. package/dist/components/{p-nqDJZ_gy.js → p-CfivfPAO.js} +3 -3
  56. package/dist/components/{p-nqDJZ_gy.js.map → p-CfivfPAO.js.map} +1 -1
  57. package/dist/components/{p-DMqinLuj.js → p-D8KGixEs.js} +8 -8
  58. package/dist/components/{p-DMqinLuj.js.map → p-D8KGixEs.js.map} +1 -1
  59. package/dist/components/{p-BESbtjDi.js → p-DLrb7Zq3.js} +3 -3
  60. package/dist/components/{p-BESbtjDi.js.map → p-DLrb7Zq3.js.map} +1 -1
  61. package/dist/components/{p-DroKiQ6J.js → p-K42WRBPA.js} +9 -9
  62. package/dist/components/{p-DroKiQ6J.js.map → p-K42WRBPA.js.map} +1 -1
  63. package/dist/components/{p-CWwMpVqI.js → p-O3tgQfvT.js} +5 -5
  64. package/dist/components/{p-CWwMpVqI.js.map → p-O3tgQfvT.js.map} +1 -1
  65. package/dist/components/{p-QNYqIsvU.js → p-QpwY2yqY.js} +7 -7
  66. package/dist/components/{p-QNYqIsvU.js.map → p-QpwY2yqY.js.map} +1 -1
  67. package/dist/components/{p-MRYVk6Qh.js → p-w5tohH2H.js} +7 -7
  68. package/dist/components/{p-MRYVk6Qh.js.map → p-w5tohH2H.js.map} +1 -1
  69. package/dist/components/{p-DKoWHxRI.js → p-xme-KFvK.js} +3 -3
  70. package/dist/components/{p-DKoWHxRI.js.map → p-xme-KFvK.js.map} +1 -1
  71. package/dist/components/sd-button.js +1 -1
  72. package/dist/components/sd-card.js +4 -4
  73. package/dist/components/sd-card.js.map +1 -1
  74. package/dist/components/sd-checkbox.js +1 -1
  75. package/dist/components/sd-date-picker.js +4 -4
  76. package/dist/components/sd-date-range-picker.js +5 -5
  77. package/dist/components/sd-file-picker.js +4 -4
  78. package/dist/components/sd-guide.js +5 -5
  79. package/dist/components/sd-icon.js +1 -1
  80. package/dist/components/sd-input.js +1 -1
  81. package/dist/components/sd-loading-spinner.js +1 -1
  82. package/dist/components/sd-modal-card.js +2 -2
  83. package/dist/components/sd-number-input.js +5 -5
  84. package/dist/components/sd-pagination.js +1 -1
  85. package/dist/components/sd-popover.js +5 -5
  86. package/dist/components/sd-portal.js +1 -1
  87. package/dist/components/sd-progress.js +2 -2
  88. package/dist/components/sd-select-multiple-group.js +6 -6
  89. package/dist/components/sd-select-multiple.js +7 -7
  90. package/dist/components/sd-select-option-group.js +1 -1
  91. package/dist/components/sd-select-option.js +1 -1
  92. package/dist/components/sd-select-search-input.js +1 -1
  93. package/dist/components/sd-select.js +1 -1
  94. package/dist/components/sd-table-backup.js +12 -12
  95. package/dist/components/sd-table.js +14 -14
  96. package/dist/components/sd-tbody.js +1 -1
  97. package/dist/components/sd-td.js +2 -2
  98. package/dist/components/sd-th.js +1 -1
  99. package/dist/components/sd-toast-message.js +2 -2
  100. package/dist/components/sd-toggle-button.js +1 -1
  101. package/dist/components/sd-toggle.js +1 -1
  102. package/dist/components/sd-tooltip-portal.js +1 -1
  103. package/dist/components/sd-tooltip.js +1 -1
  104. package/dist/components/sd-tr.js +1 -1
  105. package/dist/design-system/design-system.esm.js +1 -1
  106. package/dist/design-system/p-0893dbd0.entry.js +2 -0
  107. package/dist/design-system/{p-5acdd14a.entry.js → p-2633690f.entry.js} +2 -2
  108. package/dist/design-system/p-5576f0f0.entry.js +2 -0
  109. package/dist/design-system/{p-0d2814dc.entry.js → p-7ca988ab.entry.js} +2 -2
  110. package/dist/design-system/p-a7bdb6ba.entry.js +2 -0
  111. package/dist/design-system/{p-7b94b34e.entry.js → p-b5720c60.entry.js} +2 -2
  112. package/dist/design-system/{p-e5065700.entry.js → p-bdd9afaf.entry.js} +2 -2
  113. package/dist/design-system/p-ddfe63b8.entry.js +2 -0
  114. package/dist/design-system/p-ddfe63b8.entry.js.map +1 -0
  115. package/dist/design-system/{p-665c5c48.entry.js → p-e180c69c.entry.js} +2 -2
  116. package/dist/esm/design-system.js +1 -1
  117. package/dist/esm/loader.js +1 -1
  118. package/dist/esm/sd-button_24.entry.js +32 -32
  119. package/dist/esm/sd-card.entry.js +3 -3
  120. package/dist/esm/sd-card.entry.js.map +1 -1
  121. package/dist/esm/sd-date-picker.entry.js +1 -1
  122. package/dist/esm/sd-date-range-picker.entry.js +2 -2
  123. package/dist/esm/sd-popover.entry.js +2 -2
  124. package/dist/esm/sd-progress.entry.js +2 -2
  125. package/dist/esm/sd-select-multiple.entry.js +2 -2
  126. package/dist/esm/sd-tbody_3.entry.js +3 -3
  127. package/dist/esm/sd-td.entry.js +2 -2
  128. package/dist/types/components/sd-card/sd-card.d.ts +1 -1
  129. package/dist/types/components.d.ts +2 -2
  130. package/hydrate/index.js +50 -50
  131. package/hydrate/index.mjs +50 -50
  132. package/package.json +2 -2
  133. package/dist/design-system/p-2c57bdea.entry.js +0 -2
  134. package/dist/design-system/p-3bc4effa.entry.js +0 -2
  135. package/dist/design-system/p-3bc4effa.entry.js.map +0 -1
  136. package/dist/design-system/p-97b271a7.entry.js +0 -2
  137. package/dist/design-system/p-fc3580fd.entry.js +0 -2
  138. /package/dist/design-system/{p-fc3580fd.entry.js.map → p-0893dbd0.entry.js.map} +0 -0
  139. /package/dist/design-system/{p-5acdd14a.entry.js.map → p-2633690f.entry.js.map} +0 -0
  140. /package/dist/design-system/{p-2c57bdea.entry.js.map → p-5576f0f0.entry.js.map} +0 -0
  141. /package/dist/design-system/{p-0d2814dc.entry.js.map → p-7ca988ab.entry.js.map} +0 -0
  142. /package/dist/design-system/{p-97b271a7.entry.js.map → p-a7bdb6ba.entry.js.map} +0 -0
  143. /package/dist/design-system/{p-7b94b34e.entry.js.map → p-b5720c60.entry.js.map} +0 -0
  144. /package/dist/design-system/{p-e5065700.entry.js.map → p-bdd9afaf.entry.js.map} +0 -0
  145. /package/dist/design-system/{p-665c5c48.entry.js.map → p-e180c69c.entry.js.map} +0 -0
@@ -1,11 +1,8 @@
1
1
  sd-card {
2
2
  display: block;
3
3
  height: fit-content;
4
- }
5
- sd-card .sd-card {
6
4
  border-radius: 8px;
7
- background: white;
8
5
  }
9
- sd-card .sd-card.sd-card--bordered {
6
+ sd-card.sd-card--bordered {
10
7
  border: 1px solid #e1e1e1;
11
8
  }
@@ -1,9 +1,9 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SdCard {
3
3
  bordered = true;
4
- class = '';
4
+ cardClassName = '';
5
5
  render() {
6
- return (h(Host, { key: '902920358ec434881c5e8d1ec77758dd74dd4c31' }, h("div", { key: '9b2eb1ec45fc2345b30efe26a9aed2a44f39e0e1', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, h("slot", { key: 'd31d14e706a89d53d5915e0a411838ad5567fd20' }))));
6
+ return (h(Host, { key: '3182001dcfc5347e3995a31d8e333e01f285df5a', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.cardClassName}` }, h("slot", { key: 'e2824b9cd65b9c4ba668f7f3ba933a361405b822' })));
7
7
  }
8
8
  static get is() { return "sd-card"; }
9
9
  static get originalStyleUrls() {
@@ -38,16 +38,16 @@ export class SdCard {
38
38
  "attribute": "bordered",
39
39
  "defaultValue": "true"
40
40
  },
41
- "class": {
41
+ "cardClassName": {
42
42
  "type": "string",
43
43
  "mutable": false,
44
44
  "complexType": {
45
45
  "original": "string",
46
- "resolved": "string",
46
+ "resolved": "string | undefined",
47
47
  "references": {}
48
48
  },
49
49
  "required": false,
50
- "optional": false,
50
+ "optional": true,
51
51
  "docs": {
52
52
  "tags": [],
53
53
  "text": ""
@@ -55,7 +55,7 @@ export class SdCard {
55
55
  "getter": false,
56
56
  "setter": false,
57
57
  "reflect": false,
58
- "attribute": "class",
58
+ "attribute": "card-class-name",
59
59
  "defaultValue": "''"
60
60
  }
61
61
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sd-card.js","sourceRoot":"","sources":["../../../src/components/sd-card/sd-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAMzD,MAAM,OAAO,MAAM;IACV,QAAQ,GAAY,IAAI,CAAC;IACzB,KAAK,GAAW,EAAE,CAAC;IAE3B,MAAM;QACL,OAAO,CACN,EAAC,IAAI;YACJ,4DAAK,KAAK,EAAE,WAAW,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,KAAK,EAAE;gBAC9E,8DAAa,CACR,CACA,CACP,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-card',\n styleUrl: 'sd-card.scss',\n})\nexport class SdCard {\n @Prop() bordered: boolean = true;\n @Prop() class: string = '';\n\n render() {\n return (\n <Host>\n <div class={`sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}`}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"sd-card.js","sourceRoot":"","sources":["../../../src/components/sd-card/sd-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAMzD,MAAM,OAAO,MAAM;IACV,QAAQ,GAAY,IAAI,CAAC;IACzB,aAAa,GAAY,EAAE,CAAC;IAEpC,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,WAAW,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE;YACvF,8DAAa,CACP,CACP,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-card',\n styleUrl: 'sd-card.scss',\n})\nexport class SdCard {\n @Prop() bordered: boolean = true;\n @Prop() cardClassName?: string = '';\n\n render() {\n return (\n <Host class={`sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.cardClassName}`}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -76,7 +76,7 @@ export class SdDatePicker {
76
76
  this.isOpen = false;
77
77
  };
78
78
  render() {
79
- return (h(Host, { key: '6a1129da5526bd1d7b8f5f4f70b933beacc0d38a', class: { 'sd-date-picker': true, 'sd-date-picker--disabled': this.disabled } }, h("sd-input", { key: 'a7b59caaf9150082bc70fb5e8d81740d47ce457f', ref: el => (this.inputEl = el), value: this.value, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: 'f1420dfdf7283d71ab66f4c69f90f2e5bac25aab', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: 'c8bf0f440d8fa5eac3c539591eb783a0be61296c', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: 'd79caee7083cac735fe787f4ab15dd20ef19363b', class: "sd-date-picker__menu" }, h("div", { key: '3189456edcb2bbf753bcfb659a6bed60aee6cfcb', class: "sd-date-picker__header" }, h("div", { key: '739f9f37030efe12dc57d0a0ee16780cdb7ed0df', class: "year-nav" }, h("button", { key: '5018b431579aefbebe47e64c9cc5e34aa31a7dbd', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, h("sd-icon", { key: '47981fbbd6f6245c543d92e4bebf0bc8e9440255', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '4bf48f6283187a6e641091ecf8ca6746bcc538f6', class: "year-nav__current" }, this.currentYear), h("button", { key: '50eccfed91de1885cc49f71449eedc7160d78a4e', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, h("sd-icon", { key: 'f220f5d65323ea11c054599a6a817346e864c156', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: 'ac4cadf1d92b7098a3c1830345acfa8680d9e104', class: "month-nav" }, h("button", { key: '7afdfadccdf6d6ad07d035747b8e50a9e9d13af6', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, h("sd-icon", { key: 'd382f9c32864b3d1f01aacd9a60d1a7799c49552', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '173659c7d34743aeaed7c7694f2db467edf8e7dc', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), h("button", { key: 'cffad239c7896f21249ca66a91368050f51059c0', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, h("sd-icon", { key: '2e541317c81c3ef7ff7bc07d35619f78fbc09cd1', name: "arrowRight", size: "12", color: "#CCCCCC" })))), h("div", { key: 'a8e9db7ed26405aeb61d49b827ca9c186766498c', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("div", { key: day, class: "day" }, day)))), h("div", { key: '4d62d9bf10a1e208e0432fedc842519aeb472e9c', class: "sd-date-picker__body" }, [
79
+ return (h(Host, { key: '339b8a2e02592a3a7c28e91b11dc3693b4fcb9db', class: { 'sd-date-picker': true, 'sd-date-picker--disabled': this.disabled } }, h("sd-input", { key: '5cb7ee0544864681985ba4e2b4cfb4ca7eb88ba7', ref: el => (this.inputEl = el), value: this.value, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: 'e465944f71022a7b7d7b6d719affa31bfc337ff8', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: 'e4af5d3a2c5619d12f0b473b80eed941df1eea06', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: 'a36e286d284f3f2545eb83e60f76bb74db1ee045', class: "sd-date-picker__menu" }, h("div", { key: '95aa3b00666772cdaac5c458226b03ca8d814205', class: "sd-date-picker__header" }, h("div", { key: '92d3553d46fc3b9681050d5cb8b834bf4c661792', class: "year-nav" }, h("button", { key: 'ee0500f7c95bfd54e01a3dacba1f5510d1a6bbe6', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, h("sd-icon", { key: '16cf42b6e4d43858fc22745339c66ffb03862f00', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '9cd310082f173d1fadc046a0a7f6b1e4b63627e0', class: "year-nav__current" }, this.currentYear), h("button", { key: '51d30f06c43c76226e995af3f3e3812ea48c2aad', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, h("sd-icon", { key: '08b599372988f2563ccb6a25b64bbacef21e8c0b', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '3561b99251a0cc9ca5d81ed20369eb2d1702f253', class: "month-nav" }, h("button", { key: '952c94808facf642dc219eaced8d58b3c2ceb389', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, h("sd-icon", { key: 'd270c4e5934ebfff500d9a4252b9a4b0b6c24e41', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '3baf83873b332c1a3b340773a952b5f9a1b48bd4', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), h("button", { key: 'fe744ca6c9896f8cf7bd2a00cdd4db94915be0e3', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, h("sd-icon", { key: 'a00637d3bc309b429fd302b72ec940f3cdce8f84', name: "arrowRight", size: "12", color: "#CCCCCC" })))), h("div", { key: '8a4c4fc3bfc55205912368f6d5f1e3acd7eadbdc', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("div", { key: day, class: "day" }, day)))), h("div", { key: 'f4eaa43b531640ba7bb7b724cf52144f9870d520', class: "sd-date-picker__body" }, [
80
80
  ...this.calendar.prevMonthDays,
81
81
  ...this.calendar.days,
82
82
  ...this.calendar.afterMonthDays,
@@ -155,10 +155,10 @@ export class SdDateRangePicker {
155
155
  this.setHoverDate(hoverDate);
156
156
  }
157
157
  render() {
158
- return (h(Host, { key: '83bac4f3ca296d4384cd7133847a420cc964efe2', class: {
158
+ return (h(Host, { key: '5220efe80a57b9591b4238b0f0cd646d76709a4c', class: {
159
159
  'sd-date-range-picker': true,
160
160
  'sd-date-range-picker--disabled': this.disabled,
161
- } }, h("sd-input", { key: 'c2c0f2d34535b69e9b8e6a5b446a189aaf3868d9', ref: el => (this.inputEl = el), value: !!this.dateRange[0] ? `${this.dateRange[0]} ~ ${this.dateRange[1]}` : '', label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-range-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: '0720129c8b59571f97c24f2a71d48a08c40314dc', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: 'd0f3142a8bba8ea231586111e1ccf931ee595d25', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.closeMenu }, h("div", { key: '072f7b56f1baea1a86916f3959e79462079fd6a8', class: "sd-date-range-picker__menu" }, h("div", { key: '27bd45578453e74766e30be37ee990036c111a9d', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: 'fdcb11d94f83506a13b4b652a61e0a31630f2fa9', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, h("sd-icon", { key: '2c0cd042d7d0544641410b077107c6cb0e1dc06b', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: 'e1508e3c0630bbe960bccc6d520c128b28ad1b13', class: "header-label" }, this.prevYear), h("button", { key: 'd1c985beec9ba680a72b64e20938a253b956c2cb', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, h("sd-icon", { key: '4b1ca637f060925886b20d5b6443b804501c60c3', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '42baa27309dd5edc1ab5713e42e52e8202882477', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (h(Fragment, null, index === 1 && h("div", { class: "separator" }), h("div", { key: index, class: "calendar-container" }, h("div", { class: "calendar-header" }, h("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, h("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
161
+ } }, h("sd-input", { key: '0f7bc52cbe8722e16b3c82dc847b0230149f4e6a', ref: el => (this.inputEl = el), value: !!this.dateRange[0] ? `${this.dateRange[0]} ~ ${this.dateRange[1]}` : '', label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-range-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: 'b21b38e104c2dd840af1670e4bedee84a4db10fa', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '56d74da3b2d783340d21503210eae4b89d540b9a', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.closeMenu }, h("div", { key: '89b88b2b16bb6b553ba18b686cfdb41bcdccfb33', class: "sd-date-range-picker__menu" }, h("div", { key: 'b811cdb96de5cd8400ef413fe2537a5e9b36720d', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: '588814d15c2a6c8b8efcad9215ab015366709ee7', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, h("sd-icon", { key: '330c17fb132b33140fb8cdf72c0bc75eca9814eb', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: 'b2f29d546ac19968045aa3803cea58693c9ac904', class: "header-label" }, this.prevYear), h("button", { key: '183befff37c64110a8dc188b261aaa03330b7c9e', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, h("sd-icon", { key: 'ea7ab0b1ff97a659b2adf3ab105945127fa5b066', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '13e7484f631f5045a49c1243c93ae211b3f70bec', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (h(Fragment, null, index === 1 && h("div", { class: "separator" }), h("div", { key: index, class: "calendar-container" }, h("div", { class: "calendar-header" }, h("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, h("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
162
162
  ? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
163
163
  : `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), h("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), h("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (h("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date === this.formatDate(index, Number(day))), type: this.getDateBoxType(this.formatDate(index, Number(day))), isToday: today === this.formatDate(index, Number(day)), disabled: !day ? true : this.isDisabledDate(this.formatDate(index, Number(day))), inRange: this.isDateInRange(this.formatDate(index, Number(day))), isStartDate: this.dateRange[0] === this.formatDate(index, Number(day)), isEndDate: this.dateRange[1] === this.formatDate(index, Number(day)), onClick: () => this.handleDateClick(index, Number(day)), onMouseOver: () => this.handleDateHover(index, Number(day)) }))))))))))))));
164
164
  }
@@ -92,15 +92,15 @@ export class SdFilePicker {
92
92
  render() {
93
93
  const hasFiles = this.hasFiles();
94
94
  const displayText = this.getDisplayText();
95
- return (h("div", { key: '2de0dd9880f816721fb36c3b01bbfdd15d0a4edd', class: {
95
+ return (h("div", { key: '467ea6ab920e23a8cf98db73f3ba5507e0634bc8', class: {
96
96
  'sd-file-picker': true,
97
97
  [this.getStatusClass()]: true,
98
98
  'sd-file-picker--inline': this.inline,
99
- }, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '8955ad7d1b2f854f21c274972c01092fb4ae8a25', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder }), h("sd-icon", { key: 'bb376d3ee3264ae590f94d877f5f4d92eb7c2383', name: "attachFile", size: 16, color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: 'afbfc0ee30274b020e492e36fa7d75285fa908b2', ref: el => (this.fileNamesRef = el), class: {
99
+ }, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '20ff1404f15beaeff2f4f3e0b1772aadbd986934', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder }), h("sd-icon", { key: '59e00f4ba49547aacf99dfab54c391c49895d8df', name: "attachFile", size: 16, color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: 'be74c5aebcc947aacf6841b15915cc98af5453e6', ref: el => (this.fileNamesRef = el), class: {
100
100
  'sd-file-picker__text': true,
101
101
  'sd-file-picker__text--placeholder': !hasFiles,
102
102
  'sd-file-picker__text--active': hasFiles,
103
- } }, displayText), !this.disabled && hasFiles && (h("sd-icon", { key: '181635bb288d34a3da7d1e368b8feafaddf4c9e7', name: "close", size: 12, color: "#888888", class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: '18adac8d177d2c5e88a35f50a23cd5ce9dbcbe3d', class: "sd-file-picker__tooltip" }, displayText))));
103
+ } }, displayText), !this.disabled && hasFiles && (h("sd-icon", { key: '0547537e85b8eb0f2678c3023eeec9241caf0ced', name: "close", size: 12, color: "#888888", class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: '86bf77f26f2aea00c31c9770c2142353d92d239c', class: "sd-file-picker__tooltip" }, displayText))));
104
104
  }
105
105
  static get is() { return "sd-file-picker"; }
106
106
  static get originalStyleUrls() {
@@ -48,9 +48,9 @@ export class SdGuide {
48
48
  };
49
49
  render() {
50
50
  const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
51
- return (h(Host, { key: '4b773c02856acdbe87d17794d2b09d03687cbfbf', style: {
51
+ return (h(Host, { key: '73cc9c84ec4e921e83e9d0cde2971c5088cbb48f', style: {
52
52
  '--sd-guide-color': GUIDE_ICON[this.type].color,
53
- } }, h("sd-button", { key: '32f7288469230a3b9f63ee4518e12cd96dc954c5', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: this.label || GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (h("sd-portal", { key: 'e2f58c514c9f8a7ddf3cbfa01e595476df40555f', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: '8ecbb7b326c6f69661bc809efcbb9ebbd148e9e8', style: { position: 'absolute', width: '0px', height: '0px' } }, h("div", { key: 'b778c386e9ae56bc55405e80fce8e8b15d92ab80', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: 'b4e6890b28ffab4ca79119ece1515f898a4b8bdb', class: "sd-guide__popup__close", icon: "close", color: colors.grey_65, size: "md", variant: "ghost", noHover: true, onSdClick: this.closeDropdown }), h("div", { key: '8e4ee14399a891be25f4df846e2ff64a26a5bd76', class: "sd-guide__popup__header" }, h("sd-icon", { key: '4de462413f81c110c6bb53984d8a49d3716e1357', name: "helpOutline", size: 24, color: colors.green_65 }), h("h3", { key: '2193a1b5759a97907264f9054bea9ad4042716bd', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), h("ul", { key: '455f1c2e9cfb7752d45937d21d2d38e182bfb6ca', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
53
+ } }, h("sd-button", { key: '310afd874d062a91fab4b179a9a4e2f340a95175', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: this.label || GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (h("sd-portal", { key: '133bb71a98efd9a15407aad915937caec728aa38', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: '4a39145ce20e1e37ebc3f639712f635231f34f2d', style: { position: 'absolute', width: '0px', height: '0px' } }, h("div", { key: 'e71a8217b3969db9fadf9083835402cf69e62c3c', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: 'f035ca961013d99305b0409f406fdd3063e11155', class: "sd-guide__popup__close", icon: "close", color: colors.grey_65, size: "md", variant: "ghost", noHover: true, onSdClick: this.closeDropdown }), h("div", { key: 'a3d505a21abd77e85fac45a792ca7bb2b2448a6a', class: "sd-guide__popup__header" }, h("sd-icon", { key: '785bfbe594936b56f407edd2349e19076cf6ece9', name: "helpOutline", size: 24, color: colors.green_65 }), h("h3", { key: 'da5dfaed05a11ccef574580a4c18341646d59e4f', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), h("ul", { key: '0faa4a71c1d77d21490436323c2d80c792397991', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
54
54
  }
55
55
  // 현재 2depth까지만 스타일 적용
56
56
  renderListItem(message, depth = 0) {
@@ -25,7 +25,7 @@ export class SdIcon {
25
25
  }
26
26
  render() {
27
27
  const IconComponent = Icons[this.name]?.[this.size];
28
- return (h("i", { key: '88e60f381458c95d1c6abb893177d5da3e4d2639', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: '459dcf88c8a28108052666028c8663fb5241a128', color: this.resolvedColor })));
28
+ return (h("i", { key: '49cc8a7c8a0af18d920065232ef3e2127f6abb6c', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: 'cb8464e125ecfddc96621b57183fb26f37043f51', color: this.resolvedColor })));
29
29
  }
30
30
  static get is() { return "sd-icon"; }
31
31
  static get originalStyleUrls() {
@@ -90,17 +90,17 @@ export class SdInput {
90
90
  '--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
91
91
  }
92
92
  : {};
93
- return (h(Host, { key: '3e95d5ff30f78cff43d6ed263acf6d782ee082d9', style: inputWidth }, h("div", { key: '6005f125ada3a94cf320d6390e8868c51b773b07', class: {
93
+ return (h(Host, { key: '3babaa8e892b3e5e484d1bdbc28b0d209945ad69', style: inputWidth }, h("div", { key: '31ea7cd711a33881144da3f0d4a6e98e6ec55244', class: {
94
94
  'sd-input': true,
95
95
  'sd-input--with-label': !!this.label,
96
96
  'sd-input--inside-label': !!this.label && this.insideLabel,
97
97
  'sd-input--barcode': !!this.barcode,
98
98
  [this.getInputStatus()]: true,
99
- } }, this.label && (h("div", { key: '89009bc9f0bf631a0274c5261cacdc915548c4ca', class: {
99
+ } }, this.label && (h("div", { key: '85596e41249b0f136c9c07bebe40e2bc2166ceba', class: {
100
100
  'sd-input__label': true,
101
- } }, this.label)), h("label", { key: '83f40c08eef0754904941fffd00bec035f654bbf', class: {
101
+ } }, this.label)), h("label", { key: 'd942a7cc950506a5cf2bcfd8984d3981af18cc7f', class: {
102
102
  'sd-input__container': true,
103
- }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '17d648f43076578e54f96c9e4fbd99553af45ef6', name: "prefix" }), h("input", { key: '03a7c6da51930e629e75b8a0af8c3e843169a6df', ref: el => (this.nativeEl = el), class: `sd-input__native_element ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) }), h("slot", { key: '604948d6bc07fb3e97e644c5459862b1fd3e91f0', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: '124d732eaa54a824dc82896d2bfc7520aa3dc2a2', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
103
+ }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '3add3a8c845be67ccd31ae98b30f5989d7e7dbf1', name: "prefix" }), h("input", { key: 'b7297ae85e0f07c8a5696cc7072833dc6ade82bc', ref: el => (this.nativeEl = el), class: `sd-input__native_element ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) }), h("slot", { key: 'c6ae6cb3f58da00c0ae80261e41841889347b73d', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: '662f365d57707b631f7a58b18330666521846e84', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
104
104
  this.internalValue = '';
105
105
  this.sdChange?.emit(this.internalValue);
106
106
  this.sdInput?.emit(this.internalValue);
@@ -6,7 +6,7 @@ export class SdLoadingSpinner {
6
6
  return resolveColor(this.color);
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'aa2f775cec2d077ec5c90f56dfe6fc7c07d66ed3' }, h("svg", { key: 'eb95e64d55a79a6937eec9b34cbe3ef538c773a5', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, h("circle", { key: '3ce95d70dcdfe3a2ad83dc5fea1226e8e3948420', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
9
+ return (h(Host, { key: 'a04395d2aaacdb74c06aebff6674ba82cc089a88' }, h("svg", { key: 'e4a28205405702bb37b40aac4a73ae369605791d', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, h("circle", { key: '31e0b13b0ab8dbf824fc6b40b020e7eb290f05f5', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
10
10
  }
11
11
  static get is() { return "sd-loading-spinner"; }
12
12
  static get originalStyleUrls() {
@@ -248,17 +248,17 @@ export class SdNumberInput {
248
248
  const inputStyles = {
249
249
  textAlign: this.useButton ? 'center' : 'right',
250
250
  };
251
- return (h(Host, { key: 'ffe73be2e4061daf9cf4cff0956bcda7b38b9bcf', style: inputWidth, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.useButton ? 'use buttons' : 'dont use buttons', this.label && h("div", { key: 'f68b7fceda7777b8f14d422a98af47571532d266', class: "sd-number-input__label" }, this.label), h("label", { key: '408380758ce87949e0ec811bfa6c885d07d93a14', class: {
251
+ return (h(Host, { key: '00862eac1b5ac354058dfc63ac7cbae7ea675c2e', style: inputWidth, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.useButton ? 'use buttons' : 'dont use buttons', this.label && h("div", { key: '368ea9ee71d69fccd1f4793e990b1345e7d87cfe', class: "sd-number-input__label" }, this.label), h("label", { key: '0f8d107bc23e308d6e9523f04199eccc39bd1268', class: {
252
252
  'sd-number-input': true,
253
253
  [this.getInputStatus()]: true,
254
254
  'sd-number-input--with-buttons': this.useButton,
255
- }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '4e8313a42ecadb4e4d5b595af69d0cde0cf3d01d', ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onKeyDown: this.handleKeyDown, style: inputStyles }), this.useButton && (h("div", { key: '0d892f1493ad23581e0c9b3d181a460fcf1e92ef', class: "sd-number-input__buttons" }, h("button", { key: 'fcd18b53eec85898d7bbac22ccb61f865dc8aa17', type: "button", class: {
255
+ }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '7f6f4a677ba9460ea022ae2060a73872123d19be', ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onKeyDown: this.handleKeyDown, style: inputStyles }), this.useButton && (h("div", { key: 'fd85f670c841fd7aee190fa040b4e228af3075a6', class: "sd-number-input__buttons" }, h("button", { key: 'c49d7ca15872cf5dc9fa6e46a3a7bca02a10d4d1', type: "button", class: {
256
256
  'sd-number-input__button': true,
257
257
  'sd-number-input__button--decrement': true,
258
- }, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'd52aee954ab3a205de0f3a106bd8097a23c44561', name: "minus", size: 12, color: this.isDecrementDisabled() ? '#CCCCCC' : '#2D8DFF' })), h("button", { key: 'f18d76a1730f25773b0ba4266e682b40ed61376e', type: "button", class: {
258
+ }, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '9fe03669015bbac1704f06bcacf8625c6937253d', name: "minus", size: 12, color: this.isDecrementDisabled() ? '#CCCCCC' : '#2D8DFF' })), h("button", { key: '98ea1cc55299f03e1689bb9becc6e87ab5720d7a', type: "button", class: {
259
259
  'sd-number-input__button': true,
260
260
  'sd-number-input__button--increment': true,
261
- }, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '608af5f9c7b837c823b4c196d2885b6db2b1dc9c', name: "add", size: 12, color: this.isIncrementDisabled() ? '#CCCCCC' : '#2D8DFF' })))))));
261
+ }, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'b6d446dfdd0435b8c991901a2cb100af4ae4d8b5', name: "add", size: 12, color: this.isIncrementDisabled() ? '#CCCCCC' : '#2D8DFF' })))))));
262
262
  }
263
263
  static get is() { return "sd-number-input"; }
264
264
  static get originalStyleUrls() {
@@ -67,12 +67,12 @@ export class SdPagination {
67
67
  }
68
68
  }
69
69
  render() {
70
- return (h("div", { key: '2d6e0ff7f085eab4d36959d5d1509d02bec72602', class: this.paginationClasses }, h("div", { key: '0bfc53f19760181a89833732c217385db02addf5', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
70
+ return (h("div", { key: '0a55eddc4c434d3a7dc6afaa2386e68a6767300e', class: this.paginationClasses }, h("div", { key: '8bb73906c74f1a8646286d0858ab6276531e4bd9', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
71
71
  'pagination-btn': true,
72
72
  'pagination-btn--selected': this.currentPage === n,
73
73
  }, disabled: this.currentPage === n, style: {
74
74
  '--pagination-btn-width': `${this.buttonWidth}px`,
75
- }, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: 'd22835ee79615e3f0700d4820df93e5bf91f68ba', class: "append-btns" }, this.renderNextButtons())));
75
+ }, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '2f6945f41f351153a9c182262ecef8c96d0ec1eb', class: "append-btns" }, this.renderNextButtons())));
76
76
  }
77
77
  static get is() { return "sd-pagination"; }
78
78
  static get originalStyleUrls() {
@@ -30,11 +30,11 @@ export class SdPopover {
30
30
  this.showPopover = false;
31
31
  };
32
32
  render() {
33
- return (h(Fragment, { key: 'd829713fa084f446de7a92b27c2a99989143c1cd' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-tooltip-portal", { key: '9599b6919adec483243bb7c3c9aa808314098e63', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: 'c6384698676c147395ea42569c4fdb58ce2c8d05', class: {
33
+ return (h(Fragment, { key: '9d9b2e9ab7dd6d7b3a79fdf8468c1921b64c8e6f' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-tooltip-portal", { key: '44e2139f21c20017b93d59888ca358fe78bb21db', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: 'eac4edb768cc3e738d9fa0a9680d85aab5d9c795', class: {
34
34
  'sd-popover-menu': true,
35
35
  [`sd-popover-menu--${this.placement}`]: true,
36
36
  [this.menuClass]: !!this.menuClass,
37
- } }, h("i", { key: 'e7db8d5465a337f579b0986dcadc3d3cba8dbc3a', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '83536de3473e209f30d9ba758537b8a38ee7eecf' })), h("div", { key: 'be4eb9559697249db670333f4113192bd2faddf9', class: "sd-popover-menu__content" }, this.menuTitle && h("div", { key: 'b80c8b40b00c3a97623c5ddae5fd1fea927b51e4', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: 'c05bbb176368895a04c58981af48f5ccd5dbe586', class: "sd-popover-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '8f70454411ea148dd0595b184b3a1798e2cd5b7c', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: 'fb399fcea8365695801a1001842f32cae2455a11', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '9f6cd57f9053d0c8e6d2cfef358867dd39b037bb', name: "close", size: "12", color: "#AAAAAA" }))))))));
37
+ } }, h("i", { key: '8b4228cabeebf775419ce25c89a609c5a24bbc86', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '794ea65c5d1bd4362b5245611f49bab0bdbdf451' })), h("div", { key: 'f3a756194b51dbfea1c2c1a9f09d390a7a01add2', class: "sd-popover-menu__content" }, this.menuTitle && h("div", { key: 'e3425e647b09ad929741811f5962855d4b489a34', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '157ce5e1ceeee570cd12581471281124e91ccfe9', class: "sd-popover-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '82ce6ee0c7ab22981785df2751aab973321db044', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: 'd5ce191f037db5c466f6de9ebdaabbbf3691f2b1', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '1ee550de3c8d8eaa72a3faa4d7abece5b4725452', name: "close", size: "12", color: "#AAAAAA" }))))))));
38
38
  }
39
39
  static get is() { return "sd-popover"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -113,7 +113,7 @@ export class SdPortal {
113
113
  this.sdClose.emit();
114
114
  }
115
115
  render() {
116
- return h("slot", { key: 'f2884bc356461c20992f6bda70475eb0aa38a301' });
116
+ return h("slot", { key: '05a54c512300d0616811e11a795170490feff876' });
117
117
  }
118
118
  static get is() { return "sd-portal"; }
119
119
  static get properties() {
@@ -33,10 +33,10 @@ export class SdProgress {
33
33
  return this.statusColor[this.progressStatus];
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: 'fe3875178b9b621f5cb21dc030f736df71ee8f91', style: {
36
+ return (h(Host, { key: 'b254676f6936364f895fd8dd85edd33b95b9d52e', style: {
37
37
  '--progress-color': this.progressColor,
38
38
  '--progress-percentage': `${this.progressPercentage}%`,
39
- } }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: 'bd4693197e530e6a836b076772bfd02a3c91ce3a', class: "sd-progress__label" }, this.label)));
39
+ } }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: 'aeb82be4b54ec40dfec7dc8717faeea41c4fd0e8', class: "sd-progress__label" }, this.label)));
40
40
  }
41
41
  renderBarProgress() {
42
42
  return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, h("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
@@ -24,7 +24,7 @@ export class SdSelectOption {
24
24
  }
25
25
  };
26
26
  render() {
27
- return (h(Host, { key: '1a19f832f8cedf6ccc9ad6e0b973478c304b43e5' }, h("div", { key: '22db5c447a29ffdb318c4814711160c71923914b', class: {
27
+ return (h(Host, { key: 'cfb999f7001240e6bd5dc302b24aade477671f74' }, h("div", { key: '053e073fee23e99bd23a9b9fa95cb9ddabf9d6bf', class: {
28
28
  'sd-select__option': true,
29
29
  'sd-select__option--selected': this.isSelected,
30
30
  'sd-select__option--disabled': !!this.option.disabled,
@@ -16,17 +16,17 @@ export class SdSelectSearchInput {
16
16
  input?.focus({ preventScroll: true });
17
17
  }
18
18
  render() {
19
- return (h("div", { key: '65bd006cb11e8979bdfc15c647623f10b624d556', class: {
19
+ return (h("div", { key: '6d05eba9ab9a951d126f703ec9366d8b425581b7', class: {
20
20
  'sd-select-search-input': true,
21
21
  'sd-select-search-input--scrolled': !!this.isScrolled,
22
- }, onClick: event => event.stopPropagation() }, h("sd-input", { key: '153b003caf75f4deb45476d70b6695699ed08827', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdInput: event => {
22
+ }, onClick: event => event.stopPropagation() }, h("sd-input", { key: 'e00b8cab50be8a096893c4cb4aceff0446cbfde4', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdInput: event => {
23
23
  this.sdSearchInput.emit(String(event?.detail));
24
24
  }, onSdFocus: () => {
25
25
  this.sdSearchFocus.emit();
26
26
  }, onKeyDown: event => {
27
27
  if (event.code === 'Enter')
28
28
  event.stopPropagation();
29
- } }, h("sd-icon", { key: 'f55710c6a77d73cf0ff65891ca5028caefc174a2', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
29
+ } }, h("sd-icon", { key: '951178d9cbe80fc944e708207b57949ecd6ed8fc', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
30
30
  }
31
31
  static get is() { return "sd-select-search-input"; }
32
32
  static get originalStyleUrls() {
@@ -211,11 +211,11 @@ export class SdSelectMultiple extends BaseDropdownEvent {
211
211
  '--select-width': this.width || '200px',
212
212
  '--select-dropdown-height': this.dropdownHeight || '260px',
213
213
  };
214
- return (h(Host, { key: 'aa11a88a19987be498da603cfa81c95e89f935c0', style: style }, h("div", { key: '35d1a93e5bee37027d43a90fadc32c335569ce66', class: {
214
+ return (h(Host, { key: 'ff0653e24d97db442399017df0380a17f96dffe4', style: style }, h("div", { key: 'd5f6c3425abfcfdd81e47529659aa591fc604b0b', class: {
215
215
  'sd-select-multiple': true,
216
216
  'sd-select-multiple--open': this.isOpen,
217
217
  'sd-select-multiple--disabled': this.disabled,
218
- }, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), h("div", { key: 'd4d581d5fe2589dfd5ed5072324954f75f6c7382', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
218
+ }, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), h("div", { key: 'ee82c8383eb3e98729b2d55065b66e9a84cf5215', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
219
219
  }
220
220
  renderLabel(label) {
221
221
  if (!label)
@@ -39,7 +39,7 @@ export class SdSelectOptionGroup {
39
39
  }
40
40
  };
41
41
  render() {
42
- return (h("div", { key: 'f6f8a7ce8cb9c68e4f748e518d1fe3a4ae06802c', class: {
42
+ return (h("div", { key: 'ed43a2fa2ae5b182f1c99b272126fb3629617681', class: {
43
43
  'sd-select__option-group': true,
44
44
  'sd-select__option-group--selected': !!this.isSelected,
45
45
  'sd-select__option-group--disabled': !!this.option.disabled,
@@ -48,10 +48,10 @@ export class SdSelectOptionGroup {
48
48
  'sd-select__option-group--group': this.option.type === 'group',
49
49
  'sd-select__option-group--subgroup': this.option.type === 'subgroup',
50
50
  'sd-select__option-group--item': this.option.type === 'item',
51
- }, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '0b5fe050c0d370bb92e63c0a54d4923b0d05e8d3', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: '2d33a17d0f0104d72cd2ce54ec074a892765a70b', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
51
+ }, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '97de3f6a855bf737cbaa5f23f7986b2c5ee10c52', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: '7d8814dc060dd769f100be09d87edcc440cbf93d', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
52
52
  e.preventDefault();
53
53
  this.handleClick(this.option, this.isSelected, e);
54
- } })), h("span", { key: 'c13521ff2721292c8f06f619249ea7c4ab89e88c', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'f9c9bf0a5d71161259bc72b14af0b20e57213f75', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
54
+ } })), h("span", { key: '8fd8bf56260bf49f42a0cb205868a45912e5a4de', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'eaa10fa1f13f4f6bc48b22967b1b31a2e894865c', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
55
55
  }
56
56
  static get is() { return "sd-select-option-group"; }
57
57
  static get originalStyleUrls() {
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SdTbody {
3
3
  render() {
4
- return (h(Host, { key: 'bef033a85bc25bdd4c08be9ac93e1dd7904d3b92' }, h("slot", { key: '380295c93446b7c99068bddb1ebefeee25056759' })));
4
+ return (h(Host, { key: '5c25fa054aaea539d47625d367adeb18d771f070' }, h("slot", { key: '17e9fd219974d986e154d72c82a3ac145af7e7a8' })));
5
5
  }
6
6
  static get is() { return "sd-tbody"; }
7
7
  static get originalStyleUrls() {
@@ -5,11 +5,11 @@ export class SdTd {
5
5
  tdStyle;
6
6
  tdClass;
7
7
  render() {
8
- return (h(Host, { key: 'b220b330eccc8e87ba9b0333f25d5d8e922fbf5e', role: "cell", class: {
8
+ return (h(Host, { key: 'caaefa12c86561d1bbe8d10e4f25b079def2124e', role: "cell", class: {
9
9
  'sd-td': true,
10
10
  [`sd-td--${this.align}`]: true,
11
11
  [this.tdClass || '']: Boolean(this.tdClass),
12
- }, style: this.tdStyle }, h("slot", { key: '807cf20b823a3efa00ce4f690ff1be2226d6ad8f' })));
12
+ }, style: this.tdStyle }, h("slot", { key: '9ea243e4a6fcb4b6e1edc94b92eb4cc9d0e50a97' })));
13
13
  }
14
14
  static get is() { return "sd-td"; }
15
15
  static get originalStyleUrls() {
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SdTh {
3
3
  render() {
4
- return (h(Host, { key: '1ffd60e25f49d7a2840e90e4813be0f249634a0e', role: "columnheader" }, h("slot", { key: 'afc47eff5e8714aca488a928fdd356d58f20235a' })));
4
+ return (h(Host, { key: '04e75c300b9147dc122570af4b1f4729d6ee1902', role: "columnheader" }, h("slot", { key: '29cbcdc0f8b8087c4c8bf593a7dfe8cf56bcaf39' })));
5
5
  }
6
6
  static get is() { return "sd-th"; }
7
7
  static get originalStyleUrls() {
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class SdTr {
3
3
  render() {
4
- return (h(Host, { key: '384b83fc792b3482a2f5e299c248ccfe52e23aab', role: "row" }, h("slot", { key: '49d0f2140923af7709222b596e6cdc511bbac0a3' })));
4
+ return (h(Host, { key: '87cb4c63e4368106176b194602195b5a1e48c706', role: "row" }, h("slot", { key: 'daeaecd458767c572d86cf05650230388f1a2cae' })));
5
5
  }
6
6
  static get is() { return "sd-tr"; }
7
7
  static get originalStyleUrls() {
@@ -29,7 +29,7 @@ export class SdToggle {
29
29
  this.sdChange.emit(newValue);
30
30
  };
31
31
  render() {
32
- return (h("label", { key: '98109b653fae3a6fb4da63974bd1cb3c298922a8', "aria-checked": this.isChecked.toString(), "aria-disabled": this.disabled.toString(), role: "switch", "aria-label": this.label || 'toggle', class: this.toggleClasses }, h("input", { key: '72abccdd961d365d34aeaefe1a45ffb84de8c74f', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onInput: this.handleChange }), this.label && h("span", { key: 'd8c2f68be88a9089ba494017f3d46a3151cfb882', class: "sd-toggle__label" }, this.label), h("div", { key: 'be28af142749104d24172782817bdaa94bd24eb1', class: "sd-toggle__track" }, h("div", { key: 'f3b000418dbaece07540ad3135ef629113274de4', class: "sd-toggle__thumb" }))));
32
+ return (h("label", { key: 'ba2398d6eb054c00c526ab1ada37b09e4d6602a3', "aria-checked": this.isChecked.toString(), "aria-disabled": this.disabled.toString(), role: "switch", "aria-label": this.label || 'toggle', class: this.toggleClasses }, h("input", { key: 'b7da299e1dacd7d41bc1cd72d5bc135d5ecd52fd', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onInput: this.handleChange }), this.label && h("span", { key: 'b6ddc87485036dee698eb099d7343edd4163d7b0', class: "sd-toggle__label" }, this.label), h("div", { key: '2439852af329488d50907ee132a6fd819129a6a0', class: "sd-toggle__track" }, h("div", { key: '72114f2bec9e0372b05d90df8099dc9aad812e3d', class: "sd-toggle__thumb" }))));
33
33
  }
34
34
  static get is() { return "sd-toggle"; }
35
35
  static get originalStyleUrls() {
@@ -32,7 +32,7 @@ export class SdToggleButton {
32
32
  this.sdChange.emit(newValue);
33
33
  };
34
34
  render() {
35
- return (h("label", { key: '98522762cdfcfd0b7ee4e460455c46e2e5aea679', class: this.buttonClasses, role: "button", "aria-pressed": this.isActive.toString(), "aria-disabled": this.disabled.toString(), "aria-label": this.label || 'toggle button' }, this.label, h("input", { key: '905fbcee8ca900a099b27c4fe90b87a1485aefd3', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
35
+ return (h("label", { key: '54d45d11b3944c61147d5bd0fa68078aa28737f1', class: this.buttonClasses, role: "button", "aria-pressed": this.isActive.toString(), "aria-disabled": this.disabled.toString(), "aria-label": this.label || 'toggle button' }, this.label, h("input", { key: 'cafb7edbcaead5e487b756a006cfee9b9d890558', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
36
36
  }
37
37
  static get is() { return "sd-toggle-button"; }
38
38
  static get originalStyleUrls() {
@@ -43,20 +43,20 @@ export class SdTooltip {
43
43
  : {
44
44
  onClick: () => (this.showTooltip = !this.showTooltip),
45
45
  };
46
- return (h(Fragment, { key: '5b1fc0676ab054ff35c241b75da7065d8bb5463f' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-tooltip", ...handleTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (h("sd-tooltip-portal", { key: 'c9dd7ad95c2ee7c4c15ef9670a55fd135ad31aef', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, h("div", { key: 'b7f8ce9afe1c806711b356d008ba0a50c9a54817', class: {
46
+ return (h(Fragment, { key: '1016ad941100e902068b5a7d7773a2dbf7ab0667' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-tooltip", ...handleTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (h("sd-tooltip-portal", { key: '8370b55d3bafa7a5ca429ee17c7555cfdb9e51a2', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, h("div", { key: '94a8d13f88050792b3e307901c2545995d92fdaf', class: {
47
47
  'sd-tooltip-menu': true,
48
48
  [`sd-tooltip-menu--${this.type}`]: true,
49
49
  [`sd-tooltip-menu--${this.placement}`]: true,
50
50
  'sd-tooltip-menu--with-close': this.useClose,
51
51
  [`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
52
52
  [`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
53
- } }, h("i", { key: 'e8b1f776aa1f42355cbdfd36ed3018c18ccb974a', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '34af873af0b9705baae638f91daa99fdf283e11b', class: {
53
+ } }, h("i", { key: 'b13f215dc7f51af86e7748a0ac565f62cbd936ef', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: 'a043ccc525e18baed8c9b4d5cdd7651c4600b4e4', class: {
54
54
  [`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
55
- } })), h("div", { key: '079e229d6edd5dbddcdd284bc476d65824e39123', class: "sd-tooltip-menu__content", ref: el => {
55
+ } })), h("div", { key: '60e67cc4620b07153a8cef098446e0a292f08230', class: "sd-tooltip-menu__content", ref: el => {
56
56
  if (el && this.slotContent && !el.hasChildNodes()) {
57
57
  el.appendChild(this.slotContent.cloneNode(true));
58
58
  }
59
- } }, !this.slotContent && h("span", { key: '4d83f9d9289673949af26a2d3a22891effaad6cd' }, this.el.textContent)), this.useClose && (h("div", { key: '8794541b5a28fc1b452cdf64ab716ccc5b92b77e', class: "sd-tooltip-menu__close-button" }, h("button", { key: '98434991dc4d234903d19598d897499ed25b1ffb', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, h("sd-icon", { key: '6a79435ca69bd531929ef0be82989dc766dd833d', name: "close", size: "12", color: "#AAAAAA" })))))))));
59
+ } }, !this.slotContent && h("span", { key: 'e2e2afd2e2607be01d474c9329cd15b280214cd0' }, this.el.textContent)), this.useClose && (h("div", { key: '25962f34a91f8838e32c25529cacf048b2bbcf6b', class: "sd-tooltip-menu__close-button" }, h("button", { key: '5e37a4c9bace03a0c2a26edb0125ac0f25c65784', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, h("sd-icon", { key: 'ed7c97b16a507b8fad10d58f4e5a38061517b88a', name: "close", size: "12", color: "#AAAAAA" })))))))));
60
60
  }
61
61
  static get is() { return "sd-tooltip"; }
62
62
  static get originalStyleUrls() {
@@ -144,7 +144,7 @@ export class SdTooltipPortal {
144
144
  this.sdClose.emit();
145
145
  }
146
146
  render() {
147
- return h("slot", { key: 'aa077fc67880fd159b08f0333e000b4cc73df394' });
147
+ return h("slot", { key: 'f26d3228d5c0965c2303e599259a6e93307009dc' });
148
148
  }
149
149
  static get is() { return "sd-tooltip-portal"; }
150
150
  static get encapsulation() { return "shadow"; }
@@ -10,7 +10,7 @@ const SdTh = /*@__PURE__*/ proxyCustomElement(class SdTh extends H {
10
10
  }
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: '1ffd60e25f49d7a2840e90e4813be0f249634a0e', role: "columnheader" }, h("slot", { key: 'afc47eff5e8714aca488a928fdd356d58f20235a' })));
13
+ return (h(Host, { key: '04e75c300b9147dc122570af4b1f4729d6ee1902', role: "columnheader" }, h("slot", { key: '29cbcdc0f8b8087c4c8bf593a7dfe8cf56bcaf39' })));
14
14
  }
15
15
  static get style() { return sdThCss(); }
16
16
  }, [260, "sd-th"]);
@@ -29,6 +29,6 @@ function defineCustomElement() {
29
29
  }
30
30
 
31
31
  export { SdTh as S, defineCustomElement as d };
32
- //# sourceMappingURL=p-BLidMbc_.js.map
32
+ //# sourceMappingURL=p-6qJVnQg4.js.map
33
33
 
34
- //# sourceMappingURL=p-BLidMbc_.js.map
34
+ //# sourceMappingURL=p-6qJVnQg4.js.map
@@ -1 +1 @@
1
- {"file":"p-BLidMbc_.js","mappings":";;AAAA,MAAM,OAAO,GAAG,MAAM,CAAC,6HAA6H,CAAC;;MCMxI,IAAI,iBAAAA,kBAAA,CAAA,MAAA,IAAA,SAAAC,CAAA,CAAA;;;;;;;IAChB,MAAM,GAAA;QACL,QACC,CAAC,CAAA,IAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,cAAc,EAAA,EACxB,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACP;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/sd-table/sd-th/sd-th.scss?tag=sd-th","src/components/sd-table/sd-th/sd-th.tsx"],"sourcesContent":["sd-th {\n display: table-cell;\n padding: 12px;\n font-weight: bold;\n text-align: left;\n border-bottom: 2px solid #ddd;\n background-color: #f1f1f1;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-th',\n styleUrl: 'sd-th.scss',\n})\nexport class SdTh {\n render() {\n return (\n <Host role=\"columnheader\">\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-6qJVnQg4.js","mappings":";;AAAA,MAAM,OAAO,GAAG,MAAM,CAAC,6HAA6H,CAAC;;MCMxI,IAAI,iBAAAA,kBAAA,CAAA,MAAA,IAAA,SAAAC,CAAA,CAAA;;;;;;;IAChB,MAAM,GAAA;QACL,QACC,CAAC,CAAA,IAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,cAAc,EAAA,EACxB,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACP;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/sd-table/sd-th/sd-th.scss?tag=sd-th","src/components/sd-table/sd-th/sd-th.tsx"],"sourcesContent":["sd-th {\n display: table-cell;\n padding: 12px;\n font-weight: bold;\n text-align: left;\n border-bottom: 2px solid #ddd;\n background-color: #f1f1f1;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-th',\n styleUrl: 'sd-th.scss',\n})\nexport class SdTh {\n render() {\n return (\n <Host role=\"columnheader\">\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -121,7 +121,7 @@ const SdPortal = /*@__PURE__*/ proxyCustomElement(class SdPortal extends H {
121
121
  this.sdClose.emit();
122
122
  }
123
123
  render() {
124
- return h("slot", { key: 'f2884bc356461c20992f6bda70475eb0aa38a301' });
124
+ return h("slot", { key: '05a54c512300d0616811e11a795170490feff876' });
125
125
  }
126
126
  }, [772, "sd-portal", {
127
127
  "to": [1],
@@ -145,6 +145,6 @@ function defineCustomElement() {
145
145
  }
146
146
 
147
147
  export { SdPortal as S, defineCustomElement as d };
148
- //# sourceMappingURL=p-D5BkkT2U.js.map
148
+ //# sourceMappingURL=p-B8yBkdjE.js.map
149
149
 
150
- //# sourceMappingURL=p-D5BkkT2U.js.map
150
+ //# sourceMappingURL=p-B8yBkdjE.js.map
@@ -1 +1 @@
1
- {"file":"p-D5BkkT2U.js","mappings":";;MAMa,QAAQ,iBAAAA,kBAAA,CAAA,MAAA,QAAA,SAAAC,CAAA,CAAA;;;;;;;;;IA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CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QACzE,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;AAC5C,YAAA,SAAS,EAAE,IAAI;AACf,YAAA,OAAO,EAAE,IAAI;AACb,SAAA,CAAC;;IAGK,eAAe,GAAA;AACtB,QAAA,IAAI,CAAC,cAAc,EAAE,UAAU,EAAE;AACjC,QAAA,IAAI,CAAC,gBAAgB,EAAE,UAAU,EAAE;;;AAKpC,IAAA,eAAe,CAAC,CAAa,EAAA;QAC5B,IAAI,CAAC,aAAa,GAAG,CAAC,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAc,CAAC,CAAC;;AAIjF,IAAA,iBAAiB,CAAC,CAAa,EAAA;AAC9B,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;AACvB,YAAA,IAAI,CAAC,aAAa,GAAG,KAAK;YAC1B;;QAED,IAAI,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAc,CAAC;YAAE;AAC9C,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;;IAGpB,MAAM,GAAA;QACL,OAAO,8DAAa;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/sd-portal/sd-portal.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, Listen, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-portal',\n shadow: false,\n})\nexport class SdPortal {\n @Element() hostEl!: HTMLElement;\n @Prop() to: HTMLElement | string = 'body';\n @Prop() parentRef: HTMLElement | null = null;\n @Prop() offset: [number, number] = [0, 4];\n @Prop() zIndex: number = 9999;\n @Prop() open: boolean = false;\n\n @Event() sdClose!: EventEmitter<void>;\n\n private container?: HTMLElement;\n private wrapper?: HTMLElement;\n private rafId?: number;\n private isInsideClick = false;\n\n private resizeObserver?: ResizeObserver;\n private mutationObserver?: MutationObserver;\n\n componentDidLoad() {\n this.container = this.resolveContainer();\n this.createWrapper();\n this.moveSlotContent();\n this.updatePosition();\n this.observeParent();\n }\n\n componentDidRender() {\n if (!this.wrapper) return;\n this.wrapper.style.display = this.open ? 'block' : 'none';\n if (this.open) this.updatePosition();\n }\n\n disconnectedCallback() {\n this.unobserveParent();\n this.wrapper?.remove();\n }\n\n private resolveContainer(): HTMLElement {\n const el = typeof this.to === 'string' ? document.querySelector(this.to) : this.to;\n return el instanceof HTMLElement ? el : document.body;\n }\n\n private createWrapper() {\n this.wrapper = document.createElement('div');\n Object.assign(this.wrapper.style, {\n position: 'absolute',\n zIndex: this.zIndex.toString(),\n transition: 'opacity 0.4s',\n });\n this.container!.appendChild(this.wrapper);\n }\n\n private moveSlotContent() {\n if (!this.wrapper) return;\n const nodes = Array.from(this.hostEl.childNodes).filter(n => n.nodeType !== Node.COMMENT_NODE);\n nodes.forEach(n => this.wrapper!.appendChild(n));\n }\n\n // 위치 갱신 (scroll / resize)\n @Listen('scroll', { target: 'window' })\n @Listen('resize', { target: 'window' })\n updatePosition() {\n if (this.rafId) cancelAnimationFrame(this.rafId);\n this.rafId = requestAnimationFrame(() => {\n if (!this.parentRef || !this.wrapper) return;\n\n const parentRect = this.parentRef.getBoundingClientRect();\n const wrapperRect = this.wrapper.getBoundingClientRect();\n const viewport = {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n\n let top = parentRect.bottom + window.scrollY + this.offset[1];\n let left = parentRect.left + window.scrollX + this.offset[0];\n\n // 화면 상하단 넘어갈 시 반전\n if (parentRect.bottom + wrapperRect.height + this.offset[1] > viewport.height) {\n top = parentRect.top + window.scrollY - wrapperRect.height - this.offset[1];\n }\n if (top < window.scrollY) {\n top = parentRect.bottom + window.scrollY + this.offset[1];\n }\n\n // 화면 좌우측 넘어갈 시 반전\n if (parentRect.left + wrapperRect.width + this.offset[0] > viewport.width) {\n left = parentRect.right + window.scrollX - wrapperRect.width - this.offset[0];\n }\n if (left < 0) {\n left = this.offset[0];\n }\n\n this.wrapper.style.top = `${top}px`;\n this.wrapper.style.left = `${left}px`;\n });\n }\n\n // parentRef의 이동 / 크기변경 감지\n private observeParent() {\n if (!this.parentRef) return;\n\n this.resizeObserver = new ResizeObserver(() => this.updatePosition());\n this.resizeObserver.observe(this.parentRef);\n\n this.mutationObserver = new MutationObserver(() => this.updatePosition());\n this.mutationObserver.observe(document.body, {\n childList: true,\n subtree: true,\n });\n }\n\n private unobserveParent() {\n this.resizeObserver?.disconnect();\n this.mutationObserver?.disconnect();\n }\n\n // 외부 클릭 감지\n @Listen('mousedown', { target: 'window' })\n handleMouseDown(e: MouseEvent) {\n this.isInsideClick = !!(this.wrapper && this.wrapper.contains(e.target as Node));\n }\n\n @Listen('click', { target: 'window' })\n handleWindowClick(e: MouseEvent) {\n if (this.isInsideClick) {\n this.isInsideClick = false;\n return;\n }\n if (this.wrapper?.contains(e.target as Node)) return;\n this.sdClose.emit();\n }\n\n render() {\n return <slot></slot>;\n }\n}\n"],"version":3}
1
+ {"file":"p-B8yBkdjE.js","mappings":";;MAMa,QAAQ,iBAAAA,kBAAA,CAAA,MAAA,QAAA,SAAAC,CAAA,CAAA;;;;;;;;;IAEZ,EAAE,GAAyB,MAAM;IACjC,SAAS,GAAuB,IAAI;AACpC,IAAA,MAAM,GAAqB,CAAC,CAAC,EAAE,CAAC,CAAC;IACjC,MAAM,GAAW,IAAI;IACrB,IAAI,GAAY,KAAK;AAEpB,IAAA,OAAO;AAER,IAAA,SAAS;AACT,IAAA,OAAO;AACP,IAAA,KAAK;IACL,aAAa,GAAG,KAAK;AAErB,IAAA,cAAc;AACd,IAAA,gBAAgB;IAExB,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE;QACxC,IAAI,CAAC,aAAa,EAAE;QACpB,IAAI,CAAC,eAAe,EAAE;QACtB,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CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAc,CAAC,CAAC;;AAIjF,IAAA,iBAAiB,CAAC,CAAa,EAAA;AAC9B,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;AACvB,YAAA,IAAI,CAAC,aAAa,GAAG,KAAK;YAC1B;;QAED,IAAI,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAc,CAAC;YAAE;AAC9C,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;;IAGpB,MAAM,GAAA;QACL,OAAO,8DAAa;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/sd-portal/sd-portal.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, Listen, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-portal',\n shadow: false,\n})\nexport class SdPortal {\n @Element() hostEl!: HTMLElement;\n @Prop() to: HTMLElement | string = 'body';\n @Prop() parentRef: HTMLElement | null = null;\n @Prop() offset: [number, number] = [0, 4];\n @Prop() zIndex: number = 9999;\n @Prop() open: boolean = false;\n\n @Event() sdClose!: EventEmitter<void>;\n\n private container?: HTMLElement;\n private wrapper?: HTMLElement;\n private rafId?: number;\n private isInsideClick = false;\n\n private resizeObserver?: ResizeObserver;\n private mutationObserver?: MutationObserver;\n\n componentDidLoad() {\n this.container = this.resolveContainer();\n this.createWrapper();\n this.moveSlotContent();\n this.updatePosition();\n this.observeParent();\n }\n\n componentDidRender() {\n if (!this.wrapper) return;\n this.wrapper.style.display = this.open ? 'block' : 'none';\n if (this.open) this.updatePosition();\n }\n\n disconnectedCallback() {\n this.unobserveParent();\n this.wrapper?.remove();\n }\n\n private resolveContainer(): HTMLElement {\n const el = typeof this.to === 'string' ? document.querySelector(this.to) : this.to;\n return el instanceof HTMLElement ? el : document.body;\n }\n\n private createWrapper() {\n this.wrapper = document.createElement('div');\n Object.assign(this.wrapper.style, {\n position: 'absolute',\n zIndex: this.zIndex.toString(),\n transition: 'opacity 0.4s',\n });\n this.container!.appendChild(this.wrapper);\n }\n\n private moveSlotContent() {\n if (!this.wrapper) return;\n const nodes = Array.from(this.hostEl.childNodes).filter(n => n.nodeType !== Node.COMMENT_NODE);\n nodes.forEach(n => this.wrapper!.appendChild(n));\n }\n\n // 위치 갱신 (scroll / resize)\n @Listen('scroll', { target: 'window' })\n @Listen('resize', { target: 'window' })\n updatePosition() {\n if (this.rafId) cancelAnimationFrame(this.rafId);\n this.rafId = requestAnimationFrame(() => {\n if (!this.parentRef || !this.wrapper) return;\n\n const parentRect = this.parentRef.getBoundingClientRect();\n const wrapperRect = this.wrapper.getBoundingClientRect();\n const viewport = {\n width: window.innerWidth,\n height: window.innerHeight,\n };\n\n let top = parentRect.bottom + window.scrollY + this.offset[1];\n let left = parentRect.left + window.scrollX + this.offset[0];\n\n // 화면 상하단 넘어갈 시 반전\n if (parentRect.bottom + wrapperRect.height + this.offset[1] > viewport.height) {\n top = parentRect.top + window.scrollY - wrapperRect.height - this.offset[1];\n }\n if (top < window.scrollY) {\n top = parentRect.bottom + window.scrollY + this.offset[1];\n }\n\n // 화면 좌우측 넘어갈 시 반전\n if (parentRect.left + wrapperRect.width + this.offset[0] > viewport.width) {\n left = parentRect.right + window.scrollX - wrapperRect.width - this.offset[0];\n }\n if (left < 0) {\n left = this.offset[0];\n }\n\n this.wrapper.style.top = `${top}px`;\n this.wrapper.style.left = `${left}px`;\n });\n }\n\n // parentRef의 이동 / 크기변경 감지\n private observeParent() {\n if (!this.parentRef) return;\n\n this.resizeObserver = new ResizeObserver(() => this.updatePosition());\n this.resizeObserver.observe(this.parentRef);\n\n this.mutationObserver = new MutationObserver(() => this.updatePosition());\n this.mutationObserver.observe(document.body, {\n childList: true,\n subtree: true,\n });\n }\n\n private unobserveParent() {\n this.resizeObserver?.disconnect();\n this.mutationObserver?.disconnect();\n }\n\n // 외부 클릭 감지\n @Listen('mousedown', { target: 'window' })\n handleMouseDown(e: MouseEvent) {\n this.isInsideClick = !!(this.wrapper && this.wrapper.contains(e.target as Node));\n }\n\n @Listen('click', { target: 'window' })\n handleWindowClick(e: MouseEvent) {\n if (this.isInsideClick) {\n this.isInsideClick = false;\n return;\n }\n if (this.wrapper?.contains(e.target as Node)) return;\n this.sdClose.emit();\n }\n\n render() {\n return <slot></slot>;\n }\n}\n"],"version":3}