@infineon/infineon-design-system-stencil 39.5.3--canary.2143.7e22c74e4f4e08bfb2cb8d5e5811adf79267a112.0 → 39.5.3--canary.2144.4d6adbdd15b2843a11fb5f8cf503f6424f864373.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/cjs/ifx-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-checkbox.cjs.entry.js +12 -12
- package/dist/cjs/ifx-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/ifx-faq.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ifx-filter-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/ifx-filter-type-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js +10 -10
- package/dist/cjs/ifx-search-field.cjs.entry.js +59 -2
- package/dist/cjs/ifx-search-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ifx-search-field.entry.cjs.js.map +1 -1
- package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segmented-control.cjs.entry.js +2 -2
- package/dist/cjs/ifx-select.cjs.entry.js +2 -2
- package/dist/cjs/ifx-slider.cjs.entry.js +2 -2
- package/dist/cjs/ifx-spinner_2.cjs.entry.js +4 -4
- package/dist/cjs/ifx-status.cjs.entry.js +1 -1
- package/dist/cjs/ifx-step.cjs.entry.js +4 -4
- package/dist/cjs/ifx-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ifx-switch.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tab.cjs.entry.js +1 -1
- package/dist/cjs/ifx-table.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ifx-templates-ui.cjs.entry.js +1 -1
- package/dist/cjs/ifx-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/ifx-tree-view-item.cjs.entry.js +2 -2
- package/dist/cjs/ifx-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/infineon-design-system-stencil.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +15 -14
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/search-field/search-field.js +59 -2
- package/dist/collection/components/search-field/search-field.js.map +1 -1
- package/dist/collection/components/segmented-control/segment/segment.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +2 -2
- package/dist/collection/components/select/multi-select/multiselect-option.js +4 -4
- package/dist/collection/components/select/multi-select/multiselect.js +6 -6
- package/dist/collection/components/select/single-select/select.js +2 -2
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/spinner/spinner.js +2 -2
- package/dist/collection/components/status/status.js +1 -1
- package/dist/collection/components/stepper/step/step.js +4 -4
- package/dist/collection/components/stepper/stepper.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-bar/filter-bar.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-accordion/filter-accordion.js +2 -2
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-search/filter-search.js +1 -1
- package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js +1 -1
- package/dist/collection/components/table-advanced-version/list/list-entry/list-entry.js +1 -1
- package/dist/collection/components/table-advanced-version/table.js +2 -2
- package/dist/collection/components/table-advanced-version/table.stories.js +71 -71
- package/dist/collection/components/table-advanced-version/table.stories.js.map +1 -1
- package/dist/collection/components/table-basic-version/table.js +1 -1
- package/dist/collection/components/table-basic-version/table.stories.js +15 -15
- package/dist/collection/components/table-basic-version/table.stories.js.map +1 -1
- package/dist/collection/components/tabs/tab.js +1 -1
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/templates/template/template.js +1 -1
- package/dist/collection/components/templates/templates-ui/templates-ui.js +1 -1
- package/dist/collection/components/text-field/text-field.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/tree-view/tree-view-item.js +2 -2
- package/dist/collection/components/tree-view/tree-view.js +1 -1
- package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
- package/dist/components/ifx-basic-table.js +1 -1
- package/dist/components/ifx-checkbox.js +1 -1
- package/dist/components/ifx-chip-item.js +1 -1
- package/dist/components/ifx-faq.js +1 -1
- package/dist/components/ifx-filter-accordion.js +2 -2
- package/dist/components/ifx-filter-bar.js +1 -1
- package/dist/components/ifx-filter-search.js +2 -2
- package/dist/components/ifx-filter-type-group.js +1 -1
- package/dist/components/ifx-icons-preview.js +1 -1
- package/dist/components/ifx-list-entry.js +2 -2
- package/dist/components/ifx-multiselect-option.js +1 -1
- package/dist/components/ifx-multiselect.js +1 -1
- package/dist/components/ifx-pagination.js +1 -1
- package/dist/components/ifx-search-bar.js +1 -1
- package/dist/components/ifx-search-field.js +1 -1
- package/dist/components/ifx-segment.js +1 -1
- package/dist/components/ifx-segmented-control.js +2 -2
- package/dist/components/ifx-select.js +1 -1
- package/dist/components/ifx-set-filter.js +6 -6
- package/dist/components/ifx-slider.js +2 -2
- package/dist/components/ifx-spinner.js +1 -1
- package/dist/components/ifx-status.js +1 -1
- package/dist/components/ifx-step.js +4 -4
- package/dist/components/ifx-stepper.js +2 -2
- package/dist/components/ifx-switch.js +1 -1
- package/dist/components/ifx-tab.js +1 -1
- package/dist/components/ifx-table.js +6 -6
- package/dist/components/ifx-tabs.js +2 -2
- package/dist/components/ifx-template.js +1 -1
- package/dist/components/ifx-templates-ui.js +4 -4
- package/dist/components/ifx-text-field.js +1 -1
- package/dist/components/ifx-textarea.js +2 -2
- package/dist/components/ifx-tooltip.js +4 -4
- package/dist/components/ifx-tree-view-item.js +3 -3
- package/dist/components/ifx-tree-view.js +1 -1
- package/dist/components/{p-DQYngnHn.js → p-B-I2VhI5.js} +10 -10
- package/dist/components/{p-DQYngnHn.js.map → p-B-I2VhI5.js.map} +1 -1
- package/dist/components/{p-DGAOPH_P.js → p-B61i82g5.js} +4 -4
- package/dist/components/{p-DGAOPH_P.js.map → p-B61i82g5.js.map} +1 -1
- package/dist/components/{p-WVpEOqoG.js → p-BG2S8rtL.js} +3 -3
- package/dist/components/{p-WVpEOqoG.js.map → p-BG2S8rtL.js.map} +1 -1
- package/dist/components/{p-DxKWinW1.js → p-Bc_ZM813.js} +7 -7
- package/dist/components/{p-DxKWinW1.js.map → p-Bc_ZM813.js.map} +1 -1
- package/dist/components/{p-D7r3u21_.js → p-C53lC4vo.js} +3 -3
- package/dist/components/{p-D7r3u21_.js.map → p-C53lC4vo.js.map} +1 -1
- package/dist/components/{p-CtzLf4yZ.js → p-CROLVxZq.js} +16 -15
- package/dist/components/p-CROLVxZq.js.map +1 -0
- package/dist/components/{p-BxWZjkxk.js → p-DdOsLLJc.js} +4 -4
- package/dist/components/{p-BxWZjkxk.js.map → p-DdOsLLJc.js.map} +1 -1
- package/dist/components/{p-Dce2xAGf.js → p-DmM40b2X.js} +5 -5
- package/dist/components/{p-Dce2xAGf.js.map → p-DmM40b2X.js.map} +1 -1
- package/dist/components/{p-kFkxPh9g.js → p-GP5uSTr1.js} +4 -4
- package/dist/components/{p-kFkxPh9g.js.map → p-GP5uSTr1.js.map} +1 -1
- package/dist/components/{p-BO6nWGLo.js → p-ZCLJED5S.js} +61 -4
- package/dist/components/p-ZCLJED5S.js.map +1 -0
- package/dist/esm/ifx-alert_2.entry.js +1 -1
- package/dist/esm/ifx-basic-table.entry.js +1 -1
- package/dist/esm/ifx-checkbox.entry.js +12 -12
- package/dist/esm/ifx-checkbox.entry.js.map +1 -1
- package/dist/esm/ifx-faq.entry.js +1 -1
- package/dist/esm/ifx-filter-accordion.entry.js +2 -2
- package/dist/esm/ifx-filter-bar.entry.js +1 -1
- package/dist/esm/ifx-filter-search.entry.js +1 -1
- package/dist/esm/ifx-filter-type-group.entry.js +1 -1
- package/dist/esm/ifx-list-entry.entry.js +1 -1
- package/dist/esm/ifx-multiselect_2.entry.js +10 -10
- package/dist/esm/ifx-search-field.entry.js +59 -2
- package/dist/esm/ifx-search-field.entry.js.map +1 -1
- package/dist/esm/ifx-segment.entry.js +1 -1
- package/dist/esm/ifx-segmented-control.entry.js +2 -2
- package/dist/esm/ifx-select.entry.js +2 -2
- package/dist/esm/ifx-slider.entry.js +2 -2
- package/dist/esm/ifx-spinner_2.entry.js +4 -4
- package/dist/esm/ifx-status.entry.js +1 -1
- package/dist/esm/ifx-step.entry.js +4 -4
- package/dist/esm/ifx-stepper.entry.js +2 -2
- package/dist/esm/ifx-switch.entry.js +1 -1
- package/dist/esm/ifx-tab.entry.js +1 -1
- package/dist/esm/ifx-table.entry.js +2 -2
- package/dist/esm/ifx-tabs.entry.js +2 -2
- package/dist/esm/ifx-templates-ui.entry.js +1 -1
- package/dist/esm/ifx-textarea.entry.js +2 -2
- package/dist/esm/ifx-tooltip.entry.js +4 -4
- package/dist/esm/ifx-tree-view-item.entry.js +2 -2
- package/dist/esm/ifx-tree-view.entry.js +1 -1
- package/dist/esm/infineon-design-system-stencil.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/infineon-design-system-stencil/ifx-checkbox.entry.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/ifx-search-field.entry.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/{p-8eef85bc.entry.js → p-0d4211db.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-44026267.entry.js → p-0d9da371.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b3ba9994.entry.js → p-13fed6df.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-22a45c93.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-2a7e30cf.entry.js.map → p-22a45c93.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-2b4778da.entry.js → p-242fc6b0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ebce6648.entry.js → p-372fa9eb.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ddff8e4e.entry.js → p-3f3a5140.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c3362d41.entry.js → p-453bd9bd.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-39a29970.entry.js → p-54785004.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f06af3d9.entry.js → p-6407c496.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6162a610.entry.js → p-6504f8d0.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-fc030370.entry.js → p-83816596.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8aabbd26.entry.js → p-8ab64504.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9577d799.entry.js → p-913a8693.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-07e1efa5.entry.js → p-98c2e3a9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0d5a32ec.entry.js → p-9ea43bb7.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f855d12d.entry.js → p-af1e0cb5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-b23596f4.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-b23596f4.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-9dbede78.entry.js → p-b5efb1d6.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-ba4ee343.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-c9d594e1.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-bfbe3ddc.entry.js.map → p-c9d594e1.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/p-d3a6bbf7.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-3b5cf4ca.entry.js → p-dcc7240e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4fca78a6.entry.js → p-e7b72d33.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-fef185c2.entry.js → p-eed36710.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a827c4bc.entry.js → p-f5811026.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-49eb8d14.entry.js → p-f63ba4a3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-f63ba4a3.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-1fcb504e.entry.js → p-fe373208.entry.js} +2 -2
- package/dist/types/components/checkbox/checkbox.d.ts +1 -0
- package/dist/types/components/search-field/search-field.d.ts +4 -0
- package/package.json +2 -2
- package/dist/components/p-BO6nWGLo.js.map +0 -1
- package/dist/components/p-CtzLf4yZ.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-2537f7fe.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-2a7e30cf.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-49eb8d14.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-8d19ae4f.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-8d19ae4f.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-9c93e258.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-bfbe3ddc.entry.js +0 -2
- /package/dist/infineon-design-system-stencil/{p-8eef85bc.entry.js.map → p-0d4211db.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-44026267.entry.js.map → p-0d9da371.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b3ba9994.entry.js.map → p-13fed6df.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2b4778da.entry.js.map → p-242fc6b0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ebce6648.entry.js.map → p-372fa9eb.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ddff8e4e.entry.js.map → p-3f3a5140.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c3362d41.entry.js.map → p-453bd9bd.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-39a29970.entry.js.map → p-54785004.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f06af3d9.entry.js.map → p-6407c496.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6162a610.entry.js.map → p-6504f8d0.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-fc030370.entry.js.map → p-83816596.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8aabbd26.entry.js.map → p-8ab64504.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9577d799.entry.js.map → p-913a8693.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-07e1efa5.entry.js.map → p-98c2e3a9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0d5a32ec.entry.js.map → p-9ea43bb7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f855d12d.entry.js.map → p-af1e0cb5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9dbede78.entry.js.map → p-b5efb1d6.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9c93e258.entry.js.map → p-ba4ee343.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2537f7fe.entry.js.map → p-d3a6bbf7.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3b5cf4ca.entry.js.map → p-dcc7240e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4fca78a6.entry.js.map → p-e7b72d33.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-fef185c2.entry.js.map → p-eed36710.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a827c4bc.entry.js.map → p-f5811026.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1fcb504e.entry.js.map → p-fe373208.entry.js.map} +0 -0
|
@@ -17,7 +17,7 @@ export class Status {
|
|
|
17
17
|
var _a;
|
|
18
18
|
const effectiveColor = ((_a = this.color) === null || _a === void 0 ? void 0 : _a.trim()) ? this.color : 'orange-500';
|
|
19
19
|
const containerClass = this.border ? `container border-${effectiveColor}` : 'container no-border';
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: 'df3241b7191cf739ee30f03c16d86572c6383e47', role: "status", class: containerClass }, h("span", { key: '24cef43702366494d9fbaaa11f8f1b5d84d007d3', class: `dot ${effectiveColor}` }), h("p", { key: 'a2e8854926c0b976f5fbda21d0299fa74d90122e', class: "text" }, this.label)));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "ifx-status"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,7 +42,7 @@ export class Step {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '9a603ade945d1020bcba53fa85777a27f08f7df1', "aria-current": this.active ? 'step' : false, "aria-disabled": this.active || this.complete ? false : true, onClick: (e) => this.stopOnClickPropogation(e), class: `step-wrapper ${this.stepId === 1 ? 'first-step' : ''}
|
|
46
46
|
${this.error ? 'error' : ''}
|
|
47
47
|
${this.stepperState.variant}
|
|
48
48
|
${this.complete ? 'complete' : ''}
|
|
@@ -50,11 +50,11 @@ export class Step {
|
|
|
50
50
|
indicator-${this.stepperState.indicatorPosition}
|
|
51
51
|
${this.active ? 'active' : ''}
|
|
52
52
|
${this.clickable ? 'clickable' : ''}
|
|
53
|
-
${this.disabled ? 'disabled' : ''}` }, h("div", { key: '
|
|
54
|
-
h("div", { key: '
|
|
53
|
+
${this.disabled ? 'disabled' : ''}` }, h("div", { key: 'ec1bdd77edfd87f066df44db5f3f0e115b3f7a67', class: 'step-icon-wrapper' }, this.stepperState.variant !== 'compact' && h("span", { key: '46ae721e9ba89b6f561540d6228b4928d74522a0', class: 'step-connector-l' }), (this.stepperState.variant !== 'compact' && (!this.error || (this.error && this.active))) &&
|
|
54
|
+
h("div", { key: 'e168325daeff9ca6b2ff4e045bce5ec974e9c5d5', class: 'step-icon' }, (this.stepperState.showStepNumber && !this.complete && !this.active) ? this.stepId : '', (this.complete && !this.active) && h("ifx-icon", { key: '4eb3de9575a8704f0ed7e1ade9ccae31ea59c572', icon: 'check16' }), this.active && h("span", { key: 'c0c554eaae6a28783a4597633e4c60dbe14c0fda', class: 'active-indic' })), (this.stepperState.variant !== 'compact' && this.error && !this.active) && h("ifx-icon", { key: '1b27252ddf3369c3732e7b40786645ec2720d8bb', icon: 'warningF16' }), this.stepperState.variant !== 'compact' && h("span", { key: '38bf07c39837ed4f77de59c44a2a32fbdb069439', class: `step-connector-r ${this.active ? 'active' : ''}` })),
|
|
55
55
|
/* Step labels */
|
|
56
56
|
(this.stepperState.variant !== 'compact' || (this.stepperState.variant === 'compact' && (this.active || this.stepId === this.stepperState.activeStep + 1))) &&
|
|
57
|
-
h("div", { key: '
|
|
57
|
+
h("div", { key: 'f13581114efa81deaeecd38ffe27b14d1d3dcc87', tabIndex: !this.disabled && this.complete && !this.active ? 0 : -1, class: `step-label ${this.stepperState.variant === 'compact' ? (this.active ? 'curr-label' : 'next-label') : ''}`, onClick: () => { this.handleStepClick(); }, onKeyDown: (e) => { this.handleStepKeyDown(e); } }, (this.stepperState.variant !== 'compact') && h("slot", { key: '6accb517e6d561549759a3a723c4c24b1729e80a' }), this.stepperState.variant === 'compact' && !this.active ? 'Next: ' : '', this.stepperState.variant === 'compact' && h("slot", { key: 'c6960ab0dd25316c6407433ecad376b66b47d28c' }))));
|
|
58
58
|
}
|
|
59
59
|
;
|
|
60
60
|
static get is() { return "ifx-step"; }
|
|
@@ -125,10 +125,10 @@ export class Stepper {
|
|
|
125
125
|
this.syncIfxSteps();
|
|
126
126
|
}
|
|
127
127
|
render() {
|
|
128
|
-
return (h("div", { key: '
|
|
128
|
+
return (h("div", { key: 'b6ddc5830bc2c1a371411fa1ddeef157b940acd5', "aria-label": this.ariaLabel, "aria-current": this.ariaCurrent, role: 'navigation', class: `stepper ${(this.variant !== 'compact' && this.variant !== 'vertical') ? 'default' : this.variant} ${this.variant === 'compact' ? 'compact-' + this.indicatorPosition : ''}` },
|
|
129
129
|
/* Progress bar for compact variant. */
|
|
130
130
|
(this.variant === 'compact') &&
|
|
131
|
-
h("div", { key: '
|
|
131
|
+
h("div", { key: '043992aa871a912d5f3326e2c8c263865d07c5b3', class: 'stepper-progress' }, h("div", { key: '901254c7f8f706e9541d79ecbbbfb0a37925dd73', class: 'progress-detail' }, `${Math.min(this.activeStep, this.stepsCount)} of ${this.stepsCount}`)), h("div", { key: '7b2757662fb0acd26f47338fdbfce65a977f37ab', class: `stepper-wrapper` }, h("slot", { key: 'b4fd58e8b562c58c4837e5418e24739dc666f35a' }))));
|
|
132
132
|
}
|
|
133
133
|
;
|
|
134
134
|
componentDidRender() {
|
|
@@ -70,7 +70,7 @@ export class Switch {
|
|
|
70
70
|
// this.internals.setFormValue(null);
|
|
71
71
|
// }
|
|
72
72
|
render() {
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: 'dac7ec48eba63ea4fea619b38bc2d42050335fb3', class: "container", role: "switch", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-labelledby": "switch-label", onClick: () => this.toggleSwitch(), onKeyDown: (event) => this.handleKeyDown(event) }, h("div", { key: '4e331d64ea1bd5c2a76b730523c250add430e620', class: `switch__checkbox-container ${this.internalChecked ? 'checked' : ''} ${this.disabled ? 'disabled' : ''}`, tabindex: "0" }, h("div", { key: '7f9d1690039ed6a4a99e4204c0358088aa1f459a', class: "switch__checkbox-wrapper" }, h("input", { key: '9b1b492b35cd3bf74143370bbdf79dc97d456893', type: "checkbox", hidden: true, name: this.name, disabled: this.disabled, checked: this.internalChecked, value: `${this.value}` }), h("div", { key: '27559d56f6fb75e90ac15590245668af0b1ab447', class: `switch ${this.internalChecked ? 'checked' : ''} ${this.disabled ? 'disabled' : ''}` }))), h("div", { key: '783db5d3a6d1619b96ac97501bb889bb1f6a75bc', class: `switch__label-wrapper ${this.disabled ? 'disabled' : ''}` }, h("label", { key: 'ee10d23ac2b7d8d693a3ff8a85fb7af9b09c3445', htmlFor: "switch" }, h("slot", { key: '3b7b243ac57f43997f0111500e59667c2b8c75be', onSlotchange: () => this.toggleLabelGap() })))));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "ifx-switch"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -88,7 +88,7 @@ export class FilterBar {
|
|
|
88
88
|
// Calculate slotsToShow safely
|
|
89
89
|
const slotsToShow = Math.min(safeVisibleSlots, actualNumberOfComponents, Number.MAX_SAFE_INTEGER);
|
|
90
90
|
const slots = Array.from({ length: slotsToShow }, (_, i) => (h("div", { class: "filter-slot-wrapper" }, h("slot", { name: `filter-component-${i + 1}` }))));
|
|
91
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: '2b4927cc61d5e9c566f85544f47b8f3a4305be4e' }, h("div", { key: 'dc3fc02769297cfea89e54f7403bd811ad4cf952', class: "search-container" }, h("slot", { key: '9ec9fe23bd4d14de1d2795d0d2dd21622c93eb76', name: "filter-search" }), " "), h("div", { key: 'c4ea12c884a69fc6905cb178de6da350648821e0', class: "components-container" }, slots.length > 0 ? slots : h("slot", { name: "filter-component" }), this.showMoreFiltersButton && !this.showAllFilters && (h("div", { key: 'd99f66f19f88a1788b9bfdb86b5ceacbe2fd3fad', class: "more-filters-wrapper", onClick: this.handleMoreFiltersClick }, h("ifx-button", { key: 'fbf09d84fc2ea71ece0a6440fc808ddf89b78f65', type: "button", disabled: false, variant: "tertiary", size: "m", target: "_blank", theme: "default", "full-width": "false" }, h("ifx-icon", { key: '930c10fd594a70b820249134cbbb320e17ebf8a7', icon: "filter-16" }), "More filters"))))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "ifx-filter-bar"; }
|
|
94
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,8 +31,8 @@ export class FilterAccordion {
|
|
|
31
31
|
this.el.removeEventListener('ifxListUpdate', this.handleCheckedChange);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
35
|
-
h("div", { key: '
|
|
34
|
+
return (h("div", { key: '70376ec184dcd378c6c595d5b30cdb82c8082de6', class: `accordion ${this.expanded ? 'expanded' : ''}` }, h("div", { key: 'c056174028a70bb2f4e28ced5dd81dca18f1a395', class: `header ${this.expanded ? 'expanded' : ''}`, onClick: this.toggleAccordion }, h("div", { key: 'dcdce6679b05c5acad3ba2216270564ea41cc451', class: `text-and-icon ${this.expanded ? 'expanded' : ''}` }, h("div", { key: '49c6ebef37a4b6798210425c694b4ade083a8216', class: "text" }, h("span", { key: 'd027e2e2cc48441b93d490321ac1b5cb2e8d8103' }, this.filterGroupName), h("ifx-indicator", { key: 'b9c83f3318aadd8c25a232233a83448713c80495', variant: 'number', number: this.count })), h("ifx-icon", { key: 'e4759317302f8f4c876a4f9bb87f1295b816a8a4', class: this.expanded ? '' : 'hidden', icon: "minus-16", onClick: this.toggleAccordion }), h("ifx-icon", { key: '4eb6119e32b9b8871d2b1f77d362499e6d9948ce', class: this.expanded ? 'hidden' : '', icon: "plus-16", onClick: this.toggleAccordion }))), this.expanded &&
|
|
35
|
+
h("div", { key: '833bcbac536f4d39419682e217f1c398c43b8e3b', class: "filter-accordion-container" }, h("slot", { key: '9b6fd50774992f88098423ca1ff8e91587bae9b6', name: "list" }))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "ifx-filter-accordion"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +23,7 @@ export class FilterSearch {
|
|
|
23
23
|
this.ifxFilterSearchChange.emit({ filterName: this.filterName, filterValue: this.filterValue, filterKey: this.filterKey }); // Emitting filterKey along with other properties
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
26
|
+
return (h("div", { key: '19979b3514737df346d309c9080cd42d010aee50', class: `${this.filterOrientation === 'sidebar' ? 'sidebar-filter-search-wrapper' : 'topbar-filter-search-wrapper'}` }, h("div", { key: '6f266b247fb3cc57030f9afe9c59ea7afbf05b6b', class: "filter-name" }, this.filterName), h("ifx-search-field", { key: 'b252531ff2f2754dea952637ce01f9c2f095f92f', placeholder: this.placeholder, "show-delete-icon": this.showDeleteIcon, disabled: this.disabled, value: this.filterValue })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "ifx-filter-search"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table-advanced-version/filter-type-group/filter-type-group.js
CHANGED
|
@@ -119,7 +119,7 @@ export class IfxFilterTypeGroup {
|
|
|
119
119
|
window.removeEventListener('ifxResetFiltersEvent', this.handleResetEvent);
|
|
120
120
|
}
|
|
121
121
|
render() {
|
|
122
|
-
return (h(Host, { key: '
|
|
122
|
+
return (h(Host, { key: '94b9242c4dfad88c33d3cc60ce16f275c6599e19' }, h("div", { key: 'e2e65ea326edd9bb145f3f9dac2828195acd32b3', class: "filter-type-group" }, h("slot", { key: '74ab49bf1a2d7e5ee43f7dfdda975a85791aab55', name: "filter-search" }), h("slot", { key: 'b245f5b5ce1fa14e5c707512947069b9ddd28bc6', name: "filter-accordion" }))));
|
|
123
123
|
}
|
|
124
124
|
static get is() { return "ifx-filter-type-group"; }
|
|
125
125
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class ListEntry {
|
|
|
13
13
|
this.ifxListEntryChange.emit({ label: this.label, value: this.value, type: this.type });
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: '696527cfd70dab938c5cb9ee45add98cfda271ec', class: "wrapper" }, this.type === 'checkbox' ? (h("div", { class: "list-entry" }, h("ifx-checkbox", { size: "s", checked: this.value }, this.label))) : (h("div", { class: "list-entry" }, h("ifx-radio-button", { size: "s", checked: this.value }, this.label)))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "ifx-list-entry"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -829,12 +829,12 @@ export class Table {
|
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
831
|
const filterClass = this.filterOrientation === 'topbar' ? 'topbar-layout' : this.filterOrientation === 'none' ? '' : 'sidebar-layout';
|
|
832
|
-
return (h(Host, { key: '
|
|
832
|
+
return (h(Host, { key: 'a0421844e9c61683bd742e73f1809ffe3e0e6bad' }, h("div", { key: 'cdbddf03c9ec9508afe475280031ac789465c924', class: "table-container" }, this.filterOrientation === 'sidebar' && (h("div", { key: '9190967ad17c4bc873461f9679857aecfc42cf29', class: "sidebar-btn" }, h("ifx-button", { key: 'e6af658a82fa88e87b3b2cc3d377268d4b8e2cf4', type: "button", disabled: false, variant: "secondary", size: "m", target: "_blank", theme: "default", "full-width": "false", onClick: () => this.toggleSidebarFilters() }, h("ifx-icon", { key: '20be3fda6b40d956202c70dd8f2d5b8e27fccca1', icon: "cross-16" }), this.showSidebarFilters ? 'Hide Filters' : 'Show Filters'))), h("div", { key: 'b886df2920915f2e26b9e92a29f95971c769fe0c', class: filterClass }, this.filterOrientation === 'sidebar' && this.showSidebarFilters && (h("div", { key: '768e749d6bb7294581916fa350ab6db406fd56cc', class: "sidebar-container" }, h("div", { key: '00e5ee6ae4127e25ed6f354431fb50826a5738b7', class: "filters-title-container" }, h("span", { key: 'c40714d09dae34e2fe4ca75f4ddb12f4c81b37da', class: "filters-title" }, "Filters")), h("div", { key: '4c182b7dd4fe8996011025af996c1a2c8815c6d2', class: "set-filter-wrapper-sidebar" }, (this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && h("slot", { key: '8a7dc422f3e4382554eb2af47de00ed53442d1d5', name: "sidebar-filter" })))), this.filterOrientation !== 'none' && this.filterOrientation !== 'sidebar' && (h("div", { key: '0f1ee29a1bc041554cdc65108136c646efc7b934', class: "set-filter-wrapper-topbar" }, (this.filterOrientation !== 'sidebar' || this.showSidebarFilters) && h("slot", { key: 'c9ce08d1026ebfc80ddd3a11bbe1b26a09e58c64', name: "topbar-filter" }))), h("div", { key: '12f0b8bcb4dcebe0b57779f09ac703a76c741df0', class: "table-pagination-wrapper" }, this.filterOrientation !== 'none' && this.filterOrientation !== 'topbar' && this.showSidebarFilters && (h("div", { key: '50fae34e9d7652ad2d27a2dbe10a973cc559f61b', class: "filter-chips" }, Object.keys(this.currentFilters).map(name => {
|
|
833
833
|
const filter = this.currentFilters[name];
|
|
834
834
|
const filterValues = filter.filterValues;
|
|
835
835
|
const isMultiSelect = filter.type !== 'text';
|
|
836
836
|
return filterValues.length > 0 ? (h("ifx-chip", { placeholder: name, size: "large", variant: isMultiSelect ? 'multi' : 'single', readOnly: true, value: filterValues, key: name }, filterValues.map(filterValue => (h("ifx-chip-item", { value: filterValue, selected: true, key: filterValue }, filterValue))))) : null;
|
|
837
|
-
}))), h("div", { key: '
|
|
837
|
+
}))), h("div", { key: 'a3d61c90ad5d8744be6c55d7790551a53d5388e9', class: "headline-wrapper" }, this.filterOrientation !== 'none' && this.headline && (h("div", { key: '598c04897a782b9f7fa8ea69b202e17c5db87142', class: "matching-results-container" }, h("span", { key: '174bbc64858c0b952eef4e289ec25a88f6a13ba5', class: "matching-results-count" }, "(", this.matchingResultsCount, ")"), h("span", { key: 'fa4e1a350a97794ba1c0390176d7413c19ff9286', class: "matching-results-text" }, this.headline))), h("div", { key: '52105af6541e2a5588dc0307c20d7e4b3e72220c', class: "inner-buttons-wrapper" }, h("slot", { key: 'fe68a9b64d3ed0fcbdb6a2ac9f2092fb9c921974', name: "inner-button" }))), h("div", { key: 'd3001b399da78d9e6005f4cf262a7f74b77b9cb4', id: "table-wrapper", class: this.getTableClassNames() }, h("div", { key: '4cc86621f42cb3c4de69618957297666e7df04a3', id: `ifxTable-${this.uniqueKey}`, class: `ifx-ag-grid ${this.variant === 'zebra' ? 'zebra' : ''}`, style: style, ref: el => (this.container = el) })), h("div", { key: 'ffea3142fecc04ca051aeeefd17dc9860ca8a1e1', class: "pagination-wrapper" }, this.pagination ? (h("ifx-pagination", { total: this.serverSidePagination ? this.matchingResultsCount : this.allRowData.length, "current-page": this.currentPage, "items-per-page": this.internalItemsPerPage })) : null))))));
|
|
838
838
|
}
|
|
839
839
|
hasButtonCol() {
|
|
840
840
|
return this.getColData().some(column => column.field === 'button');
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
const columnDefs = [
|
|
2
|
-
{ headerName: '
|
|
3
|
-
{ headerName: '
|
|
2
|
+
{ headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },
|
|
3
|
+
{ headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },
|
|
4
4
|
{ headerName: 'Price', field: 'price' },
|
|
5
|
-
{ headerName: '
|
|
5
|
+
{ headerName: 'Date', field: 'date' },
|
|
6
6
|
];
|
|
7
7
|
const rowData = [
|
|
8
|
-
{
|
|
9
|
-
{
|
|
10
|
-
{
|
|
11
|
-
{
|
|
12
|
-
{
|
|
13
|
-
{
|
|
14
|
-
{
|
|
15
|
-
{
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
{
|
|
8
|
+
{ id: '1', item: 'Item 1', price: 356, date: '2025-06-25' },
|
|
9
|
+
{ id: '2', item: 'Item 2', price: 55, date: '2025-03-26' },
|
|
10
|
+
{ id: '3', item: 'Item 3', price: 24 },
|
|
11
|
+
{ id: '4', item: 'x', price: 874 },
|
|
12
|
+
{ id: '5', item: 'x', price: 689 },
|
|
13
|
+
{ id: '6', item: 'x', price: 46 },
|
|
14
|
+
{ id: '7', item: 'Item 7', price: 421 },
|
|
15
|
+
{ id: '8', item: 'Item 8', price: 17 },
|
|
16
|
+
{ id: '9', item: 'x', price: 752 },
|
|
17
|
+
{ id: '10', item: 'Item 10', price: 73 },
|
|
18
|
+
{ id: '11', item: 'x', price: 94 },
|
|
19
19
|
];
|
|
20
20
|
const rowDataWithBreakingLine = [
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
25
|
-
{
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
29
|
-
{
|
|
30
|
-
{
|
|
31
|
-
{
|
|
21
|
+
{ id: 1, item: 'Item 1\n Item 1.2\n Item 1.3', price: 356, date: '2025-06-25' },
|
|
22
|
+
{ id: 2, item: 'Item 2', price: 55, date: '2025-03-26' },
|
|
23
|
+
{ id: 3, item: 'Item 3', price: 24 },
|
|
24
|
+
{ id: 4, item: 'x', price: 874 },
|
|
25
|
+
{ id: 5, item: 'x', price: 689 },
|
|
26
|
+
{ id: 6, item: 'x', price: 46 },
|
|
27
|
+
{ id: 7, item: 'Item 7', price: 421 },
|
|
28
|
+
{ id: 8, item: 'Item 8', price: 17 },
|
|
29
|
+
{ id: 9, item: 'x', price: 752 },
|
|
30
|
+
{ id: 10, item: 'Item 10', price: 73 },
|
|
31
|
+
{ id: 11, item: 'Item 11\n Item 11.2', price: 94 },
|
|
32
32
|
];
|
|
33
33
|
const columnDefsWithButtonCol = [
|
|
34
|
-
{ headerName: '
|
|
35
|
-
{ headerName: '
|
|
34
|
+
{ headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },
|
|
35
|
+
{ headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },
|
|
36
36
|
{ headerName: 'Price', field: 'price' },
|
|
37
|
-
{ headerName: '
|
|
37
|
+
{ headerName: 'Date', field: 'date' },
|
|
38
38
|
{
|
|
39
39
|
headerName: '',
|
|
40
40
|
field: 'button',
|
|
41
41
|
},
|
|
42
42
|
];
|
|
43
43
|
const columnDefsWithStatusCol = [
|
|
44
|
-
{ headerName: '
|
|
45
|
-
{ headerName: '
|
|
44
|
+
{ headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },
|
|
45
|
+
{ headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },
|
|
46
46
|
{ headerName: 'Price', field: 'price' },
|
|
47
|
-
{ headerName: '
|
|
47
|
+
{ headerName: 'Date', field: 'date' },
|
|
48
48
|
{
|
|
49
49
|
headerName: 'Status',
|
|
50
50
|
field: 'status',
|
|
51
51
|
},
|
|
52
52
|
];
|
|
53
53
|
const columnDefsWithLinkCol = [
|
|
54
|
-
{ headerName: '
|
|
55
|
-
{ headerName: '
|
|
54
|
+
{ headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },
|
|
55
|
+
{ headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },
|
|
56
56
|
{ headerName: 'Price', field: 'price' },
|
|
57
|
-
{ headerName: '
|
|
57
|
+
{ headerName: 'Date', field: 'date' },
|
|
58
58
|
{
|
|
59
59
|
headerName: 'Link',
|
|
60
60
|
field: 'link',
|
|
@@ -62,10 +62,10 @@ const columnDefsWithLinkCol = [
|
|
|
62
62
|
];
|
|
63
63
|
const rowDataWithButtonCol = [
|
|
64
64
|
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
price:
|
|
68
|
-
|
|
65
|
+
id: 1,
|
|
66
|
+
item: 'Item 1',
|
|
67
|
+
price: 356,
|
|
68
|
+
date: '2025-06-25',
|
|
69
69
|
button: {
|
|
70
70
|
disabled: false,
|
|
71
71
|
variant: 'secondary',
|
|
@@ -75,14 +75,14 @@ const rowDataWithButtonCol = [
|
|
|
75
75
|
theme: 'default',
|
|
76
76
|
type: 'button',
|
|
77
77
|
fullWidth: true,
|
|
78
|
-
text: '
|
|
78
|
+
text: 'Button',
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
price:
|
|
85
|
-
|
|
82
|
+
id: 2,
|
|
83
|
+
item: 'Item 2',
|
|
84
|
+
price: 55,
|
|
85
|
+
date: '2025-03-26',
|
|
86
86
|
button: {
|
|
87
87
|
disabled: false,
|
|
88
88
|
variant: 'secondary',
|
|
@@ -92,13 +92,13 @@ const rowDataWithButtonCol = [
|
|
|
92
92
|
theme: 'default',
|
|
93
93
|
type: 'button',
|
|
94
94
|
fullWidth: true,
|
|
95
|
-
text: '
|
|
95
|
+
text: 'Button',
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
price:
|
|
99
|
+
id: 3,
|
|
100
|
+
item: 'Item 3',
|
|
101
|
+
price: 24,
|
|
102
102
|
button: {
|
|
103
103
|
disabled: false,
|
|
104
104
|
variant: 'secondary',
|
|
@@ -108,16 +108,16 @@ const rowDataWithButtonCol = [
|
|
|
108
108
|
theme: 'default',
|
|
109
109
|
type: 'button',
|
|
110
110
|
fullWidth: true,
|
|
111
|
-
text: '
|
|
111
|
+
text: 'Button',
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
114
|
];
|
|
115
115
|
const rowDataWithStatusCol = [
|
|
116
116
|
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
price:
|
|
120
|
-
|
|
117
|
+
id: 1,
|
|
118
|
+
item: 'Item 1',
|
|
119
|
+
price: 356,
|
|
120
|
+
date: '2025-06-25',
|
|
121
121
|
status: {
|
|
122
122
|
label: 'Available',
|
|
123
123
|
color: 'green-500',
|
|
@@ -125,10 +125,10 @@ const rowDataWithStatusCol = [
|
|
|
125
125
|
},
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
price:
|
|
131
|
-
|
|
128
|
+
id: 2,
|
|
129
|
+
item: 'Item 2',
|
|
130
|
+
price: 55,
|
|
131
|
+
date: '2025-03-26',
|
|
132
132
|
status: {
|
|
133
133
|
label: 'Out of Stock',
|
|
134
134
|
color: 'red-500',
|
|
@@ -136,9 +136,9 @@ const rowDataWithStatusCol = [
|
|
|
136
136
|
},
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
price:
|
|
139
|
+
id: 3,
|
|
140
|
+
item: 'Item 3',
|
|
141
|
+
price: 24,
|
|
142
142
|
status: {
|
|
143
143
|
label: 'Coming Soon',
|
|
144
144
|
color: 'orange-500',
|
|
@@ -148,10 +148,10 @@ const rowDataWithStatusCol = [
|
|
|
148
148
|
];
|
|
149
149
|
const rowDataWithLinkCol = [
|
|
150
150
|
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
price:
|
|
154
|
-
|
|
151
|
+
id: 1,
|
|
152
|
+
item: 'Item 1',
|
|
153
|
+
price: 356,
|
|
154
|
+
date: '2025-06-25',
|
|
155
155
|
link: {
|
|
156
156
|
disabled: false,
|
|
157
157
|
variant: 'bold',
|
|
@@ -162,10 +162,10 @@ const rowDataWithLinkCol = [
|
|
|
162
162
|
},
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
price:
|
|
168
|
-
|
|
165
|
+
id: 2,
|
|
166
|
+
item: 'Item 2',
|
|
167
|
+
price: 55,
|
|
168
|
+
date: '2025-03-26',
|
|
169
169
|
link: {
|
|
170
170
|
disabled: false,
|
|
171
171
|
variant: 'underlined',
|
|
@@ -176,9 +176,9 @@ const rowDataWithLinkCol = [
|
|
|
176
176
|
},
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
price:
|
|
179
|
+
id: 3,
|
|
180
|
+
item: 'Item 3',
|
|
181
|
+
price: 24,
|
|
182
182
|
link: {
|
|
183
183
|
disabled: false,
|
|
184
184
|
variant: 'title',
|
|
@@ -306,7 +306,7 @@ export default {
|
|
|
306
306
|
category: 'ifx-table props',
|
|
307
307
|
type: {
|
|
308
308
|
summary: 'Row data options',
|
|
309
|
-
detail: 'Standard row values:\
|
|
309
|
+
detail: 'Standard row values:\nid: 1, \nitem: "Item 1", \nprice: 356 \n\nSpecial row values (incl buttons):\nid: 2,\nitem: "Item 2",\nprice: "55",\nbutton: { \ndisabled: false (optional),\nvariant: "outline" (optional)\nsize: "s" (optional),\ntext: "Button"\n...other ifx-button properties\n}',
|
|
310
310
|
},
|
|
311
311
|
},
|
|
312
312
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.stories.js","sourceRoot":"","sources":["../../../src/components/table-advanced-version/table.stories.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG;IACjB,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE;IACrF,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE;IACzE,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACvC,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;CACpC,CAAC;AAEF,MAAM,OAAO,GAAG;IACd,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;IAC1D,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;IACxD,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE;IACnD,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;IACzC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9C,EAAE,IAAI,E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aAAa,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,aAAa,CAAC,IAAI,GAAG;IACnB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,SAAS;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,YAAY,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,QAAQ;CAC5B,CAAC","sourcesContent":["const columnDefs = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' },\n];\n\nconst rowData = [\n { make: 'Toyota', model: 'Celica', price: 35000, age: 10 },\n { make: 'Ford', model: 'Mondeo', price: 32000, age: 12 },\n { make: 'Porsche', model: 'Boxster', price: 72000 },\n { make: 'Bmw', model: 'x', price: 72000 },\n { make: 'Mercedes', model: 'y', price: 72000 },\n { make: 'Ferrari', model: 'z', price: 72000 },\n { make: 'Chrysler', model: 'a', price: 72000 },\n { make: 'Range rover', model: 'b', price: 72000 },\n { make: 'Tesla', model: 'x', price: 72000 },\n { make: 'Audi', model: '3', price: 72000 },\n { make: 'Landrover', model: 'x', price: 72000 },\n];\n\nconst rowDataWithBreakingLine = [\n { make: 'Toyota\\n and Mazda', model: 'Celica', price: 35000, age: 10 },\n { make: 'Ford', model: 'Mondeo', price: 32000, age: 12 },\n { make: 'Porsche', model: 'Boxster', price: 72000 },\n { make: 'Bmw', model: 'x', price: 72000 },\n { make: 'Mercedes', model: 'y', price: 72000 },\n { make: 'Ferrari', model: 'z', price: 72000 },\n { make: 'Chrysler', model: 'a', price: 72000 },\n { make: 'Range rover', model: 'b', price: 72000 },\n { make: 'Tesla', model: 'x', price: 72000 },\n { make: 'Audi', model: '3', price: 72000 },\n { make: 'Landrover', model: 'x', price: 72000 },\n];\n\nconst columnDefsWithButtonCol = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' },\n {\n headerName: '',\n field: 'button',\n },\n];\n\nconst columnDefsWithStatusCol = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' },\n {\n headerName: 'Status',\n field: 'status',\n },\n];\n\nconst columnDefsWithLinkCol = [\n { headerName: 'Make', field: 'make', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Model', field: 'model', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Age', field: 'age' },\n {\n headerName: 'Link',\n field: 'link',\n },\n];\n\nconst rowDataWithButtonCol = [\n {\n make: 'Toyota',\n model: 'Celica',\n price: 35000,\n age: 10,\n button: {\n disabled: false,\n variant: 'secondary',\n size: 's',\n target: '_blank',\n href: 'https://www.w3schools.com/',\n theme: 'default',\n type: 'button',\n fullWidth: true,\n text: 'Toyota Button',\n },\n },\n {\n make: 'Ford',\n model: 'Mondeo',\n price: 32000,\n age: 12,\n button: {\n disabled: false,\n variant: 'secondary',\n size: 's',\n target: '_blank',\n href: 'https://www.w3schools.com/',\n theme: 'default',\n type: 'button',\n fullWidth: true,\n text: 'Ford Button',\n },\n },\n {\n make: 'Porsche',\n model: 'Boxster',\n price: 72000,\n button: {\n disabled: false,\n variant: 'secondary',\n size: 's',\n target: '_blank',\n href: 'https://www.w3schools.com/',\n theme: 'default',\n type: 'button',\n fullWidth: true,\n text: 'Porsche Button',\n },\n },\n];\nconst rowDataWithStatusCol = [\n {\n make: 'Toyota',\n model: 'Celica',\n price: 35000,\n age: 10,\n status: {\n label: 'Available',\n color: 'green-500',\n border: true,\n },\n },\n {\n make: 'Ford',\n model: 'Mondeo',\n price: 32000,\n age: 12,\n status: {\n label: 'Out of Stock',\n color: 'red-500',\n border: true,\n },\n },\n {\n make: 'Porsche',\n model: 'Boxster',\n price: 72000,\n status: {\n label: 'Coming Soon',\n color: 'orange-500',\n border: true,\n },\n },\n];\n\nconst rowDataWithLinkCol = [\n {\n make: 'Toyota',\n model: 'Celica',\n price: 35000,\n age: 10,\n link: {\n disabled: false,\n variant: 'bold',\n size: 's',\n target: '_blank',\n href: 'https://www.google.com/',\n text: 'Link',\n },\n },\n {\n make: 'Ford',\n model: 'Mondeo',\n price: 32000,\n age: 12,\n link: {\n disabled: false,\n variant: 'underlined',\n size: 's',\n target: '_blank',\n href: 'https://www.yahoo.com/',\n text: 'Link',\n },\n },\n {\n make: 'Porsche',\n model: 'Boxster',\n price: 72000,\n link: {\n disabled: false,\n variant: 'title',\n size: 's',\n target: '_blank',\n href: 'https://www.bing.com/',\n text: 'Link',\n },\n },\n];\n\nexport default {\n title: 'Components/Table (advanced)',\n args: {\n tableHeight: 'auto',\n pagination: false,\n serverSidePagination: false,\n rowHeight: 40,\n showLoading: false,\n variant: 'default',\n headline: 'Matching results',\n enableSelection: false,\n },\n argTypes: {\n tableHeight: {\n description: 'Set the height of the table.',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Options',\n detail: 'Default: \"auto\"\\nExample for fixed height: \"400px\"',\n },\n },\n },\n pagination: {\n description: 'Show pagination control.',\n control: { type: 'boolean' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: true,\n },\n type: {\n summary: 'Boolean',\n },\n },\n },\n serverSidePagination: {\n description: 'Enables server-side pagination.',\n control: { type: 'boolean' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: true,\n },\n type: {\n summary: 'Boolean',\n },\n },\n },\n paginationItemsPerPage: {\n description: 'Sets the items per page of the table pagination',\n table: {\n category: 'ifx-table props',\n },\n },\n showLoading: {\n description: 'Show loading spinner.',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: false,\n },\n },\n },\n rowHeight: {\n description: 'Set the height of the rows.',\n options: ['compact', 'default'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: 'default',\n },\n },\n },\n enableSelection: {\n description: 'Enables the selection of rows via a checkbox',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: 'default',\n },\n },\n },\n filterOrientation: {\n description: 'Set the filter orientation.',\n options: ['sidebar', 'topbar', 'none'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: 'none',\n },\n },\n },\n columnDefs: {\n description: 'Column header options',\n name: 'cols',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Column header options',\n detail:\n 'Standard columns:\\nheaderName: \"Model\", \\nfield: \"model\", \\nsortable: true (optional),\\nsort: \"desc\" (optional) => descending sort (show icon)\\nunSortIcon: true (optional) => unsorted (show icon)\\n\\nSpecial columns:\\nheaderName: \"\",\\nfield: \"button\"\\nheaderName: \"\",\\nfield: \"link\"',\n },\n },\n },\n rowData: {\n description: 'Row data options',\n name: 'rows',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Row data options',\n detail:\n 'Standard row values:\\nmake: \"Toyota\", \\nmodel: \"Celica\", \\nprice: 35000 \\n\\nSpecial row values (incl buttons):\\nmake: \"Porsche\",\\nmodel: \"Boxster\",\\nprice: \"72000\",\\nbutton: { \\ndisabled: false (optional),\\nvariant: \"outline\" (optional)\\nsize: \"s\" (optional),\\ntext: \"Button\"\\n...other ifx-button properties\\n}',\n },\n },\n },\n variant: {\n description: 'Sets the variant of the table.',\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: 'default' },\n },\n options: ['default', 'zebra'],\n control: { type: 'radio' },\n },\n\n headline: {\n description: 'Sets the headline of the table.',\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: 'matching results' },\n },\n },\n\n ifxSelectionChange: {\n action: 'ifxSelectionChange',\n description: 'A custom event triggered on checkbox selection',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelectionChange={handleInput}\\nVue:@ifxSelectionChange=\"handleInput\"\\nAngular:(ifxSelectionChange)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelectionChange\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n if (args.filterOrientation === 'none') {\n const table = `<ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n enable-selection=\"${args.enableSelection}\"\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n server-side-pagination=\"${args.serverSidePagination}\"\n pagination-items-per-page='${args.paginationItemsPerPage}'\n filter-orientation=\"${args.filterOrientation}\"\n variant='${args.variant}'>\n</ifx-table>`;\n return table;\n } else {\n //sidebar\n const filterAccordions = args.columnDefs\n .map(column => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))];\n const filterOptions = uniqueColValues\n .map((option, index) => {\n return `<ifx-list-entry slot=\"slot${index}\" label=\"${option}\" value=\"false\"></ifx-list-entry>`;\n })\n .join('');\n\n return `\n <ifx-filter-accordion slot=\"filter-accordion\" filter-group-name=\"${column.field}\">\n <ifx-list slot=\"list\" type=\"checkbox\" name=\"${column.field}\" max-visible-items=\"6\">\n ${filterOptions}\n </ifx-list>\n </ifx-filter-accordion>\n `;\n })\n .join('');\n\n //topbar\n const filterComponents = args.columnDefs\n .map((column, index) => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))].filter(v => v !== undefined && v !== null && v !== '');\n const options = uniqueColValues.map(option => ({\n value: option,\n label: option,\n selected: false,\n }));\n\n const optionsString = JSON.stringify(options);\n\n return `\n <ifx-set-filter slot=\"filter-component-${index + 1}\"\n options='${optionsString}'\n filter-label='${column.headerName}'\n filter-name='${column.field}'\n type='multi-select'\n placeholder='Select ${column.headerName}'>\n </ifx-set-filter>\n `;\n })\n .join('\\n');\n\n const filterTypeGroupComponent =\n args.filterOrientation === 'sidebar'\n ? `<ifx-filter-type-group slot=\"sidebar-filter\">\n <div slot=\"filter-search\">\n <ifx-filter-search filter-orientation=\"sidebar\" filter-name=\"search\"></ifx-filter-search>\n </div>\n ${filterAccordions}\n </ifx-filter-type-group>`\n : `<ifx-filter-bar slot=\"topbar-filter\" max-shown-filters=\"3\">\n <ifx-filter-search slot=\"filter-search\" filter-orientation=\"topbar\"></ifx-filter-search>\n ${filterComponents}\n </ifx-filter-bar>`;\n\n const table = `<ifx-table\n headline=\"${args.headline}\"\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n ${filterTypeGroupComponent}\n</ifx-table>`;\n\n return table;\n }\n};\n\nexport const DefaultState = DefaultTemplate.bind({});\nDefaultState.args = {\n pagination: false,\n paginationItemsPerPage: '[{\"value\":\"10\",\"selected\":true}, {\"value\":\"20\",\"selected\":false}, {\"value\":\"30\",\"selected\":false}]',\n rowHeight: 'default',\n enableSelection: false,\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none',\n};\n\nexport const Pagination = DefaultTemplate.bind({});\nPagination.args = {\n pagination: true,\n paginationItemsPerPage: '[{\"value\":\"10\",\"selected\":true}, {\"value\":\"20\",\"selected\":false}, {\"value\":\"30\",\"selected\":false}]',\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none',\n};\n\nexport const ServerSidePagination = DefaultTemplate.bind({});\nServerSidePagination.args = {\n pagination: true,\n serverSidePagination: true,\n paginationItemsPerPage: '[{\"value\":\"10\",\"selected\":true}, {\"value\":\"20\",\"selected\":false}, {\"value\":\"30\",\"selected\":false}]',\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none',\n};\n\nconst CustomCellTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst CustomStatusCellTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst CustomLinkCellTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst BreakingLineTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst InnerButtonsTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"none\">\n <ifx-button slot=\"inner-button\">Button</ifx-button>\n <ifx-button slot=\"inner-button\">Button</ifx-button>\n </ifx-table>`;\n return table;\n};\n\nexport const IncludesButtons = CustomCellTemplate.bind({});\nIncludesButtons.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithButtonCol,\n rowData: rowDataWithButtonCol,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesStatus = CustomStatusCellTemplate.bind({});\nIncludesStatus.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithStatusCol,\n rowData: rowDataWithStatusCol,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesLink = CustomLinkCellTemplate.bind({});\nIncludesLink.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithLinkCol,\n rowData: rowDataWithLinkCol,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesBreakingline = BreakingLineTemplate.bind({});\nIncludesBreakingline.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithStatusCol,\n rowData: rowDataWithBreakingLine,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesInnerButtons = InnerButtonsTemplate.bind({});\nIncludesInnerButtons.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithStatusCol,\n rowData: rowData,\n filterOrientation: 'topbar',\n pagination: false,\n};\n\nexport const SidebarFilter = DefaultTemplate.bind({});\nSidebarFilter.args = {\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'sidebar',\n};\n\nexport const TopbarFilter = DefaultTemplate.bind({});\nTopbarFilter.args = {\n headline: 'Matching results',\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'topbar',\n};\n"]}
|
|
1
|
+
{"version":3,"file":"table.stories.js","sourceRoot":"","sources":["../../../src/components/table-advanced-version/table.stories.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG;IACjB,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE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Content":["const columnDefs = [\n { headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Date', field: 'date' },\n];\n\nconst rowData = [\n { id: '1', item: 'Item 1', price: 356, date: '2025-06-25' },\n { id: '2', item: 'Item 2', price: 55, date: '2025-03-26' },\n { id: '3', item: 'Item 3', price: 24 },\n { id: '4', item: 'x', price: 874 },\n { id: '5', item: 'x', price: 689 },\n { id: '6', item: 'x', price: 46 },\n { id: '7', item: 'Item 7', price: 421 },\n { id: '8', item: 'Item 8', price: 17 },\n { id: '9', item: 'x', price: 752 },\n { id: '10', item: 'Item 10', price: 73 },\n { id: '11', item: 'x', price: 94 },\n];\n\nconst rowDataWithBreakingLine = [\n { id: 1, item: 'Item 1\\n Item 1.2\\n Item 1.3', price: 356, date: '2025-06-25' },\n { id: 2, item: 'Item 2', price: 55, date: '2025-03-26' },\n { id: 3, item: 'Item 3', price: 24 },\n { id: 4, item: 'x', price: 874 },\n { id: 5, item: 'x', price: 689 },\n { id: 6, item: 'x', price: 46 },\n { id: 7, item: 'Item 7', price: 421 },\n { id: 8, item: 'Item 8', price: 17 },\n { id: 9, item: 'x', price: 752 },\n { id: 10, item: 'Item 10', price: 73 },\n { id: 11, item: 'Item 11\\n Item 11.2', price: 94 },\n];\n\nconst columnDefsWithButtonCol = [\n { headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Date', field: 'date' },\n {\n headerName: '',\n field: 'button',\n },\n];\n\nconst columnDefsWithStatusCol = [\n { headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Date', field: 'date' },\n {\n headerName: 'Status',\n field: 'status',\n },\n];\n\nconst columnDefsWithLinkCol = [\n { headerName: 'ID', field: 'id', sortable: true, sort: 'desc', unSortIcon: true },\n { headerName: 'Item', field: 'item', sortable: true, unSortIcon: true },\n { headerName: 'Price', field: 'price' },\n { headerName: 'Date', field: 'date' },\n {\n headerName: 'Link',\n field: 'link',\n },\n];\n\nconst rowDataWithButtonCol = [\n {\n id: 1,\n item: 'Item 1',\n price: 356,\n date: '2025-06-25',\n button: {\n disabled: false,\n variant: 'secondary',\n size: 's',\n target: '_blank',\n href: 'https://www.w3schools.com/',\n theme: 'default',\n type: 'button',\n fullWidth: true,\n text: 'Button',\n },\n },\n {\n id: 2,\n item: 'Item 2',\n price: 55,\n date: '2025-03-26',\n button: {\n disabled: false,\n variant: 'secondary',\n size: 's',\n target: '_blank',\n href: 'https://www.w3schools.com/',\n theme: 'default',\n type: 'button',\n fullWidth: true,\n text: 'Button',\n },\n },\n {\n id: 3,\n item: 'Item 3',\n price: 24,\n button: {\n disabled: false,\n variant: 'secondary',\n size: 's',\n target: '_blank',\n href: 'https://www.w3schools.com/',\n theme: 'default',\n type: 'button',\n fullWidth: true,\n text: 'Button',\n },\n },\n];\nconst rowDataWithStatusCol = [\n {\n id: 1,\n item: 'Item 1',\n price: 356,\n date: '2025-06-25',\n status: {\n label: 'Available',\n color: 'green-500',\n border: true,\n },\n },\n {\n id: 2,\n item: 'Item 2',\n price: 55,\n date: '2025-03-26',\n status: {\n label: 'Out of Stock',\n color: 'red-500',\n border: true,\n },\n },\n {\n id: 3,\n item: 'Item 3',\n price: 24,\n status: {\n label: 'Coming Soon',\n color: 'orange-500',\n border: true,\n },\n },\n];\n\nconst rowDataWithLinkCol = [\n {\n id: 1,\n item: 'Item 1',\n price: 356,\n date: '2025-06-25',\n link: {\n disabled: false,\n variant: 'bold',\n size: 's',\n target: '_blank',\n href: 'https://www.google.com/',\n text: 'Link',\n },\n },\n {\n id: 2,\n item: 'Item 2',\n price: 55,\n date: '2025-03-26',\n link: {\n disabled: false,\n variant: 'underlined',\n size: 's',\n target: '_blank',\n href: 'https://www.yahoo.com/',\n text: 'Link',\n },\n },\n {\n id: 3,\n item: 'Item 3',\n price: 24,\n link: {\n disabled: false,\n variant: 'title',\n size: 's',\n target: '_blank',\n href: 'https://www.bing.com/',\n text: 'Link',\n },\n },\n];\n\nexport default {\n title: 'Components/Table (advanced)',\n args: {\n tableHeight: 'auto',\n pagination: false,\n serverSidePagination: false,\n rowHeight: 40,\n showLoading: false,\n variant: 'default',\n headline: 'Matching results',\n enableSelection: false,\n },\n argTypes: {\n tableHeight: {\n description: 'Set the height of the table.',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Options',\n detail: 'Default: \"auto\"\\nExample for fixed height: \"400px\"',\n },\n },\n },\n pagination: {\n description: 'Show pagination control.',\n control: { type: 'boolean' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: true,\n },\n type: {\n summary: 'Boolean',\n },\n },\n },\n serverSidePagination: {\n description: 'Enables server-side pagination.',\n control: { type: 'boolean' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: true,\n },\n type: {\n summary: 'Boolean',\n },\n },\n },\n paginationItemsPerPage: {\n description: 'Sets the items per page of the table pagination',\n table: {\n category: 'ifx-table props',\n },\n },\n showLoading: {\n description: 'Show loading spinner.',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: false,\n },\n },\n },\n rowHeight: {\n description: 'Set the height of the rows.',\n options: ['compact', 'default'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: 'default',\n },\n },\n },\n enableSelection: {\n description: 'Enables the selection of rows via a checkbox',\n options: [true, false],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: 'default',\n },\n },\n },\n filterOrientation: {\n description: 'Set the filter orientation.',\n options: ['sidebar', 'topbar', 'none'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-table props',\n defaultValue: {\n summary: 'none',\n },\n },\n },\n columnDefs: {\n description: 'Column header options',\n name: 'cols',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Column header options',\n detail:\n 'Standard columns:\\nheaderName: \"Model\", \\nfield: \"model\", \\nsortable: true (optional),\\nsort: \"desc\" (optional) => descending sort (show icon)\\nunSortIcon: true (optional) => unsorted (show icon)\\n\\nSpecial columns:\\nheaderName: \"\",\\nfield: \"button\"\\nheaderName: \"\",\\nfield: \"link\"',\n },\n },\n },\n rowData: {\n description: 'Row data options',\n name: 'rows',\n table: {\n category: 'ifx-table props',\n type: {\n summary: 'Row data options',\n detail:\n 'Standard row values:\\nid: 1, \\nitem: \"Item 1\", \\nprice: 356 \\n\\nSpecial row values (incl buttons):\\nid: 2,\\nitem: \"Item 2\",\\nprice: \"55\",\\nbutton: { \\ndisabled: false (optional),\\nvariant: \"outline\" (optional)\\nsize: \"s\" (optional),\\ntext: \"Button\"\\n...other ifx-button properties\\n}',\n },\n },\n },\n variant: {\n description: 'Sets the variant of the table.',\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: 'default' },\n },\n options: ['default', 'zebra'],\n control: { type: 'radio' },\n },\n\n headline: {\n description: 'Sets the headline of the table.',\n table: {\n category: 'ifx-table props',\n defaultValue: { summary: 'matching results' },\n },\n },\n\n ifxSelectionChange: {\n action: 'ifxSelectionChange',\n description: 'A custom event triggered on checkbox selection',\n table: {\n category: 'custom events',\n type: {\n summary: 'Framework integration',\n detail:\n 'React: onIfxSelectionChange={handleInput}\\nVue:@ifxSelectionChange=\"handleInput\"\\nAngular:(ifxSelectionChange)=\"handleInput()\"\\nVanillaJs:.addEventListener(\"ifxSelectionChange\", (event) => {//handle input});',\n },\n },\n },\n },\n};\n\nconst DefaultTemplate = args => {\n if (args.filterOrientation === 'none') {\n const table = `<ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n enable-selection=\"${args.enableSelection}\"\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n server-side-pagination=\"${args.serverSidePagination}\"\n pagination-items-per-page='${args.paginationItemsPerPage}'\n filter-orientation=\"${args.filterOrientation}\"\n variant='${args.variant}'>\n</ifx-table>`;\n return table;\n } else {\n //sidebar\n const filterAccordions = args.columnDefs\n .map(column => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))];\n const filterOptions = uniqueColValues\n .map((option, index) => {\n return `<ifx-list-entry slot=\"slot${index}\" label=\"${option}\" value=\"false\"></ifx-list-entry>`;\n })\n .join('');\n\n return `\n <ifx-filter-accordion slot=\"filter-accordion\" filter-group-name=\"${column.field}\">\n <ifx-list slot=\"list\" type=\"checkbox\" name=\"${column.field}\" max-visible-items=\"6\">\n ${filterOptions}\n </ifx-list>\n </ifx-filter-accordion>\n `;\n })\n .join('');\n\n //topbar\n const filterComponents = args.columnDefs\n .map((column, index) => {\n const uniqueColValues = [...new Set(args.rowData.map(row => row[column.field]))].filter(v => v !== undefined && v !== null && v !== '');\n const options = uniqueColValues.map(option => ({\n value: option,\n label: option,\n selected: false,\n }));\n\n const optionsString = JSON.stringify(options);\n\n return `\n <ifx-set-filter slot=\"filter-component-${index + 1}\"\n options='${optionsString}'\n filter-label='${column.headerName}'\n filter-name='${column.field}'\n type='multi-select'\n placeholder='Select ${column.headerName}'>\n </ifx-set-filter>\n `;\n })\n .join('\\n');\n\n const filterTypeGroupComponent =\n args.filterOrientation === 'sidebar'\n ? `<ifx-filter-type-group slot=\"sidebar-filter\">\n <div slot=\"filter-search\">\n <ifx-filter-search filter-orientation=\"sidebar\" filter-name=\"search\"></ifx-filter-search>\n </div>\n ${filterAccordions}\n </ifx-filter-type-group>`\n : `<ifx-filter-bar slot=\"topbar-filter\" max-shown-filters=\"3\">\n <ifx-filter-search slot=\"filter-search\" filter-orientation=\"topbar\"></ifx-filter-search>\n ${filterComponents}\n </ifx-filter-bar>`;\n\n const table = `<ifx-table\n headline=\"${args.headline}\"\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n ${filterTypeGroupComponent}\n</ifx-table>`;\n\n return table;\n }\n};\n\nexport const DefaultState = DefaultTemplate.bind({});\nDefaultState.args = {\n pagination: false,\n paginationItemsPerPage: '[{\"value\":\"10\",\"selected\":true}, {\"value\":\"20\",\"selected\":false}, {\"value\":\"30\",\"selected\":false}]',\n rowHeight: 'default',\n enableSelection: false,\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none',\n};\n\nexport const Pagination = DefaultTemplate.bind({});\nPagination.args = {\n pagination: true,\n paginationItemsPerPage: '[{\"value\":\"10\",\"selected\":true}, {\"value\":\"20\",\"selected\":false}, {\"value\":\"30\",\"selected\":false}]',\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none',\n};\n\nexport const ServerSidePagination = DefaultTemplate.bind({});\nServerSidePagination.args = {\n pagination: true,\n serverSidePagination: true,\n paginationItemsPerPage: '[{\"value\":\"10\",\"selected\":true}, {\"value\":\"20\",\"selected\":false}, {\"value\":\"30\",\"selected\":false}]',\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'none',\n};\n\nconst CustomCellTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst CustomStatusCellTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst CustomLinkCellTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst BreakingLineTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"${args.filterOrientation}\">\n </ifx-table>`;\n return table;\n};\n\nconst InnerButtonsTemplate = args => {\n const table = `\n <ifx-table\n row-height=\"${args.rowHeight}\"\n cols='${JSON.stringify(args.columnDefs)}'\n rows='${JSON.stringify(args.rowData)}'\n table-height=\"${args.tableHeight}\"\n pagination=\"${args.pagination}\"\n filter-orientation=\"none\">\n <ifx-button slot=\"inner-button\">Button</ifx-button>\n <ifx-button slot=\"inner-button\">Button</ifx-button>\n </ifx-table>`;\n return table;\n};\n\nexport const IncludesButtons = CustomCellTemplate.bind({});\nIncludesButtons.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithButtonCol,\n rowData: rowDataWithButtonCol,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesStatus = CustomStatusCellTemplate.bind({});\nIncludesStatus.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithStatusCol,\n rowData: rowDataWithStatusCol,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesLink = CustomLinkCellTemplate.bind({});\nIncludesLink.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithLinkCol,\n rowData: rowDataWithLinkCol,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesBreakingline = BreakingLineTemplate.bind({});\nIncludesBreakingline.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithStatusCol,\n rowData: rowDataWithBreakingLine,\n filterOrientation: 'none',\n pagination: false,\n};\n\nexport const IncludesInnerButtons = InnerButtonsTemplate.bind({});\nIncludesInnerButtons.args = {\n rowHeight: 'default',\n columnDefs: columnDefsWithStatusCol,\n rowData: rowData,\n filterOrientation: 'topbar',\n pagination: false,\n};\n\nexport const SidebarFilter = DefaultTemplate.bind({});\nSidebarFilter.args = {\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'sidebar',\n};\n\nexport const TopbarFilter = DefaultTemplate.bind({});\nTopbarFilter.args = {\n headline: 'Matching results',\n rowHeight: 'default',\n columnDefs: columnDefs,\n rowData: rowData,\n filterOrientation: 'topbar',\n};\n"]}
|
|
@@ -152,7 +152,7 @@ export class Table {
|
|
|
152
152
|
return {};
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
|
-
return (h(Host, { key: '
|
|
155
|
+
return (h(Host, { key: '9942dac43b669841cc6ce4175cbd95c49b8fdc70' }, h("div", { key: '27f2391f4b757f2042bf5fcb510cf67c07cfe0c6', id: "table-wrapper", class: this.getClassNames() }, h("div", { key: '3ebbc1941e0142bdd1078a5d99e8bf63b3d82a47', id: `ifxTable-${this.uniqueKey}`, class: `ifx-ag-grid ${this.variant === 'zebra' ? 'zebra' : ""}`, style: this.getTableStyle(), ref: (el) => (this.container = el) }))));
|
|
156
156
|
}
|
|
157
157
|
static get is() { return "ifx-basic-table"; }
|
|
158
158
|
static get originalStyleUrls() {
|