@citizenplane/pimp 18.23.3 → 18.23.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CpBasket.vue.d.ts +13 -2
- package/dist/components/CpBasket.vue.d.ts.map +1 -1
- package/dist/pimp.es.js +2 -2
- package/dist/pimp.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/src/components/CpBasket.spec.ts +90 -0
- package/src/components/CpBasket.vue +7 -2
- package/src/components/__snapshots__/CpBasket.spec.ts.snap +40 -0
- package/src/stories/CpBasket.stories.ts +53 -0
- package/tsconfig.build.json +10 -1
- package/vitest.config.js +32 -0
|
@@ -5,11 +5,22 @@ interface Props {
|
|
|
5
5
|
total: string;
|
|
6
6
|
totalLabel: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface ResolvedRow extends CpBasketRow {
|
|
9
|
+
key: string;
|
|
10
|
+
}
|
|
11
|
+
declare var __VLS_1: {}, __VLS_21: {
|
|
12
|
+
row: ResolvedRow;
|
|
13
|
+
}, __VLS_23: {
|
|
14
|
+
row: ResolvedRow;
|
|
15
|
+
}, __VLS_25: {};
|
|
9
16
|
type __VLS_Slots = {} & {
|
|
10
17
|
leading?: (props: typeof __VLS_1) => any;
|
|
11
18
|
} & {
|
|
12
|
-
|
|
19
|
+
rowLabel?: (props: typeof __VLS_21) => any;
|
|
20
|
+
} & {
|
|
21
|
+
rowValue?: (props: typeof __VLS_23) => any;
|
|
22
|
+
} & {
|
|
23
|
+
trailing?: (props: typeof __VLS_25) => any;
|
|
13
24
|
};
|
|
14
25
|
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
26
|
hideDetailsOnCategories: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CpBasket.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpBasket.vue"],"names":[],"mappings":"AA0CA;
|
|
1
|
+
{"version":3,"file":"CpBasket.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpBasket.vue"],"names":[],"mappings":"AA0CA;AAyRA,OAAO,KAAK,EAAoB,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAK9E,UAAU,KAAK;IACb,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAA;IAClC,IAAI,EAAE,WAAW,EAAE,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,WAAY,SAAQ,WAAW;IACvC,GAAG,EAAE,MAAM,CAAA;CACZ;AA8OD,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKjD,QAAA,MAAM,UAAU;6BAhQY,MAAM,EAAE;6EAmQlC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/pimp.es.js
CHANGED
|
@@ -24353,12 +24353,12 @@ var WE = /*#__PURE__*/ X(EE, [["render", UE]]), GE = { class: "cpAccordion" }, K
|
|
|
24353
24353
|
default: V(() => [(M(!0), l(t, null, P(e.rows, (t) => (M(), l("div", {
|
|
24354
24354
|
key: t.key,
|
|
24355
24355
|
class: T(e.rowClass)
|
|
24356
|
-
}, [u("span", null, L(t.label), 1), u("span", null, L(t.value), 1)], 2))), 128))]),
|
|
24356
|
+
}, [F(n.$slots, "rowLabel", { row: t }, () => [u("span", null, L(t.label), 1)]), F(n.$slots, "rowValue", { row: t }, () => [u("span", null, L(t.value), 1)])], 2))), 128))]),
|
|
24357
24357
|
_: 2
|
|
24358
24358
|
}, 1024)]))), 128))]),
|
|
24359
24359
|
_: 2
|
|
24360
24360
|
}, 1024)])) : c("", !0)]))), 128))])])) : c("", !0)]),
|
|
24361
|
-
_:
|
|
24361
|
+
_: 3
|
|
24362
24362
|
}),
|
|
24363
24363
|
u("div", kk, [u("p", null, L(e.totalLabel), 1), u("p", Ak, L(e.total), 1)]),
|
|
24364
24364
|
o.value ? (M(), l("div", jk, [F(n.$slots, "trailing")])) : c("", !0)
|