globuswebcomponents 0.7.3 → 0.7.5
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-add-button.cjs.entry.js +1 -1
- package/dist/cjs/gb-avatar-dropdown.cjs.entry.js +65 -0
- package/dist/cjs/gb-avatar-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/gb-avatar-label-group.cjs.entry.js +104 -0
- package/dist/cjs/gb-avatar-label-group.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-avatar-profile-photo.cjs.entry.js +1 -1
- package/dist/cjs/{gb-avatar_40.cjs.entry.js → gb-avatar_38.cjs.entry.js} +114 -260
- package/dist/cjs/gb-avatar_38.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-button-close_2.cjs.entry.js +2 -2
- package/dist/cjs/gb-checkbox-group-item.cjs.entry.js +1 -1
- package/dist/cjs/gb-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js +32 -0
- package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-file-type-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-file-upload-item-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-file-upload.cjs.entry.js +10 -10
- package/dist/cjs/gb-help-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/gb-megainput-field.cjs.entry.js +3 -3
- package/dist/cjs/gb-progress-circle.cjs.entry.js +2 -2
- package/dist/cjs/gb-rich-text.cjs.entry.js +2 -2
- package/dist/cjs/gb-scrollbar.cjs.entry.js +2 -2
- package/dist/cjs/gb-slider-control-handle.cjs.entry.js +2 -2
- package/dist/cjs/gb-slider.cjs.entry.js +2 -2
- package/dist/cjs/gb-textarea-input-field.cjs.entry.js +1 -1
- package/dist/cjs/gb-toast-button.cjs.entry.js +2 -2
- package/dist/cjs/gb-toast.cjs.entry.js +2 -2
- package/dist/cjs/gb-toggle.cjs.entry.js +2 -2
- package/dist/cjs/gb-token-field.cjs.entry.js +2 -2
- package/dist/cjs/gb-verification-code-field.cjs.entry.js +3 -3
- package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/globuscomponents.cjs.js +2 -2
- package/dist/cjs/{index-82c030a2.js → index-7fc3c23a.js} +7 -3
- package/dist/cjs/index-7fc3c23a.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/database.svg +6 -0
- package/dist/collection/assets/filter-horizontal.svg +9 -0
- package/dist/collection/assets/laptop.svg +6 -0
- package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.css +7 -0
- package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.js +10 -2
- package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.js.map +1 -1
- package/dist/collection/components/gb-export-dropdown-item/gb-export-dropdown-item.js +1 -1
- package/dist/collection/components/gb-export-sub-dropdown/gb-export-sub-dropdown.css +1 -0
- package/dist/collection/components/gb-export-sub-dropdown/gb-export-sub-dropdown.js +1 -1
- package/dist/collection/components/gb-export-sub-dropdown/gb-export-sub-dropdown.js.map +1 -1
- package/dist/collection/components/gb-export-sub-dropdown-item/gb-export-sub-dropdown-item.css +22 -1
- package/dist/collection/components/gb-export-sub-dropdown-item/gb-export-sub-dropdown-item.js +37 -3
- package/dist/collection/components/gb-export-sub-dropdown-item/gb-export-sub-dropdown-item.js.map +1 -1
- package/dist/collection/components/gb-file-upload/gb-file-upload.js +9 -9
- package/dist/collection/components/gb-file-upload-item-base/gb-file-upload-item-base.js +1 -1
- package/dist/collection/components/gb-header/gb-header.js +1 -1
- package/dist/collection/components/gb-header-icon/gb-header-icon.js +4 -4
- package/dist/collection/components/gb-help-dropdown/gb-help-dropdown.js +1 -1
- package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js +1 -1
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.css +1 -4
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +1 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.css +12 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +24 -11
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
- package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.css +31 -1
- package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js +8 -4
- package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js.map +1 -1
- package/dist/collection/components/gb-input-field/gb-input-field.js +11 -11
- package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js +2 -2
- package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
- package/dist/collection/components/gb-notification-pane/gb-notification-pane.js +6 -29
- package/dist/collection/components/gb-notification-pane/gb-notification-pane.js.map +1 -1
- package/dist/collection/components/gb-pagination/gb-pagination.css +4 -0
- package/dist/collection/components/gb-pagination/gb-pagination.js +8 -4
- package/dist/collection/components/gb-pagination/gb-pagination.js.map +1 -1
- 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.js +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.js +18 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js.map +1 -1
- package/dist/collection/components/gb-slider/gb-slider.js +1 -1
- package/dist/collection/components/gb-slider-control-handle/slider-control-handle.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 -3
- package/dist/collection/components/gb-tag/gb-tag.js +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-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 +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.js +2 -2
- package/dist/components/gb-avatar-add-button.js +1 -1
- package/dist/components/gb-avatar-contrast-inner-border.js +1 -1
- package/dist/components/gb-avatar-dropdown.js +8 -8
- package/dist/components/gb-avatar-group.js +6 -6
- package/dist/components/gb-avatar-label-group.js +1 -1
- package/dist/components/gb-avatar-profile-photo.js +4 -4
- package/dist/components/gb-avatar.js +1 -1
- package/dist/components/gb-badge-close.js +1 -1
- package/dist/components/gb-badge.js +1 -1
- package/dist/components/gb-btn.js +1 -1
- package/dist/components/gb-button-close.js +1 -1
- package/dist/components/gb-button.js +1 -1
- package/dist/components/gb-carousel-arrow.js +1 -1
- package/dist/components/gb-checkbox-base.js +1 -1
- package/dist/components/gb-checkbox-group-item.js +1 -1
- package/dist/components/gb-checkbox-group.js +8 -8
- package/dist/components/gb-checkbox.js +1 -1
- package/dist/components/gb-collapse-button.js +1 -1
- package/dist/components/gb-dropdown-items-with-shortcut.js +1 -1
- package/dist/components/gb-export-dropdown-item.js +1 -1
- package/dist/components/gb-export-dropdown.js +22 -6
- package/dist/components/gb-export-dropdown.js.map +1 -1
- package/dist/components/gb-export-sub-dropdown-item.js +1 -1
- package/dist/components/gb-export-sub-dropdown.js +1 -36
- package/dist/components/gb-export-sub-dropdown.js.map +1 -1
- package/dist/components/gb-file-type-icon.js +1 -1
- package/dist/components/gb-file-upload-item-base.js +1 -1
- package/dist/components/gb-file-upload.js +15 -15
- package/dist/components/gb-header-icon.js +1 -1
- package/dist/components/gb-header.js +6 -6
- package/dist/components/gb-help-dropdown.js +5 -5
- package/dist/components/gb-help-tooltip.js +1 -1
- package/dist/components/gb-horizontal-tabs.js +9 -9
- package/dist/components/gb-horizontal-tabs.js.map +1 -1
- package/dist/components/gb-input-dropdown-menu-item.js +1 -1
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-input-field.js +23 -23
- package/dist/components/gb-megainput-field.js +1 -1
- package/dist/components/gb-notification-content.js +1 -1
- package/dist/components/gb-notification-pane.js +9 -23
- package/dist/components/gb-notification-pane.js.map +1 -1
- package/dist/components/gb-pagination-button-group-base.js +2 -2
- package/dist/components/gb-pagination-dot-indicator.js +2 -2
- package/dist/components/gb-pagination-number-base.js +1 -1
- package/dist/components/gb-pagination.js +25 -21
- package/dist/components/gb-pagination.js.map +1 -1
- 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 +2 -2
- package/dist/components/gb-rich-text.js +17 -17
- package/dist/components/gb-scrollbar.js +2 -2
- package/dist/components/gb-side-bar-item.js +1 -1
- package/dist/components/gb-sidebar.js +13 -10
- 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 +4 -4
- 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 +1 -1
- package/dist/components/gb-textarea-input-field.js +1 -1
- package/dist/components/gb-toast-button.js +1 -1
- package/dist/components/gb-toast.js +5 -5
- package/dist/components/gb-toggle-base.js +1 -1
- package/dist/components/gb-toggle.js +3 -3
- package/dist/components/gb-token-field.js +3 -3
- package/dist/components/gb-tooltip.js +1 -1
- package/dist/components/gb-verification-code-field.js +4 -4
- package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
- package/dist/components/gb-wysiwyg-toolbar.js +1 -1
- package/dist/components/gb-wysiwyg-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-81aa2aac.js → p-00bf09b8.js} +3 -3
- package/dist/components/{p-81aa2aac.js.map → p-00bf09b8.js.map} +1 -1
- package/dist/components/{p-03aafe98.js → p-09772a6d.js} +5 -5
- package/dist/components/{p-03aafe98.js.map → p-09772a6d.js.map} +1 -1
- package/dist/components/{p-76e5c136.js → p-09778ae9.js} +9 -9
- package/dist/components/{p-76e5c136.js.map → p-09778ae9.js.map} +1 -1
- package/dist/components/{p-a49d1cd0.js → p-0e12707a.js} +2 -2
- package/dist/components/{p-a49d1cd0.js.map → p-0e12707a.js.map} +1 -1
- package/dist/components/{p-aab48f11.js → p-16ee1433.js} +2 -2
- package/dist/components/{p-aab48f11.js.map → p-16ee1433.js.map} +1 -1
- package/dist/components/{p-7dfe2e6e.js → p-18bfa41a.js} +6 -6
- package/dist/components/{p-7dfe2e6e.js.map → p-18bfa41a.js.map} +1 -1
- package/dist/components/{p-a5a98f57.js → p-1d77236a.js} +3 -3
- package/dist/components/{p-a5a98f57.js.map → p-1d77236a.js.map} +1 -1
- package/dist/components/{p-df5e12b6.js → p-20c4af13.js} +2 -2
- package/dist/components/{p-df5e12b6.js.map → p-20c4af13.js.map} +1 -1
- package/dist/{cjs/gb-export-sub-dropdown.cjs.entry.js → components/p-236dc937.js} +32 -14
- package/dist/components/p-236dc937.js.map +1 -0
- package/dist/components/{p-c47114b4.js → p-23df277a.js} +4 -4
- package/dist/components/{p-c47114b4.js.map → p-23df277a.js.map} +1 -1
- package/dist/components/{p-54a26532.js → p-3716958d.js} +16 -16
- package/dist/components/{p-54a26532.js.map → p-3716958d.js.map} +1 -1
- package/dist/components/{p-0a38b641.js → p-386d5cd1.js} +3 -3
- package/dist/components/{p-0a38b641.js.map → p-386d5cd1.js.map} +1 -1
- package/dist/components/{p-d4be099a.js → p-41eacc92.js} +3 -3
- package/dist/components/{p-d4be099a.js.map → p-41eacc92.js.map} +1 -1
- package/dist/components/{p-599d4c74.js → p-480640d7.js} +3 -3
- package/dist/components/{p-599d4c74.js.map → p-480640d7.js.map} +1 -1
- package/dist/components/{p-484718b7.js → p-4cb9fda8.js} +2 -2
- package/dist/components/{p-484718b7.js.map → p-4cb9fda8.js.map} +1 -1
- package/dist/components/{p-f04532e6.js → p-5cec0d91.js} +3 -3
- package/dist/components/{p-f04532e6.js.map → p-5cec0d91.js.map} +1 -1
- package/dist/components/{p-b9ca2f90.js → p-5e8d1d59.js} +20 -6
- package/dist/components/p-5e8d1d59.js.map +1 -0
- package/dist/components/{p-4e619f34.js → p-6daf6e7f.js} +5 -5
- package/dist/components/{p-4e619f34.js.map → p-6daf6e7f.js.map} +1 -1
- package/dist/components/{p-35bf0baf.js → p-6edcbb4c.js} +31 -27
- package/dist/components/p-6edcbb4c.js.map +1 -0
- package/dist/components/{p-96b92a91.js → p-73cbe6d3.js} +6 -6
- package/dist/components/{p-96b92a91.js.map → p-73cbe6d3.js.map} +1 -1
- package/dist/components/{p-526d40a2.js → p-7f246b95.js} +7 -3
- package/dist/{cjs/index-82c030a2.js.map → components/p-7f246b95.js.map} +1 -1
- package/dist/components/{p-e5989aa8.js → p-813142ee.js} +4 -4
- package/dist/components/{p-e5989aa8.js.map → p-813142ee.js.map} +1 -1
- package/dist/components/{p-d8546cd7.js → p-8145c433.js} +4 -4
- package/dist/components/{p-d8546cd7.js.map → p-8145c433.js.map} +1 -1
- package/dist/components/{p-3b853dc6.js → p-85f51aba.js} +16 -12
- package/dist/components/p-85f51aba.js.map +1 -0
- package/dist/components/{p-5577324f.js → p-92560002.js} +3 -3
- package/dist/components/{p-5577324f.js.map → p-92560002.js.map} +1 -1
- package/dist/components/{p-3f76be54.js → p-9994ecb6.js} +2 -2
- package/dist/components/{p-3f76be54.js.map → p-9994ecb6.js.map} +1 -1
- package/dist/components/{p-15710279.js → p-9a2881d2.js} +8 -8
- package/dist/components/{p-15710279.js.map → p-9a2881d2.js.map} +1 -1
- package/dist/components/{p-2b414140.js → p-9c7644e9.js} +3 -3
- package/dist/components/{p-2b414140.js.map → p-9c7644e9.js.map} +1 -1
- package/dist/components/{p-0b245ee3.js → p-9d781b35.js} +3 -3
- package/dist/components/{p-0b245ee3.js.map → p-9d781b35.js.map} +1 -1
- package/dist/components/{p-20b0e1c1.js → p-a471da94.js} +4 -4
- package/dist/components/{p-20b0e1c1.js.map → p-a471da94.js.map} +1 -1
- package/dist/components/{p-dbb66bab.js → p-a7ebeee3.js} +3 -3
- package/dist/components/{p-dbb66bab.js.map → p-a7ebeee3.js.map} +1 -1
- package/dist/components/{p-e1385814.js → p-af0999d2.js} +3 -3
- package/dist/components/{p-e1385814.js.map → p-af0999d2.js.map} +1 -1
- package/dist/components/{p-94df8239.js → p-b1a0f271.js} +3 -3
- package/dist/components/{p-94df8239.js.map → p-b1a0f271.js.map} +1 -1
- package/dist/components/{p-7124ef98.js → p-c27882ac.js} +10 -10
- package/dist/components/{p-7124ef98.js.map → p-c27882ac.js.map} +1 -1
- package/dist/components/{p-79f50dd3.js → p-cd5ac79a.js} +4 -4
- package/dist/components/{p-79f50dd3.js.map → p-cd5ac79a.js.map} +1 -1
- package/dist/components/{p-48056c56.js → p-d5322cb2.js} +2 -2
- package/dist/components/{p-48056c56.js.map → p-d5322cb2.js.map} +1 -1
- package/dist/components/{p-a7105dca.js → p-d73b3c4c.js} +7 -7
- package/dist/components/{p-a7105dca.js.map → p-d73b3c4c.js.map} +1 -1
- package/dist/components/{p-0c4b9f10.js → p-d88fdfb9.js} +4 -4
- package/dist/components/{p-0c4b9f10.js.map → p-d88fdfb9.js.map} +1 -1
- package/dist/components/{p-30a94bf3.js → p-e211b4c3.js} +4 -4
- package/dist/components/{p-30a94bf3.js.map → p-e211b4c3.js.map} +1 -1
- package/dist/components/{p-a6b53c68.js → p-eacfe146.js} +2 -2
- package/dist/components/{p-a6b53c68.js.map → p-eacfe146.js.map} +1 -1
- package/dist/components/{p-9567243d.js → p-eb6e23b9.js} +9 -9
- package/dist/components/{p-9567243d.js.map → p-eb6e23b9.js.map} +1 -1
- package/dist/esm/gb-avatar-add-button.entry.js +1 -1
- package/dist/esm/gb-avatar-dropdown.entry.js +61 -0
- package/dist/esm/gb-avatar-dropdown.entry.js.map +1 -0
- package/dist/esm/gb-avatar-group.entry.js +1 -1
- package/dist/esm/gb-avatar-label-group.entry.js +100 -0
- package/dist/esm/gb-avatar-label-group.entry.js.map +1 -0
- package/dist/esm/gb-avatar-profile-photo.entry.js +1 -1
- package/dist/esm/{gb-avatar_40.entry.js → gb-avatar_38.entry.js} +114 -258
- package/dist/esm/gb-avatar_38.entry.js.map +1 -0
- package/dist/esm/gb-button-close_2.entry.js +2 -2
- package/dist/esm/gb-checkbox-group-item.entry.js +1 -1
- package/dist/esm/gb-checkbox-group.entry.js +1 -1
- package/dist/esm/gb-dropdown-items-with-shortcut.entry.js +28 -0
- package/dist/esm/gb-dropdown-items-with-shortcut.entry.js.map +1 -0
- package/dist/esm/gb-file-type-icon.entry.js +1 -1
- package/dist/esm/gb-file-upload-item-base.entry.js +2 -2
- package/dist/esm/gb-file-upload.entry.js +10 -10
- package/dist/esm/gb-help-dropdown.entry.js +2 -2
- package/dist/esm/gb-megainput-field.entry.js +3 -3
- package/dist/esm/gb-progress-circle.entry.js +2 -2
- package/dist/esm/gb-rich-text.entry.js +2 -2
- package/dist/esm/gb-scrollbar.entry.js +2 -2
- package/dist/esm/gb-slider-control-handle.entry.js +2 -2
- package/dist/esm/gb-slider.entry.js +2 -2
- package/dist/esm/gb-textarea-input-field.entry.js +1 -1
- package/dist/esm/gb-toast-button.entry.js +2 -2
- package/dist/esm/gb-toast.entry.js +2 -2
- package/dist/esm/gb-toggle.entry.js +2 -2
- package/dist/esm/gb-token-field.entry.js +2 -2
- package/dist/esm/gb-verification-code-field.entry.js +3 -3
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-toolbar.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-tooltip.entry.js +1 -1
- package/dist/esm/globuscomponents.js +3 -3
- package/dist/esm/{index-b015e857.js → index-fefe05f2.js} +7 -3
- package/dist/esm/index-fefe05f2.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/globuscomponents/assets/database.svg +6 -0
- package/dist/globuscomponents/assets/filter-horizontal.svg +9 -0
- package/dist/globuscomponents/assets/laptop.svg +6 -0
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
- package/dist/globuscomponents/{p-aa4a4c00.entry.js → p-00e5662d.entry.js} +2 -2
- package/dist/globuscomponents/{p-c93db781.entry.js → p-0315566f.entry.js} +2 -2
- package/dist/globuscomponents/{p-9b99abdb.entry.js → p-0317f007.entry.js} +2 -2
- package/dist/globuscomponents/p-04cef765.entry.js +2 -0
- package/dist/globuscomponents/{p-5aac3b80.entry.js → p-0d507560.entry.js} +2 -2
- package/dist/globuscomponents/{p-c6e46539.entry.js → p-13b65018.entry.js} +2 -2
- package/dist/globuscomponents/{p-d19146ce.entry.js → p-2395479e.entry.js} +2 -2
- package/dist/globuscomponents/{p-7c76781d.entry.js → p-264eab2d.entry.js} +2 -2
- package/dist/globuscomponents/{p-8db2251b.entry.js → p-318ebe61.entry.js} +2 -2
- package/dist/globuscomponents/{p-9ea6f3d0.entry.js → p-47c41cbe.entry.js} +2 -2
- package/dist/globuscomponents/{p-9ceb9664.entry.js → p-48dd72c2.entry.js} +2 -2
- package/dist/globuscomponents/{p-9f0d14f0.entry.js → p-5a67976e.entry.js} +2 -2
- package/dist/globuscomponents/{p-ed655f72.entry.js → p-68e18773.entry.js} +2 -2
- package/dist/globuscomponents/{p-e70534d1.entry.js → p-70759956.entry.js} +2 -2
- package/dist/globuscomponents/{p-5fb67944.entry.js → p-7a392cb1.entry.js} +2 -2
- package/dist/globuscomponents/{p-261e74e3.entry.js → p-7c3543f9.entry.js} +2 -2
- package/dist/globuscomponents/p-85556fc9.entry.js +2 -0
- package/dist/globuscomponents/p-85556fc9.entry.js.map +1 -0
- package/dist/globuscomponents/{p-23f6cdaa.entry.js → p-ab1cd528.entry.js} +2 -2
- package/dist/globuscomponents/{p-8670bfe4.entry.js → p-af64d458.entry.js} +2 -2
- package/dist/globuscomponents/p-b2d796f5.entry.js +2 -0
- package/dist/globuscomponents/p-b2d796f5.entry.js.map +1 -0
- package/dist/globuscomponents/p-b9aef85c.entry.js +2 -0
- package/dist/globuscomponents/p-b9aef85c.entry.js.map +1 -0
- package/dist/globuscomponents/{p-a720f8ce.entry.js → p-bef774b2.entry.js} +2 -2
- package/dist/globuscomponents/{p-8844e42c.entry.js → p-c177ad02.entry.js} +2 -2
- package/dist/globuscomponents/{p-856cdce9.entry.js → p-d616a58a.entry.js} +2 -2
- package/dist/globuscomponents/{p-cf4fa95a.entry.js → p-d6431fef.entry.js} +2 -2
- package/dist/globuscomponents/{p-61ebec19.entry.js → p-d8b940fa.entry.js} +2 -2
- package/dist/globuscomponents/p-d8b940fa.entry.js.map +1 -0
- package/dist/globuscomponents/{p-d00a1b0b.entry.js → p-d8c49468.entry.js} +2 -2
- package/dist/globuscomponents/{p-1407230c.entry.js → p-e99b678a.entry.js} +2 -2
- package/dist/globuscomponents/{p-87cbf02b.entry.js → p-eb34562c.entry.js} +2 -2
- package/dist/globuscomponents/{p-6a2960b8.js → p-fac5ed2a.js} +3 -3
- package/dist/globuscomponents/p-fac5ed2a.js.map +1 -0
- package/dist/types/components/gb-export-dropdown/gb-export-dropdown.d.ts +2 -0
- package/dist/types/components/gb-export-sub-dropdown-item/gb-export-sub-dropdown-item.d.ts +3 -0
- package/dist/types/components/gb-input-dropdown/gb-input-dropdown.d.ts +1 -1
- package/dist/types/components/gb-notification-pane/gb-notification-pane.d.ts +0 -5
- package/dist/types/components/gb-sidebar/gb-sidebar.d.ts +1 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/gb-avatar_40.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-export-sub-dropdown.cjs.entry.js.map +0 -1
- package/dist/components/p-35bf0baf.js.map +0 -1
- package/dist/components/p-3b853dc6.js.map +0 -1
- package/dist/components/p-526d40a2.js.map +0 -1
- package/dist/components/p-b9ca2f90.js.map +0 -1
- package/dist/esm/gb-avatar_40.entry.js.map +0 -1
- package/dist/esm/gb-export-sub-dropdown.entry.js +0 -18
- package/dist/esm/gb-export-sub-dropdown.entry.js.map +0 -1
- package/dist/esm/index-b015e857.js.map +0 -1
- package/dist/globuscomponents/p-2af16015.entry.js +0 -2
- package/dist/globuscomponents/p-2af16015.entry.js.map +0 -1
- package/dist/globuscomponents/p-61ebec19.entry.js.map +0 -1
- package/dist/globuscomponents/p-621b927c.entry.js +0 -2
- package/dist/globuscomponents/p-6a2960b8.js.map +0 -1
- /package/dist/globuscomponents/{p-aa4a4c00.entry.js.map → p-00e5662d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-c93db781.entry.js.map → p-0315566f.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-9b99abdb.entry.js.map → p-0317f007.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-621b927c.entry.js.map → p-04cef765.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5aac3b80.entry.js.map → p-0d507560.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-c6e46539.entry.js.map → p-13b65018.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d19146ce.entry.js.map → p-2395479e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7c76781d.entry.js.map → p-264eab2d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-8db2251b.entry.js.map → p-318ebe61.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-9ea6f3d0.entry.js.map → p-47c41cbe.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-9ceb9664.entry.js.map → p-48dd72c2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-9f0d14f0.entry.js.map → p-5a67976e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ed655f72.entry.js.map → p-68e18773.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e70534d1.entry.js.map → p-70759956.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5fb67944.entry.js.map → p-7a392cb1.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-261e74e3.entry.js.map → p-7c3543f9.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-23f6cdaa.entry.js.map → p-ab1cd528.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-8670bfe4.entry.js.map → p-af64d458.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a720f8ce.entry.js.map → p-bef774b2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-8844e42c.entry.js.map → p-c177ad02.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-856cdce9.entry.js.map → p-d616a58a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-cf4fa95a.entry.js.map → p-d6431fef.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d00a1b0b.entry.js.map → p-d8c49468.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-1407230c.entry.js.map → p-e99b678a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-87cbf02b.entry.js.map → p-eb34562c.entry.js.map} +0 -0
package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-input-dropdown-menu-item.js","sourceRoot":"","sources":["../../../src/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQtE,MAAM,OAAO,uBAAuB;;;8BAEA,KAAK;wBACM,KAAK;;;;IAKlD,gBAAgB;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACxD,MAAM,kBAAkB,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAC7E,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;QAEhE,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"gb-input-dropdown-menu-item.js","sourceRoot":"","sources":["../../../src/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQtE,MAAM,OAAO,uBAAuB;;;8BAEA,KAAK;wBACM,KAAK;;;;IAKlD,gBAAgB;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACxD,MAAM,kBAAkB,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAC7E,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;QAEhE,IAAG,QAAQ,EAAE,CAAC;YACZ,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AK,UAAU,IAAI,CAC5C,4DAAK,KAAK,EAAE,MAAM,IACf,IAAI,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,CAC3B,WAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,QAAQ,IAAI,CAAC,KAAK,EAAE;oBACxH,YACE,CAAC,EAAC,wGAAwG,EAC1G,MAAM,EAAC,SAAS,kBACH,SAAS,oBACP,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CAAC,CAAC,CAAC,CACF,WAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;oBAC5F,YACE,CAAC,EAAC,wGAAwG,EAC1G,MAAM,EAAC,SAAS,kBACH,SAAS,oBACP,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CACG,CACP,CACG,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Prop, h, Fragment } from \"@stencil/core\";\r\nimport { AvatarColorTypes, DropdownTypes, StateEnum } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-input-dropdown-menu-item',\r\n styleUrl: 'gb-input-dropdown-menu-item.css',\r\n shadow: true,\r\n})\r\nexport class GbInputDropdownMenuItem {\r\n @Prop() type: DropdownTypes;\r\n @Prop() supportingText: boolean = false;\r\n @Prop({ mutable: true }) selected: boolean = false;\r\n @Prop() state: StateEnum;\r\n @Prop() color: AvatarColorTypes;\r\n @Element() el: HTMLElement;\r\n\r\n componentDidLoad() {\r\n const nameSlot = this.el.querySelector('[slot=\"name\"]');\r\n const supportingTextSlot = this.el.querySelector('[slot=\"supporting_text\"]');\r\n const initialsSlot = this.el.querySelector('[slot=\"initials\"]');\r\n\r\n if(nameSlot) {\r\n nameSlot.classList.add('text-md-medium');\r\n }\r\n\r\n if(initialsSlot) {\r\n initialsSlot.classList.add('text-xs-semi-bold');\r\n }\r\n\r\n if(supportingTextSlot) {\r\n supportingTextSlot.classList.add('text-sm-regular');\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n // <div class=\"dropdown-container\" onClick={() => (this.selected = !this.selected)}>\r\n <div class=\"dropdown-container\">\r\n <div\r\n class={{\r\n 'dropdown-item': true,\r\n 'selected': this.selected,\r\n 'disabled': this.state === 'disabled',\r\n 'checkbox': this.type === 'checkbox',\r\n [this.type]: true,\r\n }}\r\n role=\"option\"\r\n aria-selected={this.selected ? 'true' : 'false'}\r\n aria-disabled={this.state === 'disabled' ? 'true' : 'false'}\r\n >\r\n <div class=\"content\">\r\n {this.type === 'icon_leading' && (\r\n <svg id=\"icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M5.48131 12.9013C4.30234 13.6034 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3334 6.32572 18.3334H13.6743C14.9621 18.3334 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6034 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.5\"\r\n />\r\n <path\r\n d=\"M13.75 5.41669C13.75 7.48776 12.0711 9.16669 10 9.16669C7.92893 9.16669 6.25 7.48776 6.25 5.41669C6.25 3.34562 7.92893 1.66669 10 1.66669C12.0711 1.66669 13.75 3.34562 13.75 5.41669Z\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.5\"\r\n />\r\n </svg>\r\n )}\r\n {this.type === 'avatar_leading' && (\r\n <gb-avatar class=\"avatar-icon\" size=\"xs\" color={this.color} text={true}>\r\n <slot name=\"initials\" slot=\"initials\"></slot>\r\n </gb-avatar>\r\n )}\r\n {this.type === 'dot_leading' && (\r\n <>\r\n {this.state === 'default' ? (\r\n <svg id=\"icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 10 10\" fill=\"none\">\r\n <circle cx=\"5\" cy=\"5\" r=\"4\" fill=\"#17B26A\" />\r\n </svg>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\">\r\n <circle cx=\"5\" cy=\"5\" r=\"4\" fill=\"#EEF2F6\" />\r\n </svg>\r\n )}\r\n </>\r\n )}\r\n {this.type === 'checkbox' && <gb-checkbox class=\"checkbox\" size=\"md\" type=\"checkbox\" state={this.state} checked={this.selected}></gb-checkbox>}\r\n <slot name=\"name\"></slot>\r\n {this.supportingText && (\r\n <span>\r\n <slot name=\"supporting_text\"></slot>\r\n </span>\r\n )}\r\n </div>\r\n {this.selected && this.type !== 'checkbox' && (\r\n <div class={`tick`}>\r\n {this.state !== 'disabled' ? (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" class={`tick ${this.state}`}>\r\n <path\r\n d=\"M4.16669 12.0834C4.16669 12.0834 5.41669 12.0834 7.08335 15C7.08335 15 11.7157 7.36115 15.8334 5.83337\"\r\n stroke=\"#075DB2\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16669 12.0834C4.16669 12.0834 5.41669 12.0834 7.08335 15C7.08335 15 11.7157 7.36115 15.8334 5.83337\"\r\n stroke=\"#CDD5DF\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n </div>\r\n );\r\n }\r\n}"]}
|
|
@@ -76,21 +76,21 @@ export class GbInputField {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h("div", { key: '
|
|
80
|
-
h("div", { key: '
|
|
79
|
+
return (h("div", { key: 'c89f20939df58d05152b94faa472f656f4cb59f6', class: `input_container` }, h("div", { key: '054f817c42a39a6936cf3d4c8cc6565c12550dbe', class: `input_with_label` }, this.showLabel && h("p", { key: 'c991624c50c1a622a4fe7b93f3b064f2cb405e86', class: "label text-sm-medium" }, this.label), this.type === 'default' && [
|
|
80
|
+
h("div", { key: '2906d120d51970b724a940d16568cda429c42136', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '7bd29b524631df7816b2671a5d527e8555e00414', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), h(Fragment, null, this.showValidation && (h("svg", { key: '5d473164d14f46bdc02b3a8d1c35bedfcbbc5f10', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'df043e1ef67f6f2570bf25bde45b530afa38dea5', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'b573f2e2189870e00ec84aa041fd5f345b512562', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
|
|
81
81
|
], this.type === 'icon_leading' && [
|
|
82
|
-
h("div", { key: '
|
|
82
|
+
h("div", { key: 'c96435a1e6e646038776b136ac5e741f974b428e', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'bd69680cec0906981e9540859d6087215f9508f5', class: `icon ${this.size} ${this.state}`, innerHTML: this.leadingIconSvg }), h("input", { key: '93d657fab94039fc2b4e6d728bd6934d1d84fc63', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '80e733deb4bd389d4ce65d7f310f31637a228695', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'a9ac27f34678641be5f953b8eec191e03eeaec85', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '26e9826d5dbefaefa4dace872bc26ddd66823e44', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), this.showCloseButton && !this.destructive && (h("gb-button", { key: '7a3fdce2069709db95daaf177ae310a61348ecb5', size: "sm", hierarchy: "tertiary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/cancel-01.svg" })))),
|
|
83
83
|
], this.type === 'leading_dropdown' && [
|
|
84
|
-
h("div", { key: '
|
|
85
|
-
h(Fragment, null, this.showDropdown && (h("div", { key: '
|
|
84
|
+
h("div", { key: 'eeda58f6123cc1096516dc81eb73b4fe32606dd8', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'e25d77a1fb3193e71c285184408ac4b6f3784286', class: `leading_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: 'cb9b34fb6d066654a4ac0eee694b5a20c5808b16', class: `country_icon` }, h("img", { key: '75a68e2b9bcc35ca1bcda368a47e1f6298e5dbbe', src: "build/assets/NG.svg", alt: "" })), h("div", { key: 'd2dd0f2faddd5a15b6ee6c225cd9312d9071a50a', class: `dropdown_text` }, h("p", { key: '7e6ca1034367cc2059d99356279c8d51f1a34da0', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: 'e667fd76a23a3f0f8c088e28a34157d792a9c99c', class: `dropdown_arrow` }, h("svg", { key: '97f452cefcd0b9718d3199c6b994ebcae808057c', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'e0cd92511c987d32c89ae9b444e395f38313ae2a', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: '66cb50680286ddd09c89d3969575e4ce67cc65e7', class: `leading_dropdown_text_input` }, h("input", { key: 'aa183ddf4153c7aea522c44511fd693996711c7d', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: 'd3f768974abdf00a1a53edf5acbf838333edb5fd', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '80c01be985866175eeae3bd51b59cd6498198d2c', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '9ee627972100b6e334a5b99f6dbed9bd1abc3893', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
|
|
85
|
+
h(Fragment, null, this.showDropdown && (h("div", { key: 'fe510e33a35d6d3bd0a810640816828b82ab55ab', class: `dropdown_menu ${this.type}` }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
|
|
86
86
|
], this.type === 'trailing_dropdown' && [
|
|
87
|
-
h("div", { key: '
|
|
88
|
-
h(Fragment, null, this.showDropdown && (h("div", { key: '
|
|
87
|
+
h("div", { key: '558f83ee927569c98138a8a7e198d9a22d988652', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'a078c0f1bd379d1f986af423066e91f46f694e35', class: `trailing_dropdown_content` }, h("p", { key: 'd53b7e0eba11684f9caa4e8cf969a8266e275fbf', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, "$"), h("input", { key: '5b2e9774ac19f1e9f1b5ea67b965ed4fe2a15828', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showHelpIcon && (h("div", { key: '42a86e653a86cc758c1a22be184d84b5d0b1926a', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: 'a132811f206e19984f50b8e101404ae89aa7acc3', class: `trailing_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: '0171c92babed691e214ed48d32656fb0601de171', class: `dropdown_text` }, h("p", { key: '9aafc42776e72c9bb9db9a8a4539c7491b9ea1f3', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: 'eb475b69a51d1097462f06d3559da4651426d242', class: `dropdown_arrow` }, h("svg", { key: '676a00fdd949d7711575f230be157619b047a801', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'bbdf389ac9d4a59edcf8466f0a02e6e97fa91455', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))),
|
|
88
|
+
h(Fragment, null, this.showDropdown && (h("div", { key: '4e3df8eb11ced41537afcda4c826dcb60df7f02c', class: `dropdown_menu ${this.type}` }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
|
|
89
89
|
], this.type === 'leading_text' && [
|
|
90
|
-
h("div", { key: '
|
|
91
|
-
], this.type === 'payment_input' && (h("div", { key: '012076c619d798b9bee5a53d6c88f89e6b6e8868', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: '4bda2fba5d02d936cb661f41d5f7b3320433c97e', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: '9af538fca9580c79e803dba8754c3c62fc4faafa', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C9.99493 12.8275 8.45902 13.43 6.78069 13.43C3.03582 13.43 0 10.4303 0 6.72997C0 3.02966 3.03582 0.0299683 6.78069 0.0299683C8.45902 0.0299683 9.99493 0.632466 11.179 1.63051C12.363 0.632466 13.8989 0.0299683 15.5773 0.0299683C19.3221 0.0299683 22.358 3.02966 22.358 6.72997C22.358 10.4303 19.3221 13.43 15.5773 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#ED0006" }), h("path", { key: 'a5cf7ae1109577d5f56e2dc10a66c4cf21cec5b1', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77192 13.5614 6.72997C13.5614 4.68801 12.6369 2.85941 11.179 1.63051C12.363 0.632465 13.8989 0.0299683 15.5772 0.0299683C19.3221 0.0299683 22.3579 3.02966 22.3579 6.72997C22.3579 10.4303 19.3221 13.43 15.5772 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#F9A000" }), h("path", { key: '3859e86e3df35a2606b7503a6ee1d348e4a85827', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77193 13.5614 6.72999C13.5614 4.68805 12.6369 2.85946 11.179 1.63055C9.72109 2.85946 8.79663 4.68805 8.79663 6.72999C8.79663 8.77193 9.72109 10.6005 11.179 11.8294Z", fill: "#FF5E00" })), h("input", { key: 'ae2919d6ace0ea841af803cfe386c7db003b550c', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: 'd220b4b7362d4c774c0b43cae2d1a49b3d6802c4', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'd3aab1e108837e92904b039607c0285ddea45556', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'd94cdb3b499b5d0d6d9904782c959fc93d602db4', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))))), this.type === 'trailing_button' && (h("div", { key: '3ce8a75b7a864868cd3411c378847b19d844036b', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '8ee5915ef86b0c07a814081fa7a3846c545cc453', class: `trailing_button_text_input` }, h("input", { key: '34c2eddf005d600726b14e671e90a195c15ee4ba', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '6f49246cd7bdab4d3c23f731cced91dae20d0ef8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'a42a56e9139151bdd89a16d030439c259e889dc3', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '99b98f23fd96ee5a73dc73093e731522e7a37992', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("gb-button", { key: '77d9abe881d35d88ddb8c30756004014f46b14bf', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg" }))), this.type === 'password' && (h("div", { key: 'ef5592beacc91e74b2b70c60bbb9da6a63585fe6', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'edb73762581756f5c0e1f45274d83dc7fc98e104', class: `password_content` }, h("input", { key: '06e5091ba578139e186cf47ec59d8d56e99d7366', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '9b23a526bccded56317bb16fae8d462131315edb', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '68680206d7cea273dcba4b2df4d96472de5e6f3b', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'a1a2f13e366b26831e65c73cdd72c9f66abad405', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: '6b06dfa3d56b8b36eb806f5cf3e3a6650ab827bb', class: `dropdown` }, h("gb-password-button", { key: 'aeb6a2ecffadf2a357cf322458e7eb8eda482b7b', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: '6e1375d244e1f8f709c4cc0cd3041745fda8a1a0', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '73c0ea1d183ab8414caebc7bd9ea63fb72610faa', class: `password_icon_leading_content` }, h("svg", { key: 'bbccdd86cb255deca91cdd171714b9a6bc62a014', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '82ba7a75cf5dc38f09e04154d07a2b8f290c5541', d: "M12.0759 12.1667C11.6617 12.1667 11.3259 12.5025 11.3259 12.9167C11.3259 13.3309 11.6617 13.6667 12.0759 13.6667V12.1667ZM12.0833 13.6667C12.4976 13.6667 12.8333 13.3309 12.8333 12.9167C12.8333 12.5025 12.4976 12.1667 12.0833 12.1667V13.6667ZM7.91668 12.1667C7.50246 12.1667 7.16668 12.5025 7.16668 12.9167C7.16668 13.3309 7.50246 13.6667 7.91668 13.6667V12.1667ZM7.92415 13.6667C8.33836 13.6667 8.67415 13.3309 8.67415 12.9167C8.67415 12.5025 8.33836 12.1667 7.92415 12.1667V13.6667ZM16.4435 10.1294L17.1868 10.0293L16.4435 10.1294ZM13.7003 7.58258L13.7347 6.83337L13.7003 7.58258ZM13.7003 18.2508L13.7347 19L13.7003 18.2508ZM16.4435 15.704L15.7002 15.6039L16.4435 15.704ZM6.29973 7.58258L6.33417 8.33179L6.29973 7.58258ZM3.55652 10.1294L2.81323 10.0293L3.55652 10.1294ZM6.29973 18.2508L6.33417 17.5015L6.29973 18.2508ZM3.55652 15.704L4.29981 15.6039L3.55652 15.704ZM5.50001 7.5C5.50001 7.91422 5.8358 8.25 6.25001 8.25C6.66422 8.25 7.00001 7.91422 7.00001 7.5H5.50001ZM13 7.5C13 7.91422 13.3358 8.25 13.75 8.25C14.1642 8.25 14.5 7.91422 14.5 7.5H13ZM12.0759 13.6667H12.0833V12.1667H12.0759V13.6667ZM7.91668 13.6667H7.92415V12.1667H7.91668V13.6667ZM10 17.5833C8.69057 17.5833 7.50287 17.5553 6.33417 17.5015L6.26528 19C7.45761 19.0548 8.66829 19.0833 10 19.0833V17.5833ZM13.6659 17.5015C12.4972 17.5553 11.3094 17.5833 10 17.5833V19.0833C11.3317 19.0833 12.5424 19.0548 13.7347 19L13.6659 17.5015ZM17.1868 15.804C17.3105 14.8853 17.4167 13.9152 17.4167 12.9167H15.9167C15.9167 13.8142 15.8211 14.7058 15.7002 15.6039L17.1868 15.804ZM17.4167 12.9167C17.4167 11.9181 17.3105 10.948 17.1868 10.0293L15.7002 10.2295C15.8211 11.1275 15.9167 12.0192 15.9167 12.9167H17.4167ZM10 8.25C11.3095 8.25 12.4972 8.27806 13.6659 8.33179L13.7347 6.83337C12.5424 6.77856 11.3317 6.75 10 6.75V8.25ZM6.33417 8.33179C7.50287 8.27806 8.69057 8.25 10 8.25V6.75C8.66829 6.75 7.45761 6.77856 6.26528 6.83337L6.33417 8.33179ZM2.81323 10.0293C2.68953 10.948 2.58334 11.9181 2.58334 12.9167H4.08334C4.08334 12.0192 4.1789 11.1275 4.29981 10.2295L2.81323 10.0293ZM2.58334 12.9167C2.58334 13.9152 2.68953 14.8853 2.81323 15.804L4.29981 15.6039C4.1789 14.7058 4.08334 13.8142 4.08334 12.9167H2.58334ZM17.1868 10.0293C16.9527 8.29067 15.5122 6.91509 13.7347 6.83337L13.6659 8.33179C14.6943 8.37907 15.5595 9.18437 15.7002 10.2295L17.1868 10.0293ZM13.7347 19C15.5122 18.9183 16.9527 17.5427 17.1868 15.804L15.7002 15.6039C15.5595 16.649 14.6943 17.4543 13.6659 17.5015L13.7347 19ZM6.26528 6.83337C4.48781 6.91508 3.04732 8.29067 2.81323 10.0293L4.29981 10.2295C4.44052 9.18437 5.30576 8.37907 6.33417 8.33179L6.26528 6.83337ZM6.33417 17.5015C5.30576 17.4543 4.44052 16.649 4.29981 15.6039L2.81323 15.804C3.04732 17.5427 4.48782 18.9183 6.26528 19L6.33417 17.5015ZM7.00001 7.5V5.41667H5.50001V7.5H7.00001ZM13 5.41667V7.5H14.5V5.41667H13ZM10 2.41667C11.6569 2.41667 13 3.75981 13 5.41667H14.5C14.5 2.93139 12.4853 0.916668 10 0.916668V2.41667ZM7.00001 5.41667C7.00001 3.75981 8.34316 2.41667 10 2.41667V0.916668C7.51473 0.916668 5.50001 2.93139 5.50001 5.41667H7.00001Z", fill: "#4B5565" })), h("input", { key: 'beedf83f7c94fa19b4225dbf1f601ca959e2bf07', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })), this.showValidation && !this.destructive && (h("svg", { key: '03ec9d55f5fcaad896349ca229036666474524bc', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '32d718d56238eeb884eeed99a69c189cb23e9f87', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'fd3150db23a0692ac608cf49fa342cc8b64c431d', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), h("gb-password-button", { key: '1b0ec1b8d91b08bd06b3b42efc46b3b846b5ce5b', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
|
|
92
|
-
h("div", { key: '
|
|
93
|
-
], this.type === 'tags' && (h("div", { key: '
|
|
90
|
+
h("div", { key: 'fd3cb48f61ac27baa814a4fcf5ec7ee9fd8ec8ac', class: "leading_text_input" }, h("div", { key: '9f52e0394ad688168d37dc4d07a3505ed142960f', class: `add_on` }, h("p", { key: '77990db1bed3bf7d1721faae9bee70a4438dd266', class: `text-md-regular`, style: { color: this.state === 'disabled' ? 'var(--color-text-disabled, #CDD5DF)' : 'var(--color-text, #4B5565)' } }, "http://")), h("div", { key: '738cf0173e1db0a9b9b008a3e106aeaac367546a', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: 'ffc16492a71dff698840796c3e09db945b749b69', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '6fd5cd646774073b30458b1eb975dd56f5bfccc6', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '41e14518504d4c06ccd36e3882d0f34e98f1ef62', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'de251025130fb1f7f0f2a002e3b7252f17979564', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
|
|
91
|
+
], this.type === 'payment_input' && (h("div", { key: 'c87a692b8f2c3ec39150883d2461b008d5e46872', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: 'bc4476f4e8c2099ee9b2dd188abca38557712bcf', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: '30862bef586507647baeda1b5ba2df64ccc5bf96', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C9.99493 12.8275 8.45902 13.43 6.78069 13.43C3.03582 13.43 0 10.4303 0 6.72997C0 3.02966 3.03582 0.0299683 6.78069 0.0299683C8.45902 0.0299683 9.99493 0.632466 11.179 1.63051C12.363 0.632466 13.8989 0.0299683 15.5773 0.0299683C19.3221 0.0299683 22.358 3.02966 22.358 6.72997C22.358 10.4303 19.3221 13.43 15.5773 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#ED0006" }), h("path", { key: '7ba05185b2e77dc9aa50474726ebf5fad248f237', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77192 13.5614 6.72997C13.5614 4.68801 12.6369 2.85941 11.179 1.63051C12.363 0.632465 13.8989 0.0299683 15.5772 0.0299683C19.3221 0.0299683 22.3579 3.02966 22.3579 6.72997C22.3579 10.4303 19.3221 13.43 15.5772 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#F9A000" }), h("path", { key: '14fad6fe6eb60f4efd7fc9a5ebb9f42f4519fa2f', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77193 13.5614 6.72999C13.5614 4.68805 12.6369 2.85946 11.179 1.63055C9.72109 2.85946 8.79663 4.68805 8.79663 6.72999C8.79663 8.77193 9.72109 10.6005 11.179 11.8294Z", fill: "#FF5E00" })), h("input", { key: '9a778abbcd4d38a21834427fd822159d1c80503e', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: 'ab14ec04738d9badc70cc21d6c8d1c1d8b150240', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '3835cffecabf1a4563823928436158e2971156d1', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '1584e86df9e448d30c33bd08f7101f2fdf39b542', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))))), this.type === 'trailing_button' && (h("div", { key: 'a2f3e2b515d03876edf879d2e016d755dfa50d6f', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '33404037eebc19cb904b2bef87c50c15496d3d04', class: `trailing_button_text_input` }, h("input", { key: '2d1725b551d5514099f4410261cf9492b3c438a6', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '555ea1f4b6a5151e1138a1d66eafb735c37772af', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'c01a036253224c6c7be21d838bfe16e299da5a25', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'bd19f3fdb4c7b58adc5555e3f9be399781ebe93f', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("gb-button", { key: '57d5e77e16a24c9e26bae1ac89cfc571575439de', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg" }))), this.type === 'password' && (h("div", { key: '8d48414c382ae01e3cbae1e73635f5e7b3fd5040', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '66fc3dac4c366c44b1de998c6921a9663facbad5', class: `password_content` }, h("input", { key: 'eb4e25bb10ff35de23343378df41a7fa8575a127', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: 'fdb4214f005449965458eb495077a99a8b2a6802', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'a69a9173d11c5baa07ffdecdd8e32a21ce290b2c', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '175b98323beea14d673dc5c088021bb811d51ba2', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: '4b113c24457aa76d28d8697abd443f485e09f75e', class: `dropdown` }, h("gb-password-button", { key: 'c1d2114a71558b4bd38fef5477df91af71cd1758', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: 'ec0709b794a121935a7c22b0a2494d97c754dbda', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '1aa191924bc859594478a466d7f74f4cec0cf735', class: `password_icon_leading_content` }, h("svg", { key: '6d02a0bca4610c65c653c52d0f6df4fb7b36c284', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '5d38545b4d452a9e53249a12e49af262ea0fda0f', d: "M12.0759 12.1667C11.6617 12.1667 11.3259 12.5025 11.3259 12.9167C11.3259 13.3309 11.6617 13.6667 12.0759 13.6667V12.1667ZM12.0833 13.6667C12.4976 13.6667 12.8333 13.3309 12.8333 12.9167C12.8333 12.5025 12.4976 12.1667 12.0833 12.1667V13.6667ZM7.91668 12.1667C7.50246 12.1667 7.16668 12.5025 7.16668 12.9167C7.16668 13.3309 7.50246 13.6667 7.91668 13.6667V12.1667ZM7.92415 13.6667C8.33836 13.6667 8.67415 13.3309 8.67415 12.9167C8.67415 12.5025 8.33836 12.1667 7.92415 12.1667V13.6667ZM16.4435 10.1294L17.1868 10.0293L16.4435 10.1294ZM13.7003 7.58258L13.7347 6.83337L13.7003 7.58258ZM13.7003 18.2508L13.7347 19L13.7003 18.2508ZM16.4435 15.704L15.7002 15.6039L16.4435 15.704ZM6.29973 7.58258L6.33417 8.33179L6.29973 7.58258ZM3.55652 10.1294L2.81323 10.0293L3.55652 10.1294ZM6.29973 18.2508L6.33417 17.5015L6.29973 18.2508ZM3.55652 15.704L4.29981 15.6039L3.55652 15.704ZM5.50001 7.5C5.50001 7.91422 5.8358 8.25 6.25001 8.25C6.66422 8.25 7.00001 7.91422 7.00001 7.5H5.50001ZM13 7.5C13 7.91422 13.3358 8.25 13.75 8.25C14.1642 8.25 14.5 7.91422 14.5 7.5H13ZM12.0759 13.6667H12.0833V12.1667H12.0759V13.6667ZM7.91668 13.6667H7.92415V12.1667H7.91668V13.6667ZM10 17.5833C8.69057 17.5833 7.50287 17.5553 6.33417 17.5015L6.26528 19C7.45761 19.0548 8.66829 19.0833 10 19.0833V17.5833ZM13.6659 17.5015C12.4972 17.5553 11.3094 17.5833 10 17.5833V19.0833C11.3317 19.0833 12.5424 19.0548 13.7347 19L13.6659 17.5015ZM17.1868 15.804C17.3105 14.8853 17.4167 13.9152 17.4167 12.9167H15.9167C15.9167 13.8142 15.8211 14.7058 15.7002 15.6039L17.1868 15.804ZM17.4167 12.9167C17.4167 11.9181 17.3105 10.948 17.1868 10.0293L15.7002 10.2295C15.8211 11.1275 15.9167 12.0192 15.9167 12.9167H17.4167ZM10 8.25C11.3095 8.25 12.4972 8.27806 13.6659 8.33179L13.7347 6.83337C12.5424 6.77856 11.3317 6.75 10 6.75V8.25ZM6.33417 8.33179C7.50287 8.27806 8.69057 8.25 10 8.25V6.75C8.66829 6.75 7.45761 6.77856 6.26528 6.83337L6.33417 8.33179ZM2.81323 10.0293C2.68953 10.948 2.58334 11.9181 2.58334 12.9167H4.08334C4.08334 12.0192 4.1789 11.1275 4.29981 10.2295L2.81323 10.0293ZM2.58334 12.9167C2.58334 13.9152 2.68953 14.8853 2.81323 15.804L4.29981 15.6039C4.1789 14.7058 4.08334 13.8142 4.08334 12.9167H2.58334ZM17.1868 10.0293C16.9527 8.29067 15.5122 6.91509 13.7347 6.83337L13.6659 8.33179C14.6943 8.37907 15.5595 9.18437 15.7002 10.2295L17.1868 10.0293ZM13.7347 19C15.5122 18.9183 16.9527 17.5427 17.1868 15.804L15.7002 15.6039C15.5595 16.649 14.6943 17.4543 13.6659 17.5015L13.7347 19ZM6.26528 6.83337C4.48781 6.91508 3.04732 8.29067 2.81323 10.0293L4.29981 10.2295C4.44052 9.18437 5.30576 8.37907 6.33417 8.33179L6.26528 6.83337ZM6.33417 17.5015C5.30576 17.4543 4.44052 16.649 4.29981 15.6039L2.81323 15.804C3.04732 17.5427 4.48782 18.9183 6.26528 19L6.33417 17.5015ZM7.00001 7.5V5.41667H5.50001V7.5H7.00001ZM13 5.41667V7.5H14.5V5.41667H13ZM10 2.41667C11.6569 2.41667 13 3.75981 13 5.41667H14.5C14.5 2.93139 12.4853 0.916668 10 0.916668V2.41667ZM7.00001 5.41667C7.00001 3.75981 8.34316 2.41667 10 2.41667V0.916668C7.51473 0.916668 5.50001 2.93139 5.50001 5.41667H7.00001Z", fill: "#4B5565" })), h("input", { key: 'ef6724da7d2487aa62156b3cdb5c181834819b19', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })), this.showValidation && !this.destructive && (h("svg", { key: 'aac4d31340020b7f8a35db7232be65c694357440', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'a13858ef8a8fc72ec4f80a873337164134deb2f4', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'a718c80994c69bff8fa33d7204240f24415cab07', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), h("gb-password-button", { key: 'f061802211cf9c7c458efd9fa105d6ab88023458', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
|
|
92
|
+
h("div", { key: '325e4020e0aeb9ca2d8b6fe498e882686610ac2c', class: `count_input` }, h("div", { key: '1e0ba3049f902bceda2feefbcd6cd4d42af972e5', class: `count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}` }, h("input", { key: 'f8890e5daeb891965ef38821472f6790ce1cf748', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showHelpIcon && (h("div", { key: '29e903728e392f03b3e3d89f97b5d6cb6e68c16e', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: '0b8c2a61c40599c690ce80c329cd03333ea038af', class: `action ${this.state}` }, h("gb-button", { key: '40fd4352710f31ee68e3adcab5fda3a45f71081c', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/minus_sign.svg" }), h("hr", { key: 'bc6023a601804fab940b79ced4a00f3c5bdc95a3' }), h("gb-button", { key: '5654dfe72233ca2d19277a2742b48d69f0d8abc3', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/plus_sign.svg" }))),
|
|
93
|
+
], this.type === 'tags' && (h("div", { key: '9bca6a4e516e1d3781246544ea18c9d52bdd0016', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'bc76294ca69cca4921eb0e6d2664e5d9cd8d321f', class: `tags_display` }), h("input", { key: '88bf02755c977b20bee8a6de1f4b8408f68f10fe', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })))), this.showHintText && h("p", { key: '27b7653a414be8bb7412521dbfd13850d1ad1bfd', class: "hint_text text-sm-regular" }, this.hintText)));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "gb-input-field"; }
|
|
96
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,10 +16,10 @@ export class GbMegaInputField {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: '30337e42a07643ce78fd9f2e5295abbe5de37d74', class: {
|
|
20
20
|
[this.size]: true,
|
|
21
21
|
disabled: this.state === 'disabled'
|
|
22
|
-
} }, h("input", { key: '
|
|
22
|
+
} }, h("input", { key: 'b2d55cdee54e0500e8d1589b4bf98ea77cc80fde', class: {
|
|
23
23
|
[this.size]: true,
|
|
24
24
|
disabled: this.state === 'disabled'
|
|
25
25
|
}, type: "number", min: "0", max: "1", placeholder: "0", value: this.inputValue, onInput: (event) => this.handleInput(event) })));
|
|
@@ -8,7 +8,7 @@ export class GbNotificationContent {
|
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
10
|
const iconSrc = getAssetPath(`${this.icon}`);
|
|
11
|
-
return (h("div", { key: '
|
|
11
|
+
return (h("div", { key: '3d917877f608431a748f56679dddafa8c23c18e5', class: "notification_container" }, h("div", { key: '2eb8e0d25cb6bf15ff567ba466c6121f08b91712', class: "notification_title" }, this.icon && (h("div", { key: '48f403ffa588a7d1ca43fc669454379ddda85e1b', class: "icon" }, h("img", { key: '8c23934353411e5df24b53e5ea95013f2c96fb1a', src: iconSrc, alt: "Icon" }))), h("label", { key: '4eb02d36238dd6d1d200d7ce0dac622cfe88319e' }, this.label), h("span", { key: 'f86defe938f9824ccfcac7e82a082c6b725581f4', class: "time" }, this.time)), h("div", { key: '15818cd9071193b7c9ed1e7e7cf4e88ca779999e', class: "supporting_text" }, h("p", { key: 'f1bf8041404810cd2e42b9a95e52a6e2a661a4af', class: "text-sm-regular" }, this.supportingText))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "gb-notification-content"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, getAssetPath } from "@stencil/core";
|
|
2
2
|
export class GbNotificationPane {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.state = undefined;
|
|
@@ -7,21 +7,6 @@ export class GbNotificationPane {
|
|
|
7
7
|
this.label = '';
|
|
8
8
|
this.time = '';
|
|
9
9
|
this.supportingText = '';
|
|
10
|
-
this.shadowRoot = null;
|
|
11
|
-
}
|
|
12
|
-
componentDidLoad() {
|
|
13
|
-
this.shadowRoot = this.shadowRoot;
|
|
14
|
-
}
|
|
15
|
-
handleSlotChange() {
|
|
16
|
-
const slot = this.getSlotContent();
|
|
17
|
-
this.notifications = slot ? Array.from(slot.assignedElements()) : [];
|
|
18
|
-
this.notifications.forEach(notification => {
|
|
19
|
-
notification.addEventListener('click', this.handleNotificationClick.bind(this, notification));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
getSlotContent() {
|
|
23
|
-
var _a;
|
|
24
|
-
return (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
25
10
|
}
|
|
26
11
|
markAllAsRead() {
|
|
27
12
|
this.notifications.forEach(notification => notification.remove());
|
|
@@ -30,10 +15,11 @@ export class GbNotificationPane {
|
|
|
30
15
|
notification.remove();
|
|
31
16
|
}
|
|
32
17
|
render() {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
h("div", { key: '
|
|
36
|
-
|
|
18
|
+
const illustrationSrc = getAssetPath(`assets/no_notification_frame.svg`);
|
|
19
|
+
return (h("div", { key: '05170cb88d1b88ee2b0da5578f0eb89c54c0db6f', class: "notification_pane_div" }, this.state === 'empty' && [
|
|
20
|
+
h("div", { key: '1cfe08bf709a5e384693f77a6970c303e19ad24f', class: `container` }, h("img", { key: 'ec01bedff4d3e05fa1d89239904a96d4cab9bfb3', src: illustrationSrc, alt: "" })),
|
|
21
|
+
h("div", { key: 'fcb3c6096fba60354533ccc44e3383c16e53c805', class: `button` }, h("gb-button", { key: 'd097ad0721082afbdb3aafabf90365d248c3a47e', size: "sm", hierarchy: "tertiary_color", icon: "default", state: "disabled", "icon-leading": true, "icon-leading-swap": "assets/blush_brush.svg" }, h("p", { key: '633d684939c9a3cc73a7de6cc11c6ef5f22fd831' }, "Mark all as read"))),
|
|
22
|
+
], this.state === 'notification_dropdown' && (h("div", { key: 'b81d9f71f311f56a177994c6cda6812bc07a8a31', class: "notification_dropdown" }, h("div", { key: 'e052061c046347ec27273f3e51f76461baaceb86', class: `content_wrapper` }, h("gb-notification-content", { key: '1e6a27847dd8d88a20ecd751220660655adf3781', label: this.label, time: this.time, "supporting-text": this.supportingText, icon: this.icon })), h("gb-button", { key: '71ba2818f824e9420311f469ffff093d9c8f7629', size: "sm", hierarchy: "tertiary_color", icon: "default", "icon-leading": true, "icon-leading-swap": "assets/blush_brush.svg" }, h("p", { key: '3548f9fad794b252c0265b9c05185dd3fd41c2e3' }, "Mark all as read"))))));
|
|
37
23
|
}
|
|
38
24
|
static get is() { return "gb-notification-pane"; }
|
|
39
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -156,14 +142,5 @@ export class GbNotificationPane {
|
|
|
156
142
|
}
|
|
157
143
|
};
|
|
158
144
|
}
|
|
159
|
-
static get listeners() {
|
|
160
|
-
return [{
|
|
161
|
-
"name": "slotchange",
|
|
162
|
-
"method": "handleSlotChange",
|
|
163
|
-
"target": undefined,
|
|
164
|
-
"capture": false,
|
|
165
|
-
"passive": false
|
|
166
|
-
}];
|
|
167
|
-
}
|
|
168
145
|
}
|
|
169
146
|
//# sourceMappingURL=gb-notification-pane.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-notification-pane.js","sourceRoot":"","sources":["../../../src/components/gb-notification-pane/gb-notification-pane.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"gb-notification-pane.js","sourceRoot":"","sources":["../../../src/components/gb-notification-pane/gb-notification-pane.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAOhE,MAAM,OAAO,kBAAkB;;;6BAEE,EAAE;oBACV,EAAE;qBACD,EAAE;oBACH,EAAE;8BACQ,EAAE;;IAEnC,aAAa;QACX,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAA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Url: 'gb-notification-pane.css',\r\n shadow: true,\r\n})\r\nexport class GbNotificationPane {\r\n @Prop() state: 'empty' | 'notification_dropdown';\r\n @Prop() notifications: any[] = [];\r\n @Prop() icon: string = '';\r\n @Prop() label: string = '';\r\n @Prop() time: string = '';\r\n @Prop() supportingText: string = '';\r\n\r\n markAllAsRead() {\r\n this.notifications.forEach(notification => notification.remove());\r\n }\r\n\r\n handleNotificationClick(notification: HTMLElement) {\r\n notification.remove();\r\n }\r\n\r\n render() {\r\n const illustrationSrc = getAssetPath(`assets/no_notification_frame.svg`);\r\n\r\n return (\r\n <div class=\"notification_pane_div\">\r\n {this.state === 'empty' && [\r\n <div class={`container`}>\r\n <img src={illustrationSrc} alt=\"\" />\r\n </div>,\r\n <div class={`button`}>\r\n <gb-button size=\"sm\" hierarchy=\"tertiary_color\" icon=\"default\" state=\"disabled\" icon-leading={true} icon-leading-swap=\"assets/blush_brush.svg\">\r\n <p>Mark all as read</p>\r\n </gb-button>\r\n </div>,\r\n ]}\r\n {this.state === 'notification_dropdown' && (\r\n <div class=\"notification_dropdown\">\r\n <div class={`content_wrapper`}>\r\n <gb-notification-content label={this.label} time={this.time} supporting-text={this.supportingText} icon={this.icon}></gb-notification-content>\r\n </div>\r\n <gb-button size=\"sm\" hierarchy=\"tertiary_color\" icon=\"default\" icon-leading={true} icon-leading-swap=\"assets/blush_brush.svg\">\r\n <p>Mark all as read</p>\r\n </gb-button>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
|
|
@@ -13,13 +13,17 @@ export class GbPagination {
|
|
|
13
13
|
this.entries = entries;
|
|
14
14
|
}
|
|
15
15
|
onPreviousButtonClicked() {
|
|
16
|
-
this.currentPage
|
|
16
|
+
if (this.currentPage === this.totalPages || this.currentPage > 1) {
|
|
17
|
+
this.currentPage = this.currentPage - 1;
|
|
18
|
+
}
|
|
17
19
|
}
|
|
18
20
|
onNextButtonClicked() {
|
|
19
|
-
this.currentPage
|
|
21
|
+
if (this.currentPage === 1 || this.currentPage <= this.totalPages - 1) {
|
|
22
|
+
this.currentPage = this.currentPage + 1;
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
25
|
render() {
|
|
22
|
-
return (h("div", { key: '4684fa562fe5e2f4f86271d5ce18f1884229a0d8', class: `pagination_div ${this.type} ${this.breakpoint}` }, this.type === 'page_default' && this.breakpoint === 'desktop' && (h(Fragment, null, h("gb-button", { key: '15c7ede49b975e4ca43935046be662944a8158f0', size: "sm", hierarchy: "tertiary_gray", icon: "default", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg" }, h("p", { key: '3fe495fd86314662b01d4f4620c9b2b7167d0cb9' }, "Previous")), h("gb-button", { key: '5cea7381c2d52d27ae262c13b1e75fa417b4e2aa', size: "sm", hierarchy: "tertiary_gray", icon: "default", state: "default", "icon-trailing": true, "icon-trailing-swap": "assets/arrow-right-02.svg" }, h("p", { key: '7f4887331de3f31a95df6ab8f2a313dff223a07a' }, "Next")))), this.type === 'page_minimal_center_aligned' && this.breakpoint === 'desktop' && (h(Fragment, null, h("gb-button", { key: 'dfb1ca3c57a3b9bae5b4b052265192316f7f2f63', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg" }, h("p", { key: 'c62445e2c6db609eed9c3a9fde2d1791c32fd470' }, "Previous")), h("gb-button", { key: 'ef31e2b1adf98e92a1346de3495d9b6faf01194a', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", "icon-trailing": true, "icon-trailing-swap": "assets/arrow-right-02.svg" }, h("p", { key: 'bccf9b126f79664716df9ff649f2e55d72800a7f' }, "Next")))), this.type === 'card_default' && this.breakpoint === 'desktop' && (h(Fragment, null, h("div", { key: '33bcf4d2de3890c46fa06ded26bbb6f6bcba8531', class: "entries" }, h("div", { key: '6bbc74ba48dd19c324c89c0d4596bf430dc90b09', class: "entries_text" }, h("p", { key: '70c4e7a63d2ff38b0232d25560f1a0d08da78929', class: `text-sm-medium` }, "Entries")), h("div", { key: '9712fe4bdf6564a4955674388c9c83de91665185', class: `entries_dropdown` }, h("gb-input-dropdown", { key: '5adfa0de928a7a3573d9ee96f1c617cc7d3ec081', type: "default", state: 'default', size: "sm", "show-label": false, "show-hint-text": false, "show-supporting-text": false, "show-hep-icon": false, items: this.entries }))), h("div", { key: 'e94186e43df5c39e5a53485a72bfc217b8bc4aa8', class: "pagination_numbers" }, h("gb-pagination-number-base", { key: 'fc561357023c41bf8471d2b19b420ba9c64a6245', shape: this.shape, state: this.currentPage === 1 ? 'active' : 'default' }, h("p", { key: '478c5c71718d54f24b6691f6a6e891d88a0789aa', slot: "page_number" }, "1")), h("gb-pagination-number-base", { key: 'c3d1d4ef47eebd6c01e9544b7487648361d53caf', shape: this.shape, state: this.currentPage === 2 ? 'active' : 'default' }, h("p", { key: '41f580df29da5626f66d7b16138bb6719e68c965', slot: "page_number" }, "2")), h("gb-pagination-number-base", { key: '23f8f752b326d1dc10f9ff0d11e22edf75289994', shape: this.shape, state: this.currentPage === 3 ? 'active' : 'default' }, h("p", { key: 'bc41d48b4e29877737028bd22808d438e4d8cab4', slot: "page_number" }, "3")), this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: '95f04bc4cc1172d585ff64f2134c0c1451b34311', shape: this.shape }, h("p", { key: '30f3ed0bb133765c744cd9d99c8ddffce182534a', slot: "page_number" }, "...")), this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: '034c35db4600b1a25082b28e5a79c7dd76a8e591', shape: this.shape, state: this.currentPage === this.totalPages - 2 ? 'active' : 'default' }, h("p", { key: '0ac1b8bd39deda6887ad42572123a120ef3baebd', slot: "page_number" }, this.totalPages - 2)), h("gb-pagination-number-base", { key: 'c670568042b5e6638a3a99ddf0abdf9abb601764', shape: this.shape, state: this.currentPage === this.totalPages - 1 ? 'active' : 'default' }, h("p", { key: 'd8cf34c77cc789608f74c7467b437245ab0ba33e', slot: "page_number" }, this.totalPages - 1)), h("gb-pagination-number-base", { key: '869db7798cefecef031b4f57f9f68e56a63ab122', shape: this.shape, state: this.currentPage === this.totalPages ? 'active' : 'default' }, h("p", { key: '4bea20988fa06fd5a3917d08577877d7c2c780c7', slot: "page_number" }, this.totalPages))), h("div", { key: 'acba46e910f5343abe9920618a77fd7dab313ba1', class: "buttons" }, h("gb-button", { key: '0c970ee8c3e37bad06d495ac9d22646b73b51a70', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg", onClick: () => this.onPreviousButtonClicked() }), h("gb-button", { key: '5e0f5145e3058345fb1d8ccdde86cc444537f120', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-right-02.svg", onClick: () => this.onNextButtonClicked() })))), this.type === 'page_default' && this.breakpoint === 'mobile' && (h(Fragment, null, h("gb-button", { key: '5bf870fcdda8701be89776fd46a805797f1571c4', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg" }), h("div", { key: '575efb157e065e7b44a6c06693045fa2943d7b3e', class: "page_number_text" }, h("p", { key: 'cbef1127788a15dfbefb8306c3a9679009c7a954', class: "text-sm-medium" }, "Page ", this.currentPage, " of ", this.totalPages)), h("gb-button", { key: 'c7a12f6da85acdca8ea43ae99309ed9208ca0581', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-right-02.svg" })))));
|
|
26
|
+
return (h("div", { key: '650fc82612fbab1ee0ee5492f5cb91092e626de8', class: `pagination_div ${this.type} ${this.breakpoint}` }, this.type === 'page_default' && this.breakpoint === 'desktop' && (h(Fragment, null, h("gb-button", { key: 'd5531744a07978f073502b6b7f0cc23dedd22ff8', size: "sm", hierarchy: "tertiary_gray", icon: "default", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg" }, h("p", { key: '3247d271bef8d606e4026b437aa60d4550b61820' }, "Previous")), h("div", { key: '6320e3f94ef47c06a71306e75574ce1ef8d37e33', class: "pagination_numbers" }, h("gb-pagination-number-base", { key: '68d8cd0f56ab5db51d9589c83fe8458cbb2215d5', shape: this.shape, state: this.currentPage === 1 ? 'active' : 'default' }, h("p", { key: 'e401b7adecb5300d5813c624c43d1f944d303c2a', slot: "page_number" }, "1")), h("gb-pagination-number-base", { key: '6f841fc39785b6c429eebf32daa86f5eb13b2a82', shape: this.shape, state: this.currentPage === 2 ? 'active' : 'default' }, h("p", { key: '8f1eb1ba381bc5819165bc1c39ad1b6121514c17', slot: "page_number" }, "2")), h("gb-pagination-number-base", { key: '783c5e3ae68bc66c88fdc427f1da81dcf6b2bdf5', shape: this.shape, state: this.currentPage === 3 ? 'active' : 'default' }, h("p", { key: '8a5c3ee79af35036d2c61ef66a6adbca9e414307', slot: "page_number" }, "3")), this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: '89ee5a25f868775a16449bb6d78d96072f178418', shape: this.shape }, h("p", { key: '05bfcd8c497015fb99b9b6de17063f3766f15cf2', slot: "page_number" }, "...")), this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: 'efd69e7bfa0bedc780130c190d5d7167092d93d1', shape: this.shape, state: this.currentPage === this.totalPages - 2 ? 'active' : 'default' }, h("p", { key: 'c1e92c533fb095939f5e5dc0be6ec325939f2f88', slot: "page_number" }, this.totalPages - 2)), h("gb-pagination-number-base", { key: 'cb12cdc820e3c2ee6424443b4aa716ad4ce1e37c', shape: this.shape, state: this.currentPage === this.totalPages - 1 ? 'active' : 'default' }, h("p", { key: '3e54b1503fbcc673ca10bbf04873a9fb638f1a71', slot: "page_number" }, this.totalPages - 1)), h("gb-pagination-number-base", { key: '249be9f9cdc66502469d07280d50cd2ff62b7d57', shape: this.shape, state: this.currentPage === this.totalPages ? 'active' : 'default' }, h("p", { key: '859d1b83f3d19dd4afafbdd62198b222fbc22f48', slot: "page_number" }, this.totalPages))), h("gb-button", { key: '44e55c8003a61baa3d3b958b0c6f3ee2168c2367', size: "sm", hierarchy: "tertiary_gray", icon: "default", state: "default", "icon-trailing": true, "icon-trailing-swap": "assets/arrow-right-02.svg" }, h("p", { key: '48bd29b3d7f29a54d505fa44df4e38b98496cd21' }, "Next")))), this.type === 'page_minimal_center_aligned' && this.breakpoint === 'desktop' && (h(Fragment, null, h("gb-button", { key: '5a8ced546ae48ea0361cf6922ac86703855c4a2b', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg" }, h("p", { key: 'a372d1959423bbdeaaa63ba630bc51cc79f3c8ce' }, "Previous")), h("div", { key: '371afe460f4f6a82d5ac3bca521ad0844257b057', class: "pagination_numbers" }, h("gb-pagination-number-base", { key: '97c5a0c3e306edab1cc8d0b441fac6407e01ccc6', shape: this.shape, state: this.currentPage === 1 ? 'active' : 'default' }, h("p", { key: '54fb840f9ca12bf69d774b38d354f04423bd02ea', slot: "page_number" }, "1")), h("gb-pagination-number-base", { key: '8e657ac69e953dc711a112c3b7d7c22a23a0a387', shape: this.shape, state: this.currentPage === 2 ? 'active' : 'default' }, h("p", { key: '89d2e9b1ef4855979bddf191ae512ac7f8d62a69', slot: "page_number" }, "2")), h("gb-pagination-number-base", { key: '283ecc9b8df94b83e36899b9f1597031b31bb085', shape: this.shape, state: this.currentPage === 3 ? 'active' : 'default' }, h("p", { key: '1cc46d67f59fd87d3160fa0123ac199272641a64', slot: "page_number" }, "3")), this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: 'dc8d3b4ea40084c9e07374ec9591c8754b5df7b6', shape: this.shape }, h("p", { key: '03442a7d095af3a01060496874c3923f66263b13', slot: "page_number" }, "...")), this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: '0ffc63224573362b0154a7fc1e9238dc95af35c0', shape: this.shape, state: this.currentPage === this.totalPages - 2 ? 'active' : 'default' }, h("p", { key: 'f6e67198f1ae32f5961b93d5669b72a8bada5be7', slot: "page_number" }, this.totalPages - 2)), h("gb-pagination-number-base", { key: '3717eb332cbad6a0546895cce0d32af6e450b7f2', shape: this.shape, state: this.currentPage === this.totalPages - 1 ? 'active' : 'default' }, h("p", { key: '56dafe1b89b37b5480681d4754ba07f3319b3816', slot: "page_number" }, this.totalPages - 1)), h("gb-pagination-number-base", { key: '805006f6bc673ccb35aa8e7397e15f9cbb09ecd0', shape: this.shape, state: this.currentPage === this.totalPages ? 'active' : 'default' }, h("p", { key: '75309e4289f28e5f2ce35de098532e1c37c60bab', slot: "page_number" }, this.totalPages))), h("gb-button", { key: 'dc3480b78e1238a1c23edcc2bbe81ba30739f923', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", "icon-trailing": true, "icon-trailing-swap": "assets/arrow-right-02.svg" }, h("p", { key: '49abd6ead533ae4ffb34f59ec931290136d81022' }, "Next")))), this.type === 'card_default' && this.breakpoint === 'desktop' && (h(Fragment, null, h("div", { key: 'f8a6da01d8723079f8164043d1dc90d1a35bd669', class: "entries" }, h("div", { key: 'fe02a3c1a4341d9d19b1229aa82cebe436101cb2', class: "entries_text" }, h("p", { key: '18df6d7daddf1ee179e5f32708bf491848a980ec', class: `text-sm-medium`, style: { color: 'var(--color-text, #4B5565)' } }, "Entries")), h("div", { key: 'a2baa5fee4a826ea0ec16cb4f196c6dd31343087', class: `entries_dropdown` }, h("gb-input-dropdown", { key: 'bb41bcd05dad5e5160cfbf2889a7a2c7dc35dac7', type: "default", state: 'default', size: "sm", "show-label": false, "show-hint-text": false, "show-supporting-text": false, "show-hep-icon": false, items: this.entries }))), h("div", { key: '9e2f103d64a4d9d13f682826173dc21d560b41c1', class: "pagination_numbers" }, h("gb-pagination-number-base", { key: 'be461b098e41c02b0e604342acbbc78c81270c49', shape: this.shape, state: this.currentPage === 1 ? 'active' : 'default' }, h("p", { key: 'b82859a971be4a80ef0b5780a016bccd2533ddf7', slot: "page_number" }, "1")), h("gb-pagination-number-base", { key: '6af3ed8c30047ceb8ce5523860545c4ba99b1bc0', shape: this.shape, state: this.currentPage === 2 ? 'active' : 'default' }, h("p", { key: 'd588236d403e877ccf1a0867ad20003d9bb98e8f', slot: "page_number" }, "2")), h("gb-pagination-number-base", { key: 'dd73c72d19e58b70ef8d3dbb6d590d2a2d289f28', shape: this.shape, state: this.currentPage === 3 ? 'active' : 'default' }, h("p", { key: '09ab5b01dc9066aea390faf077a629c1c5a6aa95', slot: "page_number" }, "3")), this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: 'f86939f7e2c746f8d3609647295bf3d72b1bb7b7', shape: this.shape }, h("p", { key: '783e266c3888f240fcf1aa07ad64e0250e0037f1', slot: "page_number" }, "...")), this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (h("gb-pagination-number-base", { shape: this.shape, state: this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default' }, h("p", { slot: "page_number" }, this.currentPage))) : null, h("gb-pagination-number-base", { key: '02c024e8c4fd0e7d7575d3a912ae4e0eb29ac6e4', shape: this.shape, state: this.currentPage === this.totalPages - 2 ? 'active' : 'default' }, h("p", { key: '88e824e6a7649c45e03efb6f7bf8d17f1697b323', slot: "page_number" }, this.totalPages - 2)), h("gb-pagination-number-base", { key: '867d83e080d69cd1d8e9caf7b20839a176981539', shape: this.shape, state: this.currentPage === this.totalPages - 1 ? 'active' : 'default' }, h("p", { key: '50133829eec3c66632cdb8ce8ffcefcc228e591f', slot: "page_number" }, this.totalPages - 1)), h("gb-pagination-number-base", { key: 'c447feaf90d58a1ed99171f43af479e28175b7c6', shape: this.shape, state: this.currentPage === this.totalPages ? 'active' : 'default' }, h("p", { key: '104ec88d2d7336ed7d4a189f228a2e83dee1eadb', slot: "page_number" }, this.totalPages))), h("div", { key: '49a8dc839a1ab6afd7cec8d9ff9720c35510513c', class: "buttons" }, h("gb-button", { key: '656d824fef849ddbf78dd4fedf409aaae6999d5d', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg", onClick: () => this.onPreviousButtonClicked() }), h("gb-button", { key: 'dd0f3eb3e92ef4a396fd9a94007ff29cffd3f10c', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-right-02.svg", onClick: () => this.onNextButtonClicked() })))), this.type === 'card_minimal_right_aligned' && this.breakpoint === 'desktop' && (h(Fragment, null, h("div", { key: 'e3f0f3d780fa08bf2edc1b560fa17af750e8375c', class: "entries" }, h("div", { key: 'cb6ab0466affb08f0b7941c81b843532c715d911', class: "entries_text" }, h("p", { key: '571d88c6b7caf80d33f7a7af1767f488017e566c', class: `text-sm-medium`, style: { color: 'var(--color-text, #4B5565)' } }, "Entries")), h("div", { key: 'a9b22350fbfa0cc921c68c8521e570b97a0f3f1f', class: `entries_dropdown` }, h("gb-input-dropdown", { key: '348d75e16630515a7d7d5fc6640128dd901ea10b', type: "default", state: 'default', size: "sm", "show-label": false, "show-hint-text": false, "show-supporting-text": false, "show-hep-icon": false, items: this.entries }))), h("div", { key: 'e13791db4502f10a7ee24ac0f9c4c4baea93d949', class: "page_number_text" }, h("p", { key: '31fce8275520e58a8c5daa49ca95a8c50c2ae8b5', class: "text-sm-medium" }, "Page ", this.currentPage, " of ", this.totalPages)), h("div", { key: 'b915fcc35bd8861329451964b47bca0e9497fdb8', class: "buttons" }, h("gb-button", { key: 'c25c3c84881133d5ca34df900828ecbca7422e21', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", onClick: () => this.onPreviousButtonClicked() }, h("p", { key: '7055d4856a2c25a57d0b5abab272add9ee2152a8' }, "Previous")), h("gb-button", { key: '1cd2f733752a37a08dd24b8a0e6e38747f3a8ee6', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", onClick: () => this.onNextButtonClicked() }, h("p", { key: 'cb0d9fc0d642d80976bf1750ad62fbf3739d66fc' }, "Next"))))), this.type === 'card_minimal_left_aligned' && this.breakpoint === 'desktop' && (h(Fragment, null, h("div", { key: '280968713e15331becaec3e18746ea6869770939', class: "buttons" }, h("gb-button", { key: '6abdf814110023af89d02b385f3d193dd4741c68', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", onClick: () => this.onPreviousButtonClicked() }, h("p", { key: 'f2c381a0664d2d38c7810ce25d55346d703fcc20' }, "Previous")), h("gb-button", { key: '51d6a2ab0e8c1ace04f3fe5fdce051c76e427f4d', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", onClick: () => this.onNextButtonClicked() }, h("p", { key: '84c411a49820b7097c74a63501f81d49a8e17180' }, "Next"))), h("div", { key: 'de580ee6b6a4d207dbcaec0d0395d72064ee4eff', class: "page_number_text" }, h("p", { key: '8ab6d0eae2a74fb7750c65f0afd27def6544b2e5', class: "text-sm-medium" }, "Page ", this.currentPage, " of ", this.totalPages)), h("div", { key: '1fc0d2333e988908132c912194972d0fa7bafd5d', class: "entries" }, h("div", { key: 'e7e4ef2798492bc089e33dabec4ed199ad770e4c', class: "entries_text" }, h("p", { key: '394205b70e91a06e28677e779cac70f8fa4cbc58', class: `text-sm-medium`, style: { color: 'var(--color-text, #4B5565)' } }, "Entries")), h("div", { key: 'b33ae0ac7a84dc213b46948708b6de471ed434cb', class: `entries_dropdown` }, h("gb-input-dropdown", { key: 'db2339b1e6b18b4329e213bff0e0097aafc3fee2', type: "default", state: 'default', size: "sm", "show-label": false, "show-hint-text": false, "show-supporting-text": false, "show-hep-icon": false, items: this.entries }))))), this.type === 'card_minimal_center_aligned' && this.breakpoint === 'desktop' && (h(Fragment, null, h("gb-button", { key: '8eca871aa92dc45fa36f4d31fd30840492e16b18', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", onClick: () => this.onPreviousButtonClicked() }, h("p", { key: 'cb5d2e94f18429aa9224d010db952c0cbbf037c0' }, "Previous")), h("div", { key: '12182d6453e5dc69ba2ed1353988c6200f105401', class: "page_number_text" }, h("p", { key: '099a061d81ba7d84f430977d03b5a6ac7c5f56a7', class: "text-sm-medium" }, "Page ", this.currentPage, " of ", this.totalPages)), h("gb-button", { key: '95888b5f14f2a58f0bdbf9a703b9e8b0e3a4bd6b', size: "sm", hierarchy: "secondary_gray", icon: "default", state: "default", onClick: () => this.onNextButtonClicked() }, h("p", { key: '801424db897728c7aa67d477ca76616aab175b6b' }, "Next")))), this.type === 'page_default' && this.breakpoint === 'mobile' && (h(Fragment, null, h("gb-button", { key: '26d671322e88536a338b3763559f138fa9352185', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg" }), h("div", { key: '03bd169dbe8786d75c58233fa20a1ade9fb7474d', class: "page_number_text" }, h("p", { key: 'b0efc91924a6b6c184e8710052cd122263e49e27', class: "text-sm-medium" }, "Page ", this.currentPage, " of ", this.totalPages)), h("gb-button", { key: '0016b96618b80ea118d27a9d50b9833d1f5d3898', size: "sm", hierarchy: "secondary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-right-02.svg" })))));
|
|
23
27
|
}
|
|
24
28
|
static get is() { return "gb-pagination"; }
|
|
25
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -140,7 +144,7 @@ export class GbPagination {
|
|
|
140
144
|
},
|
|
141
145
|
"entries": {
|
|
142
146
|
"type": "unknown",
|
|
143
|
-
"mutable":
|
|
147
|
+
"mutable": true,
|
|
144
148
|
"complexType": {
|
|
145
149
|
"original": "any[]",
|
|
146
150
|
"resolved": "any[]",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-pagination.js","sourceRoot":"","sources":["../../../src/components/gb-pagination/gb-pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQ7D,MAAM,OAAO,YAAY;;;;;;;uBAME,EAAE;;IAE3B,gBAAgB;QACd,MAAM,OAAO,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAEpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,uBAAuB;QACrB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED,mBAAmB;QACjB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM;QACJ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C1B,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,SAAS,kBACD,IAAI,uBACA,0BAA0B,EAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,uBAAuB,EAAE,GAClC;oBACb,kEACE,IAAI,EAAC,IAAI,EACT,SAAS,EAAC,gBAAgB,EAC1B,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,SAAS,kBACD,IAAI,uBACA,2BAA2B,EAC7C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,GAC9B,CACT,CACL,CACJ;YAGA,IAAI,CAAC,IAAI,KAAK,cAAc,IAAI,IAAI,CAAC,UAAU,KAAK,QAAQ,IAAI,CAC/D;gBACE,kEAAW,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,kBAAe,IAAI,uBAAoB,0BAA0B,GAAa;gBACzJ,4DAAK,KAAK,EAAC,kBAAkB;oBAC3B,0DAAG,KAAK,EAAC,gBAAgB;;wBACjB,IAAI,CAAC,WAAW;;wBAAM,IAAI,CAAC,UAAU,CACzC,CACA;gBACN,kEAAW,IAAI,EAAC,IAAI,EAAC,SAAS,EAAC,gBAAgB,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,kBAAe,IAAI,uBAAoB,2BAA2B,GAAa,CACzJ,CACJ,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment } from \"@stencil/core\";\r\nimport { BreakPoints, PaginationNumberShapes, PaginationTypes } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-pagination',\r\n styleUrl: 'gb-pagination.css',\r\n shadow: true,\r\n})\r\nexport class GbPagination {\r\n @Prop() type: PaginationTypes;\r\n @Prop() shape: PaginationNumberShapes;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() currentPage: number;\r\n @Prop() totalPages: number;\r\n @Prop() entries: any[] = [];\r\n\r\n componentDidLoad() {\r\n const entries = [5, 10, 20, 50, 80];\r\n\r\n this.entries = entries;\r\n }\r\n\r\n onPreviousButtonClicked() {\r\n this.currentPage = this.currentPage - 1;\r\n }\r\n\r\n onNextButtonClicked() {\r\n this.currentPage = this.currentPage + 1;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`pagination_div ${this.type} ${this.breakpoint}`}>\r\n {/* Desktop Breakpoint Pagination */}\r\n {this.type === 'page_default' && this.breakpoint === 'desktop' && (\r\n <>\r\n <gb-button size=\"sm\" hierarchy=\"tertiary_gray\" icon=\"default\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-left-02.svg\">\r\n <p>Previous</p>\r\n </gb-button>\r\n\r\n {/* <div class=\"page_default_numbers\">\r\n <gb-pagination-number-base shape={this.shape}></gb-pagination-number-base>\r\n </div> */}\r\n\r\n <gb-button size=\"sm\" hierarchy=\"tertiary_gray\" icon=\"default\" state=\"default\" icon-trailing={true} icon-trailing-swap=\"assets/arrow-right-02.svg\">\r\n <p>Next</p>\r\n </gb-button>\r\n </>\r\n )}\r\n {this.type === 'page_minimal_center_aligned' && this.breakpoint === 'desktop' && (\r\n <>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-left-02.svg\">\r\n <p>Previous</p>\r\n </gb-button>\r\n\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" icon-trailing={true} icon-trailing-swap=\"assets/arrow-right-02.svg\">\r\n <p>Next</p>\r\n </gb-button>\r\n </>\r\n )}\r\n {this.type === 'card_default' && this.breakpoint === 'desktop' && (\r\n <>\r\n <div class=\"entries\">\r\n <div class=\"entries_text\">\r\n <p class={`text-sm-medium`}>Entries</p>\r\n </div>\r\n <div class={`entries_dropdown`}>\r\n <gb-input-dropdown\r\n type=\"default\"\r\n state={'default'}\r\n size=\"sm\"\r\n show-label={false}\r\n show-hint-text={false}\r\n show-supporting-text={false}\r\n show-hep-icon={false}\r\n items={this.entries}\r\n ></gb-input-dropdown>\r\n </div>\r\n </div>\r\n <div class=\"pagination_numbers\">\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">1</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">2</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 3 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">3</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape}>\r\n <p slot=\"page_number\">...</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 2}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 1}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages}</p>\r\n </gb-pagination-number-base>\r\n </div>\r\n <div class=\"buttons\">\r\n <gb-button\r\n size=\"sm\"\r\n hierarchy=\"secondary_gray\"\r\n icon=\"only\"\r\n state=\"default\"\r\n icon-leading={true}\r\n icon-leading-swap=\"assets/arrow-left-02.svg\"\r\n onClick={() => this.onPreviousButtonClicked()}\r\n ></gb-button>\r\n <gb-button\r\n size=\"sm\"\r\n hierarchy=\"secondary_gray\"\r\n icon=\"only\"\r\n state=\"default\"\r\n icon-leading={true}\r\n icon-leading-swap=\"assets/arrow-right-02.svg\"\r\n onClick={() => this.onNextButtonClicked()}\r\n ></gb-button>\r\n </div>\r\n </>\r\n )}\r\n\r\n {/* Mobile Breakpoint Pagination */}\r\n {this.type === 'page_default' && this.breakpoint === 'mobile' && (\r\n <>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"only\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-left-02.svg\"></gb-button>\r\n <div class=\"page_number_text\">\r\n <p class=\"text-sm-medium\">\r\n Page {this.currentPage} of {this.totalPages}\r\n </p>\r\n </div>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"only\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-right-02.svg\"></gb-button>\r\n </>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
|
|
1
|
+
{"version":3,"file":"gb-pagination.js","sourceRoot":"","sources":["../../../src/components/gb-pagination/gb-pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQ7D,MAAM,OAAO,YAAY;;;;;;;uBAMmB,EAAE;;IAE5C,gBAAgB;QACd,MAAM,OAAO,GAA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B,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,kBAAe,IAAI,uBAAoB,2BAA2B,GAAa,CACzJ,CACJ,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment } from \"@stencil/core\";\r\nimport { BreakPoints, PaginationNumberShapes, PaginationTypes } from \"../../models/reusableModels\";\r\n\r\n@Component({\r\n tag: 'gb-pagination',\r\n styleUrl: 'gb-pagination.css',\r\n shadow: true,\r\n})\r\nexport class GbPagination {\r\n @Prop() type: PaginationTypes;\r\n @Prop() shape: PaginationNumberShapes;\r\n @Prop() breakpoint: BreakPoints;\r\n @Prop() currentPage: number;\r\n @Prop() totalPages: number;\r\n @Prop({ mutable: true }) entries: any[] = [];\r\n\r\n componentDidLoad() {\r\n const entries = [5, 10, 20, 50, 80];\r\n\r\n this.entries = entries;\r\n }\r\n\r\n onPreviousButtonClicked() {\r\n if(this.currentPage === this.totalPages || this.currentPage > 1) {\r\n this.currentPage = this.currentPage - 1;\r\n }\r\n }\r\n\r\n onNextButtonClicked() {\r\n if(this.currentPage === 1 || this.currentPage <= this.totalPages - 1) {\r\n this.currentPage = this.currentPage + 1;\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`pagination_div ${this.type} ${this.breakpoint}`}>\r\n {/* Desktop Breakpoint Pagination */}\r\n {this.type === 'page_default' && this.breakpoint === 'desktop' && (\r\n <>\r\n <gb-button size=\"sm\" hierarchy=\"tertiary_gray\" icon=\"default\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-left-02.svg\">\r\n <p>Previous</p>\r\n </gb-button>\r\n\r\n <div class=\"pagination_numbers\">\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">1</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">2</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 3 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">3</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape}>\r\n <p slot=\"page_number\">...</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 2}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 1}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages}</p>\r\n </gb-pagination-number-base>\r\n </div>\r\n\r\n <gb-button size=\"sm\" hierarchy=\"tertiary_gray\" icon=\"default\" state=\"default\" icon-trailing={true} icon-trailing-swap=\"assets/arrow-right-02.svg\">\r\n <p>Next</p>\r\n </gb-button>\r\n </>\r\n )}\r\n {this.type === 'page_minimal_center_aligned' && this.breakpoint === 'desktop' && (\r\n <>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-left-02.svg\">\r\n <p>Previous</p>\r\n </gb-button>\r\n\r\n <div class=\"pagination_numbers\">\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">1</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">2</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 3 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">3</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape}>\r\n <p slot=\"page_number\">...</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 2}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 1}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages}</p>\r\n </gb-pagination-number-base>\r\n </div>\r\n\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" icon-trailing={true} icon-trailing-swap=\"assets/arrow-right-02.svg\">\r\n <p>Next</p>\r\n </gb-button>\r\n </>\r\n )}\r\n {this.type === 'card_default' && this.breakpoint === 'desktop' && (\r\n <>\r\n <div class=\"entries\">\r\n <div class=\"entries_text\">\r\n <p class={`text-sm-medium`} style={{ color: 'var(--color-text, #4B5565)' }}>\r\n Entries\r\n </p>\r\n </div>\r\n <div class={`entries_dropdown`}>\r\n <gb-input-dropdown\r\n type=\"default\"\r\n state={'default'}\r\n size=\"sm\"\r\n show-label={false}\r\n show-hint-text={false}\r\n show-supporting-text={false}\r\n show-hep-icon={false}\r\n items={this.entries}\r\n ></gb-input-dropdown>\r\n </div>\r\n </div>\r\n <div class=\"pagination_numbers\">\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">1</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">2</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === 3 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">3</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > 3 && this.currentPage <= this.totalPages / 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape}>\r\n <p slot=\"page_number\">...</p>\r\n </gb-pagination-number-base>\r\n {this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages - 2 ? (\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage > this.totalPages / 2 && this.currentPage < this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.currentPage}</p>\r\n </gb-pagination-number-base>\r\n ) : null}\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 2 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 2}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages - 1 ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages - 1}</p>\r\n </gb-pagination-number-base>\r\n <gb-pagination-number-base shape={this.shape} state={this.currentPage === this.totalPages ? 'active' : 'default'}>\r\n <p slot=\"page_number\">{this.totalPages}</p>\r\n </gb-pagination-number-base>\r\n </div>\r\n <div class=\"buttons\">\r\n <gb-button\r\n size=\"sm\"\r\n hierarchy=\"secondary_gray\"\r\n icon=\"only\"\r\n state=\"default\"\r\n icon-leading={true}\r\n icon-leading-swap=\"assets/arrow-left-02.svg\"\r\n onClick={() => this.onPreviousButtonClicked()}\r\n ></gb-button>\r\n <gb-button\r\n size=\"sm\"\r\n hierarchy=\"secondary_gray\"\r\n icon=\"only\"\r\n state=\"default\"\r\n icon-leading={true}\r\n icon-leading-swap=\"assets/arrow-right-02.svg\"\r\n onClick={() => this.onNextButtonClicked()}\r\n ></gb-button>\r\n </div>\r\n </>\r\n )}\r\n {this.type === 'card_minimal_right_aligned' && this.breakpoint === 'desktop' && (\r\n <>\r\n <div class=\"entries\">\r\n <div class=\"entries_text\">\r\n <p class={`text-sm-medium`} style={{ color: 'var(--color-text, #4B5565)' }}>\r\n Entries\r\n </p>\r\n </div>\r\n <div class={`entries_dropdown`}>\r\n <gb-input-dropdown\r\n type=\"default\"\r\n state={'default'}\r\n size=\"sm\"\r\n show-label={false}\r\n show-hint-text={false}\r\n show-supporting-text={false}\r\n show-hep-icon={false}\r\n items={this.entries}\r\n ></gb-input-dropdown>\r\n </div>\r\n </div>\r\n <div class=\"page_number_text\">\r\n <p class=\"text-sm-medium\">\r\n Page {this.currentPage} of {this.totalPages}\r\n </p>\r\n </div>\r\n <div class=\"buttons\">\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" onClick={() => this.onPreviousButtonClicked()}>\r\n <p>Previous</p>\r\n </gb-button>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" onClick={() => this.onNextButtonClicked()}>\r\n <p>Next</p>\r\n </gb-button>\r\n </div>\r\n </>\r\n )}\r\n {this.type === 'card_minimal_left_aligned' && this.breakpoint === 'desktop' && (\r\n <>\r\n <div class=\"buttons\">\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" onClick={() => this.onPreviousButtonClicked()}>\r\n <p>Previous</p>\r\n </gb-button>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" onClick={() => this.onNextButtonClicked()}>\r\n <p>Next</p>\r\n </gb-button>\r\n </div>\r\n <div class=\"page_number_text\">\r\n <p class=\"text-sm-medium\">\r\n Page {this.currentPage} of {this.totalPages}\r\n </p>\r\n </div>\r\n <div class=\"entries\">\r\n <div class=\"entries_text\">\r\n <p class={`text-sm-medium`} style={{ color: 'var(--color-text, #4B5565)' }}>\r\n Entries\r\n </p>\r\n </div>\r\n <div class={`entries_dropdown`}>\r\n <gb-input-dropdown\r\n type=\"default\"\r\n state={'default'}\r\n size=\"sm\"\r\n show-label={false}\r\n show-hint-text={false}\r\n show-supporting-text={false}\r\n show-hep-icon={false}\r\n items={this.entries}\r\n ></gb-input-dropdown>\r\n </div>\r\n </div>\r\n </>\r\n )}\r\n {this.type === 'card_minimal_center_aligned' && this.breakpoint === 'desktop' && (\r\n <>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" onClick={() => this.onPreviousButtonClicked()}>\r\n <p>Previous</p>\r\n </gb-button>\r\n <div class=\"page_number_text\">\r\n <p class=\"text-sm-medium\">\r\n Page {this.currentPage} of {this.totalPages}\r\n </p>\r\n </div>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"default\" state=\"default\" onClick={() => this.onNextButtonClicked()}>\r\n <p>Next</p>\r\n </gb-button>\r\n </>\r\n )}\r\n {/* Mobile Breakpoint Pagination */}\r\n {this.type === 'page_default' && this.breakpoint === 'mobile' && (\r\n <>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"only\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-left-02.svg\"></gb-button>\r\n <div class=\"page_number_text\">\r\n <p class=\"text-sm-medium\">\r\n Page {this.currentPage} of {this.totalPages}\r\n </p>\r\n </div>\r\n <gb-button size=\"sm\" hierarchy=\"secondary_gray\" icon=\"only\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-right-02.svg\"></gb-button>\r\n </>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
|
|
@@ -12,7 +12,7 @@ export class GbPaginationButtonGroupBase {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h("div", { key: '
|
|
15
|
+
return (h("div", { key: '997b0921cfa9f8fa06b56224cd0f3f5854a0acad', class: `button_base_div ${this.icon}` }, this.icon === 'false' && h("slot", { key: 'fc3a4ae74e6b4bd87eb32f16bcf1c8f1a0464dce' }), this.icon === 'leading' && (h(Fragment, null, h("svg", { key: '9ac027dde53ce5c6d2739b09a894f94867837910', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '65f36f6e7cbea22b177f18520d48d2bb637823f6', d: "M3.33325 9.99981H16.6666M3.33325 9.99981C3.33326 11.0978 7.49975 14.1667 7.49975 14.1667M3.33325 9.99981C3.33324 8.90182 7.49978 5.83334 7.49978 5.83334", stroke: "#4B5565", "stroke-width": "1.67", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("slot", { key: '51006c608e91e42e52c375d565dfec6c1ec5d214' }))), this.icon === 'trailing' && (h(Fragment, null, h("slot", { key: '8935bfed628cf2132a404fdc0ec4d3b1466f949e' }), this.iconTrailing && (h("svg", { key: 'f6455437fe34c933fe3b70ba84bf19058609e0a3', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '01d577bb7939c0c7f2b950839447d81213531c1c', d: "M16.6668 9.99984H3.3335M16.6668 9.99984C16.6668 11.0978 12.5003 14.1667 12.5003 14.1667M16.6668 9.99984C16.6669 8.90185 12.5002 5.83337 12.5002 5.83337", stroke: "#4B5565", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })))))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "gb-pagination-button-group-base"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js
CHANGED
|
@@ -6,7 +6,7 @@ export class GbPaginationDotIndicator {
|
|
|
6
6
|
this.size = undefined;
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return h("div", { key: '
|
|
9
|
+
return h("div", { key: '29e7a4655a418fd5dcc10fd1dc895b91db3a7472', class: `dot_indicator_div
|
|
10
10
|
${this.type} ${this.current ? 'current' : ''}
|
|
11
11
|
${this.size}` });
|
|
12
12
|
}
|