globuswebcomponents 1.6.9 → 1.7.1
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.cjs.entry.js +17 -1
- package/dist/cjs/gb-action-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/gb-action-panel.entry.cjs.js.map +1 -1
- package/dist/cjs/{gb-avatar_25.cjs.entry.js → gb-avatar_19.cjs.entry.js} +593 -633
- package/dist/cjs/gb-avatar_19.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-breadcrumb-button-base.cjs.entry.js +41 -0
- package/dist/cjs/gb-breadcrumb-button-base.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-breadcrumb-button-base.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-breadcrumbs.cjs.entry.js +61 -0
- package/dist/cjs/gb-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-breadcrumbs.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-button-close.cjs.entry.js +20 -0
- package/dist/cjs/gb-button-close.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-button-close.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-card-icon.cjs.entry.js +31 -0
- package/dist/cjs/gb-card-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-card-icon.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-collapse-button_4.cjs.entry.js +1 -1
- package/dist/cjs/gb-comment-item.cjs.entry.js +29 -0
- package/dist/cjs/gb-comment-item.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-comment-item.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-comment.cjs.entry.js +61 -0
- package/dist/cjs/gb-comment.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-comment.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-featured-icon.gb-step-base.entry.cjs.js.map +1 -0
- package/dist/cjs/{gb-checkbox_2.cjs.entry.js → gb-featured-icon_2.cjs.entry.js} +43 -149
- package/dist/cjs/gb-featured-icon_2.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-file-type-icon.gb-progress-bar.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-file-type-icon_2.cjs.entry.js +35 -0
- package/dist/cjs/gb-file-type-icon_2.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-file-upload-item-base.cjs.entry.js +25 -0
- package/dist/cjs/gb-file-upload-item-base.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-file-upload-item-base.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-file-upload.cjs.entry.js +200 -0
- package/dist/cjs/gb-file-upload.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-file-upload.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-header-icon.cjs.entry.js +4 -4
- package/dist/cjs/gb-header.cjs.entry.js +1 -1
- package/dist/cjs/gb-help-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gb-horizontal-tabs.cjs.entry.js +47 -0
- package/dist/cjs/gb-horizontal-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-horizontal-tabs.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-input-dropdown.gb-pagination-button-group-base.gb-pagination-number-base.entry.cjs.js.map +1 -1
- package/dist/cjs/gb-input-dropdown_3.cjs.entry.js +29 -23
- package/dist/cjs/gb-input-dropdown_3.cjs.entry.js.map +1 -1
- package/dist/cjs/gb-mega-input-field-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-notification-content.cjs.entry.js +1 -1
- package/dist/cjs/gb-notification-pane.cjs.entry.js +3 -3
- package/dist/cjs/gb-pagination-dot-group.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination-dot-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
- package/dist/cjs/gb-quick-action-card.cjs.entry.js +22 -0
- package/dist/cjs/gb-quick-action-card.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-quick-action-card.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-quick-action-icon.cjs.entry.js +23 -0
- package/dist/cjs/gb-quick-action-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-quick-action-icon.entry.cjs.js.map +1 -0
- 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-stepper-horizontal-icons-centered.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-horizontal-line-with-text.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-vertical-icons-with-text.cjs.entry.js +94 -0
- package/dist/cjs/gb-stepper-vertical-icons-with-text.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-stepper-vertical-icons-with-text.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-tab-button-base.cjs.entry.js +72 -0
- package/dist/cjs/gb-tab-button-base.cjs.entry.js.map +1 -0
- package/dist/cjs/gb-tab-button-base.entry.cjs.js.map +1 -0
- package/dist/cjs/gb-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/gb-textarea-input-field.cjs.entry.js +4 -4
- 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-toggle-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gb-token-field-compact.cjs.entry.js +1 -1
- package/dist/cjs/gb-token-field-compressed.cjs.entry.js +2 -2
- package/dist/cjs/gb-top-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/gb-top-bar-sidemenu.cjs.entry.js +1 -1
- package/dist/cjs/gb-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/gb-vertical-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-tooltip.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/assets/filter-horizontal-stroke.svg +3 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/gb-action-panel/gb-action-panel.js +77 -5
- package/dist/collection/components/gb-action-panel/gb-action-panel.js.map +1 -1
- package/dist/collection/components/gb-badge/gb-badge.js +3 -3
- package/dist/collection/components/gb-badge/gb-badge.js.map +1 -1
- package/dist/collection/components/gb-breadcrumbs/gb-breadcrumbs.js +4 -20
- package/dist/collection/components/gb-breadcrumbs/gb-breadcrumbs.js.map +1 -1
- package/dist/collection/components/gb-button/gb-button.js +1 -1
- package/dist/collection/components/gb-button/readme.md +3 -1
- package/dist/collection/components/gb-file-upload/gb-file-upload.js +43 -46
- package/dist/collection/components/gb-file-upload/gb-file-upload.js.map +1 -1
- package/dist/collection/components/gb-filter-button/gb-filter-button.css +2670 -0
- package/dist/collection/components/gb-filter-button/gb-filter-button.js +78 -0
- package/dist/collection/components/gb-filter-button/gb-filter-button.js.map +1 -0
- package/dist/collection/components/gb-header/gb-header.js +1 -1
- package/dist/collection/components/gb-header-icon/gb-header-icon.js +4 -4
- package/dist/collection/components/gb-help-dropdown/gb-help-dropdown.js +1 -1
- package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js +1 -1
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.css +1 -1
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +1 -421
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js.map +1 -1
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +28 -22
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
- package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js +2 -2
- package/dist/collection/components/gb-input-field/gb-input-field.js +66 -14
- package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
- package/dist/collection/components/gb-mega-input-field-base/gb-mega-input-field-base.js +2 -2
- package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
- package/dist/collection/components/gb-notification-pane/gb-notification-pane.js +3 -3
- package/dist/collection/components/gb-pagination/gb-pagination.js +1 -1
- package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js +1 -1
- package/dist/collection/components/gb-pagination-dot-group/gb-pagination-dot-group.js +1 -1
- package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js +1 -1
- package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js +1 -1
- package/dist/collection/components/gb-password-button/gb-password-button.js +1 -1
- package/dist/collection/components/gb-progress-bar/gb-progress-bar.js +1 -1
- package/dist/collection/components/gb-progress-circle/gb-progress-circle.js +1 -1
- package/dist/collection/components/gb-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-scrollbar/gb-scrollbar.js +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +1 -1
- package/dist/collection/components/gb-simple-side-bar-item/gb-simple-side-bar-item.js +1 -1
- package/dist/collection/components/gb-slider/gb-slider.js +1 -1
- package/dist/collection/components/gb-slider-control-handle/gb-slider-control-handle.js +1 -1
- package/dist/collection/components/gb-status-indicator/gb-status-indicator.js +1 -1
- package/dist/collection/components/gb-step-base/gb-step-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-line-with-text/gb-stepper-horizontal-line-with-text.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 +7 -4
- package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js.map +1 -1
- package/dist/collection/components/gb-table-cell/gb-table-cell.js +1 -1
- 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 +4 -4
- 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-top-bar/gb-top-bar.js +1 -1
- package/dist/collection/components/gb-top-bar-item/gb-top-bar-item.js +1 -1
- package/dist/collection/components/gb-top-bar-sidemenu/gb-top-bar-sidemenu.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-tooltip/gb-wysiwyg-tooltip.js +1 -1
- 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 +17 -1
- package/dist/components/gb-action-panel.js.map +1 -1
- package/dist/components/gb-avatar-add-button.js +1 -1
- package/dist/components/gb-avatar-dropdown.js +3 -3
- package/dist/components/gb-avatar-group.js +4 -4
- package/dist/components/gb-avatar-label-group.js +1 -1
- package/dist/components/gb-avatar-profile-photo.js +2 -2
- package/dist/components/gb-avatar.js +1 -1
- package/dist/components/gb-badge.js +1 -1
- package/dist/components/gb-breadcrumbs.js +1 -10
- package/dist/components/gb-breadcrumbs.js.map +1 -1
- package/dist/components/gb-checkbox-group-item.js +1 -1
- package/dist/components/gb-checkbox-group.js +3 -3
- package/dist/components/gb-collapse-button.js +1 -1
- package/dist/components/gb-complex-primary-side-bar-item.js +1 -1
- package/dist/components/gb-complex-secondary-side-bar-item.js +1 -1
- package/dist/components/gb-detail-cell.js +4 -4
- package/dist/components/gb-file-upload-item-base.js +1 -1
- package/dist/components/gb-file-upload.js +48 -40
- package/dist/components/gb-file-upload.js.map +1 -1
- package/dist/components/gb-filter-button.d.ts +11 -0
- package/dist/components/gb-filter-button.js +84 -0
- package/dist/components/gb-filter-button.js.map +1 -0
- package/dist/components/gb-header-icon.js +1 -1
- package/dist/components/gb-header.js +4 -4
- 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 +6 -46
- package/dist/components/gb-horizontal-tabs.js.map +1 -1
- package/dist/components/gb-input-dropdown-menu-item.js +1 -1
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-input-field.js +1 -1
- package/dist/components/gb-mega-input-field-base.js +1 -1
- package/dist/components/gb-notification-content.js +1 -1
- package/dist/components/gb-notification-pane.js +4 -4
- 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 +15 -15
- package/dist/components/gb-password-button.js +1 -1
- package/dist/components/gb-progress-bar.js +1 -1
- package/dist/components/gb-progress-circle.js +1 -1
- package/dist/components/gb-quick-action-card.js +1 -1
- package/dist/components/gb-quick-action-icon.js +1 -1
- 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-stepper-horizontal-icons-centered.js +2 -2
- package/dist/components/gb-stepper-horizontal-line-with-text.js +2 -2
- package/dist/components/gb-stepper-vertical-icons-with-text.js +2 -2
- package/dist/components/gb-tab-button-base.js +1 -1
- package/dist/components/gb-table-cell.js +1 -1
- package/dist/components/gb-tag-checkbox.js +1 -1
- package/dist/components/gb-tag-close.js +1 -1
- package/dist/components/gb-tag-count.js +1 -1
- package/dist/components/gb-tag.js +1 -1
- package/dist/components/gb-textarea-input-field.js +11 -11
- package/dist/components/gb-toast-button.js +1 -1
- package/dist/components/gb-toast.js +2 -2
- package/dist/components/gb-toggle-base.js +1 -1
- package/dist/components/gb-toggle.js +2 -2
- package/dist/components/gb-token-field-compact.js +2 -2
- package/dist/components/gb-token-field-compressed.js +3 -3
- package/dist/components/gb-tooltip.js +1 -1
- package/dist/components/gb-top-bar-item.js +1 -1
- package/dist/components/gb-top-bar-sidemenu.js +6 -6
- package/dist/components/gb-top-bar.js +3 -3
- package/dist/components/gb-vertical-tabs.js +1 -1
- package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
- package/dist/components/gb-wysiwyg-tooltip.js +2 -2
- package/dist/components/{p-Db49pedY.js → p-1M3OIgZ1.js} +3 -3
- package/dist/components/{p-Db49pedY.js.map → p-1M3OIgZ1.js.map} +1 -1
- package/dist/components/{p-C4ur6kKT.js → p-2nl0dP8u.js} +12 -9
- package/dist/components/{p-C4ur6kKT.js.map → p-2nl0dP8u.js.map} +1 -1
- package/dist/components/{p-DYTqId9P.js → p-B4gmZMZ9.js} +3 -3
- package/dist/components/{p-DYTqId9P.js.map → p-B4gmZMZ9.js.map} +1 -1
- package/dist/components/{p-7FoTwn7P.js → p-BAIwLn8I.js} +7 -7
- package/dist/components/{p-7FoTwn7P.js.map → p-BAIwLn8I.js.map} +1 -1
- package/dist/components/{p-DjY47R7y.js → p-BAiCbUqR.js} +4 -4
- package/dist/components/{p-DjY47R7y.js.map → p-BAiCbUqR.js.map} +1 -1
- package/dist/components/{p-Ckqzuyjd.js → p-BBgYfAjP.js} +3 -3
- package/dist/components/{p-Ckqzuyjd.js.map → p-BBgYfAjP.js.map} +1 -1
- package/dist/components/{p-BVW_pVNB.js → p-BC5GrA-3.js} +6 -6
- package/dist/components/{p-BVW_pVNB.js.map → p-BC5GrA-3.js.map} +1 -1
- package/dist/components/{p-CdDlbegU.js → p-BJ_o7J9G.js} +3 -3
- package/dist/components/{p-CdDlbegU.js.map → p-BJ_o7J9G.js.map} +1 -1
- package/dist/components/{p-BMT-HcT8.js → p-BL03lxgp.js} +3 -3
- package/dist/components/{p-BMT-HcT8.js.map → p-BL03lxgp.js.map} +1 -1
- package/dist/components/{p-CGATB7Vx.js → p-BWV6o4C0.js} +4 -4
- package/dist/components/{p-CGATB7Vx.js.map → p-BWV6o4C0.js.map} +1 -1
- package/dist/components/{p-9Gybkjf6.js → p-BY5iDDSu.js} +4 -4
- package/dist/components/{p-9Gybkjf6.js.map → p-BY5iDDSu.js.map} +1 -1
- package/dist/components/{p-DxqMJncz.js → p-Bx35Uf_v.js} +4 -4
- package/dist/components/{p-DxqMJncz.js.map → p-Bx35Uf_v.js.map} +1 -1
- package/dist/components/{p-CI7_S3u8.js → p-C2cRGHdG.js} +7 -7
- package/dist/components/{p-CI7_S3u8.js.map → p-C2cRGHdG.js.map} +1 -1
- package/dist/components/{p-DT9_E3_Q.js → p-C3rzhZhO.js} +3 -3
- package/dist/components/{p-DT9_E3_Q.js.map → p-C3rzhZhO.js.map} +1 -1
- package/dist/components/{p-Z5byQ_wJ.js → p-C9jEn8HT.js} +8 -8
- package/dist/components/{p-Z5byQ_wJ.js.map → p-C9jEn8HT.js.map} +1 -1
- package/dist/components/{p-BTgaJ38N.js → p-CBGRlNRq.js} +3 -3
- package/dist/components/{p-BTgaJ38N.js.map → p-CBGRlNRq.js.map} +1 -1
- package/dist/components/{p-DIPYKE6-.js → p-CBbXGDVo.js} +3 -3
- package/dist/components/{p-DIPYKE6-.js.map → p-CBbXGDVo.js.map} +1 -1
- package/dist/components/{p-CWLX_7aj.js → p-CI8vjfpx.js} +5 -5
- package/dist/components/{p-CWLX_7aj.js.map → p-CI8vjfpx.js.map} +1 -1
- package/dist/components/{p-BUKII-Vv.js → p-CK3Mjum4.js} +59 -26
- package/dist/components/p-CK3Mjum4.js.map +1 -0
- package/dist/components/{p-iGep8XEr.js → p-CTALLMuZ.js} +3 -3
- package/dist/components/{p-iGep8XEr.js.map → p-CTALLMuZ.js.map} +1 -1
- package/dist/components/{p-C42cmMQN.js → p-CfjO1BwN.js} +40 -34
- package/dist/components/p-CfjO1BwN.js.map +1 -0
- package/dist/components/{p-3adYCRI6.js → p-ClWhuVmZ.js} +4 -4
- package/dist/components/{p-3adYCRI6.js.map → p-ClWhuVmZ.js.map} +1 -1
- package/dist/components/{p-DK6y2Hi6.js → p-CoM4CDHv.js} +3 -3
- package/dist/components/{p-DK6y2Hi6.js.map → p-CoM4CDHv.js.map} +1 -1
- package/dist/components/{p-O2OOqjsn.js → p-D8t55q0u.js} +4 -4
- package/dist/components/{p-O2OOqjsn.js.map → p-D8t55q0u.js.map} +1 -1
- package/dist/components/{p-SXno8eDk.js → p-D9WT3DY5.js} +3 -3
- package/dist/components/{p-SXno8eDk.js.map → p-D9WT3DY5.js.map} +1 -1
- package/dist/components/{p-CDroKpB2.js → p-DCOVaZnL.js} +4 -4
- package/dist/components/{p-CDroKpB2.js.map → p-DCOVaZnL.js.map} +1 -1
- package/dist/components/{p-BEx71tR-.js → p-DFmySOL_.js} +3 -3
- package/dist/components/{p-BEx71tR-.js.map → p-DFmySOL_.js.map} +1 -1
- package/dist/components/{p-Daq63P3Y.js → p-DM9cB3li.js} +3 -3
- package/dist/components/{p-Daq63P3Y.js.map → p-DM9cB3li.js.map} +1 -1
- package/dist/components/{p-pCsMYfVN.js → p-DNvkHYgU.js} +4 -4
- package/dist/components/{p-pCsMYfVN.js.map → p-DNvkHYgU.js.map} +1 -1
- package/dist/components/{p-DeInF8W8.js → p-DONktSww.js} +6 -6
- package/dist/components/{p-DeInF8W8.js.map → p-DONktSww.js.map} +1 -1
- package/dist/components/{p-2zhmlwSn.js → p-De3Uozik.js} +4 -4
- package/dist/components/{p-2zhmlwSn.js.map → p-De3Uozik.js.map} +1 -1
- package/dist/components/{p-ePMg-ehd.js → p-Dy12muaA.js} +3 -3
- package/dist/components/{p-ePMg-ehd.js.map → p-Dy12muaA.js.map} +1 -1
- package/dist/components/{p-DAR9qK_F.js → p-KzKm74fO.js} +3 -3
- package/dist/components/{p-DAR9qK_F.js.map → p-KzKm74fO.js.map} +1 -1
- package/dist/components/{p-DiDCbmyg.js → p-XAq90aw6.js} +3 -3
- package/dist/components/{p-DiDCbmyg.js.map → p-XAq90aw6.js.map} +1 -1
- package/dist/components/p-cHn6O-Kf.js.map +1 -1
- package/dist/components/{p-zfvIaYzb.js → p-xAJ3Tx8L.js} +3 -3
- package/dist/components/{p-zfvIaYzb.js.map → p-xAJ3Tx8L.js.map} +1 -1
- package/dist/components/test-input-tag.js +9 -9
- package/dist/docs.json +279 -554
- package/dist/esm/gb-action-panel.entry.js +17 -1
- package/dist/esm/gb-action-panel.entry.js.map +1 -1
- package/dist/esm/{gb-avatar_25.entry.js → gb-avatar_19.entry.js} +583 -617
- package/dist/esm/gb-avatar_19.entry.js.map +1 -0
- package/dist/esm/gb-breadcrumb-button-base.entry.js +39 -0
- package/dist/esm/gb-breadcrumb-button-base.entry.js.map +1 -0
- package/dist/esm/gb-breadcrumbs.entry.js +59 -0
- package/dist/esm/gb-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/gb-button-close.entry.js +18 -0
- package/dist/esm/gb-button-close.entry.js.map +1 -0
- package/dist/esm/gb-card-icon.entry.js +29 -0
- package/dist/esm/gb-card-icon.entry.js.map +1 -0
- package/dist/esm/gb-collapse-button_4.entry.js +1 -1
- package/dist/esm/gb-comment-item.entry.js +27 -0
- package/dist/esm/gb-comment-item.entry.js.map +1 -0
- package/dist/esm/gb-comment.entry.js +59 -0
- package/dist/esm/gb-comment.entry.js.map +1 -0
- package/dist/esm/gb-featured-icon.gb-step-base.entry.js.map +1 -0
- package/dist/esm/{gb-checkbox_2.entry.js → gb-featured-icon_2.entry.js} +43 -149
- package/dist/esm/gb-featured-icon_2.entry.js.map +1 -0
- package/dist/esm/gb-file-type-icon.gb-progress-bar.entry.js.map +1 -0
- package/dist/esm/gb-file-type-icon_2.entry.js +32 -0
- package/dist/esm/gb-file-type-icon_2.entry.js.map +1 -0
- package/dist/esm/gb-file-upload-item-base.entry.js +23 -0
- package/dist/esm/gb-file-upload-item-base.entry.js.map +1 -0
- package/dist/esm/gb-file-upload.entry.js +198 -0
- package/dist/esm/gb-file-upload.entry.js.map +1 -0
- package/dist/esm/gb-header-icon.entry.js +4 -4
- package/dist/esm/gb-header.entry.js +1 -1
- package/dist/esm/gb-help-dropdown.entry.js +1 -1
- package/dist/esm/gb-horizontal-tabs.entry.js +45 -0
- package/dist/esm/gb-horizontal-tabs.entry.js.map +1 -0
- package/dist/esm/gb-input-dropdown.gb-pagination-button-group-base.gb-pagination-number-base.entry.js.map +1 -1
- package/dist/esm/gb-input-dropdown_3.entry.js +29 -23
- package/dist/esm/gb-input-dropdown_3.entry.js.map +1 -1
- package/dist/esm/gb-mega-input-field-base.entry.js +2 -2
- package/dist/esm/gb-notification-content.entry.js +1 -1
- package/dist/esm/gb-notification-pane.entry.js +3 -3
- package/dist/esm/gb-pagination-dot-group.entry.js +1 -1
- package/dist/esm/gb-pagination-dot-indicator.entry.js +1 -1
- package/dist/esm/gb-pagination.entry.js +1 -1
- package/dist/esm/gb-progress-circle.entry.js +1 -1
- package/dist/esm/gb-quick-action-card.entry.js +20 -0
- package/dist/esm/gb-quick-action-card.entry.js.map +1 -0
- package/dist/esm/gb-quick-action-icon.entry.js +21 -0
- package/dist/esm/gb-quick-action-icon.entry.js.map +1 -0
- 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-stepper-horizontal-icons-centered.entry.js +1 -1
- package/dist/esm/gb-stepper-horizontal-line-with-text.entry.js +1 -1
- package/dist/esm/gb-stepper-vertical-icons-with-text.entry.js +92 -0
- package/dist/esm/gb-stepper-vertical-icons-with-text.entry.js.map +1 -0
- package/dist/esm/gb-tab-button-base.entry.js +70 -0
- package/dist/esm/gb-tab-button-base.entry.js.map +1 -0
- package/dist/esm/gb-table-cell.entry.js +1 -1
- package/dist/esm/gb-textarea-input-field.entry.js +4 -4
- package/dist/esm/gb-toast-button.entry.js +1 -1
- package/dist/esm/gb-toast.entry.js +1 -1
- package/dist/esm/gb-toggle-base.entry.js +2 -2
- package/dist/esm/gb-toggle.entry.js +1 -1
- package/dist/esm/gb-token-field-compact.entry.js +1 -1
- package/dist/esm/gb-token-field-compressed.entry.js +2 -2
- package/dist/esm/gb-top-bar-item.entry.js +1 -1
- package/dist/esm/gb-top-bar-sidemenu.entry.js +1 -1
- package/dist/esm/gb-top-bar.entry.js +1 -1
- package/dist/esm/gb-vertical-tabs.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-tooltip.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/assets/filter-horizontal-stroke.svg +3 -0
- package/dist/globuscomponents/gb-action-panel.entry.esm.js.map +1 -1
- package/dist/globuscomponents/gb-breadcrumb-button-base.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-breadcrumbs.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-button-close.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-card-icon.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-comment-item.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-comment.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-featured-icon.gb-step-base.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-file-type-icon.gb-progress-bar.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-file-upload-item-base.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-file-upload.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-horizontal-tabs.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-input-dropdown.gb-pagination-button-group-base.gb-pagination-number-base.entry.esm.js.map +1 -1
- package/dist/globuscomponents/gb-quick-action-card.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-quick-action-icon.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-stepper-vertical-icons-with-text.entry.esm.js.map +1 -0
- package/dist/globuscomponents/gb-tab-button-base.entry.esm.js.map +1 -0
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-7b13e1f9.entry.js → p-052e0eb2.entry.js} +2 -2
- package/dist/globuscomponents/{p-5d6f177d.entry.js → p-0731d56c.entry.js} +2 -2
- package/dist/globuscomponents/p-08ea650a.entry.js +2 -0
- package/dist/globuscomponents/p-08ea650a.entry.js.map +1 -0
- package/dist/globuscomponents/p-0917323d.entry.js +2 -0
- package/dist/globuscomponents/p-0917323d.entry.js.map +1 -0
- package/dist/globuscomponents/{p-a468a375.entry.js → p-0c9a7631.entry.js} +2 -2
- package/dist/globuscomponents/{p-f6faf3cc.entry.js → p-2c01e7a7.entry.js} +2 -2
- package/dist/globuscomponents/p-317f0367.entry.js +2 -0
- package/dist/globuscomponents/p-317f0367.entry.js.map +1 -0
- package/dist/globuscomponents/{p-ce913202.entry.js → p-4505917a.entry.js} +2 -2
- package/dist/globuscomponents/{p-cc23aa04.entry.js → p-46c17087.entry.js} +2 -2
- package/dist/globuscomponents/p-47130609.entry.js +2 -0
- package/dist/globuscomponents/p-47130609.entry.js.map +1 -0
- package/dist/globuscomponents/{p-3a83ad46.entry.js → p-47bc1724.entry.js} +2 -2
- package/dist/globuscomponents/{p-87e6978d.entry.js → p-4a318fae.entry.js} +2 -2
- package/dist/globuscomponents/p-4c99c4f3.entry.js +2 -0
- package/dist/globuscomponents/p-4c99c4f3.entry.js.map +1 -0
- package/dist/globuscomponents/{p-5f05622f.entry.js → p-4e2c7ada.entry.js} +2 -2
- package/dist/globuscomponents/{p-e099c040.entry.js → p-557c9b29.entry.js} +2 -2
- package/dist/globuscomponents/p-5e9f01f2.entry.js +2 -0
- package/dist/globuscomponents/p-5e9f01f2.entry.js.map +1 -0
- package/dist/globuscomponents/p-6215133d.entry.js +2 -0
- package/dist/globuscomponents/{p-fcb556ec.entry.js.map → p-6215133d.entry.js.map} +1 -1
- package/dist/globuscomponents/p-65652082.entry.js +2 -0
- package/dist/globuscomponents/{p-4ef781e9.entry.js → p-6c630d01.entry.js} +2 -2
- package/dist/globuscomponents/{p-64bf875a.entry.js → p-7025377c.entry.js} +2 -2
- package/dist/globuscomponents/{p-945cc534.entry.js → p-777ee58e.entry.js} +2 -2
- package/dist/globuscomponents/{p-109c3412.entry.js → p-7decf09d.entry.js} +2 -2
- package/dist/globuscomponents/{p-ead95c1c.entry.js → p-8046eb65.entry.js} +2 -2
- package/dist/globuscomponents/{p-f005c250.entry.js → p-85ae8eac.entry.js} +2 -2
- package/dist/globuscomponents/p-89aa42ab.entry.js +2 -0
- package/dist/globuscomponents/p-89aa42ab.entry.js.map +1 -0
- package/dist/globuscomponents/{p-57c0c184.entry.js → p-90a4c2c4.entry.js} +2 -2
- package/dist/globuscomponents/p-942bced6.entry.js +2 -0
- package/dist/globuscomponents/p-942bced6.entry.js.map +1 -0
- package/dist/globuscomponents/p-95e7be39.entry.js +2 -0
- package/dist/globuscomponents/p-95e7be39.entry.js.map +1 -0
- package/dist/globuscomponents/p-9923ef81.entry.js +2 -0
- package/dist/globuscomponents/p-9923ef81.entry.js.map +1 -0
- package/dist/globuscomponents/p-9b1cd3b4.entry.js +2 -0
- package/dist/globuscomponents/p-9b1cd3b4.entry.js.map +1 -0
- package/dist/globuscomponents/{p-76601e54.entry.js → p-a73e849b.entry.js} +2 -2
- package/dist/globuscomponents/p-a73e849b.entry.js.map +1 -0
- package/dist/globuscomponents/p-a82be1a0.entry.js +2 -0
- package/dist/globuscomponents/p-a82be1a0.entry.js.map +1 -0
- package/dist/globuscomponents/{p-5e976e74.entry.js → p-a983ab3d.entry.js} +2 -2
- package/dist/globuscomponents/{p-02ed9a74.entry.js → p-adafad18.entry.js} +2 -2
- package/dist/globuscomponents/{p-710ec71c.entry.js → p-bf79bbf6.entry.js} +2 -2
- package/dist/globuscomponents/{p-a9468822.entry.js → p-bff3fe46.entry.js} +2 -2
- package/dist/globuscomponents/p-c3d9ff98.entry.js +2 -0
- package/dist/globuscomponents/p-c3d9ff98.entry.js.map +1 -0
- package/dist/globuscomponents/{p-7c520bd1.entry.js → p-c59fa3dc.entry.js} +2 -2
- package/dist/globuscomponents/p-cHn6O-Kf.js.map +1 -1
- package/dist/globuscomponents/{p-90d45e78.entry.js → p-cee48003.entry.js} +2 -2
- package/dist/globuscomponents/p-d4eada39.entry.js +2 -0
- package/dist/globuscomponents/p-d4eada39.entry.js.map +1 -0
- package/dist/globuscomponents/p-d612fba6.entry.js +2 -0
- package/dist/globuscomponents/{p-ac7756fc.entry.js → p-d7b34e9b.entry.js} +2 -2
- package/dist/globuscomponents/p-dd81e164.entry.js +2 -0
- package/dist/globuscomponents/p-dd81e164.entry.js.map +1 -0
- package/dist/globuscomponents/{p-3a23c9cd.entry.js → p-e5161be4.entry.js} +2 -2
- package/dist/globuscomponents/p-e55edb8d.entry.js +2 -0
- package/dist/globuscomponents/p-e55edb8d.entry.js.map +1 -0
- package/dist/globuscomponents/{p-31eff200.entry.js → p-eabc0cec.entry.js} +2 -2
- package/dist/globuscomponents/{p-065bd688.entry.js → p-eb421944.entry.js} +2 -2
- package/dist/globuscomponents/p-f8f28317.entry.js +2 -0
- package/dist/globuscomponents/p-f8f28317.entry.js.map +1 -0
- package/dist/globuscomponents/{p-538ca254.entry.js → p-fa529e7f.entry.js} +2 -2
- package/dist/globuscomponents/{p-538877be.entry.js → p-fecb7a3a.entry.js} +2 -2
- package/dist/globuscomponents/readme.md +3 -1
- package/dist/types/components/gb-action-panel/gb-action-panel.d.ts +8 -0
- package/dist/types/components/gb-badge/gb-badge.d.ts +1 -1
- package/dist/types/components/gb-breadcrumbs/gb-breadcrumbs.d.ts +10 -9
- package/dist/types/components/gb-file-upload/gb-file-upload.d.ts +1 -0
- package/dist/types/components/gb-filter-button/gb-filter-button.d.ts +8 -0
- package/dist/types/components/gb-horizontal-tabs/gb-horizontal-tabs.d.ts +0 -20
- package/dist/types/components/gb-input-field/gb-input-field.d.ts +4 -0
- package/dist/types/components.d.ts +39 -44
- package/dist/types/models/reusableModels.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/gb-avatar_25.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-checkbox.gb-checkbox-base.entry.cjs.js.map +0 -1
- package/dist/cjs/gb-checkbox_2.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-help-tooltip.gb-input-field.gb-password-button.entry.cjs.js.map +0 -1
- package/dist/cjs/gb-help-tooltip_3.cjs.entry.js +0 -367
- package/dist/cjs/gb-help-tooltip_3.cjs.entry.js.map +0 -1
- package/dist/cjs/gb-input-dropdown-menu-item.gb-tag.gb-tag-checkbox.gb-tag-close.gb-tag-count.entry.cjs.js.map +0 -1
- package/dist/cjs/gb-input-dropdown-menu-item_5.cjs.entry.js +0 -128
- package/dist/cjs/gb-input-dropdown-menu-item_5.cjs.entry.js.map +0 -1
- package/dist/components/p-BUKII-Vv.js.map +0 -1
- package/dist/components/p-C42cmMQN.js.map +0 -1
- package/dist/esm/gb-avatar_25.entry.js.map +0 -1
- package/dist/esm/gb-checkbox.gb-checkbox-base.entry.js.map +0 -1
- package/dist/esm/gb-checkbox_2.entry.js.map +0 -1
- package/dist/esm/gb-help-tooltip.gb-input-field.gb-password-button.entry.js.map +0 -1
- package/dist/esm/gb-help-tooltip_3.entry.js +0 -363
- package/dist/esm/gb-help-tooltip_3.entry.js.map +0 -1
- package/dist/esm/gb-input-dropdown-menu-item.gb-tag.gb-tag-checkbox.gb-tag-close.gb-tag-count.entry.js.map +0 -1
- package/dist/esm/gb-input-dropdown-menu-item_5.entry.js +0 -122
- package/dist/esm/gb-input-dropdown-menu-item_5.entry.js.map +0 -1
- package/dist/globuscomponents/gb-checkbox.gb-checkbox-base.entry.esm.js.map +0 -1
- package/dist/globuscomponents/gb-help-tooltip.gb-input-field.gb-password-button.entry.esm.js.map +0 -1
- package/dist/globuscomponents/gb-input-dropdown-menu-item.gb-tag.gb-tag-checkbox.gb-tag-close.gb-tag-count.entry.esm.js.map +0 -1
- package/dist/globuscomponents/p-2cf8bb6e.entry.js +0 -2
- package/dist/globuscomponents/p-76601e54.entry.js.map +0 -1
- package/dist/globuscomponents/p-89cf1c92.entry.js +0 -2
- package/dist/globuscomponents/p-89cf1c92.entry.js.map +0 -1
- package/dist/globuscomponents/p-9301f3a9.entry.js +0 -2
- package/dist/globuscomponents/p-9301f3a9.entry.js.map +0 -1
- package/dist/globuscomponents/p-bc0efa0d.entry.js +0 -2
- package/dist/globuscomponents/p-bc0efa0d.entry.js.map +0 -1
- package/dist/globuscomponents/p-c13e88b9.entry.js +0 -2
- package/dist/globuscomponents/p-c13e88b9.entry.js.map +0 -1
- package/dist/globuscomponents/p-c3dd79a4.entry.js +0 -2
- package/dist/globuscomponents/p-c3dd79a4.entry.js.map +0 -1
- package/dist/globuscomponents/p-ecb5aefe.entry.js +0 -2
- package/dist/globuscomponents/p-fcb556ec.entry.js +0 -2
- /package/dist/globuscomponents/{p-7b13e1f9.entry.js.map → p-052e0eb2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5d6f177d.entry.js.map → p-0731d56c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a468a375.entry.js.map → p-0c9a7631.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-f6faf3cc.entry.js.map → p-2c01e7a7.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ce913202.entry.js.map → p-4505917a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-cc23aa04.entry.js.map → p-46c17087.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-3a83ad46.entry.js.map → p-47bc1724.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-87e6978d.entry.js.map → p-4a318fae.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5f05622f.entry.js.map → p-4e2c7ada.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e099c040.entry.js.map → p-557c9b29.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ecb5aefe.entry.js.map → p-65652082.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-4ef781e9.entry.js.map → p-6c630d01.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-64bf875a.entry.js.map → p-7025377c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-945cc534.entry.js.map → p-777ee58e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-109c3412.entry.js.map → p-7decf09d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ead95c1c.entry.js.map → p-8046eb65.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-f005c250.entry.js.map → p-85ae8eac.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-57c0c184.entry.js.map → p-90a4c2c4.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-5e976e74.entry.js.map → p-a983ab3d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-02ed9a74.entry.js.map → p-adafad18.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-710ec71c.entry.js.map → p-bf79bbf6.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-a9468822.entry.js.map → p-bff3fe46.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7c520bd1.entry.js.map → p-c59fa3dc.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-90d45e78.entry.js.map → p-cee48003.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-2cf8bb6e.entry.js.map → p-d612fba6.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ac7756fc.entry.js.map → p-d7b34e9b.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-3a23c9cd.entry.js.map → p-e5161be4.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-31eff200.entry.js.map → p-eabc0cec.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-065bd688.entry.js.map → p-eb421944.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-538ca254.entry.js.map → p-fa529e7f.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-538877be.entry.js.map → p-fecb7a3a.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reusableModels-_LRAKnsh.js","sources":["src/models/reusableModels.ts"],"sourcesContent":["export type GeneralSizes = 'xl4' | 'xl3' | 'xl2' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs' | 'profile_lg' | 'profile_md' | 'profile_sm';\r\n\r\nexport type GeneralHierarchies = 'primary' | 'secondary_gray' | 'secondary_color' | 'tertiary_gray' | 'tertiary_color' | 'link_gray' | 'link_color';\r\n\r\nexport enum StateEnum {\r\n Default = 'default',\r\n Disabled = 'disabled',\r\n}\r\n\r\nexport type ArrowPositions = 'bottom_center' | 'bottom_left' | 'bottom_right' | 'top_center' | 'left' | 'right' | 'none' | 'center';\r\n\r\nexport type CheckBoxVariants = 'checkbox' | 'check_circle' | 'radio';\r\n\r\nexport enum BorderWeights {\r\n VeryLight = 'very_light',\r\n Light = 'light',\r\n Regular = 'regular',\r\n Heavy = 'heavy',\r\n}\r\n\r\nexport enum OnlineIndicatorStates {\r\n Online = 'online',\r\n Offline = 'offline',\r\n}\r\n\r\nexport type BreakPoints = 'desktop' | 'mobile';\r\n\r\nexport type FileUploadIconType = 'solid' | 'outline';\r\n\r\nexport type FileUploadStates = 'default' | 'in_progress' | 'complete' | 'hover' | 'disabled' | 'error';\r\n\r\nexport type FileType = '';\r\n\r\nexport type GeneralColors = 'default' | 'gray' | 'primary' | 'error' | 'warning' | 'success' | 'discovery' | 'information' | 'pink' | 'purple';\r\n\r\nexport type PaginationNumberShapes = 'square' | 'circle';\r\n\r\nexport type PaginationTypes =\r\n | 'page_default'\r\n | 'page_minimal_center_aligned'\r\n | 'card_default'\r\n | 'card_minimal_right_aligned'\r\n | 'card_minimal_left_aligned'\r\n | 'card_minimal_center_aligned'\r\n | 'card_button_group_right_aligned'\r\n | 'card_button_group_left_aligned'\r\n | 'card_button_group_center_aligned';\r\n\r\nexport type TabTypes =\r\n | 'button_primary'\r\n | 'button_gray'\r\n | 'button_white'\r\n | 'rounded_button_white'\r\n | 'underline'\r\n | 'underline_filled'\r\n | 'line'\r\n | 'button_white_border'\r\n | 'rounded_button_white_border'\r\n | 'button_gray_border';\r\n\r\nexport type GeneralBackgroundCategories = 'plain_background' | 'colored_background';\r\n\r\nexport type InputFieldTypes =\r\n | 'default'\r\n | 'icon_leading'\r\n | 'leading_dropdown'\r\n | 'trailing_dropdown'\r\n | 'leading_text'\r\n | 'payment_input'\r\n | 'tags'\r\n | 'trailing_button'\r\n | 'password'\r\n | 'password_icon_leading'\r\n | 'count';\r\n\r\nexport type DropdownTypes = 'default' | 'icon_leading' | 'avatar_leading' | 'dot_leading' | 'checkbox' | 'search' | 'tags';\r\n\r\nexport type ColorTypes = 'gray' | 'blue' | 'cyan' | 'pink' | 'purple' | 'green' | 'yellow' | 'red' | 'white';\r\n\r\nexport type DropdownItemTypes = string | number | { name: string | number; username: string; selected?: boolean };\r\n\r\nexport type PaginationDotTypes = 'dot' | 'line';\r\n\r\nexport type FileIconStyles = 'default' | 'gray' | 'solid';\r\n\r\nexport type FileIconTypes = 'pdf' | 'csv' | 'jpg' | 'jpeg' | 'ppt' | 'pptx' | 'doc' | 'docx' | 'xls' | 'xlsx' | 'svg' | 'txt' | 'zip' | 'rar' | 'mp3' | 'mp4';\r\n\r\nexport type TableCellTypes = 'text' | 'lead_text' | 'lead_checkbox' | 'badge';\r\n\r\nexport type ProgressStepStatus = 'incomplete' | 'current' | 'complete';\r\n\r\nexport type ProgressStepTypes = 'icon_only' | 'icon_left' | 'icon_top' | 'text_line' | 'featured_icon_left' | 'featured_icon_top';\r\n\r\nexport type ProgressStepStates = 'default' | 'destructive';\r\n\r\nexport type BadgeTypes = 'pill_color' | 'pill_outline' | 'badge_color' | 'badge_modern';\r\n\r\nexport type GeneralStyles = 'standard' | 'compact';\r\n\r\nexport type StateType = 'default' | 'disabled';"],"names":["StateEnum","BorderWeights","OnlineIndicatorStates"],"mappings":";;AAIYA;AAAZ,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,SAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACvB,CAAC,EAHWA,iBAAS,KAATA,iBAAS,GAGpB,EAAA,CAAA,CAAA;AAMWC;AAAZ,CAAA,UAAY,aAAa,EAAA;AACvB,IAAA,aAAA,CAAA,WAAA,CAAA,GAAA,YAAwB;AACxB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,aAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EALWA,qBAAa,KAAbA,qBAAa,GAKxB,EAAA,CAAA,CAAA;AAEWC;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,qBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAHWA,6BAAqB,KAArBA,6BAAqB,GAGhC,EAAA,CAAA,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"reusableModels-_LRAKnsh.js","sources":["src/models/reusableModels.ts"],"sourcesContent":["export type GeneralSizes = 'xl4' | 'xl3' | 'xl2' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs' | 'profile_lg' | 'profile_md' | 'profile_sm';\r\n\r\nexport type GeneralHierarchies = 'primary' | 'secondary_gray' | 'secondary_color' | 'tertiary_gray' | 'tertiary_color' | 'link_gray' | 'link_color';\r\n\r\nexport enum StateEnum {\r\n Default = 'default',\r\n Disabled = 'disabled',\r\n}\r\n\r\nexport type ArrowPositions = 'bottom_center' | 'bottom_left' | 'bottom_right' | 'top_center' | 'left' | 'right' | 'none' | 'center';\r\n\r\nexport type CheckBoxVariants = 'checkbox' | 'check_circle' | 'radio';\r\n\r\nexport enum BorderWeights {\r\n VeryLight = 'very_light',\r\n Light = 'light',\r\n Regular = 'regular',\r\n Heavy = 'heavy',\r\n}\r\n\r\nexport enum OnlineIndicatorStates {\r\n Online = 'online',\r\n Offline = 'offline',\r\n}\r\n\r\nexport type BreakPoints = 'desktop' | 'mobile';\r\n\r\nexport type FileUploadIconType = 'solid' | 'outline';\r\n\r\nexport type FileUploadStates = 'default' | 'in_progress' | 'complete' | 'hover' | 'disabled' | 'error';\r\n\r\nexport type FileType = '';\r\n\r\nexport type GeneralColors = 'default' | 'gray' | 'primary' | 'error' | 'warning' | 'success' | 'discovery' | 'information' | 'pink' | 'purple';\r\n\r\nexport type PaginationNumberShapes = 'square' | 'circle';\r\n\r\nexport type PaginationTypes =\r\n | 'page_default'\r\n | 'page_minimal_center_aligned'\r\n | 'card_default'\r\n | 'card_minimal_right_aligned'\r\n | 'card_minimal_left_aligned'\r\n | 'card_minimal_center_aligned'\r\n | 'card_button_group_right_aligned'\r\n | 'card_button_group_left_aligned'\r\n | 'card_button_group_center_aligned';\r\n\r\nexport type TabTypes =\r\n | 'button_primary'\r\n | 'button_gray'\r\n | 'button_white'\r\n | 'rounded_button_white'\r\n | 'underline'\r\n | 'underline_filled'\r\n | 'line'\r\n | 'button_white_border'\r\n | 'rounded_button_white_border'\r\n | 'button_gray_border';\r\n\r\nexport type GeneralBackgroundCategories = 'plain_background' | 'colored_background';\r\n\r\nexport type InputFieldTypes =\r\n | 'default'\r\n | 'icon_leading'\r\n | 'leading_dropdown'\r\n | 'trailing_dropdown'\r\n | 'leading_text'\r\n | 'payment_input'\r\n | 'tags'\r\n | 'trailing_button'\r\n | 'password'\r\n | 'password_icon_leading'\r\n | 'count';\r\n\r\nexport type DropdownTypes = 'default' | 'icon_leading' | 'avatar_leading' | 'dot_leading' | 'checkbox' | 'search' | 'tags';\r\n\r\nexport type ColorTypes = 'gray' | 'blue' | 'cyan' | 'pink' | 'purple' | 'green' | 'yellow' | 'red' | 'white';\r\n\r\nexport type DropdownItemTypes = string | number | { name: string | number; username: string; selected?: boolean };\r\n\r\nexport type PaginationDotTypes = 'dot' | 'line';\r\n\r\nexport type FileIconStyles = 'default' | 'gray' | 'solid';\r\n\r\nexport type FileIconTypes = 'pdf' | 'csv' | 'jpg' | 'jpeg' | 'ppt' | 'pptx' | 'doc' | 'docx' | 'xls' | 'xlsx' | 'svg' | 'txt' | 'zip' | 'rar' | 'mp3' | 'mp4';\r\n\r\nexport type TableCellTypes = 'text' | 'lead_text' | 'lead_checkbox' | 'badge';\r\n\r\nexport type ProgressStepStatus = 'incomplete' | 'current' | 'complete';\r\n\r\nexport type ProgressStepTypes = 'icon_only' | 'icon_left' | 'icon_top' | 'text_line' | 'featured_icon_left' | 'featured_icon_top';\r\n\r\nexport type ProgressStepStates = 'default' | 'destructive';\r\n\r\nexport type BadgeTypes = 'pill_color' | 'pill_outline' | 'badge_color' | 'badge_modern';\r\n\r\nexport type GeneralStyles = 'standard' | 'compact';\r\n\r\nexport type StateType = 'default' | 'disabled' | 'applied';"],"names":["StateEnum","BorderWeights","OnlineIndicatorStates"],"mappings":";;AAIYA;AAAZ,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,SAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACvB,CAAC,EAHWA,iBAAS,KAATA,iBAAS,GAGpB,EAAA,CAAA,CAAA;AAMWC;AAAZ,CAAA,UAAY,aAAa,EAAA;AACvB,IAAA,aAAA,CAAA,WAAA,CAAA,GAAA,YAAwB;AACxB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,aAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,aAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EALWA,qBAAa,KAAbA,qBAAa,GAKxB,EAAA,CAAA,CAAA;AAEWC;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,qBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAHWA,6BAAqB,KAArBA,6BAAqB,GAGhC,EAAA,CAAA,CAAA;;"}
|
|
@@ -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: 'c748b5f68bda16ff989b143ab0044a0034118b53', class: "input_group", ref: el => (this.inputGroupElement = el) }, index.h("label", { key: '8bfdbef6e65ba81554a63427eb9bd9651ae001ff', htmlFor: this.idOfInput }, this.labelText), index.h("div", { key: 'c2dfce91df57507bfcb9607fa4de9b44fe931d13', class: "input_like_parent", onClick: () => (this.dropdownOpen = !this.dropdownOpen) }, index.h("input", { key: '709d7628d05f66253f51b7e87ae4bb4cd52c1bce', 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: '00a6b9fd836162c62e352525335f36a857107291', 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: '893fd3eba9035619b4b4901250b3269d9b9d3a14', 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>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2.5 5.08325C2.08579 5.08325 1.75 5.41904 1.75 5.83325C1.75 6.24747 2.08579 6.58325 2.5 6.58325V5.08325ZM2.5 13.4166C2.08579 13.4166 1.75 13.7524 1.75 14.1666C1.75 14.5808 2.08579 14.9166 2.5 14.9166V13.4166ZM7.5 14.9166C7.91421 14.9166 8.25 14.5808 8.25 14.1666C8.25 13.7524 7.91421 13.4166 7.5 13.4166V14.9166ZM17.5 14.9166C17.9142 14.9166 18.25 14.5808 18.25 14.1666C18.25 13.7524 17.9142 13.4166 17.5 13.4166V14.9166ZM12.5 5.08325C12.0858 5.08325 11.75 5.41904 11.75 5.83325C11.75 6.24747 12.0858 6.58325 12.5 6.58325L12.5 5.08325ZM17.5 6.58325C17.9142 6.58325 18.25 6.24747 18.25 5.83325C18.25 5.41904 17.9142 5.08325 17.5 5.08325L17.5 6.58325ZM2.5 6.58325H5V5.08325H2.5V6.58325ZM2.5 14.9166H7.5V13.4166H2.5V14.9166ZM15 14.9166H17.5V13.4166H15V14.9166ZM12.5 6.58325L17.5 6.58325L17.5 5.08325L12.5 5.08325L12.5 6.58325ZM7.5 7.58325C7.10145 7.58325 6.8401 7.58285 6.63913 7.56913C6.44489 7.55588 6.3624 7.53275 6.31587 7.51347L5.74185 8.89929C6.00161 9.00689 6.26641 9.04719 6.53702 9.06565C6.8009 9.08366 7.12198 9.08325 7.5 9.08325V7.58325ZM4.25 5.83325C4.25 6.21127 4.24959 6.53235 4.2676 6.79623C4.28606 7.06685 4.32636 7.33164 4.43396 7.5914L5.81978 7.01738C5.80051 6.97085 5.77737 6.88837 5.76412 6.69412C5.75041 6.49315 5.75 6.2318 5.75 5.83325H4.25ZM6.31587 7.51347C6.09126 7.42044 5.91281 7.24199 5.81978 7.01738L4.43396 7.5914C4.67923 8.18355 5.1497 8.65402 5.74185 8.89929L6.31587 7.51347ZM9.25 5.83325C9.25 6.2318 9.24959 6.49315 9.23588 6.69412C9.22263 6.88837 9.19949 6.97085 9.18022 7.01738L10.566 7.5914C10.6736 7.33164 10.7139 7.06685 10.7324 6.79623C10.7504 6.53235 10.75 6.21127 10.75 5.83325H9.25ZM7.5 9.08325C7.87802 9.08325 8.1991 9.08366 8.46298 9.06565C8.73359 9.04719 8.99839 9.00689 9.25815 8.89929L8.68413 7.51347C8.6376 7.53275 8.55511 7.55588 8.36087 7.56913C8.15989 7.58285 7.89855 7.58325 7.5 7.58325V9.08325ZM9.18022 7.01738C9.08719 7.24199 8.90874 7.42044 8.68413 7.51347L9.25815 8.89929C9.8503 8.65402 10.3208 8.18355 10.566 7.5914L9.18022 7.01738ZM7.5 4.08325C7.89855 4.08325 8.15989 4.08366 8.36087 4.09737C8.55511 4.11062 8.6376 4.13376 8.68413 4.15303L9.25815 2.76721C8.99839 2.65961 8.73359 2.61931 8.46298 2.60085C8.1991 2.58285 7.87802 2.58325 7.5 2.58325V4.08325ZM10.75 5.83325C10.75 5.45523 10.7504 5.13415 10.7324 4.87027C10.7139 4.59966 10.6736 4.33486 10.566 4.0751L9.18022 4.64913C9.19949 4.69565 9.22263 4.77814 9.23588 4.97238C9.24959 5.17336 9.25 5.43471 9.25 5.83325H10.75ZM8.68413 4.15303C8.90874 4.24607 9.08719 4.42452 9.18022 4.64913L10.566 4.0751C10.3208 3.48295 9.8503 3.01249 9.25815 2.76721L8.68413 4.15303ZM7.5 2.58325C7.12198 2.58325 6.8009 2.58285 6.53702 2.60085C6.26641 2.61931 6.00161 2.65961 5.74185 2.76721L6.31587 4.15303C6.3624 4.13376 6.44489 4.11062 6.63913 4.09737C6.84011 4.08366 7.10145 4.08325 7.5 4.08325V2.58325ZM5.75 5.83325C5.75 5.43471 5.75041 5.17336 5.76412 4.97238C5.77737 4.77814 5.80051 4.69565 5.81978 4.64913L4.43396 4.0751C4.32636 4.33486 4.28606 4.59966 4.2676 4.87027C4.24959 5.13415 4.25 5.45523 4.25 5.83325H5.75ZM5.74185 2.76721C5.1497 3.01249 4.67923 3.48295 4.43396 4.0751L5.81978 4.64913C5.91281 4.42452 6.09126 4.24607 6.31587 4.15303L5.74185 2.76721ZM12.5 15.9166C12.1015 15.9166 11.8401 15.9162 11.6391 15.9025C11.4449 15.8892 11.3624 15.8661 11.3159 15.8468L10.7418 17.2326C11.0016 17.3402 11.2664 17.3805 11.537 17.399C11.8009 17.417 12.122 17.4166 12.5 17.4166V15.9166ZM9.25 14.1666C9.25 14.5446 9.24959 14.8657 9.2676 15.1296C9.28606 15.4002 9.32636 15.665 9.43396 15.9247L10.8198 15.3507C10.8005 15.3042 10.7774 15.2217 10.7641 15.0275C10.7504 14.8265 10.75 14.5651 10.75 14.1666H9.25ZM11.3159 15.8468C11.0913 15.7538 10.9128 15.5753 10.8198 15.3507L9.43396 15.9247C9.67923 16.5169 10.1497 16.9874 10.7418 17.2326L11.3159 15.8468ZM14.25 14.1666C14.25 14.5651 14.2496 14.8265 14.2359 15.0275C14.2226 15.2217 14.1995 15.3042 14.1802 15.3507L15.566 15.9247C15.6736 15.665 15.7139 15.4002 15.7324 15.1296C15.7504 14.8657 15.75 14.5446 15.75 14.1666H14.25ZM12.5 17.4166C12.878 17.4166 13.1991 17.417 13.463 17.399C13.7336 17.3805 13.9984 17.3402 14.2582 17.2326L13.6841 15.8468C13.6376 15.8661 13.5551 15.8892 13.3609 15.9025C13.1599 15.9162 12.8985 15.9166 12.5 15.9166V17.4166ZM14.1802 15.3507C14.0872 15.5753 13.9087 15.7538 13.6841 15.8468L14.2582 17.2326C14.8503 16.9874 15.3208 16.5169 15.566 15.9247L14.1802 15.3507ZM12.5 12.4166C12.8985 12.4166 13.1599 12.417 13.3609 12.4307C13.5551 12.444 13.6376 12.4671 13.6841 12.4864L14.2582 11.1005C13.9984 10.9929 13.7336 10.9526 13.463 10.9342C13.1991 10.9162 12.878 10.9166 12.5 10.9166V12.4166ZM15.75 14.1666C15.75 13.7886 15.7504 13.4675 15.7324 13.2036C15.7139 12.933 15.6736 12.6682 15.566 12.4084L14.1802 12.9825C14.1995 13.029 14.2226 13.1115 14.2359 13.3057C14.2496 13.5067 14.25 13.768 14.25 14.1666H15.75ZM13.6841 12.4864C13.9087 12.5794 14.0872 12.7578 14.1802 12.9825L15.566 12.4084C15.3208 11.8163 14.8503 11.3458 14.2582 11.1005L13.6841 12.4864ZM12.5 10.9166C12.122 10.9166 11.8009 10.9162 11.537 10.9342C11.2664 10.9526 11.0016 10.9929 10.7418 11.1005L11.3159 12.4864C11.3624 12.4671 11.4449 12.444 11.6391 12.4307C11.8401 12.417 12.1015 12.4166 12.5 12.4166V10.9166ZM10.75 14.1666C10.75 13.768 10.7504 13.5067 10.7641 13.3057C10.7774 13.1115 10.8005 13.029 10.8198 12.9825L9.43396 12.4084C9.32636 12.6682 9.28606 12.933 9.2676 13.2036C9.24959 13.4675 9.25 13.7886 9.25 14.1666H10.75ZM10.7418 11.1005C10.1497 11.3458 9.67923 11.8163 9.43396 12.4084L10.8198 12.9825C10.9128 12.7578 11.0913 12.5794 11.3159 12.4864L10.7418 11.1005Z" fill="#4B5565"/>
|
|
3
|
+
</svg>
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"components/gb-file-type-icon/gb-file-type-icon.js",
|
|
37
37
|
"components/gb-file-upload/gb-file-upload.js",
|
|
38
38
|
"components/gb-file-upload-item-base/gb-file-upload-item-base.js",
|
|
39
|
+
"components/gb-filter-button/gb-filter-button.js",
|
|
39
40
|
"components/gb-header/gb-header.js",
|
|
40
41
|
"components/gb-header-icon/gb-header-icon.js",
|
|
41
42
|
"components/gb-help-dropdown/gb-help-dropdown.js",
|
|
@@ -68,8 +68,20 @@ export class GbActionPanel {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
onPreviousButtonClicked() {
|
|
72
|
+
this.previousButtonClicked.emit();
|
|
73
|
+
}
|
|
74
|
+
onSaveAsDraft() {
|
|
75
|
+
this.saveAsDraft.emit();
|
|
76
|
+
}
|
|
77
|
+
onSubmitClicked() {
|
|
78
|
+
this.submitButtonClicked.emit();
|
|
79
|
+
}
|
|
80
|
+
onNextButtonClicked() {
|
|
81
|
+
this.nextButtonClicked.emit();
|
|
82
|
+
}
|
|
71
83
|
render() {
|
|
72
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: '11acbecf3b3fad9b7d86a0272b7dada6a1d57d91', class: "action_panel_div" }, this.type === 'decision_panel' && (h("div", { key: 'bcfbcafb870c4a081c394beb35111c8d2bf285af', class: "panel_content" }, h("div", { key: '04b73b6cca4e088cfc16c3a30c27788ba983df65', class: "left_action" }, this.showCloseButton && h("gb-button-close", { key: 'a544c001d9d95b9303c011f56af080f8069e283c', size: "md", color: "primary" }), this.showSelectedRows && h("slot", { key: 'f46f5cd60c9104e473fcd629c91b2fd5cf1e5848', name: "selected_rows" }), this.showCheckbox && (h("gb-checkbox", { key: '9c3c85521f9e9a7705be30bd973d443d77dd0920', size: "md", state: StateEnum.Default, type: "checkbox", text: true, "supporting-text": false, onCheckboxClicked: this.onCheckboxClicked.bind(this) }, h("slot", { key: '883572130fb51c96a3d74e47d19ffcafad820ae8', name: "label", slot: "label" })))), h("div", { key: '62c4e3f7e7fde076993ba7a2e32ed3d1a8b263b8', class: "right_action" }, this.firstButton && (h("gb-button", { key: '3a60c01a8cff7c2427ae9c1fb5cbff94a33b69ef', size: "xl", state: this.firstButtonState, hierarchy: "primary", icon: "default", "icon-leading": this.firstButtonIconLeading ? true : false, "icon-trailing": this.firstButtonIconTrailing ? true : false, "icon-leading-swap": this.firstButtonIconLeading, "icon-trailing-swap": this.firstButtonIconTrailing, onClick: () => this.onFirstButtonClicked() }, h("p", { key: 'eacbb64042017556fb64481342946f403c3415ce' }, this.firstButtonText))), this.secondButton && (h("gb-button", { key: '1508f74235c3b62f169e955ff7748e53649581e2', size: "xl", state: this.secondButtonState, hierarchy: "secondary_color", icon: "default", "icon-leading": this.secondButtonIconLeading ? true : false, "icon-trailing": this.secondButtonIconTrailing ? true : false, "icon-leading-swap": this.secondButtonIconLeading, "icon-trailing-swap": this.secondButtonIconTrailing, onClick: () => this.onSecondButtonClicked() }, h("p", { key: 'f3b0441100880d5c4150dd1a9b743e074d919002' }, this.secondButtonText))), this.thirdButton && (h("gb-button", { key: '5e39138ede09bb9e479a734feecbdb3a079ad24a', size: "xl", state: this.thirdButtonState, hierarchy: "secondary_gray", icon: "default", "icon-leading": this.thirdButtonIconLeading ? true : false, "icon-trailing": this.thirdButtonIconTrailing ? true : false, "icon-leading-swap": this.thirdButtonIconLeading, "icon-trailing-swap": this.thirdButtonIconTrailing, onClick: () => this.onThirdButtonClicked() }, h("p", { key: 'e47f8a06ec522abc434d3497c881b91746acfac7' }, this.thirdButtonText)))))), this.type === 'form_control' && (h("div", { key: '83a898efe97e2b5e6a0c7b4d54ced4d8de39e0a8', class: "panel_content" }, h("div", { key: 'f198d03e108f676fb49d30ce4bde542f02280b5a', class: "actions" }, h("gb-button", { key: '0fa72fe83b97a9b4a15e84bcb1b80797a62c069e', size: "xl", state: this.previousButtonState, hierarchy: "secondary_gray", icon: "default", "icon-leading": true, "icon-leading-swap": "assets/arrow-left-02.svg", onClick: () => this.onPreviousButtonClicked() }, h("p", { key: '7e345a747ed9a5c17a2a63213fe64bab1d9fbf1f' }, "Previous")), h("div", { key: '5c302a0d568ab324dfe965e022e60dba5c561456', class: "right" }, h("gb-button", { key: 'bada19dca83ad8f2e95e767ba5ebb1fa7f451f56', size: "xl", hierarchy: "secondary_color", icon: "default", onClick: () => this.onSaveAsDraft() }, h("p", { key: '5d3631e23d7d15f31509d65090daa79516774210' }, "Save as draft")), this.showSubmitButton ? (h("gb-button", { size: "xl", hierarchy: "primary", icon: "default", onClick: () => this.onSubmitClicked() }, h("p", null, this.submitButtonText))) : (h("gb-button", { size: "xl", hierarchy: "primary", icon: "default", "icon-trailing": true, "icon-trailing-swap": "assets/arrow-right-02.svg", onClick: () => this.onNextButtonClicked() }, h("p", null, "Next")))))))));
|
|
73
85
|
}
|
|
74
86
|
static get is() { return "gb-action-panel"; }
|
|
75
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -429,7 +441,7 @@ export class GbActionPanel {
|
|
|
429
441
|
"mutable": false,
|
|
430
442
|
"complexType": {
|
|
431
443
|
"original": "StateType",
|
|
432
|
-
"resolved": "\"default\" | \"disabled\"",
|
|
444
|
+
"resolved": "\"applied\" | \"default\" | \"disabled\"",
|
|
433
445
|
"references": {
|
|
434
446
|
"StateType": {
|
|
435
447
|
"location": "import",
|
|
@@ -454,7 +466,7 @@ export class GbActionPanel {
|
|
|
454
466
|
"mutable": false,
|
|
455
467
|
"complexType": {
|
|
456
468
|
"original": "StateType",
|
|
457
|
-
"resolved": "\"default\" | \"disabled\"",
|
|
469
|
+
"resolved": "\"applied\" | \"default\" | \"disabled\"",
|
|
458
470
|
"references": {
|
|
459
471
|
"StateType": {
|
|
460
472
|
"location": "import",
|
|
@@ -479,7 +491,7 @@ export class GbActionPanel {
|
|
|
479
491
|
"mutable": false,
|
|
480
492
|
"complexType": {
|
|
481
493
|
"original": "StateType",
|
|
482
|
-
"resolved": "\"default\" | \"disabled\"",
|
|
494
|
+
"resolved": "\"applied\" | \"default\" | \"disabled\"",
|
|
483
495
|
"references": {
|
|
484
496
|
"StateType": {
|
|
485
497
|
"location": "import",
|
|
@@ -504,7 +516,7 @@ export class GbActionPanel {
|
|
|
504
516
|
"mutable": false,
|
|
505
517
|
"complexType": {
|
|
506
518
|
"original": "StateType",
|
|
507
|
-
"resolved": "\"default\" | \"disabled\"",
|
|
519
|
+
"resolved": "\"applied\" | \"default\" | \"disabled\"",
|
|
508
520
|
"references": {
|
|
509
521
|
"StateType": {
|
|
510
522
|
"location": "import",
|
|
@@ -597,6 +609,66 @@ export class GbActionPanel {
|
|
|
597
609
|
"resolved": "void",
|
|
598
610
|
"references": {}
|
|
599
611
|
}
|
|
612
|
+
}, {
|
|
613
|
+
"method": "previousButtonClicked",
|
|
614
|
+
"name": "previousButtonClicked",
|
|
615
|
+
"bubbles": true,
|
|
616
|
+
"cancelable": true,
|
|
617
|
+
"composed": true,
|
|
618
|
+
"docs": {
|
|
619
|
+
"tags": [],
|
|
620
|
+
"text": ""
|
|
621
|
+
},
|
|
622
|
+
"complexType": {
|
|
623
|
+
"original": "void",
|
|
624
|
+
"resolved": "void",
|
|
625
|
+
"references": {}
|
|
626
|
+
}
|
|
627
|
+
}, {
|
|
628
|
+
"method": "saveAsDraft",
|
|
629
|
+
"name": "saveAsDraft",
|
|
630
|
+
"bubbles": true,
|
|
631
|
+
"cancelable": true,
|
|
632
|
+
"composed": true,
|
|
633
|
+
"docs": {
|
|
634
|
+
"tags": [],
|
|
635
|
+
"text": ""
|
|
636
|
+
},
|
|
637
|
+
"complexType": {
|
|
638
|
+
"original": "void",
|
|
639
|
+
"resolved": "void",
|
|
640
|
+
"references": {}
|
|
641
|
+
}
|
|
642
|
+
}, {
|
|
643
|
+
"method": "submitButtonClicked",
|
|
644
|
+
"name": "submitButtonClicked",
|
|
645
|
+
"bubbles": true,
|
|
646
|
+
"cancelable": true,
|
|
647
|
+
"composed": true,
|
|
648
|
+
"docs": {
|
|
649
|
+
"tags": [],
|
|
650
|
+
"text": ""
|
|
651
|
+
},
|
|
652
|
+
"complexType": {
|
|
653
|
+
"original": "void",
|
|
654
|
+
"resolved": "void",
|
|
655
|
+
"references": {}
|
|
656
|
+
}
|
|
657
|
+
}, {
|
|
658
|
+
"method": "nextButtonClicked",
|
|
659
|
+
"name": "nextButtonClicked",
|
|
660
|
+
"bubbles": true,
|
|
661
|
+
"cancelable": true,
|
|
662
|
+
"composed": true,
|
|
663
|
+
"docs": {
|
|
664
|
+
"tags": [],
|
|
665
|
+
"text": ""
|
|
666
|
+
},
|
|
667
|
+
"complexType": {
|
|
668
|
+
"original": "void",
|
|
669
|
+
"resolved": "void",
|
|
670
|
+
"references": {}
|
|
671
|
+
}
|
|
600
672
|
}, {
|
|
601
673
|
"method": "checkboxClicked",
|
|
602
674
|
"name": "checkboxClicked",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-action-panel.js","sourceRoot":"","sources":["../../../src/components/gb-action-panel/gb-action-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,SAAS,EAAa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AAI,wBAAqB,2BAA2B;4BACzH,oBAAW,CACD,CACb,CACG,CACF,CACF,CACP,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Prop, State, h } from '@stencil/core';\r\nimport { StateEnum, StateType } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-action-panel',\r\n styleUrl: 'gb-action-panel.css',\r\n shadow: true,\r\n})\r\nexport class GbActionPanel {\r\n @Prop() type!: 'decision_panel' | 'form_control';\r\n @Prop() showCloseButton: boolean = false;\r\n @Prop() showSelectedRows: boolean = false;\r\n @Prop() showCheckbox: boolean = false;\r\n @Prop() firstButton: boolean = false;\r\n @Prop() firstButtonIconLeading: string = '';\r\n @Prop() firstButtonIconTrailing: string = '';\r\n @Prop() secondButton: boolean = false;\r\n @Prop() secondButtonIconLeading: string = '';\r\n @Prop() secondButtonIconTrailing: string = '';\r\n @Prop() thirdButton: boolean = false;\r\n @Prop() thirdButtonIconLeading: string = '';\r\n @Prop() thirdButtonIconTrailing: string = '';\r\n @Prop() showSubmitButton: boolean = false;\r\n @Prop() firstButtonText: string = '';\r\n @Prop() secondButtonText: string = '';\r\n @Prop() thirdButtonText: string = '';\r\n @Prop() firstButtonState: StateType;\r\n @Prop() secondButtonState: StateType;\r\n @Prop() thirdButtonState: StateType;\r\n @Prop() previousButtonState: StateType;\r\n @Prop() submitButtonText: string = '';\r\n @State() checked: any = false;\r\n @Event() firstButtonClicked: EventEmitter<void>;\r\n @Event() secondButtonClicked: EventEmitter<void>;\r\n @Event() thirdButtonClicked: EventEmitter<void>;\r\n @Event() checkboxClicked: EventEmitter<void>;\r\n @Element() el: HTMLElement;\r\n\r\n componentDidLoad() {\r\n const selectedRows = this.el.querySelector('[slot=\"selected_rows\"]');\r\n const label = this.el.querySelector('[slot=\"label\"]');\r\n\r\n if (selectedRows) {\r\n selectedRows.classList.add('text-md-medium');\r\n }\r\n\r\n if (label) {\r\n label.classList.add('text-md-medium');\r\n }\r\n }\r\n\r\n onCheckboxClicked(event) {\r\n this.checked = event.detail;\r\n this.checkboxClicked.emit(this.checked);\r\n }\r\n\r\n onFirstButtonClicked() {\r\n if (this.firstButtonState === 'default') {\r\n if (this.showCheckbox) {\r\n this.firstButtonClicked.emit(this.checked);\r\n } else {\r\n this.firstButtonClicked.emit();\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n\r\n onSecondButtonClicked() {\r\n if (this.secondButtonState === 'default') {\r\n if (this.showCheckbox) {\r\n this.secondButtonClicked.emit(this.checked);\r\n } else {\r\n this.secondButtonClicked.emit();\r\n }\r\n }\r\n }\r\n\r\n onThirdButtonClicked() {\r\n if (this.thirdButtonState === 'default') {\r\n if (this.showCheckbox) {\r\n this.thirdButtonClicked.emit(this.checked);\r\n } else {\r\n this.thirdButtonClicked.emit();\r\n }\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"action_panel_div\">\r\n {this.type === 'decision_panel' && (\r\n <div class=\"panel_content\">\r\n <div class=\"left_action\">\r\n {this.showCloseButton && <gb-button-close size=\"md\" color=\"primary\"></gb-button-close>}\r\n {this.showSelectedRows && <slot name=\"selected_rows\"></slot>}\r\n {this.showCheckbox && (\r\n <gb-checkbox size=\"md\" state={StateEnum.Default} type=\"checkbox\" text={true} supporting-text={false} onCheckboxClicked={this.onCheckboxClicked.bind(this)}>\r\n <slot name=\"label\" slot=\"label\"></slot>\r\n </gb-checkbox>\r\n )}\r\n </div>\r\n <div class=\"right_action\">\r\n {this.firstButton && (\r\n <gb-button\r\n size=\"xl\"\r\n state={this.firstButtonState}\r\n hierarchy=\"primary\"\r\n icon=\"default\"\r\n icon-leading={this.firstButtonIconLeading ? true : false}\r\n icon-trailing={this.firstButtonIconTrailing ? true : false}\r\n icon-leading-swap={this.firstButtonIconLeading}\r\n icon-trailing-swap={this.firstButtonIconTrailing}\r\n onClick={() => this.onFirstButtonClicked()}\r\n >\r\n <p>{this.firstButtonText}</p>\r\n </gb-button>\r\n )}\r\n {this.secondButton && (\r\n <gb-button\r\n size=\"xl\"\r\n state={this.secondButtonState}\r\n hierarchy=\"secondary_color\"\r\n icon=\"default\"\r\n icon-leading={this.secondButtonIconLeading ? true : false}\r\n icon-trailing={this.secondButtonIconTrailing ? true : false}\r\n icon-leading-swap={this.secondButtonIconLeading}\r\n icon-trailing-swap={this.secondButtonIconTrailing}\r\n onClick={() => this.onSecondButtonClicked()}\r\n >\r\n <p>{this.secondButtonText}</p>\r\n </gb-button>\r\n )}\r\n {this.thirdButton && (\r\n <gb-button\r\n size=\"xl\"\r\n state={this.thirdButtonState}\r\n hierarchy=\"secondary_gray\"\r\n icon=\"default\"\r\n icon-leading={this.thirdButtonIconLeading ? true : false}\r\n icon-trailing={this.thirdButtonIconTrailing ? true : false}\r\n icon-leading-swap={this.thirdButtonIconLeading}\r\n icon-trailing-swap={this.thirdButtonIconTrailing}\r\n onClick={() => this.onThirdButtonClicked()}\r\n >\r\n <p>{this.thirdButtonText}</p>\r\n </gb-button>\r\n )}\r\n </div>\r\n </div>\r\n )}\r\n {this.type === 'form_control' && (\r\n <div class=\"panel_content\">\r\n <div class=\"actions\">\r\n <gb-button size=\"xl\" state={this.previousButtonState} hierarchy=\"secondary_gray\" icon=\"default\" icon-leading={true} icon-leading-swap=\"assets/arrow-left-02.svg\">\r\n <p>Previous</p>\r\n </gb-button>\r\n <div class=\"right\">\r\n <gb-button size=\"xl\" hierarchy=\"secondary_color\" icon=\"default\">\r\n <p>Save as draft</p>\r\n </gb-button>\r\n {this.showSubmitButton ? (\r\n <gb-button size=\"xl\" hierarchy=\"primary\" icon=\"default\">\r\n <p>{this.submitButtonText}</p>\r\n </gb-button>\r\n ) : (\r\n <gb-button size=\"xl\" hierarchy=\"primary\" icon=\"default\" icon-trailing={true} icon-trailing-swap=\"assets/arrow-right-02.svg\">\r\n <p>Next</p>\r\n </gb-button>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"gb-action-panel.js","sourceRoot":"","sources":["../../../src/components/gb-action-panel/gb-action-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,SAAS,EAAa,MAAM,6BAA6B,CAAC;AAOnE,MAAM,OAAO,aAAa;IAL1B;QAOU,oBAAe,GAAY,KAAK,CAAC;QACjC,qBAAgB,GAAY,KAAK,CAAC;QAClC,iBAAY,GAAY,KAAK,CAAC;QAC9B,gBAAW,GAAY,KAAK,CAAC;QAC7B,2BAAsB,GAAW,EAAE,CAAC;QACpC,4BAAuB,GAAW,EAAE,CAAC;QACrC,iBAAY,GAAY,KAAK,CAAC;QAC9B,4BAAuB,GAAW,EAAE,CAAC;QACrC,6BAAwB,GAAW,EAAE,CAAC;QACtC,gBAAW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CACpB,CACb,CAAC,CAAC,CAAC,CACF,iBACE,IAAI,EAAC,IAAI,EACT,SAAS,EAAC,SAAS,EACnB,IAAI,EAAC,SAAS,mBACC,IAAI,wBACA,2BAA2B,EAC9C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE;4BAEzC,oBAAW,CACD,CACb,CACG,CACF,CACF,CACP,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Prop, State, h } from '@stencil/core';\r\nimport { StateEnum, StateType } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-action-panel',\r\n styleUrl: 'gb-action-panel.css',\r\n shadow: true,\r\n})\r\nexport class GbActionPanel {\r\n @Prop() type!: 'decision_panel' | 'form_control';\r\n @Prop() showCloseButton: boolean = false;\r\n @Prop() showSelectedRows: boolean = false;\r\n @Prop() showCheckbox: boolean = false;\r\n @Prop() firstButton: boolean = false;\r\n @Prop() firstButtonIconLeading: string = '';\r\n @Prop() firstButtonIconTrailing: string = '';\r\n @Prop() secondButton: boolean = false;\r\n @Prop() secondButtonIconLeading: string = '';\r\n @Prop() secondButtonIconTrailing: string = '';\r\n @Prop() thirdButton: boolean = false;\r\n @Prop() thirdButtonIconLeading: string = '';\r\n @Prop() thirdButtonIconTrailing: string = '';\r\n @Prop() showSubmitButton: boolean = false;\r\n @Prop() firstButtonText: string = '';\r\n @Prop() secondButtonText: string = '';\r\n @Prop() thirdButtonText: string = '';\r\n @Prop() firstButtonState: StateType;\r\n @Prop() secondButtonState: StateType;\r\n @Prop() thirdButtonState: StateType;\r\n @Prop() previousButtonState: StateType;\r\n @Prop() submitButtonText: string = '';\r\n @State() checked: any = false;\r\n @Event() firstButtonClicked: EventEmitter<void>;\r\n @Event() secondButtonClicked: EventEmitter<void>;\r\n @Event() thirdButtonClicked: EventEmitter<void>;\r\n @Event() previousButtonClicked: EventEmitter<void>;\r\n @Event() saveAsDraft: EventEmitter<void>;\r\n @Event() submitButtonClicked: EventEmitter<void>;\r\n @Event() nextButtonClicked: EventEmitter<void>;\r\n @Event() checkboxClicked: EventEmitter<void>;\r\n @Element() el: HTMLElement;\r\n\r\n componentDidLoad() {\r\n const selectedRows = this.el.querySelector('[slot=\"selected_rows\"]');\r\n const label = this.el.querySelector('[slot=\"label\"]');\r\n\r\n if (selectedRows) {\r\n selectedRows.classList.add('text-md-medium');\r\n }\r\n\r\n if (label) {\r\n label.classList.add('text-md-medium');\r\n }\r\n }\r\n\r\n onCheckboxClicked(event) {\r\n this.checked = event.detail;\r\n this.checkboxClicked.emit(this.checked);\r\n }\r\n\r\n onFirstButtonClicked() {\r\n if (this.firstButtonState === 'default') {\r\n if (this.showCheckbox) {\r\n this.firstButtonClicked.emit(this.checked);\r\n } else {\r\n this.firstButtonClicked.emit();\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n\r\n onSecondButtonClicked() {\r\n if (this.secondButtonState === 'default') {\r\n if (this.showCheckbox) {\r\n this.secondButtonClicked.emit(this.checked);\r\n } else {\r\n this.secondButtonClicked.emit();\r\n }\r\n }\r\n }\r\n\r\n onThirdButtonClicked() {\r\n if (this.thirdButtonState === 'default') {\r\n if (this.showCheckbox) {\r\n this.thirdButtonClicked.emit(this.checked);\r\n } else {\r\n this.thirdButtonClicked.emit();\r\n }\r\n }\r\n }\r\n\r\n onPreviousButtonClicked() {\r\n this.previousButtonClicked.emit();\r\n }\r\n\r\n onSaveAsDraft() {\r\n this.saveAsDraft.emit();\r\n }\r\n\r\n onSubmitClicked() {\r\n this.submitButtonClicked.emit();\r\n }\r\n\r\n onNextButtonClicked() {\r\n this.nextButtonClicked.emit();\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"action_panel_div\">\r\n {this.type === 'decision_panel' && (\r\n <div class=\"panel_content\">\r\n <div class=\"left_action\">\r\n {this.showCloseButton && <gb-button-close size=\"md\" color=\"primary\"></gb-button-close>}\r\n {this.showSelectedRows && <slot name=\"selected_rows\"></slot>}\r\n {this.showCheckbox && (\r\n <gb-checkbox size=\"md\" state={StateEnum.Default} type=\"checkbox\" text={true} supporting-text={false} onCheckboxClicked={this.onCheckboxClicked.bind(this)}>\r\n <slot name=\"label\" slot=\"label\"></slot>\r\n </gb-checkbox>\r\n )}\r\n </div>\r\n <div class=\"right_action\">\r\n {this.firstButton && (\r\n <gb-button\r\n size=\"xl\"\r\n state={this.firstButtonState}\r\n hierarchy=\"primary\"\r\n icon=\"default\"\r\n icon-leading={this.firstButtonIconLeading ? true : false}\r\n icon-trailing={this.firstButtonIconTrailing ? true : false}\r\n icon-leading-swap={this.firstButtonIconLeading}\r\n icon-trailing-swap={this.firstButtonIconTrailing}\r\n onClick={() => this.onFirstButtonClicked()}\r\n >\r\n <p>{this.firstButtonText}</p>\r\n </gb-button>\r\n )}\r\n {this.secondButton && (\r\n <gb-button\r\n size=\"xl\"\r\n state={this.secondButtonState}\r\n hierarchy=\"secondary_color\"\r\n icon=\"default\"\r\n icon-leading={this.secondButtonIconLeading ? true : false}\r\n icon-trailing={this.secondButtonIconTrailing ? true : false}\r\n icon-leading-swap={this.secondButtonIconLeading}\r\n icon-trailing-swap={this.secondButtonIconTrailing}\r\n onClick={() => this.onSecondButtonClicked()}\r\n >\r\n <p>{this.secondButtonText}</p>\r\n </gb-button>\r\n )}\r\n {this.thirdButton && (\r\n <gb-button\r\n size=\"xl\"\r\n state={this.thirdButtonState}\r\n hierarchy=\"secondary_gray\"\r\n icon=\"default\"\r\n icon-leading={this.thirdButtonIconLeading ? true : false}\r\n icon-trailing={this.thirdButtonIconTrailing ? true : false}\r\n icon-leading-swap={this.thirdButtonIconLeading}\r\n icon-trailing-swap={this.thirdButtonIconTrailing}\r\n onClick={() => this.onThirdButtonClicked()}\r\n >\r\n <p>{this.thirdButtonText}</p>\r\n </gb-button>\r\n )}\r\n </div>\r\n </div>\r\n )}\r\n {this.type === 'form_control' && (\r\n <div class=\"panel_content\">\r\n <div class=\"actions\">\r\n <gb-button\r\n size=\"xl\"\r\n state={this.previousButtonState}\r\n hierarchy=\"secondary_gray\"\r\n icon=\"default\"\r\n icon-leading={true}\r\n icon-leading-swap=\"assets/arrow-left-02.svg\"\r\n onClick={() => this.onPreviousButtonClicked()}\r\n >\r\n <p>Previous</p>\r\n </gb-button>\r\n <div class=\"right\">\r\n <gb-button size=\"xl\" hierarchy=\"secondary_color\" icon=\"default\" onClick={() => this.onSaveAsDraft()}>\r\n <p>Save as draft</p>\r\n </gb-button>\r\n {this.showSubmitButton ? (\r\n <gb-button size=\"xl\" hierarchy=\"primary\" icon=\"default\" onClick={() => this.onSubmitClicked()}>\r\n <p>{this.submitButtonText}</p>\r\n </gb-button>\r\n ) : (\r\n <gb-button\r\n size=\"xl\"\r\n hierarchy=\"primary\"\r\n icon=\"default\"\r\n icon-trailing={true}\r\n icon-trailing-swap=\"assets/arrow-right-02.svg\"\r\n onClick={() => this.onNextButtonClicked()}\r\n >\r\n <p>Next</p>\r\n </gb-button>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -68,7 +68,7 @@ export class GbBadges {
|
|
|
68
68
|
};
|
|
69
69
|
const flagSwap = getAssetPath(`${this.flagSwap}`);
|
|
70
70
|
const dotColor = this.type === 'badge_modern' ? this.getDotColor(this.color) : 'currentColor';
|
|
71
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: 'd4e04e50bfdd09bdb0c2e122ebdaadcf8e400678', class: classes }, this.icon === 'dot' && (h("svg", { key: 'd63ecbaf504fa9619aae95817f22dea40fe568b5', xmlns: "http://www.w3.org/2000/svg", width: "8", height: "8", viewBox: "0 0 8 8", fill: dotColor }, h("circle", { key: '934995834e00f53bc7d4913b4f48311077075762', cx: "4", cy: "4", r: "3" }))), this.icon === 'icon_leading' && this.iconLeadingSwap && h("div", { key: 'd7e11ad6267357c88014ae8e2f12d7de04abc220', class: `icon left-icon`, innerHTML: this.leadingIconContent }), this.icon === 'country' && h("img", { key: '8e73fe5b18b7da4f1cafaff90b9721f8e98adf6d', src: flagSwap, alt: "Country Icon" }), this.icon === 'avatar' && (h("gb-avatar", { key: 'f0622fe50951d46f6e96a08bcc4d936a42ea2874', class: "avatar-icon", size: "xxs", "status-icon": "false" }, h("slot", { key: '5f108dd43690dfa01485833b4562777f7dee9e4c', name: "image", slot: "image" }))), this.icon !== 'only' && h("slot", { key: 'aaf5ddcf5e3b7b24b93c19f4a307d9b3efaee14a' }), this.icon === 'icon_trailing' && this.iconTrailingSwap && h("div", { key: '51814cff2b801a9766d463718975eaa84ec8d01a', class: `icon right-icon`, innerHTML: this.trailingIconContent }), this.icon === 'only' && (h("div", { key: '06026ea4e4fe5e76f6060702cea361b6ea66d816', id: "icon-only" }, h("svg", { key: 'df81d2e1a3449cbc41e62da828fa4cee6c1ef34b', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 12 12", stroke: dotColor }, h("path", { key: 'bcf11378dd5b36e6090fa1d4629771f3f06c64df', d: "M6 2L6 10M10 6L2 6", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.closeButton && this.icon !== 'only' && h("gb-badge-close", { key: 'e42cd4a63f07d3f923e022af0fbe71d5b6c1055c', color: this.color, type: "rounded" })));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "gb-badge"; }
|
|
74
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -114,8 +114,8 @@ export class GbBadges {
|
|
|
114
114
|
"type": "string",
|
|
115
115
|
"mutable": false,
|
|
116
116
|
"complexType": {
|
|
117
|
-
"original": "'dot' | 'avatar' | 'icon_leading' | 'icon_trailing' | 'country' | 'only'",
|
|
118
|
-
"resolved": "\"avatar\" | \"country\" | \"dot\" | \"icon_leading\" | \"icon_trailing\" | \"only\"",
|
|
117
|
+
"original": "'dot' | 'avatar' | 'icon_leading' | 'icon_trailing' | 'country' | 'only' | 'false'",
|
|
118
|
+
"resolved": "\"avatar\" | \"country\" | \"dot\" | \"false\" | \"icon_leading\" | \"icon_trailing\" | \"only\"",
|
|
119
119
|
"references": {}
|
|
120
120
|
},
|
|
121
121
|
"required": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-badge.js","sourceRoot":"","sources":["../../../src/components/gb-badge/gb-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AASjF,MAAM,OAAO,QAAQ;IANrB;QAcU,gBAAW,GAAa,KAAK,CAAC;KA2GvC;IAtGS,WAAW,CAAC,KAAoB;QACtC,MAAM,QAAQ,GAAG;YACf,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,SAAS;YAChB,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component, Prop, getAssetPath, h, State, Element } from '@stencil/core';\r\nimport { BadgeTypes, GeneralColors, GeneralSizes } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-badge',\r\n styleUrl: 'gb-badge.css',\r\n shadow: true,\r\n assetsDirs: ['assets'],\r\n})\r\nexport class GbBadges {\r\n @Prop() size!: GeneralSizes;\r\n @Prop() icon: 'dot' | 'avatar' | 'icon_leading' | 'icon_trailing' | 'country' | 'only';\r\n @Prop() iconLeadingSwap?: string;\r\n @Prop() iconTrailingSwap?: string;\r\n @Prop() flagSwap: string;\r\n @Prop() color!: GeneralColors;\r\n @Prop() type!: BadgeTypes;\r\n @Prop() closeButton?: boolean = false;\r\n @State() leadingIconContent: string;\r\n @State() trailingIconContent: string;\r\n @Element() el: HTMLElement;\r\n\r\n private getDotColor(color: GeneralColors): string {\r\n const colorMap = {\r\n gray: '#4B5565',\r\n primary: '#212C65',\r\n error: '#B51726',\r\n warning: '#DC6803',\r\n success: '#079455',\r\n discovery: '#0BA5EC',\r\n information: '#064E94',\r\n pink: '#DD2590',\r\n purple: '#6938EF',\r\n };\r\n\r\n if (this.type === 'badge_modern') {\r\n return colorMap[color] || color;\r\n }\r\n\r\n return 'currentColor';\r\n }\r\n\r\n async componentWillLoad() {\r\n if (this.iconLeadingSwap) {\r\n const iconLeadingSrc = getAssetPath(`${this.iconLeadingSwap}`);\r\n this.leadingIconContent = await this.fetchSvgContent(iconLeadingSrc);\r\n }\r\n\r\n if (this.iconTrailingSwap) {\r\n const iconTrailingSrc = getAssetPath(`${this.iconTrailingSwap}`);\r\n this.trailingIconContent = await this.fetchSvgContent(iconTrailingSrc);\r\n }\r\n }\r\n\r\n private async fetchSvgContent(src: string): Promise<string> {\r\n try {\r\n const response = await fetch(src);\r\n if (response.ok) {\r\n return await response.text();\r\n }\r\n return '';\r\n } catch (error) {\r\n console.error('Error fetching SVG:', error);\r\n return '';\r\n }\r\n }\r\n\r\n getTextClass() {\r\n switch (this.size) {\r\n case 'sm':\r\n return 'text-xs-medium';\r\n case 'md':\r\n return 'text-sm-medium';\r\n case 'lg':\r\n return 'text-sm-medium';\r\n }\r\n }\r\n\r\n componentDidLoad() {\r\n const slottedContent = this.el.querySelector('p');\r\n\r\n if (slottedContent) {\r\n slottedContent.classList.add(this.getTextClass());\r\n }\r\n }\r\n\r\n render() {\r\n const classes = {\r\n badge: true,\r\n [this.type]: true,\r\n [this.color]: true,\r\n [this.size]: true,\r\n };\r\n\r\n const flagSwap = getAssetPath(`${this.flagSwap}`);\r\n const dotColor = this.type === 'badge_modern' ? this.getDotColor(this.color) : 'currentColor';\r\n\r\n return (\r\n <div class={classes}>\r\n {this.icon === 'dot' && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8\" height=\"8\" viewBox=\"0 0 8 8\" fill={dotColor}>\r\n <circle cx=\"4\" cy=\"4\" r=\"3\" />\r\n </svg>\r\n )}\r\n {this.icon === 'icon_leading' && this.iconLeadingSwap && <div class={`icon left-icon`} innerHTML={this.leadingIconContent}></div>}\r\n {this.icon === 'country' && <img src={flagSwap} alt=\"Country Icon\" />}\r\n {this.icon === 'avatar' && (\r\n <gb-avatar class=\"avatar-icon\" size=\"xxs\" status-icon=\"false\">\r\n <slot name=\"image\" slot=\"image\"></slot>\r\n </gb-avatar>\r\n )}\r\n {this.icon !== 'only' && <slot></slot>}\r\n {this.icon === 'icon_trailing' && this.iconTrailingSwap && <div class={`icon right-icon`} innerHTML={this.trailingIconContent}></div>}\r\n {this.icon === 'only' && (\r\n <div id=\"icon-only\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" stroke={dotColor}>\r\n <path d=\"M6 2L6 10M10 6L2 6\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n )}\r\n {this.closeButton && this.icon !== 'only' && <gb-badge-close color={this.color} type=\"rounded\"></gb-badge-close>}\r\n </div>\r\n );\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,CACF,CACP;YACA,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,uEAAgB,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAC,SAAS,GAAkB,CAC5G,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, getAssetPath, h, State, Element } from '@stencil/core';\r\nimport { BadgeTypes, GeneralColors, GeneralSizes } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-badge',\r\n styleUrl: 'gb-badge.css',\r\n shadow: true,\r\n assetsDirs: ['assets'],\r\n})\r\nexport class GbBadges {\r\n @Prop() size!: GeneralSizes;\r\n @Prop() icon: 'dot' | 'avatar' | 'icon_leading' | 'icon_trailing' | 'country' | 'only' | 'false';\r\n @Prop() iconLeadingSwap?: string;\r\n @Prop() iconTrailingSwap?: string;\r\n @Prop() flagSwap: string;\r\n @Prop() color!: GeneralColors;\r\n @Prop() type!: BadgeTypes;\r\n @Prop() closeButton?: boolean = false;\r\n @State() leadingIconContent: string;\r\n @State() trailingIconContent: string;\r\n @Element() el: HTMLElement;\r\n\r\n private getDotColor(color: GeneralColors): string {\r\n const colorMap = {\r\n gray: '#4B5565',\r\n primary: '#212C65',\r\n error: '#B51726',\r\n warning: '#DC6803',\r\n success: '#079455',\r\n discovery: '#0BA5EC',\r\n information: '#064E94',\r\n pink: '#DD2590',\r\n purple: '#6938EF',\r\n };\r\n\r\n if (this.type === 'badge_modern') {\r\n return colorMap[color] || color;\r\n }\r\n\r\n return 'currentColor';\r\n }\r\n\r\n async componentWillLoad() {\r\n if (this.iconLeadingSwap) {\r\n const iconLeadingSrc = getAssetPath(`${this.iconLeadingSwap}`);\r\n this.leadingIconContent = await this.fetchSvgContent(iconLeadingSrc);\r\n }\r\n\r\n if (this.iconTrailingSwap) {\r\n const iconTrailingSrc = getAssetPath(`${this.iconTrailingSwap}`);\r\n this.trailingIconContent = await this.fetchSvgContent(iconTrailingSrc);\r\n }\r\n }\r\n\r\n private async fetchSvgContent(src: string): Promise<string> {\r\n try {\r\n const response = await fetch(src);\r\n if (response.ok) {\r\n return await response.text();\r\n }\r\n return '';\r\n } catch (error) {\r\n console.error('Error fetching SVG:', error);\r\n return '';\r\n }\r\n }\r\n\r\n getTextClass() {\r\n switch (this.size) {\r\n case 'sm':\r\n return 'text-xs-medium';\r\n case 'md':\r\n return 'text-sm-medium';\r\n case 'lg':\r\n return 'text-sm-medium';\r\n }\r\n }\r\n\r\n componentDidLoad() {\r\n const slottedContent = this.el.querySelector('p');\r\n\r\n if (slottedContent) {\r\n slottedContent.classList.add(this.getTextClass());\r\n }\r\n }\r\n\r\n render() {\r\n const classes = {\r\n badge: true,\r\n [this.type]: true,\r\n [this.color]: true,\r\n [this.size]: true,\r\n };\r\n\r\n const flagSwap = getAssetPath(`${this.flagSwap}`);\r\n const dotColor = this.type === 'badge_modern' ? this.getDotColor(this.color) : 'currentColor';\r\n\r\n return (\r\n <div class={classes}>\r\n {this.icon === 'dot' && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"8\" height=\"8\" viewBox=\"0 0 8 8\" fill={dotColor}>\r\n <circle cx=\"4\" cy=\"4\" r=\"3\" />\r\n </svg>\r\n )}\r\n {this.icon === 'icon_leading' && this.iconLeadingSwap && <div class={`icon left-icon`} innerHTML={this.leadingIconContent}></div>}\r\n {this.icon === 'country' && <img src={flagSwap} alt=\"Country Icon\" />}\r\n {this.icon === 'avatar' && (\r\n <gb-avatar class=\"avatar-icon\" size=\"xxs\" status-icon=\"false\">\r\n <slot name=\"image\" slot=\"image\"></slot>\r\n </gb-avatar>\r\n )}\r\n {this.icon !== 'only' && <slot></slot>}\r\n {this.icon === 'icon_trailing' && this.iconTrailingSwap && <div class={`icon right-icon`} innerHTML={this.trailingIconContent}></div>}\r\n {this.icon === 'only' && (\r\n <div id=\"icon-only\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" stroke={dotColor}>\r\n <path d=\"M6 2L6 10M10 6L2 6\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n </div>\r\n )}\r\n {this.closeButton && this.icon !== 'only' && <gb-badge-close color={this.color} type=\"rounded\"></gb-badge-close>}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -13,11 +13,6 @@ export class GbBreadcrumbs {
|
|
|
13
13
|
componentWillLoad() {
|
|
14
14
|
this.visibleBreadcrumbs = [...this.breadcrumbs];
|
|
15
15
|
}
|
|
16
|
-
handleBreadcrumbUpdate(newVal, oldVal) {
|
|
17
|
-
oldVal = [];
|
|
18
|
-
this.breadcrumbs = [];
|
|
19
|
-
this.breadcrumbs = [...newVal];
|
|
20
|
-
}
|
|
21
16
|
handleBreadcrumbClick(clickedId, url) {
|
|
22
17
|
const index = this.visibleBreadcrumbs.findIndex(b => b.id === clickedId);
|
|
23
18
|
if (index !== -1) {
|
|
@@ -48,7 +43,7 @@ export class GbBreadcrumbs {
|
|
|
48
43
|
}
|
|
49
44
|
render() {
|
|
50
45
|
const btnType = this.resolveType();
|
|
51
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: '541187c2e825a70b73cd9ed44cd76ab83c6a8292', class: `breadcrumbs_div ${this.type}` }, h("div", { key: 'c900f59f46cb80afd98f7a6e7e7ee5ef67a7dbd7', class: `tabs ${this.type}` }, h("gb-breadcrumb-button-base", { key: 'b40703597a0509c8012dc3135ad9f3ff20706a39', icon: true, "icon-src": this.icon, type: btnType, current: this.visibleBreadcrumbs.length === 0, onClick: () => this.handleHomeClick() }), this.visibleBreadcrumbs.map((breadcrumb, index) => (h("div", { class: "breadcrumb-item", key: breadcrumb.id }, this.renderDivider(), h("gb-breadcrumb-button-base", { icon: false, label: breadcrumb.label, type: btnType, current: index === this.visibleBreadcrumbs.length - 1, onClick: () => this.handleBreadcrumbClick(breadcrumb.id, breadcrumb.url) })))))));
|
|
52
47
|
}
|
|
53
48
|
static get is() { return "gb-breadcrumbs"; }
|
|
54
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -108,14 +103,9 @@ export class GbBreadcrumbs {
|
|
|
108
103
|
"type": "unknown",
|
|
109
104
|
"mutable": false,
|
|
110
105
|
"complexType": {
|
|
111
|
-
"original": "
|
|
112
|
-
"resolved": "
|
|
113
|
-
"references": {
|
|
114
|
-
"breadCrumb": {
|
|
115
|
-
"location": "global",
|
|
116
|
-
"id": "global::breadCrumb"
|
|
117
|
-
}
|
|
118
|
-
}
|
|
106
|
+
"original": "{\r\n label: string;\r\n id: string;\r\n url: string;\r\n }[]",
|
|
107
|
+
"resolved": "{ label: string; id: string; url: string; }[]",
|
|
108
|
+
"references": {}
|
|
119
109
|
},
|
|
120
110
|
"required": false,
|
|
121
111
|
"optional": false,
|
|
@@ -171,11 +161,5 @@ export class GbBreadcrumbs {
|
|
|
171
161
|
}
|
|
172
162
|
}];
|
|
173
163
|
}
|
|
174
|
-
static get watchers() {
|
|
175
|
-
return [{
|
|
176
|
-
"propName": "breadcrumbs",
|
|
177
|
-
"methodName": "handleBreadcrumbUpdate"
|
|
178
|
-
}];
|
|
179
|
-
}
|
|
180
164
|
}
|
|
181
165
|
//# sourceMappingURL=gb-breadcrumbs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gb-breadcrumbs.js","sourceRoot":"","sources":["../../../src/components/gb-breadcrumbs/gb-breadcrumbs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,KAAK,EAAE,
|
|
1
|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AC,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAClD,WAAK,KAAK,EAAC,iBAAiB,EAAC,GAAG,EAAE,UAAU,CAAC,EAAE;oBAC5C,IAAI,CAAC,aAAa,EAAE;oBACrB,iCACE,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,KAAK,KAAK,IAAI,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,EACrD,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,GAAG,CAAC,GAC7C,CACzB,CACP,CAAC,CACE,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Event, EventEmitter, State } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'gb-breadcrumbs',\r\n styleUrl: 'gb-breadcrumbs.css',\r\n shadow: true,\r\n})\r\nexport class GbBreadcrumbs {\r\n @Prop() type: 'text' | 'text_with_line' | 'button_primary' | 'button_gray' | 'button_gray_with_border' = 'text';\r\n @Prop() divider: 'chevron' | 'slash' = 'chevron';\r\n @Prop() breadcrumbs: {\r\n label: string;\r\n id: string;\r\n url: string;\r\n }[] = [\r\n // { label: 'Projects', id: 'projects' },\r\n // { label: 'Design System', id: 'design-system' },\r\n // { label: 'Buttons', id: 'buttons' },\r\n ];\r\n @Prop() icon?: string;\r\n @Event() breadcrumbClicked: EventEmitter<{ id: string; url?: string }>;\r\n @State() visibleBreadcrumbs: {\r\n label: string;\r\n id: string;\r\n url: string;\r\n }[] = [];\r\n\r\n componentWillLoad() {\r\n this.visibleBreadcrumbs = [...this.breadcrumbs];\r\n }\r\n\r\n private handleBreadcrumbClick(clickedId: string, url: string) {\r\n const index = this.visibleBreadcrumbs.findIndex(b => b.id === clickedId);\r\n if (index !== -1) {\r\n this.visibleBreadcrumbs = this.visibleBreadcrumbs.slice(0, index + 1);\r\n this.breadcrumbClicked.emit({ id: clickedId, url });\r\n }\r\n }\r\n\r\n private handleHomeClick() {\r\n this.visibleBreadcrumbs = [];\r\n this.breadcrumbClicked.emit({ id: 'home' });\r\n }\r\n\r\n private renderDivider() {\r\n return this.divider === 'chevron' ? (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path d=\"M6 4C6 4 10 6.946 10 8C10 9.054 6 12 6 12\" stroke=\"#CDD5DF\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path d=\"M5.833 18.333L14.167 1.667\" stroke=\"#CDD5DF\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n );\r\n }\r\n\r\n private resolveType() {\r\n switch (this.type) {\r\n case 'text':\r\n case 'text_with_line':\r\n return 'text';\r\n case 'button_primary':\r\n return 'button_primary';\r\n case 'button_gray':\r\n case 'button_gray_with_border':\r\n return 'button_gray';\r\n default:\r\n return 'text';\r\n }\r\n }\r\n\r\n render() {\r\n const btnType = this.resolveType();\r\n\r\n return (\r\n <div class={`breadcrumbs_div ${this.type}`}>\r\n <div class={`tabs ${this.type}`}>\r\n {/* Home button */}\r\n <gb-breadcrumb-button-base\r\n icon={true}\r\n icon-src={this.icon}\r\n type={btnType}\r\n current={this.visibleBreadcrumbs.length === 0}\r\n onClick={() => this.handleHomeClick()}\r\n ></gb-breadcrumb-button-base>\r\n\r\n {this.visibleBreadcrumbs.map((breadcrumb, index) => (\r\n <div class=\"breadcrumb-item\" key={breadcrumb.id}>\r\n {this.renderDivider()}\r\n <gb-breadcrumb-button-base\r\n icon={false}\r\n label={breadcrumb.label}\r\n type={btnType}\r\n current={index === this.visibleBreadcrumbs.length - 1}\r\n onClick={() => this.handleBreadcrumbClick(breadcrumb.id, breadcrumb.url)}\r\n ></gb-breadcrumb-button-base>\r\n </div>\r\n ))}\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -179,7 +179,7 @@ export class GbButton {
|
|
|
179
179
|
"mutable": false,
|
|
180
180
|
"complexType": {
|
|
181
181
|
"original": "StateType",
|
|
182
|
-
"resolved": "\"default\" | \"disabled\"",
|
|
182
|
+
"resolved": "\"applied\" | \"default\" | \"disabled\"",
|
|
183
183
|
"references": {
|
|
184
184
|
"StateType": {
|
|
185
185
|
"location": "import",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| `iconTrailing` | `icon-trailing` | | `boolean` | `false` |
|
|
18
18
|
| `iconTrailingSwap` | `icon-trailing-swap` | | `string` | `undefined` |
|
|
19
19
|
| `size` _(required)_ | `size` | | `"lg" \| "md" \| "profile_lg" \| "profile_md" \| "profile_sm" \| "sm" \| "xl" \| "xl2" \| "xl3" \| "xl4" \| "xs" \| "xxs"` | `undefined` |
|
|
20
|
-
| `state` | `state` | | `"default" \| "disabled"`
|
|
20
|
+
| `state` | `state` | | `"applied" \| "default" \| "disabled"` | `undefined` |
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
## Dependencies
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
- [gb-detail-cell](../gb-detail-cell)
|
|
31
31
|
- [gb-file-upload](../gb-file-upload)
|
|
32
32
|
- [gb-file-upload-item-base](../gb-file-upload-item-base)
|
|
33
|
+
- [gb-filter-button](../gb-filter-button)
|
|
33
34
|
- [gb-input-field](../gb-input-field)
|
|
34
35
|
- [gb-notification-pane](../gb-notification-pane)
|
|
35
36
|
- [gb-pagination](../gb-pagination)
|
|
@@ -45,6 +46,7 @@ graph TD;
|
|
|
45
46
|
gb-detail-cell --> gb-button
|
|
46
47
|
gb-file-upload --> gb-button
|
|
47
48
|
gb-file-upload-item-base --> gb-button
|
|
49
|
+
gb-filter-button --> gb-button
|
|
48
50
|
gb-input-field --> gb-button
|
|
49
51
|
gb-notification-pane --> gb-button
|
|
50
52
|
gb-pagination --> gb-button
|