@kyndryl-design-system/shidoka-applications 1.3.6 → 1.3.7
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/components/reusable/modal/modal.scss.js +9 -0
- package/components/reusable/modal/modal.scss.js.map +1 -1
- package/components/reusable/pagination/Pagination.d.ts +2 -0
- package/components/reusable/pagination/Pagination.d.ts.map +1 -1
- package/components/reusable/pagination/Pagination.js.map +1 -1
- package/components/reusable/table/data-table.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -28,6 +28,10 @@ import'./../../../external/@lit/reactive-element/reactive-element.js';import'./.
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
:host {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
dialog {
|
|
32
36
|
padding: 32px;
|
|
33
37
|
color: inherit;
|
|
@@ -74,6 +78,11 @@ button:active {
|
|
|
74
78
|
color: var(--kd-color-text-pressed);
|
|
75
79
|
}
|
|
76
80
|
|
|
81
|
+
.anchor {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
77
86
|
header {
|
|
78
87
|
margin-bottom: 32px;
|
|
79
88
|
margin-right: 16px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,6 +9,8 @@ import './pagination-navigation-buttons';
|
|
|
9
9
|
* navigate through large datasets by splitting them into discrete chunks.
|
|
10
10
|
* Integrates with other utility components like items range display, page size dropdown,
|
|
11
11
|
* and navigation buttons.
|
|
12
|
+
* @fires on-page-size-change - Dispatched when the page size changes.
|
|
13
|
+
* @fires on-page-number-change - Dispatched when the currently active page changes.
|
|
12
14
|
*
|
|
13
15
|
*/
|
|
14
16
|
export declare class Pagination extends LitElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/pagination/Pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,0BAA0B,CAAC;AAClC,OAAO,iCAAiC,CAAC;AACzC,OAAO,iCAAiC,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/pagination/Pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,0BAA0B,CAAC;AAClC,OAAO,iCAAiC,CAAC;AACzC,OAAO,iCAAiC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,qBACa,UAAW,SAAQ,UAAU;IACxC,OAAgB,MAAM,iCAAY;IAElC,kDAAkD;IAElD,KAAK,SAAK;IAEV,iCAAiC;IAEjC,UAAU,SAAK;IAEf,yCAAyC;IAEzC,QAAQ,SAAK;IAEb,0CAA0C;IAE1C,eAAe,EAAE,MAAM,EAAE,CAAgC;IAEzD,uCAAuC;IAEvC,aAAa,SAAmB;IAEhC,8CAA8C;IAE9C,cAAc,UAAS;IAEvB,6CAA6C;IAE7C,oBAAoB,UAAS;IAE7B,6CAA6C;IAE7C,qBAAqB,UAAS;IAE9B;;;OAGG;IAEH,QAAQ,UAAkC;IAE1C;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAK5B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAIrB,MAAM;CAoChB;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,UAAU,CAAC;KAC9B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.js","sources":["../../../../src/components/reusable/pagination/Pagination.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\n\nimport { PAGE_SIZE_LABEL, BREAKPOINT } from './constants';\nimport styles from './pagination.scss';\n\nimport './pagination-items-range';\nimport './pagination-page-size-dropdown';\nimport './pagination-navigation-buttons';\n\n/**\n * `kyn-pagination` Web Component.\n *\n * A component that provides pagination functionality, enabling the user to\n * navigate through large datasets by splitting them into discrete chunks.\n * Integrates with other utility components like items range display, page size dropdown,\n * and navigation buttons.\n *\n */\n@customElement('kyn-pagination')\nexport class Pagination extends LitElement {\n static override styles = [styles];\n\n /** Total number of items that need pagination. */\n @property({ type: Number })\n count = 0;\n\n /** Current active page number.*/\n @property({ type: Number, reflect: true })\n pageNumber = 1;\n\n /** Number of items displayed per page.*/\n @property({ type: Number })\n pageSize = 5;\n\n /** Available options for the page size.*/\n @property({ type: Array<Number> })\n pageSizeOptions: number[] = [5, 10, 20, 30, 40, 50, 100];\n\n /** Label for the page size dropdown.*/\n @property({ type: String })\n pageSizeLabel = PAGE_SIZE_LABEL;\n\n /** Option to hide the items range display. */\n @property({ type: Boolean })\n hideItemsRange = false;\n\n /** Option to hide the page size dropdown. */\n @property({ type: Boolean })\n hidePageSizeDropdown = false;\n\n /** Option to hide the navigation buttons. */\n @property({ type: Boolean })\n hideNavigationButtons = false;\n\n /**\n * Determines the device type the component is being rendered on.\n * @ignore\n */\n @state()\n isMobile = window.innerWidth < BREAKPOINT;\n\n /**\n * Handler for the event when the page size is changed by the user.\n * Updates the `pageSize` and resets the `pageNumber` to 1.\n *\n * @param e - The emitted custom event with the selected page size.\n */\n private handlePageSizeChange(e: CustomEvent) {\n this.pageSize = e.detail.value;\n this.pageNumber = 1;\n }\n\n /**\n * Handler for the event when the page number is changed by the user.\n * Updates the `pageNumber`.\n *\n * @param e - The emitted custom event with the selected page number.\n */\n private handlePageNumberChange(e: CustomEvent) {\n this.pageNumber = e.detail.value;\n }\n\n override render() {\n const numberOfPages = Math.ceil(this.count / this.pageSize);\n\n return html`\n ${!this.hideItemsRange\n ? html`\n <kyn-pagination-items-range\n .pageNumber=${this.pageNumber}\n .pageSize=${this.pageSize}\n .count=${this.count}\n ></kyn-pagination-items-range>\n `\n : null}\n ${this.isMobile\n ? null\n : !this.hidePageSizeDropdown\n ? html`\n <kyn-pagination-page-size-dropdown\n .pageSize=${this.pageSize}\n .pageSizeOptions=${this.pageSizeOptions}\n .pageSizeLabel=${this.pageSizeLabel}\n @on-page-size-change=${this.handlePageSizeChange}\n ></kyn-pagination-page-size-dropdown>\n `\n : null}\n ${!this.hideNavigationButtons\n ? html`\n <kyn-pagination-navigation-buttons\n .pageNumber=${this.pageNumber}\n .numberOfPages=${numberOfPages}\n @on-page-number-change=${this.handlePageNumberChange}\n ></kyn-pagination-navigation-buttons>\n `\n : null}\n `;\n }\n}\n\n// Define the custom element in the global namespace\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-pagination': Pagination;\n }\n}\n"],"names":["Pagination","LitElement","constructor","this","count","pageNumber","pageSize","pageSizeOptions","pageSizeLabel","PAGE_SIZE_LABEL","hideItemsRange","hidePageSizeDropdown","hideNavigationButtons","isMobile","window","innerWidth","BREAKPOINT","handlePageSizeChange","e","detail","value","handlePageNumberChange","render","numberOfPages","Math","ceil","html","styles","__decorate","property","type","Number","prototype","reflect","String","Boolean","state","customElement"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Pagination.js","sources":["../../../../src/components/reusable/pagination/Pagination.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\n\nimport { PAGE_SIZE_LABEL, BREAKPOINT } from './constants';\nimport styles from './pagination.scss';\n\nimport './pagination-items-range';\nimport './pagination-page-size-dropdown';\nimport './pagination-navigation-buttons';\n\n/**\n * `kyn-pagination` Web Component.\n *\n * A component that provides pagination functionality, enabling the user to\n * navigate through large datasets by splitting them into discrete chunks.\n * Integrates with other utility components like items range display, page size dropdown,\n * and navigation buttons.\n * @fires on-page-size-change - Dispatched when the page size changes.\n * @fires on-page-number-change - Dispatched when the currently active page changes.\n *\n */\n@customElement('kyn-pagination')\nexport class Pagination extends LitElement {\n static override styles = [styles];\n\n /** Total number of items that need pagination. */\n @property({ type: Number })\n count = 0;\n\n /** Current active page number.*/\n @property({ type: Number, reflect: true })\n pageNumber = 1;\n\n /** Number of items displayed per page.*/\n @property({ type: Number })\n pageSize = 5;\n\n /** Available options for the page size.*/\n @property({ type: Array<Number> })\n pageSizeOptions: number[] = [5, 10, 20, 30, 40, 50, 100];\n\n /** Label for the page size dropdown.*/\n @property({ type: String })\n pageSizeLabel = PAGE_SIZE_LABEL;\n\n /** Option to hide the items range display. */\n @property({ type: Boolean })\n hideItemsRange = false;\n\n /** Option to hide the page size dropdown. */\n @property({ type: Boolean })\n hidePageSizeDropdown = false;\n\n /** Option to hide the navigation buttons. */\n @property({ type: Boolean })\n hideNavigationButtons = false;\n\n /**\n * Determines the device type the component is being rendered on.\n * @ignore\n */\n @state()\n isMobile = window.innerWidth < BREAKPOINT;\n\n /**\n * Handler for the event when the page size is changed by the user.\n * Updates the `pageSize` and resets the `pageNumber` to 1.\n *\n * @param e - The emitted custom event with the selected page size.\n */\n private handlePageSizeChange(e: CustomEvent) {\n this.pageSize = e.detail.value;\n this.pageNumber = 1;\n }\n\n /**\n * Handler for the event when the page number is changed by the user.\n * Updates the `pageNumber`.\n *\n * @param e - The emitted custom event with the selected page number.\n */\n private handlePageNumberChange(e: CustomEvent) {\n this.pageNumber = e.detail.value;\n }\n\n override render() {\n const numberOfPages = Math.ceil(this.count / this.pageSize);\n\n return html`\n ${!this.hideItemsRange\n ? html`\n <kyn-pagination-items-range\n .pageNumber=${this.pageNumber}\n .pageSize=${this.pageSize}\n .count=${this.count}\n ></kyn-pagination-items-range>\n `\n : null}\n ${this.isMobile\n ? null\n : !this.hidePageSizeDropdown\n ? html`\n <kyn-pagination-page-size-dropdown\n .pageSize=${this.pageSize}\n .pageSizeOptions=${this.pageSizeOptions}\n .pageSizeLabel=${this.pageSizeLabel}\n @on-page-size-change=${this.handlePageSizeChange}\n ></kyn-pagination-page-size-dropdown>\n `\n : null}\n ${!this.hideNavigationButtons\n ? html`\n <kyn-pagination-navigation-buttons\n .pageNumber=${this.pageNumber}\n .numberOfPages=${numberOfPages}\n @on-page-number-change=${this.handlePageNumberChange}\n ></kyn-pagination-navigation-buttons>\n `\n : null}\n `;\n }\n}\n\n// Define the custom element in the global namespace\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-pagination': Pagination;\n }\n}\n"],"names":["Pagination","LitElement","constructor","this","count","pageNumber","pageSize","pageSizeOptions","pageSizeLabel","PAGE_SIZE_LABEL","hideItemsRange","hidePageSizeDropdown","hideNavigationButtons","isMobile","window","innerWidth","BREAKPOINT","handlePageSizeChange","e","detail","value","handlePageNumberChange","render","numberOfPages","Math","ceil","html","styles","__decorate","property","type","Number","prototype","reflect","String","Boolean","state","customElement"],"mappings":"y2BAsBO,IAAMA,EAAN,cAAyBC,EAAzBC,kCAKLC,KAAKC,MAAG,EAIRD,KAAUE,WAAG,EAIbF,KAAQG,SAAG,EAIXH,KAAAI,gBAA4B,CAAC,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,KAIpDJ,KAAaK,cAAGC,EAIhBN,KAAcO,gBAAG,EAIjBP,KAAoBQ,sBAAG,EAIvBR,KAAqBS,uBAAG,EAOxBT,KAAAU,SAAWC,OAAOC,WAAaC,CA2DhC,CAnDSC,qBAAqBC,GAC3Bf,KAAKG,SAAWY,EAAEC,OAAOC,MACzBjB,KAAKE,WAAa,CACnB,CAQOgB,uBAAuBH,GAC7Bf,KAAKE,WAAaa,EAAEC,OAAOC,KAC5B,CAEQE,SACP,MAAMC,EAAgBC,KAAKC,KAAKtB,KAAKC,MAAQD,KAAKG,UAElD,OAAOoB,CAAI;QACNvB,KAAKO,eAQJ,KAPAgB,CAAI;;4BAEcvB,KAAKE;0BACPF,KAAKG;uBACRH,KAAKC;;;QAIpBD,KAAKU,UAEFV,KAAKQ,qBADN,KAEAe,CAAI;;0BAEYvB,KAAKG;iCACEH,KAAKI;+BACPJ,KAAKK;qCACCL,KAAKc;;;QAIjCd,KAAKS,sBAQJ,KAPAc,CAAI;;4BAEcvB,KAAKE;+BACFkB;uCACQpB,KAAKkB;;;KAKzC,GAjGerB,EAAA2B,OAAS,CAACA,GAI1BC,EAAA,CADCC,EAAS,CAAEC,KAAMC,UACR/B,EAAAgC,UAAA,aAAA,GAIVJ,EAAA,CADCC,EAAS,CAAEC,KAAMC,OAAQE,SAAS,KACpBjC,EAAAgC,UAAA,kBAAA,GAIfJ,EAAA,CADCC,EAAS,CAAEC,KAAMC,UACL/B,EAAAgC,UAAA,gBAAA,GAIbJ,EAAA,CADCC,EAAS,CAAEC,cAC6C9B,EAAAgC,UAAA,uBAAA,GAIzDJ,EAAA,CADCC,EAAS,CAAEC,KAAMI,UACclC,EAAAgC,UAAA,qBAAA,GAIhCJ,EAAA,CADCC,EAAS,CAAEC,KAAMK,WACKnC,EAAAgC,UAAA,sBAAA,GAIvBJ,EAAA,CADCC,EAAS,CAAEC,KAAMK,WACWnC,EAAAgC,UAAA,4BAAA,GAI7BJ,EAAA,CADCC,EAAS,CAAEC,KAAMK,WACYnC,EAAAgC,UAAA,6BAAA,GAO9BJ,EAAA,CADCQ,KACyCpC,EAAAgC,UAAA,gBAAA,GAxC/BhC,EAAU4B,EAAA,CADtBS,EAAc,mBACFrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/table/data-table.stories.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,OAAO,6DAA6D,CAAC;AACrE,OAAO,2DAA2D,CAAC;AAGnE,OAAO,SAAS,CAAC;AACjB,OAAO,cAAc,CAAC;AACtB,OAAO,6BAA6B,CAAC;AACrC,OAAO,+BAA+B,CAAC;AAGvC,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"data-table.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/table/data-table.stories.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,OAAO,6DAA6D,CAAC;AACrE,OAAO,2DAA2D,CAAC;AAGnE,OAAO,SAAS,CAAC;AACjB,OAAO,cAAc,CAAC;AACtB,OAAO,6BAA6B,CAAC;AACrC,OAAO,+BAA+B,CAAC;AAGvC,QAAA,MAAM,IAAI,EAAE,IAgCX,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,KAAK,KAAK,GAAG,QAAQ,GAAG;IACtB,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;KAC5B,CAAC;CACH,CAAC;AAqYF,eAAO,MAAM,UAAU,SAAU,GAAG,yCA4CnC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAS1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAcvB,CAAC"}
|