globuswebcomponents 0.4.0 → 0.4.2
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.
- package/dist/cjs/{gb-avatar_32.cjs.entry.js → gb-avatar_36.cjs.entry.js} +280 -84
- package/dist/cjs/gb-avatar_36.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-header-icon.cjs.entry.js +34 -0
- package/dist/cjs/gb-header-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-header.cjs.entry.js +39 -0
- package/dist/cjs/gb-header.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-notification-content.cjs.entry.js +1 -1
- package/dist/cjs/gb-notification-panel.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination-dot-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination-number-base.cjs.entry.js +1 -1
- package/dist/cjs/gb-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
- package/dist/cjs/gb-rich-text.cjs.entry.js +1 -1
- package/dist/cjs/gb-scrollbar.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider-control-handle.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider.cjs.entry.js +1 -1
- package/dist/cjs/gb-toggle-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gb-token-field.cjs.entry.js +2 -2
- package/dist/cjs/gb-token-field.cjs.entry.js.map +1 -1
- package/dist/cjs/globuscomponents.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/reusableModels-e50f3440.js.map +1 -1
- package/dist/collection/components/gb-btn/gb-btn.js +10 -4
- package/dist/collection/components/gb-btn/gb-btn.js.map +1 -1
- package/dist/collection/components/gb-button/gb-button.js +11 -5
- package/dist/collection/components/gb-button/gb-button.js.map +1 -1
- package/dist/collection/components/gb-button/gb-button.tsx +3 -3
- package/dist/collection/components/gb-button/readme.md +44 -40
- package/dist/collection/components/gb-checkbox-group-item/gb-checkbox-group-item.js +1 -2
- package/dist/collection/components/gb-checkbox-group-item/gb-checkbox-group-item.js.map +1 -1
- package/dist/collection/components/gb-header/gb-header.js +62 -2
- package/dist/collection/components/gb-header/gb-header.js.map +1 -1
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +13 -3
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js.map +1 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.css +1 -0
- package/dist/collection/components/gb-input-field/gb-input-field.css +1024 -465
- package/dist/collection/components/gb-input-field/gb-input-field.js +65 -4
- package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
- package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js +3 -3
- package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js.map +1 -1
- package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
- package/dist/collection/components/gb-notification-panel/gb-notification-panel.js +1 -1
- package/dist/collection/components/gb-pagination/gb-pagination.js +2 -2
- package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js +1 -1
- package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js +1 -1
- package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js +1 -1
- package/dist/collection/components/gb-password-button/gb-password-button.css +5 -0
- package/dist/collection/components/gb-password-button/gb-password-button.js +29 -1
- package/dist/collection/components/gb-password-button/gb-password-button.js.map +1 -1
- package/dist/collection/components/gb-progress-bar/gb-progress-bar.js +1 -1
- package/dist/collection/components/gb-progress-circle/gb-progress-circle.js +1 -1
- package/dist/collection/components/gb-rich-text/gb-rich-text.js +1 -1
- package/dist/collection/components/gb-scrollbar/gb-scrollbar.js +1 -1
- package/dist/collection/components/gb-side-bar-item/gb-side-bar-item.js +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.css +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +6 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js.map +1 -1
- package/dist/collection/components/gb-slider-control-handle/slider-control-handle.js +1 -1
- package/dist/collection/components/gb-sliders/slider.js +1 -1
- package/dist/collection/components/gb-status-indicator/gb-status-indicator.js +1 -1
- package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js +3 -10
- package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js.map +1 -1
- package/dist/collection/components/gb-tag-checkbox/gb-tag-checkbox.js +1 -1
- package/dist/collection/components/gb-tag-close/gb-tag-close.js +1 -1
- package/dist/collection/components/gb-tag-count/gb-tag-count.js +1 -1
- package/dist/collection/components/gb-tags/gb-tags.js +1 -1
- package/dist/collection/components/gb-toast/gb-toast.js +1 -1
- package/dist/collection/components/gb-toast-button/gb-toast-button.js +1 -1
- package/dist/collection/components/gb-toggle/gb-toggle.js +1 -1
- package/dist/collection/components/gb-toggle-base/gb-toggle-base.js +2 -2
- package/dist/collection/components/gb-token-field/gb-token-field.js +3 -3
- package/dist/collection/components/gb-token-field/gb-token-field.js.map +1 -1
- package/dist/collection/components/gb-tooltip/gb-tooltip.js +1 -1
- package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.css +931 -407
- package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.js +6 -6
- package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.js.map +1 -1
- package/dist/collection/models/reusableModels.js.map +1 -1
- package/dist/components/gb-avatar-add-button.js +1 -1
- package/dist/components/gb-avatar-dropdown.js +3 -3
- package/dist/components/gb-avatar-group.js +4 -4
- package/dist/components/gb-avatar-label-group.js +1 -1
- package/dist/components/gb-avatar-profile-photo.js +2 -2
- package/dist/components/gb-avatar.js +1 -1
- package/dist/components/gb-badge.js +1 -1
- package/dist/components/gb-btn.js +1 -1
- package/dist/components/gb-button.js +2 -2
- package/dist/components/gb-checkbox-group-item.js +4 -5
- package/dist/components/gb-checkbox-group-item.js.map +1 -1
- package/dist/components/gb-collapse-button.js +1 -1
- package/dist/components/gb-file-upload-item-base.js +1 -1
- package/dist/components/gb-file-upload.js +4 -4
- package/dist/components/gb-header.js +13 -5
- package/dist/components/gb-header.js.map +1 -1
- package/dist/components/gb-horizontal-tabs.js +17 -7
- package/dist/components/gb-horizontal-tabs.js.map +1 -1
- package/dist/components/gb-input-dropdown-menu-item.js +2 -2
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-input-field.js +27 -7
- package/dist/components/gb-input-field.js.map +1 -1
- package/dist/components/gb-megainput-field.js +1 -1
- package/dist/components/gb-notification-content.js +1 -1
- package/dist/components/gb-notification-panel.js +1 -1
- package/dist/components/gb-pagination-button-group-base.js +1 -1
- package/dist/components/gb-pagination-dot-indicator.js +1 -1
- package/dist/components/gb-pagination-number-base.js +1 -1
- package/dist/components/gb-pagination.js +2 -2
- package/dist/components/gb-password-button.js +1 -1
- package/dist/components/gb-progress-bar.js +1 -1
- package/dist/components/gb-progress-circle.js +1 -1
- package/dist/components/gb-rich-text.js +5 -5
- package/dist/components/gb-scrollbar.js +1 -1
- package/dist/components/gb-side-bar-item.js +1 -1
- package/dist/components/gb-sidebar.js +13 -8
- package/dist/components/gb-sidebar.js.map +1 -1
- package/dist/components/gb-slider-control-handle.js +1 -1
- package/dist/components/gb-slider.js +3 -3
- package/dist/components/gb-status-indicator.js +1 -1
- package/dist/components/gb-tab-button-base.js +1 -1
- package/dist/components/gb-tag-checkbox.js +1 -1
- package/dist/components/gb-tag-close.js +1 -1
- package/dist/components/gb-tag-count.js +1 -1
- package/dist/components/gb-tag.js +6 -6
- package/dist/components/gb-toast-button.js +1 -1
- package/dist/components/gb-toast.js +3 -3
- package/dist/components/gb-toggle-base.js +1 -1
- package/dist/components/gb-toggle.js +2 -2
- package/dist/components/gb-token-field.js +3 -3
- package/dist/components/gb-token-field.js.map +1 -1
- package/dist/components/gb-tooltip.js +1 -1
- package/dist/components/gb-verification-code-field.js +7 -7
- package/dist/components/gb-verification-code-field.js.map +1 -1
- package/dist/components/gb-wysiwyg-toolbar.js +1 -1
- package/dist/components/{p-c9d9fcb1.js → p-03933e89.js} +4 -4
- package/dist/components/{p-c9d9fcb1.js.map → p-03933e89.js.map} +1 -1
- package/dist/components/{p-5678b018.js → p-1ba1c138.js} +3 -3
- package/dist/components/{p-5678b018.js.map → p-1ba1c138.js.map} +1 -1
- package/dist/components/{p-4efe7d37.js → p-2522e0e6.js} +2 -2
- package/dist/components/{p-4efe7d37.js.map → p-2522e0e6.js.map} +1 -1
- package/dist/components/{p-bf0baa3e.js → p-2764bda5.js} +2 -2
- package/dist/components/{p-bf0baa3e.js.map → p-2764bda5.js.map} +1 -1
- package/dist/components/{p-65e3a60b.js → p-2d692da6.js} +13 -5
- package/dist/components/p-2d692da6.js.map +1 -0
- package/dist/components/{p-95d013c6.js → p-307f7be9.js} +2 -2
- package/dist/components/{p-95d013c6.js.map → p-307f7be9.js.map} +1 -1
- package/dist/components/{p-33cee611.js → p-31e9f7cb.js} +2 -2
- package/dist/components/{p-33cee611.js.map → p-31e9f7cb.js.map} +1 -1
- package/dist/components/p-47052b60.js.map +1 -1
- package/dist/components/{p-ef61b191.js → p-4c21ca28.js} +2 -2
- package/dist/components/{p-ef61b191.js.map → p-4c21ca28.js.map} +1 -1
- package/dist/components/{p-8ae04b5e.js → p-53e70aeb.js} +7 -14
- package/dist/components/p-53e70aeb.js.map +1 -0
- package/dist/components/{p-60a9a3e4.js → p-57b94005.js} +3 -3
- package/dist/components/{p-60a9a3e4.js.map → p-57b94005.js.map} +1 -1
- package/dist/components/{p-dc99caac.js → p-61d2acff.js} +2 -2
- package/dist/components/{p-dc99caac.js.map → p-61d2acff.js.map} +1 -1
- package/dist/components/{p-854a5dd6.js → p-6b9ae561.js} +3 -3
- package/dist/components/{p-854a5dd6.js.map → p-6b9ae561.js.map} +1 -1
- package/dist/components/{p-6a23f252.js → p-7df674ca.js} +3 -3
- package/dist/components/{p-6a23f252.js.map → p-7df674ca.js.map} +1 -1
- package/dist/components/{p-3bc9a6de.js → p-84661af1.js} +3 -3
- package/dist/components/{p-3bc9a6de.js.map → p-84661af1.js.map} +1 -1
- package/dist/components/{p-3ca89df3.js → p-88687162.js} +2 -2
- package/dist/components/{p-3ca89df3.js.map → p-88687162.js.map} +1 -1
- package/dist/components/{p-bcb5102e.js → p-8963e7ee.js} +6 -6
- package/dist/components/{p-bcb5102e.js.map → p-8963e7ee.js.map} +1 -1
- package/dist/components/{p-f6343b5c.js → p-9317b000.js} +2 -2
- package/dist/components/{p-f6343b5c.js.map → p-9317b000.js.map} +1 -1
- package/dist/components/{p-5673e871.js → p-9b867eac.js} +2 -2
- package/dist/components/{p-5673e871.js.map → p-9b867eac.js.map} +1 -1
- package/dist/components/{p-7788ed42.js → p-b1f57acc.js} +4 -4
- package/dist/components/{p-7788ed42.js.map → p-b1f57acc.js.map} +1 -1
- package/dist/components/{p-cd0bf808.js → p-d9de678f.js} +2 -2
- package/dist/components/{p-cd0bf808.js.map → p-d9de678f.js.map} +1 -1
- package/dist/components/{p-b1668ded.js → p-dc3cd550.js} +4 -4
- package/dist/components/{p-b1668ded.js.map → p-dc3cd550.js.map} +1 -1
- package/dist/components/{p-fc8afe63.js → p-e832e7d0.js} +5 -5
- package/dist/components/{p-fc8afe63.js.map → p-e832e7d0.js.map} +1 -1
- package/dist/components/{p-0b7ddf83.js → p-f5ce57de.js} +4 -4
- package/dist/components/p-f5ce57de.js.map +1 -0
- package/dist/esm/{gb-avatar_32.entry.js → gb-avatar_36.entry.js} +274 -82
- package/dist/esm/gb-avatar_36.entry.js.map +1 -0
- package/dist/esm/gb-header-icon.entry.js +30 -0
- package/dist/esm/gb-header-icon.entry.js.map +1 -0
- package/dist/esm/gb-header.entry.js +35 -0
- package/dist/esm/gb-header.entry.js.map +1 -0
- package/dist/esm/gb-notification-content.entry.js +1 -1
- package/dist/esm/gb-notification-panel.entry.js +1 -1
- package/dist/esm/gb-pagination-dot-indicator.entry.js +1 -1
- package/dist/esm/gb-pagination-number-base.entry.js +1 -1
- package/dist/esm/gb-progress-bar.entry.js +1 -1
- package/dist/esm/gb-progress-circle.entry.js +1 -1
- package/dist/esm/gb-rich-text.entry.js +1 -1
- package/dist/esm/gb-scrollbar.entry.js +1 -1
- package/dist/esm/gb-slider-control-handle.entry.js +1 -1
- package/dist/esm/gb-slider.entry.js +1 -1
- package/dist/esm/gb-toggle-base.entry.js +2 -2
- package/dist/esm/gb-toggle.entry.js +1 -1
- package/dist/esm/gb-token-field.entry.js +2 -2
- package/dist/esm/gb-token-field.entry.js.map +1 -1
- package/dist/esm/globuscomponents.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/reusableModels-8496e911.js.map +1 -1
- package/dist/globuscomponents/gb-button.tsx +3 -3
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
- package/dist/globuscomponents/{p-40a8904d.entry.js → p-0638166b.entry.js} +2 -2
- package/dist/globuscomponents/{p-922821b6.entry.js → p-19d2f500.entry.js} +2 -2
- package/dist/globuscomponents/p-2fa5bdb6.entry.js +2 -0
- package/dist/globuscomponents/p-2fa5bdb6.entry.js.map +1 -0
- package/dist/globuscomponents/{p-bc401188.entry.js → p-355ee2b7.entry.js} +2 -2
- package/dist/globuscomponents/{p-91d5bce7.entry.js → p-38ddb08d.entry.js} +2 -2
- package/dist/globuscomponents/{p-ac73163c.entry.js → p-3bfd70d1.entry.js} +2 -2
- package/dist/globuscomponents/p-47052b60.js.map +1 -1
- package/dist/globuscomponents/{p-626cb855.entry.js → p-4e99fdd9.entry.js} +2 -2
- package/dist/globuscomponents/p-530f2020.entry.js +2 -0
- package/dist/globuscomponents/p-530f2020.entry.js.map +1 -0
- package/dist/globuscomponents/{p-32b0b977.entry.js → p-61836d01.entry.js} +2 -2
- package/dist/globuscomponents/{p-6a3a7691.entry.js → p-64588b88.entry.js} +2 -2
- package/dist/globuscomponents/{p-d54be15f.entry.js → p-87664bb3.entry.js} +2 -2
- package/dist/globuscomponents/p-8b29407e.entry.js +2 -0
- package/dist/globuscomponents/{p-54de529a.entry.js → p-9d5dfa56.entry.js} +2 -2
- package/dist/globuscomponents/{p-0ff9fb66.entry.js → p-e51aa524.entry.js} +2 -2
- package/dist/globuscomponents/p-e51aa524.entry.js.map +1 -0
- package/dist/globuscomponents/{p-c5f36e24.entry.js → p-ea10b389.entry.js} +2 -2
- package/dist/globuscomponents/{p-e8c4960e.entry.js → p-fdadcae8.entry.js} +2 -2
- package/dist/globuscomponents/p-fdadcae8.entry.js.map +1 -0
- package/dist/globuscomponents/readme.md +44 -40
- package/dist/types/components/gb-btn/gb-btn.d.ts +2 -2
- package/dist/types/components/gb-button/gb-button.d.ts +3 -3
- package/dist/types/components/gb-header/gb-header.d.ts +3 -0
- package/dist/types/components/gb-horizontal-tabs/gb-horizontal-tabs.d.ts +1 -1
- package/dist/types/components/gb-input-field/gb-input-field.d.ts +10 -2
- package/dist/types/components/gb-password-button/gb-password-button.d.ts +2 -0
- package/dist/types/components/gb-verification-code-field/gb-verification-code-field.d.ts +1 -1
- package/dist/types/components.d.ts +35 -10
- package/dist/types/models/reusableModels.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/gb-avatar-dropdown.cjs.entry.js +0 -35
- package/dist/cjs/gb-avatar-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-avatar-label-group.cjs.entry.js +0 -77
- package/dist/cjs/gb-avatar-label-group.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-avatar_32.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-checkbox.cjs.entry.js +0 -55
- package/dist/cjs/gb-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js +0 -31
- package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-megainput-field.cjs.entry.js +0 -42
- package/dist/cjs/gb-megainput-field.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-verification-code-field.cjs.entry.js +0 -32
- package/dist/cjs/gb-verification-code-field.cjs.entry.js.map +0 -1
- package/dist/components/p-0b7ddf83.js.map +0 -1
- package/dist/components/p-65e3a60b.js.map +0 -1
- package/dist/components/p-8ae04b5e.js.map +0 -1
- package/dist/esm/gb-avatar-dropdown.entry.js +0 -31
- package/dist/esm/gb-avatar-dropdown.entry.js.map +0 -1
- package/dist/esm/gb-avatar-label-group.entry.js +0 -73
- package/dist/esm/gb-avatar-label-group.entry.js.map +0 -1
- package/dist/esm/gb-avatar_32.entry.js.map +0 -1
- package/dist/esm/gb-checkbox.entry.js +0 -51
- package/dist/esm/gb-checkbox.entry.js.map +0 -1
- package/dist/esm/gb-dropdown-items-with-shortcut.entry.js +0 -27
- package/dist/esm/gb-dropdown-items-with-shortcut.entry.js.map +0 -1
- package/dist/esm/gb-megainput-field.entry.js +0 -38
- package/dist/esm/gb-megainput-field.entry.js.map +0 -1
- package/dist/esm/gb-verification-code-field.entry.js +0 -28
- package/dist/esm/gb-verification-code-field.entry.js.map +0 -1
- package/dist/globuscomponents/p-02d7e7ad.entry.js +0 -2
- package/dist/globuscomponents/p-0eb9a7fa.entry.js +0 -2
- package/dist/globuscomponents/p-0eb9a7fa.entry.js.map +0 -1
- package/dist/globuscomponents/p-0ff9fb66.entry.js.map +0 -1
- package/dist/globuscomponents/p-18daffd5.entry.js +0 -2
- package/dist/globuscomponents/p-18daffd5.entry.js.map +0 -1
- package/dist/globuscomponents/p-3573409d.entry.js +0 -2
- package/dist/globuscomponents/p-3573409d.entry.js.map +0 -1
- package/dist/globuscomponents/p-6be1f290.entry.js +0 -2
- package/dist/globuscomponents/p-6be1f290.entry.js.map +0 -1
- package/dist/globuscomponents/p-a0c86da9.entry.js +0 -2
- package/dist/globuscomponents/p-a0c86da9.entry.js.map +0 -1
- package/dist/globuscomponents/p-da71e4b5.entry.js +0 -2
- package/dist/globuscomponents/p-da71e4b5.entry.js.map +0 -1
- package/dist/globuscomponents/p-e8c4960e.entry.js.map +0 -1
- /package/dist/globuscomponents/{p-40a8904d.entry.js.map → p-0638166b.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-922821b6.entry.js.map → p-19d2f500.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-bc401188.entry.js.map → p-355ee2b7.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-91d5bce7.entry.js.map → p-38ddb08d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ac73163c.entry.js.map → p-3bfd70d1.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-626cb855.entry.js.map → p-4e99fdd9.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-32b0b977.entry.js.map → p-61836d01.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-6a3a7691.entry.js.map → p-64588b88.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d54be15f.entry.js.map → p-87664bb3.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-02d7e7ad.entry.js.map → p-8b29407e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-54de529a.entry.js.map → p-9d5dfa56.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-c5f36e24.entry.js.map → p-ea10b389.entry.js.map} +0 -0
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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(JSON.parse("[[\"gb-avatar_32.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-field\",{\"size\":[1],\"type\":[1],\"destructive\":[4],\"state\":[1],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"],\"showPlaceholder\":[4,\"show-placeholder\"],\"placeholderText\":[1,\"placeholder-text\"],\"showHelpIcon\":[4,\"show-help-icon\"],\"showValidation\":[4,\"show-validation\"],\"iconSwap\":[1,\"icon-swap\"],\"showCloseButton\":[4,\"show-close-button\"]}],[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\"]}],[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-password-button\",{\"isPasswordVisible\":[32]}],[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-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]}],[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]}],[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-rich-text.cjs\",[[1,\"gb-rich-text\",{\"state\":[1],\"destructive\":[4],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showPlaceholder\":[4,\"show-placeholder\"],\"placeholder\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"]}]]],[\"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-token-field.cjs\",[[1,\"gb-token-field\",{\"size\":[1],\"digits\":[2],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showSupportingText\":[4,\"show-supporting-text\"],\"supportingText\":[1,\"supporting-text\"]}]]],[\"gb-verification-code-field.cjs\",[[1,\"gb-verification-code-field\",{\"size\":[1],\"digits\":[2],\"shoowLabel\":[4,\"shoow-label\"],\"label\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"]}]]],[\"gb-wysiwyg-tooltip.cjs\",[[1,\"gb-wysiwyg-tooltip\",{\"arrow\":[1],\"breakpoint\":[1]}]]],[\"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-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],\"state\":[1],\"showPlaceholder\":[4,\"show-placeholder\"],\"placeholder\":[1],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"]}]]],[\"gb-wysiwyg-toolbar.cjs\",[[1,\"gb-wysiwyg-toolbar\",{\"breakpoint\":[1],\"fontSelector\":[4,\"font-selector\"],\"bold\":[4],\"italic\":[4],\"h1\":[4,\"h-1\"],\"h2\":[4,\"h-2\"],\"quote\":[4],\"link\":[4],\"image\":[4],\"bulletList\":[4,\"bullet-list\"],\"numberList\":[4,\"number-list\"]}]]],[\"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-megainput-field.cjs\",[[1,\"gb-megainput-field\",{\"size\":[1],\"state\":[1],\"inputValue\":[32]}]]],[\"gb-wysiwyg-editor-icon.cjs\",[[1,\"gb-wysiwyg-editor-icon\",{\"active\":[4],\"type\":[1],\"state\":[1]}]]],[\"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(JSON.parse("[[\"gb-avatar_36.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-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\"]}],[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-input-field\",{\"size\":[1],\"type\":[1],\"destructive\":[4],\"state\":[1],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"],\"showPlaceholder\":[4,\"show-placeholder\"],\"placeholderText\":[1,\"placeholder-text\"],\"showHelpIcon\":[4,\"show-help-icon\"],\"showValidation\":[4,\"show-validation\"],\"iconSwap\":[1,\"icon-swap\"],\"showCloseButton\":[4,\"show-close-button\"],\"inputValue\":[32],\"tags\":[32],\"isPasswordVisible\":[32]}],[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\"]}],[1,\"gb-verification-code-field\",{\"size\":[1],\"digits\":[2],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"]}],[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-label-group\",{\"size\":[1],\"statusIcon\":[1,\"status-icon\"],\"state\":[1],\"placeholder\":[4],\"text\":[4]}],[1,\"gb-password-button\",{\"state\":[1],\"isPasswordVisible\":[32]}],[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-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-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-dropdown-items-with-shortcut\",{\"icon\":[4],\"iconSrc\":[1,\"icon-src\"],\"checkbox\":[4],\"shortcut\":[4],\"shortcutIcon\":[1,\"shortcut-icon\"],\"label\":[1],\"state\":[1]}],[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]}],[1,\"gb-megainput-field\",{\"size\":[1],\"state\":[1],\"inputValue\":[32]}],[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-checkbox\",{\"checked\":[4],\"indeterminate\":[4],\"size\":[1],\"type\":[1],\"state\":[1],\"supportingText\":[4,\"supporting-text\"]}],[1,\"gb-badge-close\",{\"color\":[1],\"type\":[1]}],[1,\"gb-checkbox-base\",{\"state\":[1025],\"size\":[1],\"type\":[1],\"checked\":[1028],\"indeterminate\":[1028]}],[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-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-rich-text.cjs\",[[1,\"gb-rich-text\",{\"state\":[1],\"destructive\":[4],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showPlaceholder\":[4,\"show-placeholder\"],\"placeholder\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"]}]]],[\"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-header.cjs\",[[1,\"gb-header\",{\"state\":[1],\"showIndicator\":[4,\"show-indicator\"],\"text\":[4],\"placeholder\":[4],\"helpIconClicked\":[64],\"notificationIconClicked\":[64],\"profileIconClicked\":[64]}]]],[\"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-token-field.cjs\",[[1,\"gb-token-field\",{\"size\":[1],\"digits\":[2],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showSupportingText\":[4,\"show-supporting-text\"],\"supportingText\":[1,\"supporting-text\"]}]]],[\"gb-wysiwyg-tooltip.cjs\",[[1,\"gb-wysiwyg-tooltip\",{\"arrow\":[1],\"breakpoint\":[1]}]]],[\"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-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],\"state\":[1],\"showPlaceholder\":[4,\"show-placeholder\"],\"placeholder\":[1],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"showHintText\":[4,\"show-hint-text\"],\"hintText\":[1,\"hint-text\"]}]]],[\"gb-wysiwyg-editor-icon.cjs\",[[1,\"gb-wysiwyg-editor-icon\",{\"active\":[4],\"type\":[1],\"state\":[1]}]]],[\"gb-wysiwyg-toolbar.cjs\",[[1,\"gb-wysiwyg-toolbar\",{\"breakpoint\":[1],\"fontSelector\":[4,\"font-selector\"],\"bold\":[4],\"italic\":[4],\"h1\":[4,\"h-1\"],\"h2\":[4,\"h-2\"],\"quote\":[4],\"link\":[4],\"image\":[4],\"bulletList\":[4,\"bullet-list\"],\"numberList\":[4,\"number-list\"]}]]],[\"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-slider-control-handle.cjs\",[[1,\"gb-slider-control-handle\",{\"value\":[2],\"type\":[1],\"isHovered\":[32],\"isFocused\":[32]}]]],[\"gb-header-icon.cjs\",[[1,\"gb-header-icon\",{\"state\":[1],\"showIndicator\":[4,\"show-indicator\"],\"icon\":[1]}]]],[\"gb-toggle-base.cjs\",[[1,\"gb-toggle-base\",{\"size\":[1],\"state\":[1]}]]],[\"gb-progress-bar.cjs\",[[1,\"gb-progress-bar\",{\"progress\":[2],\"showLabel\":[4,\"show-label\"],\"labelPosition\":[1,\"label-position\"],\"el\":[16]}]]]]"), options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"reusableModels-e50f3440.js","mappings":";;AAIYA;AAAZ,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;AACzB,CAAC,EAHWA,iBAAS,KAATA,iBAAS,QAGpB;AAMWC;AAAZ,WAAY,aAAa;IACrB,yCAAwB,CAAA;IACxB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACnB,CAAC,EALWA,qBAAa,KAAbA,qBAAa,QAKxB;AAEWC;AAAZ,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACvB,CAAC,EAHWA,6BAAqB,KAArBA,6BAAqB;;","names":["StateEnum","BorderWeights","OnlineIndicatorStates"],"sources":["src/models/reusableModels.ts"],"sourcesContent":["export type GeneralSizes = 'xl4' | 'xl3' | 'xl2' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs' | 'profile_lg' | 'profile_md' | 'profile_sm';\r\n\r\nexport type GeneralHierarchies = 'primary' | 'secondary_gray' | 'secondary_color' | 'tertiary_gray' | 'tertiary_color' | 'link_gray' | 'link_color';\r\n\r\nexport enum StateEnum {\r\n Default = 'default',\r\n Disabled = 'disabled'\r\n}\r\n\r\nexport type ArrowPositions = 'bottom_center' | 'bottom_left' | 'bottom_right' | 'top_center' | 'left' | 'right' | 'none';\r\n\r\nexport type CheckBoxVariants = 'checkbox' | 'check_circle' | 'radio';\r\n\r\nexport enum BorderWeights {\r\n VeryLight = 'very_light',\r\n Light = 'light',\r\n Regular = 'regular',\r\n Heavy = 'heavy'\r\n};\r\n\r\nexport enum OnlineIndicatorStates {\r\n Online = 'online',\r\n Offline = 'offline'\r\n}\r\n\r\nexport type BreakPoints = 'desktop' | 'mobile';\r\n\r\nexport type FileUploadIconType = 'icon' | 'outline';\r\n\r\nexport type FileUploadStates = 'default' | 'in_progress' | 'complete' | 'hover' | 'disabled' | 'error';\r\n\r\nexport type FileType = '';\r\n\r\nexport type GeneralColors = 'default' | 'gray' | 'primary' | 'error' | 'warning' | 'success' | 'discovery' | 'information' | 'pink' | 'purple';\r\n\r\nexport type PaginationNumberShapes = 'square' | 'circle';\r\n\r\nexport type PaginationTypes =\r\n | 'page_default'\r\n | 'page_minimal_center_aligned'\r\n | 'card_default'\r\n | 'card_minimal_right_aligned'\r\n | 'card_minimal_left_aligned'\r\n | 'card_minimal_center_aligned'\r\n | '
|
|
1
|
+
{"file":"reusableModels-e50f3440.js","mappings":";;AAIYA;AAAZ,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;AACzB,CAAC,EAHWA,iBAAS,KAATA,iBAAS,QAGpB;AAMWC;AAAZ,WAAY,aAAa;IACrB,yCAAwB,CAAA;IACxB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACnB,CAAC,EALWA,qBAAa,KAAbA,qBAAa,QAKxB;AAEWC;AAAZ,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACvB,CAAC,EAHWA,6BAAqB,KAArBA,6BAAqB;;","names":["StateEnum","BorderWeights","OnlineIndicatorStates"],"sources":["src/models/reusableModels.ts"],"sourcesContent":["export type GeneralSizes = 'xl4' | 'xl3' | 'xl2' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs' | 'profile_lg' | 'profile_md' | 'profile_sm';\r\n\r\nexport type GeneralHierarchies = 'primary' | 'secondary_gray' | 'secondary_color' | 'tertiary_gray' | 'tertiary_color' | 'link_gray' | 'link_color';\r\n\r\nexport enum StateEnum {\r\n Default = 'default',\r\n Disabled = 'disabled'\r\n}\r\n\r\nexport type ArrowPositions = 'bottom_center' | 'bottom_left' | 'bottom_right' | 'top_center' | 'left' | 'right' | 'none';\r\n\r\nexport type CheckBoxVariants = 'checkbox' | 'check_circle' | 'radio';\r\n\r\nexport enum BorderWeights {\r\n VeryLight = 'very_light',\r\n Light = 'light',\r\n Regular = 'regular',\r\n Heavy = 'heavy'\r\n};\r\n\r\nexport enum OnlineIndicatorStates {\r\n Online = 'online',\r\n Offline = 'offline'\r\n}\r\n\r\nexport type BreakPoints = 'desktop' | 'mobile';\r\n\r\nexport type FileUploadIconType = 'icon' | 'outline';\r\n\r\nexport type FileUploadStates = 'default' | 'in_progress' | 'complete' | 'hover' | 'disabled' | 'error';\r\n\r\nexport type FileType = '';\r\n\r\nexport type GeneralColors = 'default' | 'gray' | 'primary' | 'error' | 'warning' | 'success' | 'discovery' | 'information' | 'pink' | 'purple';\r\n\r\nexport type PaginationNumberShapes = 'square' | 'circle';\r\n\r\nexport type PaginationTypes =\r\n | 'page_default'\r\n | 'page_minimal_center_aligned'\r\n | 'card_default'\r\n | 'card_minimal_right_aligned'\r\n | 'card_minimal_left_aligned'\r\n | 'card_minimal_center_aligned'\r\n | 'card_button_group_ right_aligned'\r\n | 'card_button_group_left_aligned'\r\n | 'card_button_group_center_aligned';\r\n\r\nexport type TabTypes = 'button_primary' | 'button_gray' | 'button_white' | 'rounded_button_white' | 'underline' | 'underline_filled' | 'line' | 'button_white_border' | 'rounded_button_white_border';\r\n\r\nexport type GeneralBackgroundCategories = 'plain_background' | 'colored_background';\r\n\r\nexport type InputFieldTypes =\r\n | 'default'\r\n | 'icon_leading'\r\n | 'leading_dropdown'\r\n | 'trailing_dropdown'\r\n | 'leading_text'\r\n | 'payment_input'\r\n | 'tags'\r\n | 'trailing_button'\r\n | 'password'\r\n | 'password_icon_leading'\r\n | 'count';"],"version":3}
|
|
@@ -73,7 +73,7 @@ export class GbButton {
|
|
|
73
73
|
return h("div", { class: "icon right-icon", innerHTML: this.trailingIconSvg });
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h("button", { key: '
|
|
76
|
+
return (h("button", { key: '752d5f655cf6dcce1cfa84357dc243fdb6388310', class: this.getButtonClasses() }, this.iconLeading && this.icon === 'default' && this.renderLeadingIcon(), this.icon === 'default' && h("slot", { key: '431dc59370beade6fbd4036ddb04cd198a1f8449' }), this.iconTrailing && this.renderTrailingIcon(), this.icon === 'only' && this.renderLeadingIcon()));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "gb-btn"; }
|
|
79
79
|
static get originalStyleUrls() {
|
|
@@ -173,9 +173,15 @@ export class GbButton {
|
|
|
173
173
|
"type": "string",
|
|
174
174
|
"mutable": false,
|
|
175
175
|
"complexType": {
|
|
176
|
-
"original": "
|
|
177
|
-
"resolved": "
|
|
178
|
-
"references": {
|
|
176
|
+
"original": "StateEnum",
|
|
177
|
+
"resolved": "StateEnum.Default | StateEnum.Disabled",
|
|
178
|
+
"references": {
|
|
179
|
+
"StateEnum": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "../../models/reusableModels",
|
|
182
|
+
"id": "src/models/reusableModels.ts::StateEnum"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
179
185
|
},
|
|
180
186
|
"required": false,
|
|
181
187
|
"optional": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-btn.js","sourceRoot":"","sources":["../../../src/components/gb-btn/gb-btn.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOjF,MAAM,OAAO,QAAQ;;;;;2BAIY,KAAK;;2BAEL,KAAK;;4B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, GeneralSizes, StateEnum } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-btn',\r\n styleUrl: 'gb-btn.css',\r\n})\r\nexport class GbButton {\r\n @Prop() size: GeneralSizes;\r\n @Prop() hierarchy: GeneralHierarchies;\r\n @Prop() icon: 'default' | 'only';\r\n @Prop() destructive: boolean = false;\r\n @Prop() state: StateEnum;\r\n @Prop() iconLeading: boolean = false;\r\n @Prop() iconLeadingSwap: string;\r\n @Prop() iconTrailing: boolean = false;\r\n @Prop() iconTrailingSwap: string;\r\n @Element() el: HTMLElement;\r\n @State() leadingIconSvg: string = '';\r\n @State() trailingIconSvg: string = '';\r\n\r\n componentWillLoad() {\r\n if (this.iconLeading && this.iconLeadingSwap) {\r\n this.loadIcon(this.iconLeadingSwap, 'leading');\r\n }\r\n if (this.iconTrailing && this.iconTrailingSwap) {\r\n this.loadIcon(this.iconTrailingSwap, 'trailing');\r\n }\r\n\r\n const buttonSlot = this.el.querySelector('p');\r\n\r\n if (buttonSlot) {\r\n buttonSlot.classList.add(this.getButtonTextClasses());\r\n buttonSlot.classList.add('nowrap');\r\n }\r\n\r\n if (!this.iconLeading && !this.iconTrailing) {\r\n buttonSlot.classList.add('center');\r\n }\r\n }\r\n\r\n async loadIcon(iconName: string, type: 'leading' | 'trailing') {\r\n const iconPath = getAssetPath(`${iconName}`);\r\n const response = await fetch(iconPath);\r\n const svg = await response.text();\r\n if (type === 'leading') {\r\n this.leadingIconSvg = svg;\r\n } else {\r\n this.trailingIconSvg = svg;\r\n }\r\n }\r\n\r\n // Helper to apply color styles based on the button state\r\n getButtonClasses() {\r\n return {\r\n button: true,\r\n [this.size]: true,\r\n [this.hierarchy]: true,\r\n destructive: this.destructive,\r\n disabled: this.state === 'disabled',\r\n default: this.icon === 'default',\r\n only: this.icon === 'only',\r\n };\r\n }\r\n\r\n getButtonTextClasses() {\r\n switch (this.size) {\r\n case 'xl2':\r\n return 'text-lg-semi-bold';\r\n case 'xl':\r\n return 'text-md-semi-bold';\r\n case 'lg':\r\n return 'text-md-semi-bold';\r\n case 'md':\r\n return 'text-sm-semi-bold';\r\n case 'sm':\r\n return 'text-sm-semi-bold';\r\n }\r\n }\r\n\r\n renderLeadingIcon() {\r\n return <div class={`icon left-icon ${this.size}`} innerHTML={this.leadingIconSvg}></div>;\r\n }\r\n\r\n renderTrailingIcon() {\r\n return <div class=\"icon right-icon\" innerHTML={this.trailingIconSvg}></div>;\r\n }\r\n\r\n render() {\r\n return (\r\n <button class={this.getButtonClasses()}>\r\n {this.iconLeading && this.icon === 'default' && this.renderLeadingIcon()}\r\n {this.icon === 'default' && <slot></slot>}\r\n {this.iconTrailing && this.renderTrailingIcon()}\r\n {this.icon === 'only' && this.renderLeadingIcon()}\r\n </button>\r\n );\r\n }\r\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getAssetPath, h } from "@stencil/core";
|
|
2
|
-
export class
|
|
2
|
+
export class GbButton {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.size = undefined;
|
|
5
5
|
this.hierarchy = undefined;
|
|
@@ -68,7 +68,7 @@ export class MyButton {
|
|
|
68
68
|
return h("div", { class: "icon right-icon", innerHTML: this.trailingIconSvg });
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h("button", { key: '
|
|
71
|
+
return (h("button", { key: '8bbd905f7fc7def6f534f72569238452c32b3377', class: this.getButtonClasses() }, this.iconLeading && this.icon === 'default' && this.renderLeadingIcon(), this.icon === 'default' && h("slot", { key: '9e5793215de221a1764871402f6c4911f8de46c8' }), this.iconTrailing && this.renderTrailingIcon(), this.icon === 'only' && this.renderLeadingIcon()));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "gb-button"; }
|
|
74
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -170,9 +170,15 @@ export class MyButton {
|
|
|
170
170
|
"type": "string",
|
|
171
171
|
"mutable": false,
|
|
172
172
|
"complexType": {
|
|
173
|
-
"original": "
|
|
174
|
-
"resolved": "
|
|
175
|
-
"references": {
|
|
173
|
+
"original": "StateEnum",
|
|
174
|
+
"resolved": "StateEnum.Default | StateEnum.Disabled",
|
|
175
|
+
"references": {
|
|
176
|
+
"StateEnum": {
|
|
177
|
+
"location": "import",
|
|
178
|
+
"path": "../../models/reusableModels",
|
|
179
|
+
"id": "src/models/reusableModels.ts::StateEnum"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
176
182
|
},
|
|
177
183
|
"required": false,
|
|
178
184
|
"optional": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-button.js","sourceRoot":"","sources":["../../../src/components/gb-button/gb-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AASjF,MAAM,OAAO,QAAQ;;;;;2BAIY,KAAK;;2BAEL,KAAK;;4BAEJ,KAAK;;8BAGH,EAAE;+BACD,EAAE;;IAErC,iBAAiB;QACf,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YAC7C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC/C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAE9C,IAAI,UAAU,EAAE,CAAC;YACf,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;YACtD,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACrC,CAAC;QAED,IAAI,CAAC,IA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ssetPath, h, Prop, State } from '@stencil/core';\r\nimport { GeneralHierarchies, GeneralSizes, StateEnum } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-button',\r\n styleUrl: 'gb-button.css',\r\n shadow: true,\r\n assetsDirs: [''],\r\n})\r\nexport class GbButton {\r\n @Prop() size: GeneralSizes;\r\n @Prop() hierarchy: GeneralHierarchies;\r\n @Prop() icon: 'default' | 'only';\r\n @Prop() destructive: boolean = false;\r\n @Prop() state: StateEnum;\r\n @Prop() iconLeading: boolean = false;\r\n @Prop() iconLeadingSwap: string;\r\n @Prop() iconTrailing: boolean = false;\r\n @Prop() iconTrailingSwap: string;\r\n @Element() el: HTMLElement;\r\n @State() leadingIconSvg: string = '';\r\n @State() trailingIconSvg: string = '';\r\n\r\n componentWillLoad() {\r\n if (this.iconLeading && this.iconLeadingSwap) {\r\n this.loadIcon(this.iconLeadingSwap, 'leading');\r\n }\r\n if (this.iconTrailing && this.iconTrailingSwap) {\r\n this.loadIcon(this.iconTrailingSwap, 'trailing');\r\n }\r\n\r\n const buttonSlot = this.el.querySelector('p');\r\n\r\n if (buttonSlot) {\r\n buttonSlot.classList.add(this.getButtonTextClasses());\r\n buttonSlot.classList.add('nowrap');\r\n }\r\n\r\n if (!this.iconLeading && !this.iconTrailing) {\r\n buttonSlot.classList.add('center');\r\n }\r\n }\r\n\r\n async loadIcon(iconName: string, type: 'leading' | 'trailing') {\r\n const iconPath = getAssetPath(`${iconName}`);\r\n const response = await fetch(iconPath);\r\n const svg = await response.text();\r\n if (type === 'leading') {\r\n this.leadingIconSvg = svg;\r\n } else {\r\n this.trailingIconSvg = svg;\r\n }\r\n }\r\n\r\n // Helper to apply color styles based on the button state\r\n getButtonClasses() {\r\n return {\r\n button: true,\r\n [this.size]: true,\r\n [this.hierarchy]: true,\r\n destructive: this.destructive,\r\n disabled: this.state === 'disabled',\r\n default: this.icon === 'default',\r\n only: this.icon === 'only'\r\n };\r\n }\r\n\r\n getButtonTextClasses() {\r\n switch (this.size) {\r\n case 'xl2' : return 'text-lg-semi-bold';\r\n case 'xl' : return 'text-md-semi-bold';\r\n case 'lg' : return 'text-md-semi-bold';\r\n case 'md' : return 'text-sm-semi-bold';\r\n case 'sm' : return 'text-sm-semi-bold';\r\n }\r\n }\r\n\r\n renderLeadingIcon() {\r\n return <div class={`icon left-icon ${this.size}`} innerHTML={this.leadingIconSvg}></div>;\r\n }\r\n\r\n renderTrailingIcon() {\r\n return <div class=\"icon right-icon\" innerHTML={this.trailingIconSvg}></div>;\r\n }\r\n\r\n render() {\r\n return (\r\n <button class={this.getButtonClasses()}>\r\n {this.iconLeading && this.icon === 'default' && this.renderLeadingIcon()}\r\n {this.icon === 'default' && <slot></slot>}\r\n {this.iconTrailing && this.renderTrailingIcon()}\r\n {this.icon === 'only' && this.renderLeadingIcon()}\r\n </button>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, Element, getAssetPath, h, Prop, State } from '@stencil/core';
|
|
2
|
-
import { GeneralHierarchies, GeneralSizes } from '../../models/reusableModels';
|
|
2
|
+
import { GeneralHierarchies, GeneralSizes, StateEnum } from '../../models/reusableModels';
|
|
3
3
|
|
|
4
4
|
@Component({
|
|
5
5
|
tag: 'gb-button',
|
|
@@ -7,12 +7,12 @@ import { GeneralHierarchies, GeneralSizes } from '../../models/reusableModels';
|
|
|
7
7
|
shadow: true,
|
|
8
8
|
assetsDirs: [''],
|
|
9
9
|
})
|
|
10
|
-
export class
|
|
10
|
+
export class GbButton {
|
|
11
11
|
@Prop() size: GeneralSizes;
|
|
12
12
|
@Prop() hierarchy: GeneralHierarchies;
|
|
13
13
|
@Prop() icon: 'default' | 'only';
|
|
14
14
|
@Prop() destructive: boolean = false;
|
|
15
|
-
@Prop() state:
|
|
15
|
+
@Prop() state: StateEnum;
|
|
16
16
|
@Prop() iconLeading: boolean = false;
|
|
17
17
|
@Prop() iconLeadingSwap: string;
|
|
18
18
|
@Prop() iconTrailing: boolean = false;
|
|
@@ -2,43 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
<!-- Auto Generated Below -->
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Properties
|
|
9
|
-
|
|
10
|
-
| Property | Attribute | Description | Type | Default |
|
|
11
|
-
| ------------------ | -------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
12
|
-
| `destructive` | `destructive` | | `boolean` | `false` |
|
|
13
|
-
| `hierarchy` | `hierarchy` | | `"link_color" \| "link_gray" \| "primary" \| "secondary_color" \| "secondary_gray" \| "tertiary_color" \| "tertiary_gray"` | `undefined` |
|
|
14
|
-
| `icon` | `icon` | | `"default" \| "only"` | `undefined` |
|
|
15
|
-
| `iconLeading` | `icon-leading` | | `boolean` | `false` |
|
|
16
|
-
| `iconLeadingSwap` | `icon-leading-swap` | | `string` | `undefined` |
|
|
17
|
-
| `iconTrailing` | `icon-trailing` | | `boolean` | `false` |
|
|
18
|
-
| `iconTrailingSwap` | `icon-trailing-swap` | | `string` | `undefined` |
|
|
19
|
-
| `size` | `size` | | `"lg" \| "md" \| "profile_lg" \| "profile_md" \| "profile_sm" \| "sm" \| "xl" \| "xl2" \| "xl3" \| "xl4" \| "xs" \| "xxs"` | `undefined` |
|
|
20
|
-
| `state` | `state` | | `"default" \| "disabled" \| "hover" \| "pressed"` | `undefined` |
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Dependencies
|
|
24
|
-
|
|
25
|
-
### Used by
|
|
26
|
-
|
|
27
|
-
- [gb-checkbox-group-item](../gb-checkbox-group-item)
|
|
28
|
-
- [gb-file-upload-item-base](../gb-file-upload-item-base)
|
|
29
|
-
- [gb-
|
|
30
|
-
- [gb-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
gb-
|
|
38
|
-
gb-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ------------------ | -------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
12
|
+
| `destructive` | `destructive` | | `boolean` | `false` |
|
|
13
|
+
| `hierarchy` | `hierarchy` | | `"link_color" \| "link_gray" \| "primary" \| "secondary_color" \| "secondary_gray" \| "tertiary_color" \| "tertiary_gray"` | `undefined` |
|
|
14
|
+
| `icon` | `icon` | | `"default" \| "only"` | `undefined` |
|
|
15
|
+
| `iconLeading` | `icon-leading` | | `boolean` | `false` |
|
|
16
|
+
| `iconLeadingSwap` | `icon-leading-swap` | | `string` | `undefined` |
|
|
17
|
+
| `iconTrailing` | `icon-trailing` | | `boolean` | `false` |
|
|
18
|
+
| `iconTrailingSwap` | `icon-trailing-swap` | | `string` | `undefined` |
|
|
19
|
+
| `size` | `size` | | `"lg" \| "md" \| "profile_lg" \| "profile_md" \| "profile_sm" \| "sm" \| "xl" \| "xl2" \| "xl3" \| "xl4" \| "xs" \| "xxs"` | `undefined` |
|
|
20
|
+
| `state` | `state` | | `"default" \| "disabled" \| "hover" \| "pressed"` | `undefined` |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Dependencies
|
|
24
|
+
|
|
25
|
+
### Used by
|
|
26
|
+
|
|
27
|
+
- [gb-checkbox-group-item](../gb-checkbox-group-item)
|
|
28
|
+
- [gb-file-upload-item-base](../gb-file-upload-item-base)
|
|
29
|
+
- [gb-input-field](../gb-input-field)
|
|
30
|
+
- [gb-pagination](../gb-pagination)
|
|
31
|
+
- [gb-password-button](../gb-password-button)
|
|
32
|
+
- [gb-toast](../gb-toast)
|
|
33
|
+
|
|
34
|
+
### Graph
|
|
35
|
+
```mermaid
|
|
36
|
+
graph TD;
|
|
37
|
+
gb-checkbox-group-item --> gb-button
|
|
38
|
+
gb-file-upload-item-base --> gb-button
|
|
39
|
+
gb-input-field --> gb-button
|
|
40
|
+
gb-pagination --> gb-button
|
|
41
|
+
gb-password-button --> gb-button
|
|
42
|
+
gb-toast --> gb-button
|
|
43
|
+
style gb-button fill:#f9f,stroke:#333,stroke-width:4px
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
----------------------------------------------
|
|
47
|
+
|
|
48
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -82,9 +82,8 @@ export class GbCheckboxGroupItem {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
console.log(this.selected);
|
|
86
85
|
return [
|
|
87
|
-
h("div", { key: '
|
|
86
|
+
h("div", { key: '677f08ebc46bd447daeb7abe65a13d963f806cf1', class: `checkbox_group_item ${this.size} ${this.state} ${this.selected ? 'selected' : ''}`, onClick: () => this.toggleSelection() }, h("div", { key: '81e9d82ce81397297c54ae23f33ffe2421817e2b', class: "item-content" }, this.renderIcon(), h("div", { key: '9df2f0baf23d886ad978ca02c4f169b45f1cc16a', class: "text-container" }, h("div", { key: '0e49c7d1bca2842f593361b4a0d98372ff5674a6', class: `label-cost ${this.type}` }, h("slot", { key: 'c1e73a26cf82135fce3b32b1576d7ff901f3fe9d', name: "label" }), this.showCost && (h("slot", { key: '76788dcac0d14b5361de9dba3b7ba03d06d0ee92', name: "cost" }))), this.type === 'payment_icon' ? (h("div", { class: "buttons" }, h("gb-button", { size: this.size, hierarchy: "link_gray", icon: "default", state: this.state }, h("p", null, "Set as default")), h("gb-button", { size: this.size, hierarchy: "link_color", icon: "default", state: this.state }, h("p", null, "Edit")))) : (h("slot", { name: "supporting_text" })))), h("div", { key: 'aef802f3e1bd9b5a1fd3aa735f7cb8f681566d0a', class: `checkbox_container` }, h("gb-checkbox-base", { key: '96d3f90d8274e0fdd4f53030a504752c01449ca1', type: this.type === 'radio_button' ? 'radio' : this.type === 'checkbox' ? 'checkbox' : 'check_circle', size: this.size, state: this.state, checked: this.selected }))),
|
|
88
87
|
];
|
|
89
88
|
}
|
|
90
89
|
static get is() { return "gb-checkbox-group-item"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-checkbox-group-item.js","sourceRoot":"","sources":["../../../src/components/gb-checkbox-group-item/gb-checkbox-group-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAQ5D,MAAM,OAAO,mBAAmB;;;;;;wBAKF,KAAK;wBAEY,KAAK;;IAE1C,iBAAiB;QACvB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,IAAI;gBACP,OAAO,mBAAmB,CAAC;YAC7B,KAAK,IAAI;gBACP,OAAO,mBAAmB,CAAC;QAC/B,CAAC;IACH,CAAC;IAEO,gBAAgB;QACtB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B;gBACE,OAAO,iBAAiB,CAAC;QAC7B,CAAC;IACH,CAAC;IAEO,oBAAoB;QAC1B,QAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;YACrB,KAAK,IAAK,CAAC,CAAC,OAAO,gBAAgB,CAAC;YACpC,KAAK,KAAM,CAAC,CAAC,OAAO,oBAAoB,CAAC;QAC3C,CAAC;IACH,CAAC;IAEO,mBAAmB;QACzB,QAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;YACrB,KAAK,IAAK,CAAC,CAAC,OAAO,eAAe,CAAC;YACnC,KAAK,KAAM,CAAC,CAAC,OAAO,mBAAmB,CAAC;QAC1C,CAAC;IACH,CAAC;IAED,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AAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,EACrG,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,QAAQ,GACJ,CAChB,CACF;SACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Element } from '@stencil/core';\r\nimport { GeneralSizes, StateEnum, BreakPoints } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-checkbox-group-item',\r\n styleUrl: 'gb-checkbox-group-item.css',\r\n shadow: true,\r\n})\r\nexport class GbCheckboxGroupItem {\r\n @Prop() size: GeneralSizes;\r\n @Prop() type: 'icon_simple' | 'avatar' | 'payment_icon' | 'radio_button' | 'checkbox';\r\n @Prop() state: StateEnum;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() showCost: boolean = false; // to control cost visibility\r\n @Element() el: HTMLElement;\r\n @Prop({ mutable: true }) selected: boolean = false;\r\n\r\n private getLabelSizeClass() {\r\n switch (this.size) {\r\n case 'md':\r\n return 'text-lg-semi-bold';\r\n case 'sm':\r\n return 'text-md-semi-bold';\r\n }\r\n }\r\n\r\n private getCostSizeClass() {\r\n switch (this.size) {\r\n case 'xl':\r\n return 'text-md-regular';\r\n case 'lg':\r\n return 'text-md-regular';\r\n case 'md':\r\n return 'text-sm-regular';\r\n case 'sm':\r\n return 'text-xs-regular';\r\n default:\r\n return 'text-xs-regular';\r\n }\r\n }\r\n\r\n private getLabelColorClasses() {\r\n switch(this.selected) {\r\n case true : return 'label_selected';\r\n case false : return 'label_not_selected';\r\n }\r\n }\r\n\r\n private getCostColorClasses() {\r\n switch(this.selected) {\r\n case true : return 'cost_selected';\r\n case false : return 'cost_not_selected';\r\n }\r\n }\r\n\r\n componentDidUpdate() {\r\n const labelSlot = this.el.querySelector('[slot=\"label\"]');\r\n const costSlot = this.el.querySelector('[slot=\"cost\"]');\r\n\r\n labelSlot.classList.add(this.getLabelColorClasses());\r\n costSlot.classList.add(this.getCostColorClasses());\r\n }\r\n\r\n componentDidLoad() {\r\n const labelSlot = this.el.querySelector('[slot=\"label\"]');\r\n const costSlot = this.el.querySelector('[slot=\"cost\"]');\r\n const supportingTextSlot = this.el.querySelector('[slot=\"supporting_text\"]');\r\n\r\n if (labelSlot) {\r\n labelSlot.classList.add(this.getLabelSizeClass());\r\n }\r\n\r\n if (costSlot) {\r\n costSlot.classList.add(this.getCostSizeClass());\r\n costSlot.classList.add(this.getCostColorClasses());\r\n }\r\n\r\n if (supportingTextSlot) {\r\n supportingTextSlot.classList.add(this.getCostSizeClass());\r\n supportingTextSlot.classList.add('supporting_text');\r\n }\r\n }\r\n\r\n private renderIcon() {\r\n switch (this.type) {\r\n case 'avatar':\r\n return (\r\n <gb-avatar class=\"icon-md\" size=\"md\" placeholder={false} icon=\"user\">\r\n <img src=\"build/assets/avatar_pic.jpg\" slot=\"image\"></img>\r\n </gb-avatar>\r\n );\r\n case 'payment_icon':\r\n return (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"46\" height=\"32\" viewBox=\"0 0 46 32\" fill=\"none\">\r\n <rect x=\"0.5\" y=\"0.5\" width=\"45\" height=\"31\" rx=\"5.5\" fill=\"white\" />\r\n <rect x=\"0.5\" y=\"0.5\" width=\"45\" height=\"31\" rx=\"5.5\" stroke=\"#F8FAFC\" />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M14.3336 21.1444H11.5872L9.52784 13.0565C9.43009 12.6845 9.22255 12.3556 8.91725 12.2006C8.15535 11.811 7.31579 11.501 6.3999 11.3446V11.0332H10.824C11.4346 11.0332 11.8925 11.501 11.9689 12.0442L13.0374 17.8782L15.7824 11.0332H18.4524L14.3336 21.1444ZM19.9789 21.1444H17.3852L19.5209 11.0332H22.1146L19.9789 21.1444ZM25.4702 13.8343C25.5465 13.2898 26.0044 12.9784 26.5387 12.9784C27.3783 12.9002 28.2928 13.0566 29.0561 13.4448L29.514 11.2678C28.7508 10.9564 27.9112 10.8 27.1493 10.8C24.6319 10.8 22.8002 12.2006 22.8002 14.1444C22.8002 15.6231 24.0977 16.3995 25.0136 16.8673C26.0044 17.3337 26.3861 17.6451 26.3097 18.1114C26.3097 18.811 25.5465 19.1224 24.7846 19.1224C23.8687 19.1224 22.9528 18.8892 22.1146 18.4997L21.6567 20.678C22.5725 21.0662 23.5634 21.2226 24.4793 21.2226C27.3019 21.2994 29.0561 19.9002 29.0561 17.8001C29.0561 15.1553 25.4702 15.0003 25.4702 13.8343ZM38.1332 21.1444L36.0738 11.0332H33.8618C33.4038 11.0332 32.9459 11.3446 32.7932 11.811L28.9797 21.1444H31.6497L32.1826 19.667H35.4632L35.7685 21.1444H38.1332ZM34.2434 13.7562L35.0053 17.5669H32.8696L34.2434 13.7562Z\"\r\n fill=\"#172B85\"\r\n />\r\n </svg>\r\n );\r\n case 'icon_simple':\r\n default:\r\n return (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\">\r\n <path\r\n opacity=\"0.4\"\r\n d=\"M11.524 4.19421L9.25088 5.24491C5.75029 6.863 4 7.67204 4 9.00008C4 10.3281 5.7503 11.1372 9.25089 12.7553L11.524 13.806C13.727 14.8243 14.8285 15.3334 16 15.3334C17.1715 15.3334 18.273 14.8243 20.476 13.806L22.7491 12.7553C26.2497 11.1372 28 10.3281 28 9.00008C28 7.67204 26.2497 6.86299 22.7491 5.2449L20.476 4.19421C18.273 3.1759 17.1715 2.66675 16 2.66675C14.8285 2.66675 13.727 3.1759 11.524 4.19421Z\"\r\n fill=\"#064E94\"\r\n />\r\n <path\r\n d=\"M27.7173 14.797C27.9058 15.062 28 15.3382 28 15.6419C28 16.951 26.2497 17.7486 22.7491 19.3436L20.476 20.3794C18.273 21.3832 17.1715 21.8851 16 21.8851C14.8285 21.8851 13.727 21.3832 11.524 20.3794L9.25089 19.3436C5.7503 17.7486 4 16.951 4 15.6419C4 15.3382 4.09422 15.062 4.28267 14.797M27.1689 21.6876C27.723 22.1289 28 22.5688 28 23.0896C28 24.3987 26.2497 25.1962 22.7491 26.7913L20.476 27.827C18.273 28.8308 17.1715 29.3327 16 29.3327C14.8285 29.3327 13.727 28.8308 11.524 27.827L9.25089 26.7913C5.7503 25.1962 4 24.3987 4 23.0896C4 22.5688 4.27704 22.1289 4.83112 21.6876M9.25088 5.24491L11.524 4.19421C13.727 3.1759 14.8285 2.66675 16 2.66675C17.1715 2.66675 18.273 3.1759 20.476 4.19421L22.7491 5.2449C26.2497 6.863 28 7.67204 28 9.00008C28 10.3281 26.2497 11.1372 22.7491 12.7553L20.476 13.806C18.273 14.8243 17.1715 15.3334 16 15.3334C14.8285 15.3334 13.727 14.8243 11.524 13.806L9.25089 12.7553C5.7503 11.1372 4 10.3281 4 9.00008C4 7.67204 5.75029 6.863 9.25088 5.24491Z\"\r\n stroke=\"#064E94\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n );\r\n }\r\n }\r\n\r\n // Toggle selected state on checkbox click\r\n private toggleSelection() {\r\n if(this.state === 'default') {\r\n this.selected = !this.selected;\r\n }\r\n }\r\n\r\n render() {\r\n console.log(this.selected);\r\n return [\r\n <div class={`checkbox_group_item ${this.size} ${this.state} ${this.selected ? 'selected' : ''}`} onClick={() => this.toggleSelection()}>\r\n <div class=\"item-content\">\r\n {this.renderIcon()}\r\n <div class=\"text-container\">\r\n <div class={`label-cost ${this.type}`}>\r\n <slot name=\"label\"></slot>\r\n {this.showCost && (\r\n <slot name=\"cost\"></slot>\r\n )}\r\n </div>\r\n {this.type === 'payment_icon' ? (\r\n <div class=\"buttons\">\r\n <gb-button size={this.size} hierarchy=\"link_gray\" icon=\"default\" state={this.state}>\r\n <p>Set as default</p>\r\n </gb-button>\r\n <gb-button size={this.size} hierarchy=\"link_color\" icon=\"default\" state={this.state}>\r\n <p>Edit</p>\r\n </gb-button>\r\n </div>\r\n ) : (\r\n <slot name=\"supporting_text\"></slot>\r\n )}\r\n </div>\r\n </div>\r\n <div class={`checkbox_container`}>\r\n <gb-checkbox-base\r\n type={this.type === 'radio_button' ? 'radio' : this.type === 'checkbox' ? 'checkbox' : 'check_circle'}\r\n size={this.size}\r\n state={this.state}\r\n checked={this.selected}\r\n ></gb-checkbox-base>\r\n </div>\r\n </div>,\r\n ];\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"gb-checkbox-group-item.js","sourceRoot":"","sources":["../../../src/components/gb-checkbox-group-item/gb-checkbox-group-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAQ5D,MAAM,OAAO,mBAAmB;;;;;;wBAKF,KAAK;wBAEY,KAAK;;IAE1C,iBAAiB;QACvB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,IAAI;gBACP,OAAO,mBAAmB,CAAC;YAC7B,KAAK,IAAI;gBACP,OAAO,mBAAmB,CAAC;QAC/B,CAAC;IACH,CAAC;IAEO,gBAAgB;QACtB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B,KAAK,IAAI;gBACP,OAAO,iBAAiB,CAAC;YAC3B;gBACE,OAAO,iBAAiB,CAAC;QAC7B,CAAC;IACH,CAAC;I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AAC,IAAI,EAAE,SAAS,EAAC,YAAY,EAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK;gCACjF,oBAAW,CACD,CACR,CACP,CAAC,CAAC,CAAC,CACF,YAAM,IAAI,EAAC,iBAAiB,GAAQ,CACrC,CACC,CACF;gBACN,4DAAK,KAAK,EAAE,oBAAoB;oBAC9B,yEACE,IAAI,EAAE,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,EACrG,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,QAAQ,GACJ,CAChB,CACF;SACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Element } from '@stencil/core';\r\nimport { GeneralSizes, StateEnum, BreakPoints } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-checkbox-group-item',\r\n styleUrl: 'gb-checkbox-group-item.css',\r\n shadow: true,\r\n})\r\nexport class GbCheckboxGroupItem {\r\n @Prop() size: GeneralSizes;\r\n @Prop() type: 'icon_simple' | 'avatar' | 'payment_icon' | 'radio_button' | 'checkbox';\r\n @Prop() state: StateEnum;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() showCost: boolean = false; // to control cost visibility\r\n @Element() el: HTMLElement;\r\n @Prop({ mutable: true }) selected: boolean = false;\r\n\r\n private getLabelSizeClass() {\r\n switch (this.size) {\r\n case 'md':\r\n return 'text-lg-semi-bold';\r\n case 'sm':\r\n return 'text-md-semi-bold';\r\n }\r\n }\r\n\r\n private getCostSizeClass() {\r\n switch (this.size) {\r\n case 'xl':\r\n return 'text-md-regular';\r\n case 'lg':\r\n return 'text-md-regular';\r\n case 'md':\r\n return 'text-sm-regular';\r\n case 'sm':\r\n return 'text-xs-regular';\r\n default:\r\n return 'text-xs-regular';\r\n }\r\n }\r\n\r\n private getLabelColorClasses() {\r\n switch(this.selected) {\r\n case true : return 'label_selected';\r\n case false : return 'label_not_selected';\r\n }\r\n }\r\n\r\n private getCostColorClasses() {\r\n switch(this.selected) {\r\n case true : return 'cost_selected';\r\n case false : return 'cost_not_selected';\r\n }\r\n }\r\n\r\n componentDidUpdate() {\r\n const labelSlot = this.el.querySelector('[slot=\"label\"]');\r\n const costSlot = this.el.querySelector('[slot=\"cost\"]');\r\n\r\n labelSlot.classList.add(this.getLabelColorClasses());\r\n costSlot.classList.add(this.getCostColorClasses());\r\n }\r\n\r\n componentDidLoad() {\r\n const labelSlot = this.el.querySelector('[slot=\"label\"]');\r\n const costSlot = this.el.querySelector('[slot=\"cost\"]');\r\n const supportingTextSlot = this.el.querySelector('[slot=\"supporting_text\"]');\r\n\r\n if (labelSlot) {\r\n labelSlot.classList.add(this.getLabelSizeClass());\r\n }\r\n\r\n if (costSlot) {\r\n costSlot.classList.add(this.getCostSizeClass());\r\n costSlot.classList.add(this.getCostColorClasses());\r\n }\r\n\r\n if (supportingTextSlot) {\r\n supportingTextSlot.classList.add(this.getCostSizeClass());\r\n supportingTextSlot.classList.add('supporting_text');\r\n }\r\n }\r\n\r\n private renderIcon() {\r\n switch (this.type) {\r\n case 'avatar':\r\n return (\r\n <gb-avatar class=\"icon-md\" size=\"md\" placeholder={false} icon=\"user\">\r\n <img src=\"build/assets/avatar_pic.jpg\" slot=\"image\"></img>\r\n </gb-avatar>\r\n );\r\n case 'payment_icon':\r\n return (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"46\" height=\"32\" viewBox=\"0 0 46 32\" fill=\"none\">\r\n <rect x=\"0.5\" y=\"0.5\" width=\"45\" height=\"31\" rx=\"5.5\" fill=\"white\" />\r\n <rect x=\"0.5\" y=\"0.5\" width=\"45\" height=\"31\" rx=\"5.5\" stroke=\"#F8FAFC\" />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M14.3336 21.1444H11.5872L9.52784 13.0565C9.43009 12.6845 9.22255 12.3556 8.91725 12.2006C8.15535 11.811 7.31579 11.501 6.3999 11.3446V11.0332H10.824C11.4346 11.0332 11.8925 11.501 11.9689 12.0442L13.0374 17.8782L15.7824 11.0332H18.4524L14.3336 21.1444ZM19.9789 21.1444H17.3852L19.5209 11.0332H22.1146L19.9789 21.1444ZM25.4702 13.8343C25.5465 13.2898 26.0044 12.9784 26.5387 12.9784C27.3783 12.9002 28.2928 13.0566 29.0561 13.4448L29.514 11.2678C28.7508 10.9564 27.9112 10.8 27.1493 10.8C24.6319 10.8 22.8002 12.2006 22.8002 14.1444C22.8002 15.6231 24.0977 16.3995 25.0136 16.8673C26.0044 17.3337 26.3861 17.6451 26.3097 18.1114C26.3097 18.811 25.5465 19.1224 24.7846 19.1224C23.8687 19.1224 22.9528 18.8892 22.1146 18.4997L21.6567 20.678C22.5725 21.0662 23.5634 21.2226 24.4793 21.2226C27.3019 21.2994 29.0561 19.9002 29.0561 17.8001C29.0561 15.1553 25.4702 15.0003 25.4702 13.8343ZM38.1332 21.1444L36.0738 11.0332H33.8618C33.4038 11.0332 32.9459 11.3446 32.7932 11.811L28.9797 21.1444H31.6497L32.1826 19.667H35.4632L35.7685 21.1444H38.1332ZM34.2434 13.7562L35.0053 17.5669H32.8696L34.2434 13.7562Z\"\r\n fill=\"#172B85\"\r\n />\r\n </svg>\r\n );\r\n case 'icon_simple':\r\n default:\r\n return (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\">\r\n <path\r\n opacity=\"0.4\"\r\n d=\"M11.524 4.19421L9.25088 5.24491C5.75029 6.863 4 7.67204 4 9.00008C4 10.3281 5.7503 11.1372 9.25089 12.7553L11.524 13.806C13.727 14.8243 14.8285 15.3334 16 15.3334C17.1715 15.3334 18.273 14.8243 20.476 13.806L22.7491 12.7553C26.2497 11.1372 28 10.3281 28 9.00008C28 7.67204 26.2497 6.86299 22.7491 5.2449L20.476 4.19421C18.273 3.1759 17.1715 2.66675 16 2.66675C14.8285 2.66675 13.727 3.1759 11.524 4.19421Z\"\r\n fill=\"#064E94\"\r\n />\r\n <path\r\n d=\"M27.7173 14.797C27.9058 15.062 28 15.3382 28 15.6419C28 16.951 26.2497 17.7486 22.7491 19.3436L20.476 20.3794C18.273 21.3832 17.1715 21.8851 16 21.8851C14.8285 21.8851 13.727 21.3832 11.524 20.3794L9.25089 19.3436C5.7503 17.7486 4 16.951 4 15.6419C4 15.3382 4.09422 15.062 4.28267 14.797M27.1689 21.6876C27.723 22.1289 28 22.5688 28 23.0896C28 24.3987 26.2497 25.1962 22.7491 26.7913L20.476 27.827C18.273 28.8308 17.1715 29.3327 16 29.3327C14.8285 29.3327 13.727 28.8308 11.524 27.827L9.25089 26.7913C5.7503 25.1962 4 24.3987 4 23.0896C4 22.5688 4.27704 22.1289 4.83112 21.6876M9.25088 5.24491L11.524 4.19421C13.727 3.1759 14.8285 2.66675 16 2.66675C17.1715 2.66675 18.273 3.1759 20.476 4.19421L22.7491 5.2449C26.2497 6.863 28 7.67204 28 9.00008C28 10.3281 26.2497 11.1372 22.7491 12.7553L20.476 13.806C18.273 14.8243 17.1715 15.3334 16 15.3334C14.8285 15.3334 13.727 14.8243 11.524 13.806L9.25089 12.7553C5.7503 11.1372 4 10.3281 4 9.00008C4 7.67204 5.75029 6.863 9.25088 5.24491Z\"\r\n stroke=\"#064E94\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n );\r\n }\r\n }\r\n\r\n // Toggle selected state on checkbox click\r\n private toggleSelection() {\r\n if(this.state === 'default') {\r\n this.selected = !this.selected;\r\n }\r\n }\r\n\r\n render() {\r\n return [\r\n <div class={`checkbox_group_item ${this.size} ${this.state} ${this.selected ? 'selected' : ''}`} onClick={() => this.toggleSelection()}>\r\n <div class=\"item-content\">\r\n {this.renderIcon()}\r\n <div class=\"text-container\">\r\n <div class={`label-cost ${this.type}`}>\r\n <slot name=\"label\"></slot>\r\n {this.showCost && (\r\n <slot name=\"cost\"></slot>\r\n )}\r\n </div>\r\n {this.type === 'payment_icon' ? (\r\n <div class=\"buttons\">\r\n <gb-button size={this.size} hierarchy=\"link_gray\" icon=\"default\" state={this.state}>\r\n <p>Set as default</p>\r\n </gb-button>\r\n <gb-button size={this.size} hierarchy=\"link_color\" icon=\"default\" state={this.state}>\r\n <p>Edit</p>\r\n </gb-button>\r\n </div>\r\n ) : (\r\n <slot name=\"supporting_text\"></slot>\r\n )}\r\n </div>\r\n </div>\r\n <div class={`checkbox_container`}>\r\n <gb-checkbox-base\r\n type={this.type === 'radio_button' ? 'radio' : this.type === 'checkbox' ? 'checkbox' : 'check_circle'}\r\n size={this.size}\r\n state={this.state}\r\n checked={this.selected}\r\n ></gb-checkbox-base>\r\n </div>\r\n </div>,\r\n ];\r\n }\r\n}\r\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { getAssetPath, h } from "@stencil/core";
|
|
2
2
|
import { StateEnum } from "../../models/reusableModels";
|
|
3
3
|
export class GbHeader {
|
|
4
4
|
constructor() {
|
|
@@ -13,8 +13,13 @@ export class GbHeader {
|
|
|
13
13
|
initials.classList.add('text-md-semi-bold');
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
async helpIconClicked() { }
|
|
17
|
+
async notificationIconClicked() { }
|
|
18
|
+
async profileIconClicked() { }
|
|
16
19
|
render() {
|
|
17
|
-
|
|
20
|
+
const helpIconSrc = getAssetPath(`assets/help-circle.svg`);
|
|
21
|
+
const notificationIconSrc = getAssetPath(`assets/notification-03.svg`);
|
|
22
|
+
return (h("div", { key: '0699cac516cee147413c49fc0c78928d5fe6972c', class: `header_div` }, h("div", { key: 'b90bf469272842ec9e8dbecd515f355c0b7bd5db', class: "content" }, h("div", { key: '88f31ff1b4bed25e7f3432453b65299c2644d746', class: "inner_content" }, h("gb-header-icon", { key: '5ccff54eb5e456d24530d9a7f6a1fe7429558ddb', state: StateEnum.Default, icon: helpIconSrc, onClick: () => this.helpIconClicked() }), h("gb-header-icon", { key: '074539c3e897fe739eba76f862798da3be31c94a', state: this.state, icon: notificationIconSrc, "show-indicator": this.showIndicator, onClick: () => this.notificationIconClicked() }), h("gb-avatar", { key: 'e7a8d4fb68a63a9217a5be74cffb97ed5cf79ba1', size: "md", text: this.text, placeholder: this.placeholder, onClick: () => this.profileIconClicked() }, this.text ? h("slot", { slot: "initials", name: "initials" }) : h("slot", { name: "image", slot: "image" }))))));
|
|
18
23
|
}
|
|
19
24
|
static get is() { return "gb-header"; }
|
|
20
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -109,6 +114,61 @@ export class GbHeader {
|
|
|
109
114
|
}
|
|
110
115
|
};
|
|
111
116
|
}
|
|
117
|
+
static get methods() {
|
|
118
|
+
return {
|
|
119
|
+
"helpIconClicked": {
|
|
120
|
+
"complexType": {
|
|
121
|
+
"signature": "() => Promise<void>",
|
|
122
|
+
"parameters": [],
|
|
123
|
+
"references": {
|
|
124
|
+
"Promise": {
|
|
125
|
+
"location": "global",
|
|
126
|
+
"id": "global::Promise"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"return": "Promise<void>"
|
|
130
|
+
},
|
|
131
|
+
"docs": {
|
|
132
|
+
"text": "",
|
|
133
|
+
"tags": []
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"notificationIconClicked": {
|
|
137
|
+
"complexType": {
|
|
138
|
+
"signature": "() => Promise<void>",
|
|
139
|
+
"parameters": [],
|
|
140
|
+
"references": {
|
|
141
|
+
"Promise": {
|
|
142
|
+
"location": "global",
|
|
143
|
+
"id": "global::Promise"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"return": "Promise<void>"
|
|
147
|
+
},
|
|
148
|
+
"docs": {
|
|
149
|
+
"text": "",
|
|
150
|
+
"tags": []
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"profileIconClicked": {
|
|
154
|
+
"complexType": {
|
|
155
|
+
"signature": "() => Promise<void>",
|
|
156
|
+
"parameters": [],
|
|
157
|
+
"references": {
|
|
158
|
+
"Promise": {
|
|
159
|
+
"location": "global",
|
|
160
|
+
"id": "global::Promise"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"return": "Promise<void>"
|
|
164
|
+
},
|
|
165
|
+
"docs": {
|
|
166
|
+
"text": "",
|
|
167
|
+
"tags": []
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
112
172
|
static get elementRef() { return "el"; }
|
|
113
173
|
}
|
|
114
174
|
//# sourceMappingURL=gb-header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-header.js","sourceRoot":"","sources":["../../../src/components/gb-header/gb-header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"gb-header.js","sourceRoot":"","sources":["../../../src/components/gb-header/gb-header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAOxD,MAAM,OAAO,QAAQ;;;6BAEc,KAAK;oBACd,KAAK;2BACE,KAAK;;IAGpC,gBAAgB;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, getAssetPath, h, Method, Prop } from \"@stencil/core\";\r\nimport { StateEnum } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-header',\r\n styleUrl: 'gb-header.css',\r\n shadow: true,\r\n})\r\nexport class GbHeader {\r\n @Prop() state: StateEnum;\r\n @Prop() showIndicator: boolean = false;\r\n @Prop() text: boolean = false;\r\n @Prop() placeholder: boolean = false;\r\n @Element() el: HTMLElement;\r\n\r\n componentDidLoad() {\r\n const initials = this.el.querySelector(\"[slot='initials']\");\r\n\r\n if (initials) {\r\n initials.classList.add('text-md-semi-bold');\r\n }\r\n }\r\n\r\n @Method()\r\n async helpIconClicked() {}\r\n\r\n @Method()\r\n async notificationIconClicked() {}\r\n\r\n @Method()\r\n async profileIconClicked() {}\r\n\r\n render() {\r\n const helpIconSrc = getAssetPath(`assets/help-circle.svg`);\r\n const notificationIconSrc = getAssetPath(`assets/notification-03.svg`);\r\n\r\n return (\r\n <div class={`header_div`}>\r\n <div class=\"content\">\r\n <div class=\"inner_content\">\r\n <gb-header-icon state={StateEnum.Default} icon={helpIconSrc} onClick={() => this.helpIconClicked()}></gb-header-icon>\r\n <gb-header-icon state={this.state} icon={notificationIconSrc} show-indicator={this.showIndicator} onClick={() => this.notificationIconClicked()}></gb-header-icon>\r\n <gb-avatar size=\"md\" text={this.text} placeholder={this.placeholder} onClick={() => this.profileIconClicked()}>\r\n {this.text ? <slot slot=\"initials\" name=\"initials\"></slot> : <slot name=\"image\" slot=\"image\"></slot>}\r\n </gb-avatar>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n}"]}
|
|
@@ -27,13 +27,23 @@ export class GbHorizontalTabs {
|
|
|
27
27
|
}
|
|
28
28
|
async handleTabClick(index) {
|
|
29
29
|
this.activeIndex = index;
|
|
30
|
+
localStorage.setItem('activeIndex', index.toString());
|
|
30
31
|
this.tabItemClicked.emit(index);
|
|
31
32
|
}
|
|
32
|
-
componentDidLoad() {
|
|
33
|
-
|
|
33
|
+
// componentDidLoad() {
|
|
34
|
+
// this.activeIndex = 0;
|
|
35
|
+
// }
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
const storedIndex = localStorage.getItem('activeIndex');
|
|
38
|
+
if (storedIndex !== null) {
|
|
39
|
+
this.activeIndex = parseInt(storedIndex, 10); // Retrieve active index from localStorage
|
|
40
|
+
}
|
|
41
|
+
else if (storedIndex === null) {
|
|
42
|
+
this.activeIndex = 0;
|
|
43
|
+
}
|
|
34
44
|
}
|
|
35
45
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: '69483f44df204aa90d46d94769660d045a00a8f9', class: `horizontal_tab_div ${this.type} ${this.breakpoint} ${this.fullWidth ? 'full_width' : ''}` }, h("gb-tab-button-base", { key: '845f61c536d3636e8564ede896961fc7e718530b', 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: '898f72072f18ce48e72be27295189e9f2d4d10e7', 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: '5e56a46ed286155d543d32e07dc18d9ec66d7cde', 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: '7aa608bc50382b599e8a6be10bed2ea1686c82b3', 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: '9879f5bfea9c4c66a92cac3c3bcd173319e230cb', 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: '19eb677cb4314553750d803bc34599d965f531ef', 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: 'b036e2092d5a3d36e05d9aed6c1fc6095d83ef73', 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: '116c13364cf96cfeb0986343e02871e8b616d3bf', 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: 'ef24fa0d20e5142685421795983ac055222559f0', 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: '10e8c7a2f293428c1d7cf0f99cc28b24707b1f09', 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 }))));
|
|
37
47
|
}
|
|
38
48
|
static get is() { return "gb-horizontal-tabs"; }
|
|
39
49
|
static get encapsulation() { return "shadow"; }
|