@citizenplane/pimp 18.1.2 → 18.2.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/components/CpButtonToggle.vue.d.ts.map +1 -1
- package/dist/components/CpTable.vue.d.ts +4 -5
- package/dist/components/CpTable.vue.d.ts.map +1 -1
- package/dist/components/CpTableFooter.vue.d.ts +29 -0
- package/dist/components/CpTableFooter.vue.d.ts.map +1 -0
- package/dist/components/CpTableFooterDesktop.vue.d.ts +23 -0
- package/dist/components/CpTableFooterDesktop.vue.d.ts.map +1 -0
- package/dist/components/CpTableFooterDetails.vue.d.ts +8 -0
- package/dist/components/CpTableFooterDetails.vue.d.ts.map +1 -0
- package/dist/components/CpTableFooterMobile.vue.d.ts +23 -0
- package/dist/components/CpTableFooterMobile.vue.d.ts.map +1 -0
- package/dist/pimp.es.js +5322 -5144
- package/dist/pimp.umd.js +51 -51
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CpButtonToggle.vue +7 -1
- package/src/components/CpTable.vue +28 -143
- package/src/components/CpTableFooter.vue +143 -0
- package/src/components/CpTableFooterDesktop.vue +74 -0
- package/src/components/CpTableFooterDetails.vue +63 -0
- package/src/components/CpTableFooterMobile.vue +65 -0
- package/src/stories/CpTable.stories.ts +26 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CpButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpButtonToggle.vue"],"names":[],"mappings":"AAsBA;
|
|
1
|
+
{"version":3,"file":"CpButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpButtonToggle.vue"],"names":[],"mappings":"AAsBA;AAmJA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAgFD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAwB/C,QAAA,MAAM,eAAe;;;;;gBA9GN,OAAO;WACZ,MAAM;cAFH,OAAO;iBAGJ,MAAM;6EAoHpB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -5,7 +5,6 @@ interface PaginationServer {
|
|
|
5
5
|
}
|
|
6
6
|
interface Pagination {
|
|
7
7
|
enabled?: boolean;
|
|
8
|
-
format?: 'results' | 'pages';
|
|
9
8
|
limit?: number;
|
|
10
9
|
server?: PaginationServer;
|
|
11
10
|
}
|
|
@@ -45,7 +44,7 @@ declare var __VLS_1: {
|
|
|
45
44
|
cell: never;
|
|
46
45
|
}, __VLS_13: {
|
|
47
46
|
row: {};
|
|
48
|
-
},
|
|
47
|
+
}, __VLS_34: {};
|
|
49
48
|
type __VLS_Slots = {} & {
|
|
50
49
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
51
50
|
} & {
|
|
@@ -55,21 +54,21 @@ type __VLS_Slots = {} & {
|
|
|
55
54
|
} & {
|
|
56
55
|
'row-quick-actions'?: (props: typeof __VLS_13) => any;
|
|
57
56
|
} & {
|
|
58
|
-
'footer-details'?: (props: typeof
|
|
57
|
+
'footer-details'?: (props: typeof __VLS_34) => any;
|
|
59
58
|
};
|
|
60
59
|
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
61
60
|
hideContextualMenu: () => void | undefined;
|
|
62
61
|
resetPagination: () => number;
|
|
63
62
|
currentRowData: import('vue').Ref<Record<string, unknown>, Record<string, unknown>>;
|
|
64
63
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
65
|
-
onRowClick: (data: Record<string, unknown>) => any;
|
|
66
64
|
onNextClick: () => any;
|
|
67
65
|
onPreviousClick: () => any;
|
|
66
|
+
onRowClick: (data: Record<string, unknown>) => any;
|
|
68
67
|
onColumnsChanged: (columns: CpTableColumnObject[]) => any;
|
|
69
68
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
70
|
-
onOnRowClick?: ((data: Record<string, unknown>) => any) | undefined;
|
|
71
69
|
onOnNextClick?: (() => any) | undefined;
|
|
72
70
|
onOnPreviousClick?: (() => any) | undefined;
|
|
71
|
+
onOnRowClick?: ((data: Record<string, unknown>) => any) | undefined;
|
|
73
72
|
onOnColumnsChanged?: ((columns: CpTableColumnObject[]) => any) | undefined;
|
|
74
73
|
}>, {
|
|
75
74
|
caption: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CpTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CpTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpTable.vue"],"names":[],"mappings":"AAwHA;AA46BA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAiB/D,UAAU,gBAAgB;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,UAAU;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AAED,UAAU,UAAU;IAClB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,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,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,GACzE;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACxC;IAAE,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACzD;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA+DzD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;aA7uBT,MAAM;aACN,MAAM,EAAE,GAAG,mBAAmB,EAAE;uBAQtB,MAAM;eAHd,OAAO;sBAPA,OAAO;0BAIH,MAAM;yBACP,OAAO;sBACV,OAAO;yBAEJ,MAAM;gBACf,UAAU;gBAEV,UAAU,EAAE;6EA4uBzB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isLoading: boolean;
|
|
3
|
+
isServerSidePagination: boolean;
|
|
4
|
+
numberOfResults: number;
|
|
5
|
+
pageNumber: number;
|
|
6
|
+
rowsPerPageLimit: number;
|
|
7
|
+
serverActivePage: number;
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_9: {}, __VLS_26: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
'footer-details'?: (props: typeof __VLS_9) => any;
|
|
12
|
+
} & {
|
|
13
|
+
'footer-details'?: (props: typeof __VLS_26) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
onNextClick: () => any;
|
|
17
|
+
onPreviousClick: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
+
onOnNextClick?: (() => any) | undefined;
|
|
20
|
+
onOnPreviousClick?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=CpTableFooter.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CpTableFooter.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpTableFooter.vue"],"names":[],"mappings":"AA+CA;AAuJA,UAAU,KAAK;IACb,SAAS,EAAE,OAAO,CAAA;IAClB,sBAAsB,EAAE,OAAO,CAAA;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AA2LD,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA4BzD,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isNextEnabled: boolean;
|
|
3
|
+
isPreviousEnabled: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
'footer-details'?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
onNextClick: () => any;
|
|
11
|
+
onPreviousClick: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
onOnNextClick?: (() => any) | undefined;
|
|
14
|
+
onOnPreviousClick?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=CpTableFooterDesktop.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CpTableFooterDesktop.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpTableFooterDesktop.vue"],"names":[],"mappings":"AA+BA;AA4EA,UAAU,KAAK;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAmGD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAqBxD,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
numberOfResults: number;
|
|
3
|
+
pageFirstResultIndex: number;
|
|
4
|
+
pageLastResultIndex: number;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=CpTableFooterDetails.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CpTableFooterDetails.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpTableFooterDetails.vue"],"names":[],"mappings":"AAWA;AAmEA,UAAU,KAAK;IACb,eAAe,EAAE,MAAM,CAAA;IACvB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,mBAAmB,EAAE,MAAM,CAAA;CAC5B;;AAwED,wBAMG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isNextEnabled: boolean;
|
|
3
|
+
isPreviousEnabled: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_13: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
'footer-details'?: (props: typeof __VLS_13) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
onNextClick: () => any;
|
|
11
|
+
onPreviousClick: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
onOnNextClick?: (() => any) | undefined;
|
|
14
|
+
onOnPreviousClick?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=CpTableFooterMobile.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CpTableFooterMobile.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpTableFooterMobile.vue"],"names":[],"mappings":"AA+BA;AAmEA,UAAU,KAAK;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAwHD,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAqBzD,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|