@sellmate/design-system 1.19.0 → 1.20.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.
Files changed (242) 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-badge.cjs.entry.js +1 -1
  4. package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
  5. package/dist/cjs/sd-calendar_2.cjs.entry.js +5 -5
  6. package/dist/cjs/sd-callout.cjs.entry.js +1 -1
  7. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-chip-input.cjs.entry.js +2 -2
  9. package/dist/cjs/sd-chip.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
  11. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
  12. package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
  13. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/sd-divider.cjs.entry.js +1 -1
  15. package/dist/cjs/sd-field_3.cjs.entry.js +8 -8
  16. package/dist/cjs/{sd-ghost-button_2.cjs.entry.js → sd-ghost-button_3.cjs.entry.js} +264 -10
  17. package/dist/cjs/sd-key-value-table.cjs.entry.js +4 -4
  18. package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
  19. package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
  20. package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
  21. package/dist/cjs/sd-popup.cjs.entry.js +1 -1
  22. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
  23. package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
  24. package/dist/cjs/sd-switch.cjs.entry.js +1 -1
  25. package/dist/cjs/sd-table.cjs.entry.js +8 -8
  26. package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-td.cjs.entry.js +1 -1
  28. package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
  29. package/dist/cjs/sd-toast.cjs.entry.js +2 -2
  30. package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
  31. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  32. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
  33. package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
  34. package/dist/collection/components/sd-callout/sd-callout.js +1 -1
  35. package/dist/collection/components/sd-card/sd-card.js +1 -1
  36. package/dist/collection/components/sd-chip/sd-chip.js +1 -1
  37. package/dist/collection/components/sd-chip-input/sd-chip-input.js +2 -2
  38. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  39. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
  40. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  41. package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
  42. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  43. package/dist/collection/components/sd-divider/sd-divider.js +1 -1
  44. package/dist/collection/components/sd-field/sd-field.js +5 -5
  45. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  46. package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +2 -17
  47. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +21 -12
  48. package/dist/collection/components/sd-input/sd-input.js +2 -2
  49. package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +2 -2
  50. package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +6 -6
  51. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  52. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  53. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
  54. package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
  55. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  56. package/dist/collection/components/sd-popup/sd-popup.js +1 -1
  57. package/dist/collection/components/sd-portal/sd-portal.js +34 -3
  58. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
  59. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
  60. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
  61. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
  62. package/dist/collection/components/sd-select/sd-select.js +4 -4
  63. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  64. package/dist/collection/components/sd-table/sd-table.css +1 -1
  65. package/dist/collection/components/sd-table/sd-table.js +9 -9
  66. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
  67. package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
  68. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
  69. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  70. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  71. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  72. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  73. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  74. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  75. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  76. package/dist/components/{p-CH6cVc2a.js → p-5GcM22aW.js} +1 -1
  77. package/dist/components/p-B7PHGGFH.js +1 -0
  78. package/dist/components/{p-DMS9mQsg.js → p-BHW1fnDC.js} +1 -1
  79. package/dist/components/{p-B3SKaQId.js → p-BZjIn1hr.js} +1 -1
  80. package/dist/components/{p-CzCu_NDl.js → p-Bd-fDbVE.js} +1 -1
  81. package/dist/components/p-BeYMZ1fR.js +1 -0
  82. package/dist/components/{p-79DExV92.js → p-BuFzlA0M.js} +1 -1
  83. package/dist/components/{p-CQWZv8vY.js → p-BzUU-npj.js} +1 -1
  84. package/dist/components/p-CEhI4kUA.js +1 -0
  85. package/dist/components/{p-4HPAPKne.js → p-CQozoo2-.js} +1 -1
  86. package/dist/components/p-Cfko62rU.js +1 -0
  87. package/dist/components/{p-hzCGj0On.js → p-ChncPmp-.js} +1 -1
  88. package/dist/components/p-CiEAVQT4.js +1 -0
  89. package/dist/components/p-CjYYBlrZ.js +1 -0
  90. package/dist/components/p-CvSqieCH.js +1 -0
  91. package/dist/components/p-DAJIg-VD.js +1 -0
  92. package/dist/components/p-DRgPF0Fp.js +1 -0
  93. package/dist/components/p-DYOyb7rq.js +1 -0
  94. package/dist/components/{p-BD8OoYud.js → p-DaMzYzXI.js} +1 -1
  95. package/dist/components/{p-BMIgVp9-.js → p-De7UsPPk.js} +1 -1
  96. package/dist/components/p-Df1g_kVH.js +1 -0
  97. package/dist/components/p-DpfXh55-.js +1 -0
  98. package/dist/components/{p-B_5uwji5.js → p-E5buAge1.js} +1 -1
  99. package/dist/components/{p-BLNc_TL-.js → p-P2jWtk8J.js} +1 -1
  100. package/dist/components/{p-C_r3z9VA.js → p-lmVlfugh.js} +1 -1
  101. package/dist/components/p-nruUh8p1.js +1 -0
  102. package/dist/components/p-pSthmtsz.js +1 -0
  103. package/dist/components/p-vTnMooAF.js +1 -0
  104. package/dist/components/sd-action-modal.js +1 -1
  105. package/dist/components/sd-badge.js +1 -1
  106. package/dist/components/sd-barcode-input.js +1 -1
  107. package/dist/components/sd-calendar.js +1 -1
  108. package/dist/components/sd-callout.js +1 -1
  109. package/dist/components/sd-card.js +1 -1
  110. package/dist/components/sd-chip-input.js +1 -1
  111. package/dist/components/sd-chip.js +1 -1
  112. package/dist/components/sd-circle-progress.js +1 -1
  113. package/dist/components/sd-confirm-modal.js +1 -1
  114. package/dist/components/sd-date-picker-trigger.js +1 -1
  115. package/dist/components/sd-date-picker.js +1 -1
  116. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  117. package/dist/components/sd-date-range-picker.js +1 -1
  118. package/dist/components/sd-divider.js +1 -1
  119. package/dist/components/sd-dropdown-button.js +1 -1
  120. package/dist/components/sd-field.js +1 -1
  121. package/dist/components/sd-file-picker.js +1 -1
  122. package/dist/components/sd-floating-portal.js +1 -1
  123. package/dist/components/sd-ghost-button.js +1 -1
  124. package/dist/components/sd-guide.js +1 -1
  125. package/dist/components/sd-input.js +1 -1
  126. package/dist/components/sd-key-value-table.js +1 -1
  127. package/dist/components/sd-linear-progress.js +1 -1
  128. package/dist/components/sd-loading-container.js +1 -1
  129. package/dist/components/sd-loading-modal.js +1 -1
  130. package/dist/components/sd-modal-container.js +1 -1
  131. package/dist/components/sd-number-input.js +1 -1
  132. package/dist/components/sd-pagination.js +1 -1
  133. package/dist/components/sd-popover.js +1 -1
  134. package/dist/components/sd-popup.js +1 -1
  135. package/dist/components/sd-portal.js +1 -1
  136. package/dist/components/sd-select-list-item-search.js +1 -1
  137. package/dist/components/sd-select-list-item.js +1 -1
  138. package/dist/components/sd-select-listbox.js +1 -1
  139. package/dist/components/sd-select-trigger.js +1 -1
  140. package/dist/components/sd-select.js +1 -1
  141. package/dist/components/sd-switch.js +1 -1
  142. package/dist/components/sd-table.js +1 -1
  143. package/dist/components/sd-tabs.js +1 -1
  144. package/dist/components/sd-tag.js +1 -1
  145. package/dist/components/sd-tbody.js +1 -1
  146. package/dist/components/sd-td.js +1 -1
  147. package/dist/components/sd-textarea.js +1 -1
  148. package/dist/components/sd-thead.js +1 -1
  149. package/dist/components/sd-toast-container.js +1 -1
  150. package/dist/components/sd-toast.js +1 -1
  151. package/dist/components/sd-toggle.js +1 -1
  152. package/dist/components/sd-tooltip.js +1 -1
  153. package/dist/design-system/design-system.esm.js +1 -1
  154. package/dist/design-system/{p-80bde621.entry.js → p-08343698.entry.js} +1 -1
  155. package/dist/design-system/{p-bbbc4b27.entry.js → p-2151e081.entry.js} +1 -1
  156. package/dist/design-system/p-316b8a08.entry.js +1 -0
  157. package/dist/design-system/{p-f5190934.entry.js → p-4acfc5f9.entry.js} +1 -1
  158. package/dist/design-system/{p-22484d65.entry.js → p-5039241c.entry.js} +1 -1
  159. package/dist/design-system/p-52f551a1.entry.js +1 -0
  160. package/dist/design-system/{p-d726d8e7.entry.js → p-54853a2b.entry.js} +1 -1
  161. package/dist/design-system/p-5eaa12af.entry.js +1 -0
  162. package/dist/design-system/{p-827f067b.entry.js → p-646a7830.entry.js} +1 -1
  163. package/dist/design-system/{p-9d35b674.entry.js → p-717eba5f.entry.js} +1 -1
  164. package/dist/design-system/{p-8f90620b.entry.js → p-9289eb14.entry.js} +1 -1
  165. package/dist/design-system/{p-b4b20a86.entry.js → p-98e0b332.entry.js} +1 -1
  166. package/dist/design-system/{p-9124a1af.entry.js → p-9c38ee79.entry.js} +1 -1
  167. package/dist/design-system/{p-c318b762.entry.js → p-a4331364.entry.js} +1 -1
  168. package/dist/design-system/{p-683c3b91.entry.js → p-a5a586da.entry.js} +1 -1
  169. package/dist/design-system/{p-1602a5fa.entry.js → p-aa1c6202.entry.js} +1 -1
  170. package/dist/design-system/{p-8a84a4fe.entry.js → p-ae344950.entry.js} +1 -1
  171. package/dist/design-system/{p-4b15247b.entry.js → p-b291baab.entry.js} +1 -1
  172. package/dist/design-system/{p-e93dda25.entry.js → p-b63b8df9.entry.js} +1 -1
  173. package/dist/design-system/{p-3caf2c5b.entry.js → p-bdb7492c.entry.js} +1 -1
  174. package/dist/design-system/{p-cc5f5bff.entry.js → p-c47198fc.entry.js} +1 -1
  175. package/dist/design-system/{p-4b626171.entry.js → p-c995e6c3.entry.js} +1 -1
  176. package/dist/design-system/{p-9095aab6.entry.js → p-cb80327c.entry.js} +1 -1
  177. package/dist/design-system/{p-7ed5aed5.entry.js → p-ccf1a3fc.entry.js} +1 -1
  178. package/dist/design-system/{p-4e1d76b8.entry.js → p-df7c721d.entry.js} +1 -1
  179. package/dist/design-system/p-e3990243.entry.js +1 -0
  180. package/dist/design-system/{p-81aa23d1.entry.js → p-e9d1dbb5.entry.js} +1 -1
  181. package/dist/design-system/p-faf7b64c.entry.js +1 -0
  182. package/dist/esm/design-system.js +1 -1
  183. package/dist/esm/loader.js +1 -1
  184. package/dist/esm/sd-badge.entry.js +1 -1
  185. package/dist/esm/sd-barcode-input.entry.js +1 -1
  186. package/dist/esm/sd-calendar_2.entry.js +5 -5
  187. package/dist/esm/sd-callout.entry.js +1 -1
  188. package/dist/esm/sd-card.entry.js +1 -1
  189. package/dist/esm/sd-chip-input.entry.js +2 -2
  190. package/dist/esm/sd-chip.entry.js +1 -1
  191. package/dist/esm/sd-circle-progress.entry.js +1 -1
  192. package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
  193. package/dist/esm/sd-date-picker_7.entry.js +9 -9
  194. package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
  195. package/dist/esm/sd-divider.entry.js +1 -1
  196. package/dist/esm/sd-field_3.entry.js +8 -8
  197. package/dist/esm/{sd-ghost-button_2.entry.js → sd-ghost-button_3.entry.js} +265 -12
  198. package/dist/esm/sd-key-value-table.entry.js +4 -4
  199. package/dist/esm/sd-linear-progress.entry.js +1 -1
  200. package/dist/esm/sd-loading-container.entry.js +2 -2
  201. package/dist/esm/sd-pagination_4.entry.js +8 -8
  202. package/dist/esm/sd-popup.entry.js +1 -1
  203. package/dist/esm/sd-select-list-item_2.entry.js +6 -6
  204. package/dist/esm/sd-select_3.entry.js +8 -8
  205. package/dist/esm/sd-switch.entry.js +1 -1
  206. package/dist/esm/sd-table.entry.js +8 -8
  207. package/dist/esm/sd-tabs.entry.js +1 -1
  208. package/dist/esm/sd-td.entry.js +1 -1
  209. package/dist/esm/sd-toast-container.entry.js +1 -1
  210. package/dist/esm/sd-toast.entry.js +2 -2
  211. package/dist/esm/sd-toggle.entry.js +1 -1
  212. package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +7 -1
  213. package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +2 -2
  214. package/dist/types/components/sd-portal/sd-portal.d.ts +1 -0
  215. package/dist/types/components/sd-table/sd-table.d.ts +1 -1
  216. package/dist/types/components.d.ts +20 -17
  217. package/hydrate/index.js +113 -96
  218. package/hydrate/index.mjs +113 -96
  219. package/package.json +1 -1
  220. package/dist/cjs/sd-portal.cjs.entry.js +0 -243
  221. package/dist/components/p-AI4YlQmL.js +0 -1
  222. package/dist/components/p-B-4ulKJj.js +0 -1
  223. package/dist/components/p-BX5uKVOt.js +0 -1
  224. package/dist/components/p-BYTrIk62.js +0 -1
  225. package/dist/components/p-Bzo51vnP.js +0 -1
  226. package/dist/components/p-C0tkFuhj.js +0 -1
  227. package/dist/components/p-C3wv8gVC.js +0 -1
  228. package/dist/components/p-CXRFEcE_.js +0 -1
  229. package/dist/components/p-Cl5io5TH.js +0 -1
  230. package/dist/components/p-DAOeioSV.js +0 -1
  231. package/dist/components/p-DTFXzlvq.js +0 -1
  232. package/dist/components/p-Dr5Q2ZKB.js +0 -1
  233. package/dist/components/p-DyVh4pNL.js +0 -1
  234. package/dist/components/p-Ng3JMPxb.js +0 -1
  235. package/dist/components/p-qJeUUOyB.js +0 -1
  236. package/dist/design-system/p-12306783.entry.js +0 -1
  237. package/dist/design-system/p-43529bba.entry.js +0 -1
  238. package/dist/design-system/p-46da89f2.entry.js +0 -1
  239. package/dist/design-system/p-8a025f91.entry.js +0 -1
  240. package/dist/design-system/p-a263af1b.entry.js +0 -1
  241. package/dist/design-system/p-a532d998.entry.js +0 -1
  242. package/dist/esm/sd-portal.entry.js +0 -241
@@ -5,15 +5,16 @@ export class SdGhostButton {
5
5
  size = 'sm';
6
6
  intent = 'default';
7
7
  ariaLabel = '';
8
- tooltipLabel = '';
8
+ tooltipText;
9
9
  disabled = false;
10
+ hostEl;
11
+ isTooltipOpen = false;
10
12
  click;
11
13
  hasWarnedMissingAriaLabel = false;
12
14
  componentWillLoad() {
13
15
  this.size ??= 'sm';
14
16
  this.intent ??= 'default';
15
17
  this.ariaLabel ??= '';
16
- this.tooltipLabel ??= '';
17
18
  }
18
19
  handleClick = (event) => {
19
20
  if (this.disabled) {
@@ -22,6 +23,10 @@ export class SdGhostButton {
22
23
  }
23
24
  this.click.emit(event);
24
25
  };
26
+ handleMouseEnter = () => { this.isTooltipOpen = true; };
27
+ handleMouseLeave = () => { this.isTooltipOpen = false; };
28
+ handleFocus = () => { this.isTooltipOpen = true; };
29
+ handleBlur = () => { this.isTooltipOpen = false; };
25
30
  componentWillRender() {
26
31
  this.warnIfMissingAriaLabel();
27
32
  }
@@ -44,19 +49,18 @@ export class SdGhostButton {
44
49
  ? GHOST_BUTTON_DISABLED_COLORS[intent]
45
50
  : GHOST_BUTTON_CONTENT_COLORS[intent];
46
51
  const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
47
- const tooltipLabel = (this.tooltipLabel ?? '').trim();
48
- const hasTooltip = tooltipLabel.length > 0;
49
- return (h("button", { key: 'fafdeaa60205f0190cc592ac8fdacbf140e28d6c', class: {
52
+ const tooltipText = (this.tooltipText ?? '').trim();
53
+ const hasTooltip = tooltipText.length > 0;
54
+ return (h("button", { key: '59b95275f6acd737d4b0d5c2187e1d40b3a6543f', class: {
50
55
  'sd-ghost-button': true,
51
56
  'sd-ghost-button--disabled': this.disabled,
52
- 'sd-ghost-button--with-tooltip': hasTooltip,
53
57
  }, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
54
58
  '--sd-ghost-button-size': `${sizeConfig.size}px`,
55
59
  '--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[size]}px`,
56
60
  '--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
57
61
  '--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
58
62
  '--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
59
- }, onClick: this.handleClick }, hasTooltip && (h("span", { key: '57425145ccc76a0bf960377cb13ba06e37195fa3', class: "sd-ghost-button__tooltip", "aria-hidden": "true" }, h("sd-tag", { key: '9d097c96d701431ac92aa7fb305c418bb570bc16', name: "square_xs_grey", label: tooltipLabel }))), h("sd-icon", { key: '4b186b2fd33c70f4b47a2c736a53e1ac37bc2ebc', name: this.icon, size: sizeConfig.icon, color: contentColor })));
63
+ }, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && !this.disabled && (h("sd-portal", { key: 'd8ca94b6a931208c2c56eb2dbfee843935c6b666', parentRef: this.hostEl, open: true, offset: [sizeConfig.size / 2, 4], placement: "top" }, h("div", { key: '450d5dc528ad4eeb4a2a0d2920fe4553ab3f91f8', class: "sd-ghost-button__tooltip-inner", "aria-hidden": "true" }, h("sd-tag", { key: 'cc25d0e2794d3d4dc418b0c0aa1a57e4b76b56e1', name: "square_xs_grey", label: tooltipText })))), h("sd-icon", { key: 'bf9bf8bcc779011635fd34566ec7320d76f8d16b', name: this.icon, size: sizeConfig.icon, color: contentColor })));
60
64
  }
61
65
  static get is() { return "sd-ghost-button"; }
62
66
  static get originalStyleUrls() {
@@ -169,16 +173,16 @@ export class SdGhostButton {
169
173
  "attribute": "aria-label",
170
174
  "defaultValue": "''"
171
175
  },
172
- "tooltipLabel": {
176
+ "tooltipText": {
173
177
  "type": "string",
174
178
  "mutable": false,
175
179
  "complexType": {
176
180
  "original": "string",
177
- "resolved": "string",
181
+ "resolved": "string | undefined",
178
182
  "references": {}
179
183
  },
180
184
  "required": false,
181
- "optional": false,
185
+ "optional": true,
182
186
  "docs": {
183
187
  "tags": [],
184
188
  "text": ""
@@ -186,8 +190,7 @@ export class SdGhostButton {
186
190
  "getter": false,
187
191
  "setter": false,
188
192
  "reflect": false,
189
- "attribute": "tooltip-label",
190
- "defaultValue": "''"
193
+ "attribute": "tooltip-text"
191
194
  },
192
195
  "disabled": {
193
196
  "type": "boolean",
@@ -211,6 +214,11 @@ export class SdGhostButton {
211
214
  }
212
215
  };
213
216
  }
217
+ static get states() {
218
+ return {
219
+ "isTooltipOpen": {}
220
+ };
221
+ }
214
222
  static get events() {
215
223
  return [{
216
224
  "method": "click",
@@ -234,4 +242,5 @@ export class SdGhostButton {
234
242
  }
235
243
  }];
236
244
  }
245
+ static get elementRef() { return "hostEl"; }
237
246
  }
@@ -112,12 +112,12 @@ export class SdInput {
112
112
  '--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
113
113
  '--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
114
114
  };
115
- return (h("sd-field", { key: '64e7a3ba5e223341336248ba31e621b4416987fd', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'b66e286c35cc14c1eb02badcaaff24b38ff0a7b3', class: "sd-input__content" }, h("slot", { key: 'dc8b900eb2b38c18b85663bc930e810be77bdbd7', name: "prefix" }), h("input", { key: '36d35464338838aaaeff6f728020241d33a493ec', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '4f30d4a59794c0692f367d41af4311e191c5427b', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '247da41512f20d8e562f345b08bd5bc13486734b', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
115
+ return (h("sd-field", { key: 'bc95e469a741a7130b07b5e2ecbc3ce9a7d1799d', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: '63661c1e1202e729bbcaedcf83d8b034a7bf2e0b', class: "sd-input__content" }, h("slot", { key: '6c17e53e77c0e6751deb664b67b7daa471bd08cc', name: "prefix" }), h("input", { key: '1572e700b110b8d98b62ef30e72a17974288473c', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '728316a43a96d7859849ef522c06a405f7d668b5', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: 'ec89154a98d603db8eccc5db786d3330b33713ab', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
116
116
  if (this.disabled || this.readonly)
117
117
  return;
118
118
  this.internalValue = '';
119
119
  await this.formField?.sdValidate();
120
- } })), this.type === 'password' && (h("sd-ghost-button", { key: '70c596ef0072bf369bd59e2c58d0a6f8c6fd1b11', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
120
+ } })), this.type === 'password' && (h("sd-ghost-button", { key: '8dd3e79ffa2bf731850e94b9a0752aeebf13aff6', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
121
121
  if (this.disabled || this.readonly)
122
122
  return;
123
123
  this.passwordVisible = !this.passwordVisible;
@@ -14,7 +14,7 @@ sd-key-value-table .sd-key-value-table__wrapper .sd-key-value-table {
14
14
  border: 0;
15
15
  border-radius: 0;
16
16
  }
17
- sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--radius-usetop {
17
+ sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--radius-useTop {
18
18
  border-top-left-radius: 0;
19
19
  border-top-right-radius: 0;
20
20
  }
@@ -39,7 +39,7 @@ sd-key-value-table .sd-key-value-table {
39
39
  border-spacing: 0;
40
40
  overflow: hidden;
41
41
  }
42
- sd-key-value-table .sd-key-value-table.sd-key-value-table--radius-usetop {
42
+ sd-key-value-table .sd-key-value-table.sd-key-value-table--radius-useTop {
43
43
  border-top-left-radius: 0;
44
44
  border-top-right-radius: 0;
45
45
  }
@@ -13,7 +13,7 @@ export class SdKeyValueTable {
13
13
  /**
14
14
  * 테이블 border-radius 제어.
15
15
  * - 'default': 전체 radius 적용
16
- * - 'usetop': 상단 radius 0 (헤더·탭 등 하단에 붙여 쓸 때)
16
+ * - 'useTop': 상단 radius 0 (헤더·탭 등 하단에 붙여 쓸 때)
17
17
  * - 'full': 상하단 모두 radius 0 (요소 사이에 끼워 쓸 때)
18
18
  */
19
19
  radius = 'default';
@@ -191,7 +191,7 @@ export class SdKeyValueTable {
191
191
  const maxCols = this.computeMaxCols(autoSkip);
192
192
  const tableEl = (h("table", { class: {
193
193
  'sd-key-value-table': true,
194
- 'sd-key-value-table--radius-usetop': this.radius === 'usetop',
194
+ 'sd-key-value-table--radius-useTop': this.radius === 'useTop',
195
195
  'sd-key-value-table--radius-full': this.radius === 'full',
196
196
  }, style: cssVars }, h("colgroup", null, Array.from({ length: maxCols }, (_, i) => {
197
197
  if (i % 2 !== 0)
@@ -216,7 +216,7 @@ export class SdKeyValueTable {
216
216
  return tableEl;
217
217
  return (h("div", { class: {
218
218
  'sd-key-value-table__wrapper': true,
219
- 'sd-key-value-table__wrapper--radius-usetop': this.radius === 'usetop',
219
+ 'sd-key-value-table__wrapper--radius-useTop': this.radius === 'useTop',
220
220
  'sd-key-value-table__wrapper--radius-full': this.radius === 'full',
221
221
  }, style: cssVars }, tableEl, h("div", { class: "sd-key-value-table__search-panel" }, h("sd-button", { label: "\uAC80\uC0C9", name: "neutral_outline_md", onSdClick: this.handleSearchClick }))));
222
222
  }
@@ -282,15 +282,15 @@ export class SdKeyValueTable {
282
282
  "type": "string",
283
283
  "mutable": false,
284
284
  "complexType": {
285
- "original": "'default' | 'usetop' | 'full'",
286
- "resolved": "\"default\" | \"full\" | \"usetop\"",
285
+ "original": "'default' | 'useTop' | 'full'",
286
+ "resolved": "\"default\" | \"full\" | \"useTop\"",
287
287
  "references": {}
288
288
  },
289
289
  "required": false,
290
290
  "optional": false,
291
291
  "docs": {
292
292
  "tags": [],
293
- "text": "\uD14C\uC774\uBE14 border-radius \uC81C\uC5B4.\n- 'default': \uC804\uCCB4 radius \uC801\uC6A9\n- 'usetop': \uC0C1\uB2E8 radius 0 (\uD5E4\uB354\u00B7\uD0ED \uB4F1 \uD558\uB2E8\uC5D0 \uBD99\uC5EC \uC4F8 \uB54C)\n- 'full': \uC0C1\uD558\uB2E8 \uBAA8\uB450 radius 0 (\uC694\uC18C \uC0AC\uC774\uC5D0 \uB07C\uC6CC \uC4F8 \uB54C)"
293
+ "text": "\uD14C\uC774\uBE14 border-radius \uC81C\uC5B4.\n- 'default': \uC804\uCCB4 radius \uC801\uC6A9\n- 'useTop': \uC0C1\uB2E8 radius 0 (\uD5E4\uB354\u00B7\uD0ED \uB4F1 \uD558\uB2E8\uC5D0 \uBD99\uC5EC \uC4F8 \uB54C)\n- 'full': \uC0C1\uD558\uB2E8 \uBAA8\uB450 radius 0 (\uC694\uC18C \uC0AC\uC774\uC5D0 \uB07C\uC6CC \uC4F8 \uB54C)"
294
294
  },
295
295
  "getter": false,
296
296
  "setter": false,
@@ -28,7 +28,7 @@ export class SdLinearProgress {
28
28
  clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
29
29
  };
30
30
  const valueText = `${Math.round(this.clampedValue)}%`;
31
- return (h(Host, { key: '26b1e15732e289a9a37a6d3dbea24aec1ab60ffd', style: hostStyle }, h("div", { key: '5162d60390656286b56f6a96fd4b3932f399412a', class: 'sd-linear-progress__track' }, h("div", { key: 'a46b815f935b243e4b7f8988af65167e3f87b554', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (h("span", { key: 'bc91914addd5addb84c7684a1f862033950905fc', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (h("span", { key: 'c62cdc59464823286ff42fc7e97a7a255a2beeb4', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '4c7c280885c8411329f99c3fe04f5ede8b1f0708', class: 'sd-linear-progress__label' }, this.label)));
31
+ return (h(Host, { key: '1e6aa9c81d3e9516a2f986d3f209df005de38f48', style: hostStyle }, h("div", { key: '06115d6245603c7ae54d892a23074f34db203592', class: 'sd-linear-progress__track' }, h("div", { key: '353549cb3c885cef86f114830599f375bfad8e50', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (h("span", { key: '61afec063cd8f6ccaca27217fe7b599926245192', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (h("span", { key: 'fec238b0a6c73e06db3e53c019319a21b62e2836', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '668f63765b78c1047e3b850f3a17d6b2a1b9bfd4', class: 'sd-linear-progress__label' }, this.label)));
32
32
  }
33
33
  static get is() { return "sd-linear-progress"; }
34
34
  static get originalStyleUrls() {
@@ -10,10 +10,10 @@ export class SdLoadingContainer {
10
10
  this.visible = false;
11
11
  }
12
12
  render() {
13
- return (h("div", { key: '2ad17acec76cfb7ceba0629f055600a7240a67e8', class: {
13
+ return (h("div", { key: '6525405e4edafd9257be9887cca824a436b2807c', class: {
14
14
  'sd-loading-container': true,
15
15
  'sd-loading-container--visible': this.visible,
16
- }, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '1e842f21f2990b22820974147b22d859be010683', class: "sd-loading-container__backdrop" }), h("div", { key: '4a48bafd9882a22c210dd1b2ca45efc43cc0c8da', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '8eb7377230f0e8c9c482dfc9ca1313f323895d14', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: 'af2fc52b0740ee1d2cea55b688e5b4b77e80c7e3', class: "sd-loading-container__message" }, this.message)))));
16
+ }, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: 'd5f1e1e3df8b704d4a5dabe8cf7b50cc07a2699a', class: "sd-loading-container__backdrop" }), h("div", { key: '40dce62049e04a997b982ab65b47a755b6e917c7', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '9cb7a1ed52433f2d0982ceef1a298b1367a99dd4', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: 'bc581b692122ef5553e4e8eb99056b89257eb6d9', class: "sd-loading-container__message" }, this.message)))));
17
17
  }
18
18
  static get is() { return "sd-loading-container"; }
19
19
  static get originalStyleUrls() {
@@ -46,7 +46,7 @@ export class SdLoadingModal {
46
46
  '--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
47
47
  '--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
48
48
  };
49
- return (h(Host, { key: 'f40dcf4fa7e2ee7b4023be11be2b9361ec167610', style: hostStyle }, h("div", { key: '02bab8da4e09156340e8e9badef25755b57193d5', class: "sd-loading-modal" }, h("div", { key: '776833f7f85a5587dda59fe75e36ebb4b9109c3e', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: '4bb9e434a4a2d6be6dbbe2ed4e89563bf7278c65', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (h("div", { key: '5da761513fdc38e5e646f72f75072e25d5313384', class: "sd-loading-modal__button" }, h("sd-button", { key: '2bf9beb84ab4a6c1e6793db453e04b947c432d13', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
49
+ return (h(Host, { key: '12e8bb40871556dddad6bf3e9daa1703f3a29fc3', style: hostStyle }, h("div", { key: 'b1f0282746a8a4ceabd120a1c366b836edb805c1', class: "sd-loading-modal" }, h("div", { key: '496c034608b3d31557f154f77aa7cb7c2cb9558a', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: 'e0a57ee49f6fe46680a8e2393a00014edd76d36f', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (h("div", { key: 'bd0c91c279a7cd4d58a18f7bfd6e8c345ae00fcf', class: "sd-loading-modal__button" }, h("sd-button", { key: '0d03006a668333de256b2142efc9d0c374bfef45', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
50
50
  }
51
51
  static get is() { return "sd-loading-modal"; }
52
52
  static get originalStyleUrls() {
@@ -275,15 +275,15 @@ export class SdNumberInput {
275
275
  '--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
276
276
  '--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
277
277
  };
278
- return (h("sd-field", { key: 'ad212dcbaf8e19cac070e6bdfa292ca614480fbc', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'b9c403df166e2f05f815ebf3851b6517b8afbd2a', class: {
278
+ return (h("sd-field", { key: 'f322e07238237b4b609fbc3cd819cf2856eb3e63', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '8e4e7561a8b42b4a8b2e1f9559f7409d17f32c14', class: {
279
279
  'sd-number-input__content': true,
280
280
  'sd-number-input__content--no-stepper': !this.useButton,
281
- } }, this.useButton && (h("button", { key: '206f45b19bf8dd56b65ff55fb65d760e36d80ba7', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'd39cadc9a83cf7a0170144b8734a90f71d7aa9d1', name: "minus", size: iconSize, color: this.isDecrementDisabled()
281
+ } }, this.useButton && (h("button", { key: '642a5ce069d0af6347ecdbbb32c67ce2d8967cf4', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'd321af0b38dc8771ca58b52d079fe440551b4efc', name: "minus", size: iconSize, color: this.isDecrementDisabled()
282
282
  ? NUMBER_INPUT_STEPPER.icon.disabled
283
- : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '0c97309540467d56ee3415001df7a027ba581a3d', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: '9462f0c7ac028c038894ad184c7cf052e366e48c', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
283
+ : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '5b84c95d1e4e8e151c9c71b8ff6513185e97dbf4', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: '0580882231474e80471085e7d91748943caf2f73', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
284
284
  textAlign: this.useButton ? 'center' : 'right',
285
285
  ...this.inputStyle,
286
- } }), this.inputSuffix && h("span", { key: 'fdd4f4e680fe5de55cb68c848615ec6b00f00430', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: '8cdfcc46a010fb0f503b48c34290fd096403524a', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'ec8826370cd9d8c6054ca6ab216de6baa62d90db', name: "add", size: iconSize, color: this.isIncrementDisabled()
286
+ } }), this.inputSuffix && h("span", { key: 'd24110a5913272b0379f36823507c3c6ea4102be', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: '2bcf9b96f875322b269630f14bbec6c64d55f042', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '809fb4ae2f33c4812bf329abc7dc1a9f78e9dd81', name: "add", size: iconSize, color: this.isIncrementDisabled()
287
287
  ? NUMBER_INPUT_STEPPER.icon.disabled
288
288
  : NUMBER_INPUT_STEPPER.icon.default }))))));
289
289
  }
@@ -83,13 +83,13 @@ export class SdPagination {
83
83
  '--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
84
84
  '--sd-pagination-item-width': `${this.buttonWidth}px`,
85
85
  };
86
- return (h("div", { key: 'c1925f0f312cf5c18f08f158efb599e5b6f0d503', class: {
86
+ return (h("div", { key: '8a2219bbc3a17951ed66501e7246f230f0495e74', class: {
87
87
  'sd-pagination': true,
88
88
  'sd-pagination--simple': this.simple,
89
- }, style: cssVars }, h("div", { key: '1f22be76697820bf455cea5476efa84a09d03c44', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
89
+ }, style: cssVars }, h("div", { key: '7e9ddb98aff7506fc3b6053d84c1be211e3d1ff7', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
90
90
  'sd-pagination__item': true,
91
91
  'sd-pagination__item--selected': this.currentPage === n,
92
- }, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'b85b00b637152d5071db0652b6682541fbfd6ab5', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
92
+ }, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '937554ea8d3ae71da85e2c1f49d82c99658141f0', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
93
93
  }
94
94
  static get is() { return "sd-pagination"; }
95
95
  static get originalStyleUrls() {
@@ -36,7 +36,7 @@ export class SdPopup {
36
36
  ...DEFAULT_SUBMIT_BUTTON_PROPS,
37
37
  ...this.submitButtonProps,
38
38
  };
39
- return (h("div", { key: 'a978706454e3964818cc96b3a583880b952c2533', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: '1164fc29d4040d51b74ebc45fedc4fd19038e900', class: "sd-popup__header" }, h("h2", { key: '6ac1ea61e52f952f3bea4c4149222b4ff43b61db', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'fe8cebfc5ea513ae07e3a2987a8c7d9b36ed26e9', class: "sd-popup__body" }, h("slot", { key: 'f7ce06ae60cc8af6dbae2b24db4fd6b00e13d365' })), this.useFooter && (h("footer", { key: '84251ae1e48522fcf47d0081c9c0689e5fb236a6', class: "sd-popup__footer" }, h("div", { key: 'c7d4a8546bd185c812a98569cc3b2a818cbb2963', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '474e09481472b96ff4eacc66502aa06987b463b8', name: "footer-left" })), h("sd-button", { key: '2b23204ffad997f022dd06b772433ceb69950d04', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
39
+ return (h("div", { key: 'fd14b75d27d3006978ceae9287486d9716bbbf5a', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: 'ac0222dc9512b99cd1d1b4684b9775cd462f39fa', class: "sd-popup__header" }, h("h2", { key: 'a11bea9fac5828161090d09d06d6e1c54c390392', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'ced8961a853cdf014d602c235cfc839a648fb19e', class: "sd-popup__body" }, h("slot", { key: '142807fd74e8b32a31ffb7ed8f3dfdcb07a6a1ba' })), this.useFooter && (h("footer", { key: '35a6b42e82ec13890b4fa56bda5b9781adeff229', class: "sd-popup__footer" }, h("div", { key: '44b2471e0f302bd001fdf1e1d72485dff4af094f', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: 'd1c8e29b60eb7ce86639e336c99a48a67437103a', name: "footer-left" })), h("sd-button", { key: '67b0a8530cae73e344cdae2ac0cb48fa3bdf4827', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
40
40
  }
41
41
  static get is() { return "sd-popup"; }
42
42
  static get originalStyleUrls() {
@@ -7,6 +7,7 @@ export class SdPortal {
7
7
  viewportPadding = 0;
8
8
  zIndex = 998;
9
9
  open = false;
10
+ placement = 'bottom';
10
11
  close;
11
12
  container;
12
13
  wrapper;
@@ -122,10 +123,20 @@ export class SdPortal {
122
123
  const wrapperRect = this.wrapper.getBoundingClientRect();
123
124
  const availableBelow = viewport.height - parentRect.bottom - offset[1] - viewportPadding;
124
125
  const availableAbove = parentRect.top - offset[1] - viewportPadding;
125
- let top = parentRect.bottom + offset[1];
126
+ const preferTop = (this.placement ?? 'bottom') === 'top';
127
+ let top;
126
128
  let left = parentRect.left + offset[0];
127
- if (availableBelow < wrapperRect.height && availableAbove > availableBelow) {
129
+ if (preferTop) {
128
130
  top = parentRect.top - wrapperRect.height - offset[1];
131
+ if (availableAbove < wrapperRect.height && availableBelow > availableAbove) {
132
+ top = parentRect.bottom + offset[1];
133
+ }
134
+ }
135
+ else {
136
+ top = parentRect.bottom + offset[1];
137
+ if (availableBelow < wrapperRect.height && availableAbove > availableBelow) {
138
+ top = parentRect.top - wrapperRect.height - offset[1];
139
+ }
129
140
  }
130
141
  const minTop = viewportPadding;
131
142
  const maxTop = viewport.height - viewportPadding - wrapperRect.height;
@@ -224,7 +235,7 @@ export class SdPortal {
224
235
  this.close.emit();
225
236
  }
226
237
  render() {
227
- return h("slot", { key: '22e09896836d017f33a9c6b92772a00fc85f8997' });
238
+ return h("slot", { key: '911d01b26a26a4bb4d7c4a15b51755acb9615c3a' });
228
239
  }
229
240
  static get is() { return "sd-portal"; }
230
241
  static get properties() {
@@ -354,6 +365,26 @@ export class SdPortal {
354
365
  "reflect": false,
355
366
  "attribute": "open",
356
367
  "defaultValue": "false"
368
+ },
369
+ "placement": {
370
+ "type": "string",
371
+ "mutable": false,
372
+ "complexType": {
373
+ "original": "'top' | 'bottom'",
374
+ "resolved": "\"bottom\" | \"top\"",
375
+ "references": {}
376
+ },
377
+ "required": false,
378
+ "optional": false,
379
+ "docs": {
380
+ "tags": [],
381
+ "text": ""
382
+ },
383
+ "getter": false,
384
+ "setter": false,
385
+ "reflect": false,
386
+ "attribute": "placement",
387
+ "defaultValue": "'bottom'"
357
388
  }
358
389
  };
359
390
  }
@@ -71,7 +71,7 @@ export class SdSelectListItem {
71
71
  return (
72
72
  // 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
73
73
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
74
- h("div", { key: 'c964b0cf5b064c74a7e063be21350bca8124d77d', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
74
+ h("div", { key: '4322a04d65e4b2e1d82d0a6b09fdf6a57cce79ca', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
75
75
  'sd-select-list-item': true,
76
76
  'sd-select-list-item--group': isGroup,
77
77
  'sd-select-list-item--depth1-group': isDepth1Group,
@@ -81,7 +81,7 @@ export class SdSelectListItem {
81
81
  'sd-select-list-item--focused': this.isFocused,
82
82
  'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
83
83
  'sd-select-list-item--disabled': !!this.option.disabled,
84
- }, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '981e055f47aa512d18d61ae938b41942197f3088', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: 'ac34372d921afcb3eba0a51bed3dd70b4e8f1d0f', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
84
+ }, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '47ae4bbe3c2fd960dcee0f1157ae8003dc45f205', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: 'c89ba1e3ef52a1809d1252aaee5a18c40ff7cd61', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
85
85
  }
86
86
  static get is() { return "sd-select-list-item"; }
87
87
  static get originalStyleUrls() {
@@ -41,15 +41,15 @@ export class SdSelectListItemSearch {
41
41
  clearTimeout(this.debounceTimer);
42
42
  }
43
43
  render() {
44
- return (h("div", { key: '6250cee5611a36f6c5fb317d7d24abeae1ed142f', class: {
44
+ return (h("div", { key: '94215143f5e47887943c726147739cdb1a9fcbf7', class: {
45
45
  'sd-select-list-item-search': true,
46
46
  'sd-select-list-item-search--scrolled': this.isScrolled,
47
- } }, h("div", { key: 'fa48adb1406c8922b61083a19cc270f02ddab100', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '868519f09dc11fc4e9bde7a1148ce5ce666dd851', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'ff946fa2f360cd21eb785d13cb91e23f18abe05c', ref: el => {
47
+ } }, h("div", { key: '0ff422b93d0e15f2425ef760706ae0e6e2cb79f6', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: 'cc3468339c8b76103b67182309fa3aa2baf24380', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'acc468ede845d0f5890c7908311443ea2aa156cf', ref: el => {
48
48
  this.inputEl = el;
49
- }, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'e70e4c0af6e11f89d2893ae5bb28887a0ed8a5ee', type: "button", class: {
49
+ }, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'b1f1539aea4eb76458794dcb041e53c7af7b91e2', type: "button", class: {
50
50
  'sd-select-list-item-search__clear': true,
51
51
  'sd-select-list-item-search__clear--hidden': this.searchText === '',
52
- }, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '57b4af6446a565b6e1e95153e8553b1c3c363a33', name: "close", size: 12, color: "#888888" })))));
52
+ }, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'a137986e0c801a6cf95e279edeb6a9b21cf00170', name: "close", size: 12, color: "#888888" })))));
53
53
  }
54
54
  static get is() { return "sd-select-list-item-search"; }
55
55
  static get originalStyleUrls() {
@@ -351,9 +351,9 @@ export class SdSelectListbox {
351
351
  '--listbox-max-height': this.maxHeight ?? '260px',
352
352
  '--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
353
353
  };
354
- return (h("div", { key: 'fe30af2954ea5669f2071698e6ef9e2b26244d9b', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: 'aa7ce87d8c0c7163921445325121562603edd960', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'e8b5b3f73653ddc5096101f7109d427de1efa93a', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
354
+ return (h("div", { key: '77f3df8e7105f08340cf46ee0ce146d48b927228', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: 'bd79903b4799e6a074895e0ea2b0987a4775a8e0', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: '08c5e0a70837025d62b08d85b0f5044b826dc133', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
355
355
  this.listEl = el;
356
- } }, this.showSelectAll && (h("sd-select-list-item", { key: '7fbde730eca0b8234475b714ea38a4393425410e', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
356
+ } }, this.showSelectAll && (h("sd-select-list-item", { key: '918c481cc05f4839d6a133e68a90c68ddfac5fba', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
357
357
  }
358
358
  static get is() { return "sd-select-listbox"; }
359
359
  static get encapsulation() { return "shadow"; }
@@ -43,7 +43,7 @@ export class SdSelectTrigger {
43
43
  ? SELECT_COLORS.icon.disabled
44
44
  : SELECT_COLORS.icon.default,
45
45
  };
46
- return (h("div", { key: '0a929b8c0d68e25a64c352b5ea93b2e9c5f52611', ref: el => {
46
+ return (h("div", { key: '361344e040569fa6f7c2b5d16762d9b2120ca50e', ref: el => {
47
47
  this.triggerEl = el;
48
48
  }, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
49
49
  'sd-select-trigger': true,
@@ -54,7 +54,7 @@ export class SdSelectTrigger {
54
54
  e.preventDefault();
55
55
  this.handleClick();
56
56
  }
57
- }, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'd8c91e392604c462aa9228147eb18c0b2ac13851', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: '1afdcb944b30b675d4d2b31d6aeaa2ce41045d36', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
57
+ }, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '3ccbf7c188ca90dc8ba94f10ef2fa3f7cea70076', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: '623f1f83d7b8c89e64f9ec8d8e3261bd771c45b4', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
58
58
  'sd-select-trigger__icon': true,
59
59
  'sd-select-trigger__icon--open': this.isOpen,
60
60
  } }))));
@@ -254,15 +254,15 @@ export class SdSelect {
254
254
  this.closeDropdown();
255
255
  },
256
256
  };
257
- return (h("sd-field", { key: 'fced3680a535c60d5750908acf1226426e12182b', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
257
+ return (h("sd-field", { key: 'f95dc4008dd1f252f8cb41637aa817bdd4d72ba0', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
258
258
  this.hovered = true;
259
259
  }, onMouseLeave: () => {
260
260
  this.hovered = false;
261
- } }, h("div", { key: '38d53e92c022affd40bfc7951bbcdf7e02071446', class: "sd-select", ref: el => {
261
+ } }, h("div", { key: 'f12b88dc846a01fc2076242623ac1376ebc0105c', class: "sd-select", ref: el => {
262
262
  this.triggerRef = el;
263
- } }, h("sd-select-trigger", { key: '9cd9bdb89db37204f9a5c312d26277da772b1209', ref: el => {
263
+ } }, h("sd-select-trigger", { key: '8cef3403ca0a0430c3ce9f8255c98f0e28142d80', ref: el => {
264
264
  this.triggerComponentRef = el;
265
- }, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '8666dc885f3dcbae13011fd312eb72b7e6c906d9', ...portalProps }, h("sd-select-listbox", { key: '04e6dba3d2837cbef68ded80bd2f89c5bbe9dc01', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
265
+ }, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '417194938ff7aac0b22abbba621342dbe767b146', ...portalProps }, h("sd-select-listbox", { key: '0c311407fdc72f37fa7dddf48fdfbaab668a18f4', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
266
266
  }
267
267
  static get is() { return "sd-select"; }
268
268
  static get originalStyleUrls() {
@@ -41,7 +41,7 @@ export class SdSwitch {
41
41
  '--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
42
42
  '--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
43
43
  };
44
- return (h("label", { key: '8038810bfcf78ddea9ef73706689e19fdfe0b57f', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'ee4c60f379f20f56af01bafb0533e6b64bb3054a', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '8ce56df6d631b742331466ded340298a888576c7', class: "sd-switch__track" }, h("div", { key: 'e02c48a7af9e005524b5d3ba8689e99dd42555f2', class: "sd-switch__knob" })), this.label && h("span", { key: 'c1533c489ef8d0a2b8374d2eaeeb0ac743a9c507', class: "sd-switch__label" }, this.label)));
44
+ return (h("label", { key: '4746eeb0cd3b977be3bc537c30cbf58c51d3a8fc', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'f022803741f2ac787a8993a2d987eedc5d6c8f24', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: 'd8684dcb2b446885f849e6f00d773ef340e37c73', class: "sd-switch__track" }, h("div", { key: '572bd3dd7f65c9a9fd36c27b4444b0e653ae2b23', class: "sd-switch__knob" })), this.label && h("span", { key: '5228763c541a4bc0a71bfb457a4432dca01d452f', class: "sd-switch__label" }, this.label)));
45
45
  }
46
46
  static get is() { return "sd-switch"; }
47
47
  static get originalStyleUrls() {
@@ -29,7 +29,7 @@ sd-table *,
29
29
  border-radius: var(--table-radius, 8px);
30
30
  overflow: hidden;
31
31
  }
32
- .sd-table__wrapper--radius-usetop {
32
+ .sd-table__wrapper--radius-useTop {
33
33
  border-radius: 0 0 var(--table-radius, 8px) var(--table-radius, 8px);
34
34
  }
35
35
  .sd-table__wrapper--radius-full {
@@ -818,25 +818,25 @@ export class SdTable {
818
818
  '--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
819
819
  '--table-host-height': hostHeight,
820
820
  };
821
- return (h(Host, { key: '87170da602bd45011a4f03e0bb7c1ce35ac4b771', style: hostStyle }, h("div", { key: '899ad5a375b30565141fc50063620975a1c87b95', class: "sd-table__container", style: {
821
+ return (h(Host, { key: 'f5a5a2d4012f069619d110dcd9c2d5e6bd446407', style: hostStyle }, h("div", { key: '96ca8b8e4291ac077a6e1b6d3eed897777817b25', class: "sd-table__container", style: {
822
822
  '--table-width': this.width,
823
823
  '--pagination-height': `${paginationHeight}px`,
824
- } }, h("div", { key: '73db070c9018b814e9c55f605c22a13f81fefc5d', class: {
824
+ } }, h("div", { key: 'd8225691e78e5fe5341f03def8ad1d6dfb057056', class: {
825
825
  'sd-table__wrapper': true,
826
- 'sd-table__wrapper--radius-usetop': this.radius === 'usetop',
826
+ 'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
827
827
  'sd-table__wrapper--radius-full': this.radius === 'full',
828
- } }, h("div", { key: 'f52d585b54a29a6e44c3d9f5ec3a8f20f0e62e8c', class: {
828
+ } }, h("div", { key: 'fb8403bd7587a4d1fcbb77b1fe226ae0aa27be7a', class: {
829
829
  'sd-table__scroll-container': true,
830
830
  'sd-table__scroll-container--loading': this.isLoading,
831
831
  'sd-table__scroll-container--no-data': isNoData,
832
- } }, this.isLoading && (h("div", { key: 'cd9ee8de1d3a4f7abe553372342da1d3ee38b6fe', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: 'b239353973c8e6959ff9b5c3308696b4c743dbf0', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '7f219801def31f4f19f6042e85e02d9e2b366c90', class: "sd-table__no-data-header-overlay" }), h("div", { key: '2dcb2227ea402c4fcc176e3e493b88d37843f8ed', class: "sd-table__no-data" }, h("div", { key: '47b8e69f4518200cd87c79d50bfc0d505310aff9', class: "sd-table__no-data-content", ref: el => {
832
+ } }, this.isLoading && (h("div", { key: '4202fa1f03feff066f9779c5eb21c3b0c96f5cf3', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '394c52823f5c24f288d51b34daec6f228de119d7', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: 'bb1d3d8b592194006bea7cd5ab2efc587f9abc44', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'c34df2b4f35c7ea8b5bbe6cf49dc354e11dac344', class: "sd-table__no-data" }, h("div", { key: '05006aacc2c242606ba8585ee0bdea50eea1b688', class: "sd-table__no-data-content", ref: el => {
833
833
  this.noDataContentEl = el;
834
834
  if (el)
835
835
  this.syncNoDataContentObserver();
836
- } }, h("slot", { key: '3cdbaa3552166b915d0bd30a2e19324679615da4', name: "no-data" }, h("span", { key: 'dd14af39eb6658f3a1d876745f80fcbe13529846' }, this.resolvedNoDataLabel)))))), h("table", { key: 'f11b8e0e7bb53f3ceda805ecc2b0911ea83cb79f', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
836
+ } }, h("slot", { key: 'ad707be9bc8062da5a6236c9833176adb7b95851', name: "no-data" }, h("span", { key: '3aa57b547e05bd455829cff770c435af2ac78383' }, this.resolvedNoDataLabel)))))), h("table", { key: '6b2958f14d9708a49e3cbaff7cdb3653f7267e1c', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
837
837
  this.pagination.rowsPerPage > 0 &&
838
838
  this.rowCount > 0 &&
839
- !this.useVirtualScroll && (h("div", { key: 'ac990f82d327f1dbfd5fc8e395b348b228c7b724', class: "sd-table__pagination" }, h("sd-pagination", { key: '724c0b1f72efdaae442dde22391e0035c9ddf8f9', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: 'b5fcde2f53f9d5b497e5da3b4099f9d56f67c245', value: this.useInternalPagination
839
+ !this.useVirtualScroll && (h("div", { key: '950e80fdb6c06af2b4423e3b0c75ded7cfe4a298', class: "sd-table__pagination" }, h("sd-pagination", { key: '3257c7b631c262c9ddadbd23c83f2eb43f9bf7f5', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '7bb00889139aa7dbee4723efac511753afcb15e9', value: this.useInternalPagination
840
840
  ? this.innerRowsPerPage
841
841
  : this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
842
842
  if (!this.isRowsPerPageValue(e.detail))
@@ -1099,8 +1099,8 @@ export class SdTable {
1099
1099
  "type": "string",
1100
1100
  "mutable": false,
1101
1101
  "complexType": {
1102
- "original": "'default' | 'usetop' | 'full'",
1103
- "resolved": "\"default\" | \"full\" | \"usetop\"",
1102
+ "original": "'default' | 'useTop' | 'full'",
1103
+ "resolved": "\"default\" | \"full\" | \"useTop\"",
1104
1104
  "references": {}
1105
1105
  },
1106
1106
  "required": false,
@@ -45,9 +45,9 @@ export class SdTbody {
45
45
  }
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: '1f9dba3a06233de0457c6fe7d2df39e0e406fb30', slot: `${this.tableId}-body` }, h("tbody", { key: '758d795512ff546ec23863a1b9a0940f5d0f445a', class: { tbody: true } }, [
48
+ return (h(Host, { key: 'ae49b4a7e18afd3d44d07e7da6c3663a6a043796', slot: `${this.tableId}-body` }, h("tbody", { key: '7275cf9214f6917c5437b8a72a06cde3ca48dc8c', class: { tbody: true } }, [
49
49
  this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
50
- h("slot", { key: 'cd9755c4f082478b1e75a6efcf9b4e7a9a9767b4' }),
50
+ h("slot", { key: '6455be878c24df5371e094fbfe9687ddb992e0e6' }),
51
51
  this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
52
52
  ])));
53
53
  }
@@ -150,7 +150,7 @@ export class SdTd {
150
150
  }
151
151
  }
152
152
  render() {
153
- return (h(Host, { key: '02464050ab6179a4d19bc5885aff8c2690cc3dd6', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: 'a4cde26644aea2e1a99690c407b7020b20bd3981' })));
153
+ return (h(Host, { key: 'ed5419d9190514381bb8fe43a8588c7d88983527', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '308d16388614375c94bd4c5efc8e173b56b4af2a' })));
154
154
  }
155
155
  static get is() { return "sd-td"; }
156
156
  static get originalStyleUrls() {
@@ -158,16 +158,16 @@ export class SdThead {
158
158
  '--table-border-color': TABLE_BORDER.color,
159
159
  '--table-border-width': `${TABLE_BORDER.width}px`,
160
160
  };
161
- return (h(Host, { key: '1e352d3996dc6cd60acd20c22c8c426edabaa9ea', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: 'd76dbdd5b03096197fe09d69c198ab3a5892106c', class: {
161
+ return (h(Host, { key: 'c25f6f9704c079d4cb93da7e65c8c15b6dedcb67', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: 'd91019378caafa2ec32dfa838eaa4d1fe815fb0d', class: {
162
162
  'thead': true,
163
163
  'thead--sticky': this._stickyHeader,
164
- } }, h("tr", { key: 'fb0c1f8ff93ddb8682b07e9b4f55eaf56b1be41a', class: "tr" }, this._selectable && (h("th", { key: 'a53b9771dbec3ef7f3888bf9fc9393c683356c50', class: {
164
+ } }, h("tr", { key: '84e581f5c564693d356f56525f57d6b1da211442', class: "tr" }, this._selectable && (h("th", { key: 'fb92e978229c32d560f46af4e90e0980c9c0a213', class: {
165
165
  'th': true,
166
166
  'th--selected': true,
167
167
  'sticky-left': true,
168
168
  'sticky-left-edge': stickyLeftCount === 0,
169
169
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
170
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '8dc233b34b68a5daca91a60364ec8faffeb4b21d', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), h("div", { key: 'bfc496c2468f3f81c1db4ffe70584a9229bd3512', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
170
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '157f59b56a4ef2a8529318c8beaf6f59b91e12f0', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), h("div", { key: 'b65e099ebe4940b26cc251961e66a375400f2379', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
171
171
  'th': true,
172
172
  [`${col.thClass}`]: Boolean(col.thClass),
173
173
  'sticky-left': true,