globuswebcomponents 0.3.8 → 0.3.9

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 (38) hide show
  1. package/dist/cjs/{gb-avatar_28.cjs.entry.js → gb-avatar_30.cjs.entry.js} +117 -3
  2. package/dist/cjs/gb-avatar_30.cjs.entry.js.map +1 -0
  3. package/dist/cjs/globuscomponents.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +21 -2
  6. package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js.map +1 -1
  7. package/dist/collection/components/gb-sidebar/gb-sidebar.js +5 -1
  8. package/dist/collection/components/gb-sidebar/gb-sidebar.js.map +1 -1
  9. package/dist/components/gb-horizontal-tabs.js +5 -3
  10. package/dist/components/gb-horizontal-tabs.js.map +1 -1
  11. package/dist/components/gb-sidebar.js +5 -1
  12. package/dist/components/gb-sidebar.js.map +1 -1
  13. package/dist/esm/{gb-avatar_28.entry.js → gb-avatar_30.entry.js} +116 -4
  14. package/dist/esm/gb-avatar_30.entry.js.map +1 -0
  15. package/dist/esm/globuscomponents.js +1 -1
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/globuscomponents/globuscomponents.esm.js +1 -1
  18. package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
  19. package/dist/globuscomponents/{p-fd2fe69d.entry.js → p-2daeb329.entry.js} +2 -2
  20. package/dist/globuscomponents/p-2daeb329.entry.js.map +1 -0
  21. package/dist/types/components/gb-horizontal-tabs/gb-horizontal-tabs.d.ts +3 -1
  22. package/dist/types/components.d.ts +16 -0
  23. package/package.json +1 -1
  24. package/dist/cjs/gb-avatar_28.cjs.entry.js.map +0 -1
  25. package/dist/cjs/gb-collapse-button.cjs.entry.js +0 -44
  26. package/dist/cjs/gb-collapse-button.cjs.entry.js.map +0 -1
  27. package/dist/cjs/gb-sidebar.cjs.entry.js +0 -80
  28. package/dist/cjs/gb-sidebar.cjs.entry.js.map +0 -1
  29. package/dist/esm/gb-avatar_28.entry.js.map +0 -1
  30. package/dist/esm/gb-collapse-button.entry.js +0 -40
  31. package/dist/esm/gb-collapse-button.entry.js.map +0 -1
  32. package/dist/esm/gb-sidebar.entry.js +0 -76
  33. package/dist/esm/gb-sidebar.entry.js.map +0 -1
  34. package/dist/globuscomponents/p-83c2f6ea.entry.js +0 -2
  35. package/dist/globuscomponents/p-83c2f6ea.entry.js.map +0 -1
  36. package/dist/globuscomponents/p-a6522c5c.entry.js +0 -2
  37. package/dist/globuscomponents/p-a6522c5c.entry.js.map +0 -1
  38. package/dist/globuscomponents/p-fd2fe69d.entry.js.map +0 -1
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["gb-avatar_28.cjs",[[1,"gb-horizontal-tabs",{"type":[1],"size":[1],"fullWidth":[4,"full-width"],"breakpoint":[1],"thirdTab":[4,"third-tab"],"fourthTab":[4,"fourth-tab"],"fifthTab":[4,"fifth-tab"],"sixthTab":[4,"sixth-tab"],"seventhTab":[4,"seventh-tab"],"eighthTab":[4,"eighth-tab"],"ninthTab":[4,"ninth-tab"],"tenthTab":[4,"tenth-tab"],"firstTabName":[1,"first-tab-name"],"secondTabName":[1,"second-tab-name"],"thirdTabName":[1,"third-tab-name"],"fourthTabName":[1,"fourth-tab-name"],"fifthTabName":[1,"fifth-tab-name"],"sixthTabName":[1,"sixth-tab-name"],"seventhTabName":[1,"seventh-tab-name"],"eighthTabName":[1,"eighth-tab-name"],"ninthTabName":[1,"ninth-tab-name"],"tenthTabName":[1,"tenth-tab-name"],"activeIndex":[32]}],[1,"gb-tag",{"size":[1],"icon":[1],"action":[1],"flagSwap":[1,"flag-swap"],"checkbox":[4]}],[1,"gb-avatar-group",{"size":[1],"moreUsers":[4,"more-users"],"addMoreButton":[4,"add-more-button"],"text":[4],"state":[1],"images":[16]}],[1,"gb-checkbox-group-item",{"size":[1],"type":[1],"state":[1],"breakpoint":[1],"showCost":[4,"show-cost"],"selected":[1028]}],[1,"gb-header",{"state":[1],"showIndicator":[4,"show-indicator"],"text":[4],"placeholder":[4]}],[1,"gb-input-dropdown",{"type":[1],"state":[1],"size":[1],"showLabel":[4,"show-label"],"label":[1],"showPlaceholder":[4,"show-placeholder"],"placeholderText":[1,"placeholder-text"],"showHintText":[4,"show-hint-text"],"hintText":[1,"hint-text"],"showHelpIcon":[4,"show-help-icon"],"iconSwap":[1,"icon-swap"],"text":[4]}],[1,"gb-toast",{"color":[1],"size":[1],"breakpoint":[1],"xCloseButton":[4,"x-close-button"],"actions":[4],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-pagination",{"type":[1],"shape":[1],"breakpoint":[1],"currentPage":[2,"current-page"],"totalPages":[2,"total-pages"]}],[4,"gb-btn",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[0,"gb-carousel-arrow",{"size":[1],"chevron":[1]}],[1,"gb-pagination-button-group-base",{"icon":[1],"iconLeading":[1,"icon-leading"],"iconTrailing":[1,"icon-trailing"]}],[1,"gb-side-bar-item",{"state":[1],"type":[1],"label":[1],"icon":[1],"category":[1],"showArrow":[4,"show-arrow"],"showBadge":[4,"show-badge"],"showTooltip":[1028,"show-tooltip"],"leadingIconSvg":[32],"textState":[32]}],[1,"gb-tab-button-base",{"current":[4],"size":[1],"fullWidth":[4,"full-width"],"badge":[4],"type":[1],"tabName":[1,"tab-name"]}],[1,"gb-avatar-add-button",{"size":[1],"showToolTip":[1028,"show-tool-tip"],"state":[1],"el":[16]}],[1,"gb-header-icon",{"state":[1],"showIndicator":[4,"show-indicator"],"icon":[1]}],[1,"gb-tag-checkbox",{"checked":[4],"size":[1],"disabled":[4]}],[1,"gb-tag-close",{"size":[1]}],[1,"gb-tag-count",{"size":[1]}],[1,"gb-toast-button",{"state":[1],"color":[1]}],[1,"gb-button-close",{"size":[1],"color":[1]}],[1,"gb-badge",{"size":[1],"icon":[1],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailingSwap":[1,"icon-trailing-swap"],"flagSwap":[1,"flag-swap"],"color":[1],"type":[1],"closeButton":[4,"close-button"],"leadingIconContent":[32],"trailingIconContent":[32]}],[1,"gb-badge-close",{"color":[1],"type":[1]}],[1,"gb-button",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[1,"gb-checkbox-base",{"state":[1025],"size":[1],"type":[1],"checked":[1028],"indeterminate":[1028]}],[1,"gb-tooltip",{"showArrow":[4,"show-arrow"],"arrow":[1],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-avatar",{"size":[1],"placeholder":[4],"text":[4],"statusIcon":[1,"status-icon"],"state":[1],"icon":[1],"weight":[1]}],[1,"gb-avatar-contrast-inner-border",{"weight":[1],"size":[1]}],[1,"gb-status-indicator",{"statusIcon":[1,"status-icon"],"size":[1],"state":[1],"indicatorStateClass":[1,"indicator-state-class"]}]]],["gb-sidebar.cjs",[[1,"gb-sidebar",{"state":[1025],"category":[1],"showSecondCategory":[4,"show-second-category"],"applicationName":[1,"application-name"],"firstItemIcon":[1,"first-item-icon"],"secondItemIcon":[1,"second-item-icon"],"thirdItemIcon":[1,"third-item-icon"],"fourthItemIcon":[1,"fourth-item-icon"],"fifthItemIcon":[1,"fifth-item-icon"],"sixthItemIcon":[1,"sixth-item-icon"],"seventhItemIcon":[1,"seventh-item-icon"],"eighthItemIcon":[1,"eighth-item-icon"],"ninthItemIcon":[1,"ninth-item-icon"],"tenthItemIcon":[1,"tenth-item-icon"],"iconInstance":[1,"icon-instance"],"label":[1],"firstItemLabel":[1,"first-item-label"],"secondItemLabel":[1,"second-item-label"],"thirdItemLabel":[1,"third-item-label"],"fourthItemLabel":[1,"fourth-item-label"],"fifthItemLabel":[1,"fifth-item-label"],"sixthItemLabel":[1,"sixth-item-label"],"seventhItemLabel":[1,"seventh-item-label"],"eighthItemLabel":[1,"eighth-item-label"],"ninthItemLabel":[1,"ninth-item-label"],"tenthItemLabel":[1,"tenth-item-label"],"activeIndex":[32],"leadingIconSvg":[32],"sideBarItemClicked":[64]}]]],["gb-avatar-dropdown.cjs",[[1,"gb-avatar-dropdown",{"type":[1],"text":[4],"showProfile":[4,"show-profile"],"showDarkTheme":[4,"show-dark-theme"],"showLogOut":[4,"show-log-out"],"listGroupOne":[4,"list-group-one"],"listGroupTwo":[4,"list-group-two"],"listGroupThree":[4,"list-group-three"]}]]],["gb-file-upload.cjs",[[1,"gb-file-upload",{"icon":[1],"type":[1],"heightSize":[1,"height-size"],"state":[1],"destructive":[4],"showLabel":[4,"show-label"],"buttonState":[1,"button-state"]}]]],["gb-input-dropdown-menu-item.cjs",[[1,"gb-input-dropdown-menu-item",{"type":[1],"supportingText":[4,"supporting-text"],"selected":[1028],"state":[1]}]]],["gb-avatar-profile-photo.cjs",[[1,"gb-avatar-profile-photo",{"placeholder":[4],"text":[4],"size":[1],"verified":[4],"icon":[1]}]]],["gb-help-dropdown.cjs",[[1,"gb-help-dropdown",{"showLogError":[4,"show-log-error"]}]]],["gb-slider.cjs",[[1,"gb-slider",{"min":[2],"max":[2],"thumbType":[1,"thumb-type"],"leftValue":[32],"rightValue":[32]}]]],["gb-toggle.cjs",[[1,"gb-toggle",{"size":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]],["gb-checkbox-group.cjs",[[1,"gb-checkbox-group",{"size":[1],"breakpoint":[1],"icon":[1],"selected":[4],"type":[1]}]]],["gb-file-type-icon.cjs",[[1,"gb-file-type-icon"]]],["gb-input-field.cjs",[[1,"gb-input-field",{"size":[1],"inputType":[1,"input-type"],"destructive":[4],"helpIcon":[4,"help-icon"],"icon":[1],"placeholder":[1],"label":[1]}]]],["gb-megainput-field.cjs",[[1,"gb-megainput-field",{"size":[1]}]]],["gb-notification-content.cjs",[[1,"gb-notification-content",{"icon":[1],"label":[1],"time":[1],"supportingText":[1,"supporting-text"]}]]],["gb-notification-panel.cjs",[[1,"gb-notification-panel",{"state":[1],"notifications":[32]},[[0,"slotchange","handleSlotChange"]]]]],["gb-pagination-dot-indicator.cjs",[[0,"gb-pagination-dot-indicator",{"current":[4],"type":[1],"size":[1]}]]],["gb-pagination-number-base.cjs",[[1,"gb-pagination-number-base",{"shape":[1]}]]],["gb-progress-circle.cjs",[[1,"gb-progress-circle",{"size":[1],"shape":[1],"label":[4],"progress":[2]}]]],["gb-scrollbar.cjs",[[1,"gb-scrollbar",{"length":[1]}]]],["gb-textarea-input-field.cjs",[[1,"gb-textarea-input-field",{"type":[1],"destructive":[4],"placeholder":[1],"label":[1]}]]],["gb-wysiwyg-editor-icon.cjs",[[1,"gb-wysiwyg-editor-icon"]]],["gb-file-upload-item-base.cjs",[[1,"gb-file-upload-item-base",{"icon":[1],"state":[1],"heightSize":[1,"height-size"],"fileType":[1,"file-type"],"buttonState":[1,"button-state"]}]]],["gb-avatar-label-group.cjs",[[1,"gb-avatar-label-group",{"size":[1],"statusIcon":[1,"status-icon"],"state":[1],"placeholder":[4],"text":[4]}]]],["gb-collapse-button.cjs",[[1,"gb-collapse-button",{"color":[1],"isCollapsed":[1028,"is-collapsed"],"action":[1025],"isHovered":[1028,"is-hovered"],"collapseSidebar":[64],"expandSidebar":[64]}]]],["gb-slider-control-handle.cjs",[[1,"gb-slider-control-handle",{"value":[2],"type":[1],"isHovered":[32],"isFocused":[32]}]]],["gb-toggle-base.cjs",[[1,"gb-toggle-base",{"size":[1],"state":[1]}]]],["gb-dropdown-items-with-shortcut.cjs",[[1,"gb-dropdown-items-with-shortcut",{"icon":[4],"iconSrc":[1,"icon-src"],"checkbox":[4],"shortcut":[4],"shortcutIcon":[1,"shortcut-icon"],"label":[1],"state":[1]}]]],["gb-progress-bar.cjs",[[1,"gb-progress-bar",{"progress":[2],"showLabel":[4,"show-label"],"labelPosition":[1,"label-position"],"el":[16]}]]],["gb-checkbox.cjs",[[1,"gb-checkbox",{"checked":[4],"indeterminate":[4],"size":[1],"type":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]]], options);
22
+ return index.bootstrapLazy([["gb-avatar_30.cjs",[[1,"gb-sidebar",{"state":[1025],"category":[1],"showSecondCategory":[4,"show-second-category"],"applicationName":[1,"application-name"],"firstItemIcon":[1,"first-item-icon"],"secondItemIcon":[1,"second-item-icon"],"thirdItemIcon":[1,"third-item-icon"],"fourthItemIcon":[1,"fourth-item-icon"],"fifthItemIcon":[1,"fifth-item-icon"],"sixthItemIcon":[1,"sixth-item-icon"],"seventhItemIcon":[1,"seventh-item-icon"],"eighthItemIcon":[1,"eighth-item-icon"],"ninthItemIcon":[1,"ninth-item-icon"],"tenthItemIcon":[1,"tenth-item-icon"],"iconInstance":[1,"icon-instance"],"label":[1],"firstItemLabel":[1,"first-item-label"],"secondItemLabel":[1,"second-item-label"],"thirdItemLabel":[1,"third-item-label"],"fourthItemLabel":[1,"fourth-item-label"],"fifthItemLabel":[1,"fifth-item-label"],"sixthItemLabel":[1,"sixth-item-label"],"seventhItemLabel":[1,"seventh-item-label"],"eighthItemLabel":[1,"eighth-item-label"],"ninthItemLabel":[1,"ninth-item-label"],"tenthItemLabel":[1,"tenth-item-label"],"activeIndex":[32],"leadingIconSvg":[32],"sideBarItemClicked":[64]}],[1,"gb-horizontal-tabs",{"type":[1],"size":[1],"fullWidth":[4,"full-width"],"breakpoint":[1],"thirdTab":[4,"third-tab"],"fourthTab":[4,"fourth-tab"],"fifthTab":[4,"fifth-tab"],"sixthTab":[4,"sixth-tab"],"seventhTab":[4,"seventh-tab"],"eighthTab":[4,"eighth-tab"],"ninthTab":[4,"ninth-tab"],"tenthTab":[4,"tenth-tab"],"firstTabName":[1,"first-tab-name"],"secondTabName":[1,"second-tab-name"],"thirdTabName":[1,"third-tab-name"],"fourthTabName":[1,"fourth-tab-name"],"fifthTabName":[1,"fifth-tab-name"],"sixthTabName":[1,"sixth-tab-name"],"seventhTabName":[1,"seventh-tab-name"],"eighthTabName":[1,"eighth-tab-name"],"ninthTabName":[1,"ninth-tab-name"],"tenthTabName":[1,"tenth-tab-name"],"activeIndex":[32]}],[1,"gb-tag",{"size":[1],"icon":[1],"action":[1],"flagSwap":[1,"flag-swap"],"checkbox":[4]}],[1,"gb-avatar-group",{"size":[1],"moreUsers":[4,"more-users"],"addMoreButton":[4,"add-more-button"],"text":[4],"state":[1],"images":[16]}],[1,"gb-checkbox-group-item",{"size":[1],"type":[1],"state":[1],"breakpoint":[1],"showCost":[4,"show-cost"],"selected":[1028]}],[1,"gb-header",{"state":[1],"showIndicator":[4,"show-indicator"],"text":[4],"placeholder":[4]}],[1,"gb-input-dropdown",{"type":[1],"state":[1],"size":[1],"showLabel":[4,"show-label"],"label":[1],"showPlaceholder":[4,"show-placeholder"],"placeholderText":[1,"placeholder-text"],"showHintText":[4,"show-hint-text"],"hintText":[1,"hint-text"],"showHelpIcon":[4,"show-help-icon"],"iconSwap":[1,"icon-swap"],"text":[4]}],[1,"gb-toast",{"color":[1],"size":[1],"breakpoint":[1],"xCloseButton":[4,"x-close-button"],"actions":[4],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-pagination",{"type":[1],"shape":[1],"breakpoint":[1],"currentPage":[2,"current-page"],"totalPages":[2,"total-pages"]}],[4,"gb-btn",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[0,"gb-carousel-arrow",{"size":[1],"chevron":[1]}],[1,"gb-pagination-button-group-base",{"icon":[1],"iconLeading":[1,"icon-leading"],"iconTrailing":[1,"icon-trailing"]}],[1,"gb-side-bar-item",{"state":[1],"type":[1],"label":[1],"icon":[1],"category":[1],"showArrow":[4,"show-arrow"],"showBadge":[4,"show-badge"],"showTooltip":[1028,"show-tooltip"],"leadingIconSvg":[32],"textState":[32]}],[1,"gb-tab-button-base",{"current":[4],"size":[1],"fullWidth":[4,"full-width"],"badge":[4],"type":[1],"tabName":[1,"tab-name"]}],[1,"gb-avatar-add-button",{"size":[1],"showToolTip":[1028,"show-tool-tip"],"state":[1],"el":[16]}],[1,"gb-collapse-button",{"color":[1],"isCollapsed":[1028,"is-collapsed"],"action":[1025],"isHovered":[1028,"is-hovered"],"collapseSidebar":[64],"expandSidebar":[64]}],[1,"gb-header-icon",{"state":[1],"showIndicator":[4,"show-indicator"],"icon":[1]}],[1,"gb-tag-checkbox",{"checked":[4],"size":[1],"disabled":[4]}],[1,"gb-tag-close",{"size":[1]}],[1,"gb-tag-count",{"size":[1]}],[1,"gb-toast-button",{"state":[1],"color":[1]}],[1,"gb-button-close",{"size":[1],"color":[1]}],[1,"gb-badge",{"size":[1],"icon":[1],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailingSwap":[1,"icon-trailing-swap"],"flagSwap":[1,"flag-swap"],"color":[1],"type":[1],"closeButton":[4,"close-button"],"leadingIconContent":[32],"trailingIconContent":[32]}],[1,"gb-badge-close",{"color":[1],"type":[1]}],[1,"gb-button",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[1,"gb-checkbox-base",{"state":[1025],"size":[1],"type":[1],"checked":[1028],"indeterminate":[1028]}],[1,"gb-tooltip",{"showArrow":[4,"show-arrow"],"arrow":[1],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-avatar",{"size":[1],"placeholder":[4],"text":[4],"statusIcon":[1,"status-icon"],"state":[1],"icon":[1],"weight":[1]}],[1,"gb-avatar-contrast-inner-border",{"weight":[1],"size":[1]}],[1,"gb-status-indicator",{"statusIcon":[1,"status-icon"],"size":[1],"state":[1],"indicatorStateClass":[1,"indicator-state-class"]}]]],["gb-avatar-dropdown.cjs",[[1,"gb-avatar-dropdown",{"type":[1],"text":[4],"showProfile":[4,"show-profile"],"showDarkTheme":[4,"show-dark-theme"],"showLogOut":[4,"show-log-out"],"listGroupOne":[4,"list-group-one"],"listGroupTwo":[4,"list-group-two"],"listGroupThree":[4,"list-group-three"]}]]],["gb-file-upload.cjs",[[1,"gb-file-upload",{"icon":[1],"type":[1],"heightSize":[1,"height-size"],"state":[1],"destructive":[4],"showLabel":[4,"show-label"],"buttonState":[1,"button-state"]}]]],["gb-input-dropdown-menu-item.cjs",[[1,"gb-input-dropdown-menu-item",{"type":[1],"supportingText":[4,"supporting-text"],"selected":[1028],"state":[1]}]]],["gb-avatar-profile-photo.cjs",[[1,"gb-avatar-profile-photo",{"placeholder":[4],"text":[4],"size":[1],"verified":[4],"icon":[1]}]]],["gb-help-dropdown.cjs",[[1,"gb-help-dropdown",{"showLogError":[4,"show-log-error"]}]]],["gb-slider.cjs",[[1,"gb-slider",{"min":[2],"max":[2],"thumbType":[1,"thumb-type"],"leftValue":[32],"rightValue":[32]}]]],["gb-toggle.cjs",[[1,"gb-toggle",{"size":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]],["gb-checkbox-group.cjs",[[1,"gb-checkbox-group",{"size":[1],"breakpoint":[1],"icon":[1],"selected":[4],"type":[1]}]]],["gb-file-type-icon.cjs",[[1,"gb-file-type-icon"]]],["gb-input-field.cjs",[[1,"gb-input-field",{"size":[1],"inputType":[1,"input-type"],"destructive":[4],"helpIcon":[4,"help-icon"],"icon":[1],"placeholder":[1],"label":[1]}]]],["gb-megainput-field.cjs",[[1,"gb-megainput-field",{"size":[1]}]]],["gb-notification-content.cjs",[[1,"gb-notification-content",{"icon":[1],"label":[1],"time":[1],"supportingText":[1,"supporting-text"]}]]],["gb-notification-panel.cjs",[[1,"gb-notification-panel",{"state":[1],"notifications":[32]},[[0,"slotchange","handleSlotChange"]]]]],["gb-pagination-dot-indicator.cjs",[[0,"gb-pagination-dot-indicator",{"current":[4],"type":[1],"size":[1]}]]],["gb-pagination-number-base.cjs",[[1,"gb-pagination-number-base",{"shape":[1]}]]],["gb-progress-circle.cjs",[[1,"gb-progress-circle",{"size":[1],"shape":[1],"label":[4],"progress":[2]}]]],["gb-scrollbar.cjs",[[1,"gb-scrollbar",{"length":[1]}]]],["gb-textarea-input-field.cjs",[[1,"gb-textarea-input-field",{"type":[1],"destructive":[4],"placeholder":[1],"label":[1]}]]],["gb-wysiwyg-editor-icon.cjs",[[1,"gb-wysiwyg-editor-icon"]]],["gb-file-upload-item-base.cjs",[[1,"gb-file-upload-item-base",{"icon":[1],"state":[1],"heightSize":[1,"height-size"],"fileType":[1,"file-type"],"buttonState":[1,"button-state"]}]]],["gb-avatar-label-group.cjs",[[1,"gb-avatar-label-group",{"size":[1],"statusIcon":[1,"status-icon"],"state":[1],"placeholder":[4],"text":[4]}]]],["gb-slider-control-handle.cjs",[[1,"gb-slider-control-handle",{"value":[2],"type":[1],"isHovered":[32],"isFocused":[32]}]]],["gb-toggle-base.cjs",[[1,"gb-toggle-base",{"size":[1],"state":[1]}]]],["gb-dropdown-items-with-shortcut.cjs",[[1,"gb-dropdown-items-with-shortcut",{"icon":[4],"iconSrc":[1,"icon-src"],"checkbox":[4],"shortcut":[4],"shortcutIcon":[1,"shortcut-icon"],"label":[1],"state":[1]}]]],["gb-progress-bar.cjs",[[1,"gb-progress-bar",{"progress":[2],"showLabel":[4,"show-label"],"labelPosition":[1,"label-position"],"el":[16]}]]],["gb-checkbox.cjs",[[1,"gb-checkbox",{"checked":[4],"indeterminate":[4],"size":[1],"type":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["gb-avatar_28.cjs",[[1,"gb-horizontal-tabs",{"type":[1],"size":[1],"fullWidth":[4,"full-width"],"breakpoint":[1],"thirdTab":[4,"third-tab"],"fourthTab":[4,"fourth-tab"],"fifthTab":[4,"fifth-tab"],"sixthTab":[4,"sixth-tab"],"seventhTab":[4,"seventh-tab"],"eighthTab":[4,"eighth-tab"],"ninthTab":[4,"ninth-tab"],"tenthTab":[4,"tenth-tab"],"firstTabName":[1,"first-tab-name"],"secondTabName":[1,"second-tab-name"],"thirdTabName":[1,"third-tab-name"],"fourthTabName":[1,"fourth-tab-name"],"fifthTabName":[1,"fifth-tab-name"],"sixthTabName":[1,"sixth-tab-name"],"seventhTabName":[1,"seventh-tab-name"],"eighthTabName":[1,"eighth-tab-name"],"ninthTabName":[1,"ninth-tab-name"],"tenthTabName":[1,"tenth-tab-name"],"activeIndex":[32]}],[1,"gb-tag",{"size":[1],"icon":[1],"action":[1],"flagSwap":[1,"flag-swap"],"checkbox":[4]}],[1,"gb-avatar-group",{"size":[1],"moreUsers":[4,"more-users"],"addMoreButton":[4,"add-more-button"],"text":[4],"state":[1],"images":[16]}],[1,"gb-checkbox-group-item",{"size":[1],"type":[1],"state":[1],"breakpoint":[1],"showCost":[4,"show-cost"],"selected":[1028]}],[1,"gb-header",{"state":[1],"showIndicator":[4,"show-indicator"],"text":[4],"placeholder":[4]}],[1,"gb-input-dropdown",{"type":[1],"state":[1],"size":[1],"showLabel":[4,"show-label"],"label":[1],"showPlaceholder":[4,"show-placeholder"],"placeholderText":[1,"placeholder-text"],"showHintText":[4,"show-hint-text"],"hintText":[1,"hint-text"],"showHelpIcon":[4,"show-help-icon"],"iconSwap":[1,"icon-swap"],"text":[4]}],[1,"gb-toast",{"color":[1],"size":[1],"breakpoint":[1],"xCloseButton":[4,"x-close-button"],"actions":[4],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-pagination",{"type":[1],"shape":[1],"breakpoint":[1],"currentPage":[2,"current-page"],"totalPages":[2,"total-pages"]}],[4,"gb-btn",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[0,"gb-carousel-arrow",{"size":[1],"chevron":[1]}],[1,"gb-pagination-button-group-base",{"icon":[1],"iconLeading":[1,"icon-leading"],"iconTrailing":[1,"icon-trailing"]}],[1,"gb-side-bar-item",{"state":[1],"type":[1],"label":[1],"icon":[1],"category":[1],"showArrow":[4,"show-arrow"],"showBadge":[4,"show-badge"],"showTooltip":[1028,"show-tooltip"],"leadingIconSvg":[32],"textState":[32]}],[1,"gb-tab-button-base",{"current":[4],"size":[1],"fullWidth":[4,"full-width"],"badge":[4],"type":[1],"tabName":[1,"tab-name"]}],[1,"gb-avatar-add-button",{"size":[1],"showToolTip":[1028,"show-tool-tip"],"state":[1],"el":[16]}],[1,"gb-header-icon",{"state":[1],"showIndicator":[4,"show-indicator"],"icon":[1]}],[1,"gb-tag-checkbox",{"checked":[4],"size":[1],"disabled":[4]}],[1,"gb-tag-close",{"size":[1]}],[1,"gb-tag-count",{"size":[1]}],[1,"gb-toast-button",{"state":[1],"color":[1]}],[1,"gb-button-close",{"size":[1],"color":[1]}],[1,"gb-badge",{"size":[1],"icon":[1],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailingSwap":[1,"icon-trailing-swap"],"flagSwap":[1,"flag-swap"],"color":[1],"type":[1],"closeButton":[4,"close-button"],"leadingIconContent":[32],"trailingIconContent":[32]}],[1,"gb-badge-close",{"color":[1],"type":[1]}],[1,"gb-button",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[1,"gb-checkbox-base",{"state":[1025],"size":[1],"type":[1],"checked":[1028],"indeterminate":[1028]}],[1,"gb-tooltip",{"showArrow":[4,"show-arrow"],"arrow":[1],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-avatar",{"size":[1],"placeholder":[4],"text":[4],"statusIcon":[1,"status-icon"],"state":[1],"icon":[1],"weight":[1]}],[1,"gb-avatar-contrast-inner-border",{"weight":[1],"size":[1]}],[1,"gb-status-indicator",{"statusIcon":[1,"status-icon"],"size":[1],"state":[1],"indicatorStateClass":[1,"indicator-state-class"]}]]],["gb-sidebar.cjs",[[1,"gb-sidebar",{"state":[1025],"category":[1],"showSecondCategory":[4,"show-second-category"],"applicationName":[1,"application-name"],"firstItemIcon":[1,"first-item-icon"],"secondItemIcon":[1,"second-item-icon"],"thirdItemIcon":[1,"third-item-icon"],"fourthItemIcon":[1,"fourth-item-icon"],"fifthItemIcon":[1,"fifth-item-icon"],"sixthItemIcon":[1,"sixth-item-icon"],"seventhItemIcon":[1,"seventh-item-icon"],"eighthItemIcon":[1,"eighth-item-icon"],"ninthItemIcon":[1,"ninth-item-icon"],"tenthItemIcon":[1,"tenth-item-icon"],"iconInstance":[1,"icon-instance"],"label":[1],"firstItemLabel":[1,"first-item-label"],"secondItemLabel":[1,"second-item-label"],"thirdItemLabel":[1,"third-item-label"],"fourthItemLabel":[1,"fourth-item-label"],"fifthItemLabel":[1,"fifth-item-label"],"sixthItemLabel":[1,"sixth-item-label"],"seventhItemLabel":[1,"seventh-item-label"],"eighthItemLabel":[1,"eighth-item-label"],"ninthItemLabel":[1,"ninth-item-label"],"tenthItemLabel":[1,"tenth-item-label"],"activeIndex":[32],"leadingIconSvg":[32],"sideBarItemClicked":[64]}]]],["gb-avatar-dropdown.cjs",[[1,"gb-avatar-dropdown",{"type":[1],"text":[4],"showProfile":[4,"show-profile"],"showDarkTheme":[4,"show-dark-theme"],"showLogOut":[4,"show-log-out"],"listGroupOne":[4,"list-group-one"],"listGroupTwo":[4,"list-group-two"],"listGroupThree":[4,"list-group-three"]}]]],["gb-file-upload.cjs",[[1,"gb-file-upload",{"icon":[1],"type":[1],"heightSize":[1,"height-size"],"state":[1],"destructive":[4],"showLabel":[4,"show-label"],"buttonState":[1,"button-state"]}]]],["gb-input-dropdown-menu-item.cjs",[[1,"gb-input-dropdown-menu-item",{"type":[1],"supportingText":[4,"supporting-text"],"selected":[1028],"state":[1]}]]],["gb-avatar-profile-photo.cjs",[[1,"gb-avatar-profile-photo",{"placeholder":[4],"text":[4],"size":[1],"verified":[4],"icon":[1]}]]],["gb-help-dropdown.cjs",[[1,"gb-help-dropdown",{"showLogError":[4,"show-log-error"]}]]],["gb-slider.cjs",[[1,"gb-slider",{"min":[2],"max":[2],"thumbType":[1,"thumb-type"],"leftValue":[32],"rightValue":[32]}]]],["gb-toggle.cjs",[[1,"gb-toggle",{"size":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]],["gb-checkbox-group.cjs",[[1,"gb-checkbox-group",{"size":[1],"breakpoint":[1],"icon":[1],"selected":[4],"type":[1]}]]],["gb-file-type-icon.cjs",[[1,"gb-file-type-icon"]]],["gb-input-field.cjs",[[1,"gb-input-field",{"size":[1],"inputType":[1,"input-type"],"destructive":[4],"helpIcon":[4,"help-icon"],"icon":[1],"placeholder":[1],"label":[1]}]]],["gb-megainput-field.cjs",[[1,"gb-megainput-field",{"size":[1]}]]],["gb-notification-content.cjs",[[1,"gb-notification-content",{"icon":[1],"label":[1],"time":[1],"supportingText":[1,"supporting-text"]}]]],["gb-notification-panel.cjs",[[1,"gb-notification-panel",{"state":[1],"notifications":[32]},[[0,"slotchange","handleSlotChange"]]]]],["gb-pagination-dot-indicator.cjs",[[0,"gb-pagination-dot-indicator",{"current":[4],"type":[1],"size":[1]}]]],["gb-pagination-number-base.cjs",[[1,"gb-pagination-number-base",{"shape":[1]}]]],["gb-progress-circle.cjs",[[1,"gb-progress-circle",{"size":[1],"shape":[1],"label":[4],"progress":[2]}]]],["gb-scrollbar.cjs",[[1,"gb-scrollbar",{"length":[1]}]]],["gb-textarea-input-field.cjs",[[1,"gb-textarea-input-field",{"type":[1],"destructive":[4],"placeholder":[1],"label":[1]}]]],["gb-wysiwyg-editor-icon.cjs",[[1,"gb-wysiwyg-editor-icon"]]],["gb-file-upload-item-base.cjs",[[1,"gb-file-upload-item-base",{"icon":[1],"state":[1],"heightSize":[1,"height-size"],"fileType":[1,"file-type"],"buttonState":[1,"button-state"]}]]],["gb-avatar-label-group.cjs",[[1,"gb-avatar-label-group",{"size":[1],"statusIcon":[1,"status-icon"],"state":[1],"placeholder":[4],"text":[4]}]]],["gb-collapse-button.cjs",[[1,"gb-collapse-button",{"color":[1],"isCollapsed":[1028,"is-collapsed"],"action":[1025],"isHovered":[1028,"is-hovered"],"collapseSidebar":[64],"expandSidebar":[64]}]]],["gb-slider-control-handle.cjs",[[1,"gb-slider-control-handle",{"value":[2],"type":[1],"isHovered":[32],"isFocused":[32]}]]],["gb-toggle-base.cjs",[[1,"gb-toggle-base",{"size":[1],"state":[1]}]]],["gb-dropdown-items-with-shortcut.cjs",[[1,"gb-dropdown-items-with-shortcut",{"icon":[4],"iconSrc":[1,"icon-src"],"checkbox":[4],"shortcut":[4],"shortcutIcon":[1,"shortcut-icon"],"label":[1],"state":[1]}]]],["gb-progress-bar.cjs",[[1,"gb-progress-bar",{"progress":[2],"showLabel":[4,"show-label"],"labelPosition":[1,"label-position"],"el":[16]}]]],["gb-checkbox.cjs",[[1,"gb-checkbox",{"checked":[4],"indeterminate":[4],"size":[1],"type":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]]], options);
11
+ return index.bootstrapLazy([["gb-avatar_30.cjs",[[1,"gb-sidebar",{"state":[1025],"category":[1],"showSecondCategory":[4,"show-second-category"],"applicationName":[1,"application-name"],"firstItemIcon":[1,"first-item-icon"],"secondItemIcon":[1,"second-item-icon"],"thirdItemIcon":[1,"third-item-icon"],"fourthItemIcon":[1,"fourth-item-icon"],"fifthItemIcon":[1,"fifth-item-icon"],"sixthItemIcon":[1,"sixth-item-icon"],"seventhItemIcon":[1,"seventh-item-icon"],"eighthItemIcon":[1,"eighth-item-icon"],"ninthItemIcon":[1,"ninth-item-icon"],"tenthItemIcon":[1,"tenth-item-icon"],"iconInstance":[1,"icon-instance"],"label":[1],"firstItemLabel":[1,"first-item-label"],"secondItemLabel":[1,"second-item-label"],"thirdItemLabel":[1,"third-item-label"],"fourthItemLabel":[1,"fourth-item-label"],"fifthItemLabel":[1,"fifth-item-label"],"sixthItemLabel":[1,"sixth-item-label"],"seventhItemLabel":[1,"seventh-item-label"],"eighthItemLabel":[1,"eighth-item-label"],"ninthItemLabel":[1,"ninth-item-label"],"tenthItemLabel":[1,"tenth-item-label"],"activeIndex":[32],"leadingIconSvg":[32],"sideBarItemClicked":[64]}],[1,"gb-horizontal-tabs",{"type":[1],"size":[1],"fullWidth":[4,"full-width"],"breakpoint":[1],"thirdTab":[4,"third-tab"],"fourthTab":[4,"fourth-tab"],"fifthTab":[4,"fifth-tab"],"sixthTab":[4,"sixth-tab"],"seventhTab":[4,"seventh-tab"],"eighthTab":[4,"eighth-tab"],"ninthTab":[4,"ninth-tab"],"tenthTab":[4,"tenth-tab"],"firstTabName":[1,"first-tab-name"],"secondTabName":[1,"second-tab-name"],"thirdTabName":[1,"third-tab-name"],"fourthTabName":[1,"fourth-tab-name"],"fifthTabName":[1,"fifth-tab-name"],"sixthTabName":[1,"sixth-tab-name"],"seventhTabName":[1,"seventh-tab-name"],"eighthTabName":[1,"eighth-tab-name"],"ninthTabName":[1,"ninth-tab-name"],"tenthTabName":[1,"tenth-tab-name"],"activeIndex":[32]}],[1,"gb-tag",{"size":[1],"icon":[1],"action":[1],"flagSwap":[1,"flag-swap"],"checkbox":[4]}],[1,"gb-avatar-group",{"size":[1],"moreUsers":[4,"more-users"],"addMoreButton":[4,"add-more-button"],"text":[4],"state":[1],"images":[16]}],[1,"gb-checkbox-group-item",{"size":[1],"type":[1],"state":[1],"breakpoint":[1],"showCost":[4,"show-cost"],"selected":[1028]}],[1,"gb-header",{"state":[1],"showIndicator":[4,"show-indicator"],"text":[4],"placeholder":[4]}],[1,"gb-input-dropdown",{"type":[1],"state":[1],"size":[1],"showLabel":[4,"show-label"],"label":[1],"showPlaceholder":[4,"show-placeholder"],"placeholderText":[1,"placeholder-text"],"showHintText":[4,"show-hint-text"],"hintText":[1,"hint-text"],"showHelpIcon":[4,"show-help-icon"],"iconSwap":[1,"icon-swap"],"text":[4]}],[1,"gb-toast",{"color":[1],"size":[1],"breakpoint":[1],"xCloseButton":[4,"x-close-button"],"actions":[4],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-pagination",{"type":[1],"shape":[1],"breakpoint":[1],"currentPage":[2,"current-page"],"totalPages":[2,"total-pages"]}],[4,"gb-btn",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[0,"gb-carousel-arrow",{"size":[1],"chevron":[1]}],[1,"gb-pagination-button-group-base",{"icon":[1],"iconLeading":[1,"icon-leading"],"iconTrailing":[1,"icon-trailing"]}],[1,"gb-side-bar-item",{"state":[1],"type":[1],"label":[1],"icon":[1],"category":[1],"showArrow":[4,"show-arrow"],"showBadge":[4,"show-badge"],"showTooltip":[1028,"show-tooltip"],"leadingIconSvg":[32],"textState":[32]}],[1,"gb-tab-button-base",{"current":[4],"size":[1],"fullWidth":[4,"full-width"],"badge":[4],"type":[1],"tabName":[1,"tab-name"]}],[1,"gb-avatar-add-button",{"size":[1],"showToolTip":[1028,"show-tool-tip"],"state":[1],"el":[16]}],[1,"gb-collapse-button",{"color":[1],"isCollapsed":[1028,"is-collapsed"],"action":[1025],"isHovered":[1028,"is-hovered"],"collapseSidebar":[64],"expandSidebar":[64]}],[1,"gb-header-icon",{"state":[1],"showIndicator":[4,"show-indicator"],"icon":[1]}],[1,"gb-tag-checkbox",{"checked":[4],"size":[1],"disabled":[4]}],[1,"gb-tag-close",{"size":[1]}],[1,"gb-tag-count",{"size":[1]}],[1,"gb-toast-button",{"state":[1],"color":[1]}],[1,"gb-button-close",{"size":[1],"color":[1]}],[1,"gb-badge",{"size":[1],"icon":[1],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailingSwap":[1,"icon-trailing-swap"],"flagSwap":[1,"flag-swap"],"color":[1],"type":[1],"closeButton":[4,"close-button"],"leadingIconContent":[32],"trailingIconContent":[32]}],[1,"gb-badge-close",{"color":[1],"type":[1]}],[1,"gb-button",{"size":[1],"hierarchy":[1],"icon":[1],"destructive":[4],"state":[1],"iconLeading":[4,"icon-leading"],"iconLeadingSwap":[1,"icon-leading-swap"],"iconTrailing":[4,"icon-trailing"],"iconTrailingSwap":[1,"icon-trailing-swap"],"leadingIconSvg":[32],"trailingIconSvg":[32]}],[1,"gb-checkbox-base",{"state":[1025],"size":[1],"type":[1],"checked":[1028],"indeterminate":[1028]}],[1,"gb-tooltip",{"showArrow":[4,"show-arrow"],"arrow":[1],"showSupportingText":[4,"show-supporting-text"]}],[1,"gb-avatar",{"size":[1],"placeholder":[4],"text":[4],"statusIcon":[1,"status-icon"],"state":[1],"icon":[1],"weight":[1]}],[1,"gb-avatar-contrast-inner-border",{"weight":[1],"size":[1]}],[1,"gb-status-indicator",{"statusIcon":[1,"status-icon"],"size":[1],"state":[1],"indicatorStateClass":[1,"indicator-state-class"]}]]],["gb-avatar-dropdown.cjs",[[1,"gb-avatar-dropdown",{"type":[1],"text":[4],"showProfile":[4,"show-profile"],"showDarkTheme":[4,"show-dark-theme"],"showLogOut":[4,"show-log-out"],"listGroupOne":[4,"list-group-one"],"listGroupTwo":[4,"list-group-two"],"listGroupThree":[4,"list-group-three"]}]]],["gb-file-upload.cjs",[[1,"gb-file-upload",{"icon":[1],"type":[1],"heightSize":[1,"height-size"],"state":[1],"destructive":[4],"showLabel":[4,"show-label"],"buttonState":[1,"button-state"]}]]],["gb-input-dropdown-menu-item.cjs",[[1,"gb-input-dropdown-menu-item",{"type":[1],"supportingText":[4,"supporting-text"],"selected":[1028],"state":[1]}]]],["gb-avatar-profile-photo.cjs",[[1,"gb-avatar-profile-photo",{"placeholder":[4],"text":[4],"size":[1],"verified":[4],"icon":[1]}]]],["gb-help-dropdown.cjs",[[1,"gb-help-dropdown",{"showLogError":[4,"show-log-error"]}]]],["gb-slider.cjs",[[1,"gb-slider",{"min":[2],"max":[2],"thumbType":[1,"thumb-type"],"leftValue":[32],"rightValue":[32]}]]],["gb-toggle.cjs",[[1,"gb-toggle",{"size":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]],["gb-checkbox-group.cjs",[[1,"gb-checkbox-group",{"size":[1],"breakpoint":[1],"icon":[1],"selected":[4],"type":[1]}]]],["gb-file-type-icon.cjs",[[1,"gb-file-type-icon"]]],["gb-input-field.cjs",[[1,"gb-input-field",{"size":[1],"inputType":[1,"input-type"],"destructive":[4],"helpIcon":[4,"help-icon"],"icon":[1],"placeholder":[1],"label":[1]}]]],["gb-megainput-field.cjs",[[1,"gb-megainput-field",{"size":[1]}]]],["gb-notification-content.cjs",[[1,"gb-notification-content",{"icon":[1],"label":[1],"time":[1],"supportingText":[1,"supporting-text"]}]]],["gb-notification-panel.cjs",[[1,"gb-notification-panel",{"state":[1],"notifications":[32]},[[0,"slotchange","handleSlotChange"]]]]],["gb-pagination-dot-indicator.cjs",[[0,"gb-pagination-dot-indicator",{"current":[4],"type":[1],"size":[1]}]]],["gb-pagination-number-base.cjs",[[1,"gb-pagination-number-base",{"shape":[1]}]]],["gb-progress-circle.cjs",[[1,"gb-progress-circle",{"size":[1],"shape":[1],"label":[4],"progress":[2]}]]],["gb-scrollbar.cjs",[[1,"gb-scrollbar",{"length":[1]}]]],["gb-textarea-input-field.cjs",[[1,"gb-textarea-input-field",{"type":[1],"destructive":[4],"placeholder":[1],"label":[1]}]]],["gb-wysiwyg-editor-icon.cjs",[[1,"gb-wysiwyg-editor-icon"]]],["gb-file-upload-item-base.cjs",[[1,"gb-file-upload-item-base",{"icon":[1],"state":[1],"heightSize":[1,"height-size"],"fileType":[1,"file-type"],"buttonState":[1,"button-state"]}]]],["gb-avatar-label-group.cjs",[[1,"gb-avatar-label-group",{"size":[1],"statusIcon":[1,"status-icon"],"state":[1],"placeholder":[4],"text":[4]}]]],["gb-slider-control-handle.cjs",[[1,"gb-slider-control-handle",{"value":[2],"type":[1],"isHovered":[32],"isFocused":[32]}]]],["gb-toggle-base.cjs",[[1,"gb-toggle-base",{"size":[1],"state":[1]}]]],["gb-dropdown-items-with-shortcut.cjs",[[1,"gb-dropdown-items-with-shortcut",{"icon":[4],"iconSrc":[1,"icon-src"],"checkbox":[4],"shortcut":[4],"shortcutIcon":[1,"shortcut-icon"],"label":[1],"state":[1]}]]],["gb-progress-bar.cjs",[[1,"gb-progress-bar",{"progress":[2],"showLabel":[4,"show-label"],"labelPosition":[1,"label-position"],"el":[16]}]]],["gb-checkbox.cjs",[[1,"gb-checkbox",{"checked":[4],"indeterminate":[4],"size":[1],"type":[1],"state":[1],"supportingText":[4,"supporting-text"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -25,14 +25,15 @@ export class GbHorizontalTabs {
25
25
  this.tenthTabName = '';
26
26
  this.activeIndex = 0;
27
27
  }
28
- handleTabClick(index) {
28
+ async handleTabClick(index) {
29
29
  this.activeIndex = index;
30
+ this.tabItemClicked.emit(index);
30
31
  }
31
32
  componentDidLoad() {
32
33
  this.activeIndex = 0;
33
34
  }
34
35
  render() {
35
- return (h("div", { key: '75e602493dd0136194ff6d80d31a4a2249b42dbf', class: `horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}` }, h("gb-tab-button-base", { key: 'e4b02f18f6fa4e6ebb0b8cfd0bd050470403867d', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(0), current: this.activeIndex === 0, "tab-name": this.firstTabName }), h("gb-tab-button-base", { key: '4c76d16ed0bfc0e4e4302a7a2e6a12db3898aed1', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(1), current: this.activeIndex === 1, "tab-name": this.secondTabName }), this.thirdTab && (h("gb-tab-button-base", { key: '582035af2dd4111f5f07d55fa6228be27e3f4c80', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(2), current: this.activeIndex === 2, "tab-name": this.thirdTabName })), this.fourthTab && (h("gb-tab-button-base", { key: '2c5fe024a65000b96a45835b325c7b62212e5ae3', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(3), current: this.activeIndex === 3, "tab-name": this.fourthTabName })), this.fifthTab && (h("gb-tab-button-base", { key: '517149a071525a08440f900371d9216da2200b83', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(4), current: this.activeIndex === 4, "tab-name": this.fifthTabName })), this.sixthTab && (h("gb-tab-button-base", { key: 'daf4a113c6d554cbf9658cc87c880e1b6d85eb15', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(5), current: this.activeIndex === 5, "tab-name": this.sixthTabName })), this.seventhTab && (h("gb-tab-button-base", { key: 'ba13d25035a0ff5fcb6b3d1c2977e47c535d82ac', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(6), current: this.activeIndex === 6, "tab-name": this.seventhTabName })), this.eighthTab && (h("gb-tab-button-base", { key: '55fd6c28c8850c17da8b619ac944f061478055b5', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(7), current: this.activeIndex === 7, "tab-name": this.eighthTabName })), this.ninthTab && (h("gb-tab-button-base", { key: '5defdd08e9716a918d881ca1bba4c23071069d7f', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(8), current: this.activeIndex === 8, "tab-name": this.ninthTabName })), this.tenthTab && (h("gb-tab-button-base", { key: '38b954e9f882b8db69ef3907d0f726af07cb8a7b', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(9), current: this.activeIndex === 9, "tab-name": this.tenthTabName }))));
36
+ return (h("div", { key: '156e4b0de5762614f0f9dc1615e1876dc3585f42', class: `horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}` }, h("gb-tab-button-base", { key: 'aa89779a1277a26e585e399631f0b47cdb1968fc', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(0), current: this.activeIndex === 0, "tab-name": this.firstTabName }), h("gb-tab-button-base", { key: 'ad1f199163bf8bd746d5f2e653bf37e7dfa0847c', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(1), current: this.activeIndex === 1, "tab-name": this.secondTabName }), this.thirdTab && (h("gb-tab-button-base", { key: '07513e792df660afe6b2428fd1ce12f1f4c54326', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(2), current: this.activeIndex === 2, "tab-name": this.thirdTabName })), this.fourthTab && (h("gb-tab-button-base", { key: 'ab92d72ea823f9142c462d993640977cc411edf6', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(3), current: this.activeIndex === 3, "tab-name": this.fourthTabName })), this.fifthTab && (h("gb-tab-button-base", { key: '8da1f438492bbb9703f061bb79ca72a77c444c7d', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(4), current: this.activeIndex === 4, "tab-name": this.fifthTabName })), this.sixthTab && (h("gb-tab-button-base", { key: 'dbc50e8bc27a503b9dc2d339a0fb3419071abaff', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(5), current: this.activeIndex === 5, "tab-name": this.sixthTabName })), this.seventhTab && (h("gb-tab-button-base", { key: '9fc933fb313cc191080e9ed4c6044cdfc65ec6a6', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(6), current: this.activeIndex === 6, "tab-name": this.seventhTabName })), this.eighthTab && (h("gb-tab-button-base", { key: '8ab18312b1fc1660be43c7c28bf79ca1370e87a4', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(7), current: this.activeIndex === 7, "tab-name": this.eighthTabName })), this.ninthTab && (h("gb-tab-button-base", { key: '26b22f8bd60f734e55b8005c8e80cf48b7150ca2', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(8), current: this.activeIndex === 8, "tab-name": this.ninthTabName })), this.tenthTab && (h("gb-tab-button-base", { key: '89e6e836003874966510555168f3a64bd0c35613', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(9), current: this.activeIndex === 9, "tab-name": this.tenthTabName }))));
36
37
  }
37
38
  static get is() { return "gb-horizontal-tabs"; }
38
39
  static get encapsulation() { return "shadow"; }
@@ -466,5 +467,23 @@ export class GbHorizontalTabs {
466
467
  "activeIndex": {}
467
468
  };
468
469
  }
470
+ static get events() {
471
+ return [{
472
+ "method": "tabItemClicked",
473
+ "name": "tabItemClicked",
474
+ "bubbles": true,
475
+ "cancelable": true,
476
+ "composed": true,
477
+ "docs": {
478
+ "tags": [],
479
+ "text": ""
480
+ },
481
+ "complexType": {
482
+ "original": "number",
483
+ "resolved": "number",
484
+ "references": {}
485
+ }
486
+ }];
487
+ }
469
488
  }
470
489
  //# sourceMappingURL=gb-horizontal-tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gb-horizontal-tabs.js","sourceRoot":"","sources":["../../../src/components/gb-horizontal-tabs/gb-horizontal-tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQ1D,MAAM,OAAO,gBAAgB;;;;yBAGE,KAAK;;wBAEN,KAAK;yBACJ,KAAK;wBACN,KAAK;wBACL,KAAK;0BACH,KAAK;yBACN,KAAK;wBACN,KAAK;wBACL,KAAK;4BACF,EAAE;6BACD,EAAE;4BACH,EAAE;6BACD,EAAE;4BACH,EAAE;4BACF,EAAE;8BACA,EAAE;6BACH,EAAE;4BACH,EAAE;4BACF,EAAE;2BACF,CAAC;;IAEhC,cAAc,CAAC,KAAa;QAC1B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED,gBAAgB;QACd,I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GeneralSizes, TabTypes } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-horizontal-tabs',\r\n styleUrl: 'gb-horizontal-tabs.css',\r\n shadow: true,\r\n})\r\nexport class GbHorizontalTabs {\r\n @Prop() type: TabTypes;\r\n @Prop() size: GeneralSizes;\r\n @Prop() fullWidth: boolean = false;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() thirdTab: boolean = false;\r\n @Prop() fourthTab: boolean = false;\r\n @Prop() fifthTab: boolean = false;\r\n @Prop() sixthTab: boolean = false;\r\n @Prop() seventhTab: boolean = false;\r\n @Prop() eighthTab: boolean = false;\r\n @Prop() ninthTab: boolean = false;\r\n @Prop() tenthTab: boolean = false;\r\n @Prop() firstTabName: string = '';\r\n @Prop() secondTabName: string = '';\r\n @Prop() thirdTabName: string = '';\r\n @Prop() fourthTabName: string = '';\r\n @Prop() fifthTabName: string = '';\r\n @Prop() sixthTabName: string = '';\r\n @Prop() seventhTabName: string = '';\r\n @Prop() eighthTabName: string = '';\r\n @Prop() ninthTabName: string = '';\r\n @Prop() tenthTabName: string = '';\r\n @State() activeIndex: number = 0;\r\n\r\n handleTabClick(index: number) {\r\n this.activeIndex = index;\r\n }\r\n\r\n componentDidLoad() {\r\n this.activeIndex = 0;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}`}>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(0)}\r\n current={this.activeIndex === 0}\r\n tab-name={this.firstTabName}\r\n ></gb-tab-button-base>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(1)}\r\n current={this.activeIndex === 1}\r\n tab-name={this.secondTabName}\r\n ></gb-tab-button-base>\r\n {this.thirdTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(2)}\r\n current={this.activeIndex === 2}\r\n tab-name={this.thirdTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fourthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(3)}\r\n current={this.activeIndex === 3}\r\n tab-name={this.fourthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fifthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(4)}\r\n current={this.activeIndex === 4}\r\n tab-name={this.fifthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.sixthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(5)}\r\n current={this.activeIndex === 5}\r\n tab-name={this.sixthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.seventhTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(6)}\r\n current={this.activeIndex === 6}\r\n tab-name={this.seventhTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.eighthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(7)}\r\n current={this.activeIndex === 7}\r\n tab-name={this.eighthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.ninthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(8)}\r\n current={this.activeIndex === 8}\r\n tab-name={this.ninthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.tenthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(9)}\r\n current={this.activeIndex === 9}\r\n tab-name={this.tenthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
1
+ {"version":3,"file":"gb-horizontal-tabs.js","sourceRoot":"","sources":["../../../src/components/gb-horizontal-tabs/gb-hor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AAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Prop, State, h } from \"@stencil/core\";\r\nimport { BreakPoints, GeneralSizes, TabTypes } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-horizontal-tabs',\r\n styleUrl: 'gb-horizontal-tabs.css',\r\n shadow: true,\r\n})\r\n\r\nexport class GbHorizontalTabs {\r\n @Prop() type: TabTypes;\r\n @Prop() size: GeneralSizes;\r\n @Prop() fullWidth: boolean = false;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() thirdTab: boolean = false;\r\n @Prop() fourthTab: boolean = false;\r\n @Prop() fifthTab: boolean = false;\r\n @Prop() sixthTab: boolean = false;\r\n @Prop() seventhTab: boolean = false;\r\n @Prop() eighthTab: boolean = false;\r\n @Prop() ninthTab: boolean = false;\r\n @Prop() tenthTab: boolean = false;\r\n @Prop() firstTabName: string = '';\r\n @Prop() secondTabName: string = '';\r\n @Prop() thirdTabName: string = '';\r\n @Prop() fourthTabName: string = '';\r\n @Prop() fifthTabName: string = '';\r\n @Prop() sixthTabName: string = '';\r\n @Prop() seventhTabName: string = '';\r\n @Prop() eighthTabName: string = '';\r\n @Prop() ninthTabName: string = '';\r\n @Prop() tenthTabName: string = '';\r\n @State() activeIndex: number = 0;\r\n @Event() tabItemClicked: EventEmitter<number>;\r\n\r\n async handleTabClick(index: number) {\r\n this.activeIndex = index;\r\n this.tabItemClicked.emit(index);\r\n }\r\n\r\n componentDidLoad() {\r\n this.activeIndex = 0;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}`}>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(0)}\r\n current={this.activeIndex === 0}\r\n tab-name={this.firstTabName}\r\n ></gb-tab-button-base>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(1)}\r\n current={this.activeIndex === 1}\r\n tab-name={this.secondTabName}\r\n ></gb-tab-button-base>\r\n {this.thirdTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(2)}\r\n current={this.activeIndex === 2}\r\n tab-name={this.thirdTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fourthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(3)}\r\n current={this.activeIndex === 3}\r\n tab-name={this.fourthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fifthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(4)}\r\n current={this.activeIndex === 4}\r\n tab-name={this.fifthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.sixthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(5)}\r\n current={this.activeIndex === 5}\r\n tab-name={this.sixthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.seventhTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(6)}\r\n current={this.activeIndex === 6}\r\n tab-name={this.seventhTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.eighthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(7)}\r\n current={this.activeIndex === 7}\r\n tab-name={this.eighthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.ninthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(8)}\r\n current={this.activeIndex === 8}\r\n tab-name={this.ninthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.tenthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(9)}\r\n current={this.activeIndex === 9}\r\n tab-name={this.tenthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
@@ -59,7 +59,11 @@ export class GbSidebar {
59
59
  }
60
60
  render() {
61
61
  const textClass = this.category === 'plain_background' ? 'plain_background_color' : 'colored_background_color';
62
- return (h("div", { key: 'a067fab58eb07efdbc3cddea054978ac8cfeb3b9', class: `sidebar_div ${this.state} ${this.category}` }, this.category === 'colored_background' && (h("div", { key: 'cc0440a14fae0764686fdd5a6650854f80df4796', class: "pattern" }, h("img", { key: 'bae5ace6039fe0e0f509d61d754c6e72e9d5db7c', src: "build/assets/pattern_wrapper.svg", alt: "" }))), h("div", { key: 'd3538bec47ee111010037e052da5a82762ca1034', class: "nav" }, h("div", { key: 'e1a495ae5a86d381655f15c44d365fa0cd72cd14', class: `sidebar_header ${this.state}` }, h("div", { key: 'c611ae3402e16f914216e1fc21e4ff2bfa4a0cfd', class: `logo_and_name ${this.state}` }, this.state === 'expanded' && (h(Fragment, null, this.category === 'plain_background' ? h("img", { src: "build/assets/globus_bank_logo_blue.svg" }) : h("img", { src: "build/assets/globus_bank_logo_white.svg" }))), this.state === 'collapsed' && h("img", { key: '8069e3acde4d73742fdd188f2a2e75a1760eb746', src: "build/assets/globus_bank_logo.svg", alt: "" })), h("div", { key: '82e5b1b9125d27c66182b383f8efff7c14ab4313', class: `collapse_button ${this.state}` }, h("gb-collapse-button", { key: '702d2597d4cc56499ee6990334f1e05e64a06a9b', color: this.category === 'plain_background' ? 'gray' : 'white', action: this.state === 'collapsed' ? 'expand' : 'collapse', onClick: () => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar()) }))), h("div", { key: 'a3153cfbcf42ad827de648c9685e827edc8ab8f2', class: "navigation" }, h("div", { key: '8e4ad6ab97681f9f83fbbb6dd6ba81d77a93bd5c', class: "item" }, h("gb-side-bar-item", { key: 'cec2d0454f17793ebf35f19d894c817bab047166', 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: 'ea1c7c863d85e1528c036951f0802f1af4860144', 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: 'e57d077360dd9a2b266fc5836ff5f9ecdcdab022', 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: '3a39d6ef3233339c01cf74fff6ebc362665811f4', 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: '1128a2452802972509f98124d546a50db922947b', 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: '625fffcd3e37812527f2dfe67b4715c5342702e7', class: "navigation" }, h("div", { key: '42d33441f642a62ba976ab9dbbe0ff417ba25aca', class: "item" }, this.sixthItemLabel && (h("gb-side-bar-item", { key: 'dad3fae2de2f1963b24dad397113dcfb04f5a9c2', 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: 'b57a4595c9f399bfaf4f0f8dc800c93716a76ad4', 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: 'f27bd7882dd5fe8557ceda63cdecb603c2984b36', 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: '25f905567be3f8b4045c6dcff3bef5342d85b975', 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: '4749be84e1169d3d4ad2de5811ef5c05a7f25907', 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: 'cc8f7380f6cac5ae780f61ea950fcbc5d9868f87', class: "application_name" }, h("div", { key: 'b4cbf3e193608521cb1b3f553554089af3b18bfb', class: `wrapper ${this.category}` }, this.category === 'plain_background' && (h("div", { key: '142df5484a229eb08b5b6c253dde6e0bce9d90c1', class: "application_name_pattern" }, h("img", { key: 'f095748e80fc46c6d46b5f36fe5dad749a8cc2b5', src: "build/assets/pattern_wrapper.svg", alt: "" }))), h("div", { key: '779e959615e0be2071fe210c9fe147e4f57cac5f', class: `application_icon ${this.category}`, innerHTML: this.leadingIconSvg }), h("span", { key: '524781238e9abb8f79d438bfd144ff9e28aa0e7e', class: textClass }, h("slot", { key: '61a9f5511562596334a7ab6148ca0a3f807f3b97', name: "application_name" })))))));
62
+ const patternSrc = getAssetPath(`assets/pattern_wrapper.svg`);
63
+ const logoSrc = getAssetPath(`assets/globus_bank_logo.svg`);
64
+ const blueLogoSrc = getAssetPath(`assets/globus_bank_logo_blue.svg`);
65
+ const whiteLogoSrc = getAssetPath(`assets/globus_bank_logo_white.svg`);
66
+ return (h("div", { key: '0ac5427ca82c0578b36ce732f73ea0c4e0008f3c', class: `sidebar_div ${this.state} ${this.category}` }, this.category === 'colored_background' && (h("div", { key: 'c04bb0758d3a58553f706ab9c92fe60ad63f22c3', class: "pattern" }, h("img", { key: 'f0e5f702b7fb30de411a2cae840329b49e0df841', src: patternSrc, alt: "" }))), h("div", { key: '3e65c6807f720f87898ec7a46e62361c7a2abd39', class: "nav" }, h("div", { key: '1c10b93efb177648c9a09384f612a0e113cfc0cd', class: `sidebar_header ${this.state}` }, h("div", { key: '797cf58019bc9fb39a7e50492d787b398f27e941', 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: 'c2241fbf1f464ed629287d197498c37aafc23781', src: logoSrc, alt: "" })), h("div", { key: 'ab6ef47a5c81a1cd4dd68fb21df7d3364d174ab5', class: `collapse_button ${this.state}` }, h("gb-collapse-button", { key: '8d96b9f549e048029b30440ae665d9833291cb74', color: this.category === 'plain_background' ? 'gray' : 'white', action: this.state === 'collapsed' ? 'expand' : 'collapse', onClick: () => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar()) }))), h("div", { key: 'e7517390f9aa132fc2cf6f0fe292c85efd8913d4', class: "navigation" }, h("div", { key: 'b04caba3d540e3365edddc71eb09e12f3ea0364c', class: "item" }, h("gb-side-bar-item", { key: '9ba23c0d7a260a2b60c01004b8182055d8572dd1', 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: 'c015c14b1046312fb42054009bf5a81428a7149c', 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: '21921279b4df559488344e2c6763380beb59f547', 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: '0d5dc23f8ac799604e1b09463f9e924cbc87aa96', 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: '3508479dcd08831d2efab119c033aec70b2b211b', 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: 'ad4232ccdebd2b98f4ca4806fff52fc2def5cca9', class: "navigation" }, h("div", { key: '44743d4b4b32a9456d52fb10d2bec3174abce723', class: "item" }, this.sixthItemLabel && (h("gb-side-bar-item", { key: '6f43e118ed29e57a317cc8e847f21d2f17fb8f82', 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: '8e42b504ef8c02486590260adb47211738aec6db', 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: 'db6e3d0a0c6a2dfb1c3697676993903b62814f83', 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: 'd0451638745a4211431e2039dbb8635dad177e31', 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: '6090f7ce58e4b8c24b9d54e3c7e028797b12f701', 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: '637e0ad2f492f8b34dd3c160ea5391392250759d', class: "application_name" }, h("div", { key: 'a89cc7a6aea5f694f575a83617a2795d184878e6', class: `wrapper ${this.category}` }, this.category === 'plain_background' && (h("div", { key: '4037a56635c93c17e4db0d21d85a1ebe28ac697a', class: "application_name_pattern" }, h("img", { key: '8983881b2691127b4c801846d4c53d6fbf7b2434', src: patternSrc, alt: "" }))), h("div", { key: '4077b51f1ed1db76817e9e305547f7a6f97c7f42', class: `application_icon ${this.category}`, innerHTML: this.leadingIconSvg }), h("span", { key: '793c69cdb9a7118c319e6690da3a094584998d6c', class: textClass }, h("slot", { key: 'cda4097872ca2a0c51a76314152b43b533359a21', name: "application_name" })))))));
63
67
  }
64
68
  static get is() { return "gb-sidebar"; }
65
69
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"gb-sidebar.js","sourceRoot":"","sources":["../../../src/components/gb-sidebar/gb-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAQxH,MAAM,OAAO,SAAS;;;;kCAGkB,KAAK;+BACT,EAAE;6BACJ,EAAE;8BACD,EAAE;6BACH,EAAE;8BACD,EAAE;6BACH,EAAE;6BACF,EAAE;+BACA,EAAE;8BACH,EAAE;6BACH,EAAE;6BACF,EAAE;4BACH,EAAE;qBACT,EAAE;8BACO,EAAE;+BACD,EAAE;8BACH,EAAE;+BACD,EAAE;8BACH,EAAE;8BACF,EAAE;gCACA,EAAE;+BACH,EAAE;8BACH,EAAE;8BACF,EAAE;2BAEJ,CAAC;8BACE,EAAE;;IAGpC,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,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Prop, Fragment, State, getAssetPath, Method, Event, EventEmitter } from \"@stencil/core\";\r\nimport { GeneralBackgroundCategories } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-sidebar',\r\n styleUrl: 'gb-sidebar.css',\r\n shadow: true,\r\n})\r\nexport class GbSidebar {\r\n @Prop({ mutable: true }) state: 'expanded' | 'collapsed';\r\n @Prop() category: GeneralBackgroundCategories;\r\n @Prop() showSecondCategory: boolean = false;\r\n @Prop() applicationName: string = '';\r\n @Prop() firstItemIcon: string = '';\r\n @Prop() secondItemIcon: string = '';\r\n @Prop() thirdItemIcon: string = '';\r\n @Prop() fourthItemIcon: string = '';\r\n @Prop() fifthItemIcon: string = '';\r\n @Prop() sixthItemIcon: string = '';\r\n @Prop() seventhItemIcon: string = '';\r\n @Prop() eighthItemIcon: string = '';\r\n @Prop() ninthItemIcon: string = '';\r\n @Prop() tenthItemIcon: string = '';\r\n @Prop() iconInstance: string = '';\r\n @Prop() label: string = '';\r\n @Prop() firstItemLabel: string = '';\r\n @Prop() secondItemLabel: string = '';\r\n @Prop() thirdItemLabel: string = '';\r\n @Prop() fourthItemLabel: string = '';\r\n @Prop() fifthItemLabel: string = '';\r\n @Prop() sixthItemLabel: string = '';\r\n @Prop() seventhItemLabel: string = '';\r\n @Prop() eighthItemLabel: string = '';\r\n @Prop() ninthItemLabel: string = '';\r\n @Prop() tenthItemLabel: string = '';\r\n @Element() el: HTMLElement;\r\n @State() activeIndex: number = 0;\r\n @State() leadingIconSvg: string = '';\r\n @Event() sidebarItemClicked: EventEmitter<number>;\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 collapseSideBar() {\r\n if (this.state === 'expanded') {\r\n this.state = 'collapsed';\r\n }\r\n }\r\n\r\n expandSideBar() {\r\n if (this.state === 'collapsed') {\r\n this.state = 'expanded';\r\n }\r\n }\r\n\r\n @Method()\r\n async sideBarItemClicked(index: number) {\r\n this.activeIndex = index;\r\n this.sidebarItemClicked.emit(index);\r\n }\r\n\r\n componentDidLoad() {\r\n const applicationName = this.el.querySelector('[slot=\"application_name\"]');\r\n\r\n applicationName.classList.add('text-lg-bold');\r\n }\r\n\r\n componentWillLoad() {\r\n this.loadIcon(this.iconInstance);\r\n }\r\n\r\n render() {\r\n const textClass = this.category === 'plain_background' ? 'plain_background_color' : 'colored_background_color';\r\n\r\n return (\r\n <div class={`sidebar_div ${this.state} ${this.category}`}>\r\n {this.category === 'colored_background' && (\r\n <div class=\"pattern\">\r\n <img src=\"build/assets/pattern_wrapper.svg\" alt=\"\" />\r\n </div>\r\n )}\r\n <div class=\"nav\">\r\n <div class={`sidebar_header ${this.state}`}>\r\n <div class={`logo_and_name ${this.state}`}>\r\n {this.state === 'expanded' && (\r\n <>{this.category === 'plain_background' ? <img src=\"build/assets/globus_bank_logo_blue.svg\" /> : <img src=\"build/assets/globus_bank_logo_white.svg\" />}</>\r\n )}\r\n {this.state === 'collapsed' && <img src=\"build/assets/globus_bank_logo.svg\" alt=\"\" />}\r\n </div>\r\n <div class={`collapse_button ${this.state}`}>\r\n <gb-collapse-button\r\n color={this.category === 'plain_background' ? 'gray' : 'white'}\r\n action={this.state === 'collapsed' ? 'expand' : 'collapse'}\r\n onClick={() => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar())}\r\n ></gb-collapse-button>\r\n </div>\r\n </div>\r\n <div class=\"navigation\">\r\n <div class=\"item\">\r\n <gb-side-bar-item\r\n state={this.activeIndex === 0 ? 'active' : 'default'}\r\n icon={this.firstItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(0)}\r\n label={this.firstItemLabel}\r\n ></gb-side-bar-item>\r\n <gb-side-bar-item\r\n state={this.activeIndex === 1 ? 'active' : 'default'}\r\n icon={this.secondItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(1)}\r\n label={this.secondItemLabel}\r\n ></gb-side-bar-item>\r\n {this.thirdItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 2 ? 'active' : 'default'}\r\n icon={this.thirdItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(2)}\r\n label={this.thirdItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.fourthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 3 ? 'active' : 'default'}\r\n icon={this.fourthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(3)}\r\n label={this.fourthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.fifthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 4 ? 'active' : 'default'}\r\n icon={this.fifthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(4)}\r\n label={this.fifthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n </div>\r\n </div>\r\n {this.showSecondCategory && (\r\n <div class=\"navigation\">\r\n <div class=\"item\">\r\n {this.sixthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 5 ? 'active' : 'default'}\r\n icon={this.sixthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(5)}\r\n label={this.sixthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.seventhItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 6 ? 'active' : 'default'}\r\n icon={this.seventhItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(6)}\r\n label={this.seventhItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.eighthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 7 ? 'active' : 'default'}\r\n icon={this.eighthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(7)}\r\n label={this.eighthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.ninthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 8 ? 'active' : 'default'}\r\n icon={this.ninthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(8)}\r\n label={this.ninthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.tenthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 9 ? 'active' : 'default'}\r\n icon={this.tenthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(9)}\r\n label={this.tenthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n {this.state === 'expanded' && (\r\n <div class=\"application_name\">\r\n <div class={`wrapper ${this.category}`}>\r\n {this.category === 'plain_background' && (\r\n <div class=\"application_name_pattern\">\r\n <img src=\"build/assets/pattern_wrapper.svg\" alt=\"\" />\r\n </div>\r\n )}\r\n <div class={`application_icon ${this.category}`} innerHTML={this.leadingIconSvg}></div>\r\n <span class={textClass}>\r\n <slot name=\"application_name\"></slot>\r\n </span>\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
1
+ {"version":3,"file":"gb-sidebar.js","sourceRoot":"","sources":["../../../src/components/gb-sidebar/gb-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAQxH,MAAM,OAAO,SAAS;;;;kCAGkB,KAAK;+BACT,EAAE;6BACJ,EAAE;8BACD,EAAE;6BACH,EAAE;8BACD,EAAE;6BACH,EAAE;6BACF,EAAE;+BACA,EAAE;8BACH,EAAE;6BACH,EAAE;6BACF,EAAE;4BACH,EAAE;qBACT,EAAE;8BACO,EAAE;+BACD,EAAE;8BACH,EAAE;+BACD,EAAE;8BACH,EAAE;8BACF,EAAE;gCACA,EAAE;+BACH,EAAE;8BACH,EAAE;8BACF,EAAE;2BAEJ,CAAC;8BACE,EAAE;;IAGpC,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,eAAe;QACb,IAAI,IAAI,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;YAC9B,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,aAAa;QACX,IAAI,IAAI,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;YAC/B,IAAI,CAAC,KAAK,GAAG,UAAU,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Prop, Fragment, State, getAssetPath, Method, Event, EventEmitter } from \"@stencil/core\";\r\nimport { GeneralBackgroundCategories } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-sidebar',\r\n styleUrl: 'gb-sidebar.css',\r\n shadow: true,\r\n})\r\nexport class GbSidebar {\r\n @Prop({ mutable: true }) state: 'expanded' | 'collapsed';\r\n @Prop() category: GeneralBackgroundCategories;\r\n @Prop() showSecondCategory: boolean = false;\r\n @Prop() applicationName: string = '';\r\n @Prop() firstItemIcon: string = '';\r\n @Prop() secondItemIcon: string = '';\r\n @Prop() thirdItemIcon: string = '';\r\n @Prop() fourthItemIcon: string = '';\r\n @Prop() fifthItemIcon: string = '';\r\n @Prop() sixthItemIcon: string = '';\r\n @Prop() seventhItemIcon: string = '';\r\n @Prop() eighthItemIcon: string = '';\r\n @Prop() ninthItemIcon: string = '';\r\n @Prop() tenthItemIcon: string = '';\r\n @Prop() iconInstance: string = '';\r\n @Prop() label: string = '';\r\n @Prop() firstItemLabel: string = '';\r\n @Prop() secondItemLabel: string = '';\r\n @Prop() thirdItemLabel: string = '';\r\n @Prop() fourthItemLabel: string = '';\r\n @Prop() fifthItemLabel: string = '';\r\n @Prop() sixthItemLabel: string = '';\r\n @Prop() seventhItemLabel: string = '';\r\n @Prop() eighthItemLabel: string = '';\r\n @Prop() ninthItemLabel: string = '';\r\n @Prop() tenthItemLabel: string = '';\r\n @Element() el: HTMLElement;\r\n @State() activeIndex: number = 0;\r\n @State() leadingIconSvg: string = '';\r\n @Event() sidebarItemClicked: EventEmitter<number>;\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 collapseSideBar() {\r\n if (this.state === 'expanded') {\r\n this.state = 'collapsed';\r\n }\r\n }\r\n\r\n expandSideBar() {\r\n if (this.state === 'collapsed') {\r\n this.state = 'expanded';\r\n }\r\n }\r\n\r\n @Method()\r\n async sideBarItemClicked(index: number) {\r\n this.activeIndex = index;\r\n this.sidebarItemClicked.emit(index);\r\n }\r\n\r\n componentDidLoad() {\r\n const applicationName = this.el.querySelector('[slot=\"application_name\"]');\r\n\r\n applicationName.classList.add('text-lg-bold');\r\n }\r\n\r\n componentWillLoad() {\r\n this.loadIcon(this.iconInstance);\r\n }\r\n\r\n render() {\r\n const textClass = this.category === 'plain_background' ? 'plain_background_color' : 'colored_background_color';\r\n const patternSrc = getAssetPath(`assets/pattern_wrapper.svg`);\r\n const logoSrc = getAssetPath(`assets/globus_bank_logo.svg`);\r\n const blueLogoSrc = getAssetPath(`assets/globus_bank_logo_blue.svg`);\r\n const whiteLogoSrc = getAssetPath(`assets/globus_bank_logo_white.svg`);\r\n\r\n return (\r\n <div class={`sidebar_div ${this.state} ${this.category}`}>\r\n {this.category === 'colored_background' && (\r\n <div class=\"pattern\">\r\n <img src={patternSrc} alt=\"\" />\r\n </div>\r\n )}\r\n <div class=\"nav\">\r\n <div class={`sidebar_header ${this.state}`}>\r\n <div class={`logo_and_name ${this.state}`}>\r\n {this.state === 'expanded' && (\r\n <>{this.category === 'plain_background' ? <img src={blueLogoSrc} /> : <img src={whiteLogoSrc} />}</>\r\n )}\r\n {this.state === 'collapsed' && <img src={logoSrc} alt=\"\" />}\r\n </div>\r\n <div class={`collapse_button ${this.state}`}>\r\n <gb-collapse-button\r\n color={this.category === 'plain_background' ? 'gray' : 'white'}\r\n action={this.state === 'collapsed' ? 'expand' : 'collapse'}\r\n onClick={() => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar())}\r\n ></gb-collapse-button>\r\n </div>\r\n </div>\r\n <div class=\"navigation\">\r\n <div class=\"item\">\r\n <gb-side-bar-item\r\n state={this.activeIndex === 0 ? 'active' : 'default'}\r\n icon={this.firstItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(0)}\r\n label={this.firstItemLabel}\r\n ></gb-side-bar-item>\r\n <gb-side-bar-item\r\n state={this.activeIndex === 1 ? 'active' : 'default'}\r\n icon={this.secondItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(1)}\r\n label={this.secondItemLabel}\r\n ></gb-side-bar-item>\r\n {this.thirdItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 2 ? 'active' : 'default'}\r\n icon={this.thirdItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(2)}\r\n label={this.thirdItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.fourthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 3 ? 'active' : 'default'}\r\n icon={this.fourthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(3)}\r\n label={this.fourthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.fifthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 4 ? 'active' : 'default'}\r\n icon={this.fifthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(4)}\r\n label={this.fifthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n </div>\r\n </div>\r\n {this.showSecondCategory && (\r\n <div class=\"navigation\">\r\n <div class=\"item\">\r\n {this.sixthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 5 ? 'active' : 'default'}\r\n icon={this.sixthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(5)}\r\n label={this.sixthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.seventhItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 6 ? 'active' : 'default'}\r\n icon={this.seventhItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(6)}\r\n label={this.seventhItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.eighthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 7 ? 'active' : 'default'}\r\n icon={this.eighthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(7)}\r\n label={this.eighthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.ninthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 8 ? 'active' : 'default'}\r\n icon={this.ninthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(8)}\r\n label={this.ninthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n {this.tenthItemLabel && (\r\n <gb-side-bar-item\r\n state={this.activeIndex === 9 ? 'active' : 'default'}\r\n icon={this.tenthItemIcon}\r\n category={this.category}\r\n type={this.state === 'collapsed' ? 'icon_only' : 'full_with_label'}\r\n onClick={() => this.sideBarItemClicked(9)}\r\n label={this.tenthItemLabel}\r\n ></gb-side-bar-item>\r\n )}\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n {this.state === 'expanded' && (\r\n <div class=\"application_name\">\r\n <div class={`wrapper ${this.category}`}>\r\n {this.category === 'plain_background' && (\r\n <div class=\"application_name_pattern\">\r\n <img src={patternSrc} alt=\"\" />\r\n </div>\r\n )}\r\n <div class={`application_icon ${this.category}`} innerHTML={this.leadingIconSvg}></div>\r\n <span class={textClass}>\r\n <slot name=\"application_name\"></slot>\r\n </span>\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, h } from './p-3d8f80e9.js';
1
+ import { p as proxyCustomElement, H, c as createEvent, h } from './p-3d8f80e9.js';
2
2
  import { d as defineCustomElement$7 } from './p-837365c7.js';
3
3
  import { d as defineCustomElement$6 } from './p-21fecbde.js';
4
4
  import { d as defineCustomElement$5 } from './p-5ca81eb7.js';
@@ -14,6 +14,7 @@ const GbHorizontalTabs$1 = /*@__PURE__*/ proxyCustomElement(class GbHorizontalTa
14
14
  super();
15
15
  this.__registerHost();
16
16
  this.__attachShadow();
17
+ this.tabItemClicked = createEvent(this, "tabItemClicked", 7);
17
18
  this.type = undefined;
18
19
  this.size = undefined;
19
20
  this.fullWidth = false;
@@ -38,14 +39,15 @@ const GbHorizontalTabs$1 = /*@__PURE__*/ proxyCustomElement(class GbHorizontalTa
38
39
  this.tenthTabName = '';
39
40
  this.activeIndex = 0;
40
41
  }
41
- handleTabClick(index) {
42
+ async handleTabClick(index) {
42
43
  this.activeIndex = index;
44
+ this.tabItemClicked.emit(index);
43
45
  }
44
46
  componentDidLoad() {
45
47
  this.activeIndex = 0;
46
48
  }
47
49
  render() {
48
- return (h("div", { key: '75e602493dd0136194ff6d80d31a4a2249b42dbf', class: `horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}` }, h("gb-tab-button-base", { key: 'e4b02f18f6fa4e6ebb0b8cfd0bd050470403867d', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(0), current: this.activeIndex === 0, "tab-name": this.firstTabName }), h("gb-tab-button-base", { key: '4c76d16ed0bfc0e4e4302a7a2e6a12db3898aed1', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(1), current: this.activeIndex === 1, "tab-name": this.secondTabName }), this.thirdTab && (h("gb-tab-button-base", { key: '582035af2dd4111f5f07d55fa6228be27e3f4c80', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(2), current: this.activeIndex === 2, "tab-name": this.thirdTabName })), this.fourthTab && (h("gb-tab-button-base", { key: '2c5fe024a65000b96a45835b325c7b62212e5ae3', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(3), current: this.activeIndex === 3, "tab-name": this.fourthTabName })), this.fifthTab && (h("gb-tab-button-base", { key: '517149a071525a08440f900371d9216da2200b83', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(4), current: this.activeIndex === 4, "tab-name": this.fifthTabName })), this.sixthTab && (h("gb-tab-button-base", { key: 'daf4a113c6d554cbf9658cc87c880e1b6d85eb15', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(5), current: this.activeIndex === 5, "tab-name": this.sixthTabName })), this.seventhTab && (h("gb-tab-button-base", { key: 'ba13d25035a0ff5fcb6b3d1c2977e47c535d82ac', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(6), current: this.activeIndex === 6, "tab-name": this.seventhTabName })), this.eighthTab && (h("gb-tab-button-base", { key: '55fd6c28c8850c17da8b619ac944f061478055b5', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(7), current: this.activeIndex === 7, "tab-name": this.eighthTabName })), this.ninthTab && (h("gb-tab-button-base", { key: '5defdd08e9716a918d881ca1bba4c23071069d7f', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(8), current: this.activeIndex === 8, "tab-name": this.ninthTabName })), this.tenthTab && (h("gb-tab-button-base", { key: '38b954e9f882b8db69ef3907d0f726af07cb8a7b', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(9), current: this.activeIndex === 9, "tab-name": this.tenthTabName }))));
50
+ return (h("div", { key: '156e4b0de5762614f0f9dc1615e1876dc3585f42', class: `horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}` }, h("gb-tab-button-base", { key: 'aa89779a1277a26e585e399631f0b47cdb1968fc', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(0), current: this.activeIndex === 0, "tab-name": this.firstTabName }), h("gb-tab-button-base", { key: 'ad1f199163bf8bd746d5f2e653bf37e7dfa0847c', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(1), current: this.activeIndex === 1, "tab-name": this.secondTabName }), this.thirdTab && (h("gb-tab-button-base", { key: '07513e792df660afe6b2428fd1ce12f1f4c54326', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(2), current: this.activeIndex === 2, "tab-name": this.thirdTabName })), this.fourthTab && (h("gb-tab-button-base", { key: 'ab92d72ea823f9142c462d993640977cc411edf6', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(3), current: this.activeIndex === 3, "tab-name": this.fourthTabName })), this.fifthTab && (h("gb-tab-button-base", { key: '8da1f438492bbb9703f061bb79ca72a77c444c7d', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(4), current: this.activeIndex === 4, "tab-name": this.fifthTabName })), this.sixthTab && (h("gb-tab-button-base", { key: 'dbc50e8bc27a503b9dc2d339a0fb3419071abaff', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(5), current: this.activeIndex === 5, "tab-name": this.sixthTabName })), this.seventhTab && (h("gb-tab-button-base", { key: '9fc933fb313cc191080e9ed4c6044cdfc65ec6a6', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(6), current: this.activeIndex === 6, "tab-name": this.seventhTabName })), this.eighthTab && (h("gb-tab-button-base", { key: '8ab18312b1fc1660be43c7c28bf79ca1370e87a4', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(7), current: this.activeIndex === 7, "tab-name": this.eighthTabName })), this.ninthTab && (h("gb-tab-button-base", { key: '26b22f8bd60f734e55b8005c8e80cf48b7150ca2', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(8), current: this.activeIndex === 8, "tab-name": this.ninthTabName })), this.tenthTab && (h("gb-tab-button-base", { key: '89e6e836003874966510555168f3a64bd0c35613', class: `tab_button_base ${this.fullWidth ? 'full_width' : ''}`, size: this.size, "full-width": this.fullWidth, type: this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type, onClick: () => this.handleTabClick(9), current: this.activeIndex === 9, "tab-name": this.tenthTabName }))));
49
51
  }
50
52
  static get style() { return GbHorizontalTabsStyle0; }
51
53
  }, [1, "gb-horizontal-tabs", {
@@ -1 +1 @@
1
- {"file":"gb-horizontal-tabs.js","mappings":";;;;;;;;AAAA,MAAM,mBAAmB,GAAG,qisEAAqisE,CAAC;AAClksE,+BAAe,mBAAmB;;MCOrBA,kBAAgB;;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AAW,KAAK,CAAC,cACrB,IAAI,CAAC,YAAY,GACP,CACvB,CACG,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GbHorizontalTabs"],"sources":["src/components/gb-horizontal-tabs/gb-horizontal-tabs.css?tag=gb-horizontal-tabs&encapsulation=shadow","src/components/gb-horizontal-tabs/gb-horizontal-tabs.tsx"],"sourcesContent":["@import './../../global/global.css';\r\n@import './../../global/spacing.css';\r\n@import './../../global/typography.css';\r\n\r\n.horizontal_tab_div{\r\n display: flex;\r\n justify-content: flex-start;\r\n height: fit-content;\r\n}\r\n\r\n/* Breakpoint Styles */\r\n.horizontal_tab_div.desktop{\r\n width: 100%;\r\n}\r\n\r\n/* Tab Type Styles */\r\n.horizontal_tab_div.underline,\r\n.horizontal_tab_div.underline_filled{\r\n border-bottom: 1px solid var(--color-border-subtle, #CDD5DF);\r\n}\r\n\r\n.horizontal_tab_div.button_white_border,\r\n.horizontal_tab_div.rounded_button_white_border{\r\n padding: var(--spacing-1);\r\n background: var(--color-background-gray-subtlest, #F6F8FA);\r\n border: 1px solid var(--color-border-subtler, #E3E8EF);\r\n}\r\n\r\n.horizontal_tab_div.button_white_border{\r\n border-radius: var(--rounded-sm);\r\n}\r\n\r\n\r\n.horizontal_tab_div.rounded_button_white_border{\r\n border-radius: var(--rounded-full);\r\n}\r\n\r\n/* Full Width Styles */\r\n.horizontal_tab_div.full_width{\r\n justify-content: space-between;\r\n}\r\n\r\n.horizontal_tab_div.button_primary,\r\n.horizontal_tab_div.button_gray,\r\n.horizontal_tab_div.button_white_border,\r\n.horizontal_tab_div.rounded_button_white_border{\r\n gap: 0.5rem;\r\n}\r\n\r\n.tab_button_base.full_width{\r\n display: flex;\r\n justify-content: center;\r\n flex-grow: 1;\r\n}","import { Component, Prop, State, h } from \"@stencil/core\";\r\nimport { BreakPoints, GeneralSizes, TabTypes } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-horizontal-tabs',\r\n styleUrl: 'gb-horizontal-tabs.css',\r\n shadow: true,\r\n})\r\nexport class GbHorizontalTabs {\r\n @Prop() type: TabTypes;\r\n @Prop() size: GeneralSizes;\r\n @Prop() fullWidth: boolean = false;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() thirdTab: boolean = false;\r\n @Prop() fourthTab: boolean = false;\r\n @Prop() fifthTab: boolean = false;\r\n @Prop() sixthTab: boolean = false;\r\n @Prop() seventhTab: boolean = false;\r\n @Prop() eighthTab: boolean = false;\r\n @Prop() ninthTab: boolean = false;\r\n @Prop() tenthTab: boolean = false;\r\n @Prop() firstTabName: string = '';\r\n @Prop() secondTabName: string = '';\r\n @Prop() thirdTabName: string = '';\r\n @Prop() fourthTabName: string = '';\r\n @Prop() fifthTabName: string = '';\r\n @Prop() sixthTabName: string = '';\r\n @Prop() seventhTabName: string = '';\r\n @Prop() eighthTabName: string = '';\r\n @Prop() ninthTabName: string = '';\r\n @Prop() tenthTabName: string = '';\r\n @State() activeIndex: number = 0;\r\n\r\n handleTabClick(index: number) {\r\n this.activeIndex = index;\r\n }\r\n\r\n componentDidLoad() {\r\n this.activeIndex = 0;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}`}>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(0)}\r\n current={this.activeIndex === 0}\r\n tab-name={this.firstTabName}\r\n ></gb-tab-button-base>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(1)}\r\n current={this.activeIndex === 1}\r\n tab-name={this.secondTabName}\r\n ></gb-tab-button-base>\r\n {this.thirdTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(2)}\r\n current={this.activeIndex === 2}\r\n tab-name={this.thirdTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fourthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(3)}\r\n current={this.activeIndex === 3}\r\n tab-name={this.fourthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fifthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(4)}\r\n current={this.activeIndex === 4}\r\n tab-name={this.fifthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.sixthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(5)}\r\n current={this.activeIndex === 5}\r\n tab-name={this.sixthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.seventhTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(6)}\r\n current={this.activeIndex === 6}\r\n tab-name={this.seventhTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.eighthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(7)}\r\n current={this.activeIndex === 7}\r\n tab-name={this.eighthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.ninthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(8)}\r\n current={this.activeIndex === 8}\r\n tab-name={this.ninthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.tenthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(9)}\r\n current={this.activeIndex === 9}\r\n tab-name={this.tenthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"],"version":3}
1
+ {"file":"gb-horizontal-tabs.js","mappings":";;;;;;;;AAAA,MAAM,mBAAmB,GAAG,qisEAAqisE,CAAC;AAClksE,+BAAe,mBA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7I,OAAO,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EACrC,OAAO,EAAE,IAAI,CAAC,WAAW,KAAK,CAAC,cACrB,IAAI,CAAC,YAAY,GACP,CACvB,CACG,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GbHorizontalTabs"],"sources":["src/components/gb-horizontal-tabs/gb-horizontal-tabs.css?tag=gb-horizontal-tabs&encapsulation=shadow","src/components/gb-horizontal-tabs/gb-horizontal-tabs.tsx"],"sourcesContent":["@import './../../global/global.css';\r\n@import './../../global/spacing.css';\r\n@import './../../global/typography.css';\r\n\r\n.horizontal_tab_div{\r\n display: flex;\r\n justify-content: flex-start;\r\n height: fit-content;\r\n}\r\n\r\n/* Breakpoint Styles */\r\n.horizontal_tab_div.desktop{\r\n width: 100%;\r\n}\r\n\r\n/* Tab Type Styles */\r\n.horizontal_tab_div.underline,\r\n.horizontal_tab_div.underline_filled{\r\n border-bottom: 1px solid var(--color-border-subtle, #CDD5DF);\r\n}\r\n\r\n.horizontal_tab_div.button_white_border,\r\n.horizontal_tab_div.rounded_button_white_border{\r\n padding: var(--spacing-1);\r\n background: var(--color-background-gray-subtlest, #F6F8FA);\r\n border: 1px solid var(--color-border-subtler, #E3E8EF);\r\n}\r\n\r\n.horizontal_tab_div.button_white_border{\r\n border-radius: var(--rounded-sm);\r\n}\r\n\r\n\r\n.horizontal_tab_div.rounded_button_white_border{\r\n border-radius: var(--rounded-full);\r\n}\r\n\r\n/* Full Width Styles */\r\n.horizontal_tab_div.full_width{\r\n justify-content: space-between;\r\n}\r\n\r\n.horizontal_tab_div.button_primary,\r\n.horizontal_tab_div.button_gray,\r\n.horizontal_tab_div.button_white_border,\r\n.horizontal_tab_div.rounded_button_white_border{\r\n gap: 0.5rem;\r\n}\r\n\r\n.tab_button_base.full_width{\r\n display: flex;\r\n justify-content: center;\r\n flex-grow: 1;\r\n}","import { Component, Event, EventEmitter, Prop, State, h } from \"@stencil/core\";\r\nimport { BreakPoints, GeneralSizes, TabTypes } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-horizontal-tabs',\r\n styleUrl: 'gb-horizontal-tabs.css',\r\n shadow: true,\r\n})\r\n\r\nexport class GbHorizontalTabs {\r\n @Prop() type: TabTypes;\r\n @Prop() size: GeneralSizes;\r\n @Prop() fullWidth: boolean = false;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() thirdTab: boolean = false;\r\n @Prop() fourthTab: boolean = false;\r\n @Prop() fifthTab: boolean = false;\r\n @Prop() sixthTab: boolean = false;\r\n @Prop() seventhTab: boolean = false;\r\n @Prop() eighthTab: boolean = false;\r\n @Prop() ninthTab: boolean = false;\r\n @Prop() tenthTab: boolean = false;\r\n @Prop() firstTabName: string = '';\r\n @Prop() secondTabName: string = '';\r\n @Prop() thirdTabName: string = '';\r\n @Prop() fourthTabName: string = '';\r\n @Prop() fifthTabName: string = '';\r\n @Prop() sixthTabName: string = '';\r\n @Prop() seventhTabName: string = '';\r\n @Prop() eighthTabName: string = '';\r\n @Prop() ninthTabName: string = '';\r\n @Prop() tenthTabName: string = '';\r\n @State() activeIndex: number = 0;\r\n @Event() tabItemClicked: EventEmitter<number>;\r\n\r\n async handleTabClick(index: number) {\r\n this.activeIndex = index;\r\n this.tabItemClicked.emit(index);\r\n }\r\n\r\n componentDidLoad() {\r\n this.activeIndex = 0;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}`}>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(0)}\r\n current={this.activeIndex === 0}\r\n tab-name={this.firstTabName}\r\n ></gb-tab-button-base>\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(1)}\r\n current={this.activeIndex === 1}\r\n tab-name={this.secondTabName}\r\n ></gb-tab-button-base>\r\n {this.thirdTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(2)}\r\n current={this.activeIndex === 2}\r\n tab-name={this.thirdTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fourthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(3)}\r\n current={this.activeIndex === 3}\r\n tab-name={this.fourthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.fifthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(4)}\r\n current={this.activeIndex === 4}\r\n tab-name={this.fifthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.sixthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(5)}\r\n current={this.activeIndex === 5}\r\n tab-name={this.sixthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.seventhTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(6)}\r\n current={this.activeIndex === 6}\r\n tab-name={this.seventhTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.eighthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(7)}\r\n current={this.activeIndex === 7}\r\n tab-name={this.eighthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.ninthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(8)}\r\n current={this.activeIndex === 8}\r\n tab-name={this.ninthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n {this.tenthTab && (\r\n <gb-tab-button-base\r\n class={`tab_button_base ${this.fullWidth ? 'full_width' : ''}`}\r\n size={this.size}\r\n full-width={this.fullWidth}\r\n type={this.type === 'button_white_border' ? 'button_white' : this.type === 'rounded_button_white_border' ? 'rounded_button_white' : this.type}\r\n onClick={() => this.handleTabClick(9)}\r\n current={this.activeIndex === 9}\r\n tab-name={this.tenthTabName}\r\n ></gb-tab-button-base>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"],"version":3}
@@ -75,7 +75,11 @@ const GbSidebar$1 = /*@__PURE__*/ proxyCustomElement(class GbSidebar extends H {
75
75
  }
76
76
  render() {
77
77
  const textClass = this.category === 'plain_background' ? 'plain_background_color' : 'colored_background_color';
78
- return (h("div", { key: 'a067fab58eb07efdbc3cddea054978ac8cfeb3b9', class: `sidebar_div ${this.state} ${this.category}` }, this.category === 'colored_background' && (h("div", { key: 'cc0440a14fae0764686fdd5a6650854f80df4796', class: "pattern" }, h("img", { key: 'bae5ace6039fe0e0f509d61d754c6e72e9d5db7c', src: "build/assets/pattern_wrapper.svg", alt: "" }))), h("div", { key: 'd3538bec47ee111010037e052da5a82762ca1034', class: "nav" }, h("div", { key: 'e1a495ae5a86d381655f15c44d365fa0cd72cd14', class: `sidebar_header ${this.state}` }, h("div", { key: 'c611ae3402e16f914216e1fc21e4ff2bfa4a0cfd', class: `logo_and_name ${this.state}` }, this.state === 'expanded' && (h(Fragment, null, this.category === 'plain_background' ? h("img", { src: "build/assets/globus_bank_logo_blue.svg" }) : h("img", { src: "build/assets/globus_bank_logo_white.svg" }))), this.state === 'collapsed' && h("img", { key: '8069e3acde4d73742fdd188f2a2e75a1760eb746', src: "build/assets/globus_bank_logo.svg", alt: "" })), h("div", { key: '82e5b1b9125d27c66182b383f8efff7c14ab4313', class: `collapse_button ${this.state}` }, h("gb-collapse-button", { key: '702d2597d4cc56499ee6990334f1e05e64a06a9b', color: this.category === 'plain_background' ? 'gray' : 'white', action: this.state === 'collapsed' ? 'expand' : 'collapse', onClick: () => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar()) }))), h("div", { key: 'a3153cfbcf42ad827de648c9685e827edc8ab8f2', class: "navigation" }, h("div", { key: '8e4ad6ab97681f9f83fbbb6dd6ba81d77a93bd5c', class: "item" }, h("gb-side-bar-item", { key: 'cec2d0454f17793ebf35f19d894c817bab047166', 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: 'ea1c7c863d85e1528c036951f0802f1af4860144', 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: 'e57d077360dd9a2b266fc5836ff5f9ecdcdab022', 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: '3a39d6ef3233339c01cf74fff6ebc362665811f4', 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: '1128a2452802972509f98124d546a50db922947b', 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: '625fffcd3e37812527f2dfe67b4715c5342702e7', class: "navigation" }, h("div", { key: '42d33441f642a62ba976ab9dbbe0ff417ba25aca', class: "item" }, this.sixthItemLabel && (h("gb-side-bar-item", { key: 'dad3fae2de2f1963b24dad397113dcfb04f5a9c2', 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: 'b57a4595c9f399bfaf4f0f8dc800c93716a76ad4', 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: 'f27bd7882dd5fe8557ceda63cdecb603c2984b36', 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: '25f905567be3f8b4045c6dcff3bef5342d85b975', 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: '4749be84e1169d3d4ad2de5811ef5c05a7f25907', 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: 'cc8f7380f6cac5ae780f61ea950fcbc5d9868f87', class: "application_name" }, h("div", { key: 'b4cbf3e193608521cb1b3f553554089af3b18bfb', class: `wrapper ${this.category}` }, this.category === 'plain_background' && (h("div", { key: '142df5484a229eb08b5b6c253dde6e0bce9d90c1', class: "application_name_pattern" }, h("img", { key: 'f095748e80fc46c6d46b5f36fe5dad749a8cc2b5', src: "build/assets/pattern_wrapper.svg", alt: "" }))), h("div", { key: '779e959615e0be2071fe210c9fe147e4f57cac5f', class: `application_icon ${this.category}`, innerHTML: this.leadingIconSvg }), h("span", { key: '524781238e9abb8f79d438bfd144ff9e28aa0e7e', class: textClass }, h("slot", { key: '61a9f5511562596334a7ab6148ca0a3f807f3b97', name: "application_name" })))))));
78
+ const patternSrc = getAssetPath(`assets/pattern_wrapper.svg`);
79
+ const logoSrc = getAssetPath(`assets/globus_bank_logo.svg`);
80
+ const blueLogoSrc = getAssetPath(`assets/globus_bank_logo_blue.svg`);
81
+ const whiteLogoSrc = getAssetPath(`assets/globus_bank_logo_white.svg`);
82
+ return (h("div", { key: '0ac5427ca82c0578b36ce732f73ea0c4e0008f3c', class: `sidebar_div ${this.state} ${this.category}` }, this.category === 'colored_background' && (h("div", { key: 'c04bb0758d3a58553f706ab9c92fe60ad63f22c3', class: "pattern" }, h("img", { key: 'f0e5f702b7fb30de411a2cae840329b49e0df841', src: patternSrc, alt: "" }))), h("div", { key: '3e65c6807f720f87898ec7a46e62361c7a2abd39', class: "nav" }, h("div", { key: '1c10b93efb177648c9a09384f612a0e113cfc0cd', class: `sidebar_header ${this.state}` }, h("div", { key: '797cf58019bc9fb39a7e50492d787b398f27e941', 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: 'c2241fbf1f464ed629287d197498c37aafc23781', src: logoSrc, alt: "" })), h("div", { key: 'ab6ef47a5c81a1cd4dd68fb21df7d3364d174ab5', class: `collapse_button ${this.state}` }, h("gb-collapse-button", { key: '8d96b9f549e048029b30440ae665d9833291cb74', color: this.category === 'plain_background' ? 'gray' : 'white', action: this.state === 'collapsed' ? 'expand' : 'collapse', onClick: () => (this.state === 'collapsed' ? this.expandSideBar() : this.collapseSideBar()) }))), h("div", { key: 'e7517390f9aa132fc2cf6f0fe292c85efd8913d4', class: "navigation" }, h("div", { key: 'b04caba3d540e3365edddc71eb09e12f3ea0364c', class: "item" }, h("gb-side-bar-item", { key: '9ba23c0d7a260a2b60c01004b8182055d8572dd1', 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: 'c015c14b1046312fb42054009bf5a81428a7149c', 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: '21921279b4df559488344e2c6763380beb59f547', 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: '0d5dc23f8ac799604e1b09463f9e924cbc87aa96', 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: '3508479dcd08831d2efab119c033aec70b2b211b', 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: 'ad4232ccdebd2b98f4ca4806fff52fc2def5cca9', class: "navigation" }, h("div", { key: '44743d4b4b32a9456d52fb10d2bec3174abce723', class: "item" }, this.sixthItemLabel && (h("gb-side-bar-item", { key: '6f43e118ed29e57a317cc8e847f21d2f17fb8f82', 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: '8e42b504ef8c02486590260adb47211738aec6db', 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: 'db6e3d0a0c6a2dfb1c3697676993903b62814f83', 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: 'd0451638745a4211431e2039dbb8635dad177e31', 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: '6090f7ce58e4b8c24b9d54e3c7e028797b12f701', 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: '637e0ad2f492f8b34dd3c160ea5391392250759d', class: "application_name" }, h("div", { key: 'a89cc7a6aea5f694f575a83617a2795d184878e6', class: `wrapper ${this.category}` }, this.category === 'plain_background' && (h("div", { key: '4037a56635c93c17e4db0d21d85a1ebe28ac697a', class: "application_name_pattern" }, h("img", { key: '8983881b2691127b4c801846d4c53d6fbf7b2434', src: patternSrc, alt: "" }))), h("div", { key: '4077b51f1ed1db76817e9e305547f7a6f97c7f42', class: `application_icon ${this.category}`, innerHTML: this.leadingIconSvg }), h("span", { key: '793c69cdb9a7118c319e6690da3a094584998d6c', class: textClass }, h("slot", { key: 'cda4097872ca2a0c51a76314152b43b533359a21', name: "application_name" })))))));
79
83
  }
80
84
  get el() { return this; }
81
85
  static get style() { return GbSidebarStyle0; }