@adyen/bento-vue3 1.52.0 → 1.53.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/components.d.ts +2 -0
- package/dist/@types/index.d.ts +474 -75
- 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/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dashed-underline.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/header-with-views.css +1 -0
- 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-item-custom.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.eo5EXYmg.js → action-bar.PIz6tShf.js} +4 -4
- package/dist/chunks/{action-bar.eo5EXYmg.js.map → action-bar.PIz6tShf.js.map} +1 -1
- package/dist/chunks/{base-modal.BlC6TZNz.js → base-modal.D4INiJGX.js} +3 -3
- package/dist/chunks/{base-modal.BlC6TZNz.js.map → base-modal.D4INiJGX.js.map} +1 -1
- package/dist/chunks/bin.CA6UQCNZ.js +37 -0
- package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.DQaq1bkf.js → button-actions-with-menu.DFD7gbdT.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.DQaq1bkf.js.map → button-actions-with-menu.DFD7gbdT.js.map} +1 -1
- package/dist/chunks/{calendar.D2X834TU.js → calendar.DKHNrb9_.js} +2 -2
- package/dist/chunks/{calendar.D2X834TU.js.map → calendar.DKHNrb9_.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BVJfN48k.js → checkbox-group.X2fi2jkS.js} +4 -4
- package/dist/chunks/{checkbox-group.BVJfN48k.js.map → checkbox-group.X2fi2jkS.js.map} +1 -1
- package/dist/chunks/{checkbox.erdZ58Kk.js → checkbox.CXZQtFhM.js} +81 -74
- package/dist/chunks/checkbox.CXZQtFhM.js.map +1 -0
- package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
- package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bb4_r0C8.js → code-snippet.CcdsPxT7.js} +5 -5
- package/dist/chunks/{code-snippet.Bb4_r0C8.js.map → code-snippet.CcdsPxT7.js.map} +1 -1
- package/dist/chunks/{controls-group.BaDhGB9H.js → controls-group.ClMNznTz.js} +2 -2
- package/dist/chunks/{controls-group.BaDhGB9H.js.map → controls-group.ClMNznTz.js.map} +1 -1
- package/dist/chunks/{copy.gmSTAqHY.js → copy.BYG9aoNO.js} +2 -2
- package/dist/chunks/{copy.gmSTAqHY.js.map → copy.BYG9aoNO.js.map} +1 -1
- package/dist/chunks/{dashboard-section.MAHmbUDG.js → dashboard-section.Dz9GpOvy.js} +3 -3
- package/dist/chunks/{dashboard-section.MAHmbUDG.js.map → dashboard-section.Dz9GpOvy.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DY8xR9GH.js → dashed-underline.BuCIjMch.js} +11 -11
- package/dist/chunks/{dashed-underline.DY8xR9GH.js.map → dashed-underline.BuCIjMch.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Dievz913.js → data-grid-template.B4jxtwoW.js} +2 -2
- package/dist/chunks/{data-grid-template.Dievz913.js.map → data-grid-template.B4jxtwoW.js.map} +1 -1
- package/dist/chunks/{data-grid.KZqjmRvk.js → data-grid.CLu8mvil.js} +29 -17
- package/dist/chunks/data-grid.CLu8mvil.js.map +1 -0
- package/dist/chunks/{date-picker.BWJYkSmo.js → date-picker.CA2i6QxD.js} +17 -17
- package/dist/chunks/{date-picker.BWJYkSmo.js.map → date-picker.CA2i6QxD.js.map} +1 -1
- package/dist/chunks/{date-range-picker.1Vbf9Zk8.js → date-range-picker.DVQ-j-JX.js} +25 -25
- package/dist/chunks/{date-range-picker.1Vbf9Zk8.js.map → date-range-picker.DVQ-j-JX.js.map} +1 -1
- package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
- package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.C9nM0YHC.js → dropdown-tag.DFWV7Zj_.js} +3 -3
- package/dist/chunks/{dropdown-tag.C9nM0YHC.js.map → dropdown-tag.DFWV7Zj_.js.map} +1 -1
- package/dist/chunks/{dropdown.qw5oXFYs.js → dropdown.RVt9T6j5.js} +115 -105
- package/dist/chunks/dropdown.RVt9T6j5.js.map +1 -0
- package/dist/chunks/{error-message.DAjisbU1.js → error-message.BQ5MlnLg.js} +2 -2
- package/dist/chunks/{error-message.DAjisbU1.js.map → error-message.BQ5MlnLg.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.BLJpDgAZ.js → file-uploader.DJLGEmtF.js} +464 -475
- package/dist/chunks/file-uploader.DJLGEmtF.js.map +1 -0
- package/dist/chunks/{filter-bar.DYrXBQDF.js → filter-bar.GGHRoo6O.js} +492 -486
- package/dist/chunks/filter-bar.GGHRoo6O.js.map +1 -0
- package/dist/chunks/{focus-trap.DMgm-9f7.js → focus-trap.D-HSKa_Q.js} +2 -2
- package/dist/chunks/{focus-trap.DMgm-9f7.js.map → focus-trap.D-HSKa_Q.js.map} +1 -1
- package/dist/chunks/header-with-views.BkcFu7QW.js +2354 -0
- package/dist/chunks/header-with-views.BkcFu7QW.js.map +1 -0
- package/dist/chunks/{header.BASKzNwu.js → header.CyTcPWF4.js} +3 -3
- package/dist/chunks/{header.BASKzNwu.js.map → header.CyTcPWF4.js.map} +1 -1
- package/dist/chunks/index.C5sL_d0I.js +386 -0
- package/dist/chunks/{index.CMGT-6mh.js.map → index.C5sL_d0I.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.BJccyOFx.js → info-icon-with-popover.DgZh2mnN.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.BJccyOFx.js.map → info-icon-with-popover.DgZh2mnN.js.map} +1 -1
- package/dist/chunks/{info-icon.L8AexnZg.js → info-icon.DxOAiUg4.js} +2 -2
- package/dist/chunks/{info-icon.L8AexnZg.js.map → info-icon.DxOAiUg4.js.map} +1 -1
- package/dist/chunks/{input-field-password.CZNUHo6s.js → input-field-password.BSJMbPHf.js} +94 -90
- package/dist/chunks/input-field-password.BSJMbPHf.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.D1zlBh3R.js → input-field-phone-number.BtRMkC84.js} +3 -3
- package/dist/chunks/{input-field-phone-number.D1zlBh3R.js.map → input-field-phone-number.BtRMkC84.js.map} +1 -1
- package/dist/chunks/{input-field.DqMdqM2u.js → input-field.CRlXtS3z.js} +3 -3
- package/dist/chunks/{input-field.DqMdqM2u.js.map → input-field.CRlXtS3z.js.map} +1 -1
- package/dist/chunks/{inspector.types.Dwt3V80X.js → inspector.types.s0va--Nn.js} +3 -3
- package/dist/chunks/{inspector.types.Dwt3V80X.js.map → inspector.types.s0va--Nn.js.map} +1 -1
- package/dist/chunks/{layout-row.Drm_y8e3.js → layout-row.CwwbWO7s.js} +2 -2
- package/dist/chunks/{layout-row.Drm_y8e3.js.map → layout-row.CwwbWO7s.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.YSvtcy4P.js → listbox-option-tag.2k0hRv0z.js} +2 -2
- package/dist/chunks/{listbox-option-tag.YSvtcy4P.js.map → listbox-option-tag.2k0hRv0z.js.map} +1 -1
- package/dist/chunks/{menu.DfzP2nRU.js → menu.DBRBVdsd.js} +106 -105
- package/dist/chunks/menu.DBRBVdsd.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.T1x_vroe.js → modal-fullscreen.POY-6qYC.js} +2 -2
- package/dist/chunks/{modal-fullscreen.T1x_vroe.js.map → modal-fullscreen.POY-6qYC.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js} +2 -2
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js.map → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js.map} +1 -1
- package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
- package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
- package/dist/chunks/{pagination.Bt8DNme-.js → pagination.TWtayPVy.js} +2 -2
- package/dist/chunks/{pagination.Bt8DNme-.js.map → pagination.TWtayPVy.js.map} +1 -1
- package/dist/chunks/{popover.COzLcAET.js → popover.BBnUL5Y_.js} +2 -2
- package/dist/chunks/{popover.COzLcAET.js.map → popover.BBnUL5Y_.js.map} +1 -1
- package/dist/chunks/{popper-container.CEtaux25.js → popper-container.Be3h7X17.js} +2 -2
- package/dist/chunks/{popper-container.CEtaux25.js.map → popper-container.Be3h7X17.js.map} +1 -1
- package/dist/chunks/{promo-banner.BCpw2tDD.js → promo-banner.BdaUFMsl.js} +2 -2
- package/dist/chunks/{promo-banner.BCpw2tDD.js.map → promo-banner.BdaUFMsl.js.map} +1 -1
- package/dist/chunks/{radio-group.rxg-4rF_.js → radio-group.BUazlUAi.js} +4 -4
- package/dist/chunks/{radio-group.rxg-4rF_.js.map → radio-group.BUazlUAi.js.map} +1 -1
- package/dist/chunks/{search-bar.DlihXfPt.js → search-bar.21CWuOHb.js} +3 -3
- package/dist/chunks/{search-bar.DlihXfPt.js.map → search-bar.21CWuOHb.js.map} +1 -1
- package/dist/chunks/{secondary-nav.D2loVonk.js → secondary-nav.CUQi4Ybt.js} +3 -3
- package/dist/chunks/{secondary-nav.D2loVonk.js.map → secondary-nav.CUQi4Ybt.js.map} +1 -1
- package/dist/chunks/{segmented-control.Wn-miTIl.js → segmented-control.BZJ9DzRF.js} +2 -2
- package/dist/chunks/{segmented-control.Wn-miTIl.js.map → segmented-control.BZJ9DzRF.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CtQaeZFM.js → selection-card-group.Bdrx1b6M.js} +4 -4
- package/dist/chunks/{selection-card-group.CtQaeZFM.js.map → selection-card-group.Bdrx1b6M.js.map} +1 -1
- package/dist/chunks/{sidepanel.CjaHQEin.js → sidepanel.D_bGUcyi.js} +3 -3
- package/dist/chunks/{sidepanel.CjaHQEin.js.map → sidepanel.D_bGUcyi.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DAwADFpI.js → structured-list-item.r1jYiX6Y.js} +4 -4
- package/dist/chunks/{structured-list-item.DAwADFpI.js.map → structured-list-item.r1jYiX6Y.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.DTCzOBBy.js → summary-grid-item-custom.ACP0RH0N.js} +299 -198
- package/dist/chunks/summary-grid-item-custom.ACP0RH0N.js.map +1 -0
- package/dist/chunks/{tag.B1hW92hG.js → tag.DVkBzXMx.js} +2 -2
- package/dist/chunks/{tag.B1hW92hG.js.map → tag.DVkBzXMx.js.map} +1 -1
- package/dist/chunks/{teleport.B1NhF5-O.js → teleport.DfTpEQBR.js} +2 -2
- package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.DfTpEQBR.js.map} +1 -1
- package/dist/chunks/{textarea.DMA29yQA.js → textarea.C8R71Q4l.js} +2 -2
- package/dist/chunks/{textarea.DMA29yQA.js.map → textarea.C8R71Q4l.js.map} +1 -1
- package/dist/chunks/{timeline-item.kWg3dTy1.js → timeline-item.DBeAlt3N.js} +4 -4
- package/dist/chunks/{timeline-item.kWg3dTy1.js.map → timeline-item.DBeAlt3N.js.map} +1 -1
- package/dist/chunks/{tooltip.Y730-n-n.js → tooltip.Cbs_YIap.js} +2 -2
- package/dist/chunks/{tooltip.Y730-n-n.js.map → tooltip.Cbs_YIap.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js → tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js.map → tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DDP7LJoI.js → use-cached-selected-values.Chb18cq_.js} +145 -136
- package/dist/chunks/{use-cached-selected-values.DDP7LJoI.js.map → use-cached-selected-values.Chb18cq_.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +2 -2
- 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 +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +1 -1
- package/dist/index.js +196 -194
- package/dist/index.js.map +1 -1
- 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/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 +47 -1
- package/dist/styles/bento-light.css +47 -1
- package/dist/styles/bento.css +47 -1
- package/dist/styles/legacy.css +47 -1
- package/dist/styles/styleguide.css +47 -1
- package/dist/summary-grid.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/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +1 -1
- package/package.json +7 -6
- package/dist/chunks/checkbox.erdZ58Kk.js.map +0 -1
- package/dist/chunks/data-grid.KZqjmRvk.js.map +0 -1
- package/dist/chunks/dropdown.qw5oXFYs.js.map +0 -1
- package/dist/chunks/file-uploader.BLJpDgAZ.js.map +0 -1
- package/dist/chunks/filter-bar.DYrXBQDF.js.map +0 -1
- package/dist/chunks/index.CMGT-6mh.js +0 -369
- package/dist/chunks/input-field-password.CZNUHo6s.js.map +0 -1
- package/dist/chunks/menu.DfzP2nRU.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.DTCzOBBy.js.map +0 -1
package/dist/chunks/{summary-grid-item-custom.DTCzOBBy.js → summary-grid-item-custom.ACP0RH0N.js}
RENAMED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { S as
|
|
4
|
-
import { G as
|
|
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
5
|
import { _ as b } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { B as
|
|
7
|
-
import { B as
|
|
8
|
-
import { B as
|
|
9
|
-
import {
|
|
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";
|
|
10
11
|
import "../assets/summary-grid-item-custom.css";
|
|
11
|
-
const
|
|
12
|
+
const re = v({
|
|
12
13
|
name: "bento-summary-grid",
|
|
13
|
-
components: { GridLayout:
|
|
14
|
+
components: { GridLayout: Q },
|
|
14
15
|
props: {
|
|
15
16
|
/**
|
|
16
17
|
* Sets the responsive columns widths values for 1 of the 3 rows.
|
|
@@ -24,74 +25,74 @@ const te = T({
|
|
|
24
25
|
*/
|
|
25
26
|
slashedZero: { type: Boolean, default: !1 }
|
|
26
27
|
},
|
|
27
|
-
setup(e, { slots:
|
|
28
|
-
var c,
|
|
29
|
-
let
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
var
|
|
33
|
-
return parseInt((
|
|
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);
|
|
34
35
|
});
|
|
35
|
-
if (
|
|
36
|
+
if (u = Math.max(...i), u > 3)
|
|
36
37
|
throw new Error(
|
|
37
38
|
"BentoSummaryGrid must only have a maximum of 3 rows. Read the documentation for more information."
|
|
38
39
|
);
|
|
39
40
|
}
|
|
40
|
-
return
|
|
41
|
-
hasSlot:
|
|
42
|
-
numberOfRows:
|
|
41
|
+
return D(K, () => ({ isSummaryGridLayout: !0 })), D(w, q(e, "slashedZero")), {
|
|
42
|
+
hasSlot: $(n),
|
|
43
|
+
numberOfRows: u
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
|
-
}),
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
(
|
|
50
|
-
var
|
|
51
|
-
return
|
|
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, {
|
|
52
53
|
key: `summary-grid-row-${t}`,
|
|
53
54
|
"data-testid": `summary-grid-row-${t}`,
|
|
54
|
-
"column-width": (
|
|
55
|
-
},
|
|
55
|
+
"column-width": (g = e.columnWidth) == null ? void 0 : g[`row${t}`]
|
|
56
|
+
}, h({ _: 2 }, [
|
|
56
57
|
e.hasSlot(`cell-${t}-1`) ? {
|
|
57
58
|
name: "col-1",
|
|
58
|
-
fn:
|
|
59
|
-
|
|
59
|
+
fn: o(() => [
|
|
60
|
+
l(e.$slots, `cell-${t}-1`, {}, void 0, !0)
|
|
60
61
|
]),
|
|
61
62
|
key: "0"
|
|
62
63
|
} : void 0,
|
|
63
64
|
e.hasSlot(`cell-${t}-2`) ? {
|
|
64
65
|
name: "col-2",
|
|
65
|
-
fn:
|
|
66
|
-
|
|
66
|
+
fn: o(() => [
|
|
67
|
+
l(e.$slots, `cell-${t}-2`, {}, void 0, !0)
|
|
67
68
|
]),
|
|
68
69
|
key: "1"
|
|
69
70
|
} : void 0,
|
|
70
71
|
e.hasSlot(`cell-${t}-3`) ? {
|
|
71
72
|
name: "col-3",
|
|
72
|
-
fn:
|
|
73
|
-
|
|
73
|
+
fn: o(() => [
|
|
74
|
+
l(e.$slots, `cell-${t}-3`, {}, void 0, !0)
|
|
74
75
|
]),
|
|
75
76
|
key: "2"
|
|
76
77
|
} : void 0,
|
|
77
78
|
e.hasSlot(`cell-${t}-4`) ? {
|
|
78
79
|
name: "col-4",
|
|
79
|
-
fn:
|
|
80
|
-
|
|
80
|
+
fn: o(() => [
|
|
81
|
+
l(e.$slots, `cell-${t}-4`, {}, void 0, !0)
|
|
81
82
|
]),
|
|
82
83
|
key: "3"
|
|
83
84
|
} : void 0,
|
|
84
85
|
e.hasSlot(`cell-${t}-5`) ? {
|
|
85
86
|
name: "col-5",
|
|
86
|
-
fn:
|
|
87
|
-
|
|
87
|
+
fn: o(() => [
|
|
88
|
+
l(e.$slots, `cell-${t}-5`, {}, void 0, !0)
|
|
88
89
|
]),
|
|
89
90
|
key: "4"
|
|
90
91
|
} : void 0,
|
|
91
92
|
e.hasSlot(`cell-${t}-6`) ? {
|
|
92
93
|
name: "col-6",
|
|
93
|
-
fn:
|
|
94
|
-
|
|
94
|
+
fn: o(() => [
|
|
95
|
+
l(e.$slots, `cell-${t}-6`, {}, void 0, !0)
|
|
95
96
|
]),
|
|
96
97
|
key: "5"
|
|
97
98
|
} : void 0
|
|
@@ -99,11 +100,11 @@ function oe(e, a, d, p, c, s) {
|
|
|
99
100
|
}), 128))
|
|
100
101
|
]);
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
-
var
|
|
104
|
-
const
|
|
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({
|
|
105
106
|
name: "summary-grid-item",
|
|
106
|
-
components: { BentoInfoIcon:
|
|
107
|
+
components: { BentoDashedUnderline: x, BentoInfoIcon: ee, BentoTypography: te, BentoTag: ne, Copy: oe },
|
|
107
108
|
props: {
|
|
108
109
|
/**
|
|
109
110
|
* Text to copy to the clipboard
|
|
@@ -115,8 +116,8 @@ const re = T({
|
|
|
115
116
|
// TODO add text truncation for SummaryGridItemType.TEXT
|
|
116
117
|
itemType: {
|
|
117
118
|
type: String,
|
|
118
|
-
default:
|
|
119
|
-
validator: (e) => Object.values(
|
|
119
|
+
default: O.CUSTOM,
|
|
120
|
+
validator: (e) => Object.values(O).includes(e)
|
|
120
121
|
},
|
|
121
122
|
/**
|
|
122
123
|
* Text showed in the info-icon tooltip on hover
|
|
@@ -137,8 +138,8 @@ const re = T({
|
|
|
137
138
|
// TODO implement logic for Large size
|
|
138
139
|
size: {
|
|
139
140
|
type: String,
|
|
140
|
-
default:
|
|
141
|
-
validator: (e) => Object.values(
|
|
141
|
+
default: s.SMALL,
|
|
142
|
+
validator: (e) => Object.values(s).includes(e)
|
|
142
143
|
},
|
|
143
144
|
/**
|
|
144
145
|
* Shows colored trend label next to text content
|
|
@@ -152,8 +153,8 @@ const re = T({
|
|
|
152
153
|
*/
|
|
153
154
|
trendDirection: {
|
|
154
155
|
type: String,
|
|
155
|
-
default:
|
|
156
|
-
validator: (e) => Object.values(
|
|
156
|
+
default: r.POSITIVE,
|
|
157
|
+
validator: (e) => Object.values(r).includes(e)
|
|
157
158
|
},
|
|
158
159
|
/**
|
|
159
160
|
* Shows colored trend tag next to secondary metric value
|
|
@@ -167,89 +168,112 @@ const re = T({
|
|
|
167
168
|
*/
|
|
168
169
|
secondaryTrendDirection: {
|
|
169
170
|
type: String,
|
|
170
|
-
default:
|
|
171
|
-
validator: (e) => Object.values(
|
|
172
|
-
}
|
|
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 }
|
|
173
178
|
},
|
|
174
|
-
setup(e, { slots:
|
|
175
|
-
const { trendDirection:
|
|
176
|
-
switch (
|
|
177
|
-
case
|
|
178
|
-
return
|
|
179
|
-
case
|
|
180
|
-
return
|
|
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;
|
|
181
186
|
default:
|
|
182
|
-
return
|
|
187
|
+
return M.BLUE;
|
|
183
188
|
}
|
|
184
|
-
},
|
|
185
|
-
medium:
|
|
186
|
-
strongest:
|
|
187
|
-
wide:
|
|
188
|
-
variant:
|
|
189
|
-
})),
|
|
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(() => ({
|
|
190
195
|
[`b-summary-grid-item__content-trend--${e.trend}`]: e.trend
|
|
191
|
-
}));
|
|
196
|
+
})), V = $(n), N = S(() => e.underlineTooltipText || V("dashed-underline"));
|
|
192
197
|
return {
|
|
193
198
|
// Values
|
|
194
|
-
trendVariant:
|
|
195
|
-
secondaryTrendVariant:
|
|
196
|
-
typographyProps:
|
|
199
|
+
trendVariant: g,
|
|
200
|
+
secondaryTrendVariant: k,
|
|
201
|
+
typographyProps: j,
|
|
202
|
+
withUnderline: N,
|
|
197
203
|
// Styles
|
|
198
|
-
conditionalClasses:
|
|
199
|
-
computedStyles:
|
|
200
|
-
summaryBarItemTrendConditionalClasses:
|
|
204
|
+
conditionalClasses: P,
|
|
205
|
+
computedStyles: z,
|
|
206
|
+
summaryBarItemTrendConditionalClasses: G,
|
|
201
207
|
// Utils
|
|
202
|
-
hasSlot:
|
|
208
|
+
hasSlot: V
|
|
203
209
|
};
|
|
204
210
|
}
|
|
205
|
-
}),
|
|
206
|
-
function
|
|
207
|
-
const
|
|
208
|
-
return
|
|
209
|
-
class:
|
|
210
|
-
style:
|
|
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)
|
|
211
217
|
}, [
|
|
212
|
-
|
|
213
|
-
|
|
218
|
+
L("div", de, [
|
|
219
|
+
B(t, {
|
|
214
220
|
class: "b-summary-grid-item__title",
|
|
215
221
|
el: "span",
|
|
216
222
|
variant: "body"
|
|
217
223
|
}, {
|
|
218
|
-
default:
|
|
219
|
-
|
|
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))
|
|
220
244
|
]),
|
|
221
|
-
_:
|
|
245
|
+
_: 3
|
|
222
246
|
}),
|
|
223
|
-
|
|
224
|
-
e.copy ? (
|
|
247
|
+
L("div", se, [
|
|
248
|
+
e.copy ? (a(), p(g, {
|
|
225
249
|
key: 0,
|
|
226
250
|
class: "b-structured-list__icon",
|
|
227
251
|
text: e.copy
|
|
228
|
-
}, null, 8, ["text"])) :
|
|
229
|
-
e.infoIconTooltipText ? (
|
|
252
|
+
}, null, 8, ["text"])) : I("", !0),
|
|
253
|
+
e.infoIconTooltipText ? (a(), p(k, {
|
|
230
254
|
key: 1,
|
|
231
255
|
"tooltip-text": e.infoIconTooltipText,
|
|
232
256
|
"tooltip-position": "top",
|
|
233
257
|
class: "b-summary-grid-item__title-tooltip"
|
|
234
|
-
}, null, 8, ["tooltip-text"])) :
|
|
258
|
+
}, null, 8, ["tooltip-text"])) : I("", !0)
|
|
235
259
|
])
|
|
236
260
|
]),
|
|
237
|
-
|
|
261
|
+
B(t, J({
|
|
238
262
|
"data-testid": "summary-grid-item-content-typography",
|
|
239
263
|
class: "b-summary-grid-item__title"
|
|
240
264
|
}, e.typographyProps, { el: "span" }), {
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
e.trend && e.itemType !== "text" ? (
|
|
265
|
+
default: o(() => [
|
|
266
|
+
l(e.$slots, "default", {}, void 0, !0),
|
|
267
|
+
e.trend && e.itemType !== "text" ? (a(), p(C, {
|
|
244
268
|
key: 0,
|
|
245
269
|
variant: e.trendVariant,
|
|
246
270
|
label: e.trend,
|
|
247
271
|
class: "b-summary-grid-item__content-trend"
|
|
248
|
-
}, null, 8, ["variant", "label"])) :
|
|
272
|
+
}, null, 8, ["variant", "label"])) : I("", !0)
|
|
249
273
|
]),
|
|
250
274
|
_: 3
|
|
251
275
|
}, 16),
|
|
252
|
-
e.hasSlot("secondary") ? (
|
|
276
|
+
e.hasSlot("secondary") ? (a(), p(t, {
|
|
253
277
|
key: 0,
|
|
254
278
|
class: "b-summary-grid-item__title",
|
|
255
279
|
"data-testid": "summary-grid-item-secondary-metric-typography",
|
|
@@ -257,22 +281,22 @@ function se(e, a, d, p, c, s) {
|
|
|
257
281
|
variant: "caption",
|
|
258
282
|
stronger: ""
|
|
259
283
|
}, {
|
|
260
|
-
default:
|
|
261
|
-
|
|
262
|
-
e.secondaryTrend ? (
|
|
284
|
+
default: o(() => [
|
|
285
|
+
l(e.$slots, "secondary", {}, void 0, !0),
|
|
286
|
+
e.secondaryTrend ? (a(), p(C, {
|
|
263
287
|
key: 0,
|
|
264
288
|
variant: e.secondaryTrendVariant,
|
|
265
289
|
label: e.secondaryTrend,
|
|
266
290
|
class: "b-summary-grid-item__content-trend"
|
|
267
|
-
}, null, 8, ["variant", "label"])) :
|
|
291
|
+
}, null, 8, ["variant", "label"])) : I("", !0)
|
|
268
292
|
]),
|
|
269
293
|
_: 3
|
|
270
|
-
})) :
|
|
294
|
+
})) : I("", !0)
|
|
271
295
|
], 6);
|
|
272
296
|
}
|
|
273
|
-
const
|
|
297
|
+
const E = /* @__PURE__ */ b(le, [["render", ue], ["__scopeId", "data-v-67400fc8"]]), pe = v({
|
|
274
298
|
name: "bento-summary-grid-item-amount",
|
|
275
|
-
components: { SummaryGridItem:
|
|
299
|
+
components: { SummaryGridItem: E },
|
|
276
300
|
props: {
|
|
277
301
|
/**
|
|
278
302
|
* Text to copy to the clipboard
|
|
@@ -332,8 +356,8 @@ const _ = /* @__PURE__ */ b(re, [["render", se], ["__scopeId", "data-v-09325bfd"
|
|
|
332
356
|
*/
|
|
333
357
|
trendDirection: {
|
|
334
358
|
type: String,
|
|
335
|
-
default:
|
|
336
|
-
validator: (e) => Object.values(
|
|
359
|
+
default: r.POSITIVE,
|
|
360
|
+
validator: (e) => Object.values(r).includes(e)
|
|
337
361
|
},
|
|
338
362
|
/**
|
|
339
363
|
* Shows colored secondary trend tag next to the secondary metric value
|
|
@@ -347,25 +371,32 @@ const _ = /* @__PURE__ */ b(re, [["render", se], ["__scopeId", "data-v-09325bfd"
|
|
|
347
371
|
*/
|
|
348
372
|
secondaryTrendDirection: {
|
|
349
373
|
type: String,
|
|
350
|
-
default:
|
|
351
|
-
validator: (e) => Object.values(
|
|
374
|
+
default: r.POSITIVE,
|
|
375
|
+
validator: (e) => Object.values(r).includes(e)
|
|
352
376
|
},
|
|
353
377
|
/**
|
|
354
378
|
* Defines the size of the `summary-grid-item` text content
|
|
355
379
|
*/
|
|
356
380
|
size: {
|
|
357
381
|
type: String,
|
|
358
|
-
default:
|
|
359
|
-
validator: (e) => Object.values(
|
|
360
|
-
}
|
|
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) };
|
|
361
392
|
}
|
|
362
|
-
}),
|
|
393
|
+
}), ce = { class: "b-summary-grid-item-amount__content" }, me = {
|
|
363
394
|
key: 0,
|
|
364
395
|
class: "b-summary-grid-item-amount__secondary-label"
|
|
365
396
|
};
|
|
366
|
-
function
|
|
367
|
-
const
|
|
368
|
-
return
|
|
397
|
+
function ye(e, n, u, f, c, d) {
|
|
398
|
+
const i = m("summary-grid-item");
|
|
399
|
+
return a(), p(i, {
|
|
369
400
|
"item-type": "amount",
|
|
370
401
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
371
402
|
title: e.title,
|
|
@@ -376,28 +407,36 @@ function ue(e, a, d, p, c, s) {
|
|
|
376
407
|
"trend-direction": e.trendDirection,
|
|
377
408
|
"secondary-trend": e.secondaryTrend,
|
|
378
409
|
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
410
|
+
"underline-tooltip-text": e.underlineTooltipText,
|
|
379
411
|
class: "b-summary-grid-item-amount"
|
|
380
|
-
},
|
|
381
|
-
default:
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
e.secondaryLabel ? (
|
|
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)
|
|
385
417
|
])
|
|
386
418
|
]),
|
|
387
419
|
_: 2
|
|
388
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,
|
|
389
428
|
e.secondaryMetric ? {
|
|
390
429
|
name: "secondary",
|
|
391
|
-
fn:
|
|
392
|
-
|
|
430
|
+
fn: o(() => [
|
|
431
|
+
T(y(e.secondaryMetric), 1)
|
|
393
432
|
]),
|
|
394
|
-
key: "
|
|
433
|
+
key: "1"
|
|
395
434
|
} : void 0
|
|
396
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction"]);
|
|
435
|
+
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]);
|
|
397
436
|
}
|
|
398
|
-
const
|
|
437
|
+
const Ae = /* @__PURE__ */ b(pe, [["render", ye], ["__scopeId", "data-v-f4b5a860"]]), fe = v({
|
|
399
438
|
name: "bento-summary-grid-item-numeric",
|
|
400
|
-
components: { SummaryGridItem:
|
|
439
|
+
components: { SummaryGridItem: E },
|
|
401
440
|
props: {
|
|
402
441
|
/**
|
|
403
442
|
* Text to copy to the clipboard
|
|
@@ -450,8 +489,8 @@ const Ve = /* @__PURE__ */ b(le, [["render", ue], ["__scopeId", "data-v-fd1debe6
|
|
|
450
489
|
*/
|
|
451
490
|
trendDirection: {
|
|
452
491
|
type: String,
|
|
453
|
-
default:
|
|
454
|
-
validator: (e) => Object.values(
|
|
492
|
+
default: r.POSITIVE,
|
|
493
|
+
validator: (e) => Object.values(r).includes(e)
|
|
455
494
|
},
|
|
456
495
|
/**
|
|
457
496
|
* Shows colored secondary trend tag next to the secondary metric value
|
|
@@ -465,22 +504,29 @@ const Ve = /* @__PURE__ */ b(le, [["render", ue], ["__scopeId", "data-v-fd1debe6
|
|
|
465
504
|
*/
|
|
466
505
|
secondaryTrendDirection: {
|
|
467
506
|
type: String,
|
|
468
|
-
default:
|
|
469
|
-
validator: (e) => Object.values(
|
|
507
|
+
default: r.POSITIVE,
|
|
508
|
+
validator: (e) => Object.values(r).includes(e)
|
|
470
509
|
},
|
|
471
510
|
/**
|
|
472
511
|
* Defines the size of the `summary-grid-item` text content
|
|
473
512
|
*/
|
|
474
513
|
size: {
|
|
475
514
|
type: String,
|
|
476
|
-
default:
|
|
477
|
-
validator: (e) => Object.values(
|
|
478
|
-
}
|
|
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) };
|
|
479
525
|
}
|
|
480
526
|
});
|
|
481
|
-
function
|
|
482
|
-
const
|
|
483
|
-
return
|
|
527
|
+
function ge(e, n, u, f, c, d) {
|
|
528
|
+
const i = m("summary-grid-item");
|
|
529
|
+
return a(), p(i, {
|
|
484
530
|
"item-type": "numeric",
|
|
485
531
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
486
532
|
title: e.title,
|
|
@@ -491,25 +537,33 @@ function pe(e, a, d, p, c, s) {
|
|
|
491
537
|
"trend-direction": e.trendDirection,
|
|
492
538
|
"secondary-trend": e.secondaryTrend,
|
|
493
539
|
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
540
|
+
"underline-tooltip-text": e.underlineTooltipText,
|
|
494
541
|
class: "b-summary-grid-item-numeric"
|
|
495
|
-
},
|
|
496
|
-
default:
|
|
497
|
-
|
|
542
|
+
}, h({
|
|
543
|
+
default: o(() => [
|
|
544
|
+
T(" " + y(e.label) + " ", 1)
|
|
498
545
|
]),
|
|
499
546
|
_: 2
|
|
500
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,
|
|
501
555
|
e.secondaryMetric ? {
|
|
502
556
|
name: "secondary",
|
|
503
|
-
fn:
|
|
504
|
-
|
|
557
|
+
fn: o(() => [
|
|
558
|
+
T(y(e.secondaryMetric), 1)
|
|
505
559
|
]),
|
|
506
|
-
key: "
|
|
560
|
+
key: "1"
|
|
507
561
|
} : void 0
|
|
508
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction"]);
|
|
562
|
+
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]);
|
|
509
563
|
}
|
|
510
|
-
const
|
|
564
|
+
const Re = /* @__PURE__ */ b(fe, [["render", ge]]), Se = v({
|
|
511
565
|
name: "bento-summary-grid-item-percentage",
|
|
512
|
-
components: { SummaryGridItem:
|
|
566
|
+
components: { SummaryGridItem: E },
|
|
513
567
|
props: {
|
|
514
568
|
/**
|
|
515
569
|
* Amount to be shown as the main value
|
|
@@ -562,8 +616,8 @@ const De = /* @__PURE__ */ b(me, [["render", pe]]), ye = T({
|
|
|
562
616
|
*/
|
|
563
617
|
trendDirection: {
|
|
564
618
|
type: String,
|
|
565
|
-
default:
|
|
566
|
-
validator: (e) => Object.values(
|
|
619
|
+
default: r.POSITIVE,
|
|
620
|
+
validator: (e) => Object.values(r).includes(e)
|
|
567
621
|
},
|
|
568
622
|
/**
|
|
569
623
|
* Shows colored secondary trend tag next to the secondary metric value
|
|
@@ -577,22 +631,29 @@ const De = /* @__PURE__ */ b(me, [["render", pe]]), ye = T({
|
|
|
577
631
|
*/
|
|
578
632
|
secondaryTrendDirection: {
|
|
579
633
|
type: String,
|
|
580
|
-
default:
|
|
581
|
-
validator: (e) => Object.values(
|
|
634
|
+
default: r.POSITIVE,
|
|
635
|
+
validator: (e) => Object.values(r).includes(e)
|
|
582
636
|
},
|
|
583
637
|
/**
|
|
584
638
|
* Defines the size of the `summary-grid-item` text content
|
|
585
639
|
*/
|
|
586
640
|
size: {
|
|
587
641
|
type: String,
|
|
588
|
-
default:
|
|
589
|
-
validator: (e) => Object.values(
|
|
590
|
-
}
|
|
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) };
|
|
591
652
|
}
|
|
592
653
|
});
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
return
|
|
654
|
+
function Te(e, n, u, f, c, d) {
|
|
655
|
+
const i = m("summary-grid-item");
|
|
656
|
+
return a(), p(i, {
|
|
596
657
|
"item-type": "percentage",
|
|
597
658
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
598
659
|
title: e.title,
|
|
@@ -603,25 +664,33 @@ function fe(e, a, d, p, c, s) {
|
|
|
603
664
|
"trend-direction": e.trendDirection,
|
|
604
665
|
"secondary-trend": e.secondaryTrend,
|
|
605
666
|
"secondary-trend-direction": e.secondaryTrendDirection,
|
|
667
|
+
"underline-tooltip-text": e.underlineTooltipText,
|
|
606
668
|
class: "b-summary-grid-item-percentage"
|
|
607
|
-
},
|
|
608
|
-
default:
|
|
609
|
-
|
|
669
|
+
}, h({
|
|
670
|
+
default: o(() => [
|
|
671
|
+
T(" " + y(e.label) + "% ", 1)
|
|
610
672
|
]),
|
|
611
673
|
_: 2
|
|
612
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,
|
|
613
682
|
e.secondaryMetric ? {
|
|
614
683
|
name: "secondary",
|
|
615
|
-
fn:
|
|
616
|
-
|
|
684
|
+
fn: o(() => [
|
|
685
|
+
T(y(e.secondaryMetric) + "% ", 1)
|
|
617
686
|
]),
|
|
618
|
-
key: "
|
|
687
|
+
key: "1"
|
|
619
688
|
} : void 0
|
|
620
|
-
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction"]);
|
|
689
|
+
]), 1032, ["info-icon-tooltip-text", "title", "copy", "fit-content", "size", "trend", "trend-direction", "secondary-trend", "secondary-trend-direction", "underline-tooltip-text"]);
|
|
621
690
|
}
|
|
622
|
-
const
|
|
691
|
+
const we = /* @__PURE__ */ b(Se, [["render", Te]]), ve = v({
|
|
623
692
|
name: "bento-summary-grid-item-text",
|
|
624
|
-
components: { SummaryGridItem:
|
|
693
|
+
components: { SummaryGridItem: E },
|
|
625
694
|
props: {
|
|
626
695
|
/**
|
|
627
696
|
* Text to copy to the clipboard
|
|
@@ -654,28 +723,44 @@ const ke = /* @__PURE__ */ b(ye, [["render", fe]]), ge = T({
|
|
|
654
723
|
fitContent: {
|
|
655
724
|
type: Boolean,
|
|
656
725
|
default: !1
|
|
657
|
-
}
|
|
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) };
|
|
658
734
|
}
|
|
659
735
|
});
|
|
660
|
-
function
|
|
661
|
-
const
|
|
662
|
-
return
|
|
736
|
+
function he(e, n, u, f, c, d) {
|
|
737
|
+
const i = m("summary-grid-item");
|
|
738
|
+
return a(), p(i, {
|
|
663
739
|
"item-type": "text",
|
|
664
740
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
665
741
|
title: e.title,
|
|
666
742
|
copy: e.copy,
|
|
667
743
|
"fit-content": e.fitContent,
|
|
744
|
+
"underline-tooltip-text": e.underlineTooltipText,
|
|
668
745
|
class: "b-summary-grid-item-text"
|
|
669
|
-
}, {
|
|
670
|
-
default:
|
|
671
|
-
|
|
746
|
+
}, h({
|
|
747
|
+
default: o(() => [
|
|
748
|
+
T(" " + y(e.label), 1)
|
|
672
749
|
]),
|
|
673
|
-
_:
|
|
674
|
-
},
|
|
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"]);
|
|
675
760
|
}
|
|
676
|
-
const
|
|
761
|
+
const je = /* @__PURE__ */ b(ve, [["render", he]]), $e = v({
|
|
677
762
|
name: "bento-summary-grid-item-custom",
|
|
678
|
-
components: { SummaryGridItem:
|
|
763
|
+
components: { SummaryGridItem: E },
|
|
679
764
|
props: {
|
|
680
765
|
/**
|
|
681
766
|
* Text to copy to the clipboard
|
|
@@ -692,34 +777,50 @@ const Ae = /* @__PURE__ */ b(ge, [["render", ve]]), Se = T({
|
|
|
692
777
|
/**
|
|
693
778
|
* The width of `summary-grid-item` fits its content
|
|
694
779
|
*/
|
|
695
|
-
fitContent: { type: Boolean, default: !1 }
|
|
780
|
+
fitContent: { type: Boolean, default: !1 },
|
|
781
|
+
/**
|
|
782
|
+
* Text showed in the info-icon tooltip on hover
|
|
783
|
+
*/
|
|
784
|
+
underlineTooltipText: { type: String, default: null }
|
|
696
785
|
},
|
|
697
|
-
emits: ["copy-to-clipboard"]
|
|
786
|
+
emits: ["copy-to-clipboard"],
|
|
787
|
+
setup(e, { slots: n }) {
|
|
788
|
+
return { hasSlot: $(n) };
|
|
789
|
+
}
|
|
698
790
|
});
|
|
699
|
-
function
|
|
700
|
-
const
|
|
701
|
-
return
|
|
791
|
+
function be(e, n, u, f, c, d) {
|
|
792
|
+
const i = m("summary-grid-item");
|
|
793
|
+
return a(), p(i, {
|
|
702
794
|
title: e.title,
|
|
703
795
|
"info-icon-tooltip-text": e.infoIconTooltipText,
|
|
704
796
|
copy: e.copy,
|
|
705
797
|
"fit-content": e.fitContent,
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
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")
|
|
710
803
|
]),
|
|
711
|
-
_:
|
|
712
|
-
},
|
|
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"]);
|
|
713
814
|
}
|
|
714
|
-
const
|
|
815
|
+
const ze = /* @__PURE__ */ b($e, [["render", be]]);
|
|
715
816
|
export {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
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
|
|
724
825
|
};
|
|
725
|
-
//# sourceMappingURL=summary-grid-item-custom.
|
|
826
|
+
//# sourceMappingURL=summary-grid-item-custom.ACP0RH0N.js.map
|