@adyen/bento-vue3 1.53.0 → 1.54.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 +1851 -2155
- package/dist/action-bar.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-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.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/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid.css +1 -0
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.PIz6tShf.js → action-bar.CUDi5Po7.js} +5 -5
- package/dist/chunks/{action-bar.PIz6tShf.js.map → action-bar.CUDi5Po7.js.map} +1 -1
- package/dist/chunks/{base-modal.D4INiJGX.js → base-modal.BegK8cPb.js} +3 -3
- package/dist/chunks/{base-modal.D4INiJGX.js.map → base-modal.BegK8cPb.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DFD7gbdT.js → button-actions-with-menu.CcoKss9T.js} +5 -5
- package/dist/chunks/{button-actions-with-menu.DFD7gbdT.js.map → button-actions-with-menu.CcoKss9T.js.map} +1 -1
- package/dist/chunks/{button-actions.BvGAE7sw.js → button-actions.CdlXZ29B.js} +59 -117
- package/dist/chunks/{button-actions.BvGAE7sw.js.map → button-actions.CdlXZ29B.js.map} +1 -1
- package/dist/chunks/{calendar.DKHNrb9_.js → calendar.BRsV4rkQ.js} +72 -72
- package/dist/chunks/{calendar.DKHNrb9_.js.map → calendar.BRsV4rkQ.js.map} +1 -1
- package/dist/chunks/{card.IrL_Fw-f.js → card.C5bSqYsB.js} +2 -2
- package/dist/chunks/{card.IrL_Fw-f.js.map → card.C5bSqYsB.js.map} +1 -1
- package/dist/chunks/{checkbox-group.X2fi2jkS.js → checkbox-group.EPDS2n3a.js} +4 -4
- package/dist/chunks/{checkbox-group.X2fi2jkS.js.map → checkbox-group.EPDS2n3a.js.map} +1 -1
- package/dist/chunks/{checkbox.CXZQtFhM.js → checkbox.Z2Jeglk-.js} +52 -52
- package/dist/chunks/checkbox.Z2Jeglk-.js.map +1 -0
- package/dist/chunks/{code-snippet.CcdsPxT7.js → code-snippet.zdidL9RT.js} +5 -5
- package/dist/chunks/{code-snippet.CcdsPxT7.js.map → code-snippet.zdidL9RT.js.map} +1 -1
- package/dist/chunks/{controls-group.ClMNznTz.js → controls-group.DcbOWqxA.js} +2 -2
- package/dist/chunks/{controls-group.ClMNznTz.js.map → controls-group.DcbOWqxA.js.map} +1 -1
- package/dist/chunks/{copy.BYG9aoNO.js → copy.CFhrpASp.js} +2 -2
- package/dist/chunks/{copy.BYG9aoNO.js.map → copy.CFhrpASp.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Dz9GpOvy.js → dashboard-section.DpL72ax7.js} +4 -4
- package/dist/chunks/{dashboard-section.Dz9GpOvy.js.map → dashboard-section.DpL72ax7.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BuCIjMch.js → dashed-underline.BYAXhfnX.js} +3 -3
- package/dist/chunks/{dashed-underline.BuCIjMch.js.map → dashed-underline.BYAXhfnX.js.map} +1 -1
- package/dist/chunks/{data-grid-template.B4jxtwoW.js → data-grid-template.CJxPIu3E.js} +3 -3
- package/dist/chunks/{data-grid-template.B4jxtwoW.js.map → data-grid-template.CJxPIu3E.js.map} +1 -1
- package/dist/chunks/{data-grid.CLu8mvil.js → data-grid.i-NPmpso.js} +15 -15
- package/dist/chunks/data-grid.i-NPmpso.js.map +1 -0
- package/dist/chunks/{date-picker.CA2i6QxD.js → date-picker.wesQox8h.js} +17 -17
- package/dist/chunks/{date-picker.CA2i6QxD.js.map → date-picker.wesQox8h.js.map} +1 -1
- package/dist/chunks/{date-range-picker.DVQ-j-JX.js → date-range-picker.V6QCtfnc.js} +26 -26
- package/dist/chunks/{date-range-picker.DVQ-j-JX.js.map → date-range-picker.V6QCtfnc.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DFWV7Zj_.js → dropdown-tag.D8wU10wx.js} +4 -4
- package/dist/chunks/{dropdown-tag.DFWV7Zj_.js.map → dropdown-tag.D8wU10wx.js.map} +1 -1
- package/dist/chunks/{dropdown.RVt9T6j5.js → dropdown.DQunMieR.js} +138 -139
- package/dist/chunks/{dropdown.RVt9T6j5.js.map → dropdown.DQunMieR.js.map} +1 -1
- package/dist/chunks/{error-message.BQ5MlnLg.js → error-message.DH8Er2JS.js} +2 -2
- package/dist/chunks/{error-message.BQ5MlnLg.js.map → error-message.DH8Er2JS.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.DJLGEmtF.js → file-uploader.Rtt1Uz2U.js} +592 -540
- package/dist/chunks/file-uploader.Rtt1Uz2U.js.map +1 -0
- package/dist/chunks/{filter-bar.GGHRoo6O.js → filter-bar.DW7lAAtF.js} +697 -689
- package/dist/chunks/filter-bar.DW7lAAtF.js.map +1 -0
- package/dist/chunks/{focus-trap.D-HSKa_Q.js → focus-trap.BFCzfiI_.js} +2 -2
- package/dist/chunks/{focus-trap.D-HSKa_Q.js.map → focus-trap.BFCzfiI_.js.map} +1 -1
- package/dist/chunks/{footer-actions.DK3pMfDY.js → footer-actions.A9H5F5D-.js} +2 -2
- package/dist/chunks/{footer-actions.DK3pMfDY.js.map → footer-actions.A9H5F5D-.js.map} +1 -1
- package/dist/chunks/{header-with-views.BkcFu7QW.js → header-with-views.D2B-20ZR.js} +11 -11
- package/dist/chunks/{header-with-views.BkcFu7QW.js.map → header-with-views.D2B-20ZR.js.map} +1 -1
- package/dist/chunks/{header.CyTcPWF4.js → header.CoyUQXFL.js} +4 -4
- package/dist/chunks/{header.CyTcPWF4.js.map → header.CoyUQXFL.js.map} +1 -1
- package/dist/chunks/{index.C5sL_d0I.js → index.BzJQl-2M.js} +3 -3
- package/dist/chunks/{index.C5sL_d0I.js.map → index.BzJQl-2M.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DgZh2mnN.js → info-icon-with-popover.CBi7CmUZ.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.DgZh2mnN.js.map → info-icon-with-popover.CBi7CmUZ.js.map} +1 -1
- package/dist/chunks/{info-icon.DxOAiUg4.js → info-icon.Bomzzcc5.js} +2 -2
- package/dist/chunks/{info-icon.DxOAiUg4.js.map → info-icon.Bomzzcc5.js.map} +1 -1
- package/dist/chunks/input-field-password.DMEjy243.js +343 -0
- package/dist/chunks/input-field-password.DMEjy243.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.BtRMkC84.js → input-field-phone-number.DhJznFQP.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BtRMkC84.js.map → input-field-phone-number.DhJznFQP.js.map} +1 -1
- package/dist/chunks/{input-field.CRlXtS3z.js → input-field.B9AU1IsG.js} +3 -3
- package/dist/chunks/{input-field.CRlXtS3z.js.map → input-field.B9AU1IsG.js.map} +1 -1
- package/dist/chunks/inspector.types.Fs9URmPq.js +188 -0
- package/dist/chunks/inspector.types.Fs9URmPq.js.map +1 -0
- package/dist/chunks/{layout-row.CwwbWO7s.js → layout-row.BC3Z1mQx.js} +2 -2
- package/dist/chunks/{layout-row.CwwbWO7s.js.map → layout-row.BC3Z1mQx.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.2k0hRv0z.js → listbox-option-tag.CqnkZr9x.js} +2 -2
- package/dist/chunks/{listbox-option-tag.2k0hRv0z.js.map → listbox-option-tag.CqnkZr9x.js.map} +1 -1
- package/dist/chunks/{menu.DBRBVdsd.js → menu.P_KG1J8b.js} +2 -2
- package/dist/chunks/{menu.DBRBVdsd.js.map → menu.P_KG1J8b.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.POY-6qYC.js → modal-fullscreen.DxuMKagz.js} +3 -3
- package/dist/chunks/{modal-fullscreen.POY-6qYC.js.map → modal-fullscreen.DxuMKagz.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js → modal.vue_vue_type_script_setup_true_lang.DfzxXSwn.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js.map → modal.vue_vue_type_script_setup_true_lang.DfzxXSwn.js.map} +1 -1
- package/dist/chunks/{pagination.TWtayPVy.js → pagination.DsEd-vpq.js} +3 -3
- package/dist/chunks/{pagination.TWtayPVy.js.map → pagination.DsEd-vpq.js.map} +1 -1
- package/dist/chunks/{payment-method.CLUppDo_.js → payment-method.eazefwm6.js} +9 -9
- package/dist/chunks/payment-method.eazefwm6.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
- package/dist/chunks/{popover.BBnUL5Y_.js → popover.Csq1gQ6T.js} +3 -3
- package/dist/chunks/{popover.BBnUL5Y_.js.map → popover.Csq1gQ6T.js.map} +1 -1
- package/dist/chunks/{popper-container.Be3h7X17.js → popper-container.DnlxQ9eS.js} +2 -2
- package/dist/chunks/{popper-container.Be3h7X17.js.map → popper-container.DnlxQ9eS.js.map} +1 -1
- package/dist/chunks/{promo-banner.BdaUFMsl.js → promo-banner.CN-TTSov.js} +2 -2
- package/dist/chunks/{promo-banner.BdaUFMsl.js.map → promo-banner.CN-TTSov.js.map} +1 -1
- package/dist/chunks/{radio-group.BUazlUAi.js → radio-group.Vm-hmL1q.js} +4 -4
- package/dist/chunks/{radio-group.BUazlUAi.js.map → radio-group.Vm-hmL1q.js.map} +1 -1
- package/dist/chunks/{search-bar.21CWuOHb.js → search-bar.BBV1KNdd.js} +3 -3
- package/dist/chunks/{search-bar.21CWuOHb.js.map → search-bar.BBV1KNdd.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CUQi4Ybt.js → secondary-nav.O2R1ltD9.js} +3 -3
- package/dist/chunks/{secondary-nav.CUQi4Ybt.js.map → secondary-nav.O2R1ltD9.js.map} +1 -1
- package/dist/chunks/{segmented-control.BZJ9DzRF.js → segmented-control.DBy-nbYM.js} +2 -2
- package/dist/chunks/{segmented-control.BZJ9DzRF.js.map → segmented-control.DBy-nbYM.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Bdrx1b6M.js → selection-card-group.Bt4jBqjc.js} +4 -4
- package/dist/chunks/{selection-card-group.Bdrx1b6M.js.map → selection-card-group.Bt4jBqjc.js.map} +1 -1
- package/dist/chunks/{sidepanel.D_bGUcyi.js → sidepanel.Ds2CCG9L.js} +3 -3
- package/dist/chunks/{sidepanel.D_bGUcyi.js.map → sidepanel.Ds2CCG9L.js.map} +1 -1
- package/dist/chunks/{structured-list-item.r1jYiX6Y.js → structured-list-item.CygGTBVl.js} +4 -4
- package/dist/chunks/{structured-list-item.r1jYiX6Y.js.map → structured-list-item.CygGTBVl.js.map} +1 -1
- package/dist/chunks/summary-grid.types.DzvuP-NU.js +454 -0
- package/dist/chunks/summary-grid.types.DzvuP-NU.js.map +1 -0
- package/dist/chunks/tabs.B8BRqQpv.js +272 -0
- package/dist/chunks/tabs.B8BRqQpv.js.map +1 -0
- package/dist/chunks/{tag.DVkBzXMx.js → tag.C4SGN5Eb.js} +2 -2
- package/dist/chunks/{tag.DVkBzXMx.js.map → tag.C4SGN5Eb.js.map} +1 -1
- package/dist/chunks/{textarea.C8R71Q4l.js → textarea.bQwvvIkq.js} +103 -95
- package/dist/chunks/textarea.bQwvvIkq.js.map +1 -0
- package/dist/chunks/{timeline-item.DBeAlt3N.js → timeline-item.Bxt_pNII.js} +5 -5
- package/dist/chunks/{timeline-item.DBeAlt3N.js.map → timeline-item.Bxt_pNII.js.map} +1 -1
- package/dist/chunks/{tooltip.Cbs_YIap.js → tooltip.CyQxprBQ.js} +2 -2
- package/dist/chunks/{tooltip.Cbs_YIap.js.map → tooltip.CyQxprBQ.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js → tutorial.vue_vue_type_script_setup_true_lang.BtVT3Ltg.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js.map → tutorial.vue_vue_type_script_setup_true_lang.BtVT3Ltg.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Chb18cq_.js → use-cached-selected-values.DmW8XRgJ.js} +135 -135
- package/dist/chunks/{use-cached-selected-values.Chb18cq_.js.map → use-cached-selected-values.DmW8XRgJ.js.map} +1 -1
- package/dist/code-snippet.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/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +61 -61
- package/dist/info-icon.js +1 -1
- 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 +10 -10
- package/dist/layout.js +1 -1
- 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/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.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/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +42 -16
- package/dist/styles/bento-light.css +42 -16
- package/dist/styles/bento.css +42 -16
- package/dist/styles/legacy.css +30 -4
- package/dist/styles/styleguide.css +42 -16
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/assets/summary-grid-item-custom.css +0 -1
- package/dist/chunks/checkbox.CXZQtFhM.js.map +0 -1
- package/dist/chunks/data-grid.CLu8mvil.js.map +0 -1
- package/dist/chunks/file-uploader.DJLGEmtF.js.map +0 -1
- package/dist/chunks/filter-bar.GGHRoo6O.js.map +0 -1
- package/dist/chunks/input-field-password.BSJMbPHf.js +0 -313
- package/dist/chunks/input-field-password.BSJMbPHf.js.map +0 -1
- package/dist/chunks/inspector.types.s0va--Nn.js +0 -184
- package/dist/chunks/inspector.types.s0va--Nn.js.map +0 -1
- package/dist/chunks/payment-method.CLUppDo_.js.map +0 -1
- package/dist/chunks/payment-method.types.CJKfZQN5.js +0 -5
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.ACP0RH0N.js +0 -826
- package/dist/chunks/summary-grid-item-custom.ACP0RH0N.js.map +0 -1
- package/dist/chunks/tabs.hp52NnXH.js +0 -211
- package/dist/chunks/tabs.hp52NnXH.js.map +0 -1
- package/dist/chunks/textarea.C8R71Q4l.js.map +0 -1
|
@@ -1,826 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, provide as D, toRef as q, resolveComponent as m, createElementBlock as _, openBlock as a, Fragment as R, renderList as Y, createBlock as p, createSlots as h, withCtx as o, renderSlot as l, toRefs as Z, inject as H, ref as W, computed as S, normalizeStyle as X, normalizeClass as F, createElementVNode as L, createVNode as B, createCommentVNode as I, createTextVNode as T, toDisplayString as y, mergeProps as J } from "vue";
|
|
2
|
-
import { u as $ } from "./use-has-slot.B7eQSabc.js";
|
|
3
|
-
import { S as K, a as w } from "./summary-grid.keys.CxTf_FOc.js";
|
|
4
|
-
import { G as Q } from "./grid-layout.BTLE3rac.js";
|
|
5
|
-
import { _ as b } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { B as x } from "./dashed-underline.BuCIjMch.js";
|
|
7
|
-
import { B as ee } from "./info-icon.DxOAiUg4.js";
|
|
8
|
-
import { B as te, a as A } from "./typography.DN5eC5ch.js";
|
|
9
|
-
import { B as ne, a as M } from "./tag.DVkBzXMx.js";
|
|
10
|
-
import { C as oe } from "./copy.BYG9aoNO.js";
|
|
11
|
-
import "../assets/summary-grid-item-custom.css";
|
|
12
|
-
const re = v({
|
|
13
|
-
name: "bento-summary-grid",
|
|
14
|
-
components: { GridLayout: Q },
|
|
15
|
-
props: {
|
|
16
|
-
/**
|
|
17
|
-
* Sets the responsive columns widths values for 1 of the 3 rows.
|
|
18
|
-
*/
|
|
19
|
-
columnWidth: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: null
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
25
|
-
*/
|
|
26
|
-
slashedZero: { type: Boolean, default: !1 }
|
|
27
|
-
},
|
|
28
|
-
setup(e, { slots: n }) {
|
|
29
|
-
var c, d;
|
|
30
|
-
let u = 1;
|
|
31
|
-
if (n) {
|
|
32
|
-
const i = (d = (c = Object.keys(n)) == null ? void 0 : c.filter((t) => t.includes("cell-"))) == null ? void 0 : d.map((t) => {
|
|
33
|
-
var g;
|
|
34
|
-
return parseInt((g = t.split("-")) == null ? void 0 : g[1], 10);
|
|
35
|
-
});
|
|
36
|
-
if (u = Math.max(...i), u > 3)
|
|
37
|
-
throw new Error(
|
|
38
|
-
"BentoSummaryGrid must only have a maximum of 3 rows. Read the documentation for more information."
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
return D(K, () => ({ isSummaryGridLayout: !0 })), D(w, q(e, "slashedZero")), {
|
|
42
|
-
hasSlot: $(n),
|
|
43
|
-
numberOfRows: u
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}), ie = { class: "b-summary-grid" };
|
|
47
|
-
function ae(e, n, u, f, c, d) {
|
|
48
|
-
const i = m("grid-layout");
|
|
49
|
-
return a(), _("div", ie, [
|
|
50
|
-
(a(!0), _(R, null, Y(e.numberOfRows, (t) => {
|
|
51
|
-
var g;
|
|
52
|
-
return a(), p(i, {
|
|
53
|
-
key: `summary-grid-row-${t}`,
|
|
54
|
-
"data-testid": `summary-grid-row-${t}`,
|
|
55
|
-
"column-width": (g = e.columnWidth) == null ? void 0 : g[`row${t}`]
|
|
56
|
-
}, h({ _: 2 }, [
|
|
57
|
-
e.hasSlot(`cell-${t}-1`) ? {
|
|
58
|
-
name: "col-1",
|
|
59
|
-
fn: o(() => [
|
|
60
|
-
l(e.$slots, `cell-${t}-1`, {}, void 0, !0)
|
|
61
|
-
]),
|
|
62
|
-
key: "0"
|
|
63
|
-
} : void 0,
|
|
64
|
-
e.hasSlot(`cell-${t}-2`) ? {
|
|
65
|
-
name: "col-2",
|
|
66
|
-
fn: o(() => [
|
|
67
|
-
l(e.$slots, `cell-${t}-2`, {}, void 0, !0)
|
|
68
|
-
]),
|
|
69
|
-
key: "1"
|
|
70
|
-
} : void 0,
|
|
71
|
-
e.hasSlot(`cell-${t}-3`) ? {
|
|
72
|
-
name: "col-3",
|
|
73
|
-
fn: o(() => [
|
|
74
|
-
l(e.$slots, `cell-${t}-3`, {}, void 0, !0)
|
|
75
|
-
]),
|
|
76
|
-
key: "2"
|
|
77
|
-
} : void 0,
|
|
78
|
-
e.hasSlot(`cell-${t}-4`) ? {
|
|
79
|
-
name: "col-4",
|
|
80
|
-
fn: o(() => [
|
|
81
|
-
l(e.$slots, `cell-${t}-4`, {}, void 0, !0)
|
|
82
|
-
]),
|
|
83
|
-
key: "3"
|
|
84
|
-
} : void 0,
|
|
85
|
-
e.hasSlot(`cell-${t}-5`) ? {
|
|
86
|
-
name: "col-5",
|
|
87
|
-
fn: o(() => [
|
|
88
|
-
l(e.$slots, `cell-${t}-5`, {}, void 0, !0)
|
|
89
|
-
]),
|
|
90
|
-
key: "4"
|
|
91
|
-
} : void 0,
|
|
92
|
-
e.hasSlot(`cell-${t}-6`) ? {
|
|
93
|
-
name: "col-6",
|
|
94
|
-
fn: o(() => [
|
|
95
|
-
l(e.$slots, `cell-${t}-6`, {}, void 0, !0)
|
|
96
|
-
]),
|
|
97
|
-
key: "5"
|
|
98
|
-
} : void 0
|
|
99
|
-
]), 1032, ["data-testid", "column-width"]);
|
|
100
|
-
}), 128))
|
|
101
|
-
]);
|
|
102
|
-
}
|
|
103
|
-
const Be = /* @__PURE__ */ b(re, [["render", ae], ["__scopeId", "data-v-0a9985aa"]]);
|
|
104
|
-
var s = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(s || {}), r = /* @__PURE__ */ ((e) => (e.POSITIVE = "positive", e.NEGATIVE = "negative", e.NEUTRAL = "neutral", e))(r || {}), O = /* @__PURE__ */ ((e) => (e.AMOUNT = "amount", e.PERCENTAGE = "percentage", e.NUMERIC = "numeric", e.TEXT = "text", e.CUSTOM = "custom", e))(O || {});
|
|
105
|
-
const le = v({
|
|
106
|
-
name: "summary-grid-item",
|
|
107
|
-
components: { BentoDashedUnderline: x, BentoInfoIcon: ee, BentoTypography: te, BentoTag: ne, Copy: oe },
|
|
108
|
-
props: {
|
|
109
|
-
/**
|
|
110
|
-
* Text to copy to the clipboard
|
|
111
|
-
*/
|
|
112
|
-
copy: { type: String, default: void 0 },
|
|
113
|
-
/**
|
|
114
|
-
* Applies styling based on content type
|
|
115
|
-
*/
|
|
116
|
-
// TODO add text truncation for SummaryGridItemType.TEXT
|
|
117
|
-
itemType: {
|
|
118
|
-
type: String,
|
|
119
|
-
default: O.CUSTOM,
|
|
120
|
-
validator: (e) => Object.values(O).includes(e)
|
|
121
|
-
},
|
|
122
|
-
/**
|
|
123
|
-
* Text showed in the info-icon tooltip on hover
|
|
124
|
-
*/
|
|
125
|
-
infoIconTooltipText: { type: String, default: null },
|
|
126
|
-
/**
|
|
127
|
-
* Text used as a title
|
|
128
|
-
*/
|
|
129
|
-
title: { type: String, required: !0 },
|
|
130
|
-
/**
|
|
131
|
-
* The width of `summary-grid-item` fits its content
|
|
132
|
-
*/
|
|
133
|
-
fitContent: { type: Boolean, default: !1 },
|
|
134
|
-
// amount, percentage and numeric props
|
|
135
|
-
/**
|
|
136
|
-
* Defines the size of the `summary-grid-item` text content
|
|
137
|
-
*/
|
|
138
|
-
// TODO implement logic for Large size
|
|
139
|
-
size: {
|
|
140
|
-
type: String,
|
|
141
|
-
default: s.SMALL,
|
|
142
|
-
validator: (e) => Object.values(s).includes(e)
|
|
143
|
-
},
|
|
144
|
-
/**
|
|
145
|
-
* Shows colored trend label next to text content
|
|
146
|
-
*/
|
|
147
|
-
trend: {
|
|
148
|
-
type: String,
|
|
149
|
-
default: null
|
|
150
|
-
},
|
|
151
|
-
/**
|
|
152
|
-
* Defines the color of trend label
|
|
153
|
-
*/
|
|
154
|
-
trendDirection: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: r.POSITIVE,
|
|
157
|
-
validator: (e) => Object.values(r).includes(e)
|
|
158
|
-
},
|
|
159
|
-
/**
|
|
160
|
-
* Shows colored trend tag next to secondary metric value
|
|
161
|
-
*/
|
|
162
|
-
secondaryTrend: {
|
|
163
|
-
type: String,
|
|
164
|
-
default: null
|
|
165
|
-
},
|
|
166
|
-
/**
|
|
167
|
-
* Defines the color of secondary trend tag
|
|
168
|
-
*/
|
|
169
|
-
secondaryTrendDirection: {
|
|
170
|
-
type: String,
|
|
171
|
-
default: r.POSITIVE,
|
|
172
|
-
validator: (e) => Object.values(r).includes(e)
|
|
173
|
-
},
|
|
174
|
-
/**
|
|
175
|
-
* Text showed in a dashed-underline title tooltip on hover
|
|
176
|
-
*/
|
|
177
|
-
underlineTooltipText: { type: String, default: null }
|
|
178
|
-
},
|
|
179
|
-
setup(e, { slots: n }) {
|
|
180
|
-
const { trendDirection: u, secondaryTrendDirection: f, itemType: c, size: d } = Z(e), i = H(w, W(!1)), t = (U) => {
|
|
181
|
-
switch (U) {
|
|
182
|
-
case r.POSITIVE:
|
|
183
|
-
return M.GREEN;
|
|
184
|
-
case r.NEGATIVE:
|
|
185
|
-
return M.RED;
|
|
186
|
-
default:
|
|
187
|
-
return M.BLUE;
|
|
188
|
-
}
|
|
189
|
-
}, g = S(() => t(u.value)), k = S(() => t(f.value)), C = S(() => d.value === s.SMALL ? A.BODY : c.value !== O.TEXT ? A.TITLE : null), j = S(() => ({
|
|
190
|
-
medium: d.value === s.LARGE,
|
|
191
|
-
strongest: d.value === s.SMALL,
|
|
192
|
-
wide: d.value === s.SMALL,
|
|
193
|
-
variant: C.value
|
|
194
|
-
})), z = S(() => e.fitContent ? { width: "fit-content" } : {}), P = S(() => ({ "b-summary-grid-item--slashed-zero": i.value })), G = S(() => ({
|
|
195
|
-
[`b-summary-grid-item__content-trend--${e.trend}`]: e.trend
|
|
196
|
-
})), V = $(n), N = S(() => e.underlineTooltipText || V("dashed-underline"));
|
|
197
|
-
return {
|
|
198
|
-
// Values
|
|
199
|
-
trendVariant: g,
|
|
200
|
-
secondaryTrendVariant: k,
|
|
201
|
-
typographyProps: j,
|
|
202
|
-
withUnderline: N,
|
|
203
|
-
// Styles
|
|
204
|
-
conditionalClasses: P,
|
|
205
|
-
computedStyles: z,
|
|
206
|
-
summaryBarItemTrendConditionalClasses: G,
|
|
207
|
-
// Utils
|
|
208
|
-
hasSlot: V
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}), de = { class: "b-summary-grid-item__header" }, se = { class: "b-summary-grid-item__title-icons" };
|
|
212
|
-
function ue(e, n, u, f, c, d) {
|
|
213
|
-
const i = m("bento-dashed-underline"), t = m("bento-typography"), g = m("copy"), k = m("bento-info-icon"), C = m("bento-tag");
|
|
214
|
-
return a(), _("div", {
|
|
215
|
-
class: F(["b-summary-grid-item", e.conditionalClasses]),
|
|
216
|
-
style: X(e.computedStyles)
|
|
217
|
-
}, [
|
|
218
|
-
L("div", de, [
|
|
219
|
-
B(t, {
|
|
220
|
-
class: "b-summary-grid-item__title",
|
|
221
|
-
el: "span",
|
|
222
|
-
variant: "body"
|
|
223
|
-
}, {
|
|
224
|
-
default: o(() => [
|
|
225
|
-
e.withUnderline ? (a(), p(i, {
|
|
226
|
-
key: 0,
|
|
227
|
-
"tooltip-text": e.underlineTooltipText
|
|
228
|
-
}, h({
|
|
229
|
-
default: o(() => [
|
|
230
|
-
T(y(e.title) + " ", 1)
|
|
231
|
-
]),
|
|
232
|
-
_: 2
|
|
233
|
-
}, [
|
|
234
|
-
e.hasSlot("dashed-underline") ? {
|
|
235
|
-
name: "popover-content",
|
|
236
|
-
fn: o(() => [
|
|
237
|
-
l(e.$slots, "dashed-underline", {}, void 0, !0)
|
|
238
|
-
]),
|
|
239
|
-
key: "0"
|
|
240
|
-
} : void 0
|
|
241
|
-
]), 1032, ["tooltip-text"])) : (a(), _(R, { key: 1 }, [
|
|
242
|
-
T(y(e.title), 1)
|
|
243
|
-
], 64))
|
|
244
|
-
]),
|
|
245
|
-
_: 3
|
|
246
|
-
}),
|
|
247
|
-
L("div", se, [
|
|
248
|
-
e.copy ? (a(), p(g, {
|
|
249
|
-
key: 0,
|
|
250
|
-
class: "b-structured-list__icon",
|
|
251
|
-
text: e.copy
|
|
252
|
-
}, null, 8, ["text"])) : I("", !0),
|
|
253
|
-
e.infoIconTooltipText ? (a(), p(k, {
|
|
254
|
-
key: 1,
|
|
255
|
-
"tooltip-text": e.infoIconTooltipText,
|
|
256
|
-
"tooltip-position": "top",
|
|
257
|
-
class: "b-summary-grid-item__title-tooltip"
|
|
258
|
-
}, null, 8, ["tooltip-text"])) : I("", !0)
|
|
259
|
-
])
|
|
260
|
-
]),
|
|
261
|
-
B(t, J({
|
|
262
|
-
"data-testid": "summary-grid-item-content-typography",
|
|
263
|
-
class: "b-summary-grid-item__title"
|
|
264
|
-
}, e.typographyProps, { el: "span" }), {
|
|
265
|
-
default: o(() => [
|
|
266
|
-
l(e.$slots, "default", {}, void 0, !0),
|
|
267
|
-
e.trend && e.itemType !== "text" ? (a(), p(C, {
|
|
268
|
-
key: 0,
|
|
269
|
-
variant: e.trendVariant,
|
|
270
|
-
label: e.trend,
|
|
271
|
-
class: "b-summary-grid-item__content-trend"
|
|
272
|
-
}, null, 8, ["variant", "label"])) : I("", !0)
|
|
273
|
-
]),
|
|
274
|
-
_: 3
|
|
275
|
-
}, 16),
|
|
276
|
-
e.hasSlot("secondary") ? (a(), p(t, {
|
|
277
|
-
key: 0,
|
|
278
|
-
class: "b-summary-grid-item__title",
|
|
279
|
-
"data-testid": "summary-grid-item-secondary-metric-typography",
|
|
280
|
-
el: "span",
|
|
281
|
-
variant: "caption",
|
|
282
|
-
stronger: ""
|
|
283
|
-
}, {
|
|
284
|
-
default: o(() => [
|
|
285
|
-
l(e.$slots, "secondary", {}, void 0, !0),
|
|
286
|
-
e.secondaryTrend ? (a(), p(C, {
|
|
287
|
-
key: 0,
|
|
288
|
-
variant: e.secondaryTrendVariant,
|
|
289
|
-
label: e.secondaryTrend,
|
|
290
|
-
class: "b-summary-grid-item__content-trend"
|
|
291
|
-
}, null, 8, ["variant", "label"])) : I("", !0)
|
|
292
|
-
]),
|
|
293
|
-
_: 3
|
|
294
|
-
})) : I("", !0)
|
|
295
|
-
], 6);
|
|
296
|
-
}
|
|
297
|
-
const E = /* @__PURE__ */ b(le, [["render", ue], ["__scopeId", "data-v-67400fc8"]]), pe = v({
|
|
298
|
-
name: "bento-summary-grid-item-amount",
|
|
299
|
-
components: { SummaryGridItem: E },
|
|
300
|
-
props: {
|
|
301
|
-
/**
|
|
302
|
-
* Text to copy to the clipboard
|
|
303
|
-
*/
|
|
304
|
-
copy: { type: String, default: void 0 },
|
|
305
|
-
/**
|
|
306
|
-
* Amount to be shown as the main value
|
|
307
|
-
*/
|
|
308
|
-
label: {
|
|
309
|
-
type: String,
|
|
310
|
-
required: !0
|
|
311
|
-
},
|
|
312
|
-
/**
|
|
313
|
-
* Adds additional label next to amount content
|
|
314
|
-
*/
|
|
315
|
-
secondaryLabel: {
|
|
316
|
-
type: String,
|
|
317
|
-
default: null
|
|
318
|
-
},
|
|
319
|
-
/**
|
|
320
|
-
* Amount to be shown as the secondary metric value
|
|
321
|
-
*/
|
|
322
|
-
secondaryMetric: {
|
|
323
|
-
type: String,
|
|
324
|
-
default: null
|
|
325
|
-
},
|
|
326
|
-
/**
|
|
327
|
-
* Text used as a title
|
|
328
|
-
*/
|
|
329
|
-
title: {
|
|
330
|
-
type: String,
|
|
331
|
-
required: !0
|
|
332
|
-
},
|
|
333
|
-
/**
|
|
334
|
-
* Text showed in the info-icon tooltip on hover
|
|
335
|
-
*/
|
|
336
|
-
infoIconTooltipText: {
|
|
337
|
-
type: String,
|
|
338
|
-
default: null
|
|
339
|
-
},
|
|
340
|
-
/**
|
|
341
|
-
* The width of `summary-grid-item` fits its content
|
|
342
|
-
*/
|
|
343
|
-
fitContent: {
|
|
344
|
-
type: Boolean,
|
|
345
|
-
default: !1
|
|
346
|
-
},
|
|
347
|
-
/**
|
|
348
|
-
* Shows colored trend label next to main label
|
|
349
|
-
*/
|
|
350
|
-
trend: {
|
|
351
|
-
type: String,
|
|
352
|
-
default: null
|
|
353
|
-
},
|
|
354
|
-
/**
|
|
355
|
-
* Defines the direction (color) of the trend label
|
|
356
|
-
*/
|
|
357
|
-
trendDirection: {
|
|
358
|
-
type: String,
|
|
359
|
-
default: r.POSITIVE,
|
|
360
|
-
validator: (e) => Object.values(r).includes(e)
|
|
361
|
-
},
|
|
362
|
-
/**
|
|
363
|
-
* Shows colored secondary trend tag next to the secondary metric value
|
|
364
|
-
*/
|
|
365
|
-
secondaryTrend: {
|
|
366
|
-
type: String,
|
|
367
|
-
default: null
|
|
368
|
-
},
|
|
369
|
-
/**
|
|
370
|
-
* Defines the direction (color) of the secondary metric's trend tag
|
|
371
|
-
*/
|
|
372
|
-
secondaryTrendDirection: {
|
|
373
|
-
type: String,
|
|
374
|
-
default: r.POSITIVE,
|
|
375
|
-
validator: (e) => Object.values(r).includes(e)
|
|
376
|
-
},
|
|
377
|
-
/**
|
|
378
|
-
* Defines the size of the `summary-grid-item` text content
|
|
379
|
-
*/
|
|
380
|
-
size: {
|
|
381
|
-
type: String,
|
|
382
|
-
default: s.SMALL,
|
|
383
|
-
validator: (e) => Object.values(s).includes(e)
|
|
384
|
-
},
|
|
385
|
-
/**
|
|
386
|
-
* Text showed in the info-icon tooltip on hover
|
|
387
|
-
*/
|
|
388
|
-
underlineTooltipText: { type: String, default: null }
|
|
389
|
-
},
|
|
390
|
-
setup(e, { slots: n }) {
|
|
391
|
-
return { hasSlot: $(n) };
|
|
392
|
-
}
|
|
393
|
-
}), ce = { class: "b-summary-grid-item-amount__content" }, me = {
|
|
394
|
-
key: 0,
|
|
395
|
-
class: "b-summary-grid-item-amount__secondary-label"
|
|
396
|
-
};
|
|
397
|
-
function ye(e, n, u, f, c, d) {
|
|
398
|
-
const i = m("summary-grid-item");
|
|
399
|
-
return a(), p(i, {
|
|
400
|
-
"item-type": "amount",
|
|
401
|
-
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
402
|
-
title: e.title,
|
|
403
|
-
copy: e.copy,
|
|
404
|
-
"fit-content": e.fitContent,
|
|
405
|
-
size: e.size,
|
|
406
|
-
trend: e.trend,
|
|
407
|
-
"trend-direction": e.trendDirection,
|
|
408
|
-
"secondary-trend": e.secondaryTrend,
|
|
409
|
-
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
410
|
-
"underline-tooltip-text": e.underlineTooltipText,
|
|
411
|
-
class: "b-summary-grid-item-amount"
|
|
412
|
-
}, h({
|
|
413
|
-
default: o(() => [
|
|
414
|
-
L("div", ce, [
|
|
415
|
-
L("div", null, y(e.label), 1),
|
|
416
|
-
e.secondaryLabel ? (a(), _("div", me, y(e.secondaryLabel), 1)) : I("", !0)
|
|
417
|
-
])
|
|
418
|
-
]),
|
|
419
|
-
_: 2
|
|
420
|
-
}, [
|
|
421
|
-
e.hasSlot("dashed-underline") ? {
|
|
422
|
-
name: "dashed-underline",
|
|
423
|
-
fn: o(() => [
|
|
424
|
-
l(e.$slots, "dashed-underline", {}, void 0, !0)
|
|
425
|
-
]),
|
|
426
|
-
key: "0"
|
|
427
|
-
} : void 0,
|
|
428
|
-
e.secondaryMetric ? {
|
|
429
|
-
name: "secondary",
|
|
430
|
-
fn: o(() => [
|
|
431
|
-
T(y(e.secondaryMetric), 1)
|
|
432
|
-
]),
|
|
433
|
-
key: "1"
|
|
434
|
-
} : void 0
|
|
435
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]);
|
|
436
|
-
}
|
|
437
|
-
const Ae = /* @__PURE__ */ b(pe, [["render", ye], ["__scopeId", "data-v-f4b5a860"]]), fe = v({
|
|
438
|
-
name: "bento-summary-grid-item-numeric",
|
|
439
|
-
components: { SummaryGridItem: E },
|
|
440
|
-
props: {
|
|
441
|
-
/**
|
|
442
|
-
* Text to copy to the clipboard
|
|
443
|
-
*/
|
|
444
|
-
copy: { type: String, default: void 0 },
|
|
445
|
-
/**
|
|
446
|
-
* Amount to be shown as the main value
|
|
447
|
-
*/
|
|
448
|
-
label: {
|
|
449
|
-
type: String,
|
|
450
|
-
required: !0
|
|
451
|
-
},
|
|
452
|
-
/**
|
|
453
|
-
* Amount to be shown as the secondary metric value
|
|
454
|
-
*/
|
|
455
|
-
secondaryMetric: {
|
|
456
|
-
type: String,
|
|
457
|
-
default: null
|
|
458
|
-
},
|
|
459
|
-
/**
|
|
460
|
-
* Text used as a title
|
|
461
|
-
*/
|
|
462
|
-
title: {
|
|
463
|
-
type: String,
|
|
464
|
-
required: !0
|
|
465
|
-
},
|
|
466
|
-
/**
|
|
467
|
-
* Text showed in the info-icon tooltip on hover
|
|
468
|
-
*/
|
|
469
|
-
infoIconTooltipText: {
|
|
470
|
-
type: String,
|
|
471
|
-
default: null
|
|
472
|
-
},
|
|
473
|
-
/**
|
|
474
|
-
* The width of `summary-grid-item` fits its content
|
|
475
|
-
*/
|
|
476
|
-
fitContent: {
|
|
477
|
-
type: Boolean,
|
|
478
|
-
default: !1
|
|
479
|
-
},
|
|
480
|
-
/**
|
|
481
|
-
* Shows colored trend label next to main numeric content
|
|
482
|
-
*/
|
|
483
|
-
trend: {
|
|
484
|
-
type: String,
|
|
485
|
-
default: null
|
|
486
|
-
},
|
|
487
|
-
/**
|
|
488
|
-
* Defines the direction (color) of the trend label
|
|
489
|
-
*/
|
|
490
|
-
trendDirection: {
|
|
491
|
-
type: String,
|
|
492
|
-
default: r.POSITIVE,
|
|
493
|
-
validator: (e) => Object.values(r).includes(e)
|
|
494
|
-
},
|
|
495
|
-
/**
|
|
496
|
-
* Shows colored secondary trend tag next to the secondary metric value
|
|
497
|
-
*/
|
|
498
|
-
secondaryTrend: {
|
|
499
|
-
type: String,
|
|
500
|
-
default: null
|
|
501
|
-
},
|
|
502
|
-
/**
|
|
503
|
-
* Defines the direction (color) of the secondary metric's trend tag
|
|
504
|
-
*/
|
|
505
|
-
secondaryTrendDirection: {
|
|
506
|
-
type: String,
|
|
507
|
-
default: r.POSITIVE,
|
|
508
|
-
validator: (e) => Object.values(r).includes(e)
|
|
509
|
-
},
|
|
510
|
-
/**
|
|
511
|
-
* Defines the size of the `summary-grid-item` text content
|
|
512
|
-
*/
|
|
513
|
-
size: {
|
|
514
|
-
type: String,
|
|
515
|
-
default: s.SMALL,
|
|
516
|
-
validator: (e) => Object.values(s).includes(e)
|
|
517
|
-
},
|
|
518
|
-
/**
|
|
519
|
-
* Text showed in the info-icon tooltip on hover
|
|
520
|
-
*/
|
|
521
|
-
underlineTooltipText: { type: String, default: null }
|
|
522
|
-
},
|
|
523
|
-
setup(e, { slots: n }) {
|
|
524
|
-
return { hasSlot: $(n) };
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
function ge(e, n, u, f, c, d) {
|
|
528
|
-
const i = m("summary-grid-item");
|
|
529
|
-
return a(), p(i, {
|
|
530
|
-
"item-type": "numeric",
|
|
531
|
-
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
532
|
-
title: e.title,
|
|
533
|
-
copy: e.copy,
|
|
534
|
-
"fit-content": e.fitContent,
|
|
535
|
-
size: e.size,
|
|
536
|
-
trend: e.trend,
|
|
537
|
-
"trend-direction": e.trendDirection,
|
|
538
|
-
"secondary-trend": e.secondaryTrend,
|
|
539
|
-
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
540
|
-
"underline-tooltip-text": e.underlineTooltipText,
|
|
541
|
-
class: "b-summary-grid-item-numeric"
|
|
542
|
-
}, h({
|
|
543
|
-
default: o(() => [
|
|
544
|
-
T(" " + y(e.label) + " ", 1)
|
|
545
|
-
]),
|
|
546
|
-
_: 2
|
|
547
|
-
}, [
|
|
548
|
-
e.hasSlot("dashed-underline") ? {
|
|
549
|
-
name: "dashed-underline",
|
|
550
|
-
fn: o(() => [
|
|
551
|
-
l(e.$slots, "dashed-underline")
|
|
552
|
-
]),
|
|
553
|
-
key: "0"
|
|
554
|
-
} : void 0,
|
|
555
|
-
e.secondaryMetric ? {
|
|
556
|
-
name: "secondary",
|
|
557
|
-
fn: o(() => [
|
|
558
|
-
T(y(e.secondaryMetric), 1)
|
|
559
|
-
]),
|
|
560
|
-
key: "1"
|
|
561
|
-
} : void 0
|
|
562
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]);
|
|
563
|
-
}
|
|
564
|
-
const Re = /* @__PURE__ */ b(fe, [["render", ge]]), Se = v({
|
|
565
|
-
name: "bento-summary-grid-item-percentage",
|
|
566
|
-
components: { SummaryGridItem: E },
|
|
567
|
-
props: {
|
|
568
|
-
/**
|
|
569
|
-
* Amount to be shown as the main value
|
|
570
|
-
*/
|
|
571
|
-
label: {
|
|
572
|
-
type: String,
|
|
573
|
-
required: !0
|
|
574
|
-
},
|
|
575
|
-
/**
|
|
576
|
-
* Amount to be shown as the secondary metric value
|
|
577
|
-
*/
|
|
578
|
-
secondaryMetric: {
|
|
579
|
-
type: String,
|
|
580
|
-
default: null
|
|
581
|
-
},
|
|
582
|
-
/**
|
|
583
|
-
* Text used as a title
|
|
584
|
-
*/
|
|
585
|
-
title: {
|
|
586
|
-
type: String,
|
|
587
|
-
required: !0
|
|
588
|
-
},
|
|
589
|
-
/**
|
|
590
|
-
* Text showed in the info-icon tooltip on hover
|
|
591
|
-
*/
|
|
592
|
-
infoIconTooltipText: {
|
|
593
|
-
type: String,
|
|
594
|
-
default: null
|
|
595
|
-
},
|
|
596
|
-
/**
|
|
597
|
-
* Text to copy to the clipboard
|
|
598
|
-
*/
|
|
599
|
-
copy: { type: String, default: void 0 },
|
|
600
|
-
/**
|
|
601
|
-
* The width of `summary-grid-item` fits its content
|
|
602
|
-
*/
|
|
603
|
-
fitContent: {
|
|
604
|
-
type: Boolean,
|
|
605
|
-
default: !1
|
|
606
|
-
},
|
|
607
|
-
/**
|
|
608
|
-
* Shows colored trend label next to text content
|
|
609
|
-
*/
|
|
610
|
-
trend: {
|
|
611
|
-
type: String,
|
|
612
|
-
default: void 0
|
|
613
|
-
},
|
|
614
|
-
/**
|
|
615
|
-
* Defines the direction (color) of the trend label
|
|
616
|
-
*/
|
|
617
|
-
trendDirection: {
|
|
618
|
-
type: String,
|
|
619
|
-
default: r.POSITIVE,
|
|
620
|
-
validator: (e) => Object.values(r).includes(e)
|
|
621
|
-
},
|
|
622
|
-
/**
|
|
623
|
-
* Shows colored secondary trend tag next to the secondary metric value
|
|
624
|
-
*/
|
|
625
|
-
secondaryTrend: {
|
|
626
|
-
type: String,
|
|
627
|
-
default: void 0
|
|
628
|
-
},
|
|
629
|
-
/**
|
|
630
|
-
* Defines the direction (color) of the secondary metric's trend tag
|
|
631
|
-
*/
|
|
632
|
-
secondaryTrendDirection: {
|
|
633
|
-
type: String,
|
|
634
|
-
default: r.POSITIVE,
|
|
635
|
-
validator: (e) => Object.values(r).includes(e)
|
|
636
|
-
},
|
|
637
|
-
/**
|
|
638
|
-
* Defines the size of the `summary-grid-item` text content
|
|
639
|
-
*/
|
|
640
|
-
size: {
|
|
641
|
-
type: String,
|
|
642
|
-
default: s.SMALL,
|
|
643
|
-
validator: (e) => Object.values(s).includes(e)
|
|
644
|
-
},
|
|
645
|
-
/**
|
|
646
|
-
* Text showed in the info-icon tooltip on hover
|
|
647
|
-
*/
|
|
648
|
-
underlineTooltipText: { type: String, default: null }
|
|
649
|
-
},
|
|
650
|
-
setup(e, { slots: n }) {
|
|
651
|
-
return { hasSlot: $(n) };
|
|
652
|
-
}
|
|
653
|
-
});
|
|
654
|
-
function Te(e, n, u, f, c, d) {
|
|
655
|
-
const i = m("summary-grid-item");
|
|
656
|
-
return a(), p(i, {
|
|
657
|
-
"item-type": "percentage",
|
|
658
|
-
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
659
|
-
title: e.title,
|
|
660
|
-
copy: e.copy,
|
|
661
|
-
"fit-content": e.fitContent,
|
|
662
|
-
size: e.size,
|
|
663
|
-
trend: e.trend,
|
|
664
|
-
"trend-direction": e.trendDirection,
|
|
665
|
-
"secondary-trend": e.secondaryTrend,
|
|
666
|
-
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
667
|
-
"underline-tooltip-text": e.underlineTooltipText,
|
|
668
|
-
class: "b-summary-grid-item-percentage"
|
|
669
|
-
}, h({
|
|
670
|
-
default: o(() => [
|
|
671
|
-
T(" " + y(e.label) + "% ", 1)
|
|
672
|
-
]),
|
|
673
|
-
_: 2
|
|
674
|
-
}, [
|
|
675
|
-
e.hasSlot("dashed-underline") ? {
|
|
676
|
-
name: "dashed-underline",
|
|
677
|
-
fn: o(() => [
|
|
678
|
-
l(e.$slots, "dashed-underline")
|
|
679
|
-
]),
|
|
680
|
-
key: "0"
|
|
681
|
-
} : void 0,
|
|
682
|
-
e.secondaryMetric ? {
|
|
683
|
-
name: "secondary",
|
|
684
|
-
fn: o(() => [
|
|
685
|
-
T(y(e.secondaryMetric) + "% ", 1)
|
|
686
|
-
]),
|
|
687
|
-
key: "1"
|
|
688
|
-
} : void 0
|
|
689
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]);
|
|
690
|
-
}
|
|
691
|
-
const we = /* @__PURE__ */ b(Se, [["render", Te]]), ve = v({
|
|
692
|
-
name: "bento-summary-grid-item-text",
|
|
693
|
-
components: { SummaryGridItem: E },
|
|
694
|
-
props: {
|
|
695
|
-
/**
|
|
696
|
-
* Text to copy to the clipboard
|
|
697
|
-
*/
|
|
698
|
-
copy: { type: String, default: void 0 },
|
|
699
|
-
/**
|
|
700
|
-
* Amount to be shown as the main value
|
|
701
|
-
*/
|
|
702
|
-
label: {
|
|
703
|
-
type: String,
|
|
704
|
-
required: !0
|
|
705
|
-
},
|
|
706
|
-
/**
|
|
707
|
-
* Text used as a title
|
|
708
|
-
*/
|
|
709
|
-
title: {
|
|
710
|
-
type: String,
|
|
711
|
-
required: !0
|
|
712
|
-
},
|
|
713
|
-
/**
|
|
714
|
-
* Text showed in the info-icon tooltip on hover
|
|
715
|
-
*/
|
|
716
|
-
infoIconTooltipText: {
|
|
717
|
-
type: String,
|
|
718
|
-
default: null
|
|
719
|
-
},
|
|
720
|
-
/**
|
|
721
|
-
* The width of `summary-grid-item` fits its content
|
|
722
|
-
*/
|
|
723
|
-
fitContent: {
|
|
724
|
-
type: Boolean,
|
|
725
|
-
default: !1
|
|
726
|
-
},
|
|
727
|
-
/**
|
|
728
|
-
* Text showed in the info-icon tooltip on hover
|
|
729
|
-
*/
|
|
730
|
-
underlineTooltipText: { type: String, default: null }
|
|
731
|
-
},
|
|
732
|
-
setup(e, { slots: n }) {
|
|
733
|
-
return { hasSlot: $(n) };
|
|
734
|
-
}
|
|
735
|
-
});
|
|
736
|
-
function he(e, n, u, f, c, d) {
|
|
737
|
-
const i = m("summary-grid-item");
|
|
738
|
-
return a(), p(i, {
|
|
739
|
-
"item-type": "text",
|
|
740
|
-
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
741
|
-
title: e.title,
|
|
742
|
-
copy: e.copy,
|
|
743
|
-
"fit-content": e.fitContent,
|
|
744
|
-
"underline-tooltip-text": e.underlineTooltipText,
|
|
745
|
-
class: "b-summary-grid-item-text"
|
|
746
|
-
}, h({
|
|
747
|
-
default: o(() => [
|
|
748
|
-
T(" " + y(e.label), 1)
|
|
749
|
-
]),
|
|
750
|
-
_: 2
|
|
751
|
-
}, [
|
|
752
|
-
e.hasSlot("dashed-underline") ? {
|
|
753
|
-
name: "dashed-underline",
|
|
754
|
-
fn: o(() => [
|
|
755
|
-
l(e.$slots, "dashed-underline")
|
|
756
|
-
]),
|
|
757
|
-
key: "0"
|
|
758
|
-
} : void 0
|
|
759
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "underline-tooltip-text"]);
|
|
760
|
-
}
|
|
761
|
-
const je = /* @__PURE__ */ b(ve, [["render", he]]), $e = v({
|
|
762
|
-
name: "bento-summary-grid-item-custom",
|
|
763
|
-
components: { SummaryGridItem: E },
|
|
764
|
-
props: {
|
|
765
|
-
/**
|
|
766
|
-
* Text to copy to the clipboard
|
|
767
|
-
*/
|
|
768
|
-
copy: { type: String, default: void 0 },
|
|
769
|
-
/**
|
|
770
|
-
* Text showed in the info-icon tooltip on hover
|
|
771
|
-
*/
|
|
772
|
-
infoIconTooltipText: { type: String, default: null },
|
|
773
|
-
/**
|
|
774
|
-
* Text used as a title
|
|
775
|
-
*/
|
|
776
|
-
title: { type: String, required: !0 },
|
|
777
|
-
/**
|
|
778
|
-
* The width of `summary-grid-item` fits its content
|
|
779
|
-
*/
|
|
780
|
-
fitContent: { type: Boolean, default: !1 },
|
|
781
|
-
/**
|
|
782
|
-
* Text showed in the info-icon tooltip on hover
|
|
783
|
-
*/
|
|
784
|
-
underlineTooltipText: { type: String, default: null }
|
|
785
|
-
},
|
|
786
|
-
emits: ["copy-to-clipboard"],
|
|
787
|
-
setup(e, { slots: n }) {
|
|
788
|
-
return { hasSlot: $(n) };
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
function be(e, n, u, f, c, d) {
|
|
792
|
-
const i = m("summary-grid-item");
|
|
793
|
-
return a(), p(i, {
|
|
794
|
-
title: e.title,
|
|
795
|
-
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
796
|
-
copy: e.copy,
|
|
797
|
-
"fit-content": e.fitContent,
|
|
798
|
-
"underline-tooltip-text": e.underlineTooltipText,
|
|
799
|
-
onCopyToClipoard: n[0] || (n[0] = (t) => e.$emit("copy-to-clipboard"))
|
|
800
|
-
}, h({
|
|
801
|
-
default: o(() => [
|
|
802
|
-
l(e.$slots, "default")
|
|
803
|
-
]),
|
|
804
|
-
_: 2
|
|
805
|
-
}, [
|
|
806
|
-
e.hasSlot("dashed-underline") ? {
|
|
807
|
-
name: "dashed-underline",
|
|
808
|
-
fn: o(() => [
|
|
809
|
-
l(e.$slots, "dashed-underline")
|
|
810
|
-
]),
|
|
811
|
-
key: "0"
|
|
812
|
-
} : void 0
|
|
813
|
-
]), 1032, ["title", "info-icon-tooltip-text", "copy", "fit-content", "underline-tooltip-text"]);
|
|
814
|
-
}
|
|
815
|
-
const ze = /* @__PURE__ */ b($e, [["render", be]]);
|
|
816
|
-
export {
|
|
817
|
-
s as B,
|
|
818
|
-
Ae as a,
|
|
819
|
-
Re as b,
|
|
820
|
-
we as c,
|
|
821
|
-
je as d,
|
|
822
|
-
ze as e,
|
|
823
|
-
r as f,
|
|
824
|
-
Be as s
|
|
825
|
-
};
|
|
826
|
-
//# sourceMappingURL=summary-grid-item-custom.ACP0RH0N.js.map
|