globuswebcomponents 0.9.5 → 0.9.6

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 (614) hide show
  1. package/dist/cjs/gb-avatar-add-button.cjs.entry.js +1 -1
  2. package/dist/cjs/gb-avatar-dropdown.cjs.entry.js +1 -1
  3. package/dist/cjs/gb-avatar-group.cjs.entry.js +2 -2
  4. package/dist/cjs/gb-avatar-label-group.cjs.entry.js +2 -2
  5. package/dist/cjs/gb-avatar-profile-photo.cjs.entry.js +2 -2
  6. package/dist/cjs/{gb-avatar_40.cjs.entry.js → gb-avatar_44.cjs.entry.js} +396 -84
  7. package/dist/cjs/gb-avatar_44.cjs.entry.js.map +1 -0
  8. package/dist/cjs/gb-checkbox-group-item.cjs.entry.js +1 -1
  9. package/dist/cjs/gb-checkbox-group.cjs.entry.js +1 -1
  10. package/dist/cjs/gb-export-dropdown-item_2.cjs.entry.js +1 -1
  11. package/dist/cjs/gb-export-dropdown.cjs.entry.js +2 -2
  12. package/dist/cjs/gb-export-sub-dropdown-item.cjs.entry.js +1 -1
  13. package/dist/cjs/gb-help-dropdown.cjs.entry.js +2 -2
  14. package/dist/cjs/gb-megainput-field.cjs.entry.js +3 -3
  15. package/dist/cjs/gb-pagination-dot-group.cjs.entry.js +2 -2
  16. package/dist/cjs/gb-progress-circle.cjs.entry.js +2 -2
  17. package/dist/cjs/gb-rich-text.cjs.entry.js +2 -2
  18. package/dist/cjs/gb-scrollbar.cjs.entry.js +2 -2
  19. package/dist/cjs/gb-textarea-input-field.cjs.entry.js +1 -1
  20. package/dist/cjs/gb-toggle.cjs.entry.js +2 -2
  21. package/dist/cjs/gb-token-field.cjs.entry.js +2 -2
  22. package/dist/cjs/gb-verification-code-field.cjs.entry.js +3 -3
  23. package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +1 -1
  24. package/dist/cjs/gb-wysiwyg-toolbar.cjs.entry.js +1 -1
  25. package/dist/cjs/gb-wysiwyg-tooltip.cjs.entry.js +1 -1
  26. package/dist/cjs/globuscomponents.cjs.js +2 -2
  27. package/dist/cjs/{index-97d4dbd5.js → index-a9259aac.js} +5 -2
  28. package/dist/cjs/index-a9259aac.js.map +1 -0
  29. package/dist/cjs/loader.cjs.js +2 -2
  30. package/dist/cjs/{reusableModels-40cbefe2.js → reusableModels-e50f3440.js} +1 -2
  31. package/dist/cjs/reusableModels-e50f3440.js.map +1 -0
  32. package/dist/cjs/test-input-tag.cjs.entry.js +4 -4
  33. package/dist/collection/assets/NG.svg +14 -14
  34. package/dist/collection/assets/Tooltip.svg +4 -4
  35. package/dist/collection/assets/alert-02.svg +6 -6
  36. package/dist/collection/assets/arrow-left-02.svg +5 -5
  37. package/dist/collection/assets/arrow-right-02.svg +5 -5
  38. package/dist/collection/assets/arrow-turn-backward.svg +5 -5
  39. package/dist/collection/assets/bar.svg +3 -3
  40. package/dist/collection/assets/bar_white.svg +3 -3
  41. package/dist/collection/assets/calendar-02.svg +6 -6
  42. package/dist/collection/assets/cancel-01.svg +5 -5
  43. package/dist/collection/assets/checkbox disabled_indeterminate.svg +5 -5
  44. package/dist/collection/assets/checkcircle default_checked.svg +5 -5
  45. package/dist/collection/assets/checkcircle default_unchecked.svg +3 -3
  46. package/dist/collection/assets/checkcircle disabled_checked.svg +5 -5
  47. package/dist/collection/assets/checkcircle disabled_unchecked.svg +3 -3
  48. package/dist/collection/assets/checked_indeterminate.svg +5 -5
  49. package/dist/collection/assets/circle.svg +6 -6
  50. package/dist/collection/assets/column-insert.svg +5 -5
  51. package/dist/collection/assets/company.svg +4 -4
  52. package/dist/collection/assets/copy-01.svg +5 -5
  53. package/dist/collection/assets/dashboard-square-03.svg +14 -14
  54. package/dist/collection/assets/database-sync.svg +6 -6
  55. package/dist/collection/assets/database.svg +6 -6
  56. package/dist/collection/assets/default-file-icons/default_csv.svg +6 -0
  57. package/dist/collection/assets/default-file-icons/default_doc.svg +6 -0
  58. package/dist/collection/assets/default-file-icons/default_docx.svg +6 -0
  59. package/dist/collection/assets/default-file-icons/default_jpeg.svg +6 -0
  60. package/dist/collection/assets/default-file-icons/default_jpg.svg +6 -0
  61. package/dist/collection/assets/default-file-icons/default_mp3.svg +6 -0
  62. package/dist/collection/assets/default-file-icons/default_mp4.svg +6 -0
  63. package/dist/collection/assets/default-file-icons/default_pdf.svg +6 -0
  64. package/dist/collection/assets/default-file-icons/default_ppt.svg +6 -0
  65. package/dist/collection/assets/default-file-icons/default_pptx.svg +6 -0
  66. package/dist/collection/assets/default-file-icons/default_rar.svg +6 -0
  67. package/dist/collection/assets/default-file-icons/default_svg.svg +6 -0
  68. package/dist/collection/assets/default-file-icons/default_txt.svg +6 -0
  69. package/dist/collection/assets/default-file-icons/default_xls.svg +6 -0
  70. package/dist/collection/assets/default-file-icons/default_xlsx.svg +6 -0
  71. package/dist/collection/assets/default-file-icons/default_zip.svg +6 -0
  72. package/dist/collection/assets/default_checked.svg +5 -5
  73. package/dist/collection/assets/default_unchecked.svg +3 -3
  74. package/dist/collection/assets/delete-02.svg +3 -3
  75. package/dist/collection/assets/disabled.svg +4 -4
  76. package/dist/collection/assets/disabled_checked.svg +5 -5
  77. package/dist/collection/assets/disabled_indeterminate.svg +5 -5
  78. package/dist/collection/assets/exchange-01.svg +5 -5
  79. package/dist/collection/assets/file-verified.svg +6 -6
  80. package/dist/collection/assets/filter-horizontal.svg +9 -9
  81. package/dist/collection/assets/flag-01.svg +5 -5
  82. package/dist/collection/assets/globus_bank_logo.svg +11 -11
  83. package/dist/collection/assets/globus_bank_logo_blue.svg +13 -13
  84. package/dist/collection/assets/globus_bank_logo_white.svg +13 -13
  85. package/dist/collection/assets/gray-file-icons/gray_csv.svg +5 -0
  86. package/dist/collection/assets/gray-file-icons/gray_doc.svg +5 -0
  87. package/dist/collection/assets/gray-file-icons/gray_docx.svg +5 -0
  88. package/dist/collection/assets/gray-file-icons/gray_jpeg.svg +5 -0
  89. package/dist/collection/assets/gray-file-icons/gray_jpg.svg +5 -0
  90. package/dist/collection/assets/gray-file-icons/gray_mp3.svg +5 -0
  91. package/dist/collection/assets/gray-file-icons/gray_mp4.svg +5 -0
  92. package/dist/collection/assets/gray-file-icons/gray_pdf.svg +5 -0
  93. package/dist/collection/assets/gray-file-icons/gray_ppt.svg +5 -0
  94. package/dist/collection/assets/gray-file-icons/gray_pptx.svg +5 -0
  95. package/dist/collection/assets/gray-file-icons/gray_rar.svg +5 -0
  96. package/dist/collection/assets/gray-file-icons/gray_svg.svg +5 -0
  97. package/dist/collection/assets/gray-file-icons/gray_txt.svg +5 -0
  98. package/dist/collection/assets/gray-file-icons/gray_xls.svg +5 -0
  99. package/dist/collection/assets/gray-file-icons/gray_xlsx.svg +5 -0
  100. package/dist/collection/assets/gray-file-icons/gray_zip.svg +5 -0
  101. package/dist/collection/assets/help-circle.svg +5 -5
  102. package/dist/collection/assets/laptop.svg +6 -6
  103. package/dist/collection/assets/mail-02.svg +5 -5
  104. package/dist/collection/assets/no_notification_frame.svg +139 -139
  105. package/dist/collection/assets/notification-03.svg +5 -5
  106. package/dist/collection/assets/notification_background_pattern.svg +52 -52
  107. package/dist/collection/assets/notification_illustration.svg +80 -80
  108. package/dist/collection/assets/pattern_wrapper.svg +1359 -1359
  109. package/dist/collection/assets/plus_sign.svg +3 -3
  110. package/dist/collection/assets/radiobutton default_checked.svg +4 -4
  111. package/dist/collection/assets/radiobutton default_unchecked.svg +3 -3
  112. package/dist/collection/assets/radiobutton disabled_checked.svg +4 -4
  113. package/dist/collection/assets/radiobutton disabled_unchecked.svg +3 -3
  114. package/dist/collection/assets/sample.svg +5 -5
  115. package/dist/collection/assets/search-01.svg +3 -3
  116. package/dist/collection/assets/shuffle-square.svg +6 -6
  117. package/dist/collection/assets/solid-file-icons/solid_csv.svg +5 -0
  118. package/dist/collection/assets/solid-file-icons/solid_doc.svg +5 -0
  119. package/dist/collection/assets/solid-file-icons/solid_docx.svg +5 -0
  120. package/dist/collection/assets/solid-file-icons/solid_jpeg.svg +5 -0
  121. package/dist/collection/assets/solid-file-icons/solid_jpg.svg +5 -0
  122. package/dist/collection/assets/solid-file-icons/solid_mp3.svg +5 -0
  123. package/dist/collection/assets/solid-file-icons/solid_mp4.svg +5 -0
  124. package/dist/collection/assets/solid-file-icons/solid_pdf.svg +5 -0
  125. package/dist/collection/assets/solid-file-icons/solid_ppt.svg +5 -0
  126. package/dist/collection/assets/solid-file-icons/solid_pptx.svg +5 -0
  127. package/dist/collection/assets/solid-file-icons/solid_rar.svg +5 -0
  128. package/dist/collection/assets/solid-file-icons/solid_svg.svg +5 -0
  129. package/dist/collection/assets/solid-file-icons/solid_txt.svg +5 -0
  130. package/dist/collection/assets/solid-file-icons/solid_xls.svg +5 -0
  131. package/dist/collection/assets/solid-file-icons/solid_xlsx.svg +5 -0
  132. package/dist/collection/assets/solid-file-icons/solid_zip.svg +5 -0
  133. package/dist/collection/assets/square-arrow-data-transfer-diagonal.svg +6 -6
  134. package/dist/collection/assets/thumbs-up.svg +8 -8
  135. package/dist/collection/assets/user-group.svg +10 -10
  136. package/dist/collection/components/gb-button/readme.md +48 -48
  137. package/dist/collection/components/gb-file-type-icon/gb-file-type-icon.js +56 -1
  138. package/dist/collection/components/gb-file-type-icon/gb-file-type-icon.js.map +1 -1
  139. package/dist/collection/components/gb-file-upload/gb-file-upload.css +10 -4
  140. package/dist/collection/components/gb-file-upload/gb-file-upload.js +268 -10
  141. package/dist/collection/components/gb-file-upload/gb-file-upload.js.map +1 -1
  142. package/dist/collection/components/gb-file-upload-item-base/gb-file-upload-item-base.css +32 -5
  143. package/dist/collection/components/gb-file-upload-item-base/gb-file-upload-item-base.js +116 -14
  144. package/dist/collection/components/gb-file-upload-item-base/gb-file-upload-item-base.js.map +1 -1
  145. package/dist/collection/components/gb-header/gb-header.js +1 -1
  146. package/dist/collection/components/gb-header-icon/gb-header-icon.js +4 -4
  147. package/dist/collection/components/gb-help-dropdown/gb-help-dropdown.js +1 -1
  148. package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js +1 -1
  149. package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +1 -1
  150. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.css +7 -9
  151. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +46 -7
  152. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
  153. package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js +2 -2
  154. package/dist/collection/components/gb-input-field/gb-input-field.css +52 -13
  155. package/dist/collection/components/gb-input-field/gb-input-field.js +41 -13
  156. package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
  157. package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js +2 -2
  158. package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
  159. package/dist/collection/components/gb-notification-pane/gb-notification-pane.js +3 -3
  160. package/dist/collection/components/gb-pagination/gb-pagination.css +1 -1
  161. package/dist/collection/components/gb-pagination/gb-pagination.js +1 -1
  162. package/dist/collection/components/gb-pagination/gb-pagination.js.map +1 -1
  163. package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.css +13 -2
  164. package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js +38 -2
  165. package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js.map +1 -1
  166. package/dist/collection/components/gb-pagination-dot-group/gb-pagination-dot-group.js +1 -1
  167. package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js +1 -1
  168. package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js +1 -1
  169. package/dist/collection/components/gb-password-button/gb-password-button.js +1 -1
  170. package/dist/collection/components/gb-progress-bar/gb-progress-bar.css +4 -1
  171. package/dist/collection/components/gb-progress-bar/gb-progress-bar.js +1 -22
  172. package/dist/collection/components/gb-progress-bar/gb-progress-bar.js.map +1 -1
  173. package/dist/collection/components/gb-progress-circle/gb-progress-circle.js +1 -1
  174. package/dist/collection/components/gb-rich-text/gb-rich-text.js +1 -1
  175. package/dist/collection/components/gb-scrollbar/gb-scrollbar.js +1 -1
  176. package/dist/collection/components/gb-side-bar-item/gb-side-bar-item.js +1 -1
  177. package/dist/collection/components/gb-sidebar/gb-sidebar.js +1 -1
  178. package/dist/collection/components/gb-slider/gb-slider.js +130 -21
  179. package/dist/collection/components/gb-slider/gb-slider.js.map +1 -1
  180. package/dist/collection/components/gb-slider-control-handle/gb-slider-control-handle.css +3 -3
  181. package/dist/collection/components/gb-slider-control-handle/gb-slider-control-handle.js +8 -8
  182. package/dist/collection/components/gb-slider-control-handle/gb-slider-control-handle.js.map +1 -1
  183. package/dist/collection/components/gb-status-indicator/gb-status-indicator.js +1 -1
  184. package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.css +4 -0
  185. package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js +8 -4
  186. package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js.map +1 -1
  187. package/dist/collection/components/gb-tag/gb-tag.js +1 -1
  188. package/dist/collection/components/gb-tag-checkbox/gb-tag-checkbox.js +1 -1
  189. package/dist/collection/components/gb-tag-close/gb-tag-close.js +1 -1
  190. package/dist/collection/components/gb-tag-count/gb-tag-count.js +1 -1
  191. package/dist/collection/components/gb-toast/gb-toast.js +1 -1
  192. package/dist/collection/components/gb-toast-button/gb-toast-button.js +1 -1
  193. package/dist/collection/components/gb-toggle/gb-toggle.js +1 -1
  194. package/dist/collection/components/gb-toggle-base/gb-toggle-base.js +2 -2
  195. package/dist/collection/components/gb-token-field/gb-token-field.js +1 -1
  196. package/dist/collection/components/gb-tooltip/gb-tooltip.js +3 -3
  197. package/dist/collection/components/gb-tooltip/gb-tooltip.js.map +1 -1
  198. package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.js +2 -2
  199. package/dist/collection/components/test-input-tag/test-input-tag.js +2 -2
  200. package/dist/collection/models/reusableModels.js +0 -1
  201. package/dist/collection/models/reusableModels.js.map +1 -1
  202. package/dist/components/gb-avatar-add-button.js +1 -1
  203. package/dist/components/gb-avatar-contrast-inner-border.js +1 -1
  204. package/dist/components/gb-avatar-dropdown.js +8 -8
  205. package/dist/components/gb-avatar-group.js +7 -7
  206. package/dist/components/gb-avatar-label-group.js +1 -1
  207. package/dist/components/gb-avatar-profile-photo.js +5 -5
  208. package/dist/components/gb-avatar.js +1 -1
  209. package/dist/components/gb-badge-close.js +1 -1
  210. package/dist/components/gb-badge.js +1 -1
  211. package/dist/components/gb-btn.js +1 -1
  212. package/dist/components/gb-button-close.js +1 -1
  213. package/dist/components/gb-button.js +1 -1
  214. package/dist/components/gb-carousel-arrow.js +1 -1
  215. package/dist/components/gb-checkbox-base.js +1 -1
  216. package/dist/components/gb-checkbox-group-item.js +1 -1
  217. package/dist/components/gb-checkbox-group.js +8 -8
  218. package/dist/components/gb-checkbox.js +1 -1
  219. package/dist/components/gb-collapse-button.js +1 -1
  220. package/dist/components/gb-dropdown-items-with-shortcut.js +1 -1
  221. package/dist/components/gb-export-dropdown-item.js +1 -1
  222. package/dist/components/gb-export-dropdown.js +5 -5
  223. package/dist/components/gb-export-sub-dropdown-item.js +1 -1
  224. package/dist/components/gb-export-sub-dropdown.js +1 -1
  225. package/dist/components/gb-file-type-icon.js +1 -30
  226. package/dist/components/gb-file-type-icon.js.map +1 -1
  227. package/dist/components/gb-file-upload-item-base.js +1 -1
  228. package/dist/components/gb-file-upload.js +190 -19
  229. package/dist/components/gb-file-upload.js.map +1 -1
  230. package/dist/components/gb-header-icon.js +1 -1
  231. package/dist/components/gb-header.js +7 -7
  232. package/dist/components/gb-help-dropdown.js +5 -5
  233. package/dist/components/gb-help-tooltip.js +1 -1
  234. package/dist/components/gb-horizontal-tabs.js +8 -8
  235. package/dist/components/gb-input-dropdown-menu-item.js +1 -1
  236. package/dist/components/gb-input-dropdown.js +1 -1
  237. package/dist/components/gb-input-field.js +42 -31
  238. package/dist/components/gb-input-field.js.map +1 -1
  239. package/dist/components/gb-megainput-field.js +1 -1
  240. package/dist/components/gb-notification-content.js +1 -1
  241. package/dist/components/gb-notification-pane.js +6 -6
  242. package/dist/components/gb-pagination-button-group-base.js +1 -1
  243. package/dist/components/gb-pagination-dot-group.js +2 -2
  244. package/dist/components/gb-pagination-dot-indicator.js +2 -2
  245. package/dist/components/gb-pagination-number-base.js +1 -1
  246. package/dist/components/gb-pagination.js +19 -19
  247. package/dist/components/gb-pagination.js.map +1 -1
  248. package/dist/components/gb-password-button.js +1 -1
  249. package/dist/components/gb-progress-bar.js +1 -1
  250. package/dist/components/gb-progress-circle.js +2 -2
  251. package/dist/components/gb-rich-text.js +17 -17
  252. package/dist/components/gb-scrollbar.js +2 -2
  253. package/dist/components/gb-side-bar-item.js +1 -1
  254. package/dist/components/gb-sidebar.js +10 -10
  255. package/dist/components/gb-slider-control-handle.js +1 -1
  256. package/dist/components/gb-slider.js +45 -22
  257. package/dist/components/gb-slider.js.map +1 -1
  258. package/dist/components/gb-status-indicator.js +1 -1
  259. package/dist/components/gb-tab-button-base.js +1 -1
  260. package/dist/components/gb-tag-checkbox.js +1 -1
  261. package/dist/components/gb-tag-close.js +1 -1
  262. package/dist/components/gb-tag-count.js +1 -1
  263. package/dist/components/gb-tag.js +1 -1
  264. package/dist/components/gb-textarea-input-field.js +1 -1
  265. package/dist/components/gb-toast-button.js +1 -1
  266. package/dist/components/gb-toast.js +6 -6
  267. package/dist/components/gb-toggle-base.js +1 -1
  268. package/dist/components/gb-toggle.js +3 -3
  269. package/dist/components/gb-token-field.js +3 -3
  270. package/dist/components/gb-tooltip.js +1 -1
  271. package/dist/components/gb-verification-code-field.js +4 -4
  272. package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
  273. package/dist/components/gb-wysiwyg-toolbar.js +1 -1
  274. package/dist/components/gb-wysiwyg-tooltip.js +2 -2
  275. package/dist/components/index.js +1 -1
  276. package/dist/components/{p-172c2487.js → p-0880c70c.js} +3 -3
  277. package/dist/components/{p-172c2487.js.map → p-0880c70c.js.map} +1 -1
  278. package/dist/components/{p-2e839805.js → p-144bdbdc.js} +3 -3
  279. package/dist/components/{p-2e839805.js.map → p-144bdbdc.js.map} +1 -1
  280. package/dist/components/{p-b8cc4ced.js → p-14a5304b.js} +21 -5
  281. package/dist/components/p-14a5304b.js.map +1 -0
  282. package/dist/components/{p-6bc60646.js → p-18a465ff.js} +6 -6
  283. package/dist/components/{p-6bc60646.js.map → p-18a465ff.js.map} +1 -1
  284. package/dist/components/{p-4d14d191.js → p-26de186a.js} +4 -4
  285. package/dist/components/{p-4d14d191.js.map → p-26de186a.js.map} +1 -1
  286. package/dist/components/{p-d287e4f9.js → p-2ee8e211.js} +3 -3
  287. package/dist/components/{p-d287e4f9.js.map → p-2ee8e211.js.map} +1 -1
  288. package/dist/components/p-3ef09e09.js +39 -0
  289. package/dist/components/p-3ef09e09.js.map +1 -0
  290. package/dist/components/{p-4f31ae97.js → p-47052b60.js} +1 -2
  291. package/dist/components/p-47052b60.js.map +1 -0
  292. package/dist/components/{p-7a028adc.js → p-47f3f4e8.js} +3 -3
  293. package/dist/components/{p-7a028adc.js.map → p-47f3f4e8.js.map} +1 -1
  294. package/dist/components/{p-4fc019fa.js → p-4a9d5d98.js} +2 -2
  295. package/dist/components/{p-4fc019fa.js.map → p-4a9d5d98.js.map} +1 -1
  296. package/dist/components/{p-33797063.js → p-4aa73a61.js} +5 -5
  297. package/dist/components/{p-33797063.js.map → p-4aa73a61.js.map} +1 -1
  298. package/dist/components/{p-79b9747d.js → p-5512321a.js} +4 -4
  299. package/dist/components/{p-79b9747d.js.map → p-5512321a.js.map} +1 -1
  300. package/dist/components/{p-8ec4b241.js → p-5be3a868.js} +16 -12
  301. package/dist/components/p-5be3a868.js.map +1 -0
  302. package/dist/components/{p-a5c62415.js → p-5c90cd54.js} +2 -2
  303. package/dist/components/{p-a5c62415.js.map → p-5c90cd54.js.map} +1 -1
  304. package/dist/components/{p-b3fba286.js → p-60a8f11a.js} +3 -3
  305. package/dist/components/{p-b3fba286.js.map → p-60a8f11a.js.map} +1 -1
  306. package/dist/components/{p-bf85c0fa.js → p-6287f38c.js} +6 -6
  307. package/dist/components/{p-bf85c0fa.js.map → p-6287f38c.js.map} +1 -1
  308. package/dist/components/{p-efc36361.js → p-6d45d115.js} +5 -5
  309. package/dist/components/{p-efc36361.js.map → p-6d45d115.js.map} +1 -1
  310. package/dist/components/{p-fe051273.js → p-6e7c1b3f.js} +9 -9
  311. package/dist/components/{p-fe051273.js.map → p-6e7c1b3f.js.map} +1 -1
  312. package/dist/components/{p-97d4cbd6.js → p-6ee31d8b.js} +2 -2
  313. package/dist/components/{p-97d4cbd6.js.map → p-6ee31d8b.js.map} +1 -1
  314. package/dist/components/{p-61d6b9a4.js → p-70b439f9.js} +4 -4
  315. package/dist/components/p-70b439f9.js.map +1 -0
  316. package/dist/components/{p-52a05610.js → p-75424aa6.js} +6 -8
  317. package/dist/components/p-75424aa6.js.map +1 -0
  318. package/dist/components/{p-8ea8fb2e.js → p-787c9757.js} +40 -22
  319. package/dist/components/p-787c9757.js.map +1 -0
  320. package/dist/components/{p-e9099a82.js → p-7aa28b49.js} +7 -7
  321. package/dist/components/p-7aa28b49.js.map +1 -0
  322. package/dist/components/{p-4e87a1a4.js → p-8efbc7c0.js} +9 -9
  323. package/dist/components/{p-4e87a1a4.js.map → p-8efbc7c0.js.map} +1 -1
  324. package/dist/components/{p-bc05d524.js → p-9ae39411.js} +3 -3
  325. package/dist/components/{p-bc05d524.js.map → p-9ae39411.js.map} +1 -1
  326. package/dist/components/{p-58074dfd.js → p-a112004b.js} +3 -3
  327. package/dist/components/{p-58074dfd.js.map → p-a112004b.js.map} +1 -1
  328. package/dist/components/{p-e1b8bc90.js → p-ad960c29.js} +5 -2
  329. package/dist/components/p-ad960c29.js.map +1 -0
  330. package/dist/components/{p-0ab66ef0.js → p-af6c2dc5.js} +3 -3
  331. package/dist/components/{p-0ab66ef0.js.map → p-af6c2dc5.js.map} +1 -1
  332. package/dist/components/{p-f5df341d.js → p-b02e796f.js} +3 -3
  333. package/dist/components/{p-f5df341d.js.map → p-b02e796f.js.map} +1 -1
  334. package/dist/components/{p-2dd93b0d.js → p-b31412be.js} +2 -2
  335. package/dist/components/{p-2dd93b0d.js.map → p-b31412be.js.map} +1 -1
  336. package/dist/components/{p-45a185a6.js → p-bb61710a.js} +2 -2
  337. package/dist/components/{p-45a185a6.js.map → p-bb61710a.js.map} +1 -1
  338. package/dist/components/{p-6a00453d.js → p-bd1c23b9.js} +3 -3
  339. package/dist/components/{p-6a00453d.js.map → p-bd1c23b9.js.map} +1 -1
  340. package/dist/components/{p-a4ac9229.js → p-c5391fb7.js} +4 -4
  341. package/dist/components/{p-a4ac9229.js.map → p-c5391fb7.js.map} +1 -1
  342. package/dist/components/{p-15057414.js → p-c66ad664.js} +2 -2
  343. package/dist/components/{p-15057414.js.map → p-c66ad664.js.map} +1 -1
  344. package/dist/components/{p-677c05f3.js → p-c7c9cb57.js} +16 -16
  345. package/dist/components/{p-677c05f3.js.map → p-c7c9cb57.js.map} +1 -1
  346. package/dist/components/{p-56f43e54.js → p-cb100f8e.js} +2 -2
  347. package/dist/components/{p-56f43e54.js.map → p-cb100f8e.js.map} +1 -1
  348. package/dist/components/{p-cb12d812.js → p-cfbe014d.js} +4 -4
  349. package/dist/components/{p-cb12d812.js.map → p-cfbe014d.js.map} +1 -1
  350. package/dist/components/{p-6c168218.js → p-da349f94.js} +3 -3
  351. package/dist/components/{p-6c168218.js.map → p-da349f94.js.map} +1 -1
  352. package/dist/components/{p-9447c1aa.js → p-db66e3e7.js} +7 -7
  353. package/dist/components/{p-9447c1aa.js.map → p-db66e3e7.js.map} +1 -1
  354. package/dist/components/{p-9b0f7f28.js → p-db744951.js} +3 -3
  355. package/dist/components/{p-9b0f7f28.js.map → p-db744951.js.map} +1 -1
  356. package/dist/components/{p-23eeb711.js → p-e26f2275.js} +5 -5
  357. package/dist/components/{p-23eeb711.js.map → p-e26f2275.js.map} +1 -1
  358. package/dist/components/{p-dae08e66.js → p-e673b425.js} +9 -9
  359. package/dist/components/{p-dae08e66.js.map → p-e673b425.js.map} +1 -1
  360. package/dist/components/{p-66ae8c03.js → p-ebbbdd33.js} +8 -8
  361. package/dist/components/{p-66ae8c03.js.map → p-ebbbdd33.js.map} +1 -1
  362. package/dist/components/{p-4710b26e.js → p-ff58b603.js} +28 -21
  363. package/dist/components/p-ff58b603.js.map +1 -0
  364. package/dist/components/test-input-tag.js +14 -14
  365. package/dist/esm/gb-avatar-add-button.entry.js +1 -1
  366. package/dist/esm/gb-avatar-dropdown.entry.js +1 -1
  367. package/dist/esm/gb-avatar-group.entry.js +2 -2
  368. package/dist/esm/gb-avatar-label-group.entry.js +2 -2
  369. package/dist/esm/gb-avatar-profile-photo.entry.js +2 -2
  370. package/dist/esm/{gb-avatar_40.entry.js → gb-avatar_44.entry.js} +393 -85
  371. package/dist/esm/gb-avatar_44.entry.js.map +1 -0
  372. package/dist/esm/gb-checkbox-group-item.entry.js +1 -1
  373. package/dist/esm/gb-checkbox-group.entry.js +1 -1
  374. package/dist/esm/gb-export-dropdown-item_2.entry.js +1 -1
  375. package/dist/esm/gb-export-dropdown.entry.js +2 -2
  376. package/dist/esm/gb-export-sub-dropdown-item.entry.js +1 -1
  377. package/dist/esm/gb-help-dropdown.entry.js +2 -2
  378. package/dist/esm/gb-megainput-field.entry.js +3 -3
  379. package/dist/esm/gb-pagination-dot-group.entry.js +2 -2
  380. package/dist/esm/gb-progress-circle.entry.js +2 -2
  381. package/dist/esm/gb-rich-text.entry.js +2 -2
  382. package/dist/esm/gb-scrollbar.entry.js +2 -2
  383. package/dist/esm/gb-textarea-input-field.entry.js +1 -1
  384. package/dist/esm/gb-toggle.entry.js +2 -2
  385. package/dist/esm/gb-token-field.entry.js +2 -2
  386. package/dist/esm/gb-verification-code-field.entry.js +3 -3
  387. package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
  388. package/dist/esm/gb-wysiwyg-toolbar.entry.js +1 -1
  389. package/dist/esm/gb-wysiwyg-tooltip.entry.js +1 -1
  390. package/dist/esm/globuscomponents.js +3 -3
  391. package/dist/esm/{index-f6b9f9bf.js → index-4b3f6d77.js} +5 -2
  392. package/dist/esm/index-4b3f6d77.js.map +1 -0
  393. package/dist/esm/loader.js +3 -3
  394. package/dist/esm/{reusableModels-e864cf6e.js → reusableModels-8496e911.js} +1 -2
  395. package/dist/esm/reusableModels-8496e911.js.map +1 -0
  396. package/dist/esm/test-input-tag.entry.js +4 -4
  397. package/dist/globuscomponents/assets/NG.svg +14 -14
  398. package/dist/globuscomponents/assets/Tooltip.svg +4 -4
  399. package/dist/globuscomponents/assets/alert-02.svg +6 -6
  400. package/dist/globuscomponents/assets/arrow-left-02.svg +5 -5
  401. package/dist/globuscomponents/assets/arrow-right-02.svg +5 -5
  402. package/dist/globuscomponents/assets/arrow-turn-backward.svg +5 -5
  403. package/dist/globuscomponents/assets/bar.svg +3 -3
  404. package/dist/globuscomponents/assets/bar_white.svg +3 -3
  405. package/dist/globuscomponents/assets/calendar-02.svg +6 -6
  406. package/dist/globuscomponents/assets/cancel-01.svg +5 -5
  407. package/dist/globuscomponents/assets/checkbox disabled_indeterminate.svg +5 -5
  408. package/dist/globuscomponents/assets/checkcircle default_checked.svg +5 -5
  409. package/dist/globuscomponents/assets/checkcircle default_unchecked.svg +3 -3
  410. package/dist/globuscomponents/assets/checkcircle disabled_checked.svg +5 -5
  411. package/dist/globuscomponents/assets/checkcircle disabled_unchecked.svg +3 -3
  412. package/dist/globuscomponents/assets/checked_indeterminate.svg +5 -5
  413. package/dist/globuscomponents/assets/circle.svg +6 -6
  414. package/dist/globuscomponents/assets/column-insert.svg +5 -5
  415. package/dist/globuscomponents/assets/company.svg +4 -4
  416. package/dist/globuscomponents/assets/copy-01.svg +5 -5
  417. package/dist/globuscomponents/assets/dashboard-square-03.svg +14 -14
  418. package/dist/globuscomponents/assets/database-sync.svg +6 -6
  419. package/dist/globuscomponents/assets/database.svg +6 -6
  420. package/dist/globuscomponents/assets/default-file-icons/default_csv.svg +6 -0
  421. package/dist/globuscomponents/assets/default-file-icons/default_doc.svg +6 -0
  422. package/dist/globuscomponents/assets/default-file-icons/default_docx.svg +6 -0
  423. package/dist/globuscomponents/assets/default-file-icons/default_jpeg.svg +6 -0
  424. package/dist/globuscomponents/assets/default-file-icons/default_jpg.svg +6 -0
  425. package/dist/globuscomponents/assets/default-file-icons/default_mp3.svg +6 -0
  426. package/dist/globuscomponents/assets/default-file-icons/default_mp4.svg +6 -0
  427. package/dist/globuscomponents/assets/default-file-icons/default_pdf.svg +6 -0
  428. package/dist/globuscomponents/assets/default-file-icons/default_ppt.svg +6 -0
  429. package/dist/globuscomponents/assets/default-file-icons/default_pptx.svg +6 -0
  430. package/dist/globuscomponents/assets/default-file-icons/default_rar.svg +6 -0
  431. package/dist/globuscomponents/assets/default-file-icons/default_svg.svg +6 -0
  432. package/dist/globuscomponents/assets/default-file-icons/default_txt.svg +6 -0
  433. package/dist/globuscomponents/assets/default-file-icons/default_xls.svg +6 -0
  434. package/dist/globuscomponents/assets/default-file-icons/default_xlsx.svg +6 -0
  435. package/dist/globuscomponents/assets/default-file-icons/default_zip.svg +6 -0
  436. package/dist/globuscomponents/assets/default_checked.svg +5 -5
  437. package/dist/globuscomponents/assets/default_unchecked.svg +3 -3
  438. package/dist/globuscomponents/assets/delete-02.svg +3 -3
  439. package/dist/globuscomponents/assets/disabled.svg +4 -4
  440. package/dist/globuscomponents/assets/disabled_checked.svg +5 -5
  441. package/dist/globuscomponents/assets/disabled_indeterminate.svg +5 -5
  442. package/dist/globuscomponents/assets/exchange-01.svg +5 -5
  443. package/dist/globuscomponents/assets/file-verified.svg +6 -6
  444. package/dist/globuscomponents/assets/filter-horizontal.svg +9 -9
  445. package/dist/globuscomponents/assets/flag-01.svg +5 -5
  446. package/dist/globuscomponents/assets/globus_bank_logo.svg +11 -11
  447. package/dist/globuscomponents/assets/globus_bank_logo_blue.svg +13 -13
  448. package/dist/globuscomponents/assets/globus_bank_logo_white.svg +13 -13
  449. package/dist/globuscomponents/assets/gray-file-icons/gray_csv.svg +5 -0
  450. package/dist/globuscomponents/assets/gray-file-icons/gray_doc.svg +5 -0
  451. package/dist/globuscomponents/assets/gray-file-icons/gray_docx.svg +5 -0
  452. package/dist/globuscomponents/assets/gray-file-icons/gray_jpeg.svg +5 -0
  453. package/dist/globuscomponents/assets/gray-file-icons/gray_jpg.svg +5 -0
  454. package/dist/globuscomponents/assets/gray-file-icons/gray_mp3.svg +5 -0
  455. package/dist/globuscomponents/assets/gray-file-icons/gray_mp4.svg +5 -0
  456. package/dist/globuscomponents/assets/gray-file-icons/gray_pdf.svg +5 -0
  457. package/dist/globuscomponents/assets/gray-file-icons/gray_ppt.svg +5 -0
  458. package/dist/globuscomponents/assets/gray-file-icons/gray_pptx.svg +5 -0
  459. package/dist/globuscomponents/assets/gray-file-icons/gray_rar.svg +5 -0
  460. package/dist/globuscomponents/assets/gray-file-icons/gray_svg.svg +5 -0
  461. package/dist/globuscomponents/assets/gray-file-icons/gray_txt.svg +5 -0
  462. package/dist/globuscomponents/assets/gray-file-icons/gray_xls.svg +5 -0
  463. package/dist/globuscomponents/assets/gray-file-icons/gray_xlsx.svg +5 -0
  464. package/dist/globuscomponents/assets/gray-file-icons/gray_zip.svg +5 -0
  465. package/dist/globuscomponents/assets/help-circle.svg +5 -5
  466. package/dist/globuscomponents/assets/laptop.svg +6 -6
  467. package/dist/globuscomponents/assets/mail-02.svg +5 -5
  468. package/dist/globuscomponents/assets/no_notification_frame.svg +139 -139
  469. package/dist/globuscomponents/assets/notification-03.svg +5 -5
  470. package/dist/globuscomponents/assets/notification_background_pattern.svg +52 -52
  471. package/dist/globuscomponents/assets/notification_illustration.svg +80 -80
  472. package/dist/globuscomponents/assets/pattern_wrapper.svg +1359 -1359
  473. package/dist/globuscomponents/assets/plus_sign.svg +3 -3
  474. package/dist/globuscomponents/assets/radiobutton default_checked.svg +4 -4
  475. package/dist/globuscomponents/assets/radiobutton default_unchecked.svg +3 -3
  476. package/dist/globuscomponents/assets/radiobutton disabled_checked.svg +4 -4
  477. package/dist/globuscomponents/assets/radiobutton disabled_unchecked.svg +3 -3
  478. package/dist/globuscomponents/assets/sample.svg +5 -5
  479. package/dist/globuscomponents/assets/search-01.svg +3 -3
  480. package/dist/globuscomponents/assets/shuffle-square.svg +6 -6
  481. package/dist/globuscomponents/assets/solid-file-icons/solid_csv.svg +5 -0
  482. package/dist/globuscomponents/assets/solid-file-icons/solid_doc.svg +5 -0
  483. package/dist/globuscomponents/assets/solid-file-icons/solid_docx.svg +5 -0
  484. package/dist/globuscomponents/assets/solid-file-icons/solid_jpeg.svg +5 -0
  485. package/dist/globuscomponents/assets/solid-file-icons/solid_jpg.svg +5 -0
  486. package/dist/globuscomponents/assets/solid-file-icons/solid_mp3.svg +5 -0
  487. package/dist/globuscomponents/assets/solid-file-icons/solid_mp4.svg +5 -0
  488. package/dist/globuscomponents/assets/solid-file-icons/solid_pdf.svg +5 -0
  489. package/dist/globuscomponents/assets/solid-file-icons/solid_ppt.svg +5 -0
  490. package/dist/globuscomponents/assets/solid-file-icons/solid_pptx.svg +5 -0
  491. package/dist/globuscomponents/assets/solid-file-icons/solid_rar.svg +5 -0
  492. package/dist/globuscomponents/assets/solid-file-icons/solid_svg.svg +5 -0
  493. package/dist/globuscomponents/assets/solid-file-icons/solid_txt.svg +5 -0
  494. package/dist/globuscomponents/assets/solid-file-icons/solid_xls.svg +5 -0
  495. package/dist/globuscomponents/assets/solid-file-icons/solid_xlsx.svg +5 -0
  496. package/dist/globuscomponents/assets/solid-file-icons/solid_zip.svg +5 -0
  497. package/dist/globuscomponents/assets/square-arrow-data-transfer-diagonal.svg +6 -6
  498. package/dist/globuscomponents/assets/thumbs-up.svg +8 -8
  499. package/dist/globuscomponents/assets/user-group.svg +10 -10
  500. package/dist/globuscomponents/globuscomponents.esm.js +1 -1
  501. package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
  502. package/dist/globuscomponents/{p-1c634283.entry.js → p-040877b0.entry.js} +2 -2
  503. package/dist/globuscomponents/{p-24934b82.entry.js → p-150150b7.entry.js} +2 -2
  504. package/dist/globuscomponents/{p-53918e60.entry.js → p-2616b4f7.entry.js} +2 -2
  505. package/dist/globuscomponents/{p-4f31ae97.js → p-47052b60.js} +1 -1
  506. package/dist/globuscomponents/p-47052b60.js.map +1 -0
  507. package/dist/globuscomponents/{p-7b5550cd.entry.js → p-524c0404.entry.js} +2 -2
  508. package/dist/globuscomponents/{p-9e5a4011.entry.js → p-5c8e2c78.entry.js} +2 -2
  509. package/dist/globuscomponents/{p-87e5abd9.entry.js → p-641ddab7.entry.js} +2 -2
  510. package/dist/globuscomponents/{p-74b82196.entry.js → p-6bb17e3e.entry.js} +2 -2
  511. package/dist/globuscomponents/{p-c424272d.entry.js → p-77224a09.entry.js} +2 -2
  512. package/dist/globuscomponents/p-7d1d376e.entry.js +2 -0
  513. package/dist/globuscomponents/{p-44c80420.entry.js → p-818a14e9.entry.js} +2 -2
  514. package/dist/globuscomponents/{p-8c916245.entry.js → p-a6d401af.entry.js} +2 -2
  515. package/dist/globuscomponents/{p-c232233f.entry.js → p-aaa4b333.entry.js} +2 -2
  516. package/dist/globuscomponents/{p-acd00cca.entry.js → p-abfc2e2a.entry.js} +2 -2
  517. package/dist/globuscomponents/{p-da0e6faf.entry.js → p-b22b0186.entry.js} +2 -2
  518. package/dist/globuscomponents/{p-1a725100.entry.js → p-b7a706ad.entry.js} +2 -2
  519. package/dist/globuscomponents/{p-2e30fc4c.entry.js → p-bde2ee59.entry.js} +2 -2
  520. package/dist/globuscomponents/p-bde2ee59.entry.js.map +1 -0
  521. package/dist/globuscomponents/p-bf92be61.js +3 -0
  522. package/dist/globuscomponents/p-bf92be61.js.map +1 -0
  523. package/dist/globuscomponents/{p-1ecb225e.entry.js → p-c5fea72e.entry.js} +2 -2
  524. package/dist/globuscomponents/{p-39450d7e.entry.js → p-cc42edb7.entry.js} +2 -2
  525. package/dist/globuscomponents/p-d0045a1d.entry.js +2 -0
  526. package/dist/globuscomponents/{p-9f01343e.entry.js → p-d1a92423.entry.js} +2 -2
  527. package/dist/globuscomponents/{p-135fa032.entry.js → p-d32c11d8.entry.js} +2 -2
  528. package/dist/globuscomponents/{p-5e61c950.entry.js → p-e08625a5.entry.js} +2 -2
  529. package/dist/globuscomponents/{p-36b88a3d.entry.js → p-e47aff3e.entry.js} +2 -2
  530. package/dist/globuscomponents/p-eded0645.entry.js +2 -0
  531. package/dist/globuscomponents/{p-e1c952db.entry.js → p-f9b1d223.entry.js} +2 -2
  532. package/dist/globuscomponents/readme.md +48 -48
  533. package/dist/types/components/gb-file-type-icon/gb-file-type-icon.d.ts +4 -1
  534. package/dist/types/components/gb-file-upload/gb-file-upload.d.ts +23 -1
  535. package/dist/types/components/gb-file-upload-item-base/gb-file-upload-item-base.d.ts +9 -3
  536. package/dist/types/components/gb-input-dropdown/gb-input-dropdown.d.ts +3 -1
  537. package/dist/types/components/gb-input-field/gb-input-field.d.ts +1 -0
  538. package/dist/types/components/gb-pagination-button-group-base/gb-pagination-button-group-base.d.ts +4 -0
  539. package/dist/types/components/gb-progress-bar/gb-progress-bar.d.ts +0 -1
  540. package/dist/types/components/gb-slider/gb-slider.d.ts +7 -2
  541. package/dist/types/components/gb-slider-control-handle/gb-slider-control-handle.d.ts +2 -2
  542. package/dist/types/components.d.ts +74 -10
  543. package/dist/types/models/reusableModels.d.ts +3 -1
  544. package/package.json +1 -1
  545. package/dist/cjs/gb-avatar_40.cjs.entry.js.map +0 -1
  546. package/dist/cjs/gb-file-type-icon.cjs.entry.js +0 -22
  547. package/dist/cjs/gb-file-type-icon.cjs.entry.js.map +0 -1
  548. package/dist/cjs/gb-file-upload-item-base.cjs.entry.js +0 -37
  549. package/dist/cjs/gb-file-upload-item-base.cjs.entry.js.map +0 -1
  550. package/dist/cjs/gb-file-upload.cjs.entry.js +0 -38
  551. package/dist/cjs/gb-file-upload.cjs.entry.js.map +0 -1
  552. package/dist/cjs/gb-progress-bar.cjs.entry.js +0 -27
  553. package/dist/cjs/gb-progress-bar.cjs.entry.js.map +0 -1
  554. package/dist/cjs/index-97d4dbd5.js.map +0 -1
  555. package/dist/cjs/reusableModels-40cbefe2.js.map +0 -1
  556. package/dist/components/p-4710b26e.js.map +0 -1
  557. package/dist/components/p-4f31ae97.js.map +0 -1
  558. package/dist/components/p-52a05610.js.map +0 -1
  559. package/dist/components/p-61d6b9a4.js.map +0 -1
  560. package/dist/components/p-8ea8fb2e.js.map +0 -1
  561. package/dist/components/p-8ec4b241.js.map +0 -1
  562. package/dist/components/p-b8cc4ced.js.map +0 -1
  563. package/dist/components/p-e1b8bc90.js.map +0 -1
  564. package/dist/components/p-e9099a82.js.map +0 -1
  565. package/dist/esm/gb-avatar_40.entry.js.map +0 -1
  566. package/dist/esm/gb-file-type-icon.entry.js +0 -18
  567. package/dist/esm/gb-file-type-icon.entry.js.map +0 -1
  568. package/dist/esm/gb-file-upload-item-base.entry.js +0 -33
  569. package/dist/esm/gb-file-upload-item-base.entry.js.map +0 -1
  570. package/dist/esm/gb-file-upload.entry.js +0 -34
  571. package/dist/esm/gb-file-upload.entry.js.map +0 -1
  572. package/dist/esm/gb-progress-bar.entry.js +0 -23
  573. package/dist/esm/gb-progress-bar.entry.js.map +0 -1
  574. package/dist/esm/index-f6b9f9bf.js.map +0 -1
  575. package/dist/esm/reusableModels-e864cf6e.js.map +0 -1
  576. package/dist/globuscomponents/p-184d9489.entry.js +0 -2
  577. package/dist/globuscomponents/p-2e30fc4c.entry.js.map +0 -1
  578. package/dist/globuscomponents/p-4f31ae97.js.map +0 -1
  579. package/dist/globuscomponents/p-707fcde4.entry.js +0 -2
  580. package/dist/globuscomponents/p-964e5e0c.entry.js +0 -2
  581. package/dist/globuscomponents/p-e9f75233.entry.js +0 -2
  582. package/dist/globuscomponents/p-e9f75233.entry.js.map +0 -1
  583. package/dist/globuscomponents/p-efd85181.entry.js +0 -2
  584. package/dist/globuscomponents/p-efd85181.entry.js.map +0 -1
  585. package/dist/globuscomponents/p-f13f3010.entry.js +0 -2
  586. package/dist/globuscomponents/p-f13f3010.entry.js.map +0 -1
  587. package/dist/globuscomponents/p-f9e7b25c.entry.js +0 -2
  588. package/dist/globuscomponents/p-f9e7b25c.entry.js.map +0 -1
  589. package/dist/globuscomponents/p-ff053a96.js +0 -3
  590. package/dist/globuscomponents/p-ff053a96.js.map +0 -1
  591. /package/dist/globuscomponents/{p-1c634283.entry.js.map → p-040877b0.entry.js.map} +0 -0
  592. /package/dist/globuscomponents/{p-24934b82.entry.js.map → p-150150b7.entry.js.map} +0 -0
  593. /package/dist/globuscomponents/{p-53918e60.entry.js.map → p-2616b4f7.entry.js.map} +0 -0
  594. /package/dist/globuscomponents/{p-7b5550cd.entry.js.map → p-524c0404.entry.js.map} +0 -0
  595. /package/dist/globuscomponents/{p-9e5a4011.entry.js.map → p-5c8e2c78.entry.js.map} +0 -0
  596. /package/dist/globuscomponents/{p-87e5abd9.entry.js.map → p-641ddab7.entry.js.map} +0 -0
  597. /package/dist/globuscomponents/{p-74b82196.entry.js.map → p-6bb17e3e.entry.js.map} +0 -0
  598. /package/dist/globuscomponents/{p-c424272d.entry.js.map → p-77224a09.entry.js.map} +0 -0
  599. /package/dist/globuscomponents/{p-964e5e0c.entry.js.map → p-7d1d376e.entry.js.map} +0 -0
  600. /package/dist/globuscomponents/{p-44c80420.entry.js.map → p-818a14e9.entry.js.map} +0 -0
  601. /package/dist/globuscomponents/{p-8c916245.entry.js.map → p-a6d401af.entry.js.map} +0 -0
  602. /package/dist/globuscomponents/{p-c232233f.entry.js.map → p-aaa4b333.entry.js.map} +0 -0
  603. /package/dist/globuscomponents/{p-acd00cca.entry.js.map → p-abfc2e2a.entry.js.map} +0 -0
  604. /package/dist/globuscomponents/{p-da0e6faf.entry.js.map → p-b22b0186.entry.js.map} +0 -0
  605. /package/dist/globuscomponents/{p-1a725100.entry.js.map → p-b7a706ad.entry.js.map} +0 -0
  606. /package/dist/globuscomponents/{p-1ecb225e.entry.js.map → p-c5fea72e.entry.js.map} +0 -0
  607. /package/dist/globuscomponents/{p-39450d7e.entry.js.map → p-cc42edb7.entry.js.map} +0 -0
  608. /package/dist/globuscomponents/{p-707fcde4.entry.js.map → p-d0045a1d.entry.js.map} +0 -0
  609. /package/dist/globuscomponents/{p-9f01343e.entry.js.map → p-d1a92423.entry.js.map} +0 -0
  610. /package/dist/globuscomponents/{p-135fa032.entry.js.map → p-d32c11d8.entry.js.map} +0 -0
  611. /package/dist/globuscomponents/{p-5e61c950.entry.js.map → p-e08625a5.entry.js.map} +0 -0
  612. /package/dist/globuscomponents/{p-36b88a3d.entry.js.map → p-e47aff3e.entry.js.map} +0 -0
  613. /package/dist/globuscomponents/{p-184d9489.entry.js.map → p-eded0645.entry.js.map} +0 -0
  614. /package/dist/globuscomponents/{p-e1c952db.entry.js.map → p-f9b1d223.entry.js.map} +0 -0
@@ -1,19 +1,33 @@
1
- import { h, Fragment } from "@stencil/core";
1
+ import { h, Fragment, getAssetPath } from "@stencil/core";
2
2
  export class GbPaginationButtonGroupBase {
3
3
  constructor() {
4
4
  this.icon = undefined;
5
5
  this.iconLeading = undefined;
6
6
  this.iconTrailing = undefined;
7
7
  this.state = undefined;
8
+ this.iconSrc = undefined;
9
+ this.leadingIconSvg = '';
8
10
  }
9
11
  componentDidLoad() {
10
12
  const slottedContent = this.el.querySelector('p');
11
13
  if (slottedContent) {
12
14
  slottedContent.classList.add('text-sm-semi-bold');
13
15
  }
16
+ if (this.state === 'active') {
17
+ slottedContent.classList.add('active_text');
18
+ }
19
+ }
20
+ async loadIcon(iconName) {
21
+ const iconPath = getAssetPath(`${iconName}`);
22
+ const response = await fetch(iconPath);
23
+ const svg = await response.text();
24
+ this.leadingIconSvg = svg;
25
+ }
26
+ componentWillLoad() {
27
+ this.loadIcon(this.iconSrc);
14
28
  }
15
29
  render() {
16
- return (h("div", { key: '59c84439fe82fbc96cf48fafd679a9e27561fd85', class: `button_base_div ${this.icon} ${this.state}` }, this.icon === 'false' && h("slot", { key: '0e34dee27cf0fc00a1d755581be19b24f246132b' }), this.icon === 'leading' && (h(Fragment, null, h("svg", { key: 'df6b740cd5309803bf9ed9c2ba47edfbae29eabb', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'd51134c9031a80e7f16e4ab545c02bc33f04601e', d: "M3.33325 9.99981H16.6666M3.33325 9.99981C3.33326 11.0978 7.49975 14.1667 7.49975 14.1667M3.33325 9.99981C3.33324 8.90182 7.49978 5.83334 7.49978 5.83334", stroke: "#4B5565", "stroke-width": "1.67", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("slot", { key: 'b66bae8ef1d9fcad5174e05073d77847318f8385' }))), this.icon === 'trailing' && (h(Fragment, null, h("slot", { key: '75dc3a4282c9a6c557341ab818a369dbc7ce9172' }), h("svg", { key: 'a483de0628cf5d9f378aa53ebbda389b7f6f5856', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'c5310e92b6e1d9e751a090d623b24e8297fd91c1', d: "M16.6668 9.99984H3.3335M16.6668 9.99984C16.6668 11.0978 12.5003 14.1667 12.5003 14.1667M16.6668 9.99984C16.6669 8.90185 12.5002 5.83337 12.5002 5.83337", stroke: "#4B5565", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
30
+ return (h("div", { key: 'ea375cf57f25dd80312f7f8f3cfd9a3f16796132', class: `button_base_div ${this.icon} ${this.state}` }, this.icon === 'false' && h("slot", { key: '5b9065b02257e2feb0c29bca0c35994fc048ad25' }), this.icon === 'leading' && (h(Fragment, null, h("svg", { key: '0854ad10f0fa9f993ca9fd7bce5287c1b6a366c7', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'bb02710c88056ef5bdadf28879b6c25e2e4f4bca', d: "M3.33325 9.99981H16.6666M3.33325 9.99981C3.33326 11.0978 7.49975 14.1667 7.49975 14.1667M3.33325 9.99981C3.33324 8.90182 7.49978 5.83334 7.49978 5.83334", stroke: "#4B5565", "stroke-width": "1.67", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("slot", { key: '79ce3bd09de74556f2d4bc87313e192890e1e7af' }))), this.icon === 'trailing' && (h(Fragment, null, h("slot", { key: '703fdef6ee6d10e6cdbf6c9fda519136b7774d58' }), h("svg", { key: 'b8544d202100ea69a32f8bbf42f6ce1e32432775', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'f7b40041a3c11315268bd99bc52e5fd566e2b3cb', d: "M16.6668 9.99984H3.3335M16.6668 9.99984C16.6668 11.0978 12.5003 14.1667 12.5003 14.1667M16.6668 9.99984C16.6669 8.90185 12.5002 5.83337 12.5002 5.83337", stroke: "#4B5565", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.icon === 'only' && (h(Fragment, null, h("div", { key: 'acb4c2b6dd1dc010a7a7c30718e2ba6626d5acfb', class: `icon`, innerHTML: this.leadingIconSvg })))));
17
31
  }
18
32
  static get is() { return "gb-pagination-button-group-base"; }
19
33
  static get encapsulation() { return "shadow"; }
@@ -96,9 +110,31 @@ export class GbPaginationButtonGroupBase {
96
110
  },
97
111
  "attribute": "state",
98
112
  "reflect": false
113
+ },
114
+ "iconSrc": {
115
+ "type": "string",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "string",
119
+ "resolved": "string",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": ""
127
+ },
128
+ "attribute": "icon-src",
129
+ "reflect": false
99
130
  }
100
131
  };
101
132
  }
133
+ static get states() {
134
+ return {
135
+ "leadingIconSvg": {}
136
+ };
137
+ }
102
138
  static get elementRef() { return "el"; }
103
139
  }
104
140
  //# sourceMappingURL=gb-pagination-button-group-base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gb-pagination-button-group-base.js","sourceRoot":"","sources":["../../../src/components/gb-pagination-button-group-base/gb-pagination-button-group-base.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOtE,MAAM,OAAO,2BAA2B;;;;;;;IAOtC,gBAAgB;QACd,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAElD,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE,mBAAmB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;YACrD,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,8DAAa;YACtC,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,CAC1B;gBACE,4DAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;oBAC5F,6DACE,CAAC,EAAC,0JAA0J,EAC5J,MAAM,EAAC,SAAS,kBACH,MAAM,oBACJ,OAAO,qBACN,OAAO,GACvB,CACE;gBACN,8DAAa,CACZ,CACJ;YACA,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,CAC3B;gBACE,8DAAa;gBACX,4DAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;oBAC5F,6DACE,CAAC,EAAC,yJAAyJ,EAC3J,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CACJ,CAEG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment, Element } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: 'gb-pagination-button-group-base',\r\n styleUrl: 'gb-pagination-button-group-base.css',\r\n shadow: true,\r\n})\r\nexport class GbPaginationButtonGroupBase {\r\n @Prop() icon: 'false' | 'only' | 'trailing' | 'leading';\r\n @Prop() iconLeading: string;\r\n @Prop() iconTrailing: string;\r\n @Prop() state: 'default' | 'active';\r\n @Element() el: HTMLElement;\r\n\r\n componentDidLoad() {\r\n const slottedContent = this.el.querySelector('p');\r\n\r\n if (slottedContent) {\r\n slottedContent.classList.add('text-sm-semi-bold');\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`button_base_div ${this.icon} ${this.state}`}>\r\n {this.icon === 'false' && <slot></slot>}\r\n {this.icon === 'leading' && (\r\n <>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M3.33325 9.99981H16.6666M3.33325 9.99981C3.33326 11.0978 7.49975 14.1667 7.49975 14.1667M3.33325 9.99981C3.33324 8.90182 7.49978 5.83334 7.49978 5.83334\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <slot></slot>\r\n </>\r\n )}\r\n {this.icon === 'trailing' && (\r\n <>\r\n <slot></slot>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M16.6668 9.99984H3.3335M16.6668 9.99984C16.6668 11.0978 12.5003 14.1667 12.5003 14.1667M16.6668 9.99984C16.6669 8.90185 12.5002 5.83337 12.5002 5.83337\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </>\r\n )}\r\n {/* {this.icon === 'only' && ()} */}\r\n </div>\r\n );\r\n }\r\n}"]}
1
+ {"version":3,"file":"gb-pagination-button-group-base.js","sourceRoot":"","sources":["../../../src/components/gb-pagination-button-group-base/gb-pagination-button-group-base.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAO3F,MAAM,OAAO,2BAA2B;;;;;;;8BAMJ,EAAE;;IAGpC,gBAAgB;QACd,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAElD,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACpD,CAAC;QAED,IAAG,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC3B,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,QAAgB;QAC7B,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,QAAQ,EAAE,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;IAC5B,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE,mBAAmB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;YACrD,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,8DAAa;YACtC,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,CAC1B;gBACE,4DAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;oBAC5F,6DACE,CAAC,EAAC,0JAA0J,EAC5J,MAAM,EAAC,SAAS,kBACH,MAAM,oBACJ,OAAO,qBACN,OAAO,GACvB,CACE;gBACN,8DAAa,CACZ,CACJ;YACA,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,CAC3B;gBACE,8DAAa;gBACX,4DAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;oBAC5F,6DACE,CAAC,EAAC,yJAAyJ,EAC3J,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CACJ;YACA,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,CACvB;gBACA,4DAAK,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,GAAQ,CACvD,CACJ,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment, Element, getAssetPath, State } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: 'gb-pagination-button-group-base',\r\n styleUrl: 'gb-pagination-button-group-base.css',\r\n shadow: true,\r\n})\r\nexport class GbPaginationButtonGroupBase {\r\n @Prop() icon: 'false' | 'only' | 'trailing' | 'leading';\r\n @Prop() iconLeading: string;\r\n @Prop() iconTrailing: string;\r\n @Prop() state: 'default' | 'active';\r\n @Prop() iconSrc: string;\r\n @State() leadingIconSvg: string = '';\r\n @Element() el: HTMLElement;\r\n\r\n componentDidLoad() {\r\n const slottedContent = this.el.querySelector('p');\r\n\r\n if (slottedContent) {\r\n slottedContent.classList.add('text-sm-semi-bold');\r\n }\r\n\r\n if(this.state === 'active') {\r\n slottedContent.classList.add('active_text');\r\n }\r\n }\r\n\r\n async loadIcon(iconName: string) {\r\n const iconPath = getAssetPath(`${iconName}`);\r\n const response = await fetch(iconPath);\r\n const svg = await response.text();\r\n this.leadingIconSvg = svg;\r\n }\r\n \r\n componentWillLoad() {\r\n this.loadIcon(this.iconSrc);\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`button_base_div ${this.icon} ${this.state}`}>\r\n {this.icon === 'false' && <slot></slot>}\r\n {this.icon === 'leading' && (\r\n <>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M3.33325 9.99981H16.6666M3.33325 9.99981C3.33326 11.0978 7.49975 14.1667 7.49975 14.1667M3.33325 9.99981C3.33324 8.90182 7.49978 5.83334 7.49978 5.83334\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.67\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <slot></slot>\r\n </>\r\n )}\r\n {this.icon === 'trailing' && (\r\n <>\r\n <slot></slot>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M16.6668 9.99984H3.3335M16.6668 9.99984C16.6668 11.0978 12.5003 14.1667 12.5003 14.1667M16.6668 9.99984C16.6669 8.90185 12.5002 5.83337 12.5002 5.83337\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </>\r\n )}\r\n {this.icon === 'only' && (\r\n <>\r\n <div class={`icon`} innerHTML={this.leadingIconSvg}></div>\r\n </>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
@@ -7,7 +7,7 @@ export class GbPaginationDotGroup {
7
7
  this.framed = false;
8
8
  }
9
9
  render() {
10
- return (h("div", { key: '55b4a49b0379aca117da6a7a0055ef953e5b5160', class: "dot_group_div" }, h("div", { key: '2980f830c8e7e8d247430f0f2cb7dc10168be166' })));
10
+ return (h("div", { key: '07ec77d53f8dd3cf495f5ba9ae75434677fd9400', class: "dot_group_div" }, h("div", { key: '53c550aa31df4fdedb450bb725e75ced8ed07dca' })));
11
11
  }
12
12
  static get is() { return "gb-pagination-dot-group"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ export class GbPaginationDotIndicator {
6
6
  this.size = undefined;
7
7
  }
8
8
  render() {
9
- return (h("div", { key: '38ef4eb63969975a7fce5247e00ca540516b8f55', class: `dot_indicator_div
9
+ return (h("div", { key: 'd9df6246705206942e8514a549b8974d82f5c811', class: `dot_indicator_div
10
10
  ${this.type} ${this.current ? 'current' : ''}
11
11
  ${this.size}` }));
12
12
  }
@@ -17,7 +17,7 @@ export class GbPaginationNumberBase {
17
17
  }
18
18
  }
19
19
  render() {
20
- return (h("div", { key: 'ffb9c6bdd7f6b7405d563f06414cc0f1625644c0', class: `page_number_base ${this.shape} ${this.state}` }, h("slot", { key: 'a09b1161a8a17afffdc29bbe29b67dd2999b0802', name: "page_number" })));
20
+ return (h("div", { key: '2a0955c4ae070302dc7a73b8c24e6bc4d3f88ab6', class: `page_number_base ${this.shape} ${this.state}` }, h("slot", { key: 'c3a38d1c9bd644d817dd3cbfad620b951969c7a4', name: "page_number" })));
21
21
  }
22
22
  static get is() { return "gb-pagination-number-base"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -8,7 +8,7 @@ export class GbPasswordButton {
8
8
  this.isPasswordVisible = !this.isPasswordVisible;
9
9
  }
10
10
  render() {
11
- return (h("div", { key: '134b6ad514c0ca41cfd33cdf003eea6a01dc47e4' }, h("gb-btn", { key: '10f55a0ac5fc486a7c92383dd88d67730a0d8620', size: "sm", hierarchy: "link_gray", state: "default", onClick: () => this.togglePasswordVisibility() }, this.isPasswordVisible ? (h("gb-button", { size: "sm", hierarchy: "tertiary_gray", icon: "default", state: this.state }, h("p", null, "HIDE"))) : (h("gb-button", { size: "sm", hierarchy: "tertiary_gray", icon: "default", state: this.state }, h("p", null, "SHOW"))))));
11
+ return (h("div", { key: 'cb4098b5ed99cf57d7f8e953805a2583e22b5493' }, h("gb-btn", { key: '775d0bd78bb5a43854501b454fb7b638926caada', size: "sm", hierarchy: "link_gray", state: "default", onClick: () => this.togglePasswordVisibility() }, this.isPasswordVisible ? (h("gb-button", { size: "sm", hierarchy: "tertiary_gray", icon: "default", state: this.state }, h("p", null, "HIDE"))) : (h("gb-button", { size: "sm", hierarchy: "tertiary_gray", icon: "default", state: this.state }, h("p", null, "SHOW"))))));
12
12
  }
13
13
  static get is() { return "gb-password-button"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -2668,7 +2668,6 @@
2668
2668
  background-color: transparent;
2669
2669
  display: flex;
2670
2670
  align-items: center;
2671
- align-items: stretch;
2672
2671
  gap: var(--spacing-3);
2673
2672
  width: 100%;
2674
2673
  height: fit-content;
@@ -2697,6 +2696,10 @@
2697
2696
  align-items: center;
2698
2697
  }
2699
2698
 
2699
+ span {
2700
+ color: var(--color-text, #4B5565);
2701
+ }
2702
+
2700
2703
  /* Label Position Styles */
2701
2704
  .progress_bar_container.right {
2702
2705
  flex-direction: row;
@@ -4,11 +4,10 @@ export class GbProgressBar {
4
4
  this.progress = undefined;
5
5
  this.showLabel = false;
6
6
  this.labelPosition = undefined;
7
- this.el = undefined;
8
7
  }
9
8
  render() {
10
9
  const progressValue = Math.min(Math.max(this.progress, 0), 100);
11
- return (h("div", { key: '947df7231d45d2d5a2df5a558c6fdaf43274b657', class: `progress_bar_container ${this.labelPosition}` }, h("div", { key: '433d29be2a8ab7e7d868facaab0f10a34078f590', class: "progress_bar" }, h("div", { key: '635f1720268246982523ba83aca9d845a8828d69', class: "progress_fill", style: { width: `${progressValue}%` } })), h(Fragment, null, this.showLabel && (h("div", { key: '65a4eb78f2c45c05c5a5f8716422ff26925371ca', class: `label ${this.labelPosition}` }, this.labelPosition === 'right' && h("span", { key: 'e316b8da82d40fa052fdf0053c7ed9faa94768a3', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'bottom' && h("span", { key: 'd60a74a9956ac2a2f067ef8a4d14b99297efca08', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'top_floating' && (h("gb-tooltip", { key: '08509dfcc04979baaac748fd7f63220b3034b0f7', class: `top_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 6.5).toString()}%` } }, h("p", { key: '44702963ec9ffd8e5b6d1d07942a5a480d378510', slot: "main_text", class: "text-xs-semi-bold" }, progressValue, "%"))), this.labelPosition === 'bottom_floating' && (h("gb-tooltip", { key: 'f999cfbacb81931a25a8fb289ef1ecbb533abd0b', class: `bottom_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 59.5).toString()}%` } }, h("p", { key: 'bf254dd663ee59595b7c3aa046c3787a50e1b7c7', slot: "main_text", class: "text-xs-semi-bold" }, progressValue, "%"))))))));
10
+ return (h("div", { key: 'b088ea298c849190f032ee78068f361776f5c1c8', class: `progress_bar_container ${this.labelPosition}` }, h("div", { key: 'd281aed15fcff0881e9f5328852fdec0d3b3afbe', class: "progress_bar" }, h("div", { key: '14fa4c4eea71dc7a859982d4dcf441340cfa510d', class: "progress_fill", style: { width: `${progressValue}%` } })), h(Fragment, null, this.showLabel && (h("div", { key: '10e6adb91bc94b0d1e28e146c094e7c1aa66972e', class: `label ${this.labelPosition}` }, this.labelPosition === 'right' && h("span", { key: '9ee48a7cefdbf2d7038643c5adb3d6df21b25ceb', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'bottom' && h("span", { key: '4cf39cdc8816cffde2064658fe8f2ddf7740fdca', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'top_floating' && (h("gb-tooltip", { key: 'c9cd6eed8d28fe38cebed9d6199868d1aea48042', class: `top_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 6.5).toString()}%` } }, h("p", { key: '5c498c4484876bc528568735193ac99d58230a1d', slot: "main_text", class: "text-xs-semi-bold" }, progressValue, "%"))), this.labelPosition === 'bottom_floating' && (h("gb-tooltip", { key: '9fe5ab43434ded05b0494843f2b3c7c0bb66dfc6', class: `bottom_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 59.5).toString()}%` } }, h("p", { key: '74578980b2ee57c29eb96e0f73f83bd7a0f4662e', slot: "main_text", class: "text-xs-semi-bold" }, progressValue, "%"))))))));
12
11
  }
13
12
  static get is() { return "gb-progress-bar"; }
14
13
  static get encapsulation() { return "shadow"; }
@@ -75,26 +74,6 @@ export class GbProgressBar {
75
74
  },
76
75
  "attribute": "label-position",
77
76
  "reflect": false
78
- },
79
- "el": {
80
- "type": "unknown",
81
- "mutable": false,
82
- "complexType": {
83
- "original": "HTMLElement",
84
- "resolved": "HTMLElement",
85
- "references": {
86
- "HTMLElement": {
87
- "location": "global",
88
- "id": "global::HTMLElement"
89
- }
90
- }
91
- },
92
- "required": false,
93
- "optional": false,
94
- "docs": {
95
- "tags": [],
96
- "text": ""
97
- }
98
77
  }
99
78
  };
100
79
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gb-progress-bar.js","sourceRoot":"","sources":["../../../src/components/gb-progress-bar/gb-progress-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAO7D,MAAM,OAAO,aAAa;;;yBAEK,KAAK;;;;IAIlC,MAAM;QACJ,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'gb-progress-bar',\r\n styleUrl: 'gb-progress-bar.css',\r\n shadow: true,\r\n})\r\nexport class GbProgressBar {\r\n @Prop() progress: number;\r\n @Prop() showLabel: boolean = false;\r\n @Prop() labelPosition: 'right' | 'bottom' | 'top_floating' | 'bottom_floating';\r\n @Prop() el: HTMLElement;\r\n\r\n render() {\r\n const progressValue = Math.min(Math.max(this.progress, 0), 100);\r\n\r\n return (\r\n <div class={`progress_bar_container ${this.labelPosition}`}>\r\n <div class=\"progress_bar\">\r\n <div class=\"progress_fill\" style={{ width: `${progressValue}%` }}></div>\r\n </div>\r\n <>\r\n {this.showLabel && (\r\n <div class={`label ${this.labelPosition}`}>\r\n {this.labelPosition === 'right' && <span class={`text-sm-medium`}>{progressValue}%</span>}\r\n {this.labelPosition === 'bottom' && <span class={`text-sm-medium`}>{progressValue}%</span>}\r\n {this.labelPosition === 'top_floating' && (\r\n <gb-tooltip class={`top_tooltip`} arrow=\"none\" style={{ marginLeft: `${(progressValue - 6.5).toString()}%` }}>\r\n <p slot=\"main_text\" class=\"text-xs-semi-bold\">\r\n {progressValue}%\r\n </p>\r\n </gb-tooltip>\r\n )}\r\n {this.labelPosition === 'bottom_floating' && (\r\n <gb-tooltip class={`bottom_tooltip`} arrow=\"none\" style={{ marginLeft: `${(progressValue - 59.5).toString()}%` }}>\r\n <p slot=\"main_text\" class=\"text-xs-semi-bold\">\r\n {progressValue}%\r\n </p>\r\n </gb-tooltip>\r\n )}\r\n </div>\r\n )}\r\n </>\r\n </div>\r\n );\r\n }\r\n}"]}
1
+ {"version":3,"file":"gb-progress-bar.js","sourceRoot":"","sources":["../../../src/components/gb-progress-bar/gb-progress-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,e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C,mBAAmB;wBAC1C,aAAa;4BACZ,CACO,CACd,CACG,CACP,CACA,CACC,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'gb-progress-bar',\r\n styleUrl: 'gb-progress-bar.css',\r\n shadow: true,\r\n})\r\nexport class GbProgressBar {\r\n @Prop() progress: number;\r\n @Prop() showLabel: boolean = false;\r\n @Prop() labelPosition: 'right' | 'bottom' | 'top_floating' | 'bottom_floating';\r\n\r\n render() {\r\n const progressValue = Math.min(Math.max(this.progress, 0), 100);\r\n\r\n return (\r\n <div class={`progress_bar_container ${this.labelPosition}`}>\r\n <div class=\"progress_bar\">\r\n <div class=\"progress_fill\" style={{ width: `${progressValue}%` }}></div>\r\n </div>\r\n <>\r\n {this.showLabel && (\r\n <div class={`label ${this.labelPosition}`}>\r\n {this.labelPosition === 'right' && <span class={`text-sm-medium`}>{progressValue}%</span>}\r\n {this.labelPosition === 'bottom' && <span class={`text-sm-medium`}>{progressValue}%</span>}\r\n {this.labelPosition === 'top_floating' && (\r\n <gb-tooltip class={`top_tooltip`} arrow=\"none\" style={{ marginLeft: `${(progressValue - 6.5).toString()}%` }}>\r\n <p slot=\"main_text\" class=\"text-xs-semi-bold\">\r\n {progressValue}%\r\n </p>\r\n </gb-tooltip>\r\n )}\r\n {this.labelPosition === 'bottom_floating' && (\r\n <gb-tooltip class={`bottom_tooltip`} arrow=\"none\" style={{ marginLeft: `${(progressValue - 59.5).toString()}%` }}>\r\n <p slot=\"main_text\" class=\"text-xs-semi-bold\">\r\n {progressValue}%\r\n </p>\r\n </gb-tooltip>\r\n )}\r\n </div>\r\n )}\r\n </>\r\n </div>\r\n );\r\n }\r\n}"]}
@@ -30,7 +30,7 @@ export class GbProgressCircle {
30
30
  }
31
31
  }
32
32
  render() {
33
- return (h("div", { key: '8d11623819c1a4ffae90339c78f0a11321940f06', class: "gauge" }, h("div", { key: 'eb870a6fdea88bfa8415d9963098b9b94f7d6ab1', class: "arc", ref: el => (this.arcElement = el) }), h("div", { key: '02458e1777dada9df91a8abdd916b9a2b4f5259a', class: "mask" }), this.label && (h("div", { key: '56b272e56b2f8e928f4ad84a280f34fd715ddaab', class: "label", ref: el => (this.labelElement = el) }, h("p", { key: '376f5150262192373aab796872268b836c852ae1', class: "display-lg-semi-bold" }, `${this.progress}%`)))));
33
+ return (h("div", { key: '92a64a225d9e277c1cead42e28ba532be5735c33', class: "gauge" }, h("div", { key: '31f47b93724eb88c62615d084fc112f4344bc1f4', class: "arc", ref: el => (this.arcElement = el) }), h("div", { key: '24006ef0a8cc36e5d74ba93c0a733b341280a7f9', class: "mask" }), this.label && (h("div", { key: '2e42d66a2a4d14691bf6a85eb3766ea54102bf63', class: "label", ref: el => (this.labelElement = el) }, h("p", { key: 'f20646812e084b6b70db49a01e3837a5d357c8ba', class: "display-lg-semi-bold" }, `${this.progress}%`)))));
34
34
  }
35
35
  static get is() { return "gb-progress-circle"; }
36
36
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class GbRichText {
15
15
  destructive: this.destructive,
16
16
  disabled: this.state === 'disabled'
17
17
  };
18
- return (h("div", { key: '0b1ef0cbab82e90c1baa4508126997e6fd7e0a27', class: classes }, h("div", { key: '85ba9e25c55ab5e44f5d6bef6769334a7cf4597f', class: "input-with-label" }, h("label", { key: 'bcb0d435b9d743defc1d60c2751f7649a983eb17' }, this.label), h("div", { key: '1a98411e35055dbc1f64dc61929c02c8c56f124b', class: "input-container" }, h("div", { key: '2ce2c98707097f39ecf88fcaa570bb782a88d585', class: "toolbar-container" }, h("gb-wysiwyg-toolbar", { key: 'a9ec31e35fcdc1fe077a1ad69f59af97c088b07d', breakpoint: "desktop", bold: true, italic: true, h1: true, h2: true, quote: true, link: true, image: true, bulletList: true, numberList: true })), this.destructive && (h("span", { key: '68562b5b79d483f74f463ed8d8d8907e578a8a45', class: "error-icon" }, h("svg", { key: 'cbe70fcde34e68a0184f10b4e40ffdee2a2584d7', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { key: '08f4250f3273bcf56f443591785e04d14070a4af', d: "M7.99483 10H8.00081M8.00016 8V5.33333M14.6668 8C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667C4.31826 14.6667 1.3335 11.6819 1.3335 8C1.3335 4.3181 4.31826 1.33333 8.00016 1.33333C11.6821 1.33333 14.6668 4.3181 14.6668 8Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: '5a72da28b59944fdd876068e79b4d94f0d7b24bc', class: "text-container" }, h("textarea", { key: '2e1618075e4ad76990ac11e5fd8d08d7c86e68c1' }, this.showPlaceholder && (h("div", { key: 'faf05d28d11f3586d4423932092cf0cb4ef896ca' }, this.placeholder)))))), this.showHintText && (h("div", { key: 'fecd3c3bcd6562b444a1152da64c66535abca145', class: "hint-text" }, this.hintText))));
18
+ return (h("div", { key: 'e6c8642c08d2ed2c5a2533a287eedc2e8d132141', class: classes }, h("div", { key: 'bdb3a13d6f516df9abb2d6517241f9520b32c0d7', class: "input-with-label" }, h("label", { key: '091be54c2ddba2e58f842878a74a5314901db583' }, this.label), h("div", { key: '84bd0474afa3f01ffbed4ddaef174e77a2dc0a07', class: "input-container" }, h("div", { key: 'b8e24f61c541fc003ae2e53514bf6b5ceebed08d', class: "toolbar-container" }, h("gb-wysiwyg-toolbar", { key: '935286e2a038397881f559120f4f4acf8d2fe862', breakpoint: "desktop", bold: true, italic: true, h1: true, h2: true, quote: true, link: true, image: true, bulletList: true, numberList: true })), this.destructive && (h("span", { key: '6c6b4d434ae954afdc4bd7bf9d0d5bb3448107a9', class: "error-icon" }, h("svg", { key: 'ce902df811835e7938b1f0b96c8e844181479e26', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { key: '7640847db6ecc756ddc38d1f89a3c6c2777a7aa7', d: "M7.99483 10H8.00081M8.00016 8V5.33333M14.6668 8C14.6668 11.6819 11.6821 14.6667 8.00016 14.6667C4.31826 14.6667 1.3335 11.6819 1.3335 8C1.3335 4.3181 4.31826 1.33333 8.00016 1.33333C11.6821 1.33333 14.6668 4.3181 14.6668 8Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: '22c805cb2ea9fba08f5b4e641a8a7e40b8047cfc', class: "text-container" }, h("textarea", { key: 'daf663b158090a3049d112b3a09b1d3d705811ec' }, this.showPlaceholder && (h("div", { key: '16f1909688bde8917df4eab9bfd77fab3c9d4bd0' }, this.placeholder)))))), this.showHintText && (h("div", { key: 'c37283a8e34852d685fda114f49f53c3e669f552', class: "hint-text" }, this.hintText))));
19
19
  }
20
20
  static get is() { return "gb-rich-text"; }
21
21
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ export class GbScrollbar {
4
4
  this.length = '25%';
5
5
  }
6
6
  render() {
7
- return (h("div", { key: '1931790bb96c0527b7c56b51c8f2d8474fe6a37d', class: "scrollbar-container" }, h("div", { key: 'c82dd623eef9b80afe770f903b208379cc6e4d4c', class: "scrollbar", style: { height: this.length } }, h("slot", { key: '576f14bc5c00704cdf4feb1ef13005800619408f' }))));
7
+ return (h("div", { key: '07e8ec2ff2a1f7c53cec5b4cff5a1fbe0faa99f6', class: "scrollbar-container" }, h("div", { key: '5483410a8af9456cd6f719d5c113b83b6c9abd08', class: "scrollbar", style: { height: this.length } }, h("slot", { key: 'de07fc69eb4803455e3b0b02035c078b66f42a73' }))));
8
8
  }
9
9
  static get is() { return "gb-scrollbar"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -32,7 +32,7 @@ export class GbSideBarItem {
32
32
  render() {
33
33
  const redBarSrc = getAssetPath(`assets/bar.svg`);
34
34
  const whiteBarSrc = getAssetPath(`assets/bar_white.svg`);
35
- return (h("div", { key: '9f8332f6bc361d27b95afd74ed7981e533607a3e', class: `side_bar_item_container`, onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("div", { key: '645ad62b9a6508b2d16df8abe602417cd93ed409', class: `nav_item_base ${this.state} ${this.type} ${this.category}` }, this.state === 'active' && this.category === 'plain_background' && h("img", { key: '85c435f52e0c9b0058132eee1a0f4a5741c7d7e6', src: redBarSrc, alt: "", class: "bar" }), this.state === 'active' && this.category === 'colored_background' && h("img", { key: 'e7be324e4e4bb1e2f1fe6b04008f2da75aeaa862', src: whiteBarSrc, alt: "", class: "bar" }), h("div", { key: 'ee02070931d992212f72d068b77e0b20f55bb628', class: "content" }, h("div", { key: '4e8a62ccddedc73e6e6f7065351701264c748148', class: `icon ${this.state} ${this.category}`, innerHTML: this.leadingIconSvg }), this.type === 'full_with_label' && (h("p", { key: '3b30d6a4183682dc3aff85554f704fbfbbff9cb3', class: `label_text ${this.category} ${this.state} ${this.state === 'active' ? 'text-md-semi-bold' : 'text-md-medium'}` }, this.label))), this.type === 'full_with_label' && (h(Fragment, null, this.showBadge && (h("gb-badge", { key: '2af27d854c18bcdc9f6459c8f41eb78a57b326d8', size: "sm", type: "pill_outline", color: this.state === 'active' ? 'information' : 'gray' }, h("p", { key: '1f91b0b43924bf54fe342b3a0d9bbe89ef3aab6c' }, "10"))), this.showArrow && (h("svg", { key: '4841799c8a1655756e09af99985936e54411c660', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: `arrow ${this.state} ${this.category}` }, h("path", { key: 'ee6e694a288db3e2aa4673944821db9d9497cc7e', d: "M6.00003 4C6.00003 4 9.99999 6.94596 10 8.00003C10 9.05411 6 12 6 12", stroke: "#212C65", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), this.type === 'icon_only' && this.showTooltip && (h("gb-tooltip", { key: '72bda8f236273f18cc1b1bf67e3a599f84ad3769', "show-arrow": true, arrow: "left", class: "tooltip" }, h("p", { key: '8201e00cfb2f036791136304c94c187abfa6c1f0', slot: "label" }, this.label)))));
35
+ return (h("div", { key: 'd2e15d0add59f71f2d2f91fc288f0949ca126d2a', class: `side_bar_item_container`, onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("div", { key: '08b53ae648bb9eebe9c17a70bd18afdca57404a2', class: `nav_item_base ${this.state} ${this.type} ${this.category}` }, this.state === 'active' && this.category === 'plain_background' && h("img", { key: '0b6e78a32eb0496f381589dc55574d7e853eb526', src: redBarSrc, alt: "", class: "bar" }), this.state === 'active' && this.category === 'colored_background' && h("img", { key: 'dfae0080d3fa8551af3df38018b950bf69c7e6f5', src: whiteBarSrc, alt: "", class: "bar" }), h("div", { key: '23dd8449892ce86ad79e58f41cee7ad27c933342', class: "content" }, h("div", { key: 'f1b029268d46ac1f436b14e4bd617f974f7efa6f', class: `icon ${this.state} ${this.category}`, innerHTML: this.leadingIconSvg }), this.type === 'full_with_label' && (h("p", { key: '109a31eca48c21abac12f03f77540194fa5c8991', class: `label_text ${this.category} ${this.state} ${this.state === 'active' ? 'text-md-semi-bold' : 'text-md-medium'}` }, this.label))), this.type === 'full_with_label' && (h(Fragment, null, this.showBadge && (h("gb-badge", { key: '2532ffeb07887d75794631c8c0d382d392260b4a', size: "sm", type: "pill_outline", color: this.state === 'active' ? 'information' : 'gray' }, h("p", { key: '211c91bc32050a9b5285805e0cdab9bb5bbc9309' }, "10"))), this.showArrow && (h("svg", { key: 'cbd28af6c34aaa64ae8c611502be7069ee422651', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: `arrow ${this.state} ${this.category}` }, h("path", { key: 'c210a7c82165283036bce1ed5b3aa2d0bd9b1665', d: "M6.00003 4C6.00003 4 9.99999 6.94596 10 8.00003C10 9.05411 6 12 6 12", stroke: "#212C65", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), this.type === 'icon_only' && this.showTooltip && (h("gb-tooltip", { key: '592facf9832d86e42bf4de2f1fb963857d607346', "show-arrow": true, arrow: "left", class: "tooltip" }, h("p", { key: '49b946a445def14ea1e7306a00d54bf86341d02c', slot: "label" }, this.label)))));
36
36
  }
37
37
  static get is() { return "gb-side-bar-item"; }
38
38
  static get encapsulation() { return "shadow"; }
@@ -70,7 +70,7 @@ export class GbSidebar {
70
70
  const logoSrc = getAssetPath(`assets/globus_bank_logo.svg`);
71
71
  const blueLogoSrc = getAssetPath(`assets/globus_bank_logo_blue.svg`);
72
72
  const whiteLogoSrc = getAssetPath(`assets/globus_bank_logo_white.svg`);
73
- return (h("div", { key: '9b0d3ddd4992c303adbf0bc325a39b7f9c7c43c5', class: `sidebar_div ${this.state} ${this.category}` }, this.category === 'colored_background' && (h("div", { key: '91565c50b130cba6c1cba2ceeca5338d27efaf29', class: "pattern" }, h("img", { key: 'd53634da43c66bb13c8a7fc008b5bc6218a411ad', src: patternSrc, alt: "" }))), h("div", { key: '8914b4374a74cc8487aa0893f6d5eafdcabf514d', class: "nav" }, h("div", { key: 'd909122be6669c326ea4d446765471247d943ef5', class: `sidebar_header ${this.state}` }, h("div", { key: 'be9cd1f7ec9be389cdd39b4f7c075655f644f989', class: `logo_and_name ${this.state}` }, this.state === 'expanded' && h(Fragment, null, this.category === 'plain_background' ? h("img", { src: blueLogoSrc }) : h("img", { src: whiteLogoSrc })), this.state === 'collapsed' && h("img", { key: 'f3415b4e4b2258cfe467c8c9ff7bcae3b6b7fb9b', src: logoSrc, alt: "" })), h("div", { key: 'ce42e8e67da12cc5de53c58beddda200c513c58b', class: `collapse_button ${this.state}` }, h("gb-collapse-button", { key: 'd3e22e14f8061bd6fe06463c98c2c8cce12fe197', color: this.category === 'plain_background' ? 'gray' : 'white', action: this.state === 'collapsed' ? 'expand' : 'collapse', onClick: () => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar()) }))), h("div", { key: '22da4616fdf886ffc4519eff16c61bf5b50cf1e0', class: "navigation" }, h("div", { key: '24f4a5f8935f8aa3e3d6ce871d0e68dd6ce0e1e7', class: "item" }, h("gb-side-bar-item", { key: 'bbd7caf910e51b9c1680f5b34e162c05a23a7e28', state: this.activeIndex === 0 ? 'active' : 'default', icon: this.firstItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(0), label: this.firstItemLabel }), h("gb-side-bar-item", { key: '9a38ae512b6bb111231ffc48385a758102e5d433', state: this.activeIndex === 1 ? 'active' : 'default', icon: this.secondItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(1), label: this.secondItemLabel }), this.thirdItemLabel && (h("gb-side-bar-item", { key: '3c4c25c1b719e70d52c74aca3a4b798b35b54881', state: this.activeIndex === 2 ? 'active' : 'default', icon: this.thirdItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(2), label: this.thirdItemLabel })), this.fourthItemLabel && (h("gb-side-bar-item", { key: 'd1a3b8ddb6278170aec5938c275d3c635e123db6', state: this.activeIndex === 3 ? 'active' : 'default', icon: this.fourthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(3), label: this.fourthItemLabel })), this.fifthItemLabel && (h("gb-side-bar-item", { key: '30518a09b45ef5d0ba4c86df2ca7ff764e3f80c3', state: this.activeIndex === 4 ? 'active' : 'default', icon: this.fifthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(4), label: this.fifthItemLabel })))), this.showSecondCategory && (h("div", { key: 'fee335eb1cf51e4178aeffbb6f3f0d536810d217', class: "navigation" }, h("div", { key: 'aec96fc86a405768364119c9c074b47db62b8841', class: "item" }, this.sixthItemLabel && (h("gb-side-bar-item", { key: '75f51014e1cce97a3117c0d978732981a5943a57', state: this.activeIndex === 5 ? 'active' : 'default', icon: this.sixthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(5), label: this.sixthItemLabel })), this.seventhItemLabel && (h("gb-side-bar-item", { key: '2194c86a5287359cb72b6265b8da169ade8c0588', state: this.activeIndex === 6 ? 'active' : 'default', icon: this.seventhItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(6), label: this.seventhItemLabel })), this.eighthItemLabel && (h("gb-side-bar-item", { key: '7c2d9b9e2209854818670a97efb51489db5bfb97', state: this.activeIndex === 7 ? 'active' : 'default', icon: this.eighthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(7), label: this.eighthItemLabel })), this.ninthItemLabel && (h("gb-side-bar-item", { key: 'b72d57bd41ed9e843182719d5ae5d80f103a8136', state: this.activeIndex === 8 ? 'active' : 'default', icon: this.ninthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(8), label: this.ninthItemLabel })), this.tenthItemLabel && (h("gb-side-bar-item", { key: '7313aac235c60986ce55215a09cb8dde0f1c57f0', state: this.activeIndex === 9 ? 'active' : 'default', icon: this.tenthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(9), label: this.tenthItemLabel })))))), this.state === 'expanded' && (h("div", { key: '5f14fcdd385e681f37800139d56129ce1159462a', class: "application_name" }, h("div", { key: '51e2ef73547722d66ec51ab0ccd56fdef6b64e0b', class: `wrapper ${this.category}` }, this.category === 'plain_background' && (h("div", { key: '102d36b3a8ce7883199048bdda647cc083f104b9', class: "application_name_pattern" }, h("img", { key: 'adec6371728e1697c22a98a7619f73448cb5f73d', src: patternSrc, alt: "" }))), h("div", { key: '618a60b0480a0a17a5bace5b536bf7ec27c01ce3', class: `application_icon ${this.category}`, innerHTML: this.leadingIconSvg }), h("span", { key: '1e7f178265707a686a61ffa17541c3ab46b23ee2', class: textClass }, h("slot", { key: 'c49be92bc5ce38b012aea60fbbcc2806765d961a', name: "application_name" })))))));
73
+ return (h("div", { key: '09343cb999e99fc8cee1eb8ad01310fc230a85e7', class: `sidebar_div ${this.state} ${this.category}` }, this.category === 'colored_background' && (h("div", { key: 'ec41ccb8a803f93e03be944d1f02ac36b4d49a67', class: "pattern" }, h("img", { key: '2bcdc4bd09a95cefaa706850f04e55208b7da79e', src: patternSrc, alt: "" }))), h("div", { key: '7b89cb6a92a3e3fee51c30b44cb05722de60f33d', class: "nav" }, h("div", { key: '181260b1a55f3c37ffb8aefd85feb1d5c08dde60', class: `sidebar_header ${this.state}` }, h("div", { key: '55c7e4fcbe7cccb44d192693384412859e434036', class: `logo_and_name ${this.state}` }, this.state === 'expanded' && h(Fragment, null, this.category === 'plain_background' ? h("img", { src: blueLogoSrc }) : h("img", { src: whiteLogoSrc })), this.state === 'collapsed' && h("img", { key: '6a113aa82975ae344a740a7c59ed567c694cca36', src: logoSrc, alt: "" })), h("div", { key: 'ef92ef7e229dc825cd853e0081a41f3645591b71', class: `collapse_button ${this.state}` }, h("gb-collapse-button", { key: 'fb06b1cd1e19bbc18acb423908f1e61b6f01bebf', color: this.category === 'plain_background' ? 'gray' : 'white', action: this.state === 'collapsed' ? 'expand' : 'collapse', onClick: () => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar()) }))), h("div", { key: 'e1c02353b947c876f0b4cdffba8b66e372a55cf4', class: "navigation" }, h("div", { key: '65bb47c5011afeaf43bb920c56ec920247824033', class: "item" }, h("gb-side-bar-item", { key: '16e3adcd20065e1d436cb3a7bf98b6ba600b8c19', state: this.activeIndex === 0 ? 'active' : 'default', icon: this.firstItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(0), label: this.firstItemLabel }), h("gb-side-bar-item", { key: 'e3a94274034bf7dccb2a5fdd5b4ea6edc5283cd4', state: this.activeIndex === 1 ? 'active' : 'default', icon: this.secondItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(1), label: this.secondItemLabel }), this.thirdItemLabel && (h("gb-side-bar-item", { key: '414c7b1606333a22f4ce4c67febf810b089fb595', state: this.activeIndex === 2 ? 'active' : 'default', icon: this.thirdItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(2), label: this.thirdItemLabel })), this.fourthItemLabel && (h("gb-side-bar-item", { key: '507da8f0d48bf3a291c0c467cf29617d61f50310', state: this.activeIndex === 3 ? 'active' : 'default', icon: this.fourthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(3), label: this.fourthItemLabel })), this.fifthItemLabel && (h("gb-side-bar-item", { key: '374bdbffead5f70937c995720451563ca3e0fb4b', state: this.activeIndex === 4 ? 'active' : 'default', icon: this.fifthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(4), label: this.fifthItemLabel })))), this.showSecondCategory && (h("div", { key: '264e746e8131c9de51b4001d9e977401a9ad6bbf', class: "navigation" }, h("div", { key: '0ba0096845d1ef12088b44a8642984c0c1108c95', class: "item" }, this.sixthItemLabel && (h("gb-side-bar-item", { key: '5d18fb852a6dfe0ae831fec0374e3b4de6b4ae5d', state: this.activeIndex === 5 ? 'active' : 'default', icon: this.sixthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(5), label: this.sixthItemLabel })), this.seventhItemLabel && (h("gb-side-bar-item", { key: '5c262f05fd1bd2be155129294f75b98ecd890f57', state: this.activeIndex === 6 ? 'active' : 'default', icon: this.seventhItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(6), label: this.seventhItemLabel })), this.eighthItemLabel && (h("gb-side-bar-item", { key: 'b07f49c20b0cad8d7b6559b5d67bd869db706017', state: this.activeIndex === 7 ? 'active' : 'default', icon: this.eighthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(7), label: this.eighthItemLabel })), this.ninthItemLabel && (h("gb-side-bar-item", { key: 'c8d6dcbd783aad66b3d0ebcc240843fd84b376b2', state: this.activeIndex === 8 ? 'active' : 'default', icon: this.ninthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(8), label: this.ninthItemLabel })), this.tenthItemLabel && (h("gb-side-bar-item", { key: '26de8ddbec91b473666850944685c2d377db2d09', state: this.activeIndex === 9 ? 'active' : 'default', icon: this.tenthItemIcon, category: this.category, type: this.state === 'collapsed' ? 'icon_only' : 'full_with_label', onClick: () => this.sideBarItemClicked(9), label: this.tenthItemLabel })))))), this.state === 'expanded' && (h("div", { key: 'dcdfe633d1ec316274c382b2c55fe8717fab4ef0', class: "application_name" }, h("div", { key: '50e0870d97d1af279b3919b077f026a494e2be2e', class: `wrapper ${this.category}` }, this.category === 'plain_background' && (h("div", { key: '5fecc12ed7cc032090d36cd6850ba4f4e738d8a3', class: "application_name_pattern" }, h("img", { key: 'de71804a8756db751c51176f4d214174e57405e9', src: patternSrc, alt: "" }))), h("div", { key: 'ab8ffc59d79400223070ee0e4da0d8c70b784293', class: `application_icon ${this.category}`, innerHTML: this.leadingIconSvg }), h("span", { key: '11999f4882f109e9ef9ba44525a1b8c053f6b931', class: textClass }, h("slot", { key: '6a7d62e35ed12856c60aff3724babffb82b430d1', name: "application_name" })))))));
74
74
  }
75
75
  static get is() { return "gb-sidebar"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -3,28 +3,36 @@ export class GbSlider {
3
3
  constructor() {
4
4
  this.isDragging = false;
5
5
  this.activeThumb = null;
6
- this.snapPoints = [0, 25, 50, 75, 100];
7
6
  this.handleMouseDown = (_e, thumb) => {
8
7
  this.isDragging = true;
9
8
  this.activeThumb = thumb;
9
+ // Clamp the initial value of the thumb within bounds
10
+ if (thumb === 'left') {
11
+ this.leftValue = Math.min(this.leftValue, this.rightValue - 1);
12
+ }
13
+ else {
14
+ this.rightValue = Math.max(this.rightValue, this.leftValue + 1);
15
+ }
10
16
  document.addEventListener('mousemove', this.handleMouseMove);
11
17
  document.addEventListener('mouseup', this.handleMouseUp);
12
18
  };
13
19
  this.handleMouseMove = (e) => {
14
20
  if (!this.isDragging)
15
21
  return;
16
- // Calculate the position of the mouse relative to the slider's width.
17
- const position = e.offsetX / this.containerEl.offsetWidth;
18
- // Convert the position into a value within the slider's range and snap to the nearest point.
19
- const value = this.findNearestSnapPoint(position * 100);
20
- // Update the appropriate thumb's value.
22
+ // Get the bounding box of the slider container
23
+ const boundingBox = this.containerEl.getBoundingClientRect();
24
+ // Calculate the mouse position relative to the slider container
25
+ const position = ((e.clientX - boundingBox.left) / boundingBox.width) * (this.max - this.min) + this.min;
26
+ // Snap the position to the nearest integer increment of 1
27
+ const value = Math.round(position);
28
+ // Update the appropriate thumb's value, clamping it within bounds
21
29
  if (this.activeThumb === 'left') {
22
- this.leftValue = Math.min(value, this.rightValue - 25);
30
+ this.leftValue = Math.max(this.min, Math.min(value, this.rightValue - 1)); // Ensure it doesn't exceed right thumb
23
31
  }
24
32
  else {
25
- this.rightValue = Math.max(value, this.leftValue + 25);
33
+ this.rightValue = Math.min(this.max, Math.max(value, this.leftValue + 1)); // Ensure it doesn't go below left thumb
26
34
  }
27
- // Update the track's appearance and emit the new values.
35
+ // Update the track's appearance and emit the new values
28
36
  this.updateTrack();
29
37
  this.thumbValueChanged.emit({ left: this.leftValue, right: this.rightValue });
30
38
  };
@@ -34,29 +42,39 @@ export class GbSlider {
34
42
  document.removeEventListener('mousemove', this.handleMouseMove);
35
43
  document.removeEventListener('mouseup', this.handleMouseUp);
36
44
  };
37
- this.min = undefined;
38
- this.max = undefined;
45
+ this.min = 0;
46
+ this.max = 100;
39
47
  this.thumbType = undefined;
40
- this.leftValue = 0;
41
- this.rightValue = 100;
48
+ this.leftControl = 0;
49
+ this.rightControl = 100;
50
+ this.label = undefined;
51
+ this.unit = '';
52
+ this.unitPosition = 'left';
53
+ this.leftValue = undefined;
54
+ this.rightValue = undefined;
55
+ }
56
+ componentWillLoad() {
57
+ // Set the initial values for the slider
58
+ this.leftValue = Math.max(this.min, Math.min(this.leftControl, this.max));
59
+ this.rightValue = Math.max(this.min, Math.min(this.rightControl, this.max));
42
60
  }
43
61
  componentDidLoad() {
44
62
  this.trackEl = this.el.shadowRoot.querySelector('.track');
45
63
  this.containerEl = this.el.shadowRoot.querySelector('.slider-container');
46
64
  this.updateTrack();
47
65
  }
48
- findNearestSnapPoint(value) {
49
- return this.snapPoints.reduce((prev, curr) => Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev);
50
- }
51
66
  updateTrack() {
52
- const leftPos = this.leftValue;
53
- const rightPos = this.rightValue;
67
+ const leftPos = ((this.leftValue - this.min) / (this.max - this.min)) * 100;
68
+ const rightPos = ((this.rightValue - this.min) / (this.max - this.min)) * 100;
54
69
  // Update the track's left position and width to match the thumb positions.
55
70
  this.trackEl.style.left = `${leftPos}%`;
56
71
  this.trackEl.style.width = `${rightPos - leftPos}%`;
57
72
  }
73
+ formatValue(value) {
74
+ return this.unitPosition === 'left' ? `${this.unit}${value}` : `${value}${this.unit}`;
75
+ }
58
76
  render() {
59
- return (h("div", { key: '5fed7fbebe67ef71255f4de432e69ca32667206b', class: "slider-container", ref: (el) => this.containerEl = el }, h("div", { key: '375e9bbceec28ea087d885ae808bccda3ec96e3e', class: "track", ref: (el) => this.trackEl = el }), h("gb-slider-control-handle", { key: '0cb58ea4a3a9916677e29f465f2a38a76f984dc4', class: "left", value: this.leftValue, type: this.thumbType, style: { left: `${this.leftValue}%` }, onMouseDown: (e) => this.handleMouseDown(e, 'left') }), h("gb-slider-control-handle", { key: '2e69b6d591e9b302bcccd2281c08a8d2a027277a', class: "right", value: this.rightValue, type: this.thumbType, style: { left: `${this.rightValue}%` }, onMouseDown: (e) => this.handleMouseDown(e, 'right') })));
77
+ return (h("div", { key: '7343e2e51c76a013c9987e75e96ca4583c88c4df', class: "slider-container", ref: el => (this.containerEl = el) }, h("div", { key: 'e1e41b220d4edd38b40ab874863f9f1cf548e662', class: "track", ref: el => (this.trackEl = el) }), h("gb-slider-control-handle", { key: 'e1c6bea41ca00c66a038918c24ffc0ea0e90939f', class: "left", value: this.formatValue(this.leftValue), type: this.label === 'false' ? '' : this.label === 'bottom' ? 'text' : this.label === 'top_floating' ? 'tooltip' : null, style: { left: `${((this.leftValue - this.min) / (this.max - this.min)) * 100}%` }, onMouseDown: e => this.handleMouseDown(e, 'left') }), h("gb-slider-control-handle", { key: '28aadc048c5eacaced23bc7f5788495c0d8eeedb', class: "right", value: this.formatValue(this.rightValue), type: this.label === 'false' ? '' : this.label === 'bottom' ? 'text' : this.label === 'top_floating' ? 'tooltip' : null, style: { left: `${((this.rightValue - this.min) / (this.max - this.min)) * 100}%` }, onMouseDown: e => this.handleMouseDown(e, 'right') })));
60
78
  }
61
79
  static get is() { return "gb-slider"; }
62
80
  static get encapsulation() { return "shadow"; }
@@ -87,7 +105,8 @@ export class GbSlider {
87
105
  "text": ""
88
106
  },
89
107
  "attribute": "min",
90
- "reflect": false
108
+ "reflect": false,
109
+ "defaultValue": "0"
91
110
  },
92
111
  "max": {
93
112
  "type": "number",
@@ -104,7 +123,8 @@ export class GbSlider {
104
123
  "text": ""
105
124
  },
106
125
  "attribute": "max",
107
- "reflect": false
126
+ "reflect": false,
127
+ "defaultValue": "100"
108
128
  },
109
129
  "thumbType": {
110
130
  "type": "string",
@@ -122,6 +142,95 @@ export class GbSlider {
122
142
  },
123
143
  "attribute": "thumb-type",
124
144
  "reflect": false
145
+ },
146
+ "leftControl": {
147
+ "type": "number",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "number",
151
+ "resolved": "number",
152
+ "references": {}
153
+ },
154
+ "required": false,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": ""
159
+ },
160
+ "attribute": "left-control",
161
+ "reflect": false,
162
+ "defaultValue": "0"
163
+ },
164
+ "rightControl": {
165
+ "type": "number",
166
+ "mutable": false,
167
+ "complexType": {
168
+ "original": "number",
169
+ "resolved": "number",
170
+ "references": {}
171
+ },
172
+ "required": false,
173
+ "optional": false,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": ""
177
+ },
178
+ "attribute": "right-control",
179
+ "reflect": false,
180
+ "defaultValue": "100"
181
+ },
182
+ "label": {
183
+ "type": "string",
184
+ "mutable": false,
185
+ "complexType": {
186
+ "original": "'false' | 'bottom' | 'top_floating'",
187
+ "resolved": "\"bottom\" | \"false\" | \"top_floating\"",
188
+ "references": {}
189
+ },
190
+ "required": false,
191
+ "optional": false,
192
+ "docs": {
193
+ "tags": [],
194
+ "text": ""
195
+ },
196
+ "attribute": "label",
197
+ "reflect": false
198
+ },
199
+ "unit": {
200
+ "type": "string",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "string",
204
+ "resolved": "string",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": ""
212
+ },
213
+ "attribute": "unit",
214
+ "reflect": false,
215
+ "defaultValue": "''"
216
+ },
217
+ "unitPosition": {
218
+ "type": "string",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "'left' | 'right'",
222
+ "resolved": "\"left\" | \"right\"",
223
+ "references": {}
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [],
229
+ "text": ""
230
+ },
231
+ "attribute": "unit-position",
232
+ "reflect": false,
233
+ "defaultValue": "'left'"
125
234
  }
126
235
  };
127
236
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gb-slider.js","sourceRoot":"","sources":["../../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C3E,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,OAAO,GAAG,CAAC;QACxC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,QAAQ,GAAG,OAAO,GAAG,CAAC;IACtD,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAC,kBAAkB,EAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,GAAG,EAAoB;YAChF,4DAAK,KAAK,EAAC,OAAO,EAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,GAAG,EAAoB,GAAQ;YAE3E,iFACE,KAAK,EAAC,MAAM,EACZ,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,IAAI,EAAE,IAAI,CAAC,SAAS,EACpB,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,GAAG,EAAE,EACrC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,MAAM,CAAC,GACzB;YAE5B,iFACE,KAAK,EAAC,OAAO,EACb,KAAK,EAAE,IAAI,CAAC,UAAU,EACtB,IAAI,EAAE,IAAI,CAAC,SAAS,EACpB,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,EAAE,EACtC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,CACxB,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, State, Event, EventEmitter, h, Element } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'gb-slider',\r\n styleUrl: 'gb-slider.css',\r\n shadow: true,\r\n})\r\nexport class GbSlider {\r\n @Element() el: HTMLElement;\r\n\r\n @Prop() min: number; \r\n @Prop() max: number; \r\n @Prop() thumbType: 'text' | 'tooltip'; \r\n\r\n @State() leftValue: number = 0; \r\n @State() rightValue: number = 100; \r\n\r\n @Event() thumbValueChanged: EventEmitter<{ left: number; right: number }>;\r\n\r\n private trackEl: HTMLDivElement; \r\n private containerEl: HTMLDivElement; \r\n private isDragging: boolean = false; \r\n private activeThumb: 'left' | 'right' | null = null;\r\n\r\n private snapPoints = [0, 25, 50, 75, 100];\r\n\r\n componentDidLoad() {\r\n this.trackEl = this.el.shadowRoot.querySelector('.track');\r\n this.containerEl = this.el.shadowRoot.querySelector('.slider-container');\r\n this.updateTrack(); \r\n }\r\n\r\n handleMouseDown = (_e: MouseEvent, thumb: 'left' | 'right') => {\r\n this.isDragging = true;\r\n this.activeThumb = thumb; \r\n document.addEventListener('mousemove', this.handleMouseMove);\r\n document.addEventListener('mouseup', this.handleMouseUp);\r\n }\r\n\r\n handleMouseMove = (e: MouseEvent) => {\r\n if (!this.isDragging) return; \r\n\r\n // Calculate the position of the mouse relative to the slider's width.\r\n const position = e.offsetX / this.containerEl.offsetWidth;\r\n \r\n // Convert the position into a value within the slider's range and snap to the nearest point.\r\n const value = this.findNearestSnapPoint(position * 100);\r\n\r\n // Update the appropriate thumb's value.\r\n if (this.activeThumb === 'left') {\r\n this.leftValue = Math.min(value, this.rightValue - 25);\r\n } else {\r\n this.rightValue = Math.max(value, this.leftValue + 25);\r\n }\r\n\r\n // Update the track's appearance and emit the new values.\r\n this.updateTrack();\r\n this.thumbValueChanged.emit({ left: this.leftValue, right: this.rightValue });\r\n }\r\n\r\n handleMouseUp = () => {\r\n this.isDragging = false; \r\n this.activeThumb = null; \r\n document.removeEventListener('mousemove', this.handleMouseMove);\r\n document.removeEventListener('mouseup', this.handleMouseUp);\r\n }\r\n\r\n findNearestSnapPoint(value: number): number {\r\n return this.snapPoints.reduce((prev, curr) => \r\n Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev\r\n );\r\n }\r\n\r\n updateTrack() {\r\n const leftPos = this.leftValue; \r\n const rightPos = this.rightValue; \r\n \r\n // Update the track's left position and width to match the thumb positions.\r\n this.trackEl.style.left = `${leftPos}%`;\r\n this.trackEl.style.width = `${rightPos - leftPos}%`;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"slider-container\" ref={(el) => this.containerEl = el as HTMLDivElement}>\r\n <div class=\"track\" ref={(el) => this.trackEl = el as HTMLDivElement}></div>\r\n \r\n <gb-slider-control-handle \r\n class=\"left\"\r\n value={this.leftValue}\r\n type={this.thumbType}\r\n style={{ left: `${this.leftValue}%` }}\r\n onMouseDown={(e) => this.handleMouseDown(e, 'left')}\r\n ></gb-slider-control-handle>\r\n\r\n <gb-slider-control-handle \r\n class=\"right\"\r\n value={this.rightValue}\r\n type={this.thumbType}\r\n style={{ left: `${this.rightValue}%` }}\r\n onMouseDown={(e) => this.handleMouseDown(e, 'right')}\r\n ></gb-slider-control-handle>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"gb-slider.js","sourceRoot":"","sources":["../../../src/components/gb-slider/gb-slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOxF,MAAM,OAAO,QAAQ;;QAgBX,eAAU,GAAY,KAAK,CAAC;QAC5B,gBAAW,GAA4B,IAAI,CAAC;QAcpD,oBAAe,GAAG,CAAC,EAAc,EAAE,KAAuB,EAAE,EAAE;YAC5D,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YAEzB,qDAAqD;YACrD,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;gBACrB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, State, Event, EventEmitter, h, Element } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'gb-slider',\r\n styleUrl: 'gb-slider.css',\r\n shadow: true,\r\n})\r\nexport class GbSlider {\r\n @Element() el: HTMLElement;\r\n @Prop() min: number = 0;\r\n @Prop() max: number = 100;\r\n @Prop() thumbType: 'text' | 'tooltip';\r\n @Prop() leftControl: number = 0; // Developer can set this\r\n @Prop() rightControl: number = 100; // Developer can set this\r\n @Prop() label: 'false' | 'bottom' | 'top_floating';\r\n @Prop() unit: string = '';\r\n @Prop() unitPosition: 'left' | 'right' = 'left';\r\n @State() leftValue: number;\r\n @State() rightValue: number;\r\n @Event() thumbValueChanged: EventEmitter<{ left: number; right: number }>;\r\n\r\n private trackEl: HTMLDivElement;\r\n private containerEl: HTMLDivElement;\r\n private isDragging: boolean = false;\r\n private activeThumb: 'left' | 'right' | null = null;\r\n\r\n componentWillLoad() {\r\n // Set the initial values for the slider\r\n this.leftValue = Math.max(this.min, Math.min(this.leftControl, this.max));\r\n this.rightValue = Math.max(this.min, Math.min(this.rightControl, this.max));\r\n }\r\n\r\n componentDidLoad() {\r\n this.trackEl = this.el.shadowRoot.querySelector('.track');\r\n this.containerEl = this.el.shadowRoot.querySelector('.slider-container');\r\n this.updateTrack();\r\n }\r\n\r\n handleMouseDown = (_e: MouseEvent, thumb: 'left' | 'right') => {\r\n this.isDragging = true;\r\n this.activeThumb = thumb;\r\n\r\n // Clamp the initial value of the thumb within bounds\r\n if (thumb === 'left') {\r\n this.leftValue = Math.min(this.leftValue, this.rightValue - 1);\r\n } else {\r\n this.rightValue = Math.max(this.rightValue, this.leftValue + 1);\r\n }\r\n\r\n document.addEventListener('mousemove', this.handleMouseMove);\r\n document.addEventListener('mouseup', this.handleMouseUp);\r\n };\r\n\r\n handleMouseMove = (e: MouseEvent) => {\r\n if (!this.isDragging) return;\r\n\r\n // Get the bounding box of the slider container\r\n const boundingBox = this.containerEl.getBoundingClientRect();\r\n\r\n // Calculate the mouse position relative to the slider container\r\n const position = ((e.clientX - boundingBox.left) / boundingBox.width) * (this.max - this.min) + this.min;\r\n\r\n // Snap the position to the nearest integer increment of 1\r\n const value = Math.round(position);\r\n\r\n // Update the appropriate thumb's value, clamping it within bounds\r\n if (this.activeThumb === 'left') {\r\n this.leftValue = Math.max(this.min, Math.min(value, this.rightValue - 1)); // Ensure it doesn't exceed right thumb\r\n } else {\r\n this.rightValue = Math.min(this.max, Math.max(value, this.leftValue + 1)); // Ensure it doesn't go below left thumb\r\n }\r\n\r\n // Update the track's appearance and emit the new values\r\n this.updateTrack();\r\n this.thumbValueChanged.emit({ left: this.leftValue, right: this.rightValue });\r\n };\r\n\r\n handleMouseUp = () => {\r\n this.isDragging = false;\r\n this.activeThumb = null;\r\n document.removeEventListener('mousemove', this.handleMouseMove);\r\n document.removeEventListener('mouseup', this.handleMouseUp);\r\n };\r\n\r\n updateTrack() {\r\n const leftPos = ((this.leftValue - this.min) / (this.max - this.min)) * 100;\r\n const rightPos = ((this.rightValue - this.min) / (this.max - this.min)) * 100;\r\n\r\n // Update the track's left position and width to match the thumb positions.\r\n this.trackEl.style.left = `${leftPos}%`;\r\n this.trackEl.style.width = `${rightPos - leftPos}%`;\r\n }\r\n\r\n formatValue(value: number): string {\r\n return this.unitPosition === 'left' ? `${this.unit}${value}` : `${value}${this.unit}`;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"slider-container\" ref={el => (this.containerEl = el as HTMLDivElement)}>\r\n <div class=\"track\" ref={el => (this.trackEl = el as HTMLDivElement)}></div>\r\n\r\n <gb-slider-control-handle\r\n class=\"left\"\r\n value={this.formatValue(this.leftValue)}\r\n type={this.label === 'false' ? '' : this.label === 'bottom' ? 'text' : this.label === 'top_floating' ? 'tooltip' : null}\r\n style={{ left: `${((this.leftValue - this.min) / (this.max - this.min)) * 100}%` }}\r\n onMouseDown={e => this.handleMouseDown(e, 'left')}\r\n ></gb-slider-control-handle>\r\n <gb-slider-control-handle\r\n class=\"right\"\r\n value={this.formatValue(this.rightValue)}\r\n type={this.label === 'false' ? '' : this.label === 'bottom' ? 'text' : this.label === 'top_floating' ? 'tooltip' : null}\r\n style={{ left: `${((this.rightValue - this.min) / (this.max - this.min)) * 100}%` }}\r\n onMouseDown={e => this.handleMouseDown(e, 'right')}\r\n ></gb-slider-control-handle>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}