@infineon/infineon-design-system-stencil 32.0.0--canary.1697.a15ee4ccbdd9dbcd9a1241c15d2582a109590032.0 → 32.0.0--canary.1697.956f8b43f677df8debb18c1468456d6bd06dbccb.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,11 +1,10 @@
1
- import { action } from "@storybook/addon-actions";
2
1
  export default {
3
2
  title: 'Components/Pagination',
4
3
  // tags: ['autodocs'],
5
4
  args: {
6
5
  total: 50,
7
6
  currentPage: 1,
8
- itemsPerPage: '[{"value":"ten","label":"10","selected":true}, {"value":"Twenty","label":"20","selected":false}, {"value":"Thirty","label":"30","selected":false}]'
7
+ itemsPerPage: '[{"label":"10","selected":true}, {"label":"20","selected":false}, {"label":"30","selected":false}]'
9
8
  },
10
9
  argTypes: {
11
10
  currentPage: {
@@ -45,14 +44,15 @@ export default {
45
44
  },
46
45
  },
47
46
  };
48
- const DefaultTemplate = args => {
49
- const element = document.createElement('ifx-pagination');
50
- element.setAttribute('total', args.total);
51
- element.setAttribute('current-page', args.currentPage);
52
- element.setAttribute('items-per-page', args.itemsPerPage);
53
- element.addEventListener('ifxPageChange', action('ifxPageChange'));
54
- return element;
55
- };
47
+ const DefaultTemplate = args => `<ifx-pagination total="${args.total}" current-page="${args.currentPage}" items-per-page='${args.itemsPerPage}'></ifx-pagination>`;
48
+ // const DefaultTemplate = args => {
49
+ // const element = document.createElement('ifx-pagination');
50
+ // element.setAttribute('total', args.total);
51
+ // element.setAttribute('current-page', args.currentPage);
52
+ // element.setAttribute('items-per-page', args.itemsPerPage);
53
+ // element.addEventListener('ifxPageChange', action('ifxPageChange'));
54
+ // return element;
55
+ // };
56
56
  export const Default = DefaultTemplate.bind({});
57
57
  Default.argTypes = {};
58
58
  //# sourceMappingURL=pagination.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.stories.js","sourceRoot":"","sources":["../../../src/components/pagination/pagination.stories.ts"],"names":[],"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,eAAe,CAAC,CAAC,CAAC;IACnE,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,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: '[{\"value\":\"ten\",\"label\":\"10\",\"selected\":true}, {\"value\":\"Twenty\",\"label\":\"20\",\"selected\":false}, {\"value\":\"Thirty\",\"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\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\nconst DefaultTemplate = args => {\n const element = document.createElement('ifx-pagination');\n element.setAttribute('total', args.total);\n element.setAttribute('current-page', args.currentPage);\n element.setAttribute('items-per-page', args.itemsPerPage);\n element.addEventListener('ifxPageChange', action('ifxPageChange'));\n return element;\n};\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
1
+ {"version":3,"file":"pagination.stories.js","sourceRoot":"","sources":["../../../src/components/pagination/pagination.stories.ts"],"names":[],"mappings":"AACA,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,sBAAsB;IAEtB,IAAI,EAAE;QACJ,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,oGAAoG;KACnH;IACD,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,WAAW,EAAE,sBAAsB;YACnC,KAAK,EAAE;gBACL,QAAQ,EAAE,sBAAsB;gBAChC,YAAY,EAAE;oBACZ,SAAS,EAAE,GAAG;iBACf;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QAED,KAAK,EAAE;YACL,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE;gBACL,QAAQ,EAAE,sBAAsB;gBAChC,YAAY,EAAE;oBACZ,SAAS,EAAE,GAAG;iBACf;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QAED,aAAa,EAAE;YACb,MAAM,EAAE,eAAe;YACvB,WAAW,EAAE,4CAA4C;YACzD,KAAK,EAAE;gBACL,QAAQ,EAAE,eAAe;gBACzB,IAAI,EAAE;oBACJ,OAAO,EAAE,uBAAuB;oBAChC,MAAM,EACJ,kNAAkN;iBACrN;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAC7B,0BAA0B,IAAI,CAAC,KAAK,mBAAmB,IAAI,CAAC,WAAW,qBAAqB,IAAI,CAAC,YAAY,qBAAqB,CAAA;AAEpI,oCAAoC;AACpC,8DAA8D;AAC9D,+CAA+C;AAC/C,4DAA4D;AAC5D,+DAA+D;AAC/D,wEAAwE;AACxE,oBAAoB;AACpB,KAAK;AAEL,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["\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\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\nconst DefaultTemplate = args => \n `<ifx-pagination total=\"${args.total}\" current-page=\"${args.currentPage}\" items-per-page='${args.itemsPerPage}'></ifx-pagination>`\n\n// const DefaultTemplate = args => {\n// const element = document.createElement('ifx-pagination');\n// element.setAttribute('total', args.total);\n// element.setAttribute('current-page', args.currentPage);\n// element.setAttribute('items-per-page', args.itemsPerPage);\n// element.addEventListener('ifxPageChange', action('ifxPageChange'));\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.a15ee4ccbdd9dbcd9a1241c15d2582a109590032.0",
3
+ "version": "32.0.0--canary.1697.956f8b43f677df8debb18c1468456d6bd06dbccb.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",