@infineon/infineon-design-system-stencil 32.0.0--canary.1697.76e381a68568338ae3d436f29413cb8226e13056.0 → 32.0.0--canary.1697.7392dd8955b19e94f9c34f956c5dcdbf9c551369.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.
@@ -1,3 +1,4 @@
|
|
1
|
+
import { action } from "@storybook/addon-actions";
|
1
2
|
export default {
|
2
3
|
title: 'Components/Pagination',
|
3
4
|
// tags: ['autodocs'],
|
@@ -53,15 +54,14 @@ export default {
|
|
53
54
|
},
|
54
55
|
},
|
55
56
|
};
|
56
|
-
const DefaultTemplate = args =>
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
// };
|
57
|
+
const DefaultTemplate = args => {
|
58
|
+
const element = `<ifx-pagination total="${args.total}" current-page="${args.currentPage}" items-per-page='${args.itemsPerPage}'></ifx-pagination>`;
|
59
|
+
setTimeout(() => {
|
60
|
+
var _a;
|
61
|
+
(_a = document.querySelector('ifx-pagination')) === null || _a === void 0 ? void 0 : _a.addEventListener('ifxPageChange', action('ifxPageChange'));
|
62
|
+
}, 0);
|
63
|
+
return element;
|
64
|
+
};
|
65
65
|
export const Default = DefaultTemplate.bind({});
|
66
66
|
Default.argTypes = {};
|
67
67
|
//# sourceMappingURL=pagination.stories.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pagination.stories.js","sourceRoot":"","sources":["../../../src/components/pagination/pagination.stories.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pagination.stories.js","sourceRoot":"","sources":["../../../src/components/pagination/pagination.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,sBAAsB;IAEtB,IAAI,EAAE;QACJ,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;QAC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AAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["import { action } from '@storybook/addon-actions';\n\nexport default {\n title: 'Components/Pagination',\n // tags: ['autodocs'],\n\n args: {\n total: 50,\n currentPage: 1,\n itemsPerPage: '[{\"label\":\"10\",\"selected\":true}, {\"label\":\"20\",\"selected\":false}, {\"label\":\"30\",\"selected\":false}]'\n },\n argTypes: {\n currentPage: {\n description: 'Current page number.',\n table: {\n category: 'Ifx-pagination props',\n defaultValue: {\n 'summary': '0'\n },\n type: {\n summary: 'number',\n },\n },\n },\n\n total: {\n description: 'Total number of items.',\n table: {\n category: 'Ifx-pagination props',\n defaultValue: {\n 'summary': '1'\n },\n type: {\n summary: 'number',\n },\n },\n },\n itemsPerPage: {\n description: 'Stringified array of objects setting up the items per page.',\n table: {\n category: 'Ifx-pagination props',\n type: {\n summary: 'string',\n },\n },\n },\n\n ifxPageChange: {\n action: 'ifxPageChange',\n description: 'Custom event emitted when page is changed.',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxPageChange={handlePageChange}\\nVue:@ifxPageChange=\"handlePageChange\"\\nAngular:(ifxPageChange)=\"handlePageChange()\"\\nVanillaJs:.addEventListener(\"ifxPageChange\", (event) => {//handle page change});',\n },\n },\n },\n },\n};\n\n\nconst DefaultTemplate = args => {\n const element = `<ifx-pagination total=\"${args.total}\" current-page=\"${args.currentPage}\" items-per-page='${args.itemsPerPage}'></ifx-pagination>`\n setTimeout(() => {\n document.querySelector('ifx-pagination')?.addEventListener('ifxPageChange', action('ifxPageChange'));\n }, 0);\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@infineon/infineon-design-system-stencil",
|
3
|
-
"version": "32.0.0--canary.1697.
|
3
|
+
"version": "32.0.0--canary.1697.7392dd8955b19e94f9c34f956c5dcdbf9c551369.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Infineon design system Stencil web components",
|
6
6
|
"homepage": "https://infineon.github.io/infineon-design-system-stencil",
|