globuswebcomponents 1.0.8 → 1.1.0
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-group.cjs.entry.js +1 -1
- package/dist/cjs/gb-avatar-label-group.cjs.entry.js +1 -1
- package/dist/cjs/gb-avatar-profile-photo.cjs.entry.js +1 -1
- package/dist/cjs/{gb-avatar_25.cjs.entry.js → gb-avatar_20.cjs.entry.js} +163 -625
- package/dist/cjs/gb-avatar_20.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-badge_2.cjs.entry.js +111 -0
- package/dist/cjs/gb-badge_2.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-button-close_3.cjs.entry.js +3 -3
- package/dist/cjs/gb-carousel-arrow.cjs.entry.js +1 -1
- 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-collapse-button_4.cjs.entry.js +158 -0
- package/dist/cjs/gb-collapse-button_4.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/gb-export-dropdown-item_2.cjs.entry.js +2 -2
- package/dist/cjs/gb-export-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gb-export-sub-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/gb-file-upload-item-base.cjs.entry.js +1 -1
- package/dist/cjs/gb-file-upload.cjs.entry.js +12 -12
- package/dist/cjs/gb-header-icon.cjs.entry.js +4 -4
- package/dist/cjs/gb-header.cjs.entry.js +1 -1
- package/dist/cjs/gb-help-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gb-horizontal-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gb-notification-content.cjs.entry.js +1 -1
- package/dist/cjs/gb-notification-pane.cjs.entry.js +3 -3
- package/dist/cjs/gb-pagination-button-group-base_2.cjs.entry.js +2 -2
- package/dist/cjs/gb-pagination-dot-group.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination-dot-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination.cjs.entry.js +4 -3
- package/dist/cjs/gb-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
- package/dist/cjs/gb-scrollbar.cjs.entry.js +1 -1
- package/dist/cjs/gb-sidebar.cjs.entry.js +123 -0
- package/dist/cjs/gb-sidebar.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-slider-control-handle.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider.cjs.entry.js +1 -1
- package/dist/cjs/gb-tab-button-base.cjs.entry.js +3 -3
- package/dist/cjs/gb-table-cell.cjs.entry.js +23 -0
- package/dist/cjs/gb-table-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-textarea-input-field.cjs.entry.js +218 -0
- package/dist/cjs/gb-textarea-input-field.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-toast-button.cjs.entry.js +1 -1
- package/dist/cjs/gb-toast.cjs.entry.js +8 -4
- package/dist/cjs/gb-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/gb-toggle-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gb-vertical-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +8 -12
- package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/globuscomponents.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/reusableModels-e50f3440.js.map +1 -1
- package/dist/cjs/test-input-tag.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/gb-avatar/gb-avatar.js +2 -2
- package/dist/collection/components/gb-avatar-add-button/gb-avatar-add-button.js +1 -1
- package/dist/collection/components/gb-avatar-contrast-inner-border/gb-avatar-contrast-inner-border.js +1 -1
- package/dist/collection/components/gb-avatar-group/gb-avatar-group.js +1 -1
- package/dist/collection/components/gb-avatar-label-group/gb-avatar-label-group.js +1 -1
- package/dist/collection/components/gb-avatar-profile-photo/gb-avatar-profile-photo.js +1 -1
- package/dist/collection/components/gb-badge/gb-badge.js +1 -1
- package/dist/collection/components/gb-badge-close/gb-badge-close.js +1 -1
- package/dist/collection/components/gb-btn/gb-btn.js +1 -1
- package/dist/collection/components/gb-button/gb-button.js +1 -1
- package/dist/collection/components/gb-button/readme.md +50 -48
- package/dist/collection/components/gb-button-close/gb-button-close.js +1 -1
- package/dist/collection/components/gb-carousel-arrow/gb-carousel-arrow.js +1 -1
- package/dist/collection/components/gb-checkbox/gb-checkbox.js +1 -1
- package/dist/collection/components/gb-checkbox-base/gb-checkbox-base.js +1 -1
- package/dist/collection/components/gb-checkbox-group/gb-checkbox-group.js +1 -1
- package/dist/collection/components/gb-checkbox-group-item/gb-checkbox-group-item.js +1 -1
- package/dist/collection/components/gb-collapse-button/gb-collapse-button.js +3 -3
- package/dist/collection/components/gb-complex-primary-side-bar-item/gb-complex-primary-side-bar-item.js +1 -1
- package/dist/collection/components/gb-complex-secondary-side-bar-item/gb-complex-secondary-side-bar-item.js +1 -1
- package/dist/collection/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.js +1 -1
- package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.js +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.js +1 -1
- package/dist/collection/components/gb-export-sub-dropdown-item/gb-export-sub-dropdown-item.js +1 -1
- package/dist/collection/components/gb-file-type-icon/gb-file-type-icon.js +1 -1
- package/dist/collection/components/gb-file-upload/gb-file-upload.js +12 -12
- 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.js +1 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +19 -13
- 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.js +2 -2
- package/dist/collection/components/gb-input-field/gb-input-field.js +66 -68
- package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
- package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js +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 +3 -3
- package/dist/collection/components/gb-pagination/gb-pagination.js +4 -3
- 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-group/gb-pagination-dot-group.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-scrollbar/gb-scrollbar.js +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +1 -1
- package/dist/collection/components/gb-simple-side-bar-item/gb-simple-side-bar-item.js +1 -1
- package/dist/collection/components/gb-slider/gb-slider.js +1 -1
- package/dist/collection/components/gb-slider-control-handle/gb-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-table-cell/gb-table-cell.css +0 -0
- package/dist/collection/components/gb-table-cell/gb-table-cell.js +49 -0
- package/dist/collection/components/gb-table-cell/gb-table-cell.js.map +1 -0
- 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-textarea-input-field/gb-textarea-input-field.css +1 -0
- package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.js +56 -18
- package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.js.map +1 -1
- package/dist/collection/components/gb-toast/gb-toast.js +8 -4
- package/dist/collection/components/gb-toast/gb-toast.js.map +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/collection/components/gb-vertical-tabs/gb-vertical-tabs.js +1 -1
- package/dist/collection/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.css +0 -0
- package/dist/collection/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.js +80 -0
- package/dist/collection/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.js.map +1 -0
- package/dist/collection/components/test-input-tag/test-input-tag.js +2 -2
- package/dist/collection/models/reusableModels.js +0 -1
- package/dist/collection/models/reusableModels.js.map +1 -1
- package/dist/components/gb-avatar-add-button.js +1 -1
- package/dist/components/gb-avatar-contrast-inner-border.js +1 -1
- package/dist/components/gb-avatar-dropdown.js +7 -7
- 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-complex-primary-side-bar-item.js +1 -1
- package/dist/components/gb-complex-secondary-side-bar-item.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 +4 -4
- package/dist/components/gb-export-sub-dropdown-item.js +1 -1
- package/dist/components/gb-export-sub-dropdown.js +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 +18 -18
- package/dist/components/gb-header-icon.js +1 -1
- package/dist/components/gb-header.js +5 -5
- package/dist/components/gb-help-dropdown.js +4 -4
- package/dist/components/gb-help-tooltip.js +1 -1
- package/dist/components/gb-horizontal-tabs.js +7 -7
- 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 +1 -1
- package/dist/components/gb-megainput-field.js +1 -1
- package/dist/components/gb-notification-content.js +1 -1
- package/dist/components/gb-notification-pane.js +5 -5
- package/dist/components/gb-pagination-button-group-base.js +1 -1
- package/dist/components/gb-pagination-dot-group.js +1 -1
- package/dist/components/gb-pagination-dot-indicator.js +1 -1
- package/dist/components/gb-pagination-number-base.js +1 -1
- package/dist/components/gb-pagination.js +23 -22
- 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 +1 -1
- package/dist/components/gb-scrollbar.js +1 -1
- package/dist/components/gb-sidebar.js +12 -12
- package/dist/components/gb-simple-side-bar-item.js +1 -1
- package/dist/components/gb-slider-control-handle.js +1 -1
- package/dist/components/gb-slider.js +3 -3
- package/dist/components/gb-status-indicator.js +1 -1
- package/dist/components/gb-tab-button-base.js +1 -1
- package/dist/components/{gb-rich-text.d.ts → gb-table-cell.d.ts} +4 -4
- package/dist/components/gb-table-cell.js +40 -0
- package/dist/components/gb-table-cell.js.map +1 -0
- 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 +67 -30
- package/dist/components/gb-textarea-input-field.js.map +1 -1
- package/dist/components/gb-toast-button.js +1 -1
- package/dist/components/gb-toast.js +11 -7
- package/dist/components/gb-toast.js.map +1 -1
- package/dist/components/gb-toggle-base.js +1 -1
- package/dist/components/gb-toggle.js +2 -2
- package/dist/components/gb-token-field.js +2 -2
- package/dist/components/gb-tooltip.js +1 -1
- package/dist/components/gb-verification-code-field.js +3 -3
- package/dist/components/gb-vertical-tabs.js +7 -7
- package/dist/components/gb-wysiwyg-editor-icon.js +38 -2
- package/dist/components/gb-wysiwyg-editor-icon.js.map +1 -1
- package/dist/components/{p-0b1416b9.js → p-01f30e0d.js} +5 -5
- package/dist/components/{p-0b1416b9.js.map → p-01f30e0d.js.map} +1 -1
- package/dist/components/{p-8ff1c695.js → p-0baf6b32.js} +2 -2
- package/dist/components/{p-8ff1c695.js.map → p-0baf6b32.js.map} +1 -1
- package/dist/components/{p-0473455f.js → p-15345cdf.js} +2 -2
- package/dist/components/{p-0473455f.js.map → p-15345cdf.js.map} +1 -1
- package/dist/components/{p-b9f8dd8f.js → p-1d2d60ae.js} +3 -3
- package/dist/components/{p-b9f8dd8f.js.map → p-1d2d60ae.js.map} +1 -1
- package/dist/components/{p-ed29def1.js → p-21d3be83.js} +2 -2
- package/dist/components/{p-ed29def1.js.map → p-21d3be83.js.map} +1 -1
- package/dist/components/{p-16e21718.js → p-236c07db.js} +2 -2
- package/dist/components/{p-16e21718.js.map → p-236c07db.js.map} +1 -1
- package/dist/components/{p-9cab4907.js → p-26d4c568.js} +3 -3
- package/dist/components/{p-9cab4907.js.map → p-26d4c568.js.map} +1 -1
- package/dist/components/{p-a735d36b.js → p-29d220cc.js} +2 -2
- package/dist/components/{p-a735d36b.js.map → p-29d220cc.js.map} +1 -1
- package/dist/components/{p-d6a249f8.js → p-2d8a9575.js} +2 -2
- package/dist/components/{p-d6a249f8.js.map → p-2d8a9575.js.map} +1 -1
- package/dist/components/{p-97bf5a4b.js → p-3cc8a666.js} +5 -5
- package/dist/components/{p-97bf5a4b.js.map → p-3cc8a666.js.map} +1 -1
- package/dist/components/{p-f9db1abf.js → p-46f8e60a.js} +8 -8
- package/dist/components/{p-f9db1abf.js.map → p-46f8e60a.js.map} +1 -1
- package/dist/components/p-47052b60.js.map +1 -1
- package/dist/components/{p-60baf46c.js → p-47d7d910.js} +4 -4
- package/dist/components/{p-60baf46c.js.map → p-47d7d910.js.map} +1 -1
- package/dist/components/{p-dc032290.js → p-4e11e768.js} +2 -2
- package/dist/components/{p-dc032290.js.map → p-4e11e768.js.map} +1 -1
- package/dist/components/{p-7438bed3.js → p-52cc93fe.js} +7 -7
- package/dist/components/{p-7438bed3.js.map → p-52cc93fe.js.map} +1 -1
- package/dist/components/{p-edc34d28.js → p-5af36f2c.js} +5 -5
- package/dist/components/{p-edc34d28.js.map → p-5af36f2c.js.map} +1 -1
- package/dist/components/{p-b804605e.js → p-5cbbb85f.js} +2 -2
- package/dist/components/{p-b804605e.js.map → p-5cbbb85f.js.map} +1 -1
- package/dist/components/{p-8986943a.js → p-637ca96f.js} +3 -3
- package/dist/components/{p-8986943a.js.map → p-637ca96f.js.map} +1 -1
- package/dist/components/{p-8d414028.js → p-663e2680.js} +5 -5
- package/dist/components/{p-8d414028.js.map → p-663e2680.js.map} +1 -1
- package/dist/components/{p-b653cd60.js → p-70bbf877.js} +2 -2
- package/dist/components/{p-b653cd60.js.map → p-70bbf877.js.map} +1 -1
- package/dist/components/{p-f6515d55.js → p-76d63671.js} +82 -85
- package/dist/components/p-76d63671.js.map +1 -0
- package/dist/components/{p-154c1742.js → p-7aa73416.js} +2 -2
- package/dist/components/{p-154c1742.js.map → p-7aa73416.js.map} +1 -1
- package/dist/components/{p-f8638e16.js → p-82ce96d9.js} +2 -2
- package/dist/components/{p-f8638e16.js.map → p-82ce96d9.js.map} +1 -1
- package/dist/components/{p-97c8c39a.js → p-8f876fd9.js} +3 -3
- package/dist/components/{p-97c8c39a.js.map → p-8f876fd9.js.map} +1 -1
- package/dist/components/{p-0671d970.js → p-a3497257.js} +4 -4
- package/dist/components/{p-0671d970.js.map → p-a3497257.js.map} +1 -1
- package/dist/components/{p-62df8228.js → p-a4d56c2c.js} +6 -6
- package/dist/components/{p-62df8228.js.map → p-a4d56c2c.js.map} +1 -1
- package/dist/components/{p-b9dcaa74.js → p-a80c8d70.js} +2 -2
- package/dist/components/{p-b9dcaa74.js.map → p-a80c8d70.js.map} +1 -1
- package/dist/components/{p-495583dd.js → p-a9f191b6.js} +35 -29
- package/dist/components/p-a9f191b6.js.map +1 -0
- package/dist/components/{p-2c538f54.js → p-aa14a655.js} +3 -3
- package/dist/components/{p-2c538f54.js.map → p-aa14a655.js.map} +1 -1
- package/dist/components/{p-cb4314db.js → p-adcd7611.js} +9 -9
- package/dist/components/{p-cb4314db.js.map → p-adcd7611.js.map} +1 -1
- package/dist/components/{p-5041eef7.js → p-add0d18c.js} +8 -8
- package/dist/components/{p-5041eef7.js.map → p-add0d18c.js.map} +1 -1
- package/dist/components/{p-2850a798.js → p-b3bb7571.js} +3 -3
- package/dist/components/{p-2850a798.js.map → p-b3bb7571.js.map} +1 -1
- package/dist/components/{p-0b260e68.js → p-bd42fb37.js} +2 -2
- package/dist/components/{p-0b260e68.js.map → p-bd42fb37.js.map} +1 -1
- package/dist/components/{p-a5c903c8.js → p-bff6d2fd.js} +2 -2
- package/dist/components/{p-a5c903c8.js.map → p-bff6d2fd.js.map} +1 -1
- package/dist/components/{p-a44db57b.js → p-c4cb6a68.js} +2 -2
- package/dist/components/{p-a44db57b.js.map → p-c4cb6a68.js.map} +1 -1
- package/dist/components/{p-bc96ddc3.js → p-ca9f1629.js} +3 -3
- package/dist/components/{p-bc96ddc3.js.map → p-ca9f1629.js.map} +1 -1
- package/dist/components/{p-a51bb23a.js → p-d4319be7.js} +2 -2
- package/dist/components/{p-a51bb23a.js.map → p-d4319be7.js.map} +1 -1
- package/dist/components/{p-6cd408d7.js → p-ddbb43bc.js} +2 -2
- package/dist/components/{p-6cd408d7.js.map → p-ddbb43bc.js.map} +1 -1
- package/dist/components/{p-523dd5f1.js → p-e5dd6c7d.js} +3 -3
- package/dist/components/{p-523dd5f1.js.map → p-e5dd6c7d.js.map} +1 -1
- package/dist/components/{p-d5108411.js → p-e7ef886c.js} +2 -2
- package/dist/components/{p-d5108411.js.map → p-e7ef886c.js.map} +1 -1
- package/dist/components/{p-0930680b.js → p-eb839ab2.js} +3 -3
- package/dist/components/{p-0930680b.js.map → p-eb839ab2.js.map} +1 -1
- package/dist/components/{p-2b0efd04.js → p-f89c1f0e.js} +8 -8
- package/dist/components/{p-2b0efd04.js.map → p-f89c1f0e.js.map} +1 -1
- package/dist/components/{p-2b6fcf3b.js → p-f99a8c69.js} +3 -3
- package/dist/components/{p-2b6fcf3b.js.map → p-f99a8c69.js.map} +1 -1
- package/dist/components/{p-2e424c3d.js → p-fa50cce3.js} +8 -8
- package/dist/components/{p-2e424c3d.js.map → p-fa50cce3.js.map} +1 -1
- package/dist/components/test-input-tag.js +12 -12
- package/dist/docs.json +94 -675
- package/dist/esm/gb-avatar-add-button.entry.js +1 -1
- package/dist/esm/gb-avatar-group.entry.js +1 -1
- package/dist/esm/gb-avatar-label-group.entry.js +1 -1
- package/dist/esm/gb-avatar-profile-photo.entry.js +1 -1
- package/dist/esm/{gb-avatar_25.entry.js → gb-avatar_20.entry.js} +161 -618
- package/dist/esm/gb-avatar_20.entry.js.map +1 -0
- package/dist/esm/gb-badge_2.entry.js +106 -0
- package/dist/esm/gb-badge_2.entry.js.map +1 -0
- package/dist/esm/gb-button-close_3.entry.js +3 -3
- package/dist/esm/gb-carousel-arrow.entry.js +1 -1
- 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-collapse-button_4.entry.js +151 -0
- package/dist/esm/gb-collapse-button_4.entry.js.map +1 -0
- package/dist/esm/gb-dropdown-items-with-shortcut.entry.js +1 -1
- package/dist/esm/gb-export-dropdown-item_2.entry.js +2 -2
- package/dist/esm/gb-export-dropdown.entry.js +1 -1
- package/dist/esm/gb-export-sub-dropdown-item.entry.js +1 -1
- package/dist/esm/gb-file-upload-item-base.entry.js +1 -1
- package/dist/esm/gb-file-upload.entry.js +12 -12
- package/dist/esm/gb-header-icon.entry.js +4 -4
- package/dist/esm/gb-header.entry.js +1 -1
- package/dist/esm/gb-help-dropdown.entry.js +1 -1
- package/dist/esm/gb-horizontal-tabs.entry.js +1 -1
- package/dist/esm/gb-notification-content.entry.js +1 -1
- package/dist/esm/gb-notification-pane.entry.js +3 -3
- package/dist/esm/gb-pagination-button-group-base_2.entry.js +2 -2
- package/dist/esm/gb-pagination-dot-group.entry.js +1 -1
- package/dist/esm/gb-pagination-dot-indicator.entry.js +1 -1
- package/dist/esm/gb-pagination.entry.js +4 -3
- package/dist/esm/gb-pagination.entry.js.map +1 -1
- package/dist/esm/gb-progress-circle.entry.js +1 -1
- package/dist/esm/gb-scrollbar.entry.js +1 -1
- package/dist/esm/gb-sidebar.entry.js +119 -0
- package/dist/esm/gb-sidebar.entry.js.map +1 -0
- package/dist/esm/gb-slider-control-handle.entry.js +1 -1
- package/dist/esm/gb-slider.entry.js +1 -1
- package/dist/esm/gb-tab-button-base.entry.js +3 -3
- package/dist/esm/gb-table-cell.entry.js +19 -0
- package/dist/esm/gb-table-cell.entry.js.map +1 -0
- package/dist/esm/gb-textarea-input-field.entry.js +214 -0
- package/dist/esm/gb-textarea-input-field.entry.js.map +1 -0
- package/dist/esm/gb-toast-button.entry.js +1 -1
- package/dist/esm/gb-toast.entry.js +8 -4
- package/dist/esm/gb-toast.entry.js.map +1 -1
- package/dist/esm/gb-toggle-base.entry.js +2 -2
- package/dist/esm/gb-toggle.entry.js +1 -1
- package/dist/esm/gb-vertical-tabs.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js +8 -12
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js.map +1 -1
- package/dist/esm/globuscomponents.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/reusableModels-8496e911.js.map +1 -1
- package/dist/esm/test-input-tag.entry.js +2 -2
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
- package/dist/globuscomponents/{p-9f35fda2.entry.js → p-0363def1.entry.js} +2 -2
- package/dist/globuscomponents/{p-24d227d0.entry.js → p-0a03430f.entry.js} +2 -2
- package/dist/globuscomponents/{p-38bea668.entry.js → p-12a57d99.entry.js} +2 -2
- package/dist/globuscomponents/{p-0410b6df.entry.js → p-1819f84b.entry.js} +2 -2
- package/dist/globuscomponents/p-1b16019d.entry.js +2 -0
- package/dist/globuscomponents/p-1b16019d.entry.js.map +1 -0
- package/dist/globuscomponents/{p-fd82021b.entry.js → p-1e47a582.entry.js} +2 -2
- package/dist/globuscomponents/p-20910b83.entry.js +2 -0
- package/dist/globuscomponents/p-20910b83.entry.js.map +1 -0
- package/dist/globuscomponents/{p-d3848e3c.entry.js → p-284d59f9.entry.js} +2 -2
- package/dist/globuscomponents/{p-a0a50839.entry.js → p-2f39fd38.entry.js} +2 -2
- package/dist/globuscomponents/{p-497724b2.entry.js → p-3100dc99.entry.js} +2 -2
- package/dist/globuscomponents/{p-6dc28d3d.entry.js → p-358fa350.entry.js} +2 -2
- package/dist/globuscomponents/p-3693c9b9.entry.js +2 -0
- package/dist/globuscomponents/{p-379f3ca1.entry.js → p-37fcb2a9.entry.js} +2 -2
- package/dist/globuscomponents/p-37fcb2a9.entry.js.map +1 -0
- package/dist/globuscomponents/p-3a3ddb02.entry.js +2 -0
- package/dist/globuscomponents/p-3a3ddb02.entry.js.map +1 -0
- package/dist/globuscomponents/p-3bbcb5ac.entry.js +2 -0
- package/dist/globuscomponents/{p-76d093ef.entry.js → p-41773e1d.entry.js} +2 -2
- package/dist/globuscomponents/{p-d9509ace.entry.js → p-44ca61d8.entry.js} +2 -2
- package/dist/globuscomponents/p-47052b60.js.map +1 -1
- package/dist/globuscomponents/{p-dd2d7d64.entry.js → p-4a3f2383.entry.js} +2 -2
- package/dist/globuscomponents/{p-060b0bf8.entry.js → p-55976e44.entry.js} +2 -2
- package/dist/globuscomponents/{p-35ad112a.entry.js → p-5a31f474.entry.js} +2 -2
- package/dist/globuscomponents/{p-fc681fa9.entry.js → p-5e99f2ef.entry.js} +2 -2
- package/dist/globuscomponents/{p-75988614.entry.js → p-67221dd4.entry.js} +2 -2
- package/dist/globuscomponents/{p-c4769f4d.entry.js → p-67728f72.entry.js} +2 -2
- package/dist/globuscomponents/{p-0c123fd6.entry.js → p-6ea11621.entry.js} +2 -2
- package/dist/globuscomponents/{p-a7fcbdee.entry.js → p-85183db2.entry.js} +2 -2
- package/dist/globuscomponents/{p-bac53953.entry.js → p-8d5bbf9c.entry.js} +2 -2
- package/dist/globuscomponents/{p-ebe51f1a.entry.js → p-8dc1fcd4.entry.js} +2 -2
- package/dist/globuscomponents/{p-f248f3fd.entry.js → p-90407157.entry.js} +2 -2
- package/dist/globuscomponents/p-999b9901.entry.js +2 -0
- package/dist/globuscomponents/p-999b9901.entry.js.map +1 -0
- package/dist/globuscomponents/{p-79c2f800.entry.js → p-a20afec7.entry.js} +2 -2
- package/dist/globuscomponents/{p-e8a2ef96.entry.js → p-a4f5e8bd.entry.js} +2 -2
- package/dist/globuscomponents/p-ab4ea457.entry.js +2 -0
- package/dist/globuscomponents/p-ab4ea457.entry.js.map +1 -0
- package/dist/globuscomponents/p-ba36bc54.entry.js +2 -0
- package/dist/globuscomponents/p-ba36bc54.entry.js.map +1 -0
- package/dist/globuscomponents/{p-83c744d6.entry.js → p-c256fd8b.entry.js} +2 -2
- package/dist/globuscomponents/{p-61bd6d69.entry.js → p-c359c016.entry.js} +2 -2
- package/dist/globuscomponents/p-cb0078af.entry.js +2 -0
- package/dist/globuscomponents/p-cb0078af.entry.js.map +1 -0
- package/dist/globuscomponents/{p-994950d8.entry.js → p-d61eb840.entry.js} +2 -2
- package/dist/globuscomponents/{p-112fe0dd.entry.js → p-dccc977c.entry.js} +2 -2
- package/dist/globuscomponents/{p-57afd81a.entry.js → p-ecd27e89.entry.js} +2 -2
- package/dist/globuscomponents/p-ecd27e89.entry.js.map +1 -0
- package/dist/globuscomponents/{p-bcb96e82.entry.js → p-f2b76525.entry.js} +2 -2
- package/dist/globuscomponents/{p-6e3f7bb2.entry.js → p-f2dbe311.entry.js} +2 -2
- package/dist/globuscomponents/{p-c95842ae.entry.js → p-fa7e8127.entry.js} +2 -2
- package/dist/globuscomponents/readme.md +50 -48
- package/dist/types/components/gb-input-field/gb-input-field.d.ts +1 -0
- package/dist/types/components/gb-table-cell/gb-table-cell.d.ts +5 -0
- package/dist/types/components/gb-textarea-input-field/gb-textarea-input-field.d.ts +2 -0
- package/dist/types/components/gb-toast/gb-toast.d.ts +1 -1
- package/dist/types/components/{gb-WYSIWYG editor-icon/gb-WYSIWYG-editor-icon.d.ts → gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.d.ts} +2 -2
- package/dist/types/components.d.ts +19 -85
- package/dist/types/models/reusableModels.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/gb-avatar_25.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-megainput-field.cjs.entry.js +0 -42
- package/dist/cjs/gb-megainput-field.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-rich-text.cjs.entry.js +0 -34
- package/dist/cjs/gb-rich-text.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-token-field.cjs.entry.js +0 -28
- package/dist/cjs/gb-token-field.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-verification-code-field.cjs.entry.js +0 -32
- package/dist/cjs/gb-verification-code-field.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-wysiwyg-toolbar.cjs.entry.js +0 -33
- package/dist/cjs/gb-wysiwyg-toolbar.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-wysiwyg-tooltip.cjs.entry.js +0 -28
- package/dist/cjs/gb-wysiwyg-tooltip.cjs.entry.js.map +0 -1
- package/dist/collection/components/gb-WYSIWYG editor-icon/gb-WYSIWYG-editor-icon.css +0 -2711
- package/dist/collection/components/gb-WYSIWYG editor-icon/gb-WYSIWYG-editor-icon.js +0 -84
- package/dist/collection/components/gb-WYSIWYG editor-icon/gb-WYSIWYG-editor-icon.js.map +0 -1
- package/dist/collection/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.css +0 -2660
- package/dist/collection/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.js +0 -223
- package/dist/collection/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.js.map +0 -1
- package/dist/collection/components/gb-WYSIWYG-tooltip/gb-WYSIWYG-tooltip.js +0 -65
- package/dist/collection/components/gb-WYSIWYG-tooltip/gb-WYSIWYG-tooltip.js.map +0 -1
- package/dist/collection/components/gb-WYSIWYG-tooltip/gb-WYSIWYG-tooltip.tsx +0 -43
- package/dist/collection/components/gb-rich-text/gb-rich-text.css +0 -2660
- package/dist/collection/components/gb-rich-text/gb-rich-text.js +0 -173
- package/dist/collection/components/gb-rich-text/gb-rich-text.js.map +0 -1
- package/dist/components/gb-rich-text.js +0 -172
- package/dist/components/gb-rich-text.js.map +0 -1
- package/dist/components/gb-wysiwyg-toolbar.d.ts +0 -11
- package/dist/components/gb-wysiwyg-toolbar.js +0 -8
- package/dist/components/gb-wysiwyg-toolbar.js.map +0 -1
- package/dist/components/gb-wysiwyg-tooltip.d.ts +0 -11
- package/dist/components/gb-wysiwyg-tooltip.js +0 -52
- package/dist/components/gb-wysiwyg-tooltip.js.map +0 -1
- package/dist/components/p-05bce1e7.js +0 -45
- package/dist/components/p-05bce1e7.js.map +0 -1
- package/dist/components/p-495583dd.js.map +0 -1
- package/dist/components/p-cec5b90c.js +0 -165
- package/dist/components/p-cec5b90c.js.map +0 -1
- package/dist/components/p-f6515d55.js.map +0 -1
- package/dist/esm/gb-avatar_25.entry.js.map +0 -1
- package/dist/esm/gb-megainput-field.entry.js +0 -38
- package/dist/esm/gb-megainput-field.entry.js.map +0 -1
- package/dist/esm/gb-rich-text.entry.js +0 -30
- package/dist/esm/gb-rich-text.entry.js.map +0 -1
- package/dist/esm/gb-token-field.entry.js +0 -24
- package/dist/esm/gb-token-field.entry.js.map +0 -1
- package/dist/esm/gb-verification-code-field.entry.js +0 -28
- package/dist/esm/gb-verification-code-field.entry.js.map +0 -1
- package/dist/esm/gb-wysiwyg-toolbar.entry.js +0 -29
- package/dist/esm/gb-wysiwyg-toolbar.entry.js.map +0 -1
- package/dist/esm/gb-wysiwyg-tooltip.entry.js +0 -24
- package/dist/esm/gb-wysiwyg-tooltip.entry.js.map +0 -1
- package/dist/globuscomponents/p-09ba896b.entry.js +0 -2
- package/dist/globuscomponents/p-09ba896b.entry.js.map +0 -1
- package/dist/globuscomponents/p-0d5efea5.entry.js +0 -2
- package/dist/globuscomponents/p-0d5efea5.entry.js.map +0 -1
- package/dist/globuscomponents/p-379f3ca1.entry.js.map +0 -1
- package/dist/globuscomponents/p-524c0404.entry.js +0 -2
- package/dist/globuscomponents/p-57afd81a.entry.js.map +0 -1
- package/dist/globuscomponents/p-59d20c30.entry.js +0 -2
- package/dist/globuscomponents/p-59d20c30.entry.js.map +0 -1
- package/dist/globuscomponents/p-5a736f4a.entry.js +0 -2
- package/dist/globuscomponents/p-6f708ea2.entry.js +0 -2
- package/dist/globuscomponents/p-6f708ea2.entry.js.map +0 -1
- package/dist/globuscomponents/p-818a14e9.entry.js +0 -2
- package/dist/globuscomponents/p-818a14e9.entry.js.map +0 -1
- package/dist/globuscomponents/p-bbaf2d10.entry.js +0 -2
- package/dist/globuscomponents/p-bbaf2d10.entry.js.map +0 -1
- package/dist/globuscomponents/p-c835beab.entry.js +0 -2
- package/dist/globuscomponents/p-c835beab.entry.js.map +0 -1
- package/dist/globuscomponents/p-fcd3a902.entry.js +0 -2
- package/dist/globuscomponents/p-fcd3a902.entry.js.map +0 -1
- package/dist/types/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.d.ts +0 -14
- package/dist/types/components/gb-WYSIWYG-tooltip/gb-WYSIWYG-tooltip.d.ts +0 -5
- package/dist/types/components/gb-rich-text/gb-rich-text.d.ts +0 -11
- /package/dist/globuscomponents/{p-9f35fda2.entry.js.map → p-0363def1.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-24d227d0.entry.js.map → p-0a03430f.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-38bea668.entry.js.map → p-12a57d99.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-0410b6df.entry.js.map → p-1819f84b.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-fd82021b.entry.js.map → p-1e47a582.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d3848e3c.entry.js.map → p-284d59f9.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a0a50839.entry.js.map → p-2f39fd38.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-497724b2.entry.js.map → p-3100dc99.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-6dc28d3d.entry.js.map → p-358fa350.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-524c0404.entry.js.map → p-3693c9b9.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5a736f4a.entry.js.map → p-3bbcb5ac.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-76d093ef.entry.js.map → p-41773e1d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d9509ace.entry.js.map → p-44ca61d8.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-dd2d7d64.entry.js.map → p-4a3f2383.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-060b0bf8.entry.js.map → p-55976e44.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-35ad112a.entry.js.map → p-5a31f474.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-fc681fa9.entry.js.map → p-5e99f2ef.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-75988614.entry.js.map → p-67221dd4.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-c4769f4d.entry.js.map → p-67728f72.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-0c123fd6.entry.js.map → p-6ea11621.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a7fcbdee.entry.js.map → p-85183db2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-bac53953.entry.js.map → p-8d5bbf9c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ebe51f1a.entry.js.map → p-8dc1fcd4.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-f248f3fd.entry.js.map → p-90407157.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-79c2f800.entry.js.map → p-a20afec7.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e8a2ef96.entry.js.map → p-a4f5e8bd.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-83c744d6.entry.js.map → p-c256fd8b.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-61bd6d69.entry.js.map → p-c359c016.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-994950d8.entry.js.map → p-d61eb840.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-112fe0dd.entry.js.map → p-dccc977c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-bcb96e82.entry.js.map → p-f2b76525.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-6e3f7bb2.entry.js.map → p-f2dbe311.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-c95842ae.entry.js.map → p-fa7e8127.entry.js.map} +0 -0
|
@@ -9,12 +9,6 @@ export class GbInputField {
|
|
|
9
9
|
document.execCommand('copy'); // Deprecated but works in most browsers
|
|
10
10
|
// For modern browsers:
|
|
11
11
|
navigator.clipboard.writeText(this.inputRef.value);
|
|
12
|
-
// .then(() => {
|
|
13
|
-
// console.log('Copied to clipboard');
|
|
14
|
-
// })
|
|
15
|
-
// .catch(err => {
|
|
16
|
-
// console.error('Failed to copy: ', err);
|
|
17
|
-
// });
|
|
18
12
|
}
|
|
19
13
|
};
|
|
20
14
|
this.size = undefined;
|
|
@@ -52,11 +46,11 @@ export class GbInputField {
|
|
|
52
46
|
this.menuPosition = undefined;
|
|
53
47
|
this.icon = undefined;
|
|
54
48
|
this.value = [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
{ objectName: 'John Doe', objectValue: 'john.doe@example.com' },
|
|
50
|
+
{ objectName: 'Jane Smith', objectValue: 'jane.smith@example.com' },
|
|
51
|
+
{ objectName: 'Alice Johnson', objectValue: 'alice.johnson@example.com' },
|
|
52
|
+
{ objectName: 'Emmanuel Kadiri', objectValue: 'kadiri2047@gmail.com' },
|
|
53
|
+
10,
|
|
60
54
|
];
|
|
61
55
|
this.inputValue = '';
|
|
62
56
|
this.tags = [];
|
|
@@ -100,30 +94,44 @@ export class GbInputField {
|
|
|
100
94
|
// return mockData.filter(staff => staff.name.toLowerCase().includes(query.toLowerCase()));
|
|
101
95
|
// }
|
|
102
96
|
selectDropdownItem(item) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
this.unselectedItems
|
|
97
|
+
if (this.value.length === 0) {
|
|
98
|
+
const isObject = typeof item === 'object';
|
|
99
|
+
const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));
|
|
100
|
+
if (isSelected) {
|
|
101
|
+
// Unselect item: Move it from selectedItems to unselectedItems
|
|
102
|
+
this.selectedItems = this.selectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
|
|
103
|
+
if (!this.unselectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item))) {
|
|
104
|
+
this.unselectedItems = [...this.unselectedItems, item];
|
|
105
|
+
}
|
|
106
|
+
this.inputValueChanged.emit(this.selectedItems);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// Select item: Move it from unselectedItems to selectedItems
|
|
110
|
+
this.selectedItems = [...this.selectedItems, item];
|
|
111
|
+
this.unselectedItems = this.unselectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
|
|
112
|
+
this.inputValueChanged.emit(this.selectedItems);
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
else {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
const isObject = typeof item === 'object';
|
|
117
|
+
const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));
|
|
118
|
+
if (isSelected) {
|
|
119
|
+
this.value = this.value.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
|
|
120
|
+
console.log(this.value);
|
|
121
|
+
this.inputValueChanged.emit(this.value);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
this.value = [...this.value, item]; // Add item to array
|
|
125
|
+
this.inputValueChanged.emit(this.value);
|
|
126
|
+
}
|
|
117
127
|
}
|
|
118
|
-
// this.results = [];
|
|
119
|
-
// this.showDropdown = false;
|
|
120
128
|
this.updateStyles();
|
|
121
129
|
}
|
|
122
130
|
handleTagRemove(index) {
|
|
123
131
|
if (this.value.length > 0) {
|
|
124
132
|
this.value = [...this.value.slice(0, index), ...this.value.slice(index + 1)];
|
|
125
133
|
console.log(this.value);
|
|
126
|
-
this.updateStyles();
|
|
134
|
+
// this.updateStyles();
|
|
127
135
|
}
|
|
128
136
|
else {
|
|
129
137
|
this.selectedItems = [...this.selectedItems.slice(0, index), ...this.selectedItems.slice(index + 1)];
|
|
@@ -195,6 +203,22 @@ export class GbInputField {
|
|
|
195
203
|
this.selectedItem = option;
|
|
196
204
|
this.showDropdown = false; // Close the dropdown
|
|
197
205
|
}
|
|
206
|
+
updateSelectedItems(newValue) {
|
|
207
|
+
if (Array.isArray(newValue) && newValue.length > 0) {
|
|
208
|
+
this.selectedItems = [];
|
|
209
|
+
this.unselectedItems = [];
|
|
210
|
+
const objectValues = newValue.filter(val => typeof val === 'object' && val !== null);
|
|
211
|
+
const primitiveValues = newValue.filter(val => typeof val !== 'object');
|
|
212
|
+
this.selectedItems = this.results.filter(item => typeof item === 'object' && item !== null
|
|
213
|
+
? objectValues.some(val => JSON.stringify(val) === JSON.stringify(item)) // Avoid object reference issues
|
|
214
|
+
: primitiveValues.includes(item));
|
|
215
|
+
this.unselectedItems = this.results.filter(item => typeof item === 'object' && item !== null ? !objectValues.some(val => JSON.stringify(val) === JSON.stringify(item)) : !primitiveValues.includes(item));
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
this.selectedItems = [];
|
|
219
|
+
this.unselectedItems = [...this.results];
|
|
220
|
+
}
|
|
221
|
+
}
|
|
198
222
|
componentWillLoad() {
|
|
199
223
|
// this.selectedItem = this.options[0];
|
|
200
224
|
if (this.options && this.options.length > 0) {
|
|
@@ -204,36 +228,7 @@ export class GbInputField {
|
|
|
204
228
|
if (this.type !== 'tags') {
|
|
205
229
|
this.selectedItem = null; // For single selection types
|
|
206
230
|
}
|
|
207
|
-
|
|
208
|
-
this.selectedItems = [];
|
|
209
|
-
this.unselectedItems = [];
|
|
210
|
-
// Separate objects from primitive values
|
|
211
|
-
const objectValues = this.value.filter(val => typeof val === 'object' && val !== null);
|
|
212
|
-
const primitiveValues = this.value.filter(val => typeof val !== 'object');
|
|
213
|
-
// Find selected items
|
|
214
|
-
this.selectedItems = this.results.filter(item => {
|
|
215
|
-
if (typeof item === 'object' && item !== null) {
|
|
216
|
-
return objectValues.some(val => val.objectName === item.objectName);
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
return primitiveValues.includes(item);
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
// Find unselected items
|
|
223
|
-
this.unselectedItems = this.results.filter(item => {
|
|
224
|
-
if (typeof item === 'object' && item !== null) {
|
|
225
|
-
return !objectValues.some(val => val.objectName === item.objectName);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
return !primitiveValues.includes(item);
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
else {
|
|
233
|
-
// If value array is empty, all items are unselected
|
|
234
|
-
this.selectedItems = [];
|
|
235
|
-
this.unselectedItems = [...this.results];
|
|
236
|
-
}
|
|
231
|
+
this.updateSelectedItems(this.value);
|
|
237
232
|
// console.log('Selected Items:', this.selectedItems);
|
|
238
233
|
// console.log('Unselected Items:', this.unselectedItems);
|
|
239
234
|
}
|
|
@@ -276,23 +271,23 @@ export class GbInputField {
|
|
|
276
271
|
// this.inputElement.removeEventListener('input', this.handleTagInput.bind(this));
|
|
277
272
|
// }
|
|
278
273
|
render() {
|
|
279
|
-
return (h("div", { key: '
|
|
280
|
-
h("div", { key: '
|
|
274
|
+
return (h("div", { key: '37d125bf5eb4de7fc560bdedcaadfbedcd396c5f', class: `input_container` }, h("div", { key: '22e92d9eb7130657689d0b0e0226f84f2b9cde35', class: `input_with_label` }, this.showLabel && h("p", { key: '4c9a0c46d991d0e3e6288d7fd7111b3d6c64c9b7', class: "label text-sm-medium" }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase()), this.type === 'default' && [
|
|
275
|
+
h("div", { key: 'f42d989a1e288b384467ee64b153b5854a634eb4', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '31dbd7a5a91b08942348723669316375af180379', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), h(Fragment, null, this.showValidation && (h("svg", { key: 'b5428aa5b1f4e8c777fcfad5715f4880203209f7', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: 'a4900829eada2d8bfe72de98141a839ed0bd574f', 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: 'bee1a8d0ab8d44983b31cce1d0d7eecd2e0da912', 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" }))))))),
|
|
281
276
|
], this.type === 'icon_leading' && [
|
|
282
|
-
h("div", { key: '
|
|
277
|
+
h("div", { key: 'e90c99ed13a351cbbfb8a15b4d68db5998fa4b5a', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '24a7d62605be3d6932101548ae8965fa5485e310', class: `icon ${this.size} ${this.state}`, innerHTML: this.leadingIconSvg }), h("input", { key: '7d73c80496bc3cce6b029a325418142335db9f9a', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value, ref: el => (this.inputRef = el) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '6d89d97f5f4e7e753a60849707f6f8b657f09074', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: '908cb4402c06b9274703f7dae5e922f327b7c554', 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: 'dd364b3664386b9adf867f26531e1ad260cee286', 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: '35df41fb5af1f4bfb2503415b11a210aafcb4408', size: this.size, hierarchy: "tertiary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/cancel-01.svg", onClick: () => this.clearInput(), class: `input_close_button ${this.size}` })))),
|
|
283
278
|
], this.type === 'leading_dropdown' && [
|
|
284
|
-
h("div", { key: '
|
|
285
|
-
h(Fragment, null, this.showDropdown && (h("div", { key: '
|
|
279
|
+
h("div", { key: '1f1897b3ee9905fc5120f59e84571ca28b675833', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'badf08fde4fce171f843af7e42f26bc82eb89643', class: `leading_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, this.showCountryIcon && (h("div", { key: 'b2e70160c4aa337f57772a7789edd0e97e501110', class: `country_icon` }, h("img", { key: 'aa3b97fe01fc5a57af584f95a0eefbd3410c4ec7', src: "build/assets/NG.svg", alt: "" }))), h("div", { key: '211493034361fa6e262b863c4075d440def291f2', class: `dropdown_text` }, h("p", { key: 'f9c8f94f52005f77c015a83a74f688535112920b', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: '3e1c7ee90710140e39435a03a0296d1f3a487beb', class: `dropdown_arrow` }, h("svg", { key: 'ce4caf2d2b73fa9df827fec62e4f7efed0dac735', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '5bac96bbaf528eb02b61be4a620bffcaed000478', 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: '1a581c9c5449b77d1bdc8324eb1756e931e14699', class: `leading_dropdown_text_input` }, h("input", { key: '0c289c162a710f13adf258706b95fa4b520d4678', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: 'a9df90b9c6c5b7782535ed7cd47e59667146387a', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '319c649a57982fcac570a69acca3c43961c0309b', 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: '26ec9acb3d73542c7e4ae01fb154aecd8abf6042', 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" }))))))),
|
|
280
|
+
h(Fragment, null, this.showDropdown && (h("div", { key: '7f5b46fa97bf246ba818f437fd65515d90859442', class: `dropdown_menu ${this.type} ${this.size} ${this.menuPosition}`, ref: el => (this.dropdownRef = el) }, 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))))))),
|
|
286
281
|
], this.type === 'trailing_dropdown' && [
|
|
287
|
-
h("div", { key: '
|
|
288
|
-
h(Fragment, null, this.showDropdown && (h("div", { key: '
|
|
282
|
+
h("div", { key: '6a9712ca773183ee4733b7666cc1c87e7b0b29df', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '440c99a6253cda29412cefbdb9bcba0e70dc1102', class: `trailing_dropdown_content` }, h("p", { key: '299de7a9046e5f74b07aed9930047802ef8bc569', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, "$"), h("input", { key: '09272a23289b57d604717d1a24f2cfb3467b1652', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showHelpIcon && (h("div", { key: '7833f69775f474677c40c8e3852d012fc85f436f', 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: '069a0dd2145a949ea415c62df43511b1958a1977', class: `trailing_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: 'eebdbd690afa592e36485c38dcf943e5d7d68f17', class: `dropdown_text` }, h("p", { key: 'eaf7bba19d0c37cca511b71bae31899734b633ec', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: 'c9dec295282e427f9bd7bda834ca75eedc4752b7', class: `dropdown_arrow` }, h("svg", { key: '586c879577f14baa17459b0540ce28ea13423d87', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'ea89af9b779033b5d9e84598ec595294f21225ec', 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" }))))),
|
|
283
|
+
h(Fragment, null, this.showDropdown && (h("div", { key: 'd9a286ca281f8a7996f2bd09cf41aec0f71fcd98', class: `dropdown_menu ${this.type} ${this.size} ${this.menuPosition}`, ref: el => (this.dropdownRef = el) }, 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))))))),
|
|
289
284
|
], this.type === 'leading_text' && [
|
|
290
|
-
h("div", { key: '
|
|
291
|
-
], this.type === 'payment_input' && (h("div", { key: '237fc2ab8c5b653629ad73dc3473910e8e734c56', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: 'e1a1f1f86d4136c997fca7266d39749512a9f5a0', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: 'b12080a13960a3bd543cfecf9de8447b021a8e68', "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: 'f447a0dadc402d955a90c2e1c6ac04879ebc479f', "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: 'e9fc696a4e5546bfd40a3e0c464703e7691a9854', "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: '929654985106cd630730d4847ec441689f8145e0', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '5f84eecdd7de6128b6c488ca37515c55612ccd2c', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'cbed4257f7f37fbfaa1cee1980a57ba088350409', 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: '17dc7bef0c24206023a49a9842e9e083687c3e46', 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: '565f76a55e7b359772ff556206502b65acfc34c6', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '7abbd2b7eb2d7d70c14aaa08fd5d316685112530', class: `trailing_button_text_input ${this.size}` }, h("input", { key: 'b9b0f67f0467f990d6bf3a207ac646ecf3c60f9f', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: 'b7fe4e9011f642ca88d3b5aca04fe994f21d505f', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '57fb939ac3c47d32ff7ffb15714f8e4cea1befe9', 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: 'd52b24c2c6d5015a42a334985a7a983fb7d7f8c9', 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: '9fe0a27c158ecf4ba70a263cc849246104bc77b7', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg", onClick: () => this.copyToClipboard() }))), this.type === 'password' && (h("div", { key: '77cedef354b16fa87589b1d684b5916646d8f71b', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'ed336339ba04a29bde08035da430263fdc22285a', class: `password_content` }, h("input", { key: '550a6befe49acd3e2869745745bf0af9fc95951e', 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: '749937a3ea53fd36031f33090aea0ad3dfba717f', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '2a729f5ca74e95d95e1bd31a93b807ce48636317', 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: '4b031c8769c6863140ef7e929dbee4b247bb1154', 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: 'cb70d37c605ac0e00918d33e83edfec30d0994f4', class: `dropdown` }, h("gb-password-button", { key: '5578b67b3b231312ce3e215318512bd10ea9b8f8', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: '6709411d4c61b75ad11d355b4d44a00a659efd1f', class: `password_icon_leading_input input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '33dd50fdb89da4613d380d04da42ba0a88faba81', class: `password_icon_leading_content` }, h("svg", { key: '8e57654448ca8b04a1abc905896dfdc3e9f9abf2', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'b13958cd19a87d9185b8db5c984fe648e1c818f2', 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: 'b79a39d90caf9b82c7f4b1013b21f319d3dfd190', 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: '68f2d23ead5a0ad27105bf175612f2309ccee5d8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '83dd494bd08cffd58c574feb1fd24a6bec1e381c', 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: '170e23b7e229ae91fecf4bf3e15a67e5a714bfdf', 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: '9f05421cb65b7cad8b5c5057d9267d488e51ecc9', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
|
|
292
|
-
h("div", { key: '
|
|
293
|
-
], this.type === 'tags' && (h("div", { key: '
|
|
285
|
+
h("div", { key: '246382cc8d318c9e84207fb0d5bf3ab1600e0c1e', class: "leading_text_input" }, h("div", { key: '5b8d26e4a8eab805452758b4c29fa11e89a1d406', class: `add_on` }, h("slot", { key: '697d80bd91140e974179b442935a5f9f1acdcf29', name: "text" })), h("div", { key: 'ac7403b429f3a0c418b0e0d8b6a23a9d0f99d672', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: 'c34ba7f5c5ebd5a5f6058ed41d6153cf993562c1', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: 'ce1b239790c5c45d8b405d3043c823c6d1b21a89', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '4d324dc75e5c20c7e4923df159ee31d307811610', 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: 'b71e4ddcb85f329fe4fd1cea7b8bf9c46c366861', 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" }))))))),
|
|
286
|
+
], this.type === 'payment_input' && (h("div", { key: '95a2799e0ed19124ee15ceffdbe2a029c0178b8e', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: 'cccda23067b57b7e31d11ebd7294034701453016', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: '089873722bb56b7ea0789f2da035baf315e772a4', "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: '43de932681c2b615a80322171f4f0f26cbe5c12e', "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: '5e69c04d8719e624ca48b0af2d99c1d151fc2f22', "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: 'af95d5f43d0cbc5de690c0d19cb4123f1ba06ff8', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '489484a2090cd3d663de5c9ef3e4690abbe52238', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '55436ffc1918ef197057bd67327b3256e070da0c', 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: 'b6864fbe2b62b963e3068b497bced3ee834919c8', 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: '74bb916535b01d3a5f0202b5672ca0d151089a6d', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '4150d73fa7f8d788b01dcd94562bcf93271fb9f0', class: `trailing_button_text_input ${this.size}` }, h("input", { key: '593e6fae9363ed5823a87b6740c7e10d94eff186', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: '1b9e6671532573c2bf99f9c8d302b561572db0dc', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '2009b4dd1fc8dcd215b7394e883191a8682e0ac9', 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: '80bdc42c8317a21c6aa67e26f9d0a230585fa5dc', 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: '021f1ba7074de0df8769a70a9cd4c80c892bfab2', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg", onClick: () => this.copyToClipboard() }))), this.type === 'password' && (h("div", { key: 'c31953bf366592ba9a5016c5f19a9ed879d3eae1', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '71fdddc9b3700ea12353948986cf906cebefd52f', class: `password_content` }, h("input", { key: '87fd59b898ab0126159a03777d9b354da44a8cb3', 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: 'f87f85f0ec8f7ae8efa126bba4afa7bbfb19d357', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '40fec8a4f23eca83a11d1fa9539331882e437e75', 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: 'e0a83931c1972ca45c46b89007ec16889cbef484', 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: '06e5beaa3ad6d8984a9d04974d2cfc3794f61020', class: `dropdown` }, h("gb-password-button", { key: '23cd6da36870f252c2b2d83772f1ea347fb12e99', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: '46dd472f44481e22d45665f9797dcfb0b987a3cc', class: `password_icon_leading_input input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'b88ffa7c0ea560fdbe052f3b7eda422afd665fb9', class: `password_icon_leading_content` }, h("svg", { key: 'b7a0593e4c78d7894f91e63033cc00870ce377bd', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'a1bf1bd40133c6091d2c856a99b64fe3b0525008', 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: '37e8de1f12c9269a9319876c5c8e79406194d0a8', 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: '19dd1149dce8a5e11b046203bc93ff2f412ac4ad', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'f2e3a348814bd249e9bb7efbf136ccdb8727e4a8', 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: '9224e6dbb04f45e221838925593deb7ec1c067c3', 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: '17c9c2253090fd6ebba4be91f1d57fda6e6a8f7f', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
|
|
287
|
+
h("div", { key: 'a42ee3bb697bf9855bc7a79399c6968f929a2b91', class: `count_input` }, h("div", { key: 'c247587d17027aee70dc8e1606f639bec8bf39e7', class: `count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}` }, h("input", { key: 'c10d702ef20861868a89cc83f560d72dcb7ec7d4', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showHelpIcon && (h("div", { key: 'd375cb590019cf7cad2389c6d838d50292c89451', 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: 'db012fafb49a6e7b38c321225b3dd437e1ba1dcf', class: `action ${this.state}` }, h("gb-button", { key: 'e8d3b501f37e1417a33de929b66db8c7ade53956', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/minus_sign.svg" }), h("div", { key: '03d564a5d5dc7a5b6942bd96294b9cd3938005ce', class: "vertical_line" }), h("gb-button", { key: '6e8ba365de86610793c4cb7d6d07d73cfdd2ca7d', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/plus_sign.svg" }))),
|
|
288
|
+
], this.type === 'tags' && (h("div", { key: 'f5d22d2b575a376dc2fc8371e12d4d89ce516efe', class: `input_group ${this.state}`, ref: el => (this.inputGroupElement = el), onClick: () => this.handleWrapperClick() }, h("div", { key: '09f115c845bb9bbf59a773f9031b19d7f1d5c3fd', class: `input_like_parent ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`, onClick: () => (this.dropdownOpen = !this.dropdownOpen) }, h("div", { key: '1860bc978cabfc1087892ff1ac8940e213148845', class: `results_display ${this.state === 'disabled' ? 'disabled' : ''}`, ref: el => (this.resultsDisplayElement = el) }, this.value.length === 0 ? (h(Fragment, null, this.selectedItems.map((item, index) => (h(Fragment, null, typeof item === 'object' ? (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("h1", { class: "text-xxs-semi-bold", slot: "initials" }, item.objectName.split(' ').map(part => part.charAt(0).toUpperCase())), h("p", null, item.objectName.split(' ')[0]))) : (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("p", null, item)))))))) : (h(Fragment, null, this.value.map((val, index) => (h(Fragment, null, typeof val === 'object' ? (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("h1", { class: "text-xxs-semi-bold", slot: "initials" }, val.objectName.split(' ').map(part => part.charAt(0).toUpperCase())), h("p", null, val.objectName.split(' ')[0]))) : (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("p", null, val)))))))), h("span", { key: 'ca297e42ef8a5145bd39c9088af1b17a22dc6404', class: "hidden-span", ref: el => (this.hiddenSpan = el) }, this.inputValue || ' '), h("div", { key: '25b6109712aba27fbbee71e8b3963a4405b787f2', class: "input_field" }, h("input", { key: 'a6a3df7d6fd643e07894a1b928f07d921edddbd1', id: this.idOfInput, class: `input_like text-md-regular ${this.state}`, type: "text",
|
|
294
289
|
// placeholder={this.placeholder && this.selectedStaff.length === 0 ? this.placeholder : ''}
|
|
295
|
-
value: this.inputValue, readOnly: this.isReadOnly, ref: el => (this.inputElement = el), onBlur: () => this.exportSelectedStaff(), onInput: event => this.handleTagInput(event) })))), this.showDropdown && (h("div", { key: '
|
|
290
|
+
value: this.inputValue, readOnly: this.isReadOnly, ref: el => (this.inputElement = el), onBlur: () => this.exportSelectedStaff(), onInput: event => this.handleTagInput(event) })))), this.showDropdown && (h("div", { key: '9f4e48380e93fa8e1b2123c1d024fa9d87e53622', class: `tags_dropdown_menu ${this.show ? 'show' : ''} ${this.menuPosition}` }, this.results.map(item => (h("gb-input-dropdown-menu-item", { type: "checkbox", "supporting-text": true, state: StateEnum.Default, onClick: () => this.selectDropdownItem(item), selected: this.isTagItemSelected(item) }, typeof item === 'object'
|
|
296
291
|
? [h("p", { slot: "name" }, item.objectName), h("p", { slot: "supporting_text" }, item.objectValue)]
|
|
297
292
|
: typeof item !== 'object' && h("p", { slot: "name" }, item))))))))), this.showHintText && h(Fragment, null, !this.destructive ? h("p", { class: "hint_text text-sm-regular" }, this.hintText) : h("p", { class: "error_text text-sm-regular" }, this.errorText))));
|
|
298
293
|
}
|
|
@@ -740,7 +735,7 @@ export class GbInputField {
|
|
|
740
735
|
},
|
|
741
736
|
"attribute": "value",
|
|
742
737
|
"reflect": false,
|
|
743
|
-
"defaultValue": "[\r\n
|
|
738
|
+
"defaultValue": "[\r\n { objectName: 'John Doe', objectValue: 'john.doe@example.com' },\r\n { objectName: 'Jane Smith', objectValue: 'jane.smith@example.com' },\r\n { objectName: 'Alice Johnson', objectValue: 'alice.johnson@example.com' },\r\n { objectName: 'Emmanuel Kadiri', objectValue: 'kadiri2047@gmail.com' },\r\n 10,\r\n ]"
|
|
744
739
|
}
|
|
745
740
|
};
|
|
746
741
|
}
|
|
@@ -784,6 +779,9 @@ export class GbInputField {
|
|
|
784
779
|
return [{
|
|
785
780
|
"propName": "options",
|
|
786
781
|
"methodName": "optionsChanged"
|
|
782
|
+
}, {
|
|
783
|
+
"propName": "value",
|
|
784
|
+
"methodName": "updateSelectedItems"
|
|
787
785
|
}];
|
|
788
786
|
}
|
|
789
787
|
static get listeners() {
|