globuswebcomponents 0.9.5 → 0.9.7

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 (617) 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} +397 -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 +17 -9
  151. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +65 -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 +43 -15
  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 +1 -385
  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 +47 -29
  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 +48 -24
  252. package/dist/components/gb-rich-text.js.map +1 -1
  253. package/dist/components/gb-scrollbar.js +2 -2
  254. package/dist/components/gb-side-bar-item.js +1 -1
  255. package/dist/components/gb-sidebar.js +10 -10
  256. package/dist/components/gb-slider-control-handle.js +1 -1
  257. package/dist/components/gb-slider.js +45 -22
  258. package/dist/components/gb-slider.js.map +1 -1
  259. package/dist/components/gb-status-indicator.js +1 -1
  260. package/dist/components/gb-tab-button-base.js +1 -1
  261. package/dist/components/gb-tag-checkbox.js +1 -1
  262. package/dist/components/gb-tag-close.js +1 -1
  263. package/dist/components/gb-tag-count.js +1 -1
  264. package/dist/components/gb-tag.js +1 -1
  265. package/dist/components/gb-textarea-input-field.js +1 -1
  266. package/dist/components/gb-toast-button.js +1 -1
  267. package/dist/components/gb-toast.js +6 -6
  268. package/dist/components/gb-toggle-base.js +1 -1
  269. package/dist/components/gb-toggle.js +3 -3
  270. package/dist/components/gb-token-field.js +3 -3
  271. package/dist/components/gb-tooltip.js +1 -1
  272. package/dist/components/gb-verification-code-field.js +4 -4
  273. package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
  274. package/dist/components/gb-wysiwyg-toolbar.js +1 -1
  275. package/dist/components/gb-wysiwyg-tooltip.js +2 -2
  276. package/dist/components/index.js +1 -1
  277. package/dist/components/{p-172c2487.js → p-0880c70c.js} +3 -3
  278. package/dist/components/{p-172c2487.js.map → p-0880c70c.js.map} +1 -1
  279. package/dist/components/{p-a4ac9229.js → p-0ad4eab9.js} +4 -4
  280. package/dist/components/{p-a4ac9229.js.map → p-0ad4eab9.js.map} +1 -1
  281. package/dist/components/{p-4e87a1a4.js → p-116a3de5.js} +9 -9
  282. package/dist/components/{p-4e87a1a4.js.map → p-116a3de5.js.map} +1 -1
  283. package/dist/components/{p-e9099a82.js → p-1370acdb.js} +7 -7
  284. package/dist/components/p-1370acdb.js.map +1 -0
  285. package/dist/components/{p-2e839805.js → p-144bdbdc.js} +3 -3
  286. package/dist/components/{p-2e839805.js.map → p-144bdbdc.js.map} +1 -1
  287. package/dist/components/{p-6c168218.js → p-258cafb9.js} +3 -3
  288. package/dist/components/{p-6c168218.js.map → p-258cafb9.js.map} +1 -1
  289. package/dist/components/{p-6bc60646.js → p-2fedd9da.js} +6 -6
  290. package/dist/components/{p-6bc60646.js.map → p-2fedd9da.js.map} +1 -1
  291. package/dist/components/{p-4710b26e.js → p-30587454.js} +28 -21
  292. package/dist/components/p-30587454.js.map +1 -0
  293. package/dist/components/{p-bc05d524.js → p-38b74f4c.js} +3 -3
  294. package/dist/components/{p-bc05d524.js.map → p-38b74f4c.js.map} +1 -1
  295. package/dist/components/p-3ef09e09.js +39 -0
  296. package/dist/components/p-3ef09e09.js.map +1 -0
  297. package/dist/components/{p-b8cc4ced.js → p-40545eb0.js} +21 -5
  298. package/dist/components/p-40545eb0.js.map +1 -0
  299. package/dist/components/{p-4f31ae97.js → p-47052b60.js} +1 -2
  300. package/dist/components/p-47052b60.js.map +1 -0
  301. package/dist/components/{p-4fc019fa.js → p-4a9d5d98.js} +2 -2
  302. package/dist/components/{p-4fc019fa.js.map → p-4a9d5d98.js.map} +1 -1
  303. package/dist/components/{p-cb12d812.js → p-4bd1630c.js} +4 -4
  304. package/dist/components/{p-cb12d812.js.map → p-4bd1630c.js.map} +1 -1
  305. package/dist/components/{p-fe051273.js → p-5a175e1b.js} +9 -9
  306. package/dist/components/{p-fe051273.js.map → p-5a175e1b.js.map} +1 -1
  307. package/dist/components/{p-d287e4f9.js → p-5b236279.js} +3 -3
  308. package/dist/components/{p-d287e4f9.js.map → p-5b236279.js.map} +1 -1
  309. package/dist/components/{p-a5c62415.js → p-5c90cd54.js} +2 -2
  310. package/dist/components/{p-a5c62415.js.map → p-5c90cd54.js.map} +1 -1
  311. package/dist/components/{p-8ea8fb2e.js → p-62cba16e.js} +72 -28
  312. package/dist/components/p-62cba16e.js.map +1 -0
  313. package/dist/components/{p-23eeb711.js → p-6b417d00.js} +5 -5
  314. package/dist/components/{p-23eeb711.js.map → p-6b417d00.js.map} +1 -1
  315. package/dist/components/{p-efc36361.js → p-6d45d115.js} +5 -5
  316. package/dist/components/{p-efc36361.js.map → p-6d45d115.js.map} +1 -1
  317. package/dist/components/{p-66ae8c03.js → p-6ed7f8fd.js} +8 -8
  318. package/dist/components/{p-66ae8c03.js.map → p-6ed7f8fd.js.map} +1 -1
  319. package/dist/components/{p-97d4cbd6.js → p-6ee31d8b.js} +2 -2
  320. package/dist/components/{p-97d4cbd6.js.map → p-6ee31d8b.js.map} +1 -1
  321. package/dist/components/{p-dae08e66.js → p-75e5ba2a.js} +9 -9
  322. package/dist/components/{p-dae08e66.js.map → p-75e5ba2a.js.map} +1 -1
  323. package/dist/components/{p-79b9747d.js → p-7def9a0c.js} +4 -4
  324. package/dist/components/{p-79b9747d.js.map → p-7def9a0c.js.map} +1 -1
  325. package/dist/components/{p-7a028adc.js → p-86a65382.js} +3 -3
  326. package/dist/components/{p-7a028adc.js.map → p-86a65382.js.map} +1 -1
  327. package/dist/components/{p-58074dfd.js → p-92560291.js} +3 -3
  328. package/dist/components/{p-58074dfd.js.map → p-92560291.js.map} +1 -1
  329. package/dist/components/{p-33797063.js → p-99f8eb85.js} +5 -5
  330. package/dist/components/{p-33797063.js.map → p-99f8eb85.js.map} +1 -1
  331. package/dist/components/{p-4d14d191.js → p-a5be24df.js} +4 -4
  332. package/dist/components/{p-4d14d191.js.map → p-a5be24df.js.map} +1 -1
  333. package/dist/components/{p-e1b8bc90.js → p-ad960c29.js} +5 -2
  334. package/dist/components/p-ad960c29.js.map +1 -0
  335. package/dist/components/{p-0ab66ef0.js → p-b17585ec.js} +3 -3
  336. package/dist/components/{p-0ab66ef0.js.map → p-b17585ec.js.map} +1 -1
  337. package/dist/components/{p-2dd93b0d.js → p-b31412be.js} +2 -2
  338. package/dist/components/{p-2dd93b0d.js.map → p-b31412be.js.map} +1 -1
  339. package/dist/components/{p-bf85c0fa.js → p-b86bef4d.js} +6 -6
  340. package/dist/components/{p-bf85c0fa.js.map → p-b86bef4d.js.map} +1 -1
  341. package/dist/components/{p-45a185a6.js → p-bb61710a.js} +2 -2
  342. package/dist/components/{p-45a185a6.js.map → p-bb61710a.js.map} +1 -1
  343. package/dist/components/{p-6a00453d.js → p-bd1c23b9.js} +3 -3
  344. package/dist/components/{p-6a00453d.js.map → p-bd1c23b9.js.map} +1 -1
  345. package/dist/components/{p-b3fba286.js → p-c14ae549.js} +3 -3
  346. package/dist/components/{p-b3fba286.js.map → p-c14ae549.js.map} +1 -1
  347. package/dist/components/{p-15057414.js → p-c66ad664.js} +2 -2
  348. package/dist/components/{p-15057414.js.map → p-c66ad664.js.map} +1 -1
  349. package/dist/components/{p-677c05f3.js → p-c74e6b18.js} +47 -23
  350. package/dist/components/p-c74e6b18.js.map +1 -0
  351. package/dist/components/{p-56f43e54.js → p-cb100f8e.js} +2 -2
  352. package/dist/components/{p-56f43e54.js.map → p-cb100f8e.js.map} +1 -1
  353. package/dist/components/p-cf36ddf6.js +400 -0
  354. package/dist/components/p-cf36ddf6.js.map +1 -0
  355. package/dist/components/{p-61d6b9a4.js → p-d0c7cb58.js} +4 -4
  356. package/dist/components/p-d0c7cb58.js.map +1 -0
  357. package/dist/components/{p-9447c1aa.js → p-db66e3e7.js} +7 -7
  358. package/dist/components/{p-9447c1aa.js.map → p-db66e3e7.js.map} +1 -1
  359. package/dist/components/{p-9b0f7f28.js → p-db744951.js} +3 -3
  360. package/dist/components/{p-9b0f7f28.js.map → p-db744951.js.map} +1 -1
  361. package/dist/components/{p-8ec4b241.js → p-e671339d.js} +16 -12
  362. package/dist/components/p-e671339d.js.map +1 -0
  363. package/dist/components/{p-f5df341d.js → p-ef76a407.js} +3 -3
  364. package/dist/components/{p-f5df341d.js.map → p-ef76a407.js.map} +1 -1
  365. package/dist/components/{p-52a05610.js → p-f44cfa90.js} +6 -8
  366. package/dist/components/p-f44cfa90.js.map +1 -0
  367. package/dist/components/test-input-tag.js +14 -14
  368. package/dist/esm/gb-avatar-add-button.entry.js +1 -1
  369. package/dist/esm/gb-avatar-dropdown.entry.js +1 -1
  370. package/dist/esm/gb-avatar-group.entry.js +2 -2
  371. package/dist/esm/gb-avatar-label-group.entry.js +2 -2
  372. package/dist/esm/gb-avatar-profile-photo.entry.js +2 -2
  373. package/dist/esm/{gb-avatar_40.entry.js → gb-avatar_44.entry.js} +394 -85
  374. package/dist/esm/gb-avatar_44.entry.js.map +1 -0
  375. package/dist/esm/gb-checkbox-group-item.entry.js +1 -1
  376. package/dist/esm/gb-checkbox-group.entry.js +1 -1
  377. package/dist/esm/gb-export-dropdown-item_2.entry.js +1 -1
  378. package/dist/esm/gb-export-dropdown.entry.js +2 -2
  379. package/dist/esm/gb-export-sub-dropdown-item.entry.js +1 -1
  380. package/dist/esm/gb-help-dropdown.entry.js +2 -2
  381. package/dist/esm/gb-megainput-field.entry.js +3 -3
  382. package/dist/esm/gb-pagination-dot-group.entry.js +2 -2
  383. package/dist/esm/gb-progress-circle.entry.js +2 -2
  384. package/dist/esm/gb-rich-text.entry.js +2 -2
  385. package/dist/esm/gb-scrollbar.entry.js +2 -2
  386. package/dist/esm/gb-textarea-input-field.entry.js +1 -1
  387. package/dist/esm/gb-toggle.entry.js +2 -2
  388. package/dist/esm/gb-token-field.entry.js +2 -2
  389. package/dist/esm/gb-verification-code-field.entry.js +3 -3
  390. package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
  391. package/dist/esm/gb-wysiwyg-toolbar.entry.js +1 -1
  392. package/dist/esm/gb-wysiwyg-tooltip.entry.js +1 -1
  393. package/dist/esm/globuscomponents.js +3 -3
  394. package/dist/esm/{index-f6b9f9bf.js → index-4b3f6d77.js} +5 -2
  395. package/dist/esm/index-4b3f6d77.js.map +1 -0
  396. package/dist/esm/loader.js +3 -3
  397. package/dist/esm/{reusableModels-e864cf6e.js → reusableModels-8496e911.js} +1 -2
  398. package/dist/esm/reusableModels-8496e911.js.map +1 -0
  399. package/dist/esm/test-input-tag.entry.js +4 -4
  400. package/dist/globuscomponents/assets/NG.svg +14 -14
  401. package/dist/globuscomponents/assets/Tooltip.svg +4 -4
  402. package/dist/globuscomponents/assets/alert-02.svg +6 -6
  403. package/dist/globuscomponents/assets/arrow-left-02.svg +5 -5
  404. package/dist/globuscomponents/assets/arrow-right-02.svg +5 -5
  405. package/dist/globuscomponents/assets/arrow-turn-backward.svg +5 -5
  406. package/dist/globuscomponents/assets/bar.svg +3 -3
  407. package/dist/globuscomponents/assets/bar_white.svg +3 -3
  408. package/dist/globuscomponents/assets/calendar-02.svg +6 -6
  409. package/dist/globuscomponents/assets/cancel-01.svg +5 -5
  410. package/dist/globuscomponents/assets/checkbox disabled_indeterminate.svg +5 -5
  411. package/dist/globuscomponents/assets/checkcircle default_checked.svg +5 -5
  412. package/dist/globuscomponents/assets/checkcircle default_unchecked.svg +3 -3
  413. package/dist/globuscomponents/assets/checkcircle disabled_checked.svg +5 -5
  414. package/dist/globuscomponents/assets/checkcircle disabled_unchecked.svg +3 -3
  415. package/dist/globuscomponents/assets/checked_indeterminate.svg +5 -5
  416. package/dist/globuscomponents/assets/circle.svg +6 -6
  417. package/dist/globuscomponents/assets/column-insert.svg +5 -5
  418. package/dist/globuscomponents/assets/company.svg +4 -4
  419. package/dist/globuscomponents/assets/copy-01.svg +5 -5
  420. package/dist/globuscomponents/assets/dashboard-square-03.svg +14 -14
  421. package/dist/globuscomponents/assets/database-sync.svg +6 -6
  422. package/dist/globuscomponents/assets/database.svg +6 -6
  423. package/dist/globuscomponents/assets/default-file-icons/default_csv.svg +6 -0
  424. package/dist/globuscomponents/assets/default-file-icons/default_doc.svg +6 -0
  425. package/dist/globuscomponents/assets/default-file-icons/default_docx.svg +6 -0
  426. package/dist/globuscomponents/assets/default-file-icons/default_jpeg.svg +6 -0
  427. package/dist/globuscomponents/assets/default-file-icons/default_jpg.svg +6 -0
  428. package/dist/globuscomponents/assets/default-file-icons/default_mp3.svg +6 -0
  429. package/dist/globuscomponents/assets/default-file-icons/default_mp4.svg +6 -0
  430. package/dist/globuscomponents/assets/default-file-icons/default_pdf.svg +6 -0
  431. package/dist/globuscomponents/assets/default-file-icons/default_ppt.svg +6 -0
  432. package/dist/globuscomponents/assets/default-file-icons/default_pptx.svg +6 -0
  433. package/dist/globuscomponents/assets/default-file-icons/default_rar.svg +6 -0
  434. package/dist/globuscomponents/assets/default-file-icons/default_svg.svg +6 -0
  435. package/dist/globuscomponents/assets/default-file-icons/default_txt.svg +6 -0
  436. package/dist/globuscomponents/assets/default-file-icons/default_xls.svg +6 -0
  437. package/dist/globuscomponents/assets/default-file-icons/default_xlsx.svg +6 -0
  438. package/dist/globuscomponents/assets/default-file-icons/default_zip.svg +6 -0
  439. package/dist/globuscomponents/assets/default_checked.svg +5 -5
  440. package/dist/globuscomponents/assets/default_unchecked.svg +3 -3
  441. package/dist/globuscomponents/assets/delete-02.svg +3 -3
  442. package/dist/globuscomponents/assets/disabled.svg +4 -4
  443. package/dist/globuscomponents/assets/disabled_checked.svg +5 -5
  444. package/dist/globuscomponents/assets/disabled_indeterminate.svg +5 -5
  445. package/dist/globuscomponents/assets/exchange-01.svg +5 -5
  446. package/dist/globuscomponents/assets/file-verified.svg +6 -6
  447. package/dist/globuscomponents/assets/filter-horizontal.svg +9 -9
  448. package/dist/globuscomponents/assets/flag-01.svg +5 -5
  449. package/dist/globuscomponents/assets/globus_bank_logo.svg +11 -11
  450. package/dist/globuscomponents/assets/globus_bank_logo_blue.svg +13 -13
  451. package/dist/globuscomponents/assets/globus_bank_logo_white.svg +13 -13
  452. package/dist/globuscomponents/assets/gray-file-icons/gray_csv.svg +5 -0
  453. package/dist/globuscomponents/assets/gray-file-icons/gray_doc.svg +5 -0
  454. package/dist/globuscomponents/assets/gray-file-icons/gray_docx.svg +5 -0
  455. package/dist/globuscomponents/assets/gray-file-icons/gray_jpeg.svg +5 -0
  456. package/dist/globuscomponents/assets/gray-file-icons/gray_jpg.svg +5 -0
  457. package/dist/globuscomponents/assets/gray-file-icons/gray_mp3.svg +5 -0
  458. package/dist/globuscomponents/assets/gray-file-icons/gray_mp4.svg +5 -0
  459. package/dist/globuscomponents/assets/gray-file-icons/gray_pdf.svg +5 -0
  460. package/dist/globuscomponents/assets/gray-file-icons/gray_ppt.svg +5 -0
  461. package/dist/globuscomponents/assets/gray-file-icons/gray_pptx.svg +5 -0
  462. package/dist/globuscomponents/assets/gray-file-icons/gray_rar.svg +5 -0
  463. package/dist/globuscomponents/assets/gray-file-icons/gray_svg.svg +5 -0
  464. package/dist/globuscomponents/assets/gray-file-icons/gray_txt.svg +5 -0
  465. package/dist/globuscomponents/assets/gray-file-icons/gray_xls.svg +5 -0
  466. package/dist/globuscomponents/assets/gray-file-icons/gray_xlsx.svg +5 -0
  467. package/dist/globuscomponents/assets/gray-file-icons/gray_zip.svg +5 -0
  468. package/dist/globuscomponents/assets/help-circle.svg +5 -5
  469. package/dist/globuscomponents/assets/laptop.svg +6 -6
  470. package/dist/globuscomponents/assets/mail-02.svg +5 -5
  471. package/dist/globuscomponents/assets/no_notification_frame.svg +139 -139
  472. package/dist/globuscomponents/assets/notification-03.svg +5 -5
  473. package/dist/globuscomponents/assets/notification_background_pattern.svg +52 -52
  474. package/dist/globuscomponents/assets/notification_illustration.svg +80 -80
  475. package/dist/globuscomponents/assets/pattern_wrapper.svg +1359 -1359
  476. package/dist/globuscomponents/assets/plus_sign.svg +3 -3
  477. package/dist/globuscomponents/assets/radiobutton default_checked.svg +4 -4
  478. package/dist/globuscomponents/assets/radiobutton default_unchecked.svg +3 -3
  479. package/dist/globuscomponents/assets/radiobutton disabled_checked.svg +4 -4
  480. package/dist/globuscomponents/assets/radiobutton disabled_unchecked.svg +3 -3
  481. package/dist/globuscomponents/assets/sample.svg +5 -5
  482. package/dist/globuscomponents/assets/search-01.svg +3 -3
  483. package/dist/globuscomponents/assets/shuffle-square.svg +6 -6
  484. package/dist/globuscomponents/assets/solid-file-icons/solid_csv.svg +5 -0
  485. package/dist/globuscomponents/assets/solid-file-icons/solid_doc.svg +5 -0
  486. package/dist/globuscomponents/assets/solid-file-icons/solid_docx.svg +5 -0
  487. package/dist/globuscomponents/assets/solid-file-icons/solid_jpeg.svg +5 -0
  488. package/dist/globuscomponents/assets/solid-file-icons/solid_jpg.svg +5 -0
  489. package/dist/globuscomponents/assets/solid-file-icons/solid_mp3.svg +5 -0
  490. package/dist/globuscomponents/assets/solid-file-icons/solid_mp4.svg +5 -0
  491. package/dist/globuscomponents/assets/solid-file-icons/solid_pdf.svg +5 -0
  492. package/dist/globuscomponents/assets/solid-file-icons/solid_ppt.svg +5 -0
  493. package/dist/globuscomponents/assets/solid-file-icons/solid_pptx.svg +5 -0
  494. package/dist/globuscomponents/assets/solid-file-icons/solid_rar.svg +5 -0
  495. package/dist/globuscomponents/assets/solid-file-icons/solid_svg.svg +5 -0
  496. package/dist/globuscomponents/assets/solid-file-icons/solid_txt.svg +5 -0
  497. package/dist/globuscomponents/assets/solid-file-icons/solid_xls.svg +5 -0
  498. package/dist/globuscomponents/assets/solid-file-icons/solid_xlsx.svg +5 -0
  499. package/dist/globuscomponents/assets/solid-file-icons/solid_zip.svg +5 -0
  500. package/dist/globuscomponents/assets/square-arrow-data-transfer-diagonal.svg +6 -6
  501. package/dist/globuscomponents/assets/thumbs-up.svg +8 -8
  502. package/dist/globuscomponents/assets/user-group.svg +10 -10
  503. package/dist/globuscomponents/globuscomponents.esm.js +1 -1
  504. package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
  505. package/dist/globuscomponents/{p-1c634283.entry.js → p-040877b0.entry.js} +2 -2
  506. package/dist/globuscomponents/{p-8c916245.entry.js → p-13fb8ad0.entry.js} +2 -2
  507. package/dist/globuscomponents/{p-24934b82.entry.js → p-150150b7.entry.js} +2 -2
  508. package/dist/globuscomponents/{p-53918e60.entry.js → p-2616b4f7.entry.js} +2 -2
  509. package/dist/globuscomponents/{p-2e30fc4c.entry.js → p-27ad012f.entry.js} +2 -2
  510. package/dist/globuscomponents/p-27ad012f.entry.js.map +1 -0
  511. package/dist/globuscomponents/{p-87e5abd9.entry.js → p-35a813fe.entry.js} +2 -2
  512. package/dist/globuscomponents/{p-4f31ae97.js → p-47052b60.js} +1 -1
  513. package/dist/globuscomponents/p-47052b60.js.map +1 -0
  514. package/dist/globuscomponents/{p-7b5550cd.entry.js → p-524c0404.entry.js} +2 -2
  515. package/dist/globuscomponents/{p-9e5a4011.entry.js → p-5c8e2c78.entry.js} +2 -2
  516. package/dist/globuscomponents/{p-9f01343e.entry.js → p-65f494ea.entry.js} +2 -2
  517. package/dist/globuscomponents/{p-74b82196.entry.js → p-6bb17e3e.entry.js} +2 -2
  518. package/dist/globuscomponents/{p-da0e6faf.entry.js → p-6e05335a.entry.js} +2 -2
  519. package/dist/globuscomponents/{p-135fa032.entry.js → p-70868bfe.entry.js} +2 -2
  520. package/dist/globuscomponents/{p-c424272d.entry.js → p-77224a09.entry.js} +2 -2
  521. package/dist/globuscomponents/{p-44c80420.entry.js → p-818a14e9.entry.js} +2 -2
  522. package/dist/globuscomponents/{p-707fcde4.entry.js → p-9f612212.entry.js} +2 -2
  523. package/dist/globuscomponents/{p-acd00cca.entry.js → p-abfc2e2a.entry.js} +2 -2
  524. package/dist/globuscomponents/{p-1a725100.entry.js → p-b7a706ad.entry.js} +2 -2
  525. package/dist/globuscomponents/p-bf92be61.js +3 -0
  526. package/dist/globuscomponents/p-bf92be61.js.map +1 -0
  527. package/dist/globuscomponents/{p-1ecb225e.entry.js → p-c5fea72e.entry.js} +2 -2
  528. package/dist/globuscomponents/{p-39450d7e.entry.js → p-cc42edb7.entry.js} +2 -2
  529. package/dist/globuscomponents/p-dd933232.entry.js +2 -0
  530. package/dist/globuscomponents/{p-5e61c950.entry.js → p-e08625a5.entry.js} +2 -2
  531. package/dist/globuscomponents/{p-36b88a3d.entry.js → p-e47aff3e.entry.js} +2 -2
  532. package/dist/globuscomponents/{p-c232233f.entry.js → p-f8a6d94e.entry.js} +2 -2
  533. package/dist/globuscomponents/{p-e1c952db.entry.js → p-f9b1d223.entry.js} +2 -2
  534. package/dist/globuscomponents/p-ffe76eeb.entry.js +2 -0
  535. package/dist/globuscomponents/readme.md +48 -48
  536. package/dist/types/components/gb-file-type-icon/gb-file-type-icon.d.ts +4 -1
  537. package/dist/types/components/gb-file-upload/gb-file-upload.d.ts +23 -1
  538. package/dist/types/components/gb-file-upload-item-base/gb-file-upload-item-base.d.ts +9 -3
  539. package/dist/types/components/gb-input-dropdown/gb-input-dropdown.d.ts +4 -1
  540. package/dist/types/components/gb-input-field/gb-input-field.d.ts +1 -0
  541. package/dist/types/components/gb-pagination-button-group-base/gb-pagination-button-group-base.d.ts +4 -0
  542. package/dist/types/components/gb-progress-bar/gb-progress-bar.d.ts +0 -1
  543. package/dist/types/components/gb-slider/gb-slider.d.ts +7 -2
  544. package/dist/types/components/gb-slider-control-handle/gb-slider-control-handle.d.ts +2 -2
  545. package/dist/types/components.d.ts +78 -12
  546. package/dist/types/models/reusableModels.d.ts +3 -1
  547. package/package.json +1 -1
  548. package/dist/cjs/gb-avatar_40.cjs.entry.js.map +0 -1
  549. package/dist/cjs/gb-file-type-icon.cjs.entry.js +0 -22
  550. package/dist/cjs/gb-file-type-icon.cjs.entry.js.map +0 -1
  551. package/dist/cjs/gb-file-upload-item-base.cjs.entry.js +0 -37
  552. package/dist/cjs/gb-file-upload-item-base.cjs.entry.js.map +0 -1
  553. package/dist/cjs/gb-file-upload.cjs.entry.js +0 -38
  554. package/dist/cjs/gb-file-upload.cjs.entry.js.map +0 -1
  555. package/dist/cjs/gb-progress-bar.cjs.entry.js +0 -27
  556. package/dist/cjs/gb-progress-bar.cjs.entry.js.map +0 -1
  557. package/dist/cjs/index-97d4dbd5.js.map +0 -1
  558. package/dist/cjs/reusableModels-40cbefe2.js.map +0 -1
  559. package/dist/components/p-4710b26e.js.map +0 -1
  560. package/dist/components/p-4f31ae97.js.map +0 -1
  561. package/dist/components/p-52a05610.js.map +0 -1
  562. package/dist/components/p-61d6b9a4.js.map +0 -1
  563. package/dist/components/p-677c05f3.js.map +0 -1
  564. package/dist/components/p-8ea8fb2e.js.map +0 -1
  565. package/dist/components/p-8ec4b241.js.map +0 -1
  566. package/dist/components/p-b8cc4ced.js.map +0 -1
  567. package/dist/components/p-e1b8bc90.js.map +0 -1
  568. package/dist/components/p-e9099a82.js.map +0 -1
  569. package/dist/esm/gb-avatar_40.entry.js.map +0 -1
  570. package/dist/esm/gb-file-type-icon.entry.js +0 -18
  571. package/dist/esm/gb-file-type-icon.entry.js.map +0 -1
  572. package/dist/esm/gb-file-upload-item-base.entry.js +0 -33
  573. package/dist/esm/gb-file-upload-item-base.entry.js.map +0 -1
  574. package/dist/esm/gb-file-upload.entry.js +0 -34
  575. package/dist/esm/gb-file-upload.entry.js.map +0 -1
  576. package/dist/esm/gb-progress-bar.entry.js +0 -23
  577. package/dist/esm/gb-progress-bar.entry.js.map +0 -1
  578. package/dist/esm/index-f6b9f9bf.js.map +0 -1
  579. package/dist/esm/reusableModels-e864cf6e.js.map +0 -1
  580. package/dist/globuscomponents/p-184d9489.entry.js +0 -2
  581. package/dist/globuscomponents/p-2e30fc4c.entry.js.map +0 -1
  582. package/dist/globuscomponents/p-4f31ae97.js.map +0 -1
  583. package/dist/globuscomponents/p-964e5e0c.entry.js +0 -2
  584. package/dist/globuscomponents/p-e9f75233.entry.js +0 -2
  585. package/dist/globuscomponents/p-e9f75233.entry.js.map +0 -1
  586. package/dist/globuscomponents/p-efd85181.entry.js +0 -2
  587. package/dist/globuscomponents/p-efd85181.entry.js.map +0 -1
  588. package/dist/globuscomponents/p-f13f3010.entry.js +0 -2
  589. package/dist/globuscomponents/p-f13f3010.entry.js.map +0 -1
  590. package/dist/globuscomponents/p-f9e7b25c.entry.js +0 -2
  591. package/dist/globuscomponents/p-f9e7b25c.entry.js.map +0 -1
  592. package/dist/globuscomponents/p-ff053a96.js +0 -3
  593. package/dist/globuscomponents/p-ff053a96.js.map +0 -1
  594. /package/dist/globuscomponents/{p-1c634283.entry.js.map → p-040877b0.entry.js.map} +0 -0
  595. /package/dist/globuscomponents/{p-8c916245.entry.js.map → p-13fb8ad0.entry.js.map} +0 -0
  596. /package/dist/globuscomponents/{p-24934b82.entry.js.map → p-150150b7.entry.js.map} +0 -0
  597. /package/dist/globuscomponents/{p-53918e60.entry.js.map → p-2616b4f7.entry.js.map} +0 -0
  598. /package/dist/globuscomponents/{p-87e5abd9.entry.js.map → p-35a813fe.entry.js.map} +0 -0
  599. /package/dist/globuscomponents/{p-7b5550cd.entry.js.map → p-524c0404.entry.js.map} +0 -0
  600. /package/dist/globuscomponents/{p-9e5a4011.entry.js.map → p-5c8e2c78.entry.js.map} +0 -0
  601. /package/dist/globuscomponents/{p-9f01343e.entry.js.map → p-65f494ea.entry.js.map} +0 -0
  602. /package/dist/globuscomponents/{p-74b82196.entry.js.map → p-6bb17e3e.entry.js.map} +0 -0
  603. /package/dist/globuscomponents/{p-da0e6faf.entry.js.map → p-6e05335a.entry.js.map} +0 -0
  604. /package/dist/globuscomponents/{p-135fa032.entry.js.map → p-70868bfe.entry.js.map} +0 -0
  605. /package/dist/globuscomponents/{p-c424272d.entry.js.map → p-77224a09.entry.js.map} +0 -0
  606. /package/dist/globuscomponents/{p-44c80420.entry.js.map → p-818a14e9.entry.js.map} +0 -0
  607. /package/dist/globuscomponents/{p-707fcde4.entry.js.map → p-9f612212.entry.js.map} +0 -0
  608. /package/dist/globuscomponents/{p-acd00cca.entry.js.map → p-abfc2e2a.entry.js.map} +0 -0
  609. /package/dist/globuscomponents/{p-1a725100.entry.js.map → p-b7a706ad.entry.js.map} +0 -0
  610. /package/dist/globuscomponents/{p-1ecb225e.entry.js.map → p-c5fea72e.entry.js.map} +0 -0
  611. /package/dist/globuscomponents/{p-39450d7e.entry.js.map → p-cc42edb7.entry.js.map} +0 -0
  612. /package/dist/globuscomponents/{p-184d9489.entry.js.map → p-dd933232.entry.js.map} +0 -0
  613. /package/dist/globuscomponents/{p-5e61c950.entry.js.map → p-e08625a5.entry.js.map} +0 -0
  614. /package/dist/globuscomponents/{p-36b88a3d.entry.js.map → p-e47aff3e.entry.js.map} +0 -0
  615. /package/dist/globuscomponents/{p-c232233f.entry.js.map → p-f8a6d94e.entry.js.map} +0 -0
  616. /package/dist/globuscomponents/{p-e1c952db.entry.js.map → p-f9b1d223.entry.js.map} +0 -0
  617. /package/dist/globuscomponents/{p-964e5e0c.entry.js.map → p-ffe76eeb.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: '1cd8191c7fbefd0f776b5ccfa1f9f74ecd8c1306', class: `button_base_div ${this.icon} ${this.state}` }, this.icon === 'false' && h("slot", { key: '3f5122275e87cce12b4f02a2daf9b6ca3a49f050' }), this.icon === 'leading' && (h(Fragment, null, h("svg", { key: 'a5902de50aee64a8a01a4021ac812f8df4f2a984', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '2d125fceea7e8adb5f61cba382d583c64529b5da', 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: '92abc90a7cfa0dbc41c4f2ce20e56b4daaa69348' }))), this.icon === 'trailing' && (h(Fragment, null, h("slot", { key: 'cada359198ade5c3edef6b5f6331bfe01382085c' }), h("svg", { key: 'f6353cacabddf41c0486d85e62a005b055c6aa9d', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'd58adab4e8cb6a89814a787a38504fb6cb8de13e', 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: '14fc609fd29673d60e0b81c56efdcaeaea471f97', 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: 'b7679e82c981e02884a3303cfd297ecd4b9c1ceb', class: "dot_group_div" }, h("div", { key: '91f0721484e461dcf9b8bb5b55dc6003dae1e863' })));
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: 'b58e45fd7fe010eafc77fa327b9a09c3ea21e06d', 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: 'c504e790d8dc0b647e9818af2adbfdc178aa24b8', class: `page_number_base ${this.shape} ${this.state}` }, h("slot", { key: '55c1895cc43c4349ddae31a18e12b66ec2f2b7f4', 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: '045de607056fae34b10813ec4506cde703b2abd0' }, h("gb-btn", { key: '0fa8910037860d2ea5ad94e5d78fb4838dde79f3', 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: 'c02b3985672fe69ea47599f059daa02cf7fad83d', class: `progress_bar_container ${this.labelPosition}` }, h("div", { key: '622550389b9cd23f3e9526efec8356f314bafbf7', class: "progress_bar" }, h("div", { key: '1e86853f62b967fae4bf3aa2967a0c381f319eac', class: "progress_fill", style: { width: `${progressValue}%` } })), h(Fragment, null, this.showLabel && (h("div", { key: '5642c3b1e3bd101bf6aad835cb8fe651fac665d5', class: `label ${this.labelPosition}` }, this.labelPosition === 'right' && h("span", { key: 'f5247cbcae27e1c53f3cbd78694244337660b0aa', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'bottom' && h("span", { key: '931d955d90b90d031c85f03afa18d6f0b9341e13', class: `text-sm-medium` }, progressValue, "%"), this.labelPosition === 'top_floating' && (h("gb-tooltip", { key: '66946b0b7d68b80eea569816f7adb9b793d794a1', class: `top_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 6.5).toString()}%` } }, h("p", { key: 'a553f5f4c6d4d240a49da10d292dc7b70d096d9c', slot: "main_text", class: "text-xs-semi-bold" }, progressValue, "%"))), this.labelPosition === 'bottom_floating' && (h("gb-tooltip", { key: '28d581f05bb97efa8f5fde84363d542e94fac7ae', class: `bottom_tooltip`, arrow: "none", style: { marginLeft: `${(progressValue - 59.5).toString()}%` } }, h("p", { key: '906a2efa4af0efa51731c645adcc1a6f7c7b0a96', 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;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AAC;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 @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":"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QAAQ,EAAE,GAAG,EAAE;oBAC9G,0DAAG,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,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: '42986b0736a1ac2a6461061f66f12bb614839126', class: "gauge" }, h("div", { key: '02d4da5d3463a06aa609ccd7a069dea2359895ab', class: "arc", ref: el => (this.arcElement = el) }), h("div", { key: '6081349a743720712677ac7aec0ce8f5cca381e4', class: "mask" }), this.label && (h("div", { key: '1b0044962d33cfd65a72fb7628f4283ce774df9f', class: "label", ref: el => (this.labelElement = el) }, h("p", { key: 'e809895f1c709d39b2d1ed942120b8d4504ed6ef', 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: 'f742bdbcc609404ea5adca4a86705abb117501e2', class: classes }, h("div", { key: '1b8ab005d10d27801ff97fcf695e4af1973ca0b9', class: "input-with-label" }, h("label", { key: '85ef47252c8af5afe6137ed8dc56ae3e5e81c7db' }, this.label), h("div", { key: 'a8a9d360cf7c9ad71738e565c7b17135a7b26d81', class: "input-container" }, h("div", { key: 'af02147432acaedaf2f39cc77398e190e3eb3220', class: "toolbar-container" }, h("gb-wysiwyg-toolbar", { key: '0c07f8e823c3d1510c54c93bb540bbc4a616682d', 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: '59c942e7f3399d3e79bbc1342f8cf6059fb4bae4', class: "error-icon" }, h("svg", { key: '553ce229a1e21c894b91803208968af6266ca9c6', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { key: '884287625c4cbf8c63c1fa6d786d6ed8ebbd0165', 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: '3c3be930c7f35a429132a3d681af5d5cf2ac0a53', class: "text-container" }, h("textarea", { key: 'cca71af6b6406805e4cb72fdeb5b55bd66c3360e' }, this.showPlaceholder && (h("div", { key: '5695660d5913d0db5716bbaac02d1e7d8e3a61bf' }, this.placeholder)))))), this.showHintText && (h("div", { key: 'f3689399689f4110a403a6f1c04ece3285f1fd8b', 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: '0d44fae0f4510f79a1ee99f8e56487d29a8d772a', class: "scrollbar-container" }, h("div", { key: '0a6b6065c5b2a2ff24397005f24779aac9ac082d', class: "scrollbar", style: { height: this.length } }, h("slot", { key: '6035119b2b1c09412dfcf2bdedf1b7362cba0446' }))));
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: '4c5dc91c069091b3831d401a895cf6e71289b44b', class: `side_bar_item_container`, onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("div", { key: 'cbb648edca2f994f29af3c877b8c620bcafbb736', class: `nav_item_base ${this.state} ${this.type} ${this.category}` }, this.state === 'active' && this.category === 'plain_background' && h("img", { key: 'b567adf4fc4b56d9f39790ed124c9d5f42123e16', src: redBarSrc, alt: "", class: "bar" }), this.state === 'active' && this.category === 'colored_background' && h("img", { key: '0a935cdfefe86eededbc92002b607ad642028515', src: whiteBarSrc, alt: "", class: "bar" }), h("div", { key: '8ffc650d047f91bfadd1d8ac562acc635b1a59d1', class: "content" }, h("div", { key: '48e4292fc4f47316adc93f65f9f8601922025cd6', class: `icon ${this.state} ${this.category}`, innerHTML: this.leadingIconSvg }), this.type === 'full_with_label' && (h("p", { key: 'a199ec1ecc329db2242710ca9576b0968ca3c2e4', 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: 'ec0f75ce7fd33c6975bf2eb90c477c4702b23b47', size: "sm", type: "pill_outline", color: this.state === 'active' ? 'information' : 'gray' }, h("p", { key: '1156f5ee6a5ea33482303d9cf17cf86f8cc1cea6' }, "10"))), this.showArrow && (h("svg", { key: '1cc977dfd64d3d82546df1308652e2e3b7482e87', 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: '3f444bb899382f5f7ac44faa55b19d867468cf41', 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: '9fc794e729bce709dea2d3defbc62ae3792829eb', "show-arrow": true, arrow: "left", class: "tooltip" }, h("p", { key: '2016522956f6632789e32efa2559a2ae053e56ab', 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: '7237d36f0e0832317eebb6ff8a00ace91e62c934', class: `sidebar_div ${this.state} ${this.category}` }, this.category === 'colored_background' && (h("div", { key: 'de6509bfb9ebb15b748fbb784ab37495e1dadacd', class: "pattern" }, h("img", { key: 'e1a62b62813254afa57af6b699885f90d4a133f4', src: patternSrc, alt: "" }))), h("div", { key: 'fcd84993b1240e1d9c2cf3f9f460a329aaf58bda', class: "nav" }, h("div", { key: 'e0a3ad7c407c7bf1eb95df446c077b8d002cd870', class: `sidebar_header ${this.state}` }, h("div", { key: '486f9118a3e0b58d6a523241343fa342c0ce6ae7', 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: 'd373e21454e334b68bb675f004af3e309129c46a', src: logoSrc, alt: "" })), h("div", { key: '6030d0244665a63127278e8904591ebdc673ea10', class: `collapse_button ${this.state}` }, h("gb-collapse-button", { key: '91a56161d8dd4e3372829154859047764faf7f6c', color: this.category === 'plain_background' ? 'gray' : 'white', action: this.state === 'collapsed' ? 'expand' : 'collapse', onClick: () => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar()) }))), h("div", { key: '7637eaf832f3a1e7bb6a0dc2cacf74c3ad43c510', class: "navigation" }, h("div", { key: '4ca63e1e3e2cd742607331c8ece482716e8ac7f9', class: "item" }, h("gb-side-bar-item", { key: 'c712fae64d5bc0f8ef93aa655f02b9302f686d14', 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: 'b46d1104db94db2057cb32d8925988e6a86444a0', 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: '18aaf068dfdad4baa11a9b31e5929e3a1cd501b2', 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: '60e0924676c09f5e71c4a5fbdff48862f3cc1e0c', 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: '0be7d9bfd073d9e828eae52d62ef28a8753d62b8', 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: '7b5b95886909c44ba45fb3665b0377affc00edcd', class: "navigation" }, h("div", { key: 'f44d3516c3dae93d287f89366fe0ce5560a977b0', class: "item" }, this.sixthItemLabel && (h("gb-side-bar-item", { key: 'cb369b498efa68f5f2419a9fccd70914f6b00519', 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: 'eff263f30cfc1c82fec52e49f79b285baeb00c75', 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: '4ae81d1cfd7478000a20ea3619b51611cb588f85', 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: '01681c0e7cdc5cf8afb6a921bd77328342a63a17', 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: '4037e2705a2bbba5420d0a4200b5fbf01cef08e6', 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: '983eb07eedadff0414708207b10461c64fb433d2', class: "application_name" }, h("div", { key: '11c108d145d44aefabd57c45938167be0db77de2', class: `wrapper ${this.category}` }, this.category === 'plain_background' && (h("div", { key: '588257841f45205568df7ec78bdf75b226b15c7b', class: "application_name_pattern" }, h("img", { key: 'b7cb416e36f6c2f6ea22be1a283355f950d379bd', src: patternSrc, alt: "" }))), h("div", { key: '0416a1442e9bfe680c9ffbe86d43aba6883e1f04', class: `application_icon ${this.category}`, innerHTML: this.leadingIconSvg }), h("span", { key: '887e189cdc570fb41d6e004597388b6d04ca45d4', class: textClass }, h("slot", { key: 'aa2d6119761e6eb8b4da2a35d3d996320a8c26c3', 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: 'a12e9fd387d8e3de3d64b164e696e0f2d2137296', class: "slider-container", ref: el => (this.containerEl = el) }, h("div", { key: 'fe986aee8ce53e563725434b5b79d29ca3370851', class: "track", ref: el => (this.trackEl = el) }), h("gb-slider-control-handle", { key: 'cf41a616da37fce9fb0c37a1da92ceee7d9587b3', 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: '2b6dec01629d859112f923f13a5c6aa3d50ccb88', 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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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,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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"]}