@adyen/bento-vue3 1.55.1 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +844 -289
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/teleport.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.DLyCF015.js → accordion-item.CihL7JaZ.js} +2 -2
- package/dist/chunks/{accordion-item.DLyCF015.js.map → accordion-item.CihL7JaZ.js.map} +1 -1
- package/dist/chunks/{action-bar.CDOaDenE.js → action-bar.CD5FQjE9.js} +6 -6
- package/dist/chunks/{action-bar.CDOaDenE.js.map → action-bar.CD5FQjE9.js.map} +1 -1
- package/dist/chunks/{alert.4SefwHLO.js → alert.CFb4Sejw.js} +3 -3
- package/dist/chunks/{alert.4SefwHLO.js.map → alert.CFb4Sejw.js.map} +1 -1
- package/dist/chunks/{base-modal.DZy1WuJs.js → base-modal.qhldLovE.js} +5 -5
- package/dist/chunks/{base-modal.DZy1WuJs.js.map → base-modal.qhldLovE.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DQRTu42W.js → button-actions-with-menu.CxB1fVvx.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.DQRTu42W.js.map → button-actions-with-menu.CxB1fVvx.js.map} +1 -1
- package/dist/chunks/{button-actions.N99QthUv.js → button-actions.ODJKaCW7.js} +3 -3
- package/dist/chunks/{button-actions.N99QthUv.js.map → button-actions.ODJKaCW7.js.map} +1 -1
- package/dist/chunks/{button.DEVuqLVT.js → button.BHZgsGkp.js} +43 -41
- package/dist/chunks/button.BHZgsGkp.js.map +1 -0
- package/dist/chunks/{calendar.CNt90BvO.js → calendar.Dymq4e0Y.js} +4 -4
- package/dist/chunks/{calendar.CNt90BvO.js.map → calendar.Dymq4e0Y.js.map} +1 -1
- package/dist/chunks/{card.E2xhS_6Z.js → card.DQ6g6hqK.js} +3 -3
- package/dist/chunks/{card.E2xhS_6Z.js.map → card.DQ6g6hqK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BMzsgOeI.js → checkbox-group.DFmUrvgx.js} +4 -4
- package/dist/chunks/{checkbox-group.BMzsgOeI.js.map → checkbox-group.DFmUrvgx.js.map} +1 -1
- package/dist/chunks/{checkbox.BIaD03Bg.js → checkbox.Bti_jnp2.js} +17 -17
- package/dist/chunks/{checkbox.BIaD03Bg.js.map → checkbox.Bti_jnp2.js.map} +1 -1
- package/dist/chunks/{chip.3T0x6FuI.js → chip.DbhxDQiT.js} +2 -2
- package/dist/chunks/{chip.3T0x6FuI.js.map → chip.DbhxDQiT.js.map} +1 -1
- package/dist/chunks/code-snippet.Df5XwyWD.js +334 -0
- package/dist/chunks/code-snippet.Df5XwyWD.js.map +1 -0
- package/dist/chunks/{controls-group.DJqvAWte.js → controls-group.DgrzEh4C.js} +2 -2
- package/dist/chunks/{controls-group.DJqvAWte.js.map → controls-group.DgrzEh4C.js.map} +1 -1
- package/dist/chunks/{copy.MId-I684.js → copy.CfFh4b_c.js} +3 -3
- package/dist/chunks/{copy.MId-I684.js.map → copy.CfFh4b_c.js.map} +1 -1
- package/dist/chunks/{country.D0WFfaql.js → country.BhAcCmRx.js} +2 -2
- package/dist/chunks/{country.D0WFfaql.js.map → country.BhAcCmRx.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CrbSjoA8.js → dashboard-section.tza4iYcv.js} +3 -3
- package/dist/chunks/{dashboard-section.CrbSjoA8.js.map → dashboard-section.tza4iYcv.js.map} +1 -1
- package/dist/chunks/dashed-underline.B2cIJkg_.js +98 -0
- package/dist/chunks/dashed-underline.B2cIJkg_.js.map +1 -0
- package/dist/chunks/data-grid-template.PGPytWvk.js +111 -0
- package/dist/chunks/data-grid-template.PGPytWvk.js.map +1 -0
- package/dist/chunks/{data-grid.CsyayKK3.js → data-grid.DsZQ-F9m.js} +1328 -1299
- package/dist/chunks/data-grid.DsZQ-F9m.js.map +1 -0
- package/dist/chunks/{date-picker.CjwoOQ3B.js → date-picker.8jgg3MJm.js} +7 -7
- package/dist/chunks/{date-picker.CjwoOQ3B.js.map → date-picker.8jgg3MJm.js.map} +1 -1
- package/dist/chunks/{date-range-picker.DGY91Rwc.js → date-range-picker.uGwtO7SA.js} +10 -10
- package/dist/chunks/{date-range-picker.DGY91Rwc.js.map → date-range-picker.uGwtO7SA.js.map} +1 -1
- package/dist/chunks/{date.DoJuTLhO.js → date.CKXySBQv.js} +2 -2
- package/dist/chunks/{date.DoJuTLhO.js.map → date.CKXySBQv.js.map} +1 -1
- package/dist/chunks/{dialog-page.BRlAYf5w.js → dialog-page.MLFdqTcL.js} +3 -3
- package/dist/chunks/{dialog-page.BRlAYf5w.js.map → dialog-page.MLFdqTcL.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CTyt2klK.js → dropdown-default-textbox.BNhy-QDH.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.CTyt2klK.js.map → dropdown-default-textbox.BNhy-QDH.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CJtSH5cZ.js → dropdown-tag.DEAOevYN.js} +3 -3
- package/dist/chunks/{dropdown-tag.CJtSH5cZ.js.map → dropdown-tag.DEAOevYN.js.map} +1 -1
- package/dist/chunks/{dropdown.CQvyjn6d.js → dropdown.CVa4_qCe.js} +6 -6
- package/dist/chunks/{dropdown.CQvyjn6d.js.map → dropdown.CVa4_qCe.js.map} +1 -1
- package/dist/chunks/{empty-state.m0U14LVw.js → empty-state.DiXLZmQJ.js} +2 -2
- package/dist/chunks/{empty-state.m0U14LVw.js.map → empty-state.DiXLZmQJ.js.map} +1 -1
- package/dist/chunks/{error-message.CMgsMDny.js → error-message.CPw3y44N.js} +2 -2
- package/dist/chunks/{error-message.CMgsMDny.js.map → error-message.CPw3y44N.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.D3KUe-MO.js → file-uploader.Dv4sh1IO.js} +477 -452
- package/dist/chunks/file-uploader.Dv4sh1IO.js.map +1 -0
- package/dist/chunks/filter-bar.DfIcZ5dX.js +2886 -0
- package/dist/chunks/filter-bar.DfIcZ5dX.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BNP4SR5J.js → fixed-scroller.DsTyshyt.js} +3 -3
- package/dist/chunks/{fixed-scroller.BNP4SR5J.js.map → fixed-scroller.DsTyshyt.js.map} +1 -1
- package/dist/chunks/{footer-actions.DmGDpPBW.js → footer-actions.C00o4tuW.js} +3 -3
- package/dist/chunks/{footer-actions.DmGDpPBW.js.map → footer-actions.C00o4tuW.js.map} +1 -1
- package/dist/chunks/{form-layout-title.P5ajTo4C.js → form-layout-title.dcT8eXwc.js} +2 -2
- package/dist/chunks/{form-layout-title.P5ajTo4C.js.map → form-layout-title.dcT8eXwc.js.map} +1 -1
- package/dist/chunks/{header-with-views.BJIQZVAq.js → header-with-views.DEn9HFkT.js} +14 -14
- package/dist/chunks/{header-with-views.BJIQZVAq.js.map → header-with-views.DEn9HFkT.js.map} +1 -1
- package/dist/chunks/{header.vHSsdURt.js → header.hDkWwQuQ.js} +5 -5
- package/dist/chunks/{header.vHSsdURt.js.map → header.hDkWwQuQ.js.map} +1 -1
- package/dist/chunks/{i18n.D9azDLPe.js → i18n.B6g5VX0q.js} +1050 -1020
- package/dist/chunks/i18n.B6g5VX0q.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.CXaaxjeT.js → info-icon-with-popover.COJrCw_o.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.CXaaxjeT.js.map → info-icon-with-popover.COJrCw_o.js.map} +1 -1
- package/dist/chunks/{input-field-password.CWr26esx.js → input-field-password._CliYJ7N.js} +86 -81
- package/dist/chunks/{input-field-password.CWr26esx.js.map → input-field-password._CliYJ7N.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.zf8WxBCn.js → input-field-phone-number.WPcQbE3z.js} +4 -4
- package/dist/chunks/{input-field-phone-number.zf8WxBCn.js.map → input-field-phone-number.WPcQbE3z.js.map} +1 -1
- package/dist/chunks/{input-field.CR262X1w.js → input-field.Cr1r2STY.js} +4 -4
- package/dist/chunks/{input-field.CR262X1w.js.map → input-field.Cr1r2STY.js.map} +1 -1
- package/dist/chunks/{inspector.types.YK45k4D_.js → inspector.types.D5QBC3-G.js} +3 -3
- package/dist/chunks/{inspector.types.YK45k4D_.js.map → inspector.types.D5QBC3-G.js.map} +1 -1
- package/dist/chunks/{menu.CVMSGvtb.js → menu.B0q9q97N.js} +17 -16
- package/dist/chunks/{menu.CVMSGvtb.js.map → menu.B0q9q97N.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Cqlf6PWo.js → modal-fullscreen.BgqNc9jE.js} +5 -5
- package/dist/chunks/{modal-fullscreen.Cqlf6PWo.js.map → modal-fullscreen.BgqNc9jE.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.dXxru4S9.js → modal.vue_vue_type_script_setup_true_lang.Dr847POU.js} +6 -6
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.dXxru4S9.js.map → modal.vue_vue_type_script_setup_true_lang.Dr847POU.js.map} +1 -1
- package/dist/chunks/{pagination.C65tc-nX.js → pagination.Bi5BwIWq.js} +4 -4
- package/dist/chunks/{pagination.C65tc-nX.js.map → pagination.Bi5BwIWq.js.map} +1 -1
- package/dist/chunks/{popover.DjbACET6.js → popover.R5OM_tFu.js} +3 -3
- package/dist/chunks/{popover.DjbACET6.js.map → popover.R5OM_tFu.js.map} +1 -1
- package/dist/chunks/{promo-banner.ZCfJQh-S.js → promo-banner.DFt2dVxk.js} +3 -3
- package/dist/chunks/{promo-banner.ZCfJQh-S.js.map → promo-banner.DFt2dVxk.js.map} +1 -1
- package/dist/chunks/{radio-group.Tgf3BF5X.js → radio-group.muZVaVEm.js} +3 -3
- package/dist/chunks/{radio-group.Tgf3BF5X.js.map → radio-group.muZVaVEm.js.map} +1 -1
- package/dist/chunks/{search-bar.CTn5DIQZ.js → search-bar.DlVK3bBQ.js} +4 -4
- package/dist/chunks/{search-bar.CTn5DIQZ.js.map → search-bar.DlVK3bBQ.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CnE-aV2P.js → secondary-nav.CIEVFTYS.js} +3 -3
- package/dist/chunks/{secondary-nav.CnE-aV2P.js.map → secondary-nav.CIEVFTYS.js.map} +1 -1
- package/dist/chunks/{selection-card-group.C2OFZgKd.js → selection-card-group.BgANSy3b.js} +11 -11
- package/dist/chunks/{selection-card-group.C2OFZgKd.js.map → selection-card-group.BgANSy3b.js.map} +1 -1
- package/dist/chunks/{sidepanel.Drn-lKR3.js → sidepanel.BjR0Ab22.js} +5 -5
- package/dist/chunks/{sidepanel.Drn-lKR3.js.map → sidepanel.BjR0Ab22.js.map} +1 -1
- package/dist/chunks/{step.BGFaHGFO.js → step.7l-t-eN9.js} +2 -2
- package/dist/chunks/{step.BGFaHGFO.js.map → step.7l-t-eN9.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CWiwoP5F.js → structured-list-item.BMsATRrU.js} +4 -4
- package/dist/chunks/{structured-list-item.CWiwoP5F.js.map → structured-list-item.BMsATRrU.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DOYW579A.js → summary-grid.types.lGX16F4w.js} +126 -114
- package/dist/chunks/summary-grid.types.lGX16F4w.js.map +1 -0
- package/dist/chunks/{tabs.DZk78MLK.js → tabs.BVuOvNxx.js} +17 -17
- package/dist/chunks/{tabs.DZk78MLK.js.map → tabs.BVuOvNxx.js.map} +1 -1
- package/dist/chunks/{teleport.zSiKZmRE.js → teleport.CfGWjxe2.js} +17 -26
- package/dist/chunks/teleport.CfGWjxe2.js.map +1 -0
- package/dist/chunks/{textarea.CR7su54i.js → textarea.CAc_VYFm.js} +4 -4
- package/dist/chunks/{textarea.CR7su54i.js.map → textarea.CAc_VYFm.js.map} +1 -1
- package/dist/chunks/timeline-item.BQ4qiBii.js +567 -0
- package/dist/chunks/timeline-item.BQ4qiBii.js.map +1 -0
- package/dist/chunks/{toast.DxVfamh-.js → toast.BOpWHAfu.js} +3 -3
- package/dist/chunks/{toast.DxVfamh-.js.map → toast.BOpWHAfu.js.map} +1 -1
- package/dist/chunks/{toggle-button.D-9TFTy8.js → toggle-button.E0VQtyEX.js} +2 -2
- package/dist/chunks/{toggle-button.D-9TFTy8.js.map → toggle-button.E0VQtyEX.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ENhKvQLv.js → tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ENhKvQLv.js.map → tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CQKeFUJd.js → use-cached-selected-values.DHUa2Emx.js} +6 -6
- package/dist/chunks/{use-cached-selected-values.CQKeFUJd.js.map → use-cached-selected-values.DHUa2Emx.js.map} +1 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
- package/dist/chunks/{use-country-items.BMhCqIWd.js → use-country-items.4kZgVg_l.js} +2 -2
- package/dist/chunks/{use-country-items.BMhCqIWd.js.map → use-country-items.4kZgVg_l.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +55 -55
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +13 -2
- package/dist/styles/bento-light.css +13 -2
- package/dist/styles/bento.css +13 -2
- package/dist/styles/legacy.css +14 -4
- package/dist/styles/styleguide.css +13 -2
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/chunks/button.DEVuqLVT.js.map +0 -1
- package/dist/chunks/code-snippet.DJgiqDzZ.js +0 -422
- package/dist/chunks/code-snippet.DJgiqDzZ.js.map +0 -1
- package/dist/chunks/dashed-underline.DWhGZIhS.js +0 -80
- package/dist/chunks/dashed-underline.DWhGZIhS.js.map +0 -1
- package/dist/chunks/data-grid-template.LlK-7o84.js +0 -93
- package/dist/chunks/data-grid-template.LlK-7o84.js.map +0 -1
- package/dist/chunks/data-grid.CsyayKK3.js.map +0 -1
- package/dist/chunks/file-uploader.D3KUe-MO.js.map +0 -1
- package/dist/chunks/filter-bar.cRJmUX-v.js +0 -2771
- package/dist/chunks/filter-bar.cRJmUX-v.js.map +0 -1
- package/dist/chunks/i18n.D9azDLPe.js.map +0 -1
- package/dist/chunks/summary-grid.types.DOYW579A.js.map +0 -1
- package/dist/chunks/teleport.zSiKZmRE.js.map +0 -1
- package/dist/chunks/timeline-item.BhQp0ICP.js +0 -560
- package/dist/chunks/timeline-item.BhQp0ICP.js.map +0 -1
package/dist/chunks/{structured-list-item.CWiwoP5F.js.map → structured-list-item.BMsATRrU.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-list-item.
|
|
1
|
+
{"version":3,"file":"structured-list-item.BMsATRrU.js","sources":["../../../vue2/src/components/structured-list/structured-list.keys.ts","../../../vue2/src/components/structured-list/structured-list.types.ts","../../../vue2/src/components/structured-list/structured-list.vue","../../../vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\nexport const STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY = Symbol('structured list labels width injection key');\n","export type BentoStructuredListLayoutOptions = '25-75' | '33-66' | '42-58' | '50-50';\nexport const BentoStructuredListLayoutOptions = ['25-75', '33-66', '42-58', '50-50'];\n","<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide } from 'vue';\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '@/components/structured-list/structured-list.keys';\n import { BentoStructuredListLayoutOptions } from './structured-list.types';\n\n const props = withDefaults(\n defineProps<{\n /**\n * Width of the labels container, in pixels. Overrides layout prop.\n */\n labelsWidth?: number;\n /**\n * The layout of the label value pair in percentage.\n * If labelsWidth is set, layout will be overriden by the static pixel value.\n *\n * If the value entered is not listed in the example\n * list below '33-66' will be applied\n * @example\n * '25-75'\n * '33-66'\n * '42-58'\n * '50-50'\n */\n layout?: BentoStructuredListLayoutOptions;\n }>(),\n {\n labelsWidth: null,\n layout: '33-66',\n }\n );\n\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const computedLayout = computed(() =>\n BentoStructuredListLayoutOptions.includes(props.layout) ? props.layout : '33-66'\n );\n\n const computedLabelsWidth = computed(() => {\n if (isCondensed) {\n return '130px';\n }\n\n if (props.labelsWidth) {\n return `${props.labelsWidth}px`;\n }\n\n return `${computedLayout.value.split('-')[0]}%`;\n });\n\n provide(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, computedLabelsWidth);\n</script>\n\n<script lang=\"ts\">\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\" :value=\"123456\" />\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\" :style=\"computedLabelStyle\">\n <bento-typography :variant=\"labelTypographyVariant\">{{ label }}</bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\" :class=\"valueConditionalClasses\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref, Ref } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Utils\n import { useI18n } from '@/utils/ts/i18n';\n\n // Directives\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives';\n\n // Keys\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_LABELS_WIDTH = '33%';\n\n const props = defineProps<{\n /**\n * Label to display for the value\n */\n label: string;\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo?: string;\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy?: string;\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search?: (event: Event) => void;\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip?: string;\n /**\n * Truncates the value of the item\n */\n truncate?: boolean;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n const labelsWidth = inject<Ref<string>>(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, ref(DEFAULT_LABELS_WIDTH));\n const computedLabelStyle = computed(() => `flex-basis:${labelsWidth.value}`);\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const valueConditionalClasses = computed(() => ({\n 'b-structured-list-item__value--truncate': props.truncate,\n }));\n\n const labelTypographyVariant = computed(() => (isCondensed ? 'caption' : 'body'));\n</script>\n\n<script lang=\"ts\">\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\" :value=\"123456\" />\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["STRUCTURED_LIST_CONDENSED_INJECTION_KEY","STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY","BentoStructuredListLayoutOptions","__default__$1","props","__props","isCondensed","inject","computedLayout","computed","computedLabelsWidth","provide","__default__","messages","DEFAULT_LABELS_WIDTH","t","useI18n","labelsWidth","ref","computedLabelStyle","conditionalClasses","valueConditionalClasses","labelTypographyVariant"],"mappings":";;;;;;;;;;;AAAa,MAAAA,IAAA,OAAA,+CAAA,GACAC,IAAA,OAAA,4CAAA,GCANC,IAAA,CAAA,SAAA,SAAA,SAAA,OAAA,uCCkFHC,IAAA,CAAA;;;;;;;;AArEA,UAAAC,IAAAC,GA0BAC,IAAAC,EAAAP,GAAA,EAAA,GAEAQ,IAAAC;AAAA,MAAuB,MAAAP,EAAA,SAAAE,EAAA,MAAA,IAAAA,EAAA,SAAA;AAAA,IACsD,GAG7EM,IAAAD,EAAA,MACIH,IACI,UAGJF,EAAA,cACI,GAAAA,EAAA,WAAA,OAGJ,GAAAI,EAAA,MAAA,MAAA,GAAA,EAAA,CAAA,CAAA,GAA4C;AAGhD,WAAAG,EAAAV,GAAAS,CAAA;;;;;;;;;;;;;;GC4DAE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;AAtEA,UAAAC,IAAA,OAEAV,IAAAC,GA2BA,EAAA,GAAAU,EAAA,IAAAC,EAAA,EAAA,UAAAH,EAAA,CAAA,GACAP,IAAAC,EAAAP,GAAA,EAAA,GACAiB,IAAAV,EAAAN,GAAAiB,EAAAJ,CAAA,CAAA,GACAK,IAAAV,EAAA,MAAA,cAAAQ,EAAA,KAAA,EAAA,GACAG,IAAAX,EAAA,OAAA;AAAA,MAA2C,qCAAAH;AAAA,IACF,EAAA,GAGzCe,IAAAZ,EAAA,OAAA;AAAA,MAAgD,2CAAAL,EAAA;AAAA,IACK,EAAA,GAGrDkB,IAAAb,EAAA,MAAAH,IAAA,YAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as v, useSlots as T, onMounted as
|
|
1
|
+
import { defineComponent as v, useSlots as T, onMounted as O, provide as P, toRef as Y, createElementBlock as S, openBlock as r, Fragment as R, renderList as Z, unref as t, createBlock as c, createSlots as h, withCtx as o, renderSlot as s, toRefs as j, inject as H, ref as W, computed as y, normalizeStyle as F, normalizeClass as J, createElementVNode as D, createVNode as E, createCommentVNode as $, createTextVNode as f, toDisplayString as m, mergeProps as K } from "vue";
|
|
2
2
|
import { u as _ } from "./use-has-slot.B7eQSabc.js";
|
|
3
|
-
import { S as q, a as
|
|
3
|
+
import { S as q, a as G } from "./summary-grid.keys.CxTf_FOc.js";
|
|
4
4
|
import { G as Q } from "./grid-layout.BTLE3rac.js";
|
|
5
|
-
import { _ as
|
|
6
|
-
import { B as X } from "./dashed-underline.
|
|
5
|
+
import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import { B as X } from "./dashed-underline.B2cIJkg_.js";
|
|
7
7
|
import { B as x } from "./info-icon.7uhGVIn5.js";
|
|
8
|
-
import { B
|
|
9
|
-
import { B as
|
|
10
|
-
import { C as ee } from "./copy.
|
|
8
|
+
import { B } from "./typography.DN5eC5ch.js";
|
|
9
|
+
import { B as L } from "./tag.CmYkknFj.js";
|
|
10
|
+
import { C as ee } from "./copy.CfFh4b_c.js";
|
|
11
11
|
import "../assets/summary-grid.css";
|
|
12
12
|
const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
13
13
|
...oe,
|
|
@@ -16,69 +16,69 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
16
16
|
columnWidth: { default: null },
|
|
17
17
|
slashedZero: { type: Boolean, default: !1 }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
var
|
|
21
|
-
const
|
|
22
|
-
let
|
|
23
|
-
if (
|
|
24
|
-
const u = (
|
|
19
|
+
setup(i) {
|
|
20
|
+
var I, z;
|
|
21
|
+
const d = i, a = T(), e = _(a);
|
|
22
|
+
let p = 1;
|
|
23
|
+
if (a) {
|
|
24
|
+
const u = (z = (I = Object.keys(a)) == null ? void 0 : I.filter((g) => g.includes("cell-"))) == null ? void 0 : z.map((g) => {
|
|
25
25
|
var n;
|
|
26
26
|
return parseInt((n = g.split("-")) == null ? void 0 : n[1], 10);
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
p = Math.max(...u);
|
|
29
29
|
}
|
|
30
|
-
return
|
|
31
|
-
if (
|
|
30
|
+
return O(() => {
|
|
31
|
+
if (p > 3)
|
|
32
32
|
throw new Error(
|
|
33
33
|
"BentoSummaryGrid must only have a maximum of 3 rows. Read the documentation for more information."
|
|
34
34
|
);
|
|
35
|
-
}),
|
|
36
|
-
(
|
|
37
|
-
var
|
|
38
|
-
return
|
|
35
|
+
}), P(q, () => ({ isSummaryGridLayout: !0 })), P(G, Y(d, "slashedZero")), (u, g) => (r(), S("div", te, [
|
|
36
|
+
(r(!0), S(R, null, Z(t(p), (n) => {
|
|
37
|
+
var C;
|
|
38
|
+
return r(), c(t(Q), {
|
|
39
39
|
key: `summary-grid-row-${n}`,
|
|
40
40
|
"data-testid": `summary-grid-row-${n}`,
|
|
41
|
-
"column-width": (
|
|
41
|
+
"column-width": (C = u.columnWidth) == null ? void 0 : C[`row${n}`]
|
|
42
42
|
}, h({ _: 2 }, [
|
|
43
43
|
t(e)(`cell-${n}-1`) ? {
|
|
44
44
|
name: "col-1",
|
|
45
45
|
fn: o(() => [
|
|
46
|
-
|
|
46
|
+
s(u.$slots, `cell-${n}-1`, {}, void 0, !0)
|
|
47
47
|
]),
|
|
48
48
|
key: "0"
|
|
49
49
|
} : void 0,
|
|
50
50
|
t(e)(`cell-${n}-2`) ? {
|
|
51
51
|
name: "col-2",
|
|
52
52
|
fn: o(() => [
|
|
53
|
-
|
|
53
|
+
s(u.$slots, `cell-${n}-2`, {}, void 0, !0)
|
|
54
54
|
]),
|
|
55
55
|
key: "1"
|
|
56
56
|
} : void 0,
|
|
57
57
|
t(e)(`cell-${n}-3`) ? {
|
|
58
58
|
name: "col-3",
|
|
59
59
|
fn: o(() => [
|
|
60
|
-
|
|
60
|
+
s(u.$slots, `cell-${n}-3`, {}, void 0, !0)
|
|
61
61
|
]),
|
|
62
62
|
key: "2"
|
|
63
63
|
} : void 0,
|
|
64
64
|
t(e)(`cell-${n}-4`) ? {
|
|
65
65
|
name: "col-4",
|
|
66
66
|
fn: o(() => [
|
|
67
|
-
|
|
67
|
+
s(u.$slots, `cell-${n}-4`, {}, void 0, !0)
|
|
68
68
|
]),
|
|
69
69
|
key: "3"
|
|
70
70
|
} : void 0,
|
|
71
71
|
t(e)(`cell-${n}-5`) ? {
|
|
72
72
|
name: "col-5",
|
|
73
73
|
fn: o(() => [
|
|
74
|
-
|
|
74
|
+
s(u.$slots, `cell-${n}-5`, {}, void 0, !0)
|
|
75
75
|
]),
|
|
76
76
|
key: "4"
|
|
77
77
|
} : void 0,
|
|
78
78
|
t(e)(`cell-${n}-6`) ? {
|
|
79
79
|
name: "col-6",
|
|
80
80
|
fn: o(() => [
|
|
81
|
-
|
|
81
|
+
s(u.$slots, `cell-${n}-6`, {}, void 0, !0)
|
|
82
82
|
]),
|
|
83
83
|
key: "5"
|
|
84
84
|
} : void 0
|
|
@@ -86,7 +86,7 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
86
86
|
}), 128))
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
89
|
+
}), Me = /* @__PURE__ */ w(ne, [["__scopeId", "data-v-14d3ddaf"]]), ie = { class: "b-summary-grid-item__header" }, le = { class: "b-summary-grid-item__title-icons" }, re = {}, de = /* @__PURE__ */ v({
|
|
90
90
|
...re,
|
|
91
91
|
__name: "summary-grid-item",
|
|
92
92
|
props: {
|
|
@@ -100,11 +100,12 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
100
100
|
trendDirection: { default: "positive" },
|
|
101
101
|
secondaryTrend: { default: null },
|
|
102
102
|
secondaryTrendDirection: { default: "positive" },
|
|
103
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
103
104
|
underlineTooltipText: { default: null }
|
|
104
105
|
},
|
|
105
|
-
setup(
|
|
106
|
-
const
|
|
107
|
-
switch (
|
|
106
|
+
setup(i) {
|
|
107
|
+
const d = i, { trendDirection: a, secondaryTrendDirection: e, itemType: p, size: b } = j(d), I = H(G, W(!1)), z = (l) => {
|
|
108
|
+
switch (l) {
|
|
108
109
|
case "positive":
|
|
109
110
|
return "green";
|
|
110
111
|
case "negative":
|
|
@@ -112,75 +113,76 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
112
113
|
default:
|
|
113
114
|
return "blue";
|
|
114
115
|
}
|
|
115
|
-
}, u = y(() =>
|
|
116
|
+
}, u = y(() => z(a.value)), g = y(() => z(e.value)), n = y(() => b.value === "small" ? "body" : p.value !== "text" ? "title" : null), C = y(() => ({
|
|
116
117
|
medium: b.value === "large",
|
|
117
118
|
strongest: b.value === "small",
|
|
118
119
|
wide: b.value === "small",
|
|
119
120
|
variant: n.value
|
|
120
|
-
})),
|
|
121
|
-
return (
|
|
122
|
-
class: J(["b-summary-grid-item",
|
|
123
|
-
style: F(
|
|
121
|
+
})), A = y(() => d.fitContent ? { width: "fit-content" } : {}), V = y(() => ({ "b-summary-grid-item--slashed-zero": I.value })), N = T(), M = _(N), U = y(() => d.underlineTooltipText || M("dashed-underline"));
|
|
122
|
+
return (l, he) => (r(), S("div", {
|
|
123
|
+
class: J(["b-summary-grid-item", V.value]),
|
|
124
|
+
style: F(A.value)
|
|
124
125
|
}, [
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
D("div", ie, [
|
|
127
|
+
E(t(B), {
|
|
127
128
|
class: "b-summary-grid-item__title",
|
|
128
129
|
el: "span",
|
|
129
130
|
variant: "body"
|
|
130
131
|
}, {
|
|
131
132
|
default: o(() => [
|
|
132
|
-
|
|
133
|
+
U.value ? (r(), c(t(X), {
|
|
133
134
|
key: 0,
|
|
134
|
-
"tooltip-text":
|
|
135
|
+
"tooltip-text": l.underlineTooltipText,
|
|
136
|
+
"popover-size": l.underlinePopoverSize
|
|
135
137
|
}, h({
|
|
136
138
|
default: o(() => [
|
|
137
|
-
f(
|
|
139
|
+
f(m(l.title) + " ", 1)
|
|
138
140
|
]),
|
|
139
141
|
_: 2
|
|
140
142
|
}, [
|
|
141
|
-
t(
|
|
143
|
+
t(M)("dashed-underline") ? {
|
|
142
144
|
name: "popover-content",
|
|
143
145
|
fn: o(() => [
|
|
144
|
-
|
|
146
|
+
s(l.$slots, "dashed-underline", {}, void 0, !0)
|
|
145
147
|
]),
|
|
146
148
|
key: "0"
|
|
147
149
|
} : void 0
|
|
148
|
-
]), 1032, ["tooltip-text"])) : (
|
|
149
|
-
f(
|
|
150
|
+
]), 1032, ["tooltip-text", "popover-size"])) : (r(), S(R, { key: 1 }, [
|
|
151
|
+
f(m(l.title), 1)
|
|
150
152
|
], 64))
|
|
151
153
|
]),
|
|
152
154
|
_: 3
|
|
153
155
|
}),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
D("div", le, [
|
|
157
|
+
l.copy ? (r(), c(t(ee), {
|
|
156
158
|
key: 0,
|
|
157
159
|
class: "b-structured-list__icon",
|
|
158
|
-
text:
|
|
160
|
+
text: l.copy
|
|
159
161
|
}, null, 8, ["text"])) : $("", !0),
|
|
160
|
-
|
|
162
|
+
l.infoIconTooltipText ? (r(), c(t(x), {
|
|
161
163
|
key: 1,
|
|
162
|
-
"tooltip-text":
|
|
164
|
+
"tooltip-text": l.infoIconTooltipText,
|
|
163
165
|
"tooltip-position": "top",
|
|
164
166
|
class: "b-summary-grid-item__title-tooltip"
|
|
165
167
|
}, null, 8, ["tooltip-text"])) : $("", !0)
|
|
166
168
|
])
|
|
167
169
|
]),
|
|
168
|
-
|
|
170
|
+
E(t(B), K({
|
|
169
171
|
"data-testid": "summary-grid-item-content-typography",
|
|
170
172
|
class: "b-summary-grid-item__title"
|
|
171
|
-
},
|
|
173
|
+
}, C.value, { el: "span" }), {
|
|
172
174
|
default: o(() => [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
s(l.$slots, "default", {}, void 0, !0),
|
|
176
|
+
l.trend && t(p) !== "text" ? (r(), c(t(L), {
|
|
175
177
|
key: 0,
|
|
176
178
|
variant: u.value,
|
|
177
|
-
label:
|
|
179
|
+
label: l.trend,
|
|
178
180
|
class: "b-summary-grid-item__content-trend"
|
|
179
181
|
}, null, 8, ["variant", "label"])) : $("", !0)
|
|
180
182
|
]),
|
|
181
183
|
_: 3
|
|
182
184
|
}, 16),
|
|
183
|
-
t(
|
|
185
|
+
t(M)("secondary") ? (r(), c(t(B), {
|
|
184
186
|
key: 0,
|
|
185
187
|
class: "b-summary-grid-item__title",
|
|
186
188
|
"data-testid": "summary-grid-item-secondary-metric-typography",
|
|
@@ -189,11 +191,11 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
189
191
|
stronger: ""
|
|
190
192
|
}, {
|
|
191
193
|
default: o(() => [
|
|
192
|
-
|
|
193
|
-
|
|
194
|
+
s(l.$slots, "secondary", {}, void 0, !0),
|
|
195
|
+
l.secondaryTrend ? (r(), c(t(L), {
|
|
194
196
|
key: 0,
|
|
195
197
|
variant: g.value,
|
|
196
|
-
label:
|
|
198
|
+
label: l.secondaryTrend,
|
|
197
199
|
class: "b-summary-grid-item__content-trend"
|
|
198
200
|
}, null, 8, ["variant", "label"])) : $("", !0)
|
|
199
201
|
]),
|
|
@@ -201,7 +203,7 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
201
203
|
})) : $("", !0)
|
|
202
204
|
], 6));
|
|
203
205
|
}
|
|
204
|
-
}),
|
|
206
|
+
}), k = /* @__PURE__ */ w(de, [["__scopeId", "data-v-f887fd83"]]), ae = { class: "b-summary-grid-item-amount__content" }, se = {
|
|
205
207
|
key: 0,
|
|
206
208
|
class: "b-summary-grid-item-amount__secondary-label"
|
|
207
209
|
}, ue = {}, ce = /* @__PURE__ */ v({
|
|
@@ -220,11 +222,12 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
220
222
|
trendDirection: { default: "positive" },
|
|
221
223
|
secondaryTrend: { default: null },
|
|
222
224
|
secondaryTrendDirection: { default: "positive" },
|
|
225
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
223
226
|
underlineTooltipText: { default: null }
|
|
224
227
|
},
|
|
225
|
-
setup(
|
|
226
|
-
const
|
|
227
|
-
return (e,
|
|
228
|
+
setup(i) {
|
|
229
|
+
const d = T(), a = _(d);
|
|
230
|
+
return (e, p) => (r(), c(t(k), {
|
|
228
231
|
"item-type": "amount",
|
|
229
232
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
230
233
|
title: e.title,
|
|
@@ -235,35 +238,36 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
235
238
|
"trend-direction": e.trendDirection,
|
|
236
239
|
"secondary-trend": e.secondaryTrend,
|
|
237
240
|
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
241
|
+
"underline-popover-size": e.underlinePopoverSize,
|
|
238
242
|
"underline-tooltip-text": e.underlineTooltipText,
|
|
239
243
|
class: "b-summary-grid-item-amount"
|
|
240
244
|
}, h({
|
|
241
245
|
default: o(() => [
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
e.secondaryLabel ? (
|
|
246
|
+
D("div", ae, [
|
|
247
|
+
D("div", null, m(e.label), 1),
|
|
248
|
+
e.secondaryLabel ? (r(), S("div", se, m(e.secondaryLabel), 1)) : $("", !0)
|
|
245
249
|
])
|
|
246
250
|
]),
|
|
247
251
|
_: 2
|
|
248
252
|
}, [
|
|
249
|
-
t(
|
|
253
|
+
t(a)("dashed-underline") ? {
|
|
250
254
|
name: "dashed-underline",
|
|
251
255
|
fn: o(() => [
|
|
252
|
-
|
|
256
|
+
s(e.$slots, "dashed-underline", {}, void 0, !0)
|
|
253
257
|
]),
|
|
254
258
|
key: "0"
|
|
255
259
|
} : void 0,
|
|
256
260
|
e.secondaryMetric ? {
|
|
257
261
|
name: "secondary",
|
|
258
262
|
fn: o(() => [
|
|
259
|
-
f(
|
|
263
|
+
f(m(e.secondaryMetric), 1)
|
|
260
264
|
]),
|
|
261
265
|
key: "1"
|
|
262
266
|
} : void 0
|
|
263
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]));
|
|
267
|
+
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-popover-size", "underline-tooltip-text"]));
|
|
264
268
|
}
|
|
265
|
-
}),
|
|
266
|
-
...
|
|
269
|
+
}), Be = /* @__PURE__ */ w(ce, [["__scopeId", "data-v-70d30125"]]), pe = {}, we = /* @__PURE__ */ v({
|
|
270
|
+
...pe,
|
|
267
271
|
__name: "summary-grid-item-numeric",
|
|
268
272
|
props: {
|
|
269
273
|
label: {},
|
|
@@ -277,11 +281,12 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
277
281
|
trendDirection: { default: "positive" },
|
|
278
282
|
secondaryTrend: { default: null },
|
|
279
283
|
secondaryTrendDirection: { default: "positive" },
|
|
284
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
280
285
|
underlineTooltipText: { default: null }
|
|
281
286
|
},
|
|
282
|
-
setup(
|
|
283
|
-
const
|
|
284
|
-
return (e,
|
|
287
|
+
setup(i) {
|
|
288
|
+
const d = T(), a = _(d);
|
|
289
|
+
return (e, p) => (r(), c(t(k), {
|
|
285
290
|
"item-type": "numeric",
|
|
286
291
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
287
292
|
title: e.title,
|
|
@@ -292,32 +297,33 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
292
297
|
"trend-direction": e.trendDirection,
|
|
293
298
|
"secondary-trend": e.secondaryTrend,
|
|
294
299
|
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
300
|
+
"underline-popover-size": e.underlinePopoverSize,
|
|
295
301
|
"underline-tooltip-text": e.underlineTooltipText,
|
|
296
302
|
class: "b-summary-grid-item-numeric"
|
|
297
303
|
}, h({
|
|
298
304
|
default: o(() => [
|
|
299
|
-
f(" " +
|
|
305
|
+
f(" " + m(e.label) + " ", 1)
|
|
300
306
|
]),
|
|
301
307
|
_: 2
|
|
302
308
|
}, [
|
|
303
|
-
t(
|
|
309
|
+
t(a)("dashed-underline") ? {
|
|
304
310
|
name: "dashed-underline",
|
|
305
311
|
fn: o(() => [
|
|
306
|
-
|
|
312
|
+
s(e.$slots, "dashed-underline")
|
|
307
313
|
]),
|
|
308
314
|
key: "0"
|
|
309
315
|
} : void 0,
|
|
310
316
|
e.secondaryMetric ? {
|
|
311
317
|
name: "secondary",
|
|
312
318
|
fn: o(() => [
|
|
313
|
-
f(
|
|
319
|
+
f(m(e.secondaryMetric), 1)
|
|
314
320
|
]),
|
|
315
321
|
key: "1"
|
|
316
322
|
} : void 0
|
|
317
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]));
|
|
323
|
+
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-popover-size", "underline-tooltip-text"]));
|
|
318
324
|
}
|
|
319
|
-
}),
|
|
320
|
-
...
|
|
325
|
+
}), me = {}, Pe = /* @__PURE__ */ v({
|
|
326
|
+
...me,
|
|
321
327
|
__name: "summary-grid-item-percentage",
|
|
322
328
|
props: {
|
|
323
329
|
label: {},
|
|
@@ -331,11 +337,12 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
331
337
|
trendDirection: { default: "positive" },
|
|
332
338
|
secondaryTrend: { default: null },
|
|
333
339
|
secondaryTrendDirection: { default: "positive" },
|
|
340
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
334
341
|
underlineTooltipText: { default: null }
|
|
335
342
|
},
|
|
336
|
-
setup(
|
|
337
|
-
const
|
|
338
|
-
return (e,
|
|
343
|
+
setup(i) {
|
|
344
|
+
const d = T(), a = _(d);
|
|
345
|
+
return (e, p) => (r(), c(t(k), {
|
|
339
346
|
"item-type": "percentage",
|
|
340
347
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
341
348
|
title: e.title,
|
|
@@ -346,31 +353,32 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
346
353
|
"trend-direction": e.trendDirection,
|
|
347
354
|
"secondary-trend": e.secondaryTrend,
|
|
348
355
|
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
356
|
+
"underline-popover-size": e.underlinePopoverSize,
|
|
349
357
|
"underline-tooltip-text": e.underlineTooltipText,
|
|
350
358
|
class: "b-summary-grid-item-percentage"
|
|
351
359
|
}, h({
|
|
352
360
|
default: o(() => [
|
|
353
|
-
f(" " +
|
|
361
|
+
f(" " + m(e.label) + "% ", 1)
|
|
354
362
|
]),
|
|
355
363
|
_: 2
|
|
356
364
|
}, [
|
|
357
|
-
t(
|
|
365
|
+
t(a)("dashed-underline") ? {
|
|
358
366
|
name: "dashed-underline",
|
|
359
367
|
fn: o(() => [
|
|
360
|
-
|
|
368
|
+
s(e.$slots, "dashed-underline")
|
|
361
369
|
]),
|
|
362
370
|
key: "0"
|
|
363
371
|
} : void 0,
|
|
364
372
|
e.secondaryMetric ? {
|
|
365
373
|
name: "secondary",
|
|
366
374
|
fn: o(() => [
|
|
367
|
-
f(
|
|
375
|
+
f(m(e.secondaryMetric) + "% ", 1)
|
|
368
376
|
]),
|
|
369
377
|
key: "1"
|
|
370
378
|
} : void 0
|
|
371
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]));
|
|
379
|
+
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-popover-size", "underline-tooltip-text"]));
|
|
372
380
|
}
|
|
373
|
-
}), fe = {},
|
|
381
|
+
}), fe = {}, Ee = /* @__PURE__ */ v({
|
|
374
382
|
...fe,
|
|
375
383
|
__name: "summary-grid-item-text",
|
|
376
384
|
props: {
|
|
@@ -379,34 +387,36 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
379
387
|
infoIconTooltipText: { default: null },
|
|
380
388
|
label: {},
|
|
381
389
|
title: {},
|
|
390
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
382
391
|
underlineTooltipText: { default: null }
|
|
383
392
|
},
|
|
384
|
-
setup(
|
|
385
|
-
const
|
|
386
|
-
return (e,
|
|
393
|
+
setup(i) {
|
|
394
|
+
const d = T(), a = _(d);
|
|
395
|
+
return (e, p) => (r(), c(t(k), {
|
|
387
396
|
"item-type": "text",
|
|
388
397
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
389
398
|
title: e.title,
|
|
390
399
|
copy: e.copy,
|
|
391
400
|
"fit-content": e.fitContent,
|
|
401
|
+
"underline-popover-size": e.underlinePopoverSize,
|
|
392
402
|
"underline-tooltip-text": e.underlineTooltipText,
|
|
393
403
|
class: "b-summary-grid-item-text"
|
|
394
404
|
}, h({
|
|
395
405
|
default: o(() => [
|
|
396
|
-
f(" " +
|
|
406
|
+
f(" " + m(e.label), 1)
|
|
397
407
|
]),
|
|
398
408
|
_: 2
|
|
399
409
|
}, [
|
|
400
|
-
t(
|
|
410
|
+
t(a)("dashed-underline") ? {
|
|
401
411
|
name: "dashed-underline",
|
|
402
412
|
fn: o(() => [
|
|
403
|
-
|
|
413
|
+
s(e.$slots, "dashed-underline")
|
|
404
414
|
]),
|
|
405
415
|
key: "0"
|
|
406
416
|
} : void 0
|
|
407
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "underline-tooltip-text"]));
|
|
417
|
+
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "underline-popover-size", "underline-tooltip-text"]));
|
|
408
418
|
}
|
|
409
|
-
}), ye = {},
|
|
419
|
+
}), ye = {}, Le = /* @__PURE__ */ v({
|
|
410
420
|
...ye,
|
|
411
421
|
__name: "summary-grid-item-custom",
|
|
412
422
|
props: {
|
|
@@ -414,41 +424,43 @@ const te = { class: "b-summary-grid" }, oe = {}, ne = /* @__PURE__ */ v({
|
|
|
414
424
|
infoIconTooltipText: { default: null },
|
|
415
425
|
title: {},
|
|
416
426
|
fitContent: { type: Boolean, default: !1 },
|
|
427
|
+
underlinePopoverSize: { default: "fit-content" },
|
|
417
428
|
underlineTooltipText: { default: null }
|
|
418
429
|
},
|
|
419
|
-
setup(
|
|
420
|
-
const
|
|
421
|
-
return (e,
|
|
430
|
+
setup(i) {
|
|
431
|
+
const d = T(), a = _(d);
|
|
432
|
+
return (e, p) => (r(), c(k, {
|
|
422
433
|
title: e.title,
|
|
423
434
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
424
435
|
copy: e.copy,
|
|
425
436
|
"fit-content": e.fitContent,
|
|
437
|
+
"underline-popover-size": e.underlinePopoverSize,
|
|
426
438
|
"underline-tooltip-text": e.underlineTooltipText
|
|
427
439
|
}, h({
|
|
428
440
|
default: o(() => [
|
|
429
|
-
|
|
441
|
+
s(e.$slots, "default")
|
|
430
442
|
]),
|
|
431
443
|
_: 2
|
|
432
444
|
}, [
|
|
433
|
-
t(
|
|
445
|
+
t(a)("dashed-underline") ? {
|
|
434
446
|
name: "dashed-underline",
|
|
435
447
|
fn: o(() => [
|
|
436
|
-
|
|
448
|
+
s(e.$slots, "dashed-underline")
|
|
437
449
|
]),
|
|
438
450
|
key: "0"
|
|
439
451
|
} : void 0
|
|
440
|
-
]), 1032, ["title", "info-icon-tooltip-text", "copy", "fit-content", "underline-tooltip-text"]));
|
|
452
|
+
]), 1032, ["title", "info-icon-tooltip-text", "copy", "fit-content", "underline-popover-size", "underline-tooltip-text"]));
|
|
441
453
|
}
|
|
442
454
|
});
|
|
443
|
-
var ve = /* @__PURE__ */ ((
|
|
455
|
+
var ve = /* @__PURE__ */ ((i) => (i.SMALL = "small", i.MEDIUM = "medium", i.LARGE = "large", i))(ve || {}), Te = /* @__PURE__ */ ((i) => (i.POSITIVE = "positive", i.NEGATIVE = "negative", i.NEUTRAL = "neutral", i))(Te || {});
|
|
444
456
|
export {
|
|
445
457
|
ve as B,
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
458
|
+
we as _,
|
|
459
|
+
Be as a,
|
|
460
|
+
Pe as b,
|
|
461
|
+
Ee as c,
|
|
462
|
+
Le as d,
|
|
451
463
|
Te as e,
|
|
452
|
-
|
|
464
|
+
Me as s
|
|
453
465
|
};
|
|
454
|
-
//# sourceMappingURL=summary-grid.types.
|
|
466
|
+
//# sourceMappingURL=summary-grid.types.lGX16F4w.js.map
|