globuswebcomponents 2.13.3 → 2.13.4
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-action-panel_61.cjs.entry.js +90 -64
- package/dist/cjs/gb-avatar-label-group_3.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-vertical-tabs.cjs.entry.js +1 -1
- package/dist/cjs/test-input-tag.cjs.entry.js +2 -2
- package/dist/collection/assets/sent.svg +2 -1
- package/dist/collection/components/gb-complex-secondary-side-bar-item/gb-complex-secondary-side-bar-item.css +71 -14
- package/dist/collection/components/gb-complex-secondary-side-bar-item/gb-complex-secondary-side-bar-item.js +28 -7
- package/dist/collection/components/gb-complex-secondary-side-bar-item/gb-complex-secondary-side-bar-item.js.map +1 -1
- package/dist/collection/components/gb-input-field/gb-input-field.js +27 -27
- package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.css +9 -2
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +15 -7
- package/dist/collection/components/gb-sidebar/gb-sidebar.js.map +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.js +4 -4
- 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.js +1 -1
- package/dist/collection/components/gb-token-field-compressed/gb-token-field-compressed.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/gb-wysiwyg-toolbar/gb-wysiwyg-toolbar.js +1 -1
- package/dist/collection/components/test-input-tag/test-input-tag.js +2 -2
- package/dist/components/gb-action-panel.js +2 -2
- package/dist/components/gb-approval-modal.js +12 -12
- 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.js +19 -19
- package/dist/components/gb-help-tooltip.js +1 -1
- package/dist/components/gb-horizontal-tabs.js +4 -4
- package/dist/components/gb-icon-button-base.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-metric-card.js +3 -3
- package/dist/components/gb-modal-action.js +1 -1
- package/dist/components/gb-nav-bar-item.js +1 -1
- package/dist/components/gb-nav-bar-sidemenu.js +5 -5
- package/dist/components/gb-nav-bar.js +2 -2
- package/dist/components/gb-notification-pane.js +1 -1
- package/dist/components/gb-pagination.js +1 -1
- package/dist/components/gb-password-button.js +1 -1
- package/dist/components/gb-progress-bar.js +1 -1
- package/dist/components/gb-prompt-modal.js +2 -2
- package/dist/components/gb-rich-text.js +16 -16
- package/dist/components/gb-sidebar.js +21 -13
- package/dist/components/gb-sidebar.js.map +1 -1
- 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 +29 -29
- 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 +1 -1
- 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 +1 -1
- package/dist/components/gb-token-field-compressed.js +2 -2
- 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.js +1 -1
- package/dist/components/gb-wysiwyg-tooltip.js +1 -1
- package/dist/components/{p-QHFMnid1.js → p--bAArL4Z.js} +40 -40
- package/dist/components/p--bAArL4Z.js.map +1 -0
- package/dist/components/{p-DiUcRtK-.js → p-2J8ZftlY.js} +3 -3
- package/dist/components/{p-DiUcRtK-.js.map → p-2J8ZftlY.js.map} +1 -1
- package/dist/components/{p-Iipr6_wN.js → p-3ewGJEV-.js} +3 -3
- package/dist/components/{p-Iipr6_wN.js.map → p-3ewGJEV-.js.map} +1 -1
- package/dist/components/{p-CDGXfTAS.js → p-B1p1yrsO.js} +8 -8
- package/dist/components/{p-CDGXfTAS.js.map → p-B1p1yrsO.js.map} +1 -1
- package/dist/components/{p-QDzOpU8a.js → p-B9RbHUbf.js} +4 -4
- package/dist/components/{p-QDzOpU8a.js.map → p-B9RbHUbf.js.map} +1 -1
- package/dist/components/{p-CnM7ZwCv.js → p-BFIJRkjV.js} +6 -6
- package/dist/components/{p-CnM7ZwCv.js.map → p-BFIJRkjV.js.map} +1 -1
- package/dist/components/{p-jkP_FXBw.js → p-BH9YGI6U.js} +3 -3
- package/dist/components/{p-jkP_FXBw.js.map → p-BH9YGI6U.js.map} +1 -1
- package/dist/components/{p-Blu09IWZ.js → p-BHNl7IfH.js} +4 -4
- package/dist/components/{p-Blu09IWZ.js.map → p-BHNl7IfH.js.map} +1 -1
- package/dist/components/{p-CI7cPk_x.js → p-BJw4kzfF.js} +5 -5
- package/dist/components/{p-CI7cPk_x.js.map → p-BJw4kzfF.js.map} +1 -1
- package/dist/components/{p-CFV37CON.js → p-BKZLQVBE.js} +4 -4
- package/dist/components/{p-CFV37CON.js.map → p-BKZLQVBE.js.map} +1 -1
- package/dist/components/{p-Br16o-rx.js → p-BWIeE3vN.js} +18 -18
- package/dist/components/{p-Br16o-rx.js.map → p-BWIeE3vN.js.map} +1 -1
- package/dist/components/{p-DyO-WCvw.js → p-BYeGeB4V.js} +4 -4
- package/dist/components/{p-DyO-WCvw.js.map → p-BYeGeB4V.js.map} +1 -1
- package/dist/components/{p-D0UZXcRz.js → p-Bd5vCt6h.js} +5 -5
- package/dist/components/{p-D0UZXcRz.js.map → p-Bd5vCt6h.js.map} +1 -1
- package/dist/components/{p-CRQBsns0.js → p-BfrpLK-5.js} +4 -4
- package/dist/components/{p-CRQBsns0.js.map → p-BfrpLK-5.js.map} +1 -1
- package/dist/components/{p-D_YD59D1.js → p-BmfcIu5Q.js} +3 -3
- package/dist/components/{p-D_YD59D1.js.map → p-BmfcIu5Q.js.map} +1 -1
- package/dist/components/{p-DRoDIQwF.js → p-BnykYnIE.js} +3 -3
- package/dist/components/{p-DRoDIQwF.js.map → p-BnykYnIE.js.map} +1 -1
- package/dist/components/{p-BDoGfwvg.js → p-Bo3aINNh.js} +3 -3
- package/dist/components/{p-BDoGfwvg.js.map → p-Bo3aINNh.js.map} +1 -1
- package/dist/components/{p-Bllp0vbv.js → p-BsdKFpjH.js} +4 -4
- package/dist/components/{p-Bllp0vbv.js.map → p-BsdKFpjH.js.map} +1 -1
- package/dist/components/{p-kQlhdlBh.js → p-Bu5M8dZL.js} +3 -3
- package/dist/components/{p-kQlhdlBh.js.map → p-Bu5M8dZL.js.map} +1 -1
- package/dist/components/{p-BhVoEnfv.js → p-BwtlzUNO.js} +3 -3
- package/dist/components/{p-BhVoEnfv.js.map → p-BwtlzUNO.js.map} +1 -1
- package/dist/components/{p-CQg5uJVz.js → p-BzReSK_u.js} +4 -4
- package/dist/components/{p-CQg5uJVz.js.map → p-BzReSK_u.js.map} +1 -1
- package/dist/components/{p-CGHS2An9.js → p-C4mGSjWn.js} +3 -3
- package/dist/components/{p-CGHS2An9.js.map → p-C4mGSjWn.js.map} +1 -1
- package/dist/components/{p-B5Gg3C_a.js → p-C5oxCE5y.js} +4 -4
- package/dist/components/{p-B5Gg3C_a.js.map → p-C5oxCE5y.js.map} +1 -1
- package/dist/components/{p-hpq8ebuF.js → p-CDXH3neN.js} +3 -3
- package/dist/components/{p-hpq8ebuF.js.map → p-CDXH3neN.js.map} +1 -1
- package/dist/components/{p-BS8xCBdu.js → p-CEuRrv7n.js} +7 -7
- package/dist/components/{p-BS8xCBdu.js.map → p-CEuRrv7n.js.map} +1 -1
- package/dist/components/{p-CoivCGR3.js → p-CZUzXdtF.js} +3 -3
- package/dist/components/{p-CoivCGR3.js.map → p-CZUzXdtF.js.map} +1 -1
- package/dist/components/{p-CZ4KU_T2.js → p-CgYl6phh.js} +4 -4
- package/dist/components/{p-CZ4KU_T2.js.map → p-CgYl6phh.js.map} +1 -1
- package/dist/components/{p-CCZGHKuD.js → p-CoXfU9ro.js} +5 -5
- package/dist/components/{p-CCZGHKuD.js.map → p-CoXfU9ro.js.map} +1 -1
- package/dist/components/{p-DQzSNn6d.js → p-D2cydojA.js} +8 -8
- package/dist/components/{p-DQzSNn6d.js.map → p-D2cydojA.js.map} +1 -1
- package/dist/components/{p-BXe-k47p.js → p-D3KszGCy.js} +4 -4
- package/dist/components/{p-BXe-k47p.js.map → p-D3KszGCy.js.map} +1 -1
- package/dist/components/{p-BT3qlXvE.js → p-D3_diMYR.js} +6 -6
- package/dist/components/{p-BT3qlXvE.js.map → p-D3_diMYR.js.map} +1 -1
- package/dist/components/{p-KhL7ozXB.js → p-DC9f7E9A.js} +3 -3
- package/dist/components/{p-KhL7ozXB.js.map → p-DC9f7E9A.js.map} +1 -1
- package/dist/components/{p-B9OaQ8IO.js → p-DD9r6aV6.js} +20 -20
- package/dist/components/{p-B9OaQ8IO.js.map → p-DD9r6aV6.js.map} +1 -1
- package/dist/components/{p-CfGTBchH.js → p-DDZFBTdE.js} +3 -3
- package/dist/components/{p-CfGTBchH.js.map → p-DDZFBTdE.js.map} +1 -1
- package/dist/components/{p-DT0m5qpo.js → p-DGb-ZHvw.js} +4 -4
- package/dist/components/{p-DT0m5qpo.js.map → p-DGb-ZHvw.js.map} +1 -1
- package/dist/components/{p-iQxeojAw.js → p-DJ4Wfupi.js} +16 -16
- package/dist/components/{p-iQxeojAw.js.map → p-DJ4Wfupi.js.map} +1 -1
- package/dist/components/{p-Dh2Cyht7.js → p-DJf2ZdZo.js} +7 -7
- package/dist/components/{p-Dh2Cyht7.js.map → p-DJf2ZdZo.js.map} +1 -1
- package/dist/components/{p-BAz_Vt1i.js → p-DKGCAYmN.js} +25 -7
- package/dist/components/p-DKGCAYmN.js.map +1 -0
- package/dist/components/{p-C9OKT7Zi.js → p-DNufmLoG.js} +15 -15
- package/dist/components/{p-C9OKT7Zi.js.map → p-DNufmLoG.js.map} +1 -1
- package/dist/components/{p-CnwFBTLJ.js → p-DPhEpE4J.js} +3 -3
- package/dist/components/{p-CnwFBTLJ.js.map → p-DPhEpE4J.js.map} +1 -1
- package/dist/components/{p-BeGFmd5J.js → p-DiuQr5RS.js} +7 -7
- package/dist/components/{p-BeGFmd5J.js.map → p-DiuQr5RS.js.map} +1 -1
- package/dist/components/{p-CyPw5YoV.js → p-Veh1dYb0.js} +3 -3
- package/dist/components/{p-CyPw5YoV.js.map → p-Veh1dYb0.js.map} +1 -1
- package/dist/components/{p-2XuiJtzO.js → p-e07jiJem.js} +3 -3
- package/dist/components/{p-2XuiJtzO.js.map → p-e07jiJem.js.map} +1 -1
- package/dist/components/{p-BtlPSJ-r.js → p-eV5kIoPB.js} +5 -5
- package/dist/components/{p-BtlPSJ-r.js.map → p-eV5kIoPB.js.map} +1 -1
- package/dist/components/{p-Dd4XDMhP.js → p-j3tW-cau.js} +9 -9
- package/dist/components/{p-Dd4XDMhP.js.map → p-j3tW-cau.js.map} +1 -1
- package/dist/components/{p-GuLHgTQK.js → p-mlWgLRfP.js} +3 -3
- package/dist/components/{p-GuLHgTQK.js.map → p-mlWgLRfP.js.map} +1 -1
- package/dist/components/{p-DY_80Vnz.js → p-s8E0rrpP.js} +12 -12
- package/dist/components/{p-DY_80Vnz.js.map → p-s8E0rrpP.js.map} +1 -1
- package/dist/components/{p-BqTCck1h.js → p-zJakTqrw.js} +3 -3
- package/dist/components/{p-BqTCck1h.js.map → p-zJakTqrw.js.map} +1 -1
- package/dist/components/test-input-tag.js +9 -9
- package/dist/docs.json +32 -14
- package/dist/esm/gb-action-panel_61.entry.js +90 -64
- package/dist/esm/gb-avatar-label-group_3.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-vertical-tabs.entry.js +1 -1
- package/dist/esm/test-input-tag.entry.js +2 -2
- package/dist/globuscomponents/assets/sent.svg +2 -1
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-a151a893.entry.js → p-1ee95c72.entry.js} +2 -2
- package/dist/globuscomponents/{p-5051191c.entry.js → p-215b848f.entry.js} +2 -2
- package/dist/globuscomponents/{p-e2a71662.entry.js → p-55f67879.entry.js} +2 -2
- package/dist/globuscomponents/p-55f67879.entry.js.map +1 -0
- package/dist/globuscomponents/p-850f4675.entry.js +2 -0
- package/dist/globuscomponents/{p-27f7a9c6.entry.js → p-8ed59414.entry.js} +2 -2
- package/dist/globuscomponents/{p-4fa3af47.entry.js → p-92a04ce2.entry.js} +2 -2
- package/dist/globuscomponents/p-a3da7f6e.entry.js +2 -0
- package/dist/globuscomponents/{p-7e17ac32.entry.js → p-a4949b58.entry.js} +2 -2
- package/dist/globuscomponents/{p-1a60ecdb.entry.js → p-e7db5a73.entry.js} +2 -2
- package/dist/globuscomponents/{p-2f7946e2.entry.js → p-ed65ba6d.entry.js} +2 -2
- package/dist/globuscomponents/{p-adedbe7a.entry.js → p-eefeb176.entry.js} +2 -2
- package/dist/globuscomponents/{p-7d813e92.entry.js → p-f3a8ed87.entry.js} +2 -2
- package/dist/types/components/gb-complex-secondary-side-bar-item/gb-complex-secondary-side-bar-item.d.ts +1 -1
- package/dist/types/components.d.ts +28 -10
- package/package.json +1 -1
- package/dist/components/p-BAz_Vt1i.js.map +0 -1
- package/dist/components/p-QHFMnid1.js.map +0 -1
- package/dist/globuscomponents/p-55fd0c0c.entry.js +0 -2
- package/dist/globuscomponents/p-6e8e8b44.entry.js +0 -2
- package/dist/globuscomponents/p-e2a71662.entry.js.map +0 -1
- /package/dist/globuscomponents/{p-a151a893.entry.js.map → p-1ee95c72.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5051191c.entry.js.map → p-215b848f.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-6e8e8b44.entry.js.map → p-850f4675.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-27f7a9c6.entry.js.map → p-8ed59414.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-4fa3af47.entry.js.map → p-92a04ce2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-55fd0c0c.entry.js.map → p-a3da7f6e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7e17ac32.entry.js.map → p-a4949b58.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-1a60ecdb.entry.js.map → p-e7db5a73.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-2f7946e2.entry.js.map → p-ed65ba6d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-adedbe7a.entry.js.map → p-eefeb176.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7d813e92.entry.js.map → p-f3a8ed87.entry.js.map} +0 -0
|
@@ -143,7 +143,7 @@ const GbThemeTab = class {
|
|
|
143
143
|
const systemIconSrc = index.getAssetPath(`assets/laptop.svg`);
|
|
144
144
|
const sunSrc = index.getAssetPath(`assets/sun-02.svg`);
|
|
145
145
|
const moonSrc = index.getAssetPath(`assets/moon-02.svg`);
|
|
146
|
-
return (index.h("div", { key: '
|
|
146
|
+
return (index.h("div", { key: 'ffb2bcce33216853cda0bc036051520f6471eebf', class: `theme_tab_div` }, index.h("div", { key: '8692ba05cb3658fca76f4e757fe0ecf161d0e8b8', class: "tab" }, index.h("gb-icon-button-base", { key: 'ee1d8857c34b5828d4952ebf71d9646f30a560d5', current: this.currentActiveTab === 'system' ? true : false, icon: systemIconSrc, label: "System", onClick: () => this.tabClicked('system') })), index.h("div", { key: '92f2dac8b0389a341fa1aa12e7c485254bb19bbb', class: "tab" }, index.h("gb-icon-button-base", { key: '6696a6e10dd567674708cc1854ab2bff0b0c1189', current: this.currentActiveTab === 'light' ? true : false, icon: sunSrc, label: "Light", onClick: () => this.tabClicked('light') })), index.h("div", { key: '047e25e2870ed84edd25a543641e6311667d9077', class: "tab" }, index.h("gb-icon-button-base", { key: '5154745e1e327be999f66e0c90969c73293241a8', current: this.currentActiveTab === 'dark' ? true : false, icon: moonSrc, label: "Dark", onClick: () => this.tabClicked('dark') }))));
|
|
147
147
|
}
|
|
148
148
|
get el() { return index.getElement(this); }
|
|
149
149
|
};
|
|
@@ -24,7 +24,7 @@ const GbSliderControlHandle = class {
|
|
|
24
24
|
this.isFocused = false;
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (index.h("div", { key: '
|
|
27
|
+
return (index.h("div", { key: '755e330214a56a9164c35e918409421324f57b93', class: `thumb-container ${this.type} ${this.isHovered ? 'hover' : ''} ${this.isFocused ? 'focused' : ''}`, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), tabindex: "0" }, this.type === 'tooltip' && (index.h("div", { key: 'e726f49f16573cd3e8d5f0156967d455930a6600', class: "tooltip-container" }, index.h("gb-tooltip", { key: '878340f8b487e032b29fcc9584b8cc7d9a7c02c1', "show-arrow": false, arrow: "none", "show-supporting-text": false }, index.h("p", { key: '0f40c9724f815618bc3340829b41a474b4353c90', class: "text-xs-semi-bold", slot: "label" }, this.value)))), this.type === 'text' && (index.h("div", { key: '8322f0062a48f9950cdcba8ab4544fa49f42195e', class: "thumb-label" }, index.h("p", { key: '94001ac9388a758d638c40980ac4dda07e684032', class: "thumb_label text-md-medium" }, this.value)))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
GbSliderControlHandle.style = gbSliderControlHandleCss;
|
|
@@ -81,7 +81,7 @@ const GbSlider = class {
|
|
|
81
81
|
return this.unitPosition === 'left' ? `${this.unit}${value}` : `${value}${this.unit}`;
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return (index.h("div", { key: '
|
|
84
|
+
return (index.h("div", { key: 'fe4133f14cbbdf960861cfd3209fb6a38bb39bdf', class: `slider_wrapper ${this.label}` }, this.showHeading && (index.h(index.Fragment, null, this.formatHeading ? (index.h("p", { class: "slider_label text-sm-medium" }, this.heading.charAt(0).toUpperCase() + this.heading.slice(1).toLowerCase())) : (index.h("p", { class: "slider_label text-sm-medium" }, this.heading)))), index.h("div", { key: '19a705d3df04535f37805f0486ddd2e62a6bf5d7', class: "slider-container", ref: el => (this.containerEl = el) }, index.h("div", { key: 'e11420b7dad76b4f6426317eaf0917e3a046a3d5', class: "track", ref: el => (this.trackEl = el) }), index.h("gb-slider-control-handle", { key: '1d64be7e1ee5fb705854c33261928e19747b0a8c', class: "left", value: this.formatValue(this.leftValue), type: this.label === 'false' ? '' : this.label === 'bottom' ? 'text' : this.label === 'top_floating' ? 'tooltip' : null, style: { left: `${((this.leftValue - this.min) / (this.max - this.min)) * 100}%` }, onMouseDown: e => this.handleMouseDown(e, 'left') }), index.h("gb-slider-control-handle", { key: '0dc296c7d6b0778570b942a7bc41ce6fd7186f15', class: "right", value: this.formatValue(this.rightValue), type: this.label === 'false' ? '' : this.label === 'bottom' ? 'text' : this.label === 'top_floating' ? 'tooltip' : null, style: { left: `${((this.rightValue - this.min) / (this.max - this.min)) * 100}%` }, onMouseDown: e => this.handleMouseDown(e, 'right') }))));
|
|
85
85
|
}
|
|
86
86
|
get el() { return index.getElement(this); }
|
|
87
87
|
};
|
|
@@ -44,7 +44,7 @@ const GbStepBase = class {
|
|
|
44
44
|
this.internalState = newValue;
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (index.h(index.Fragment, null, this.type === 'text_line' && (index.h(index.Fragment, null, index.h("div", { key: '
|
|
47
|
+
return (index.h(index.Fragment, null, this.type === 'text_line' && (index.h(index.Fragment, null, index.h("div", { key: 'bbac21b829737c56dadb364e3865225c4a34fae1', class: `bar ${this.size} ${this.status} ${this.internalState}` }), this.showContent && (index.h("div", { key: '546993561d43f85540e30ac2b2dc39310191f774', class: `text_line_div ${this.size} ${this.status} ${this.internalState}` }, index.h("div", { key: 'fc687b65bb1aa956c5b03ed8c981219fa71057f0', class: `text_line_div_content` }, index.h("p", { key: 'd569a483b205996d3282f1f6d5f45a83a5121c6d', class: `text_line_label text-sm-semi-bold ${this.status} ${this.internalState}` }, this.label), this.showSupportingText && index.h("p", { key: 'f8bdfcb5417642cd5957fa0c8a6a539d7a4ebe90', class: `text_line_text text-xs-regular ${this.status} ${this.internalState}` }, this.supportingText)))))), this.type === 'icon_only' && (index.h("div", { key: 'd5019894f1032a8db58f7c7b465eb47bca21a68d', class: `icon_only_div ${this.status} ${this.internalState} ${this.size}` }, this.status !== 'complete' && index.h("div", { key: '6a2dfe1239243e33bff1fb6c1423ab7ea576e880', class: `dot ${this.status} ${this.internalState} ${this.size}` }), this.status === 'complete' && (index.h("svg", { key: 'a13fefa4b803769190ad281a2e2d8faac6df1aec', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", class: `tick ${this.status} ${this.internalState} ${this.size}` }, index.h("path", { key: 'c4dd819eac00998b099eb142712afcac96d7a952', d: "M1 6.45455C1 6.45455 2.07143 6.45455 3.5 9C3.5 9 7.47059 2.33333 11 1", stroke: "#075DB2", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), this.type === 'icon_left' && (index.h("div", { key: 'cbb816393c026e56f9dcb63d41d81babf862818e', class: `icon_left_div ${this.size}` }, index.h("div", { key: '728f3e5dc2d88ea35dc406721532254825e080ed', class: "connector_wrap" }, index.h("gb-step-icon-base", { key: '6f96ef0e1ca966f14cfff0830e8fdb3eb7cda2da', size: this.size, status: this.internalStatus, state: this.internalState }), this.connector && (index.h("div", { key: '466b60ed1d23a2397a0dbc89effa0449f3e9bb60', class: "connector_div" }, index.h("div", { key: '724321478b44369cdf49460c29c073b9151eda79', class: `icon_left_connector ${this.internalState} ${this.status}` })))), index.h("div", { key: '05c9edb1478a5fe7e88508c201e04f829b1ab25b', class: "icon_left_text" }, index.h("p", { key: '8f687fd3371f16722cf3e40ef2af03700cbc77da', class: `text_line_label text-sm-semi-bold ${this.status} ${this.internalState}` }, this.label), index.h("p", { key: '94dd7eb4743ee0dc2a5ea095ff38c3e83ea42ce3', class: `text_line_text ${this.breakpoint} text-xs-regular ${this.status} ${this.internalState}` }, this.supportingText)))), this.type === 'icon_top' && (index.h("div", { key: 'b3fb1a3726b34375bebddbf119f226ef83f48806', class: `icon_top_div ${this.size}` }, index.h("div", { key: '8000a62568e45d706d6b73ea9218d2ff73a29268', class: "step_icon_div" }, index.h("div", { key: '798904a2a498833e11875693c16d0cf38c095c3b', class: "step_icon" }, index.h("div", { key: 'cc51a374660bcebeeebfddb8454b19c56375a078', class: `icon_only_div ${this.status} ${this.internalState} ${this.size}` }, this.status !== 'complete' && index.h("div", { key: '6d2d4d92600c96a9c35c745e74fb05869e8196aa', class: `dot ${this.status} ${this.internalState} ${this.size}` }), this.status === 'complete' && (index.h("svg", { key: '60b291b02d9e86ac18854a9d9a9ffc7bd58b0c33', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", class: `tick ${this.status} ${this.internalState} ${this.size}` }, index.h("path", { key: '16bd5b01931b7f10d788c942b036617dcddbe0a6', d: "M1 6.45455C1 6.45455 2.07143 6.45455 3.5 9C3.5 9 7.47059 2.33333 11 1", stroke: "#075DB2", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("div", { key: 'a2457eb4b2d80d6d9fe29fa590bb9279b0396236', class: "icon_top_content" }, index.h("p", { key: 'd648fc2a86dcd08aba96bbf34ae3fd28922bc904', class: `text_line_label text-sm-semi-bold ${this.status} ${this.internalState}` }, this.label), index.h("p", { key: 'f01ed307958f3ee239fc9aa8f36388d027713447', class: `text_line_text ${this.breakpoint} text-xs-regular ${this.status} ${this.internalState}` }, this.supportingText)))), this.type === 'featured_icon_left' && (index.h("div", { key: '040b9182a1458f16914eb82f9995a9ce63e1adcf', class: "featured_icon_left_div" }, index.h("div", { key: '20820f940049c935409b0bc403680b7554b5a21b', class: "connector_wrap" }, index.h("gb-featured-icon", { key: 'c788260e7d67163b2c72d5e02099146263ce5406', size: "sm", icon: "assets/user.svg", destructive: this.internalState === 'destructive' ? true : false }), this.connector && (index.h("div", { key: '89cea474a02384a3ed0b7e51a9fb12058c1f7680', class: "connector_div" }, index.h("div", { key: '5d7729fe0b94dd66fd408c22ce399976b7580242', class: `featured_icon_left_connector ${this.size} ${this.internalState} ${this.status}` })))), index.h("div", { key: 'db1c6b983e9b0ef607def2a85b084212264e2da6', class: "featured_icon_left_content" }, index.h("p", { key: 'cba9abd409fd142428729c58ccb1cece25cf9f81', class: `featured_icon_left_label ${this.featuredIconLeftLabelClasses()} ${this.status} ${this.internalState}` }, this.label), index.h("p", { key: 'e99e90440e7e9f2735dcf45983de06e8da197652', class: `featured_icon_left_text ${this.featuredIconLeftTextClasses()} ${this.status} ${this.internalState}` }, this.supportingText))))));
|
|
48
48
|
}
|
|
49
49
|
static get watchers() { return {
|
|
50
50
|
"status": ["onStatusChange"],
|
|
@@ -70,7 +70,7 @@ const GbStepIconBase = class {
|
|
|
70
70
|
this.internalState = newValue;
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (index.h("div", { key: '
|
|
73
|
+
return (index.h("div", { key: '2e884bd43d4180e7277dfdd2a156e4604ab7de83', class: `icon_base_div ${this.internalStatus} ${this.internalState} ${this.size}` }, this.status !== 'complete' && index.h("div", { key: 'f18c6d322ff63255255099a5527ba03d770c9182', class: `dot ${this.internalStatus} ${this.internalState} ${this.size}` }), this.status === 'complete' && (index.h("svg", { key: 'debd2e201428b6225484a3c7676512624ac86326', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", class: `tick ${this.internalStatus} ${this.internalState} ${this.size}` }, index.h("path", { key: '45eef9a71a796a97c7c7987cbd9368666586755b', d: "M1 6.45455C1 6.45455 2.07143 6.45455 3.5 9C3.5 9 7.47059 2.33333 11 1", stroke: "#075DB2", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))));
|
|
74
74
|
}
|
|
75
75
|
static get watchers() { return {
|
|
76
76
|
"status": ["onStatusChange"],
|
|
@@ -35,7 +35,7 @@ const GbStepperHorizontalIconsCentered = class {
|
|
|
35
35
|
];
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (index.h(index.Fragment, null, this.type === 'icon' && (index.h("div", { key: '
|
|
38
|
+
return (index.h(index.Fragment, null, this.type === 'icon' && (index.h("div", { key: '09e93bf913277d8b71102cd2334346c908072952', class: "icons_centered_div" }, this.breakpoint === 'desktop' && (index.h("div", { key: 'ce8afe0fb379ed11246a1eff5d7809fcc9e35342', class: "step_div" }, this.steps.map((step, index$1) => (index.h(index.Fragment, null, index.h("gb-step-base", { size: this.size, type: "icon_top", state: step.state, status: step.status, connector: index$1 === this.steps.length - 1 ? false : true, label: step.label, "supporting-text": step.supportingText, breakpoint: "desktop" }), index$1 !== this.steps.length - 1 ? (index.h("div", { class: "connector_div" }, index.h("div", { class: `icon_top_connector ${step.state} ` }))) : null))))), this.breakpoint === 'mobile' && (index.h(index.Fragment, null, this.steps.map((step, index$1) => (index.h(index.Fragment, null, index.h("gb-step-base", { size: this.size, type: "icon_left", state: step.state, status: step.status, connector: index$1 === this.steps.length - 1 ? false : true, label: step.label, "supporting-text": step.supportingText })))))))), this.type === 'featured_icon' && (index.h("div", { key: '1d417ecc61ca9dc80324648eb194feef5296552c', class: "icons_centered_div" }, this.breakpoint === 'desktop' && (index.h("div", { key: '5019171556f1fd3f9838cd0a2400d293df4b1ce1', class: "step_div" }, this.steps.map((step, index$1) => (index.h(index.Fragment, null, index.h("gb-step-base", { size: this.size, type: "icon_top", state: step.state, status: step.status, connector: index$1 === this.steps.length - 1 ? false : true, label: step.label, "supporting-text": step.supportingText, breakpoint: "desktop" }), index$1 !== this.steps.length - 1 ? (index.h("div", { class: "connector_div" }, index.h("div", { class: `icon_top_connector ${step.state} ` }))) : null))))), this.breakpoint === 'mobile' && (index.h(index.Fragment, null, this.steps.map((step, index$1) => (index.h(index.Fragment, null, index.h("gb-step-base", { size: this.size, type: "featured_icon_left", state: step.state, status: step.status, connector: index$1 === this.steps.length - 1 ? false : true, label: step.label, "supporting-text": step.supportingText }))))))))));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
GbStepperHorizontalIconsCentered.style = gbStepperHorizontalIconsCenteredCss;
|
|
@@ -27,7 +27,7 @@ const GbStepperHorizontalIconsCentered = class {
|
|
|
27
27
|
];
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h("div", { key: '
|
|
30
|
+
return (index.h("div", { key: '9d4e134e23b1ca5b9f8216e6c2b0a36995759a3f', class: "icons_centered_container" }, index.h("div", { key: '8afb200432d236cca7ee39ff5df9ec65edf29b8a', class: "icons_centered_div" })));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
GbStepperHorizontalIconsCentered.style = gbStepperHorizontalIconsConnectedCss;
|
|
@@ -47,7 +47,7 @@ const GbStepperHorizontalLineWithText = class {
|
|
|
47
47
|
this.showSupportingText = this.width < 768 ? false : true;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (index.h("div", { key: '
|
|
50
|
+
return (index.h("div", { key: '32fc087ee90403e4d97d833b39fc388be7d386e5', class: "text_with_line" }, this.internalSteps.map(step => (index.h("gb-step-base", { size: this.size, type: "text_line", state: step.state, status: step.status, label: step.label, "supporting-text": step.supportingText, "show-content": this.showContent, "show-supporting-text": this.showSupportingText })))));
|
|
51
51
|
}
|
|
52
52
|
static get watchers() { return {
|
|
53
53
|
"steps": ["onStepsChanged"]
|
|
@@ -32,7 +32,7 @@ const GbStepperHorizontalMinimalIcons = class {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
const indexOfCurrentStep = this.steps.findIndex(step => step.status === 'current');
|
|
35
|
-
return (index.h("div", { key: '
|
|
35
|
+
return (index.h("div", { key: '99a677572046f00d36a4e56599005ca77a4ff925', class: `minimai_icons_container ${this.position}` }, index.h("div", { key: '8f63d2be5b01f360303d7809e524e4296661aa8d', class: `minimai_icons_div ${this.size} ${this.position}` }, this.position !== 'left' && (index.h(index.Fragment, null, this.text && (index.h("p", { key: 'bd3b37b4187bcbea05d251a01b49a2065706866c', class: "step_text text-sm-medium" }, this.stepLabel, " ", indexOfCurrentStep + 1, " of ", this.steps.length)))), this.steps.map(step => (index.h("gb-step-icon-base", { size: this.size, status: step.status, state: step.state }))), this.position === 'left' && (index.h(index.Fragment, null, this.text && (index.h("p", { key: '228b2d9c0d40db8491c4d20bb3b9492023517114', class: "step_text text-sm-medium" }, this.stepLabel, " ", indexOfCurrentStep + 1, " of ", this.steps.length)))))));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
GbStepperHorizontalMinimalIcons.style = gbStepperHorizontalMinimalIconsCss;
|
|
@@ -38,7 +38,7 @@ const GbstepperVerticalIconsWithText = class {
|
|
|
38
38
|
this.stepClicked.emit(index);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (index.h("div", { key: '
|
|
41
|
+
return (index.h("div", { key: 'd99777efdb5eb30cc70ccf75c5ffba93a9f9e264', class: "vertical_stepper_div" }, this.type === 'icon' && (index.h(index.Fragment, null, this.internalSteps.map((step, index$1) => (index.h("gb-step-base", { size: this.size, type: "icon_left", state: step.state, status: step.status, connector: index$1 === this.steps.length - 1 ? false : this.connector, label: step.label, "supporting-text": step.supportingText, onClick: () => this.emitIndex(index$1) })))))));
|
|
42
42
|
}
|
|
43
43
|
static get watchers() { return {
|
|
44
44
|
"steps": ["onStepsChanged"]
|
|
@@ -32,7 +32,7 @@ const GbVerticalTabs = class {
|
|
|
32
32
|
this.tabItemClicked.emit({ index, label });
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index.h("div", { key: '
|
|
35
|
+
return (index.h("div", { key: '3e1fc1b6d97df5a6a063e9f8e6e83e017f62b544', class: `vertical_tab_div` }, this.internalTabs.map((tab, index$1) => (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$1, onClick: () => this.handleTabClick(index$1, tab.name), alignment: "vertical" })))));
|
|
36
36
|
}
|
|
37
37
|
static get watchers() { return {
|
|
38
38
|
"tabs": ["onTabsChanged"]
|
|
@@ -78,7 +78,7 @@ const TestInputTag = class {
|
|
|
78
78
|
this.exportValue.emit(this.selectedStaff);
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (index.h("div", { key: '
|
|
81
|
+
return (index.h("div", { key: 'ae201263df9ce6ce9a269b7ada1d54d20222385f', class: "input_group", ref: el => (this.inputGroupElement = el) }, index.h("label", { key: 'a0ada4646f088d1c6684d5e9b42a17b9dec1a815', htmlFor: this.idOfInput }, this.labelText), index.h("div", { key: 'a3c9e7d8b3501965a3465c71cfc1d77731a9bfd4', class: "input_like_parent", onClick: () => (this.dropdownOpen = !this.dropdownOpen) }, index.h("input", { key: '309f94fedfbb6772cbefbb73702421c348bee970', id: this.idOfInput, class: "input_like", type: "text", placeholder: this.placeholderText, value: this.inputValue, readOnly: this.isReadOnly, ref: el => (this.inputElement = el), onBlur: () => this.exportSelectedStaff() }), index.h("div", { key: '8481e65dfbb3ed828e72e651a4285c389217fd20', class: `results_display ${this.selectedStaff.length >= 1 ? 'show_results' : ''}`, ref: el => (this.resultsDisplayElement = el) }, this.selectedStaff.map((staff, index$1) => (
|
|
82
82
|
// <span>
|
|
83
83
|
// {staff.fullname}
|
|
84
84
|
// <img
|
|
@@ -87,7 +87,7 @@ const TestInputTag = class {
|
|
|
87
87
|
// onClick={() => this.removeStaff(index)}
|
|
88
88
|
// />
|
|
89
89
|
// </span>
|
|
90
|
-
index.h("gb-tag", { size: "sm", action: "X_close", icon: "avatar", onClick: () => this.removeStaff(index$1) }, index.h("h1", { slot: "initials" }, staff.fullname.split(' ').map(part => part.charAt(0).toUpperCase())), index.h("p", null, staff.fullname.split(' ')[0])))))), this.show && (index.h("div", { key: '
|
|
90
|
+
index.h("gb-tag", { size: "sm", action: "X_close", icon: "avatar", onClick: () => this.removeStaff(index$1) }, index.h("h1", { slot: "initials" }, staff.fullname.split(' ').map(part => part.charAt(0).toUpperCase())), index.h("p", null, staff.fullname.split(' ')[0])))))), this.show && (index.h("div", { key: 'f17e9758f35b957710387c60a1181b0d2e8d600c', class: `dropdown_menu ${this.show ? 'show' : ''}` }, this.staffInfo.map(staff => (
|
|
91
91
|
// <li class="aList" onClick={() => this.selectStaff(staff)}>
|
|
92
92
|
// <div>{staff.fullname}</div>
|
|
93
93
|
// <div>{staff.email}</div>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path
|
|
2
|
+
<path opacity="0.4" d="M17.5399 2.54427C15.7249 0.589632 2.07223 5.37783 2.0835 7.126C2.09628 9.10839 7.41523 9.71826 8.88952 10.1319C9.77607 10.3806 10.0135 10.6355 10.2179 11.5652C11.1438 15.7756 11.6086 17.8697 12.668 17.9165C14.3566 17.9911 19.3113 4.45183 17.5399 2.54427Z" fill="#042F59"/>
|
|
3
|
+
<path d="M8.88952 10.1319L8.68692 10.854H8.68692L8.88952 10.1319ZM10.2179 11.5652L9.48544 11.7263V11.7263L10.2179 11.5652ZM12.668 17.9165L12.7011 17.1673L12.668 17.9165ZM2.0835 7.126L2.83349 7.12116L2.0835 7.126ZM17.5399 2.54427L16.9903 3.05461V3.05461L17.5399 2.54427ZM9.05314 9.88648C8.76024 10.1794 8.76024 10.6542 9.05314 10.9471C9.34603 11.24 9.8209 11.24 10.1138 10.9471L9.58347 10.4168L9.05314 9.88648ZM13.0305 8.03048C13.3234 7.73758 13.3234 7.26271 13.0305 6.96982C12.7376 6.67692 12.2627 6.67692 11.9698 6.96982L12.5001 7.50014L13.0305 8.03048ZM2.0835 7.126L1.33352 7.13083C1.33915 8.00379 1.93418 8.60883 2.53447 9.00148C3.14933 9.40366 3.94405 9.70333 4.72412 9.93595C5.51418 10.1716 6.34371 10.3538 7.05375 10.5009C7.78894 10.6532 8.3516 10.7599 8.68692 10.854L8.88952 10.1319L9.09211 9.40976C8.69029 9.29703 8.03523 9.17239 7.35808 9.03208C6.65577 8.88657 5.87833 8.71487 5.15278 8.4985C4.41722 8.27916 3.78766 8.0288 3.35556 7.74617C2.90888 7.45399 2.83425 7.2394 2.83349 7.12116L2.0835 7.126ZM10.2179 11.5652L10.9504 11.4042C10.844 10.9199 10.7006 10.451 10.3594 10.0832C10.0147 9.71147 9.5596 9.54092 9.09211 9.40976L8.88952 10.1319L8.68692 10.854C9.10599 10.9716 9.21292 11.0528 9.25964 11.1032C9.3099 11.1574 9.3875 11.2809 9.48544 11.7263L10.2179 11.5652ZM2.0835 7.126L2.83349 7.12116C2.83433 7.25112 2.7766 7.29182 2.83121 7.22037C2.87782 7.15938 2.97118 7.06382 3.13251 6.93742C3.4531 6.68625 3.94373 6.38891 4.57841 6.06631C5.84029 5.42491 7.56356 4.73768 9.35665 4.16051C11.1511 3.58288 12.9807 3.12674 14.4551 2.93335C15.195 2.8363 15.8145 2.8097 16.2823 2.85478C16.7855 2.90329 16.9586 3.02048 16.9903 3.05461L17.5399 2.54427L18.0895 2.03392C17.6675 1.5794 17.0169 1.41864 16.4262 1.3617C15.7999 1.30134 15.0551 1.34179 14.26 1.44608C12.6644 1.65537 10.7412 2.13904 8.89704 2.73265C7.0515 3.32672 5.25028 4.04216 3.89874 4.72913C3.2267 5.07072 2.63839 5.419 2.20742 5.75666C1.99297 5.92467 1.7924 6.10934 1.63937 6.30959C1.49434 6.49938 1.33127 6.78235 1.33352 7.13083L2.0835 7.126ZM12.668 17.9165L12.6349 18.6658C12.9898 18.6815 13.2789 18.5194 13.4676 18.3792C13.6679 18.2305 13.8526 18.0338 14.0203 17.8244C14.3577 17.403 14.7087 16.8243 15.0552 16.1621C15.7524 14.8298 16.489 13.0469 17.1116 11.2151C17.7339 9.38415 18.2536 7.47125 18.5043 5.87802C18.6293 5.08386 18.6921 4.34065 18.6573 3.71387C18.6245 3.12519 18.4988 2.47472 18.0895 2.03392L17.5399 2.54427L16.9903 3.05461C17.0239 3.0907 17.1308 3.28062 17.1596 3.7972C17.1862 4.27568 17.1394 4.9026 17.0226 5.64483C16.7897 7.1244 16.2974 8.94933 15.6914 10.7324C15.0856 12.5145 14.3776 14.2217 13.7262 15.4666C13.3985 16.093 13.0992 16.5748 12.8493 16.887C12.7234 17.0443 12.6302 17.1327 12.5732 17.1751C12.5048 17.2259 12.5572 17.1609 12.7011 17.1673L12.668 17.9165ZM10.2179 11.5652L9.48544 11.7263C9.94383 13.8109 10.3018 15.4397 10.6839 16.5469C10.8744 17.0987 11.0924 17.5883 11.3743 17.9542C11.6703 18.3384 12.0837 18.6414 12.6349 18.6658L12.668 17.9165L12.7011 17.1673C12.6976 17.1671 12.6959 17.1679 12.6841 17.1608C12.6669 17.1504 12.6246 17.1192 12.5625 17.0387C12.4304 16.8672 12.2757 16.5613 12.1018 16.0575C11.7553 15.0533 11.4179 13.5299 10.9504 11.4042L10.2179 11.5652ZM9.58347 10.4168L10.1138 10.9471L13.0305 8.03048L12.5001 7.50014L11.9698 6.96982L9.05314 9.88648L9.58347 10.4168Z" fill="#042F59"/>
|
|
3
4
|
</svg>
|
|
@@ -2869,10 +2869,14 @@
|
|
|
2869
2869
|
}
|
|
2870
2870
|
|
|
2871
2871
|
/* Icon Color Styles */
|
|
2872
|
-
.icon.plain_background path[stroke] {
|
|
2872
|
+
.icon.plain_background.default path[stroke] {
|
|
2873
2873
|
stroke: var(--color-icon, #4b5565);
|
|
2874
2874
|
}
|
|
2875
2875
|
|
|
2876
|
+
.icon.plain_background.default path[fill] {
|
|
2877
|
+
fill: var(--color-icon, #4b5565);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2876
2880
|
.icon.plain_background.active path[stroke] {
|
|
2877
2881
|
stroke: var(--color-icon-information-bold, #042f59);
|
|
2878
2882
|
}
|
|
@@ -2881,19 +2885,31 @@
|
|
|
2881
2885
|
fill: var(--color-icon-information-bold, #042f59);
|
|
2882
2886
|
}
|
|
2883
2887
|
|
|
2884
|
-
.icon.plain_background path#Icon[
|
|
2888
|
+
.icon.plain_background.default path#Icon[stroke] {
|
|
2889
|
+
stroke: var(--color-icon, #4b5565);
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
.icon.plain_background.default path#Icon[fill] {
|
|
2885
2893
|
fill: var(--color-icon, #4b5565);
|
|
2886
2894
|
}
|
|
2887
2895
|
|
|
2896
|
+
.icon.plain_background.active path#Icon[stroke] {
|
|
2897
|
+
stroke: var(--color-icon-information-bold, #042f59);
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2888
2900
|
.icon.plain_background.active path#Icon[fill] {
|
|
2889
2901
|
fill: var(--color-icon-information-bold, #042f59);
|
|
2890
2902
|
}
|
|
2891
2903
|
|
|
2904
|
+
.icon.plain_background.active path#Accent[stroke] {
|
|
2905
|
+
stroke: var(--color-icon-information-bold, #042f59);
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2892
2908
|
.icon.plain_background.active path#Accent[fill] {
|
|
2893
2909
|
fill: var(--color-icon-information-bold, #042f59);
|
|
2894
2910
|
}
|
|
2895
2911
|
|
|
2896
|
-
.icon.plain_background circle[stroke] {
|
|
2912
|
+
.icon.plain_background.default circle[stroke] {
|
|
2897
2913
|
stroke: var(--color-icon, #4b5565);
|
|
2898
2914
|
}
|
|
2899
2915
|
|
|
@@ -2901,45 +2917,86 @@
|
|
|
2901
2917
|
fill: var(--color-icon-information-bold, #042f59);
|
|
2902
2918
|
}
|
|
2903
2919
|
|
|
2904
|
-
.icon.colored_background path[stroke] {
|
|
2905
|
-
|
|
2920
|
+
.icon.colored_background.default path[stroke] {
|
|
2921
|
+
stroke: var(--color-icon, #4b5565);
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
.icon.colored_background.default path[fill] {
|
|
2925
|
+
fill: var(--color-icon, #4b5565);
|
|
2906
2926
|
}
|
|
2907
2927
|
|
|
2908
2928
|
.icon.colored_background.active path[stroke] {
|
|
2909
|
-
|
|
2929
|
+
stroke: var(--color-icon-information-bold, #042f59);
|
|
2910
2930
|
}
|
|
2911
2931
|
|
|
2912
2932
|
.icon.colored_background.active path[fill] {
|
|
2913
|
-
|
|
2933
|
+
fill: var(--color-icon-information-bold, #042f59);
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
.icon.colored_background path#Icon[stroke] {
|
|
2937
|
+
stroke: var(--color-icon, #4b5565);
|
|
2914
2938
|
}
|
|
2915
2939
|
|
|
2916
2940
|
.icon.colored_background path#Icon[fill] {
|
|
2917
|
-
|
|
2941
|
+
fill: var(--color-icon, #4b5565);
|
|
2918
2942
|
}
|
|
2919
2943
|
|
|
2920
|
-
.icon.colored_background.active path#
|
|
2921
|
-
|
|
2944
|
+
.icon.colored_background.active path#Accent[stroke] {
|
|
2945
|
+
stroke: var(--color-icon-information-bold, #042f59);
|
|
2922
2946
|
}
|
|
2923
2947
|
|
|
2924
2948
|
.icon.colored_background.active path#Accent[fill] {
|
|
2925
|
-
|
|
2949
|
+
fill: var(--color-icon-information-bold, #042f59);
|
|
2926
2950
|
}
|
|
2927
2951
|
|
|
2928
2952
|
.icon.colored_background circle[stroke] {
|
|
2929
|
-
|
|
2953
|
+
stroke: var(--color-icon, #4b5565);
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
.icon.colored_background circle[fill] {
|
|
2957
|
+
fill: var(--color-icon, #4b5565);
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
.icon.colored_background.active circle[stroke] {
|
|
2961
|
+
stroke: var(--color-icon-information-bold, #042f59);
|
|
2930
2962
|
}
|
|
2931
2963
|
|
|
2932
2964
|
.icon.colored_background.active circle[fill] {
|
|
2933
|
-
|
|
2965
|
+
fill: var(--color-icon-information-bold, #042f59);
|
|
2934
2966
|
}
|
|
2935
2967
|
|
|
2936
|
-
.icon.plain_background.default path[fill],
|
|
2968
|
+
/* .icon.plain_background.default path[fill],
|
|
2937
2969
|
.icon.colored_background.default path[fill],
|
|
2938
2970
|
.icon.plain_background.default circle[fill],
|
|
2939
2971
|
.icon.colored_background.default circle[fill] {
|
|
2940
2972
|
fill: transparent;
|
|
2973
|
+
} */
|
|
2974
|
+
|
|
2975
|
+
.icon.plain_background.default path.has_opacity,
|
|
2976
|
+
.icon.plain_background.default g.has_opacity,
|
|
2977
|
+
.icon.plain_background.default circle.has_opacity,
|
|
2978
|
+
.icon.colored_background.default path.has_opacity,
|
|
2979
|
+
.icon.colored_background.default g.has_opacity,
|
|
2980
|
+
.icon.colored_background.default circle.has_opacity {
|
|
2981
|
+
opacity: 0;
|
|
2941
2982
|
}
|
|
2942
2983
|
|
|
2984
|
+
.icon.plain_background.active path.has_opacity,
|
|
2985
|
+
.icon.plain_background.active g.has_opacity,
|
|
2986
|
+
.icon.plain_background.active circle.has_opacity,
|
|
2987
|
+
.icon.colored_background.active path.has_opacity,
|
|
2988
|
+
.icon.colored_background.active g.has_opacity,
|
|
2989
|
+
.icon.colored_background.active circle.has_opacity {
|
|
2990
|
+
opacity: 0.5;
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
/* .icon.plain_background.default path[fill].has_opacity,
|
|
2994
|
+
.icon.plain_background.default g.has_opacity,
|
|
2995
|
+
.icon.colored_background.default path[fill].has_opacity,
|
|
2996
|
+
.icon.colored_background.default g.has_opacity{
|
|
2997
|
+
fill: transparent;
|
|
2998
|
+
} */
|
|
2999
|
+
|
|
2943
3000
|
/* Text Styles */
|
|
2944
3001
|
.label_text {
|
|
2945
3002
|
max-width: 100%;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { getAssetPath, h } from "@stencil/core";
|
|
2
2
|
export class GbComplexSecondarySideBarItem {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
4
|
+
this.state = 'default';
|
|
5
|
+
this.type = 'full_with_label';
|
|
6
|
+
this.category = 'colored_background';
|
|
7
|
+
this.label = '';
|
|
5
8
|
this.icon = '';
|
|
6
9
|
this.showTooltip = false;
|
|
7
10
|
this.leadingIconSvg = '';
|
|
@@ -10,13 +13,28 @@ export class GbComplexSecondarySideBarItem {
|
|
|
10
13
|
const iconPath = getAssetPath(`${iconName}`);
|
|
11
14
|
const response = await fetch(iconPath);
|
|
12
15
|
const svg = await response.text();
|
|
13
|
-
|
|
16
|
+
const parser = new DOMParser();
|
|
17
|
+
const svgDoc = parser.parseFromString(svg, 'image/svg+xml');
|
|
18
|
+
const svgElement = svgDoc.documentElement;
|
|
19
|
+
// Add `has-opacity` class to all elements that have an opacity attribute
|
|
20
|
+
const elementsWithOpacity = svgElement.querySelectorAll('[opacity]');
|
|
21
|
+
elementsWithOpacity.forEach(el => {
|
|
22
|
+
el.classList.add('has_opacity');
|
|
23
|
+
});
|
|
24
|
+
const gWithOpacity = svgElement.querySelectorAll('g[opacity]');
|
|
25
|
+
gWithOpacity.forEach(g => {
|
|
26
|
+
g.classList.add('has_opacity');
|
|
27
|
+
});
|
|
28
|
+
// Serialize and store
|
|
29
|
+
const modifiedSvg = svgElement.outerHTML;
|
|
30
|
+
// console.log(modifiedSvg)
|
|
31
|
+
this.leadingIconSvg = modifiedSvg;
|
|
14
32
|
}
|
|
15
33
|
componentDidLoad() {
|
|
16
34
|
this.loadIcon(this.icon);
|
|
17
35
|
}
|
|
18
36
|
render() {
|
|
19
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: '57632db7fd548e55a471fb6fb51f784b579d6dde', class: `container ${this.type}` }, h("div", { key: '9e53f1559c074d85ff745d7d4dc40d7286a19cec', class: `secondary_side_bar_item_div ${this.state} ${this.type} ${this.category}`, onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("div", { key: 'bfaa8ae13149b4decc820663850bdbcadd3a4edf', class: "icon" }, h("div", { key: '4566c395d1b2204ad346dfa79db6229817f35946', class: "icon_container" }, h("div", { key: 'a39d5902b0e852bfd9516ae5aef27ace8364431f', class: `icon ${this.state} ${this.category}`, innerHTML: this.leadingIconSvg }))), this.type === 'full_with_label' && (h("div", { key: 'e64f1b9b1d91b25205690894e884db2aa102cd46', class: "text" }, h("p", { key: 'd6b5bd96634d311ad825457a2b97da6988a3946c', class: `label_text ${this.state} ${this.category} ${this.state !== 'active' ? 'text-md-medium' : 'text-md-semi-bold'}` }, this.label))), this.type === 'icon_only' && this.showTooltip && (h("gb-tooltip", { key: 'a381ca7df1756f7875ae463088d05d7e39d25a92', "show-arrow": true, arrow: "left", class: "tooltip" }, h("p", { key: '6e742a6c19798eb3dbcee7c24ebd2fb9c96d44b7', slot: "label" }, this.label))))));
|
|
20
38
|
}
|
|
21
39
|
static get is() { return "gb-complex-secondary-side-bar-item"; }
|
|
22
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +67,8 @@ export class GbComplexSecondarySideBarItem {
|
|
|
49
67
|
"getter": false,
|
|
50
68
|
"setter": false,
|
|
51
69
|
"reflect": false,
|
|
52
|
-
"attribute": "state"
|
|
70
|
+
"attribute": "state",
|
|
71
|
+
"defaultValue": "'default'"
|
|
53
72
|
},
|
|
54
73
|
"type": {
|
|
55
74
|
"type": "string",
|
|
@@ -68,7 +87,8 @@ export class GbComplexSecondarySideBarItem {
|
|
|
68
87
|
"getter": false,
|
|
69
88
|
"setter": false,
|
|
70
89
|
"reflect": false,
|
|
71
|
-
"attribute": "type"
|
|
90
|
+
"attribute": "type",
|
|
91
|
+
"defaultValue": "'full_with_label'"
|
|
72
92
|
},
|
|
73
93
|
"category": {
|
|
74
94
|
"type": "string",
|
|
@@ -93,7 +113,8 @@ export class GbComplexSecondarySideBarItem {
|
|
|
93
113
|
"getter": false,
|
|
94
114
|
"setter": false,
|
|
95
115
|
"reflect": false,
|
|
96
|
-
"attribute": "category"
|
|
116
|
+
"attribute": "category",
|
|
117
|
+
"defaultValue": "'colored_background'"
|
|
97
118
|
},
|
|
98
119
|
"label": {
|
|
99
120
|
"type": "string",
|
|
@@ -113,7 +134,7 @@ export class GbComplexSecondarySideBarItem {
|
|
|
113
134
|
"setter": false,
|
|
114
135
|
"reflect": false,
|
|
115
136
|
"attribute": "label",
|
|
116
|
-
"defaultValue": "'
|
|
137
|
+
"defaultValue": "''"
|
|
117
138
|
},
|
|
118
139
|
"icon": {
|
|
119
140
|
"type": "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-complex-secondary-side-bar-item.js","sourceRoot":"","sources":["../../../src/components/gb-complex-secondary-side-bar-item/gb-complex-secondary-side-bar-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"gb-complex-secondary-side-bar-item.js","sourceRoot":"","sources":["../../../src/components/gb-complex-secondary-side-bar-item/gb-complex-secondary-side-bar-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQjF,MAAM,OAAO,6BAA6B;IAL1C;QAMU,UAAK,GAAyB,SAAS,CAAC;QACxC,SAAI,GAAoC,iBAAiB,CAAC;QAC1D,aAAQ,GAAgC,oBAAoB,CAAC;QAC7D,UAAK,GAAW,EAAE,CAAC;QACnB,SAAI,GAAW,EAAE,CAAC;QACD,gBAAW,GAAY,KAAK,CAAC;QAE7C,mBAAc,GAAW,EAAE,CAAC;KA4DtC;IA1DC,KAAK,CAAC,QAAQ,CAAC,QAAgB;QAC7B,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,QAAQ,EAAE,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAElC,MAAM,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;QAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;QAC5D,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAC;QAE1C,yEAAyE;QACzE,MAAM,mBAAmB,GAAG,UAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QACrE,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;YAC/B,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG,UAAU,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;QAE/D,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACvB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,sBAAsB;QACtB,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC;QACzC,2BAA2B;QAC3B,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC;IACpC,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE,aAAa,IAAI,CAAC,IAAI,EAAE;YAClC,4DACE,KAAK,EAAE,+BAA+B,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,EAChF,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,EAC7C,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;gBAE9C,4DAAK,KAAK,EAAC,MAAM;oBACf,4DAAK,KAAK,EAAC,gBAAgB;wBACzB,4DAAK,KAAK,EAAE,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc,GAAQ,CACrF,CACF;gBACL,IAAI,CAAC,IAAI,KAAK,iBAAiB,IAAI,CAClC,4DAAK,KAAK,EAAC,MAAM;oBACf,0DAAG,KAAK,EAAE,cAAc,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,mBAAmB,EAAE,IAAG,IAAI,CAAC,KAAK,CAAK,CACvI,CACP;gBACA,IAAI,CAAC,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,WAAW,IAAI,CAChD,iFAAwB,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS;oBACxD,0DAAG,IAAI,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAK,CACrB,CACd,CACG,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Prop, State, getAssetPath, h } from '@stencil/core';\r\nimport { GeneralBackgroundCategories } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-complex-secondary-side-bar-item',\r\n styleUrl: 'gb-complex-secondary-side-bar-item.css',\r\n shadow: true,\r\n})\r\nexport class GbComplexSecondarySideBarItem {\r\n @Prop() state: 'default' | 'active' = 'default';\r\n @Prop() type: 'full_with_label' | 'icon_only' = 'full_with_label';\r\n @Prop() category: GeneralBackgroundCategories = 'colored_background';\r\n @Prop() label: string = '';\r\n @Prop() icon: string = '';\r\n @Prop({ mutable: true }) showTooltip: boolean = false;\r\n @Element() el: HTMLElement;\r\n @State() leadingIconSvg: string = '';\r\n\r\n async loadIcon(iconName: string) {\r\n const iconPath = getAssetPath(`${iconName}`);\r\n const response = await fetch(iconPath);\r\n const svg = await response.text();\r\n\r\n const parser = new DOMParser();\r\n const svgDoc = parser.parseFromString(svg, 'image/svg+xml');\r\n const svgElement = svgDoc.documentElement;\r\n\r\n // Add `has-opacity` class to all elements that have an opacity attribute\r\n const elementsWithOpacity = svgElement.querySelectorAll('[opacity]');\r\n elementsWithOpacity.forEach(el => {\r\n el.classList.add('has_opacity');\r\n });\r\n\r\n const gWithOpacity = svgElement.querySelectorAll('g[opacity]');\r\n\r\n gWithOpacity.forEach(g => {\r\n g.classList.add('has_opacity');\r\n });\r\n\r\n // Serialize and store\r\n const modifiedSvg = svgElement.outerHTML;\r\n // console.log(modifiedSvg)\r\n this.leadingIconSvg = modifiedSvg;\r\n }\r\n\r\n componentDidLoad() {\r\n this.loadIcon(this.icon);\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`container ${this.type}`}>\r\n <div\r\n class={`secondary_side_bar_item_div ${this.state} ${this.type} ${this.category}`}\r\n onMouseEnter={() => (this.showTooltip = true)}\r\n onMouseLeave={() => (this.showTooltip = false)}\r\n >\r\n <div class=\"icon\">\r\n <div class=\"icon_container\">\r\n <div class={`icon ${this.state} ${this.category}`} innerHTML={this.leadingIconSvg}></div>\r\n </div>\r\n </div>\r\n {this.type === 'full_with_label' && (\r\n <div class=\"text\">\r\n <p class={`label_text ${this.state} ${this.category} ${this.state !== 'active' ? 'text-md-medium' : 'text-md-semi-bold'}`}>{this.label}</p>\r\n </div>\r\n )}\r\n {this.type === 'icon_only' && this.showTooltip && (\r\n <gb-tooltip show-arrow={true} arrow=\"left\" class=\"tooltip\">\r\n <p slot=\"label\">{this.label}</p>\r\n </gb-tooltip>\r\n )}\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|