globuswebcomponents 2.11.0 → 2.12.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-dropdown_5.cjs.entry.js +5 -5
- package/dist/cjs/gb-avatar-label-group_3.cjs.entry.js +2 -2
- package/dist/cjs/{gb-avatar_44.cjs.entry.js → gb-avatar_50.cjs.entry.js} +713 -99
- package/dist/cjs/gb-collapse-button_4.cjs.entry.js +2 -2
- package/dist/cjs/gb-header.cjs.entry.js +2 -2
- package/dist/cjs/gb-horizontal-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gb-logo.cjs.entry.js +1 -1
- package/dist/cjs/gb-metric-card.cjs.entry.js +1 -1
- package/dist/cjs/gb-metric-featured-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-modal-action_3.cjs.entry.js +5 -5
- package/dist/cjs/gb-nav-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/gb-nav-bar-sidemenu.cjs.entry.js +1 -1
- package/dist/cjs/gb-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/gb-notification-content.cjs.entry.js +1 -1
- 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-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
- package/dist/cjs/gb-prompt-modal.cjs.entry.js +1 -1
- package/dist/cjs/gb-quick-action-card.cjs.entry.js +1 -1
- package/dist/cjs/gb-quick-action-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-scrollbar.cjs.entry.js +1 -1
- package/dist/cjs/gb-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider-control-handle.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider.cjs.entry.js +1 -1
- package/dist/cjs/gb-step-base_2.cjs.entry.js +2 -2
- package/dist/cjs/gb-stepper-horizontal-icons-centered.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-horizontal-icons-connected.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-horizontal-line-with-text.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-horizontal-minimal-icons.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-vertical-icons-with-text.cjs.entry.js +1 -1
- package/dist/cjs/gb-tab-button-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-toast-button.cjs.entry.js +1 -1
- package/dist/cjs/gb-toast.cjs.entry.js +1 -1
- package/dist/cjs/gb-vertical-tabs.cjs.entry.js +1 -1
- package/dist/cjs/globuscomponents.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/reusableModels-_LRAKnsh.js.map +1 -1
- package/dist/cjs/test-input-tag.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/gb-date-picker/gb-date-picker.js +32 -7
- package/dist/collection/components/gb-date-picker/gb-date-picker.js.map +1 -1
- package/dist/collection/components/gb-filter-modal/gb-filter-modal.js +45 -17
- package/dist/collection/components/gb-filter-modal/gb-filter-modal.js.map +1 -1
- package/dist/collection/components/gb-header/gb-header.js +2 -2
- package/dist/collection/components/gb-header-icon/gb-header-icon.js +1 -1
- 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-icon-button-base/gb-icon-button-base.js +1 -1
- package/dist/collection/components/gb-illustration/gb-illustration.js +8 -8
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +3 -3
- 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 +14 -14
- package/dist/collection/components/gb-logo/gb-logo.js +1 -1
- package/dist/collection/components/gb-mega-input-field-base/gb-mega-input-field-base.css +12 -6
- package/dist/collection/components/gb-mega-input-field-base/gb-mega-input-field-base.js +110 -17
- package/dist/collection/components/gb-mega-input-field-base/gb-mega-input-field-base.js.map +1 -1
- package/dist/collection/components/gb-metric-card/gb-metric-card.js +1 -1
- package/dist/collection/components/gb-metric-featured-icon/gb-metric-featured-icon.js +1 -1
- package/dist/collection/components/gb-modal-header/gb-modal-header.js +2 -2
- package/dist/collection/components/gb-nav-bar/gb-nav-bar.js +1 -1
- package/dist/collection/components/gb-nav-bar-item/gb-nav-bar-item.js +1 -1
- package/dist/collection/components/gb-nav-bar-sidemenu/gb-nav-bar-sidemenu.js +1 -1
- 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 -4
- 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-pattern/gb-pattern.js +1 -1
- package/dist/collection/components/gb-portal/gb-portal.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-prompt-modal/gb-prompt-modal.js +1 -1
- package/dist/collection/components/gb-quick-action-card/gb-quick-action-card.js +1 -1
- package/dist/collection/components/gb-quick-action-icon/gb-quick-action-icon.js +1 -1
- package/dist/collection/components/gb-rich-text/gb-rich-text.css +2915 -0
- package/dist/collection/components/gb-rich-text/gb-rich-text.js +393 -0
- package/dist/collection/components/gb-rich-text/gb-rich-text.js.map +1 -0
- 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 +2 -2
- 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-step-base/gb-step-base.js +1 -1
- package/dist/collection/components/gb-step-icon-base/gb-step-icon-base.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-icons-centered/gb-stepper-horizontal-icons-centered.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-icons-connected/gb-stepper-horizontal-icons-connected.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-line-with-text/gb-stepper-horizontal-line-with-text.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-minimal-icons/gb-stepper-horizontal-minimal-icons.js +1 -1
- package/dist/collection/components/gb-stepper-vertical-icons-with-text/gb-stepper-vertical-icons-with-text.js +1 -1
- package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js +2 -2
- package/dist/collection/components/gb-table/gb-table.css +1 -1
- package/dist/collection/components/gb-table/gb-table.js +181 -36
- package/dist/collection/components/gb-table/gb-table.js.map +1 -1
- package/dist/collection/components/gb-table-header/gb-table-header.js +2 -2
- 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.js +3 -3
- package/dist/collection/components/gb-theme-tab/gb-theme-tab.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-compact/gb-token-field-compact.css +47 -5
- package/dist/collection/components/gb-token-field-compact/gb-token-field-compact.js +54 -1
- package/dist/collection/components/gb-token-field-compact/gb-token-field-compact.js.map +1 -1
- package/dist/collection/components/gb-token-field-compressed/gb-token-field-compressed.js +115 -3
- package/dist/collection/components/gb-token-field-compressed/gb-token-field-compressed.js.map +1 -1
- package/dist/collection/components/gb-tooltip/gb-tooltip.js +1 -1
- 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 +36 -31
- package/dist/collection/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.js +21 -3
- package/dist/collection/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.js.map +1 -1
- package/dist/collection/components/gb-wysiwyg-toolbar/gb-wysiwyg-toolbar.css +15 -0
- package/dist/collection/components/gb-wysiwyg-toolbar/gb-wysiwyg-toolbar.js +392 -0
- package/dist/collection/components/gb-wysiwyg-toolbar/gb-wysiwyg-toolbar.js.map +1 -0
- package/dist/collection/components/test-input-tag/test-input-tag.js +2 -2
- package/dist/collection/models/reusableModels.js.map +1 -1
- package/dist/components/gb-action-panel.js +2 -2
- package/dist/components/gb-approval-modal.js +13 -13
- package/dist/components/gb-avatar-add-button.js +1 -1
- package/dist/components/gb-avatar-dropdown.js +1 -1
- package/dist/components/gb-avatar-group.js +4 -4
- package/dist/components/gb-avatar-label-group.js +1 -1
- package/dist/components/gb-avatar-profile-photo.js +2 -2
- package/dist/components/gb-avatar.js +1 -1
- package/dist/components/gb-badge.js +1 -1
- package/dist/components/gb-btn.js +1 -1
- package/dist/components/gb-button.js +1 -1
- package/dist/components/gb-checkbox-group-item.js +1 -1
- package/dist/components/gb-checkbox-group.js +5 -5
- package/dist/components/gb-collapse-button.js +1 -1
- package/dist/components/gb-comment.js +2 -2
- 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-date-picker.js +1 -1
- package/dist/components/gb-detail-cell.js +5 -5
- package/dist/components/gb-empty-state.js +1 -1
- package/dist/components/gb-file-upload-item-base.js +1 -1
- package/dist/components/gb-file-upload.js +4 -4
- package/dist/components/gb-filter-button.js +1 -1
- package/dist/components/gb-filter-modal.js +1 -1
- package/dist/components/gb-header-icon.js +1 -1
- package/dist/components/gb-header.js +24 -24
- package/dist/components/gb-help-dropdown.js +1 -1
- package/dist/components/gb-help-tooltip.js +1 -1
- package/dist/components/gb-horizontal-tabs.js +5 -5
- package/dist/components/gb-icon-button-base.js +1 -1
- package/dist/components/gb-illustration.js +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 +1 -1
- package/dist/components/gb-logo.js +1 -1
- package/dist/components/gb-mega-input-field-base.js +1 -1
- package/dist/components/gb-metric-card.js +5 -5
- package/dist/components/gb-metric-featured-icon.js +1 -1
- package/dist/components/gb-modal-action.js +1 -1
- package/dist/components/gb-modal-header.js +1 -1
- package/dist/components/gb-nav-bar-item.js +1 -1
- package/dist/components/gb-nav-bar-sidemenu.js +6 -6
- package/dist/components/gb-nav-bar.js +3 -3
- package/dist/components/gb-notification-content.js +1 -1
- package/dist/components/gb-notification-pane.js +1 -1
- 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 +1 -1
- package/dist/components/gb-password-button.js +1 -1
- package/dist/components/gb-pattern.js +1 -1
- package/dist/components/gb-portal.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-prompt-modal.js +3 -3
- package/dist/components/gb-quick-action-card.js +1 -1
- package/dist/components/gb-quick-action-icon.js +1 -1
- package/dist/components/gb-rich-text.d.ts +11 -0
- package/dist/components/gb-rich-text.js +302 -0
- package/dist/components/gb-rich-text.js.map +1 -0
- package/dist/components/gb-scrollbar.js +1 -1
- package/dist/components/gb-sidebar.js +9 -9
- 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-step-base.js +1 -1
- package/dist/components/gb-step-icon-base.js +1 -1
- package/dist/components/gb-stepper-horizontal-icons-centered.js +3 -3
- package/dist/components/gb-stepper-horizontal-icons-connected.js +1 -1
- package/dist/components/gb-stepper-horizontal-line-with-text.js +3 -3
- package/dist/components/gb-stepper-horizontal-minimal-icons.js +2 -2
- package/dist/components/gb-stepper-vertical-icons-with-text.js +3 -3
- package/dist/components/gb-tab-button-base.js +1 -1
- package/dist/components/gb-table-header.js +1 -1
- package/dist/components/gb-table.js +183 -57
- package/dist/components/gb-table.js.map +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-theme-tab.js +1 -1
- package/dist/components/gb-toast-button.js +1 -1
- package/dist/components/gb-toast.js +4 -4
- package/dist/components/gb-toggle-base.js +1 -1
- package/dist/components/gb-toggle.js +1 -1
- package/dist/components/gb-token-field-compact.js +36 -4
- package/dist/components/gb-token-field-compact.js.map +1 -1
- package/dist/components/gb-token-field-compressed.js +79 -6
- package/dist/components/gb-token-field-compressed.js.map +1 -1
- package/dist/components/gb-tooltip.js +1 -1
- package/dist/components/gb-vertical-tabs.js +1 -1
- package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
- package/dist/components/gb-wysiwyg-toolbar.d.ts +11 -0
- package/dist/components/gb-wysiwyg-toolbar.js +9 -0
- package/dist/components/gb-wysiwyg-toolbar.js.map +1 -0
- package/dist/components/gb-wysiwyg-tooltip.js +1 -1
- package/dist/components/{p-tUA_D10f.js → p-3t4wpC1f.js} +3 -3
- package/dist/components/{p-tUA_D10f.js.map → p-3t4wpC1f.js.map} +1 -1
- package/dist/components/{p-AK6cDQE7.js → p-7UKVeg8a.js} +4 -4
- package/dist/components/{p-AK6cDQE7.js.map → p-7UKVeg8a.js.map} +1 -1
- package/dist/components/{p-CM2X5TQc.js → p-B-ndy3ez.js} +3 -3
- package/dist/components/{p-CM2X5TQc.js.map → p-B-ndy3ez.js.map} +1 -1
- package/dist/components/{p-CTaUs5-r.js → p-B-uzJiX6.js} +3 -3
- package/dist/components/{p-CTaUs5-r.js.map → p-B-uzJiX6.js.map} +1 -1
- package/dist/components/{p-DfwhwEoc.js → p-B29EdWOJ.js} +7 -7
- package/dist/components/{p-DfwhwEoc.js.map → p-B29EdWOJ.js.map} +1 -1
- package/dist/components/{p-8KPRgq60.js → p-B6BxHB8R.js} +3 -3
- package/dist/components/{p-8KPRgq60.js.map → p-B6BxHB8R.js.map} +1 -1
- package/dist/components/{p-5yowGoGZ.js → p-BNVWCAvx.js} +4 -4
- package/dist/components/{p-5yowGoGZ.js.map → p-BNVWCAvx.js.map} +1 -1
- package/dist/components/{p-Dsq6pKFl.js → p-BbQUkO3X.js} +3 -3
- package/dist/components/{p-Dsq6pKFl.js.map → p-BbQUkO3X.js.map} +1 -1
- package/dist/components/{p-9CtKkSzA.js → p-Bdn4kcZi.js} +3 -3
- package/dist/components/{p-9CtKkSzA.js.map → p-Bdn4kcZi.js.map} +1 -1
- package/dist/components/{p-DA7bBOGE.js → p-BdnOk7qz.js} +41 -20
- package/dist/components/p-BdnOk7qz.js.map +1 -0
- package/dist/components/{p-FjWBmKYg.js → p-BjVn8UXf.js} +8 -8
- package/dist/components/{p-FjWBmKYg.js.map → p-BjVn8UXf.js.map} +1 -1
- package/dist/components/{p-BKPSkaip.js → p-BmBR8CSe.js} +4 -4
- package/dist/components/{p-BKPSkaip.js.map → p-BmBR8CSe.js.map} +1 -1
- package/dist/components/{p-ZxV_qL5x.js → p-C6XBwoUN.js} +3 -3
- package/dist/components/{p-ZxV_qL5x.js.map → p-C6XBwoUN.js.map} +1 -1
- package/dist/components/{p-j48dTNnm.js → p-C7agY0Rf.js} +9 -9
- package/dist/components/{p-j48dTNnm.js.map → p-C7agY0Rf.js.map} +1 -1
- package/dist/components/{p-BzdxMBqd.js → p-CCntxtbY.js} +3 -3
- package/dist/components/{p-BzdxMBqd.js.map → p-CCntxtbY.js.map} +1 -1
- package/dist/components/{p-DXcUl9ra.js → p-CKcfW5yy.js} +3 -3
- package/dist/components/{p-DXcUl9ra.js.map → p-CKcfW5yy.js.map} +1 -1
- package/dist/components/{p-luUMKdgw.js → p-CQLcNjHY.js} +4 -4
- package/dist/components/{p-luUMKdgw.js.map → p-CQLcNjHY.js.map} +1 -1
- package/dist/components/{p-VhtlbR2b.js → p-CUpMtLut.js} +22 -22
- package/dist/components/{p-VhtlbR2b.js.map → p-CUpMtLut.js.map} +1 -1
- package/dist/components/p-C_AsW3bA.js +254 -0
- package/dist/components/p-C_AsW3bA.js.map +1 -0
- package/dist/components/{p-C6C9ED7Y.js → p-C_Vc_A7s.js} +4 -4
- package/dist/components/{p-C6C9ED7Y.js.map → p-C_Vc_A7s.js.map} +1 -1
- package/dist/components/{p-D8X0-w1T.js → p-C_ehoWMH.js} +3 -3
- package/dist/components/{p-D8X0-w1T.js.map → p-C_ehoWMH.js.map} +1 -1
- package/dist/components/{p-CxzpEiS1.js → p-CcAoEa94.js} +7 -7
- package/dist/components/{p-CxzpEiS1.js.map → p-CcAoEa94.js.map} +1 -1
- package/dist/components/{p-Bk9zH-CZ.js → p-CeS6otF4.js} +3 -3
- package/dist/components/{p-Bk9zH-CZ.js.map → p-CeS6otF4.js.map} +1 -1
- package/dist/components/{p-BnOS2YuY.js → p-CmK_IvYa.js} +18 -18
- package/dist/components/{p-BnOS2YuY.js.map → p-CmK_IvYa.js.map} +1 -1
- package/dist/components/{p-Bj-KxpsX.js → p-CpKb3EoJ.js} +4 -4
- package/dist/components/{p-Bj-KxpsX.js.map → p-CpKb3EoJ.js.map} +1 -1
- package/dist/components/{p-CcyaTNu0.js → p-CxYiPrwK.js} +3 -3
- package/dist/components/{p-CcyaTNu0.js.map → p-CxYiPrwK.js.map} +1 -1
- package/dist/components/{p-rORTaeDO.js → p-D0mXaQl0.js} +28 -28
- package/dist/components/{p-rORTaeDO.js.map → p-D0mXaQl0.js.map} +1 -1
- package/dist/components/{p-BrOSaQiR.js → p-D7oemwx-.js} +3 -3
- package/dist/components/{p-BrOSaQiR.js.map → p-D7oemwx-.js.map} +1 -1
- package/dist/components/{p-Cbj0An1x.js → p-D9NhBc5M.js} +4 -4
- package/dist/components/{p-Cbj0An1x.js.map → p-D9NhBc5M.js.map} +1 -1
- package/dist/components/{p-CN3JbzXO.js → p-DCOrM6ok.js} +6 -6
- package/dist/components/{p-CN3JbzXO.js.map → p-DCOrM6ok.js.map} +1 -1
- package/dist/components/{p-RQfc-Gco.js → p-DHZ7HHPF.js} +5 -5
- package/dist/components/{p-RQfc-Gco.js.map → p-DHZ7HHPF.js.map} +1 -1
- package/dist/components/{p-BKGhsNBR.js → p-DL0eEfed.js} +3 -3
- package/dist/components/{p-BKGhsNBR.js.map → p-DL0eEfed.js.map} +1 -1
- package/dist/components/{p-BpoNaOin.js → p-DNApmHm4.js} +3 -3
- package/dist/components/{p-BpoNaOin.js.map → p-DNApmHm4.js.map} +1 -1
- package/dist/components/{p-TLerUgoM.js → p-DNe_BJ12.js} +4 -4
- package/dist/components/{p-TLerUgoM.js.map → p-DNe_BJ12.js.map} +1 -1
- package/dist/components/{p-C8Q49Chb.js → p-DSW3nVlu.js} +6 -6
- package/dist/components/{p-C8Q49Chb.js.map → p-DSW3nVlu.js.map} +1 -1
- package/dist/components/{p-BEFukUDi.js → p-DUqnmvnV.js} +12 -12
- package/dist/components/{p-BEFukUDi.js.map → p-DUqnmvnV.js.map} +1 -1
- package/dist/components/{p-hsu4Tgtg.js → p-DdSWDxPz.js} +8 -8
- package/dist/components/{p-hsu4Tgtg.js.map → p-DdSWDxPz.js.map} +1 -1
- package/dist/components/{p-Dk3T0btI.js → p-DduMRsdZ.js} +3 -3
- package/dist/components/{p-Dk3T0btI.js.map → p-DduMRsdZ.js.map} +1 -1
- package/dist/components/{p-BEBt1qJA.js → p-Dg6l9hay.js} +6 -6
- package/dist/components/{p-BEBt1qJA.js.map → p-Dg6l9hay.js.map} +1 -1
- package/dist/components/{p-NcCpLnkb.js → p-Dr63CkEP.js} +4 -4
- package/dist/components/{p-NcCpLnkb.js.map → p-Dr63CkEP.js.map} +1 -1
- package/dist/components/{p-wbR36hMv.js → p-Dy0A4tjX.js} +3 -3
- package/dist/components/{p-wbR36hMv.js.map → p-Dy0A4tjX.js.map} +1 -1
- package/dist/components/{p-D9wXrsVN.js → p-DyetgsGy.js} +3 -3
- package/dist/components/{p-D9wXrsVN.js.map → p-DyetgsGy.js.map} +1 -1
- package/dist/components/{p-Cgs2Vwnw.js → p-EGGrvNi9.js} +3 -3
- package/dist/components/{p-Cgs2Vwnw.js.map → p-EGGrvNi9.js.map} +1 -1
- package/dist/components/{p-kAWPUm7V.js → p-NlUtRQ04.js} +4 -4
- package/dist/components/{p-kAWPUm7V.js.map → p-NlUtRQ04.js.map} +1 -1
- package/dist/components/{p-CTquChw2.js → p-Rp0-ilMh.js} +6 -6
- package/dist/components/{p-CTquChw2.js.map → p-Rp0-ilMh.js.map} +1 -1
- package/dist/components/{p-CBa0xdMN.js → p-SMyC9apx.js} +50 -22
- package/dist/components/p-SMyC9apx.js.map +1 -0
- package/dist/components/{p-S-FbLIxn.js → p-T7moER5i.js} +4 -4
- package/dist/components/{p-S-FbLIxn.js.map → p-T7moER5i.js.map} +1 -1
- package/dist/components/{p-Cpjhc0YK.js → p-b7wvY55u.js} +10 -10
- package/dist/components/{p-Cpjhc0YK.js.map → p-b7wvY55u.js.map} +1 -1
- package/dist/components/p-cHn6O-Kf.js.map +1 -1
- package/dist/components/p-cnc7dVkV.js +54 -0
- package/dist/components/p-cnc7dVkV.js.map +1 -0
- package/dist/components/{p-z7U72LlR.js → p-eWLlBbW4.js} +34 -9
- package/dist/components/p-eWLlBbW4.js.map +1 -0
- package/dist/components/{p-DhhgSVau.js → p-gmgjmDmq.js} +3 -3
- package/dist/components/{p-DhhgSVau.js.map → p-gmgjmDmq.js.map} +1 -1
- package/dist/components/{p-Bu66Dgkv.js → p-hCYiKj5a.js} +8 -8
- package/dist/components/{p-Bu66Dgkv.js.map → p-hCYiKj5a.js.map} +1 -1
- package/dist/components/{p-CM3ctvp4.js → p-hE783gRg.js} +7 -7
- package/dist/components/{p-CM3ctvp4.js.map → p-hE783gRg.js.map} +1 -1
- package/dist/components/{p-CIpMWSO-.js → p-rdQ2rZRt.js} +4 -4
- package/dist/components/{p-CIpMWSO-.js.map → p-rdQ2rZRt.js.map} +1 -1
- package/dist/components/{p-DR6wzjCF.js → p-s-E_YkJ2.js} +20 -20
- package/dist/components/{p-DR6wzjCF.js.map → p-s-E_YkJ2.js.map} +1 -1
- package/dist/components/{p-fy6svpeL.js → p-vMoznCJq.js} +5 -5
- package/dist/components/{p-fy6svpeL.js.map → p-vMoznCJq.js.map} +1 -1
- package/dist/components/{p-BH7Tv4o3.js → p-w-p9UZGH.js} +3 -3
- package/dist/components/{p-BH7Tv4o3.js.map → p-w-p9UZGH.js.map} +1 -1
- package/dist/components/{p-DaM2q3ak.js → p-zpsvWry-.js} +3 -3
- package/dist/components/{p-DaM2q3ak.js.map → p-zpsvWry-.js.map} +1 -1
- package/dist/components/test-input-tag.js +9 -9
- package/dist/docs.json +1035 -39
- package/dist/esm/gb-avatar-dropdown_5.entry.js +5 -5
- package/dist/esm/gb-avatar-label-group_3.entry.js +2 -2
- package/dist/esm/{gb-avatar_44.entry.js → gb-avatar_50.entry.js} +708 -100
- package/dist/esm/gb-collapse-button_4.entry.js +2 -2
- package/dist/esm/gb-header.entry.js +2 -2
- package/dist/esm/gb-horizontal-tabs.entry.js +1 -1
- package/dist/esm/gb-logo.entry.js +1 -1
- package/dist/esm/gb-metric-card.entry.js +1 -1
- package/dist/esm/gb-metric-featured-icon.entry.js +1 -1
- package/dist/esm/gb-modal-action_3.entry.js +5 -5
- package/dist/esm/gb-nav-bar-item.entry.js +1 -1
- package/dist/esm/gb-nav-bar-sidemenu.entry.js +1 -1
- package/dist/esm/gb-nav-bar.entry.js +1 -1
- package/dist/esm/gb-notification-content.entry.js +1 -1
- 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-progress-bar.entry.js +1 -1
- package/dist/esm/gb-progress-circle.entry.js +1 -1
- package/dist/esm/gb-prompt-modal.entry.js +1 -1
- package/dist/esm/gb-quick-action-card.entry.js +1 -1
- package/dist/esm/gb-quick-action-icon.entry.js +1 -1
- package/dist/esm/gb-scrollbar.entry.js +1 -1
- package/dist/esm/gb-sidebar.entry.js +1 -1
- package/dist/esm/gb-slider-control-handle.entry.js +1 -1
- package/dist/esm/gb-slider.entry.js +1 -1
- package/dist/esm/gb-step-base_2.entry.js +2 -2
- package/dist/esm/gb-stepper-horizontal-icons-centered.entry.js +1 -1
- package/dist/esm/gb-stepper-horizontal-icons-connected.entry.js +1 -1
- package/dist/esm/gb-stepper-horizontal-line-with-text.entry.js +1 -1
- package/dist/esm/gb-stepper-horizontal-minimal-icons.entry.js +1 -1
- package/dist/esm/gb-stepper-vertical-icons-with-text.entry.js +1 -1
- package/dist/esm/gb-tab-button-base.entry.js +2 -2
- package/dist/esm/gb-toast-button.entry.js +1 -1
- package/dist/esm/gb-toast.entry.js +1 -1
- package/dist/esm/gb-vertical-tabs.entry.js +1 -1
- package/dist/esm/globuscomponents.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/reusableModels-cHn6O-Kf.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/{p-e2b42130.entry.js → p-034da873.entry.js} +2 -2
- package/dist/globuscomponents/{p-66f5363a.entry.js → p-0c2cf48d.entry.js} +2 -2
- package/dist/globuscomponents/{p-b0c00fce.entry.js → p-19bbd506.entry.js} +2 -2
- package/dist/globuscomponents/{p-d26d3b23.entry.js → p-1c049837.entry.js} +2 -2
- package/dist/globuscomponents/{p-669c6e2e.entry.js → p-1d81d30d.entry.js} +2 -2
- package/dist/globuscomponents/{p-314e31ff.entry.js → p-1e5ca991.entry.js} +2 -2
- package/dist/globuscomponents/{p-64c25eca.entry.js → p-201f6b79.entry.js} +2 -2
- package/dist/globuscomponents/{p-af2fadf8.entry.js → p-21ee6522.entry.js} +2 -2
- package/dist/globuscomponents/{p-5a002d95.entry.js → p-22e4f119.entry.js} +2 -2
- package/dist/globuscomponents/{p-b5e49cc3.entry.js → p-2f4914ad.entry.js} +2 -2
- package/dist/globuscomponents/{p-a8ed8e7c.entry.js → p-300cd753.entry.js} +2 -2
- package/dist/globuscomponents/{p-c4decd4a.entry.js → p-33dda74f.entry.js} +2 -2
- package/dist/globuscomponents/{p-9a086995.entry.js → p-45e02e0a.entry.js} +2 -2
- package/dist/globuscomponents/{p-4cb9a4c0.entry.js → p-4ec62490.entry.js} +2 -2
- package/dist/globuscomponents/{p-df5538b0.entry.js → p-4f44a0cb.entry.js} +2 -2
- package/dist/globuscomponents/{p-a998de8e.entry.js → p-51d2cdc0.entry.js} +2 -2
- package/dist/globuscomponents/{p-433c7415.entry.js → p-61872974.entry.js} +2 -2
- package/dist/globuscomponents/{p-fdd80101.entry.js → p-7483940f.entry.js} +2 -2
- package/dist/globuscomponents/{p-b72eda91.entry.js → p-75251944.entry.js} +2 -2
- package/dist/globuscomponents/{p-852014ab.entry.js → p-7ffe92a2.entry.js} +2 -2
- package/dist/globuscomponents/p-857494d2.entry.js +2 -0
- package/dist/globuscomponents/p-857494d2.entry.js.map +1 -0
- package/dist/globuscomponents/{p-0104af18.entry.js → p-8924879c.entry.js} +2 -2
- package/dist/globuscomponents/{p-da156fba.entry.js → p-8b534f24.entry.js} +2 -2
- package/dist/globuscomponents/{p-875ab43f.entry.js → p-908f92a7.entry.js} +2 -2
- package/dist/globuscomponents/{p-e8f42c89.entry.js → p-a304c960.entry.js} +2 -2
- package/dist/globuscomponents/{p-f904cfc0.entry.js → p-ae4b0f08.entry.js} +2 -2
- package/dist/globuscomponents/{p-6d1f7f89.entry.js → p-bf5b3dfe.entry.js} +2 -2
- package/dist/globuscomponents/p-bfbcd486.entry.js +2 -0
- package/dist/globuscomponents/p-cHn6O-Kf.js.map +1 -1
- package/dist/globuscomponents/{p-2a47d7a6.entry.js → p-e49cac6d.entry.js} +2 -2
- package/dist/globuscomponents/{p-7133f4ef.entry.js → p-e9b5af5c.entry.js} +2 -2
- package/dist/globuscomponents/{p-05a29c1a.entry.js → p-ee3e3ffa.entry.js} +2 -2
- package/dist/globuscomponents/{p-40e5be27.entry.js → p-ee7e25c4.entry.js} +2 -2
- package/dist/globuscomponents/p-f084a9b2.entry.js +2 -0
- package/dist/globuscomponents/{p-60e4f305.entry.js → p-f3ac27d9.entry.js} +2 -2
- package/dist/globuscomponents/{p-e68d4d8a.entry.js → p-f53134f7.entry.js} +2 -2
- package/dist/globuscomponents/{p-3e00d45a.entry.js → p-fdb677f0.entry.js} +2 -2
- package/dist/types/components/gb-date-picker/gb-date-picker.d.ts +1 -0
- package/dist/types/components/gb-mega-input-field-base/gb-mega-input-field-base.d.ts +10 -2
- package/dist/types/components/gb-rich-text/gb-rich-text.d.ts +35 -0
- package/dist/types/components/gb-table/gb-table.d.ts +12 -5
- package/dist/types/components/gb-token-field-compact/gb-token-field-compact.d.ts +8 -0
- package/dist/types/components/gb-token-field-compressed/gb-token-field-compressed.d.ts +12 -0
- package/dist/types/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.d.ts +4 -1
- package/dist/types/components/gb-wysiwyg-toolbar/gb-wysiwyg-toolbar.d.ts +37 -0
- package/dist/types/components.d.ts +301 -26
- package/dist/types/models/reusableModels.d.ts +17 -9
- package/package.json +7 -1
- package/dist/cjs/gb-mega-input-field-base.cjs.entry.js +0 -36
- package/dist/cjs/gb-mega-input-field-base.entry.cjs.js.map +0 -1
- package/dist/cjs/gb-token-field-compact.cjs.entry.js +0 -20
- package/dist/cjs/gb-token-field-compact.entry.cjs.js.map +0 -1
- package/dist/cjs/gb-token-field-compressed.cjs.entry.js +0 -24
- package/dist/cjs/gb-token-field-compressed.entry.cjs.js.map +0 -1
- package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +0 -19
- package/dist/cjs/gb-wysiwyg-editor-icon.entry.cjs.js.map +0 -1
- package/dist/components/p-CBa0xdMN.js.map +0 -1
- package/dist/components/p-DA7bBOGE.js.map +0 -1
- package/dist/components/p-pZkzqT4t.js +0 -41
- package/dist/components/p-pZkzqT4t.js.map +0 -1
- package/dist/components/p-z7U72LlR.js.map +0 -1
- package/dist/esm/gb-mega-input-field-base.entry.js +0 -34
- package/dist/esm/gb-mega-input-field-base.entry.js.map +0 -1
- package/dist/esm/gb-token-field-compact.entry.js +0 -18
- package/dist/esm/gb-token-field-compact.entry.js.map +0 -1
- package/dist/esm/gb-token-field-compressed.entry.js +0 -22
- package/dist/esm/gb-token-field-compressed.entry.js.map +0 -1
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js +0 -17
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js.map +0 -1
- package/dist/globuscomponents/gb-mega-input-field-base.entry.esm.js.map +0 -1
- package/dist/globuscomponents/gb-token-field-compact.entry.esm.js.map +0 -1
- package/dist/globuscomponents/gb-token-field-compressed.entry.esm.js.map +0 -1
- package/dist/globuscomponents/gb-wysiwyg-editor-icon.entry.esm.js.map +0 -1
- package/dist/globuscomponents/p-05e6b1af.entry.js +0 -2
- package/dist/globuscomponents/p-05e6b1af.entry.js.map +0 -1
- package/dist/globuscomponents/p-5d0e8192.entry.js +0 -2
- package/dist/globuscomponents/p-5d0e8192.entry.js.map +0 -1
- package/dist/globuscomponents/p-7b7eee40.entry.js +0 -2
- package/dist/globuscomponents/p-97270692.entry.js +0 -2
- package/dist/globuscomponents/p-97270692.entry.js.map +0 -1
- package/dist/globuscomponents/p-9f87e97d.entry.js +0 -2
- package/dist/globuscomponents/p-daca0c73.entry.js +0 -2
- package/dist/globuscomponents/p-daca0c73.entry.js.map +0 -1
- package/dist/globuscomponents/p-ed734b26.entry.js +0 -2
- package/dist/globuscomponents/p-ed734b26.entry.js.map +0 -1
- /package/dist/globuscomponents/{p-e2b42130.entry.js.map → p-034da873.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-66f5363a.entry.js.map → p-0c2cf48d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-b0c00fce.entry.js.map → p-19bbd506.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d26d3b23.entry.js.map → p-1c049837.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-669c6e2e.entry.js.map → p-1d81d30d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-314e31ff.entry.js.map → p-1e5ca991.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-64c25eca.entry.js.map → p-201f6b79.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-af2fadf8.entry.js.map → p-21ee6522.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5a002d95.entry.js.map → p-22e4f119.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-b5e49cc3.entry.js.map → p-2f4914ad.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a8ed8e7c.entry.js.map → p-300cd753.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-c4decd4a.entry.js.map → p-33dda74f.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-9a086995.entry.js.map → p-45e02e0a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-4cb9a4c0.entry.js.map → p-4ec62490.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-df5538b0.entry.js.map → p-4f44a0cb.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a998de8e.entry.js.map → p-51d2cdc0.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-433c7415.entry.js.map → p-61872974.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-fdd80101.entry.js.map → p-7483940f.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-b72eda91.entry.js.map → p-75251944.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-852014ab.entry.js.map → p-7ffe92a2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-0104af18.entry.js.map → p-8924879c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-da156fba.entry.js.map → p-8b534f24.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-875ab43f.entry.js.map → p-908f92a7.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e8f42c89.entry.js.map → p-a304c960.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-f904cfc0.entry.js.map → p-ae4b0f08.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-6d1f7f89.entry.js.map → p-bf5b3dfe.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-9f87e97d.entry.js.map → p-bfbcd486.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-2a47d7a6.entry.js.map → p-e49cac6d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7133f4ef.entry.js.map → p-e9b5af5c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-05a29c1a.entry.js.map → p-ee3e3ffa.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-40e5be27.entry.js.map → p-ee7e25c4.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7b7eee40.entry.js.map → p-f084a9b2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-60e4f305.entry.js.map → p-f3ac27d9.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e68d4d8a.entry.js.map → p-f53134f7.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-3e00d45a.entry.js.map → p-fdb677f0.entry.js.map} +0 -0
|
@@ -202,12 +202,12 @@ export class GbTextareaInputField {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
render() {
|
|
205
|
-
return (h("div", { key: '
|
|
205
|
+
return (h("div", { key: '7f1640fd2e4bff809d467ddeb2da1e7cd4f084ae', class: "textarea_container" }, h("div", { key: '40f00ae847769251b91b3dd523da2b09babedba4', class: "input_with_label" }, this.showLabel && h("p", { key: '281fabe6dc15dec6e6c64ec0c97c2ae6d9321116', class: `label text-sm-medium` }, this.label), this.type === 'default' && (h("textarea", { key: 'f0964373048c4fb8fa45b71323623d13f204bf40', ref: el => (this.textarea = el), onInput: () => this.handleInput(), onFocus: () => this.handleInputFocus(), class: `textarea default_textarea ${this.state} ${this.destructive ? 'destructive' : ''}`, placeholder: this.placeholderText, value: this.inputValue })), this.type === 'tags' && (h("div", { key: '494bc2896b75844c6dc0c82a3ff86029a5785b25', class: "textarea_tags" }, h("div", { key: 'a03db442bb959cbecf4b812aa36d302bf5b2853a', class: `textarea ${this.type} ${this.state} ${this.destructive ? 'destructive' : ''}`, onClick: () => this.handleWrapperClick() }, h("div", { key: '63aa27cbcb22239d7a161260107fdd58f04a454a', 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("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(index) }, h("p", { class: "text-xs-medium" }, item.objectName.split(' ')[0]), h("h1", { slot: "initials", class: "text-xxs-semi-bold" }, item.objectName
|
|
206
206
|
.split(' ')
|
|
207
207
|
.map(part => part.charAt(0).toUpperCase())
|
|
208
|
-
.join(''))))) : (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(index) }, h("p", { class: "text-xs-medium" }, 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), key: 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), key: index }, h("p", null, val)))))))), h("span", { key: '
|
|
208
|
+
.join(''))))) : (h("div", { class: "added_tag", key: index }, h("gb-tag", { size: "sm", icon: this.icon ? this.icon : 'avatar', action: "X_close", onClick: () => this.handleTagRemove(index) }, h("p", { class: "text-xs-medium" }, 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), key: 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), key: index }, h("p", null, val)))))))), h("span", { key: '92a4fe5dfa8c9c6333e70423988167cf5fd7341b', class: "hidden-span", ref: el => (this.hiddenSpan = el) }, this.inputValue || ' '), h("div", { key: '1dfe2603af216f0f87c479100da3492ab90ce51a', class: "input_field" }, h("input", { key: '32764ad0d98c59eb06d1918439978762dcf63ae2', id: this.idOfInput, class: `input_like text-md-regular ${this.state}`, type: "text",
|
|
209
209
|
// placeholder={this.placeholderText}
|
|
210
|
-
value: this.inputValue, readOnly: this.isReadOnly, ref: el => (this.inputElement = el), onBlur: () => this.emitInputValue() }))), this.destructive && (h("div", { key: '
|
|
210
|
+
value: this.inputValue, readOnly: this.isReadOnly, ref: el => (this.inputElement = el), onBlur: () => this.emitInputValue() }))), this.destructive && (h("div", { key: '1bee1a61f8e868887ea7970b906b34a232a2181e', class: "help_icon" }, h("svg", { key: 'afc53d0efddcec21c3e578cd01990fee6e00514a', xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { key: 'f957f902966fa4912d3862dc2fd2842400668550', d: "M7.9947 10H8.00069M8.00004 8.00004V5.33337M14.6667 8.00004C14.6667 11.6819 11.6819 14.6667 8.00004 14.6667C4.31814 14.6667 1.33337 11.6819 1.33337 8.00004C1.33337 4.31814 4.31814 1.33337 8.00004 1.33337C11.6819 1.33337 14.6667 4.31814 14.6667 8.00004Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), this.show && (h("div", { key: '0495f43158cbe43f0cd6fdb74f2599e4ab3a88ea', class: `dropdown_menu` }, 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'
|
|
211
211
|
? [h("p", { slot: "name" }, item.objectName), h("p", { slot: "supporting_text" }, item.objectValue)]
|
|
212
212
|
: 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))));
|
|
213
213
|
}
|
|
@@ -18,7 +18,7 @@ export class GbThemeTab {
|
|
|
18
18
|
const systemIconSrc = getAssetPath(`assets/laptop.svg`);
|
|
19
19
|
const sunSrc = getAssetPath(`assets/sun-02.svg`);
|
|
20
20
|
const moonSrc = getAssetPath(`assets/moon-02.svg`);
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '22142caeba94a424f22095a089c6b89e35ccee8f', class: `theme_tab_div` }, h("div", { key: 'd79f704380b8a9cc32ba790af6e79570c31fcee2', class: "tab" }, h("gb-icon-button-base", { key: '720fc26515d8637d751e64b169faf0398886b32b', current: this.currentActiveTab === 'system' ? true : false, icon: systemIconSrc, label: "System", onClick: () => this.tabClicked('system') })), h("div", { key: '8f3f6724aec88a09c72006140c96cac7ec87013d', class: "tab" }, h("gb-icon-button-base", { key: '490f5a6b8f1f41691e9763c5cf4c47bbdf8867b8', current: this.currentActiveTab === 'light' ? true : false, icon: sunSrc, label: "Light", onClick: () => this.tabClicked('light') })), h("div", { key: '46c9c11069b6d0ebcb3515d6f6c804ae9c2032a6', class: "tab" }, h("gb-icon-button-base", { key: '6e5fa25a3190c9101c0e2d1ef486e9c6419a5ce1', current: this.currentActiveTab === 'dark' ? true : false, icon: moonSrc, label: "Dark", onClick: () => this.tabClicked('dark') }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "gb-theme-tab"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,7 @@ export class GbToast {
|
|
|
31
31
|
this.close.emit();
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '8e008798f29a385fcd8057051ece35e9b88e2c2e', class: `toast_div ${this.internalColor} ${this.size} ${this.breakpoint}` }, this.size === 'floating' && (h(Fragment, null, h("div", { key: '4cba64719eab9997e8be781aee830d2e59a26e45', class: `icon_container` }, this.internalColor === 'success' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "29", viewBox: "0 0 28 29", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { opacity: "0.4", d: "M14.0666 2.24988H14.0665H13.9331H13.9331C11.3773 2.24986 9.36985 2.24985 7.80253 2.46057C6.19643 2.67651 4.92213 3.12805 3.9209 4.12928C2.91967 5.13051 2.46813 6.40481 2.2522 8.01091C2.04148 9.57822 2.04149 11.5857 2.0415 14.1415V14.1415V14.2749V14.2749C2.04149 16.8307 2.04148 18.8382 2.2522 20.4055C2.46813 22.0116 2.91967 23.2859 3.9209 24.2871C4.92213 25.2884 6.19643 25.7399 7.80253 25.9559C9.36985 26.1666 11.3773 26.1666 13.9331 26.1665H14.0665C16.6223 26.1666 18.6298 26.1666 20.1971 25.9559C21.8032 25.7399 23.0775 25.2884 24.0788 24.2871C25.08 23.2859 25.5315 22.0116 25.7475 20.4055C25.9582 18.8382 25.9582 16.8308 25.9582 14.2749V14.1415C25.9582 11.5857 25.9582 9.57822 25.7475 8.01091C25.5315 6.40481 25.08 5.13051 24.0788 4.12928C23.0775 3.12805 21.8032 2.67651 20.1971 2.46057C18.6298 2.24985 16.6224 2.24986 14.0666 2.24988Z", fill: "var(--color-icon-success, #079455)" }), h("path", { d: "M19.2265 11.1487C19.7918 10.8396 19.9995 10.1307 19.6903 9.56536C19.3811 9.00004 18.6722 8.79238 18.1069 9.10154C15.9735 10.2683 14.2094 12.5199 13.0232 14.3362C12.5849 15.0074 12.2104 15.6429 11.9108 16.1812C11.6313 15.9101 11.3545 15.6747 11.1069 15.479C10.783 15.2228 10.4915 15.0208 10.2789 14.8816L9.91136 14.6534C9.35166 14.3342 8.63915 14.5291 8.31994 15.0888C8.0008 15.6484 8.19559 16.3607 8.75499 16.68L9.00033 16.8335C9.16695 16.9426 9.40042 17.1043 9.6598 17.3093C10.1936 17.7314 10.7696 18.2846 11.1321 18.8907C11.3546 19.2626 11.7649 19.4806 12.1977 19.4567C12.6303 19.4328 13.0142 19.1708 13.1944 18.7769L13.309 18.5372C13.388 18.3756 13.5063 18.1396 13.6603 17.8487C13.9689 17.2657 14.4176 16.4684 14.9769 15.612C16.1241 13.8554 17.6266 12.0237 19.2265 11.1487Z", fill: "var(--color-icon-success, #079455)" }))) : this.color === 'error' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "29", viewBox: "0 0 28 29", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { opacity: "0.4", d: "M14.0665 2.49945C16.6224 2.49944 18.6298 2.49942 20.1971 2.71014C21.8032 2.92608 23.0775 3.37762 24.0788 4.37885C25.08 5.38008 25.5315 6.65438 25.7475 8.26048C25.9582 9.82779 25.9582 11.8352 25.9582 14.391V14.3911V14.5245V14.5245C25.9582 17.0803 25.9582 19.0878 25.7475 20.6551C25.5315 22.2612 25.08 23.5355 24.0788 24.5367C23.0775 25.538 21.8032 25.9895 20.1971 26.2054C18.6298 26.4161 16.6224 26.4161 14.0666 26.4161H14.0665H13.9331H13.9331C11.3773 26.4161 9.36984 26.4161 7.80253 26.2054C6.19643 25.9895 4.92213 25.538 3.9209 24.5367C2.91967 23.5355 2.46813 22.2612 2.2522 20.6551C2.04148 19.0878 2.04149 17.0803 2.0415 14.5245V14.3911C2.04149 11.8353 2.04148 9.8278 2.2522 8.26048C2.46813 6.65438 2.91967 5.38008 3.9209 4.37885C4.92213 3.37762 6.19643 2.92608 7.80253 2.71014C9.36985 2.49942 11.3773 2.49944 13.9331 2.49945H14.0665Z", fill: "var(--color-icon-danger, #B51726)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8335 19.7075C12.8335 19.0632 13.3535 18.5409 13.9949 18.5409H14.0054C14.6468 18.5409 15.1668 19.0632 15.1668 19.7075C15.1668 20.3519 14.6468 20.8742 14.0054 20.8742H13.9949C13.3535 20.8742 12.8335 20.3519 12.8335 19.7075Z", fill: "var(--color-icon-danger, #B51726)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14.0003 16.2075C13.356 16.2075 12.8336 15.6852 12.8336 15.0409L12.8336 10.3742C12.8336 9.72985 13.356 9.20752 14.0003 9.20752C14.6446 9.20752 15.167 9.72985 15.167 10.3742L15.167 15.0409C15.167 15.6852 14.6446 16.2075 14.0003 16.2075Z", fill: "var(--color-icon-danger, #B51726)" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 28 28", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { opacity: "0.4", d: "M14.0667 2.04163C16.6225 2.04161 18.63 2.0416 20.1973 2.25232C21.8034 2.46825 23.0777 2.91979 24.079 3.92102C25.0802 4.92226 25.5317 6.19655 25.7477 7.80265C25.9584 9.36996 25.9584 11.3774 25.9584 13.9332V13.9333V14.0667V14.0667C25.9584 16.6225 25.9584 18.63 25.7477 20.1973C25.5317 21.8034 25.0802 23.0777 24.079 24.0789C23.0777 25.0801 21.8034 25.5317 20.1973 25.7476C18.63 25.9583 16.6226 25.9583 14.0668 25.9583H14.0667H13.9333H13.9333C11.3775 25.9583 9.37003 25.9583 7.80271 25.7476C6.19661 25.5317 4.92232 25.0801 3.92109 24.0789C2.91985 23.0777 2.46831 21.8034 2.25238 20.1973C2.04166 18.6299 2.04167 16.6225 2.04169 14.0667V13.9333C2.04167 11.3774 2.04166 9.36997 2.25238 7.80265C2.46831 6.19655 2.91985 4.92226 3.92109 3.92102C4.92232 2.91979 6.19661 2.46825 7.80271 2.25232C9.37003 2.0416 11.3775 2.04161 13.9333 2.04163H14.0667Z", fill: "var(--color-icon, #4B5565)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.6289 12.2818C13.9171 12.3206 14.3158 12.4243 14.6541 12.7626C14.9924 13.101 15.0962 13.4997 15.1349 13.7879C15.167 14.0266 15.1669 14.3043 15.1667 14.5375C15.1667 14.553 15.1667 14.5683 15.1667 14.5834V19.2501C15.1667 19.8944 14.6444 20.4167 14 20.4167C13.3557 20.4167 12.8334 19.8944 12.8334 19.2501V14.5834C12.189 14.5834 11.6667 14.0611 11.6667 13.4167C11.6667 12.7724 12.189 12.2501 12.8334 12.2501C12.8485 12.2501 12.8638 12.2501 12.8793 12.2501C13.1125 12.2499 13.3901 12.2497 13.6289 12.2818Z", fill: "var(--color-icon, #4B5565)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8333 8.75004C12.8333 8.10571 13.3533 7.58337 13.9947 7.58337H14.0051C14.6466 7.58337 15.1666 8.10571 15.1666 8.75004C15.1666 9.39437 14.6466 9.91671 14.0051 9.91671H13.9947C13.3533 9.91671 12.8333 9.39437 12.8333 8.75004Z", fill: "var(--color-icon, #4B5565)" })))), h("div", { key: '6a1edc226c3b36e86bda125689430f8a9cd7d72f', class: `content ${this.size} ${this.actions ? ' actions' : ''}` }, h("div", { key: 'b27379acb09602fa63210745889367e7fbcd61f1', class: `text ${!this.internalSupportingText ? 'no_supporting_text' : ''} ${this.size}` }, h("p", { key: 'd5440bf0763a97d324bcd8681236d14d97cfa76e', class: `text-md-semi-bold main_text_${this.internalColor}` }, this.internalMainText), this.showSupportingText && h("p", { key: 'd9b376bd87194e2a2918e1d5fe0bbd4034ef3556', class: `text-sm-regular supporting_text_${this.internalColor}` }, this.internalSupportingText)), this.actions && (h("div", { key: 'e7aafbd466a2d3c09b370fb49c41c573322876cf', class: `actions ${this.size} ${!this.showSupportingText ? 'only_actions' : ''}` }, this.color === 'default' ? (h(Fragment, null, this.secondActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_gray" }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_color" }, h("p", null, this.firstActionText))))) : (h(Fragment, null, this.secondActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.firstActionText)))))))), this.xCloseButton && (h("gb-button-close", { key: '6ae9ace08932628f7b461682c706b14ebf150ab5', size: "sm", color: this.internalColor === 'default' ? 'gray' : this.internalColor === 'gray' ? 'gray' : this.internalColor, class: `close_button ${this.size}`, onClick: () => this.closeToast() })))), this.size === 'full_width' && (h("div", { key: '7e7a8a9ebcb859ce4d40e69879acb40d4fc4ec1e', class: `container ${this.breakpoint}` }, h("div", { key: 'c4299abb295ebc7ddaf6b4d12c9f10dc26874b56', class: `full_width_content ${this.breakpoint}` }, h("div", { key: '335c93610851d87aa5f4a6608e755d8b7050899e', class: `inner_content ${this.breakpoint}` }, h("div", { key: 'b41813a81c791bffe0b1aeb1478bbb208fcbea2e', class: `icon_container` }, h("svg", { key: '2ed39468968efe8504367296d1bebe9ff7c0459a', xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 28 28", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { key: '05d57695183f8325c7c48385b13f6b13f89c65cc', opacity: "0.4", d: "M14.0667 2.04163C16.6225 2.04161 18.63 2.0416 20.1973 2.25232C21.8034 2.46825 23.0777 2.91979 24.079 3.92102C25.0802 4.92226 25.5317 6.19655 25.7477 7.80265C25.9584 9.36996 25.9584 11.3774 25.9584 13.9332V13.9333V14.0667V14.0667C25.9584 16.6225 25.9584 18.63 25.7477 20.1973C25.5317 21.8034 25.0802 23.0777 24.079 24.0789C23.0777 25.0801 21.8034 25.5317 20.1973 25.7476C18.63 25.9583 16.6226 25.9583 14.0668 25.9583H14.0667H13.9333H13.9333C11.3775 25.9583 9.37003 25.9583 7.80271 25.7476C6.19661 25.5317 4.92232 25.0801 3.92109 24.0789C2.91985 23.0777 2.46831 21.8034 2.25238 20.1973C2.04166 18.6299 2.04167 16.6225 2.04169 14.0667V13.9333C2.04167 11.3774 2.04166 9.36997 2.25238 7.80265C2.46831 6.19655 2.91985 4.92226 3.92109 3.92102C4.92232 2.91979 6.19661 2.46825 7.80271 2.25232C9.37003 2.0416 11.3775 2.04161 13.9333 2.04163H14.0667Z", fill: "#4B5565" }), h("path", { key: 'ea2c0edc484dff191d7cf1c2836f504654eec9a7', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.6289 12.2818C13.9171 12.3206 14.3158 12.4243 14.6541 12.7626C14.9924 13.101 15.0962 13.4997 15.1349 13.7879C15.167 14.0266 15.1669 14.3043 15.1667 14.5375C15.1667 14.553 15.1667 14.5683 15.1667 14.5834V19.2501C15.1667 19.8944 14.6444 20.4167 14 20.4167C13.3557 20.4167 12.8334 19.8944 12.8334 19.2501V14.5834C12.189 14.5834 11.6667 14.0611 11.6667 13.4167C11.6667 12.7724 12.189 12.2501 12.8334 12.2501C12.8485 12.2501 12.8638 12.2501 12.8793 12.2501C13.1125 12.2499 13.3901 12.2497 13.6289 12.2818Z", fill: "#4B5565" }), h("path", { key: 'a6b6886bfe6a8f3fd525bcbe97404937840806e4', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8333 8.75004C12.8333 8.10571 13.3533 7.58337 13.9947 7.58337H14.0051C14.6466 7.58337 15.1666 8.10571 15.1666 8.75004C15.1666 9.39437 14.6466 9.91671 14.0051 9.91671H13.9947C13.3533 9.91671 12.8333 9.39437 12.8333 8.75004Z", fill: "#4B5565" }))), h("div", { key: '00c2e4fb1031763ca4f98d702bd70939db828d67', class: `text ${this.size} ${this.breakpoint}` }, h("p", { key: 'b8720e224d0db307e940405cbe122f170f694d11', class: `text-sm-semi-bold main_text_${this.internalColor}` }, this.internalMainText), this.showSupportingText && h("p", { key: '7bc16bb6042cb75828c50f456196a120a9225505', class: `text-xs-regular supporting_text_${this.internalColor}` }, this.internalSupportingText))), this.actions && (h("div", { key: 'd2d6eff84541a7fedcc3c9b2ce5031728b40e28a', class: `actions ${this.size} ${this.breakpoint} ${!this.showSupportingText ? 'only_actions' : ''}` }, this.color === 'default' ? (h(Fragment, null, this.secondActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_gray" }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_color" }, h("p", null, this.firstActionText))))) : (h(Fragment, null, this.secondActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.firstActionText))))))), this.xCloseButton && (h("gb-button-close", { key: 'c89acb62f8f28e5b8f42d5bd78d1b913008db09b', size: "sm", color: this.internalColor === 'default' ? 'gray' : this.internalColor === 'gray' ? 'gray' : this.internalColor, class: `close_button ${this.breakpoint}`, onClick: () => this.closeToast() })))))));
|
|
34
|
+
return (h("div", { key: 'cad09aceeff1970cde31abb1142e0ebb14c08d64', class: `toast_div ${this.internalColor} ${this.size} ${this.breakpoint}` }, this.size === 'floating' && (h(Fragment, null, h("div", { key: 'a5da21f568109bf203301aaf7f3cecf61b3b0cb2', class: `icon_container` }, this.internalColor === 'success' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "29", viewBox: "0 0 28 29", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { opacity: "0.4", d: "M14.0666 2.24988H14.0665H13.9331H13.9331C11.3773 2.24986 9.36985 2.24985 7.80253 2.46057C6.19643 2.67651 4.92213 3.12805 3.9209 4.12928C2.91967 5.13051 2.46813 6.40481 2.2522 8.01091C2.04148 9.57822 2.04149 11.5857 2.0415 14.1415V14.1415V14.2749V14.2749C2.04149 16.8307 2.04148 18.8382 2.2522 20.4055C2.46813 22.0116 2.91967 23.2859 3.9209 24.2871C4.92213 25.2884 6.19643 25.7399 7.80253 25.9559C9.36985 26.1666 11.3773 26.1666 13.9331 26.1665H14.0665C16.6223 26.1666 18.6298 26.1666 20.1971 25.9559C21.8032 25.7399 23.0775 25.2884 24.0788 24.2871C25.08 23.2859 25.5315 22.0116 25.7475 20.4055C25.9582 18.8382 25.9582 16.8308 25.9582 14.2749V14.1415C25.9582 11.5857 25.9582 9.57822 25.7475 8.01091C25.5315 6.40481 25.08 5.13051 24.0788 4.12928C23.0775 3.12805 21.8032 2.67651 20.1971 2.46057C18.6298 2.24985 16.6224 2.24986 14.0666 2.24988Z", fill: "var(--color-icon-success, #079455)" }), h("path", { d: "M19.2265 11.1487C19.7918 10.8396 19.9995 10.1307 19.6903 9.56536C19.3811 9.00004 18.6722 8.79238 18.1069 9.10154C15.9735 10.2683 14.2094 12.5199 13.0232 14.3362C12.5849 15.0074 12.2104 15.6429 11.9108 16.1812C11.6313 15.9101 11.3545 15.6747 11.1069 15.479C10.783 15.2228 10.4915 15.0208 10.2789 14.8816L9.91136 14.6534C9.35166 14.3342 8.63915 14.5291 8.31994 15.0888C8.0008 15.6484 8.19559 16.3607 8.75499 16.68L9.00033 16.8335C9.16695 16.9426 9.40042 17.1043 9.6598 17.3093C10.1936 17.7314 10.7696 18.2846 11.1321 18.8907C11.3546 19.2626 11.7649 19.4806 12.1977 19.4567C12.6303 19.4328 13.0142 19.1708 13.1944 18.7769L13.309 18.5372C13.388 18.3756 13.5063 18.1396 13.6603 17.8487C13.9689 17.2657 14.4176 16.4684 14.9769 15.612C16.1241 13.8554 17.6266 12.0237 19.2265 11.1487Z", fill: "var(--color-icon-success, #079455)" }))) : this.color === 'error' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "29", viewBox: "0 0 28 29", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { opacity: "0.4", d: "M14.0665 2.49945C16.6224 2.49944 18.6298 2.49942 20.1971 2.71014C21.8032 2.92608 23.0775 3.37762 24.0788 4.37885C25.08 5.38008 25.5315 6.65438 25.7475 8.26048C25.9582 9.82779 25.9582 11.8352 25.9582 14.391V14.3911V14.5245V14.5245C25.9582 17.0803 25.9582 19.0878 25.7475 20.6551C25.5315 22.2612 25.08 23.5355 24.0788 24.5367C23.0775 25.538 21.8032 25.9895 20.1971 26.2054C18.6298 26.4161 16.6224 26.4161 14.0666 26.4161H14.0665H13.9331H13.9331C11.3773 26.4161 9.36984 26.4161 7.80253 26.2054C6.19643 25.9895 4.92213 25.538 3.9209 24.5367C2.91967 23.5355 2.46813 22.2612 2.2522 20.6551C2.04148 19.0878 2.04149 17.0803 2.0415 14.5245V14.3911C2.04149 11.8353 2.04148 9.8278 2.2522 8.26048C2.46813 6.65438 2.91967 5.38008 3.9209 4.37885C4.92213 3.37762 6.19643 2.92608 7.80253 2.71014C9.36985 2.49942 11.3773 2.49944 13.9331 2.49945H14.0665Z", fill: "var(--color-icon-danger, #B51726)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8335 19.7075C12.8335 19.0632 13.3535 18.5409 13.9949 18.5409H14.0054C14.6468 18.5409 15.1668 19.0632 15.1668 19.7075C15.1668 20.3519 14.6468 20.8742 14.0054 20.8742H13.9949C13.3535 20.8742 12.8335 20.3519 12.8335 19.7075Z", fill: "var(--color-icon-danger, #B51726)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14.0003 16.2075C13.356 16.2075 12.8336 15.6852 12.8336 15.0409L12.8336 10.3742C12.8336 9.72985 13.356 9.20752 14.0003 9.20752C14.6446 9.20752 15.167 9.72985 15.167 10.3742L15.167 15.0409C15.167 15.6852 14.6446 16.2075 14.0003 16.2075Z", fill: "var(--color-icon-danger, #B51726)" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 28 28", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { opacity: "0.4", d: "M14.0667 2.04163C16.6225 2.04161 18.63 2.0416 20.1973 2.25232C21.8034 2.46825 23.0777 2.91979 24.079 3.92102C25.0802 4.92226 25.5317 6.19655 25.7477 7.80265C25.9584 9.36996 25.9584 11.3774 25.9584 13.9332V13.9333V14.0667V14.0667C25.9584 16.6225 25.9584 18.63 25.7477 20.1973C25.5317 21.8034 25.0802 23.0777 24.079 24.0789C23.0777 25.0801 21.8034 25.5317 20.1973 25.7476C18.63 25.9583 16.6226 25.9583 14.0668 25.9583H14.0667H13.9333H13.9333C11.3775 25.9583 9.37003 25.9583 7.80271 25.7476C6.19661 25.5317 4.92232 25.0801 3.92109 24.0789C2.91985 23.0777 2.46831 21.8034 2.25238 20.1973C2.04166 18.6299 2.04167 16.6225 2.04169 14.0667V13.9333C2.04167 11.3774 2.04166 9.36997 2.25238 7.80265C2.46831 6.19655 2.91985 4.92226 3.92109 3.92102C4.92232 2.91979 6.19661 2.46825 7.80271 2.25232C9.37003 2.0416 11.3775 2.04161 13.9333 2.04163H14.0667Z", fill: "var(--color-icon, #4B5565)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.6289 12.2818C13.9171 12.3206 14.3158 12.4243 14.6541 12.7626C14.9924 13.101 15.0962 13.4997 15.1349 13.7879C15.167 14.0266 15.1669 14.3043 15.1667 14.5375C15.1667 14.553 15.1667 14.5683 15.1667 14.5834V19.2501C15.1667 19.8944 14.6444 20.4167 14 20.4167C13.3557 20.4167 12.8334 19.8944 12.8334 19.2501V14.5834C12.189 14.5834 11.6667 14.0611 11.6667 13.4167C11.6667 12.7724 12.189 12.2501 12.8334 12.2501C12.8485 12.2501 12.8638 12.2501 12.8793 12.2501C13.1125 12.2499 13.3901 12.2497 13.6289 12.2818Z", fill: "var(--color-icon, #4B5565)" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8333 8.75004C12.8333 8.10571 13.3533 7.58337 13.9947 7.58337H14.0051C14.6466 7.58337 15.1666 8.10571 15.1666 8.75004C15.1666 9.39437 14.6466 9.91671 14.0051 9.91671H13.9947C13.3533 9.91671 12.8333 9.39437 12.8333 8.75004Z", fill: "var(--color-icon, #4B5565)" })))), h("div", { key: 'b8203a1cbf2982f9129ee042c30030c25f7aca76', class: `content ${this.size} ${this.actions ? ' actions' : ''}` }, h("div", { key: '8075a6e61abfb1f9b48f2d8aab6e3407fdbc80c3', class: `text ${!this.internalSupportingText ? 'no_supporting_text' : ''} ${this.size}` }, h("p", { key: '78945a26bed0c301cd8f55f78283977a5ca714d3', class: `text-md-semi-bold main_text_${this.internalColor}` }, this.internalMainText), this.showSupportingText && h("p", { key: 'cdbf5518ec14dc69c38ef53f5e087f93777eeaed', class: `text-sm-regular supporting_text_${this.internalColor}` }, this.internalSupportingText)), this.actions && (h("div", { key: '62b5e3b6b981f806fb6b4dcfd1a8385bf5406c2d', class: `actions ${this.size} ${!this.showSupportingText ? 'only_actions' : ''}` }, this.color === 'default' ? (h(Fragment, null, this.secondActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_gray" }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_color" }, h("p", null, this.firstActionText))))) : (h(Fragment, null, this.secondActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.firstActionText)))))))), this.xCloseButton && (h("gb-button-close", { key: 'b2edea43ae4fbfc18879e105915caaa51016f7da', size: "sm", color: this.internalColor === 'default' ? 'gray' : this.internalColor === 'gray' ? 'gray' : this.internalColor, class: `close_button ${this.size}`, onClick: () => this.closeToast() })))), this.size === 'full_width' && (h("div", { key: '90f5fd07f7eab8e447f687f6bbe9fad27ab187eb', class: `container ${this.breakpoint}` }, h("div", { key: 'd38cb46a7cae928891771adb85aa1245c37db391', class: `full_width_content ${this.breakpoint}` }, h("div", { key: '619a0ebc43c34c14b0130ec98b0d13b81b4cec8a', class: `inner_content ${this.breakpoint}` }, h("div", { key: 'fdc8ba0c748c5fe9f31c34f8943319e346d33eea', class: `icon_container` }, h("svg", { key: 'df8670a0deb8f893fd44d27d4cc85ad25c2de1ac', xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 28 28", fill: "none", class: `svg_icon ${this.internalColor}` }, h("path", { key: '201f73e22d85613196f2ff39e0b36b57122f7370', opacity: "0.4", d: "M14.0667 2.04163C16.6225 2.04161 18.63 2.0416 20.1973 2.25232C21.8034 2.46825 23.0777 2.91979 24.079 3.92102C25.0802 4.92226 25.5317 6.19655 25.7477 7.80265C25.9584 9.36996 25.9584 11.3774 25.9584 13.9332V13.9333V14.0667V14.0667C25.9584 16.6225 25.9584 18.63 25.7477 20.1973C25.5317 21.8034 25.0802 23.0777 24.079 24.0789C23.0777 25.0801 21.8034 25.5317 20.1973 25.7476C18.63 25.9583 16.6226 25.9583 14.0668 25.9583H14.0667H13.9333H13.9333C11.3775 25.9583 9.37003 25.9583 7.80271 25.7476C6.19661 25.5317 4.92232 25.0801 3.92109 24.0789C2.91985 23.0777 2.46831 21.8034 2.25238 20.1973C2.04166 18.6299 2.04167 16.6225 2.04169 14.0667V13.9333C2.04167 11.3774 2.04166 9.36997 2.25238 7.80265C2.46831 6.19655 2.91985 4.92226 3.92109 3.92102C4.92232 2.91979 6.19661 2.46825 7.80271 2.25232C9.37003 2.0416 11.3775 2.04161 13.9333 2.04163H14.0667Z", fill: "#4B5565" }), h("path", { key: 'c56671ec8e528a6288c538b52639f027289e1617', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.6289 12.2818C13.9171 12.3206 14.3158 12.4243 14.6541 12.7626C14.9924 13.101 15.0962 13.4997 15.1349 13.7879C15.167 14.0266 15.1669 14.3043 15.1667 14.5375C15.1667 14.553 15.1667 14.5683 15.1667 14.5834V19.2501C15.1667 19.8944 14.6444 20.4167 14 20.4167C13.3557 20.4167 12.8334 19.8944 12.8334 19.2501V14.5834C12.189 14.5834 11.6667 14.0611 11.6667 13.4167C11.6667 12.7724 12.189 12.2501 12.8334 12.2501C12.8485 12.2501 12.8638 12.2501 12.8793 12.2501C13.1125 12.2499 13.3901 12.2497 13.6289 12.2818Z", fill: "#4B5565" }), h("path", { key: 'e484be465c65f8817ce4fa5b74b175e86168d341', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.8333 8.75004C12.8333 8.10571 13.3533 7.58337 13.9947 7.58337H14.0051C14.6466 7.58337 15.1666 8.10571 15.1666 8.75004C15.1666 9.39437 14.6466 9.91671 14.0051 9.91671H13.9947C13.3533 9.91671 12.8333 9.39437 12.8333 8.75004Z", fill: "#4B5565" }))), h("div", { key: 'f7c46fd1069924cb2ea9a8e1d7983ecb55e15d8a', class: `text ${this.size} ${this.breakpoint}` }, h("p", { key: '484f8cf5d9b15e48b29ecac0daa575fdb73c572c', class: `text-sm-semi-bold main_text_${this.internalColor}` }, this.internalMainText), this.showSupportingText && h("p", { key: 'c6cf7761b3e7897f365d34e19166807f6d1585bb', class: `text-xs-regular supporting_text_${this.internalColor}` }, this.internalSupportingText))), this.actions && (h("div", { key: '87ed7d18ba986ec438dcb06c70a3e48f7fb8443e', class: `actions ${this.size} ${this.breakpoint} ${!this.showSupportingText ? 'only_actions' : ''}` }, this.color === 'default' ? (h(Fragment, null, this.secondActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_gray" }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-button", { size: "sm", icon: "default", state: "default", hierarchy: "link_color" }, h("p", null, this.firstActionText))))) : (h(Fragment, null, this.secondActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.secondActionText))), this.firstActionText && (h("gb-toast-button", { state: StateEnum.Default, color: this.internalColor }, h("p", null, this.firstActionText))))))), this.xCloseButton && (h("gb-button-close", { key: 'c0671efab9769e994def09c4727fa2ca4ddd9aca', size: "sm", color: this.internalColor === 'default' ? 'gray' : this.internalColor === 'gray' ? 'gray' : this.internalColor, class: `close_button ${this.breakpoint}`, onClick: () => this.closeToast() })))))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "gb-toast"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class GbToastButton {
|
|
|
5
5
|
slottedContent.classList.add('text-sm-semi-bold');
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h("div", { key: '
|
|
8
|
+
return (h("div", { key: 'da0aae5c747c007406336284011c8baa04a742ba', class: `toast_button ${this.state} ${this.color}` }, h("slot", { key: 'fe29920ef1cd324ceb4c320c86e0bb0157eccd97' })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "gb-toast-button"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,7 +42,7 @@ export class GbToggle {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '15437a4a5b3e37f89e8af81e4b81bd1619bc17b9', class: `toggle_div ${this.size}` }, this.position === 'left' && (h(Fragment, null, this.text && (h("div", { key: 'c2335d8a3e4885def1bd8b1dba54a9cdda9df872', class: "text" }, h("slot", { key: 'b46563c538cf14a3b86a242a0e5286ced33d6ff2', name: "main_text" }), this.supportingText && h("slot", { key: '726a615111e48dd89be8ac868cd118dd33122bab', name: "supporting_text" }))))), h("div", { key: '6d42afac636f6acde26a818394d09a1f7d650742', class: "toggle_base" }, h("gb-toggle-base", { key: '07f960712bc971c7a3ad34ba1dcd24187c58ee2c', size: this.size, state: this.state, pressed: this.pressed, onToggleClicked: this.onToggle.bind(this) })), this.position === 'right' && (h(Fragment, null, this.text && (h("div", { key: 'c1885d642c7ad87451aeac6b709b825d79352898', class: "text" }, h("slot", { key: 'ea81e623926061af60b3b98989e521fd6c6af7d7', name: "main_text" }), this.supportingText && h("slot", { key: '136fb277268626d72b25aea97247028032c94bcc', name: "supporting_text" })))))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "gb-toggle"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,8 +11,8 @@ export class GbToggleBase {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
return [
|
|
14
|
-
h("input", { key: '
|
|
15
|
-
h("label", { key: '
|
|
14
|
+
h("input", { key: '4cf2b1776bbb48e52a7857d990bd067767485f34', type: "checkbox", id: "customCheckbox", class: `${this.pressed ? 'pressed' : ''}`, readonly: true }),
|
|
15
|
+
h("label", { key: '834ccfb681b18e227b79c8f666c9835c50e7674e', onClick: () => this.handleToggleClick(), class: `${this.size} ${this.state} ${this.pressed ? 'pressed' : ''}`, htmlFor: "customCheckbox" }, this.pressed && this.state === 'default' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", class: `default_checked_svg ${this.size}` }, h("path", { d: "M2.08325 6.04167C2.08325 6.04167 2.70825 6.04167 3.54159 7.5C3.54159 7.5 5.85776 3.68056 7.91659 2.91667", stroke: "var(--color-background-selected, #075DB2)", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))) : this.pressed && this.state === 'disabled' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", class: `disabled_checked_svg ${this.size}` }, h("path", { d: "M2.08325 6.04167C2.08325 6.04167 2.70825 6.04167 3.54159 7.5C3.54159 7.5 5.85776 3.68056 7.91659 2.91667", stroke: "var(--color-background-gray-subtle, #E3E8EF)", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))) : null),
|
|
16
16
|
];
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "gb-toggle-base"; }
|
|
@@ -2809,15 +2809,28 @@
|
|
|
2809
2809
|
} */
|
|
2810
2810
|
|
|
2811
2811
|
|
|
2812
|
+
.compact_field_wrapper {
|
|
2813
|
+
display: flex;
|
|
2814
|
+
width: 100%;
|
|
2815
|
+
flex-direction: column;
|
|
2816
|
+
align-items: flex-start;
|
|
2817
|
+
gap: var(--spacing-2);
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
.input_with_label {
|
|
2821
|
+
display: flex;
|
|
2822
|
+
flex-direction: column;
|
|
2823
|
+
align-items: flex-start;
|
|
2824
|
+
gap: var(--spacing-2);
|
|
2825
|
+
align-self: stretch;
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2812
2828
|
.token_input {
|
|
2813
2829
|
border: 1px solid var(--color-border-input, #cdd5df);
|
|
2814
2830
|
outline: none;
|
|
2815
2831
|
border-radius: var(--rounded-sm);
|
|
2816
2832
|
width: 100%;
|
|
2817
|
-
|
|
2818
|
-
padding: 0.75rem 1rem;
|
|
2819
|
-
border-radius: 5px;
|
|
2820
|
-
color: var(--color-text);
|
|
2833
|
+
color: var(--color-text, #4b5565);
|
|
2821
2834
|
font-size: 18px;
|
|
2822
2835
|
letter-spacing: 1rem;
|
|
2823
2836
|
text-align: center;
|
|
@@ -2825,9 +2838,38 @@
|
|
|
2825
2838
|
|
|
2826
2839
|
.token_input::placeholder {
|
|
2827
2840
|
color: var(--color-text-disabled, #cdd5df);
|
|
2828
|
-
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
.token_input.sm {
|
|
2844
|
+
min-height: 2.75rem;
|
|
2845
|
+
font-family: Sora;
|
|
2829
2846
|
font-size: 1.5rem;
|
|
2830
2847
|
font-style: normal;
|
|
2831
2848
|
font-weight: 500;
|
|
2832
2849
|
line-height: 2rem; /* 133.333% */
|
|
2833
2850
|
}
|
|
2851
|
+
|
|
2852
|
+
.token_input.md,
|
|
2853
|
+
.token_input.lg {
|
|
2854
|
+
font-family: Sora;
|
|
2855
|
+
font-size: 1.875rem;
|
|
2856
|
+
font-style: normal;
|
|
2857
|
+
font-weight: 500;
|
|
2858
|
+
line-height: 2.375rem; /* 126.667% */
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
.token_input.md{
|
|
2862
|
+
min-height: 3rem;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
.token_input.lg{
|
|
2866
|
+
min-height: 3.5rem;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
label {
|
|
2870
|
+
color: var(--color-text, #4b5565);
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
.supporting_text {
|
|
2874
|
+
color: var(--color-text-subtle, #697586);
|
|
2875
|
+
}
|
|
@@ -3,9 +3,38 @@ export class GbTokenFieldCompact {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.label = '';
|
|
5
5
|
this.supportingText = '';
|
|
6
|
+
this.inputValue = ''; // ← add this
|
|
7
|
+
}
|
|
8
|
+
emitInputtedToken(event) {
|
|
9
|
+
let inputValue = event.target.value;
|
|
10
|
+
if (inputValue.length !== this.digits) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
inputValue = inputValue.replace(/[^0-9]/g, '').slice(0, this.digits);
|
|
14
|
+
this.tokenValueChanged.emit(inputValue);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
handleKeyDown(e) {
|
|
18
|
+
const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab'];
|
|
19
|
+
if ((e.ctrlKey || e.metaKey) && e.key === 'v')
|
|
20
|
+
return;
|
|
21
|
+
if (!/[0-9]/.test(e.key) && !allowed.includes(e.key)) {
|
|
22
|
+
e.preventDefault(); // blocks the keystroke entirely
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
handlePaste(e) {
|
|
26
|
+
e.preventDefault();
|
|
27
|
+
const pasted = e.clipboardData
|
|
28
|
+
.getData('text')
|
|
29
|
+
.replace(/[^0-9]/g, '')
|
|
30
|
+
.slice(0, this.digits);
|
|
31
|
+
this.inputValue = pasted;
|
|
32
|
+
if (pasted.length === this.digits) {
|
|
33
|
+
this.tokenValueChanged.emit(Number(pasted));
|
|
34
|
+
}
|
|
6
35
|
}
|
|
7
36
|
render() {
|
|
8
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: 'acd2c0d996368a36b33586cef9c224c23b3bc014', class: `compact_field_wrapper ${this.size}` }, h("div", { key: '9f2024ef1ae2f82c0810c3fa42716839640da0be', class: "input_with_label" }, this.showLabel && h("label", { key: '4c4cd7ed72176ccd9d9fcdd04a07246413e73b52', class: "text-sm-medium" }, this.label), h("input", { key: '2fa95b81c8bf8d7f120d141e402eba9766caaca6', class: `token_input ${this.size}`, type: "text", inputMode: "numeric", placeholder: '-'.repeat(this.digits), value: this.inputValue, maxLength: this.digits, onInput: e => this.emitInputtedToken(e), onKeyDown: e => this.handleKeyDown(e), onPaste: e => this.handlePaste(e), ref: el => (this.inputEl = el) })), this.showSupportingText && h("p", { key: '0b9e03001984aa4c2da8a67c81510222a5da95c5', class: "supporting_text text-sm-regular" }, this.supportingText)));
|
|
9
38
|
}
|
|
10
39
|
static get is() { return "gb-token-field-compact"; }
|
|
11
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -145,5 +174,29 @@ export class GbTokenFieldCompact {
|
|
|
145
174
|
}
|
|
146
175
|
};
|
|
147
176
|
}
|
|
177
|
+
static get states() {
|
|
178
|
+
return {
|
|
179
|
+
"inputValue": {}
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
static get events() {
|
|
183
|
+
return [{
|
|
184
|
+
"method": "tokenValueChanged",
|
|
185
|
+
"name": "tokenValueChanged",
|
|
186
|
+
"bubbles": true,
|
|
187
|
+
"cancelable": true,
|
|
188
|
+
"composed": true,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": ""
|
|
192
|
+
},
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "number",
|
|
195
|
+
"resolved": "number",
|
|
196
|
+
"references": {}
|
|
197
|
+
}
|
|
198
|
+
}];
|
|
199
|
+
}
|
|
200
|
+
static get elementRef() { return "el"; }
|
|
148
201
|
}
|
|
149
202
|
//# sourceMappingURL=gb-token-field-compact.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-token-field-compact.js","sourceRoot":"","sources":["../../../src/components/gb-token-field-compact/gb-token-field-compact.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"gb-token-field-compact.js","sourceRoot":"","sources":["../../../src/components/gb-token-field-compact/gb-token-field-compact.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQxF,MAAM,OAAO,mBAAmB;IALhC;QASU,UAAK,GAAW,EAAE,CAAC;QAEnB,mBAAc,GAAW,EAAE,CAAC;QAC3B,eAAU,GAAW,EAAE,CAA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neralSizes } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-token-field-compact',\r\n styleUrl: 'gb-token-field-compact.css',\r\n shadow: true,\r\n})\r\nexport class GbTokenFieldCompact {\r\n @Prop() size: GeneralSizes;\r\n @Prop() digits: 4 | 6 | 8;\r\n @Prop() showLabel: boolean;\r\n @Prop() label: string = '';\r\n @Prop() showSupportingText: boolean;\r\n @Prop() supportingText: string = '';\r\n @State() inputValue: string = ''; // ← add this\r\n @Event() tokenValueChanged: EventEmitter<number>;\r\n @Element() el: HTMLElement; // ← HTMLElement not HTMLInputElement\r\n\r\n inputEl: HTMLInputElement;\r\n\r\n emitInputtedToken(event) {\r\n let inputValue = event.target.value;\r\n\r\n if (inputValue.length !== this.digits) {\r\n return;\r\n }\r\n\r\n inputValue = inputValue.replace(/[^0-9]/g, '').slice(0, this.digits);\r\n\r\n this.tokenValueChanged.emit(inputValue);\r\n return;\r\n }\r\n\r\n handleKeyDown(e: KeyboardEvent) {\r\n const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab'];\r\n\r\n if ((e.ctrlKey || e.metaKey) && e.key === 'v') return;\r\n\r\n if (!/[0-9]/.test(e.key) && !allowed.includes(e.key)) {\r\n e.preventDefault(); // blocks the keystroke entirely\r\n }\r\n }\r\n\r\n handlePaste(e: ClipboardEvent) {\r\n e.preventDefault();\r\n\r\n const pasted = e.clipboardData\r\n .getData('text')\r\n .replace(/[^0-9]/g, '')\r\n .slice(0, this.digits);\r\n\r\n this.inputValue = pasted;\r\n\r\n if (pasted.length === this.digits) {\r\n this.tokenValueChanged.emit(Number(pasted));\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`compact_field_wrapper ${this.size}`}>\r\n <div class=\"input_with_label\">\r\n {this.showLabel && <label class=\"text-sm-medium\">{this.label}</label>}\r\n <input\r\n class={`token_input ${this.size}`}\r\n type=\"text\"\r\n inputMode=\"numeric\"\r\n placeholder={'-'.repeat(this.digits)}\r\n value={this.inputValue}\r\n maxLength={this.digits}\r\n onInput={e => this.emitInputtedToken(e)}\r\n onKeyDown={e => this.handleKeyDown(e)}\r\n onPaste={e => this.handlePaste(e)}\r\n ref={el => (this.inputEl = el)}\r\n />\r\n </div>\r\n {this.showSupportingText && <p class=\"supporting_text text-sm-regular\">{this.supportingText}</p>}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -3,13 +3,82 @@ export class GbTokenFieldCompressed {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.label = '';
|
|
5
5
|
this.hintText = '';
|
|
6
|
+
this.values = [];
|
|
7
|
+
this.focusedIndex = -1;
|
|
8
|
+
this.inputRefs = [];
|
|
9
|
+
}
|
|
10
|
+
checkComplete() {
|
|
11
|
+
if (this.values.length === this.digits && this.values.every(v => v !== '')) {
|
|
12
|
+
this.tokenComplete.emit(this.values.join(''));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
handleValueChange(incoming, index) {
|
|
16
|
+
var _a;
|
|
17
|
+
// Paste detection — string longer than 1 char
|
|
18
|
+
if (incoming.length > 1) {
|
|
19
|
+
this.handlePaste(incoming, index);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
// Single digit typed
|
|
23
|
+
const newValues = [...this.values];
|
|
24
|
+
newValues[index] = incoming;
|
|
25
|
+
this.values = newValues;
|
|
26
|
+
// Advance focus
|
|
27
|
+
if (incoming && index < this.digits - 1) {
|
|
28
|
+
(_a = this.inputRefs[index + 1]) === null || _a === void 0 ? void 0 : _a.focusInput();
|
|
29
|
+
}
|
|
30
|
+
this.checkComplete();
|
|
31
|
+
}
|
|
32
|
+
handleBackspace(index) {
|
|
33
|
+
var _a;
|
|
34
|
+
// Move focus back and clear previous box
|
|
35
|
+
if (index > 0) {
|
|
36
|
+
const newValues = [...this.values];
|
|
37
|
+
newValues[index - 1] = '';
|
|
38
|
+
this.values = newValues;
|
|
39
|
+
(_a = this.inputRefs[index - 1]) === null || _a === void 0 ? void 0 : _a.focusInput();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
handleKeyDown(e, index) {
|
|
43
|
+
if (e.key === 'Backspace') {
|
|
44
|
+
if (this.values[index]) {
|
|
45
|
+
// Clear current box
|
|
46
|
+
this.values = [...this.values.slice(0, index), '', ...this.values.slice(index + 1)];
|
|
47
|
+
}
|
|
48
|
+
else if (index > 0) {
|
|
49
|
+
// Box already empty — go back and clear previous
|
|
50
|
+
this.inputRefs[index - 1].focus();
|
|
51
|
+
this.values = [...this.values.slice(0, index - 1), '', ...this.values.slice(index)];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
handlePaste(text, startIndex) {
|
|
56
|
+
var _a;
|
|
57
|
+
const chars = text.split('');
|
|
58
|
+
const newValues = [...this.values];
|
|
59
|
+
chars.forEach((char, i) => {
|
|
60
|
+
if (startIndex + i < this.digits) {
|
|
61
|
+
newValues[startIndex + i] = char;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
this.values = newValues;
|
|
65
|
+
// Focus box after last pasted character
|
|
66
|
+
const nextIndex = Math.min(startIndex + chars.length, this.digits - 1);
|
|
67
|
+
(_a = this.inputRefs[nextIndex]) === null || _a === void 0 ? void 0 : _a.focusInput();
|
|
68
|
+
this.checkComplete();
|
|
69
|
+
}
|
|
70
|
+
renderInputs(count, startIndex) {
|
|
71
|
+
return Array.from({ length: count }).map((_, i) => {
|
|
72
|
+
const index = startIndex + i;
|
|
73
|
+
return (h("gb-mega-input-field-base", { state: this.focusedIndex === index ? 'active' : 'default', key: index, size: this.size, value: this.values[index] || '', onValueChanged: (e) => this.handleValueChange(e.detail, index), onBackspacePressed: () => this.handleBackspace(index), onKeyDown: (e) => this.handleKeyDown(e, index), onFocus: () => (this.focusedIndex = index), onBlur: () => (this.focusedIndex = -1), ref: el => (this.inputRefs[index] = el) }));
|
|
74
|
+
});
|
|
6
75
|
}
|
|
7
76
|
render() {
|
|
8
|
-
return (h("div", { key: '
|
|
77
|
+
return (h("div", { key: '68b0b11e45b04b02af0723b987ffe07bdc3b362f', class: {
|
|
9
78
|
container: true,
|
|
10
79
|
[this.size]: true,
|
|
11
|
-
[this.digits]: true,
|
|
12
|
-
} }, h("div", { key: '
|
|
80
|
+
[`digits-${this.digits}`]: true,
|
|
81
|
+
} }, h("div", { key: '930c4b446d00d0f35841badc8352df8c56c34c37', class: "input-with-label" }, this.showLabel && (h("label", { key: '3742fa0e6bcd2b1b2801c9ff37fbc5e68e1988b2', class: "text-sm-medium", style: { color: 'var(--color-text, #4B5565)' } }, this.label)), this.digits === 4 && h("div", { key: 'd024816e9e2c91040e6a52bf3ed4439919e97e9b', class: "input-wrapper" }, this.renderInputs(4, 0)), this.digits === 6 && (h("div", { key: '73baed995a65b2359a74aa5cd45df97a7cf800ba', class: "input-wrapper" }, this.renderInputs(3, 0), h("p", { key: 'f86b22b9bad157d40058726be0a428e0fd02493d', class: "line display-sm-bold" }, "-"), this.renderInputs(3, 3))), this.digits === 8 && (h("div", { key: 'c15743d1b1a3eaed5b12825bf10c1b2cf8b359b1', class: "input-wrapper" }, this.renderInputs(4, 0), h("p", { key: '239a604c08b0b347b6f54c7adea385eaf88c576e', class: "line display-sm-bold" }, "-"), this.renderInputs(4, 4)))), this.showHintText && (h("div", { key: 'df6986869dd68c9a470da7e86ae880bec5ae318c', class: "text-sm-regular", style: { color: 'var(--color-text-subtle, #697586)' } }, this.hintText))));
|
|
13
82
|
}
|
|
14
83
|
static get is() { return "gb-token-field-compressed"; }
|
|
15
84
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,6 +119,25 @@ export class GbTokenFieldCompressed {
|
|
|
50
119
|
"reflect": false,
|
|
51
120
|
"attribute": "size"
|
|
52
121
|
},
|
|
122
|
+
"state": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "'default' | 'active' | 'disabled'",
|
|
127
|
+
"resolved": "\"active\" | \"default\" | \"disabled\"",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": ""
|
|
135
|
+
},
|
|
136
|
+
"getter": false,
|
|
137
|
+
"setter": false,
|
|
138
|
+
"reflect": false,
|
|
139
|
+
"attribute": "state"
|
|
140
|
+
},
|
|
53
141
|
"digits": {
|
|
54
142
|
"type": "number",
|
|
55
143
|
"mutable": false,
|
|
@@ -149,5 +237,29 @@ export class GbTokenFieldCompressed {
|
|
|
149
237
|
}
|
|
150
238
|
};
|
|
151
239
|
}
|
|
240
|
+
static get states() {
|
|
241
|
+
return {
|
|
242
|
+
"values": {},
|
|
243
|
+
"focusedIndex": {}
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
static get events() {
|
|
247
|
+
return [{
|
|
248
|
+
"method": "tokenComplete",
|
|
249
|
+
"name": "tokenComplete",
|
|
250
|
+
"bubbles": true,
|
|
251
|
+
"cancelable": true,
|
|
252
|
+
"composed": true,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": ""
|
|
256
|
+
},
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "string",
|
|
259
|
+
"resolved": "string",
|
|
260
|
+
"references": {}
|
|
261
|
+
}
|
|
262
|
+
}];
|
|
263
|
+
}
|
|
152
264
|
}
|
|
153
265
|
//# sourceMappingURL=gb-token-field-compressed.js.map
|
package/dist/collection/components/gb-token-field-compressed/gb-token-field-compressed.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-token-field-compressed.js","sourceRoot":"","sources":["../../../src/components/gb-token-field-compressed/gb-token-field-compressed.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"gb-token-field-compressed.js","sourceRoot":"","sources":["../../../src/components/gb-token-field-compressed/gb-token-field-compressed.tsx"],"names":[],"mappings":"AA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C,CAAC,EAAE,CAAC,CAAC;oBACxB,0DAAG,KAAK,EAAC,sBAAsB,QAAM;oBACpC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CACpB,CACP,CACG;YAEL,IAAI,CAAC,YAAY,IAAI,CACpB,4DAAK,KAAK,EAAC,iBAAiB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,mCAAmC,EAAE,IAC/E,IAAI,CAAC,QAAQ,CACV,CACP,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Prop, State, h } from '@stencil/core';\r\nimport { GeneralSizes } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-token-field-compressed',\r\n styleUrl: 'gb-token-field-compressed.css',\r\n shadow: true,\r\n})\r\nexport class GbTokenFieldCompressed {\r\n @Prop() size: GeneralSizes;\r\n @Prop() state: 'default' | 'active' | 'disabled';\r\n @Prop() digits: 4 | 6 | 8;\r\n @Prop() showLabel: boolean;\r\n @Prop() label: string = '';\r\n @Prop() showHintText: boolean;\r\n @Prop() hintText: string = '';\r\n @State() values: string[] = [];\r\n @State() focusedIndex: number = -1;\r\n @Event() tokenComplete: EventEmitter<string>;\r\n\r\n private inputRefs: HTMLGbMegaInputFieldBaseElement[] = [];\r\n\r\n private checkComplete() {\r\n if (this.values.length === this.digits && this.values.every(v => v !== '')) {\r\n this.tokenComplete.emit(this.values.join(''));\r\n }\r\n }\r\n\r\n handleValueChange(incoming: string, index: number) {\r\n // Paste detection — string longer than 1 char\r\n if (incoming.length > 1) {\r\n this.handlePaste(incoming, index);\r\n return;\r\n }\r\n\r\n // Single digit typed\r\n const newValues = [...this.values];\r\n newValues[index] = incoming;\r\n this.values = newValues;\r\n\r\n // Advance focus\r\n if (incoming && index < this.digits - 1) {\r\n this.inputRefs[index + 1]?.focusInput();\r\n }\r\n\r\n this.checkComplete();\r\n }\r\n\r\n handleBackspace(index: number) {\r\n // Move focus back and clear previous box\r\n if (index > 0) {\r\n const newValues = [...this.values];\r\n newValues[index - 1] = '';\r\n this.values = newValues;\r\n this.inputRefs[index - 1]?.focusInput();\r\n }\r\n }\r\n\r\n private handleKeyDown(e: KeyboardEvent, index: number) {\r\n if (e.key === 'Backspace') {\r\n if (this.values[index]) {\r\n // Clear current box\r\n this.values = [...this.values.slice(0, index), '', ...this.values.slice(index + 1)];\r\n } else if (index > 0) {\r\n // Box already empty — go back and clear previous\r\n this.inputRefs[index - 1].focus();\r\n this.values = [...this.values.slice(0, index - 1), '', ...this.values.slice(index)];\r\n }\r\n }\r\n }\r\n\r\n private handlePaste(text: string, startIndex: number) {\r\n const chars = text.split('');\r\n const newValues = [...this.values];\r\n\r\n chars.forEach((char, i) => {\r\n if (startIndex + i < this.digits) {\r\n newValues[startIndex + i] = char;\r\n }\r\n });\r\n\r\n this.values = newValues;\r\n\r\n // Focus box after last pasted character\r\n const nextIndex = Math.min(startIndex + chars.length, this.digits - 1);\r\n this.inputRefs[nextIndex]?.focusInput();\r\n this.checkComplete();\r\n }\r\n\r\n private renderInputs(count: number, startIndex: number) {\r\n return Array.from({ length: count }).map((_, i) => {\r\n const index = startIndex + i;\r\n return (\r\n <gb-mega-input-field-base\r\n state={this.focusedIndex === index ? 'active' : 'default'}\r\n key={index}\r\n size={this.size}\r\n value={this.values[index] || ''}\r\n onValueChanged={(e: CustomEvent<string>) => this.handleValueChange(e.detail, index)}\r\n onBackspacePressed={() => this.handleBackspace(index)}\r\n onKeyDown={(e: KeyboardEvent) => this.handleKeyDown(e, index)}\r\n onFocus={() => (this.focusedIndex = index)}\r\n onBlur={() => (this.focusedIndex = -1)}\r\n ref={el => (this.inputRefs[index] = el as HTMLGbMegaInputFieldBaseElement)}\r\n />\r\n );\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n <div\r\n class={{\r\n container: true,\r\n [this.size]: true,\r\n [`digits-${this.digits}`]: true,\r\n }}\r\n >\r\n <div class=\"input-with-label\">\r\n {this.showLabel && (\r\n <label class=\"text-sm-medium\" style={{ color: 'var(--color-text, #4B5565)' }}>\r\n {this.label}\r\n </label>\r\n )}\r\n {this.digits === 4 && <div class=\"input-wrapper\">{this.renderInputs(4, 0)}</div>}\r\n {this.digits === 6 && (\r\n <div class=\"input-wrapper\">\r\n {this.renderInputs(3, 0)}\r\n <p class=\"line display-sm-bold\">-</p>\r\n {this.renderInputs(3, 3)}\r\n </div>\r\n )}\r\n {this.digits === 8 && (\r\n <div class=\"input-wrapper\">\r\n {this.renderInputs(4, 0)}\r\n <p class=\"line display-sm-bold\">-</p>\r\n {this.renderInputs(4, 4)}\r\n </div>\r\n )}\r\n </div>\r\n\r\n {this.showHintText && (\r\n <div class=\"text-sm-regular\" style={{ color: 'var(--color-text-subtle, #697586)' }}>\r\n {this.hintText}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -26,7 +26,7 @@ export class GbTooltip {
|
|
|
26
26
|
return this.showArrow ? `arrow ${this.arrow}` : '';
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '9fff855838905d0f8757110fbbd43bb27a8a9853', class: "tooltip_container" }, h("div", { key: 'bf5a5462a2539243453bb97c8aa5c4d3afb64292', class: "tooltip" }, this.showArrow && h("div", { key: '3b9596112baa8769606f2a3b99c7dd2d4054d120', class: this.getArrowClass() }), h("div", { key: 'f100dc473140368a4319a9646c9fcc92cea281d0', class: "tooltip_content" }, h("slot", { key: 'a7a758d79c85a76a0538463013af4e6f8cdf5cf4', name: "label" }), this.showSupportingText && h("slot", { key: '53db25548395652660cd3374be9f1839a436cbda', name: "supporting_text" })))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "gb-tooltip"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class GbVerticalTabs {
|
|
|
25
25
|
this.tabItemClicked.emit({ index, label });
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: '895d2d83b8894ab680f714f4cfc214248ce3f79c', class: `vertical_tab_div` }, this.internalTabs.map((tab, index) => (h("gb-tab-button-base", { size: this.size, type: this.type === 'button_gray_border' ? 'button_white' : this.type, "tab-name": tab.name, current: this.activeIndex === index, onClick: () => this.handleTabClick(index, tab.name), alignment: "vertical" })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "gb-vertical-tabs"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|