@infineon/infineon-design-system-stencil 39.5.3--canary.2143.37c9c6064cb09c60045fa874476272b9551d2e41.0 → 39.5.3--canary.2143.7e22c74e4f4e08bfb2cb8d5e5811adf79267a112.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-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 +2 -59
- 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/collection/components/search-field/search-field.js +2 -59
- 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-basic-version/table.js +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-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 +1 -1
- 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 +5 -5
- 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 +4 -4
- 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 +2 -2
- package/dist/components/ifx-tree-view.js +1 -1
- package/dist/components/{p-Bcpf7l3H.js → p-BO6nWGLo.js} +4 -61
- package/dist/components/p-BO6nWGLo.js.map +1 -0
- package/dist/components/{p-DdOsLLJc.js → p-BxWZjkxk.js} +4 -4
- package/dist/components/{p-DdOsLLJc.js.map → p-BxWZjkxk.js.map} +1 -1
- package/dist/components/{p-C53lC4vo.js → p-D7r3u21_.js} +3 -3
- package/dist/components/{p-C53lC4vo.js.map → p-D7r3u21_.js.map} +1 -1
- package/dist/components/{p-B61i82g5.js → p-DGAOPH_P.js} +4 -4
- package/dist/components/{p-B61i82g5.js.map → p-DGAOPH_P.js.map} +1 -1
- package/dist/components/{p-BFlcr2_N.js → p-DQYngnHn.js} +9 -9
- package/dist/components/{p-BFlcr2_N.js.map → p-DQYngnHn.js.map} +1 -1
- package/dist/components/{p-DmM40b2X.js → p-Dce2xAGf.js} +5 -5
- package/dist/components/{p-DmM40b2X.js.map → p-Dce2xAGf.js.map} +1 -1
- package/dist/components/{p-Cmd43Oxg.js → p-DxKWinW1.js} +6 -6
- package/dist/components/{p-Cmd43Oxg.js.map → p-DxKWinW1.js.map} +1 -1
- package/dist/components/{p-GP5uSTr1.js → p-kFkxPh9g.js} +4 -4
- package/dist/components/{p-GP5uSTr1.js.map → p-kFkxPh9g.js.map} +1 -1
- package/dist/esm/ifx-alert_2.entry.js +1 -1
- package/dist/esm/ifx-basic-table.entry.js +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 +2 -59
- 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/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-98c2e3a9.entry.js → p-07e1efa5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9ea43bb7.entry.js → p-0d5a32ec.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-fe373208.entry.js → p-1fcb504e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-2537f7fe.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-2a7e30cf.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-22a45c93.entry.js.map → p-2a7e30cf.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-242fc6b0.entry.js → p-2b4778da.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-54785004.entry.js → p-39a29970.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-dcc7240e.entry.js → p-3b5cf4ca.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0d9da371.entry.js → p-44026267.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e7b72d33.entry.js → p-4fca78a6.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6504f8d0.entry.js → p-6162a610.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8ab64504.entry.js → p-8aabbd26.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-8d19ae4f.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-8d19ae4f.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-0d4211db.entry.js → p-8eef85bc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-913a8693.entry.js → p-9577d799.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-9c93e258.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-b5efb1d6.entry.js → p-9dbede78.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f5811026.entry.js → p-a827c4bc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-13fed6df.entry.js → p-b3ba9994.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-bfbe3ddc.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-c9d594e1.entry.js.map → p-bfbe3ddc.entry.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-453bd9bd.entry.js → p-c3362d41.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-3f3a5140.entry.js → p-ddff8e4e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-372fa9eb.entry.js → p-ebce6648.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6407c496.entry.js → p-f06af3d9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-af1e0cb5.entry.js → p-f855d12d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-83816596.entry.js → p-fc030370.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-eed36710.entry.js → p-fef185c2.entry.js} +2 -2
- package/dist/types/components/search-field/search-field.d.ts +0 -4
- package/package.json +1 -1
- package/dist/components/p-Bcpf7l3H.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-22a45c93.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-5b955e4e.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-5b955e4e.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-ba4ee343.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-c9d594e1.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-d3a6bbf7.entry.js +0 -2
- /package/dist/infineon-design-system-stencil/{p-98c2e3a9.entry.js.map → p-07e1efa5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9ea43bb7.entry.js.map → p-0d5a32ec.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-fe373208.entry.js.map → p-1fcb504e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d3a6bbf7.entry.js.map → p-2537f7fe.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-242fc6b0.entry.js.map → p-2b4778da.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-54785004.entry.js.map → p-39a29970.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-dcc7240e.entry.js.map → p-3b5cf4ca.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0d9da371.entry.js.map → p-44026267.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e7b72d33.entry.js.map → p-4fca78a6.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6504f8d0.entry.js.map → p-6162a610.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8ab64504.entry.js.map → p-8aabbd26.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0d4211db.entry.js.map → p-8eef85bc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-913a8693.entry.js.map → p-9577d799.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ba4ee343.entry.js.map → p-9c93e258.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b5efb1d6.entry.js.map → p-9dbede78.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f5811026.entry.js.map → p-a827c4bc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-13fed6df.entry.js.map → p-b3ba9994.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-453bd9bd.entry.js.map → p-c3362d41.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3f3a5140.entry.js.map → p-ddff8e4e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-372fa9eb.entry.js.map → p-ebce6648.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6407c496.entry.js.map → p-f06af3d9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-af1e0cb5.entry.js.map → p-f855d12d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-83816596.entry.js.map → p-fc030370.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-eed36710.entry.js.map → p-fef185c2.entry.js.map} +0 -0
|
@@ -180,7 +180,7 @@ const Template = class {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
render() {
|
|
183
|
-
return (h("div", { key: '
|
|
183
|
+
return (h("div", { key: 'd08a82aa561c8fcf22ef3175f49ef8f52df575ae' }, this.isTemplatePage
|
|
184
184
|
?
|
|
185
185
|
h("div", { class: "template__page-wrapper" }, !this.repoUrl && !this.repoError &&
|
|
186
186
|
h("div", null, h("h3", null, "Your repository is getting ready.."), h("p", null, "This will only take a minute.")), this.isLoading && !this.repoError && h("div", null, h("ifx-spinner", { variant: 'default', size: 's' })), this.repoUrl && h("ifx-link", { href: this.repoUrl, target: "_parent", size: "m", variant: "underlined" }, "Your repository"), this.repoError && h("div", null, this.repoError))
|
|
@@ -186,7 +186,7 @@ const Table = class {
|
|
|
186
186
|
return {};
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
|
-
return (h(Host, { key: '
|
|
189
|
+
return (h(Host, { key: 'f6d04d5333ee1e105a65b9e39b79c80856d19854' }, h("div", { key: 'ad141399ab5fc164a8750ff6ed0b695ddd784fd5', id: "table-wrapper", class: this.getClassNames() }, h("div", { key: '8393218ed13358ec0cd59a9a410dbe5bc48aca4e', id: `ifxTable-${this.uniqueKey}`, class: `ifx-ag-grid ${this.variant === 'zebra' ? 'zebra' : ""}`, style: this.getTableStyle(), ref: (el) => (this.container = el) }))));
|
|
190
190
|
}
|
|
191
191
|
get host() { return getElement(this); }
|
|
192
192
|
};
|
|
@@ -7,7 +7,7 @@ const Faq = class {
|
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("div", { key: '
|
|
10
|
+
return (h("div", { key: 'd9d7bd3c764cf067643c553edec9ef4fee4fd67e', class: 'container' }, h("ifx-accordion", { key: 'f275a73f5beb84d14ca616341994098300a9609a' }, h("ifx-accordion-item", { key: 'e99f371ca8e210b4a75d877e4dd4c9b224a66ddb', caption: "What is the Infineon DDS?" }, "The Infineon Digital Design System consists of code components, design principles, tools and guidelines as well as a dedicated interdisciplinary team. Its purpose is to support internal and external colleagues create digital user interfaces with a high level of usability as well as a consistent expression of the Infineon brand. The DDS does not focus on the content of a web application but it describes how the design of the application\u2019s structure should be."), h("ifx-accordion-item", { key: '94ff35a6859266b9ba7d89776eb7c6c203ba37cf', caption: "How do I get access to the DDS?" }, "You can use the provided Figma file as a foundation for mockups and prototypes, use Storybook to view what UI components and variants are available and use code components provided via Storybook or Github."), h("ifx-accordion-item", { key: '2e98a643ad287859b90eff1a843410ec58291792', caption: "Can I integrate the Infineon DDS into my project?" }, "Yes, you can. We are happy to discuss with you which point in time and which scope of integration is bestsuited for updating your interface to the Infineon DDS. (To avoid that users get confused by a mixture of UI components, we recommend choosing larger updates or technology changes as opportunity to integrate the Infineon DDS.)"), h("ifx-accordion-item", { key: 'ecd64d4fd87408466f64e3a9f1dc89f2a2529bd4', caption: "Are Infineon DDS components accessable?" }, "We have taken WCAG 2.0 Level AA as baseline level for all design decisions inside the Infineon Digital Design System. To make an online experience truly accessible you have to implement the specific code, content, and visual design according to the accessibility standard. Find an introduction to this topic here."), h("ifx-accordion-item", { key: 'fb92e8c982211992ebf99d886d2223e2fbdc5afe', caption: "How to request a new component?" }, "Please contact us like described in the contribution section! We are planning to expand the number of components continually. If your component is also usable for multiple other projects, there is a good chance we might work together with you."))));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
Faq.style = faqCss;
|
|
@@ -48,8 +48,8 @@ const FilterAccordion = class {
|
|
|
48
48
|
this.el.removeEventListener('ifxListUpdate', this.handleCheckedChange);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
52
|
-
h("div", { key: '
|
|
51
|
+
return (h("div", { key: 'b4a21b89e0d939e05deae72440aef2159a6c1bda', class: `accordion ${this.expanded ? 'expanded' : ''}` }, h("div", { key: '270907a017f3fcd0130f1aaf979df5570884c04b', class: `header ${this.expanded ? 'expanded' : ''}`, onClick: this.toggleAccordion }, h("div", { key: 'cff21898f155ab2ba80d8bbfd5b299f2c013674e', class: `text-and-icon ${this.expanded ? 'expanded' : ''}` }, h("div", { key: 'a3a72e8c8e5b27e7d583dd79e495b07e6627996d', class: "text" }, h("span", { key: '88fb60623b86205e8212e4a86f1d3870964112e2' }, this.filterGroupName), h("ifx-indicator", { key: 'ef21b584256849cae07b792cc072dfc404454fc8', variant: 'number', number: this.count })), h("ifx-icon", { key: '49b73fdb66254dcd887b8640dc016bd76e027546', class: this.expanded ? '' : 'hidden', icon: "minus-16", onClick: this.toggleAccordion }), h("ifx-icon", { key: '9d08f6314056b2c0c44e37976c5102a762a5f086', class: this.expanded ? 'hidden' : '', icon: "plus-16", onClick: this.toggleAccordion }))), this.expanded &&
|
|
52
|
+
h("div", { key: '22152489e3de743eff22354cfe12c413261ce488', class: "filter-accordion-container" }, h("slot", { key: '68b884d7fd28e8d68157ab05cd07b329a34b7dae', name: "list" }))));
|
|
53
53
|
}
|
|
54
54
|
get el() { return getElement(this); }
|
|
55
55
|
};
|
|
@@ -92,7 +92,7 @@ const FilterBar = class {
|
|
|
92
92
|
// Calculate slotsToShow safely
|
|
93
93
|
const slotsToShow = Math.min(safeVisibleSlots, actualNumberOfComponents, Number.MAX_SAFE_INTEGER);
|
|
94
94
|
const slots = Array.from({ length: slotsToShow }, (_, i) => (h("div", { class: "filter-slot-wrapper" }, h("slot", { name: `filter-component-${i + 1}` }))));
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '02000df6ef2931de33429f8c0c7e170a5d47d4dc' }, h("div", { key: '6d0f05f8f25ed15cd429307ee6b4806a243d2d2f', class: "search-container" }, h("slot", { key: '9d6960ae3bb4ee1febebe5a214ef91bc7d268719', name: "filter-search" }), " "), h("div", { key: '331f5a5d98e4bae8ecd4ba060e31eb14fe272a9f', class: "components-container" }, slots.length > 0 ? slots : h("slot", { name: "filter-component" }), this.showMoreFiltersButton && !this.showAllFilters && (h("div", { key: '0021278e9914ade252e9e69560884d53c6e7d46f', class: "more-filters-wrapper", onClick: this.handleMoreFiltersClick }, h("ifx-button", { key: '093ac3688331f0bddbd5a3d10ec43bc9c2ea5c0f', type: "button", disabled: false, variant: "tertiary", size: "m", target: "_blank", theme: "default", "full-width": "false" }, h("ifx-icon", { key: '0878577d5870cbffe310234b0b81b9ec334f90ce', icon: "filter-16" }), "More filters"))))));
|
|
96
96
|
}
|
|
97
97
|
get el() { return getElement(this); }
|
|
98
98
|
};
|
|
@@ -28,7 +28,7 @@ const FilterSearch = class {
|
|
|
28
28
|
this.ifxFilterSearchChange.emit({ filterName: this.filterName, filterValue: this.filterValue, filterKey: this.filterKey }); // Emitting filterKey along with other properties
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '36a21542c911a805093270bab4338b5a4ba81c94', class: `${this.filterOrientation === 'sidebar' ? 'sidebar-filter-search-wrapper' : 'topbar-filter-search-wrapper'}` }, h("div", { key: 'dbfdbdf56e5c540a465fdfa099d84628b1539bf6', class: "filter-name" }, this.filterName), h("ifx-search-field", { key: '48ca7812defbd768675ab49bae081664c5630892', placeholder: this.placeholder, "show-delete-icon": this.showDeleteIcon, disabled: this.disabled, value: this.filterValue })));
|
|
32
32
|
}
|
|
33
33
|
get host() { return getElement(this); }
|
|
34
34
|
static get watchers() { return {
|
|
@@ -124,7 +124,7 @@ const IfxFilterTypeGroup = class {
|
|
|
124
124
|
window.removeEventListener('ifxResetFiltersEvent', this.handleResetEvent);
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: 'f7718698368335b6f2dba728a7d0bb04ee108122' }, h("div", { key: '9d24441d487b7a8be2194b0024a29dc42703b5d4', class: "filter-type-group" }, h("slot", { key: '918ab2eac7736bfd96f8b407f12c1bed4844ba70', name: "filter-search" }), h("slot", { key: 'fb69779d06e7da53479ea8cd6936c36cc2bc48f3', name: "filter-accordion" }))));
|
|
128
128
|
}
|
|
129
129
|
get el() { return getElement(this); }
|
|
130
130
|
};
|
|
@@ -20,7 +20,7 @@ const ListEntry = class {
|
|
|
20
20
|
this.ifxListEntryChange.emit({ label: this.label, value: this.value, type: this.type });
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: 'a141d7bb36e2a1b02b38f72fb4d299fc4b3b3d9f', 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)))));
|
|
24
24
|
}
|
|
25
25
|
get host() { return getElement(this); }
|
|
26
26
|
static get watchers() { return {
|
|
@@ -488,15 +488,15 @@ const Multiselect = class {
|
|
|
488
488
|
if (allOptionElements.length > 0) {
|
|
489
489
|
isFlatMultiselect = Array.from(allOptionElements).every(option => option.children.length === 0);
|
|
490
490
|
}
|
|
491
|
-
return (h("div", { key: '
|
|
491
|
+
return (h("div", { key: 'd0643a04050d28db8a1d162832a5bd01699e46cc', class: `ifx-multiselect-container ${this.disabled && !this.error ? 'disabled' : ''}`, ref: el => (this.dropdownElement = el) }, h("div", { key: '5cbe0844098305cb052e5384635571e24e6fbe1c', class: "ifx-label-wrapper" }, this.label && (h("span", { key: '69dbafbcbfa0b836666846a0ea3ff7126c9b5e43', class: "wrapper-label" }, h("span", { key: 'a2ee5fd71ae7f6f00ae1a004cda4e3e8cc2feb16' }, this.label), this.required && h("span", { key: 'e4e902879f8237e32045f4b037a72b3bf5025ebf', class: `required ${this.error ? 'error' : ''}` }, "*")))), h("div", { key: '97870fecccab25f3775fbd0d7685ad7844efc8bb', class: `ifx-multiselect-wrapper
|
|
492
492
|
${this.dropdownOpen ? 'active' : ''}
|
|
493
493
|
${this.dropdownFlipped ? 'is-flipped' : ''}
|
|
494
494
|
${this.internalError ? 'error' : ''}
|
|
495
|
-
${this.disabled && !this.error ? 'disabled' : ''}`, role: "combobox", "aria-label": this.ariaMultiSelectLabel, "aria-labelledby": this.ariaMultiSelectLabelledBy || undefined, "aria-describedby": this.ariaMultiSelectDescribedBy || undefined, "aria-expanded": this.dropdownOpen, "aria-haspopup": "listbox", "aria-disabled": this.disabled && !this.error, tabindex: "0", onClick: this.disabled && !this.error ? undefined : event => this.handleWrapperClick(event), onKeyDown: this.disabled && !this.error ? undefined : event => this.handleKeyDown(event) }, h("div", { key: '
|
|
495
|
+
${this.disabled && !this.error ? 'disabled' : ''}`, role: "combobox", "aria-label": this.ariaMultiSelectLabel, "aria-labelledby": this.ariaMultiSelectLabelledBy || undefined, "aria-describedby": this.ariaMultiSelectDescribedBy || undefined, "aria-expanded": this.dropdownOpen, "aria-haspopup": "listbox", "aria-disabled": this.disabled && !this.error, tabindex: "0", onClick: this.disabled && !this.error ? undefined : event => this.handleWrapperClick(event), onKeyDown: this.disabled && !this.error ? undefined : event => this.handleKeyDown(event) }, h("div", { key: 'fdf4c22a5b0f30a4f7b514bc39646b669871aecd', class: `ifx-multiselect-input
|
|
496
496
|
${hasSelections ? '' : 'placeholder'}
|
|
497
|
-
`, onClick: this.disabled && !this.error ? undefined : () => this.toggleDropdown() }, hasSelections ? selectedOptionsLabels : this.placeholder), this.dropdownOpen && (h("div", { key: '
|
|
497
|
+
`, onClick: this.disabled && !this.error ? undefined : () => this.toggleDropdown() }, hasSelections ? selectedOptionsLabels : this.placeholder), this.dropdownOpen && (h("div", { key: '9556190732b4ef5d96053ca4976be86c95b5edb8', class: "ifx-multiselect-dropdown-menu" }, (this.showSearch || this.showSelectAll || (this.showExpandCollapse && !isFlatMultiselect)) && (h("div", { key: 'b7da4fd10300eda5bfdd55dbe35b133b3fdadc34', class: "ifx-multiselect-dropdown-functions", onClick: e => e.stopPropagation() }, this.showSearch && (h("div", { key: '88745790d159eaee099d67f47da895347c643bf2', class: "ifx-multiselect-dropdown-search" }, h("ifx-search-field", { key: '23929393f48d8f8c42bf8bc0540bba51e63f2a5a', class: "search-input", placeholder: this.searchPlaceholder, size: "s", "show-delete-icon": "true", "aria-label": this.ariaSearchLabel, onKeyDown: e => {
|
|
498
498
|
e.stopPropagation();
|
|
499
|
-
}, onIfxInput: event => this.handleSearch(event.target), onFocus: () => this.handleSearchFocus(true), onBlur: () => this.handleSearchFocus(false) }))), h("div", { key: '
|
|
499
|
+
}, onIfxInput: event => this.handleSearch(event.target), onFocus: () => this.handleSearchFocus(true), onBlur: () => this.handleSearchFocus(false) }))), h("div", { key: 'd4877d51dcaf0fbaf0005a35543316d9d971ff9a', class: "ifx-multiselect-dropdown-controls" }, this.showSelectAll && this.renderSelectAll(), this.showExpandCollapse && !isFlatMultiselect && (h("div", { key: '87b47b9f686188fa0accd7dc65cbe52b53ef9f35', class: "expand-collapse-controls" }, h("span", { key: '15cc27a42d424e9bd086900b473d9c38140ce55c', class: "control-item", role: "button", tabIndex: 0, "aria-label": this.ariaExpandAllLabel, onClick: e => {
|
|
500
500
|
e.stopPropagation();
|
|
501
501
|
this.expandAll();
|
|
502
502
|
}, onKeyDown: e => {
|
|
@@ -505,7 +505,7 @@ const Multiselect = class {
|
|
|
505
505
|
e.stopPropagation();
|
|
506
506
|
this.expandAll();
|
|
507
507
|
}
|
|
508
|
-
} }, this.expandLabel), h("span", { key: '
|
|
508
|
+
} }, this.expandLabel), h("span", { key: '23f0373cf51e46ee8d4bec3b0b4acfd2a1e927ff', class: "control-item", role: "button", tabIndex: 0, "aria-label": this.ariaCollapseAllLabel, onClick: e => {
|
|
509
509
|
e.stopPropagation();
|
|
510
510
|
this.collapseAll();
|
|
511
511
|
}, onKeyDown: e => {
|
|
@@ -514,7 +514,7 @@ const Multiselect = class {
|
|
|
514
514
|
e.stopPropagation();
|
|
515
515
|
this.collapseAll();
|
|
516
516
|
}
|
|
517
|
-
} }, this.collapseLabel)))))), h("div", { key: '
|
|
517
|
+
} }, this.collapseLabel)))))), h("div", { key: 'bd17374af6fccd246b8f95b8dcb0ffc7cc736a1a', class: "ifx-multiselect-options", role: "listbox", "aria-multiselectable": "true" }, h("slot", { key: '007836fb8658edf0cae20978916af89a5c0293e3' }), this.searchTerm && this.showNoResultsMessage && this.renderNoResultsMessage()))), h("div", { key: '80089a7f30ae376e6d06229abb9875ec051127e4', class: "ifx-multiselect-icon-container" }, this.persistentSelectedOptions.length > 0 && (h("div", { key: '98e96edd536d19c9ab5f199b0cb222bd4c07e063', class: `ifx-clear-button ${!this.showClearButton ? 'hide' : ''}`, onClick: this.disabled && !this.error ? undefined : () => this.clearSelection() }, h("ifx-icon", { key: '9ae175841f71314c4450e109219906745cfe3274', icon: "cRemove16" }))), h("div", { key: '11e0b4088fb5f85f69518b1bdab326f78a87a3c0', class: "icon-wrapper-up", onClick: this.disabled && !this.error ? undefined : () => this.toggleDropdown() }, h("ifx-icon", { key: "icon-up", icon: "chevron-up-16" })), h("div", { key: 'a6d5d8a22605f7028571c63d6f2c59b43e097fac', class: "icon-wrapper-down", onClick: this.disabled && !this.error ? undefined : () => this.toggleDropdown() }, h("ifx-icon", { key: "icon-down", icon: "chevron-down-16" })))), this.caption && h("div", { key: '172f27a685b53a6f519a857c4a4b3966ea85b693', class: `multi__select-caption ${this.error ? 'error' : ''} ${this.disabled && !this.error ? 'disabled' : ''}` }, this.caption)));
|
|
518
518
|
}
|
|
519
519
|
get el() { return getElement(this); }
|
|
520
520
|
static get watchers() { return {
|
|
@@ -891,25 +891,25 @@ const MultiselectOption = class {
|
|
|
891
891
|
const additionalPadding = this.hasChildren ? 0 : 28;
|
|
892
892
|
let totalPadding = basePadding + additionalPadding;
|
|
893
893
|
const optionItemStyle = isFlatMultiselect ? undefined : { paddingLeft: `${totalPadding}px` };
|
|
894
|
-
return (h(Host, { key: '
|
|
894
|
+
return (h(Host, { key: '87fc18abf09bc48cc6429d9cf6a7c41bb27bf33c' }, h("div", { key: '6b453922a7f29c58a5ee60d3cb9e302a1062aa3a', class: {
|
|
895
895
|
'option': true,
|
|
896
896
|
'option--has-children': this.hasChildren,
|
|
897
897
|
'option--expanded': this.isExpanded,
|
|
898
898
|
'option--disabled': this.disabled,
|
|
899
899
|
'option--selected': this.selected,
|
|
900
|
-
}, role: "option", "aria-expanded": this.hasChildren ? (this.isExpanded ? 'true' : 'false') : undefined, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "data-level": this.depth, "data-value": this.value }, h("div", { key: '
|
|
900
|
+
}, role: "option", "aria-expanded": this.hasChildren ? (this.isExpanded ? 'true' : 'false') : undefined, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "data-level": this.depth, "data-value": this.value }, h("div", { key: 'ec104ce71c38d4b33e8e1b00c8be1d448f3b1d70', class: "option-item", style: optionItemStyle }, h("div", { key: '84684cf716bd80669252f611badd4570c696a3fd', class: "chevron-wrapper", tabIndex: this.hasChildren ? 0 : -1, role: this.hasChildren ? "button" : undefined, "aria-label": this.hasChildren ? (this.isExpanded ? "Collapse" : "Expand") : undefined, onClick: (e) => { e.stopPropagation(); this.toggleExpansion(); }, onKeyDown: (e) => {
|
|
901
901
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
902
902
|
e.preventDefault();
|
|
903
903
|
e.stopPropagation();
|
|
904
904
|
this.toggleExpansion();
|
|
905
905
|
}
|
|
906
|
-
} }, this.hasChildren && (h("ifx-icon", { key: '
|
|
906
|
+
} }, this.hasChildren && (h("ifx-icon", { key: '671daf9ed91d6aa31ae693530e205b882b43760d', class: `chevron ${this.isExpanded ? 'chevron--expanded' : 'chevron--collapsed'}`, icon: "chevron-right-16" }))), h("div", { key: '49cbd2830df83246e190c6b99fb8b4e032e1a00d', class: "checkbox-wrapper", onClick: (e) => e.stopPropagation() }, h("ifx-checkbox", { key: '815951eb3d5528dd9c987622ffe7886b51d8f592', size: 's', checked: (this.isSearchActive && this.isSearchDisabled) ? false : (this.indeterminate ? false : this.selected), indeterminate: (this.isSearchActive && this.isSearchDisabled) ? false : this.indeterminate, onClick: this.handleCheckboxClick, disabled: this.disabled || (this.isSearchActive && this.isSearchDisabled), onKeyDown: (e) => {
|
|
907
907
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
908
908
|
e.preventDefault();
|
|
909
909
|
e.stopPropagation();
|
|
910
910
|
this.handleCheckboxClick(e);
|
|
911
911
|
}
|
|
912
|
-
} })), h("div", { key: '
|
|
912
|
+
} })), h("div", { key: '374d1d3344dc99cb5efbb89dd744e1bbba969169', class: "option-label", onClick: this.handleHeaderClick, tabIndex: -1 }, h("slot", { key: 'f729b2f14d20953221a14c159743539e979b2d12' }))), this.isExpanded && h("div", { key: '248b9ca94f6781537ca7a651d25621bfabcdfcad', class: "option-children" }, h("slot", { key: '269266cc56a04693d6c08d3f80c45df3a4ad0c56', name: "children" })))));
|
|
913
913
|
}
|
|
914
914
|
get el() { return getElement(this); }
|
|
915
915
|
};
|
|
@@ -69,11 +69,6 @@ const SearchField = class {
|
|
|
69
69
|
}
|
|
70
70
|
this.hideDropdown();
|
|
71
71
|
};
|
|
72
|
-
// Handle click on history delete button
|
|
73
|
-
this.handleHistoryDelete = (event, term) => {
|
|
74
|
-
event.stopPropagation(); // Prevent selection of the entry
|
|
75
|
-
this.removeFromHistory(term);
|
|
76
|
-
};
|
|
77
72
|
}
|
|
78
73
|
handleOutsideClick(event) {
|
|
79
74
|
const path = event.composedPath();
|
|
@@ -188,27 +183,6 @@ const SearchField = class {
|
|
|
188
183
|
localStorage.setItem(this.historyKey, JSON.stringify(this.searchHistory));
|
|
189
184
|
}
|
|
190
185
|
}
|
|
191
|
-
// Remove individual history entry
|
|
192
|
-
removeFromHistory(term) {
|
|
193
|
-
if (!this.enableHistory)
|
|
194
|
-
return;
|
|
195
|
-
const history = [...this.searchHistory];
|
|
196
|
-
const index = history.indexOf(term);
|
|
197
|
-
if (index > -1) {
|
|
198
|
-
history.splice(index, 1);
|
|
199
|
-
this.searchHistory = history;
|
|
200
|
-
// Update localStorage
|
|
201
|
-
if (typeof localStorage !== 'undefined') {
|
|
202
|
-
localStorage.setItem(this.historyKey, JSON.stringify(this.searchHistory));
|
|
203
|
-
}
|
|
204
|
-
// Update suggestions after removal
|
|
205
|
-
this.updateSuggestions();
|
|
206
|
-
// Close dropdown if no history remains
|
|
207
|
-
if (this.searchHistory.length === 0 && this.value.length === 0) {
|
|
208
|
-
this.showDropdown = false;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
186
|
requestSuggestions(query) {
|
|
213
187
|
this.ifxSuggestionRequested.emit(query);
|
|
214
188
|
this.updateSuggestions();
|
|
@@ -334,32 +308,6 @@ const SearchField = class {
|
|
|
334
308
|
this.filteredSuggestions = [];
|
|
335
309
|
}
|
|
336
310
|
}
|
|
337
|
-
// Check if only history entries are displayed (without text input)
|
|
338
|
-
isShowingOnlyHistory() {
|
|
339
|
-
return this.value.length === 0 &&
|
|
340
|
-
this.filteredSuggestions.length > 0 &&
|
|
341
|
-
this.filteredSuggestions.every(s => s.type === 'history');
|
|
342
|
-
}
|
|
343
|
-
// Render text with highlighted matches
|
|
344
|
-
renderHighlightedText(text, query) {
|
|
345
|
-
if (!query || query.length === 0) {
|
|
346
|
-
return text;
|
|
347
|
-
}
|
|
348
|
-
const lowerText = text.toLowerCase();
|
|
349
|
-
const lowerQuery = query.toLowerCase();
|
|
350
|
-
const index = lowerText.indexOf(lowerQuery);
|
|
351
|
-
if (index === -1) {
|
|
352
|
-
return text;
|
|
353
|
-
}
|
|
354
|
-
const before = text.substring(0, index);
|
|
355
|
-
const match = text.substring(index, index + query.length);
|
|
356
|
-
const after = text.substring(index + query.length);
|
|
357
|
-
return [
|
|
358
|
-
before,
|
|
359
|
-
h("strong", null, match),
|
|
360
|
-
after
|
|
361
|
-
];
|
|
362
|
-
}
|
|
363
311
|
componentWillLoad() {
|
|
364
312
|
this.loadSearchHistory();
|
|
365
313
|
}
|
|
@@ -377,17 +325,12 @@ const SearchField = class {
|
|
|
377
325
|
this.showDeleteIconInternalState = false;
|
|
378
326
|
}
|
|
379
327
|
render() {
|
|
380
|
-
return (h("div", { key: '
|
|
328
|
+
return (h("div", { key: 'f471fa3ed5a0f009c2beff388d6ff69738b58258', class: 'search-field' }, h("div", { key: '5f14c9d8ca1e1fbcdbef5baeb5a09e343447ce99', class: this.getWrapperClassNames(), onClick: () => this.focusInput() }, h("ifx-icon", { key: 'ec39eae8bff9109889e5859fe3e1d6bb83f50f51', icon: "search-16", class: "search-icon" }), h("input", { key: 'ed48f70ce624976b858e6d69bfc0f7a915eed3a4', ref: (el) => (this.inputElement = el), type: "text", autocomplete: this.autocomplete, onInput: () => this.handleInput(), onFocus: () => this.focusInput(), onBlur: () => this.blurInput(), placeholder: this.placeholder, disabled: this.disabled, maxlength: this.maxlength, value: this.value, role: "combobox" }), this.showDeleteIcon && this.showDeleteIconInternalState ? (h("ifx-icon", { icon: "cRemove16", class: "delete-icon", onClick: this.handleDelete, onKeyDown: (event) => {
|
|
381
329
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
382
330
|
event.preventDefault();
|
|
383
331
|
this.handleDelete();
|
|
384
332
|
}
|
|
385
|
-
} })) : null)
|
|
386
|
-
if (event.key === 'Enter' || event.key === ' ') {
|
|
387
|
-
event.preventDefault();
|
|
388
|
-
this.handleHistoryDelete(event, suggestion.text);
|
|
389
|
-
}
|
|
390
|
-
} }))))))))));
|
|
333
|
+
} })) : null)));
|
|
391
334
|
}
|
|
392
335
|
getSizeClass() {
|
|
393
336
|
return `${this.size}` === "s"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ifx-search-field.entry.js","sources":["src/components/search-field/search-field.scss?tag=ifx-search-field&encapsulation=shadow","src/components/search-field/search-field.tsx"],"sourcesContent":["@use '~@infineon/design-system-tokens/dist/tokens';\n@use '../../global/font.scss';\n\n:host {\n display: flex;\n}\n\n.search-field {\n box-sizing: border-box;\n background-color: tokens.$ifxColorBaseWhite;\n width: 100%;\n font-family: var(--ifx-font-family);\n position: relative; // Wichtig für absolute positioning des Dropdowns\n\n .search-field__wrapper {\n box-sizing: border-box;\n height: tokens.$ifxSize500;\n display: flex;\n align-items: center;\n border: 1px solid #8d8786;\n border-radius: tokens.$ifxBorderRadius12;\n padding: tokens.$ifxSpace100 tokens.$ifxSpace200;\n gap: tokens.$ifxSpace150;\n flex: none;\n order: 0;\n align-self: stretch;\n flex-grow: 0;\n position: relative;\n width: 100%;\n outline: none;\n\n &:focus-visible:not(.disabled) {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 2px;\n }\n\n &.search-field__wrapper-s {\n height: 36px;\n }\n\n &:hover:not(.focused, :focus) {\n border: 1px solid #3c3a39;\n }\n\n & .delete-icon {\n outline: 1px solid transparent;\n right: 12px;\n cursor: pointer;\n &:focus-visible {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 1px;\n }\n }\n\n input[type='text'] {\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n //line-height: 24px;\n color: #8d8786;\n border: none;\n width: 100%;\n outline: none;\n //height: 100%;\n height: 16px;\n\n &:focus {\n outline: none;\n color: #1d1d1d;\n }\n\n &:disabled {\n background: tokens.$ifxColorEngineering300;\n color: tokens.$ifxColorBaseWhite;\n\n &::placeholder {\n color: tokens.$ifxColorBaseWhite;\n }\n }\n }\n\n &.disabled {\n background: tokens.$ifxColorEngineering300;\n border: none;\n color: tokens.$ifxColorBaseWhite;\n\n &:hover {\n border: none;\n outline: none;\n }\n\n & .delete-icon { \n cursor: default;\n &:focus-visible { \n outline: 1px solid transparent;\n }\n }\n }\n }\n\n // Suggestions Dropdown Styles\n .suggestions-dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: tokens.$ifxColorBaseWhite;\n margin-top: tokens.$ifxSpace50;\n border: 1px solid tokens.$ifxColorEngineering200;\n box-shadow: 0px 6px 9px 0px rgba(29, 29, 29, 0.1);\n z-index: 1000;\n max-height: 300px;\n overflow-y: auto;\n container-type: inline-size; // Enable container queries\n\n .suggestions-header {\n // font: tokens.$ifxEyebrowEyebrow02; TODO\n font-family: Source Sans 3;\n font-size: 0.8125rem;\n font-weight: 600;\n line-height: 1.25rem;\n\n letter-spacing: 0.25em;\n text-transform: uppercase;\n color: tokens.$ifxColorEngineering500;\n border-bottom: 1px solid tokens.$ifxColorEngineering200;\n padding: tokens.$ifxSpace150 tokens.$ifxSpace200;\n }\n\n .suggestion-item {\n padding: tokens.$ifxSpace150 tokens.$ifxSpace200;\n cursor: pointer;\n transition: background-color 0.2s ease;\n\n &:last-child {\n border-bottom: none;\n }\n\n &:hover,\n &--selected {\n background-color: tokens.$ifxColorEngineering200;\n }\n\n .suggestion-content {\n display: flex;\n align-items: center;\n gap: tokens.$ifxSpace150;\n\n .suggestion-icon {\n color: tokens.$ifxColorEngineering500;\n flex-shrink: 0;\n\n &--history {\n color: tokens.$ifxColorEngineering500;\n }\n }\n\n .suggestion-text {\n flex: 1;\n display: flex;\n align-items: center;\n min-width: 0; // Important for flexbox truncation\n\n .suggestion-main-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex-shrink: 1;\n min-width: 0;\n }\n\n .suggestion-scope {\n color: tokens.$ifxColorEngineering400;\n flex-shrink: 0; // Never truncate the scope\n white-space: nowrap;\n margin-left: tokens.$ifxSpace25; // Add space before the scope\n font-weight: tokens.$ifxFontWeightSemibold;\n font-size: tokens.$ifxFontSizeXs;\n }\n\n // When container is narrow, stack scope below main text\n @container (max-width: 320px) {\n flex-direction: column;\n align-items: flex-start;\n\n .suggestion-main-text {\n width: 100%;\n max-width: 100%;\n }\n\n .suggestion-scope {\n margin-left: 0;\n margin-top: 0;\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 1; // Allow truncation when narrow\n }\n }\n }\n\n .suggestion-count {\n color: tokens.$ifxColorEngineering400;\n margin-left: auto;\n flex-shrink: 0;\n }\n\n .suggestion-delete-icon {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s ease, visibility 0.2s ease;\n cursor: pointer;\n margin-left: auto;\n flex-shrink: 0;\n color: tokens.$ifxColorEngineering500;\n\n &:hover {\n color: tokens.$ifxColorEngineering600;\n }\n }\n }\n\n &:hover {\n .suggestion-delete-icon {\n opacity: 1;\n visibility: visible;\n }\n }\n }\n }\n\n // Wrapper modifications when dropdown is open\n .search-field__wrapper.dropdown-open {\n border-radius: tokens.$ifxBorderRadius12 tokens.$ifxBorderRadius12 0 0;\n border-color: tokens.$ifxColorOcean500;\n }\n}\n","import { Component, EventEmitter, h, Event, Prop, Watch, State, Listen, Element } from '@stencil/core';\nimport { trackComponent } from '../../global/utils/tracking';\nimport { isNestedInIfxComponent } from '../../global/utils/dom-utils';\nimport { detectFramework } from '../../global/utils/framework-detection';\nimport classNames from 'classnames';\n\nexport interface SuggestionItem {\n id: string;\n text: string;\n type?: 'suggestion' | 'history';\n scope?: string;\n resultCount?: number;\n metadata?: any;\n}\n\n@Component({\n tag: 'ifx-search-field',\n styleUrl: 'search-field.scss',\n shadow: true\n})\n\nexport class SearchField {\n @Element() el;\n private inputElement: HTMLInputElement;\n private dropdownElement: HTMLDivElement;\n\n @Prop({ mutable: true }) value: string = '';\n @Prop() suggestions: SuggestionItem[] = [];\n @Prop() showSuggestions: boolean = false;\n @Prop() maxSuggestions: number = 10;\n @Prop() maxHistoryItems: number = 5;\n @Prop() enableHistory: boolean = true;\n @Prop() historyKey: string = 'ifx-search-history';\n @Prop() historyHeaderText: string = 'Recent Searches';\n\n // ARIA Labels and Accessibility Props\n @Prop() ariaLabel: string | null = \"Search Field\"\n @Prop() ariaLabelledBy?: string | null;\n @Prop() ariaDescribedBy?: string | null;\n @Prop() deleteIconAriaLabel: string = 'Clear search';\n @Prop() historyDeleteAriaLabel: string = 'Remove from history';\n @Prop() dropdownAriaLabel: string = 'Search suggestions and history';\n @Prop() suggestionAriaLabel: string = 'Search suggestion';\n @Prop() historyItemAriaLabel: string = 'Search history item';\n\n @Event() ifxInput: EventEmitter<string>;\n @Event() ifxSuggestionRequested: EventEmitter<string>;\n @Event() ifxSuggestionSelected: EventEmitter<SuggestionItem>;\n @Event() ifxFocus: EventEmitter<void>;\n @Event() ifxBlur: EventEmitter<void>;\n\n @State() showDropdown: boolean = false;\n @State() filteredSuggestions: SuggestionItem[] = [];\n @State() selectedSuggestionIndex: number = -1;\n @State() searchHistory: string[] = [];\n\n @Prop() showDeleteIcon: boolean = false;\n @State() showDeleteIconInternalState: boolean = false;\n @Prop() disabled: boolean = false;\n @Prop() size: string = 'l';\n @State() isFocused: boolean = false;\n @Prop() placeholder: string = \"Search...\";\n @Prop() autocomplete: string = \"off\";\n @Prop() maxlength?: number = null;\n\n private focusEmitted: boolean = false;\n\n @Listen('mousedown', { target: 'document' })\n handleOutsideClick(event: MouseEvent) {\n const path = event.composedPath();\n if (!path.includes(this.inputElement) && !path.includes(this.dropdownElement)) {\n this.hideDropdown();\n }\n }\n\n @Listen('keydown')\n handleKeyDown(event: KeyboardEvent) {\n if (!this.showDropdown) return;\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.navigateSuggestions(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.navigateSuggestions(-1);\n break;\n case 'Enter':\n event.preventDefault();\n if (this.selectedSuggestionIndex >= 0) {\n this.selectSuggestion(this.filteredSuggestions[this.selectedSuggestionIndex]);\n } else {\n this.handleSearch();\n }\n break;\n case 'Escape':\n this.hideDropdown();\n break;\n }\n }\n\n @Watch('value')\n valueWatcher(newValue: string) {\n if (this.inputElement && newValue !== this.inputElement.value) {\n this.inputElement.value = newValue;\n }\n this.updateSuggestions();\n }\n\n @Watch('suggestions')\n suggestionsWatcher() {\n this.updateSuggestions();\n }\n\n\n handleInput = () => {\n const query = this.inputElement.value;\n this.value = query;\n this.ifxInput.emit(this.value);\n\n if (this.showSuggestions) {\n this.showDropdown = true;\n this.selectedSuggestionIndex = -1;\n this.requestSuggestions(query);\n }\n };\n\n handleDelete = () => {\n if(!this.disabled) { \n this.inputElement.value = '';\n this.value = \"\";\n this.ifxInput.emit(this.value);\n this.hideDropdown();\n }\n }\n\n handleSearch = () => {\n if (this.value.trim() && this.enableHistory) {\n // Only add to history if there are actual results\n if (this.filteredSuggestions.length > 0) {\n this.addToHistory(this.value);\n }\n }\n this.hideDropdown();\n }\n\n focusInput() {\n // Only emit focus event if it hasn't been emitted already\n if (!this.focusEmitted) {\n this.focusEmitted = true;\n this.isFocused = true;\n this.ifxFocus.emit();\n }\n\n if (this.showSuggestions) {\n // On focus without input: Show only history\n if (this.value.length === 0) {\n this.showHistoryDropdown();\n // Only show dropdown if history is actually present\n this.showDropdown = this.enableHistory && this.searchHistory.length > 0;\n } else {\n // With existing input: Normal suggestion logic\n this.updateSuggestions();\n this.showDropdown = this.filteredSuggestions.length > 0;\n }\n }\n }\n\n blurInput() {\n setTimeout(() => {\n this.isFocused = false;\n this.focusEmitted = false; // Reset focus flag when blur occurs\n this.ifxBlur.emit();\n }, 150);\n }\n\n // Public method to update history from external sources\n public loadSearchHistory() {\n if (this.enableHistory && typeof localStorage !== 'undefined') {\n const stored = localStorage.getItem(this.historyKey);\n this.searchHistory = stored ? JSON.parse(stored) : [];\n\n // Update suggestions when history is loaded\n this.updateSuggestions();\n\n // If no input and no history left, close dropdown\n if (this.value.length === 0 && this.searchHistory.length === 0) {\n this.showDropdown = false;\n }\n }\n }\n\n // Public method to completely clear history\n public clearSearchHistory() {\n if (this.enableHistory && typeof localStorage !== 'undefined') {\n // Clear from localStorage\n localStorage.removeItem(this.historyKey);\n\n // Clear internal history\n this.searchHistory = [];\n\n // Reset all dropdown-relevant states\n this.filteredSuggestions = [];\n this.selectedSuggestionIndex = -1;\n this.showDropdown = false;\n\n // Update suggestions after reset\n this.updateSuggestions();\n }\n }\n\n // Suggestion Management Methods\n private addToHistory(term: string) {\n if (!this.enableHistory || !term.trim()) return;\n\n const history = [...this.searchHistory];\n const existingIndex = history.indexOf(term);\n\n if (existingIndex > -1) {\n history.splice(existingIndex, 1);\n }\n\n history.unshift(term);\n // Limit history to maxHistoryItems (default 5)\n this.searchHistory = history.slice(0, this.maxHistoryItems);\n\n if (typeof localStorage !== 'undefined') {\n localStorage.setItem(this.historyKey, JSON.stringify(this.searchHistory));\n }\n }\n\n // Remove individual history entry\n private removeFromHistory(term: string) {\n if (!this.enableHistory) return;\n\n const history = [...this.searchHistory];\n const index = history.indexOf(term);\n\n if (index > -1) {\n history.splice(index, 1);\n this.searchHistory = history;\n\n // Update localStorage\n if (typeof localStorage !== 'undefined') {\n localStorage.setItem(this.historyKey, JSON.stringify(this.searchHistory));\n }\n\n // Update suggestions after removal\n this.updateSuggestions();\n\n // Close dropdown if no history remains\n if (this.searchHistory.length === 0 && this.value.length === 0) {\n this.showDropdown = false;\n }\n }\n }\n\n // Handle click on history delete button\n private handleHistoryDelete = (event: Event, term: string) => {\n event.stopPropagation(); // Prevent selection of the entry\n this.removeFromHistory(term);\n }\n\n private requestSuggestions(query: string) {\n this.ifxSuggestionRequested.emit(query);\n this.updateSuggestions();\n }\n\n private updateSuggestions() {\n const query = this.value.toLowerCase();\n let suggestions: SuggestionItem[] = [];\n\n if (query.length > 0) {\n // For text input: Mix external suggestions and relevant history\n\n // 1. Filter external suggestions\n if (this.suggestions && this.suggestions.length > 0) {\n const filteredExternal = this.suggestions.filter(s =>\n s.text.toLowerCase().includes(query)\n );\n suggestions = [...suggestions, ...filteredExternal];\n }\n\n // 2. Filter relevant history entries\n if (this.enableHistory && this.searchHistory.length > 0) {\n const filteredHistory = this.searchHistory\n .filter(term => term.toLowerCase().includes(query))\n .map((term, index) => ({\n id: `history-${index}`,\n text: term,\n type: 'history' as const\n }));\n suggestions = [...suggestions, ...filteredHistory];\n }\n\n // 3. Sort by relevance (exact matches first, then prefix matches)\n suggestions.sort((a, b) => {\n const aText = a.text.toLowerCase();\n const bText = b.text.toLowerCase();\n\n // Exact match has highest priority\n if (aText === query && bText !== query) return -1;\n if (bText === query && aText !== query) return 1;\n\n // Prefix match has second highest priority\n const aStartsWith = aText.startsWith(query);\n const bStartsWith = bText.startsWith(query);\n\n if (aStartsWith && !bStartsWith) return -1;\n if (bStartsWith && !aStartsWith) return 1;\n\n // With equal relevance: external suggestions before history\n if (a.type === 'suggestion' && b.type === 'history') return -1;\n if (a.type === 'history' && b.type === 'suggestion') return 1;\n\n // Alphabetical sorting as last criterion\n return aText.localeCompare(bText);\n });\n\n } else {\n // For empty query: Show only history (no external suggestions)\n if (this.enableHistory && this.searchHistory.length > 0) {\n const historySuggestions = this.searchHistory.map((term, index) => ({\n id: `history-${index}`,\n text: term,\n type: 'history' as const\n }));\n\n suggestions = historySuggestions;\n }\n // For empty query DO NOT show external suggestions\n }\n\n // Remove duplicates based on text and scope combination (history takes precedence over external)\n const uniqueSuggestions = suggestions.reduce((unique: SuggestionItem[], current) => {\n const existingIndex = unique.findIndex(item =>\n item.text.toLowerCase() === current.text.toLowerCase() &&\n item.scope === current.scope\n );\n if (existingIndex === -1) {\n unique.push(current);\n } else {\n // If already exists, prefer history over external suggestions\n if (current.type === 'history' && unique[existingIndex].type !== 'history') {\n unique[existingIndex] = current;\n }\n }\n return unique;\n }, []);\n\n this.filteredSuggestions = uniqueSuggestions.slice(0, this.maxSuggestions);\n this.selectedSuggestionIndex = -1;\n }\n\n private navigateSuggestions(direction: number) {\n const maxIndex = this.filteredSuggestions.length - 1;\n\n if (direction > 0) {\n this.selectedSuggestionIndex = this.selectedSuggestionIndex < maxIndex\n ? this.selectedSuggestionIndex + 1\n : 0;\n } else {\n this.selectedSuggestionIndex = this.selectedSuggestionIndex > 0\n ? this.selectedSuggestionIndex - 1\n : maxIndex;\n }\n }\n\n private selectSuggestion(suggestion: SuggestionItem) {\n this.value = suggestion.text;\n this.inputElement.value = suggestion.text;\n this.ifxSuggestionSelected.emit(suggestion);\n this.ifxInput.emit(this.value);\n\n if (this.enableHistory) {\n // Always add selected suggestions to history since they are valid results\n this.addToHistory(suggestion.text);\n }\n\n this.hideDropdown();\n }\n\n private hideDropdown() {\n this.showDropdown = false;\n this.selectedSuggestionIndex = -1;\n this.isFocused = false;\n }\n\n // Show only history in dropdown (e.g. on focus without input)\n private showHistoryDropdown() {\n if (this.enableHistory && this.searchHistory.length > 0) {\n // Show only history entries\n const historySuggestions = this.searchHistory.map((term, index) => ({\n id: `history-${index}`,\n text: term,\n type: 'history' as const\n }));\n\n this.filteredSuggestions = historySuggestions.slice(0, this.maxSuggestions);\n this.selectedSuggestionIndex = -1;\n } else {\n this.filteredSuggestions = [];\n }\n }\n\n // Check if only history entries are displayed (without text input)\n private isShowingOnlyHistory(): boolean {\n return this.value.length === 0 &&\n this.filteredSuggestions.length > 0 &&\n this.filteredSuggestions.every(s => s.type === 'history');\n }\n\n // Render text with highlighted matches\n private renderHighlightedText(text: string, query: string) {\n if (!query || query.length === 0) {\n return text;\n }\n\n const lowerText = text.toLowerCase();\n const lowerQuery = query.toLowerCase();\n const index = lowerText.indexOf(lowerQuery);\n\n if (index === -1) {\n return text;\n }\n\n const before = text.substring(0, index);\n const match = text.substring(index, index + query.length);\n const after = text.substring(index + query.length);\n\n return [\n before,\n <strong>{match}</strong>,\n after\n ];\n }\n\n componentWillLoad() {\n this.loadSearchHistory();\n }\n\n async componentDidLoad() { \n if(!isNestedInIfxComponent(this.el)) {\n const framework = detectFramework()\n trackComponent('ifx-search-field', await framework)\n }\n }\n\n componentWillUpdate() {\n if (this.value !== \"\") {\n this.showDeleteIconInternalState = true;\n } else this.showDeleteIconInternalState = false;\n }\n\n render() {\n return (\n <div\n aria-disabled={this.disabled}\n class='search-field'\n >\n <div\n class={this.getWrapperClassNames()}\n tabIndex={1}\n onClick={() => this.focusInput()}\n >\n <ifx-icon icon=\"search-16\" class=\"search-icon\"></ifx-icon>\n <input\n ref={(el) => (this.inputElement = el)}\n type=\"text\"\n autocomplete={this.autocomplete}\n onInput={() => this.handleInput()}\n onFocus={() => this.focusInput()}\n onBlur={() => this.blurInput()}\n placeholder={this.placeholder}\n disabled={this.disabled}\n maxlength={this.maxlength}\n value={this.value}\n role=\"combobox\"\n aria-controls={this.showDropdown ? 'suggestions-dropdown' : undefined}\n aria-expanded={this.showDropdown}\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n aria-label={this.ariaLabel}\n aria-labelledby={this.ariaLabelledBy}\n aria-describedby={this.ariaDescribedBy}\n aria-owns={this.showDropdown ? 'suggestions-dropdown' : undefined}\n aria-activedescendant={this.selectedSuggestionIndex >= 0 ? `suggestion-${this.selectedSuggestionIndex}` : undefined}\n />\n {this.showDeleteIcon && this.showDeleteIconInternalState ? (\n <ifx-icon\n icon=\"cRemove16\"\n class=\"delete-icon\"\n onClick={this.handleDelete}\n role=\"button\"\n tabIndex={0}\n aria-label={this.deleteIconAriaLabel}\n onKeyDown={(event) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.handleDelete();\n }\n }}>\n </ifx-icon>\n ) : null}\n </div>\n\n {/* Suggestions Dropdown */}\n {this.showDropdown && this.filteredSuggestions.length > 0 && (\n <div\n ref={(el) => (this.dropdownElement = el)}\n id=\"suggestions-dropdown\"\n class=\"suggestions-dropdown\"\n role=\"listbox\"\n aria-label={this.dropdownAriaLabel}\n >\n {/* History Header - only show when exclusively showing history entries */}\n {this.isShowingOnlyHistory() && (\n <div class=\"suggestions-header\">\n {this.historyHeaderText}\n </div>\n )}\n\n {this.filteredSuggestions.map((suggestion, index) => (\n <div\n key={suggestion.id}\n id={`suggestion-${index}`}\n class={this.getSuggestionClassNames(index)}\n role=\"option\"\n aria-selected={index === this.selectedSuggestionIndex}\n aria-label={`${suggestion.type === 'history' ? this.historyItemAriaLabel : this.suggestionAriaLabel}: ${suggestion.text}${suggestion.scope ? `, ${suggestion.scope}` : ''}${suggestion.resultCount ? `, ${suggestion.resultCount} results` : ''}`}\n onClick={() => this.selectSuggestion(suggestion)}\n onMouseEnter={() => this.selectedSuggestionIndex = index}\n >\n <div class=\"suggestion-content\">\n {suggestion.type === 'history' && (\n <ifx-icon icon=\"history-16\" class=\"suggestion-icon suggestion-icon--history\"></ifx-icon>\n )}\n {suggestion.type === 'suggestion' && (\n <ifx-icon icon=\"search-16\" class=\"suggestion-icon suggestion-icon--suggestion\"></ifx-icon>\n )}\n <span class=\"suggestion-text\">\n <span class=\"suggestion-main-text\">\n {this.renderHighlightedText(suggestion.text, this.value)}\n </span>\n {suggestion.scope && (\n <span class=\"suggestion-scope\">– {suggestion.scope}</span>\n )}\n </span>\n\n {suggestion.resultCount !== undefined && suggestion.scope && (\n <span class=\"suggestion-count\">{suggestion.resultCount}</span>\n )}\n\n {/* Delete Button only for history entries */}\n {suggestion.type === 'history' && (\n <ifx-icon\n icon=\"cross16\"\n class=\"suggestion-delete-icon\"\n role=\"button\"\n tabIndex={0}\n aria-label={`${this.historyDeleteAriaLabel}: ${suggestion.text}`}\n onClick={(event) => this.handleHistoryDelete(event, suggestion.text)}\n onKeyDown={(event) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.handleHistoryDelete(event, suggestion.text);\n }\n }}\n ></ifx-icon>\n )}\n </div>\n </div>\n ))}\n </div>\n )}\n </div>\n );\n }\n\n getSizeClass() {\n return `${this.size}` === \"s\"\n ? \"search-field__wrapper-s\"\n : \"\";\n }\n\n getWrapperClassNames() {\n return classNames(\n `search-field__wrapper`,\n `search-field__wrapper ${this.getSizeClass()}`,\n `${this.isFocused ? 'focused' : \"\"}`,\n `${this.showDropdown ? 'dropdown-open' : \"\"}`,\n `${this.disabled ? 'disabled' : \"\"}`\n );\n }\n\n getSuggestionClassNames(index: number) {\n return classNames(\n 'suggestion-item',\n {\n 'suggestion-item--selected': index === this.selectedSuggestionIndex,\n 'suggestion-item--history': this.filteredSuggestions[index]?.type === 'history'\n }\n );\n }\n}\n"],"names":[],"mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,o9KAAo9K;;MCqB99K,WAAW,GAAA,MAAA;AANxB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;;;AAW2B,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;AACnC,QAAA,IAAW,CAAA,WAAA,GAAqB,EAAE;AAClC,QAAA,IAAe,CAAA,eAAA,GAAY,KAAK;AAChC,QAAA,IAAc,CAAA,cAAA,GAAW,EAAE;AAC3B,QAAA,IAAe,CAAA,eAAA,GAAW,CAAC;AAC3B,QAAA,IAAa,CAAA,aAAA,GAAY,IAAI;AAC7B,QAAA,IAAU,CAAA,UAAA,GAAW,oBAAoB;AACzC,QAAA,IAAiB,CAAA,iBAAA,GAAW,iBAAiB;;AAG7C,QAAA,IAAS,CAAA,SAAA,GAAkB,cAAc;AAGzC,QAAA,IAAmB,CAAA,mBAAA,GAAW,cAAc;AAC5C,QAAA,IAAsB,CAAA,sBAAA,GAAW,qBAAqB;AACtD,QAAA,IAAiB,CAAA,iBAAA,GAAW,gCAAgC;AAC5D,QAAA,IAAmB,CAAA,mBAAA,GAAW,mBAAmB;AACjD,QAAA,IAAoB,CAAA,oBAAA,GAAW,qBAAqB;AAQnD,QAAA,IAAY,CAAA,YAAA,GAAY,KAAK;AAC7B,QAAA,IAAmB,CAAA,mBAAA,GAAqB,EAAE;AAC1C,QAAA,IAAuB,CAAA,uBAAA,GAAW,EAAE;AACpC,QAAA,IAAa,CAAA,aAAA,GAAa,EAAE;AAE7B,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;AAC9B,QAAA,IAA2B,CAAA,2BAAA,GAAY,KAAK;AAC7C,QAAA,IAAQ,CAAA,QAAA,GAA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AAC,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC;;aAEnD,EAAA,CACS,CACb,CACG,CACF,CACP,CAAC,CACE,CACP,CACG;;IAIV,YAAY,GAAA;AACV,QAAA,OAAO,GAAG,IAAI,CAAC,IAAI,CAAA,CAAE,KAAK;AACxB,cAAE;cACA,EAAE;;IAGR,oBAAoB,GAAA;QAClB,OAAO,UAAU,CACf,CAAA,qBAAA,CAAuB,EACvB,CAAA,sBAAA,EAAyB,IAAI,CAAC,YAAY,EAAE,CAAA,CAAE,EAC9C,CAAA,EAAG,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,EAAE,CAAA,CAAE,EACpC,CAAA,EAAG,IAAI,CAAC,YAAY,GAAG,eAAe,GAAG,EAAE,CAAA,CAAE,EAC7C,CAAA,EAAG,IAAI,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,CAAE,CAAA,CACrC;;AAGH,IAAA,uBAAuB,CAAC,KAAa,EAAA;;QACnC,OAAO,UAAU,CACf,iBAAiB,EACjB;AACE,YAAA,2BAA2B,EAAE,KAAK,KAAK,IAAI,CAAC,uBAAuB;AACnE,YAAA,0BAA0B,EAAE,CAAA,CAAA,EAAA,GAAA,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAK;AACvE,SAAA,CACF;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ifx-search-field.entry.js","sources":["src/components/search-field/search-field.scss?tag=ifx-search-field&encapsulation=shadow","src/components/search-field/search-field.tsx"],"sourcesContent":["@use '~@infineon/design-system-tokens/dist/tokens';\n@use '../../global/font.scss';\n\n:host {\n display: flex;\n}\n\n.search-field {\n box-sizing: border-box;\n background-color: tokens.$ifxColorBaseWhite;\n width: 100%;\n font-family: var(--ifx-font-family);\n position: relative; // Wichtig für absolute positioning des Dropdowns\n\n .search-field__wrapper {\n box-sizing: border-box;\n height: tokens.$ifxSize500;\n display: flex;\n align-items: center;\n border: 1px solid #8d8786;\n border-radius: tokens.$ifxBorderRadius12;\n padding: tokens.$ifxSpace100 tokens.$ifxSpace200;\n gap: tokens.$ifxSpace150;\n flex: none;\n order: 0;\n align-self: stretch;\n flex-grow: 0;\n position: relative;\n width: 100%;\n outline: none;\n\n &:focus-visible:not(.disabled) {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 2px;\n }\n\n &.search-field__wrapper-s {\n height: 36px;\n }\n\n &:hover:not(.focused, :focus) {\n border: 1px solid #3c3a39;\n }\n\n & .delete-icon {\n outline: 1px solid transparent;\n right: 12px;\n cursor: pointer;\n &:focus-visible {\n outline: 2px solid tokens.$ifxColorOcean500;\n outline-offset: 1px;\n }\n }\n\n input[type='text'] {\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n //line-height: 24px;\n color: #8d8786;\n border: none;\n width: 100%;\n outline: none;\n //height: 100%;\n height: 16px;\n\n &:focus {\n outline: none;\n color: #1d1d1d;\n }\n\n &:disabled {\n background: tokens.$ifxColorEngineering300;\n color: tokens.$ifxColorBaseWhite;\n\n &::placeholder {\n color: tokens.$ifxColorBaseWhite;\n }\n }\n }\n\n &.disabled {\n background: tokens.$ifxColorEngineering300;\n border: none;\n color: tokens.$ifxColorBaseWhite;\n\n &:hover {\n border: none;\n outline: none;\n }\n\n & .delete-icon { \n cursor: default;\n &:focus-visible { \n outline: 1px solid transparent;\n }\n }\n }\n }\n\n // Suggestions Dropdown Styles\n .suggestions-dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: tokens.$ifxColorBaseWhite;\n margin-top: tokens.$ifxSpace50;\n border: 1px solid tokens.$ifxColorEngineering200;\n box-shadow: 0px 6px 9px 0px rgba(29, 29, 29, 0.1);\n z-index: 1000;\n max-height: 300px;\n overflow-y: auto;\n container-type: inline-size; // Enable container queries\n\n .suggestions-header {\n // font: tokens.$ifxEyebrowEyebrow02; TODO\n font-family: Source Sans 3;\n font-size: 0.8125rem;\n font-weight: 600;\n line-height: 1.25rem;\n\n letter-spacing: 0.25em;\n text-transform: uppercase;\n color: tokens.$ifxColorEngineering500;\n border-bottom: 1px solid tokens.$ifxColorEngineering200;\n padding: tokens.$ifxSpace150 tokens.$ifxSpace200;\n }\n\n .suggestion-item {\n padding: tokens.$ifxSpace150 tokens.$ifxSpace200;\n cursor: pointer;\n transition: background-color 0.2s ease;\n\n &:last-child {\n border-bottom: none;\n }\n\n &:hover,\n &--selected {\n background-color: tokens.$ifxColorEngineering200;\n }\n\n .suggestion-content {\n display: flex;\n align-items: center;\n gap: tokens.$ifxSpace150;\n\n .suggestion-icon {\n color: tokens.$ifxColorEngineering500;\n flex-shrink: 0;\n\n &--history {\n color: tokens.$ifxColorEngineering500;\n }\n }\n\n .suggestion-text {\n flex: 1;\n display: flex;\n align-items: center;\n min-width: 0; // Important for flexbox truncation\n\n .suggestion-main-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex-shrink: 1;\n min-width: 0;\n }\n\n .suggestion-scope {\n color: tokens.$ifxColorEngineering400;\n flex-shrink: 0; // Never truncate the scope\n white-space: nowrap;\n margin-left: tokens.$ifxSpace25; // Add space before the scope\n font-weight: tokens.$ifxFontWeightSemibold;\n font-size: tokens.$ifxFontSizeXs;\n }\n\n // When container is narrow, stack scope below main text\n @container (max-width: 320px) {\n flex-direction: column;\n align-items: flex-start;\n\n .suggestion-main-text {\n width: 100%;\n max-width: 100%;\n }\n\n .suggestion-scope {\n margin-left: 0;\n margin-top: 0;\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 1; // Allow truncation when narrow\n }\n }\n }\n\n .suggestion-count {\n color: tokens.$ifxColorEngineering400;\n margin-left: auto;\n flex-shrink: 0;\n }\n\n .suggestion-delete-icon {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.2s ease, visibility 0.2s ease;\n cursor: pointer;\n margin-left: auto;\n flex-shrink: 0;\n color: tokens.$ifxColorEngineering500;\n\n &:hover {\n color: tokens.$ifxColorEngineering600;\n }\n }\n }\n\n &:hover {\n .suggestion-delete-icon {\n opacity: 1;\n visibility: visible;\n }\n }\n }\n }\n\n // Wrapper modifications when dropdown is open\n .search-field__wrapper.dropdown-open {\n border-radius: tokens.$ifxBorderRadius12 tokens.$ifxBorderRadius12 0 0;\n border-color: tokens.$ifxColorOcean500;\n }\n}\n","import { Component, EventEmitter, h, Event, Prop, Watch, State, Listen, Element } from '@stencil/core';\nimport { trackComponent } from '../../global/utils/tracking';\nimport { isNestedInIfxComponent } from '../../global/utils/dom-utils';\nimport { detectFramework } from '../../global/utils/framework-detection';\nimport classNames from 'classnames';\n\nexport interface SuggestionItem {\n id: string;\n text: string;\n type?: 'suggestion' | 'history';\n scope?: string;\n resultCount?: number;\n metadata?: any;\n}\n\n@Component({\n tag: 'ifx-search-field',\n styleUrl: 'search-field.scss',\n shadow: true\n})\n\nexport class SearchField {\n @Element() el;\n private inputElement: HTMLInputElement;\n private dropdownElement: HTMLDivElement;\n\n @Prop({ mutable: true }) value: string = '';\n @Prop() suggestions: SuggestionItem[] = [];\n @Prop() showSuggestions: boolean = false;\n @Prop() maxSuggestions: number = 10;\n @Prop() maxHistoryItems: number = 5;\n @Prop() enableHistory: boolean = true;\n @Prop() historyKey: string = 'ifx-search-history';\n @Prop() historyHeaderText: string = 'Recent Searches';\n\n // ARIA Labels and Accessibility Props\n @Prop() ariaLabel: string | null = \"Search Field\"\n @Prop() ariaLabelledBy?: string | null;\n @Prop() ariaDescribedBy?: string | null;\n @Prop() deleteIconAriaLabel: string = 'Clear search';\n @Prop() historyDeleteAriaLabel: string = 'Remove from history';\n @Prop() dropdownAriaLabel: string = 'Search suggestions and history';\n @Prop() suggestionAriaLabel: string = 'Search suggestion';\n @Prop() historyItemAriaLabel: string = 'Search history item';\n\n @Event() ifxInput: EventEmitter<string>;\n @Event() ifxSuggestionRequested: EventEmitter<string>;\n @Event() ifxSuggestionSelected: EventEmitter<SuggestionItem>;\n @Event() ifxFocus: EventEmitter<void>;\n @Event() ifxBlur: EventEmitter<void>;\n\n @State() showDropdown: boolean = false;\n @State() filteredSuggestions: SuggestionItem[] = [];\n @State() selectedSuggestionIndex: number = -1;\n @State() searchHistory: string[] = [];\n\n @Prop() showDeleteIcon: boolean = false;\n @State() showDeleteIconInternalState: boolean = false;\n @Prop() disabled: boolean = false;\n @Prop() size: string = 'l';\n @State() isFocused: boolean = false;\n @Prop() placeholder: string = \"Search...\";\n @Prop() autocomplete: string = \"off\";\n @Prop() maxlength?: number = null;\n\n private focusEmitted: boolean = false;\n\n @Listen('mousedown', { target: 'document' })\n handleOutsideClick(event: MouseEvent) {\n const path = event.composedPath();\n if (!path.includes(this.inputElement) && !path.includes(this.dropdownElement)) {\n this.hideDropdown();\n }\n }\n\n @Listen('keydown')\n handleKeyDown(event: KeyboardEvent) {\n if (!this.showDropdown) return;\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.navigateSuggestions(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.navigateSuggestions(-1);\n break;\n case 'Enter':\n event.preventDefault();\n if (this.selectedSuggestionIndex >= 0) {\n this.selectSuggestion(this.filteredSuggestions[this.selectedSuggestionIndex]);\n } else {\n this.handleSearch();\n }\n break;\n case 'Escape':\n this.hideDropdown();\n break;\n }\n }\n\n @Watch('value')\n valueWatcher(newValue: string) {\n if (this.inputElement && newValue !== this.inputElement.value) {\n this.inputElement.value = newValue;\n }\n this.updateSuggestions();\n }\n\n @Watch('suggestions')\n suggestionsWatcher() {\n this.updateSuggestions();\n }\n\n\n handleInput = () => {\n const query = this.inputElement.value;\n this.value = query;\n this.ifxInput.emit(this.value);\n\n if (this.showSuggestions) {\n this.showDropdown = true;\n this.selectedSuggestionIndex = -1;\n this.requestSuggestions(query);\n }\n };\n\n handleDelete = () => {\n if(!this.disabled) { \n this.inputElement.value = '';\n this.value = \"\";\n this.ifxInput.emit(this.value);\n this.hideDropdown();\n }\n }\n\n handleSearch = () => {\n if (this.value.trim() && this.enableHistory) {\n // Only add to history if there are actual results\n if (this.filteredSuggestions.length > 0) {\n this.addToHistory(this.value);\n }\n }\n this.hideDropdown();\n }\n\n focusInput() {\n // Only emit focus event if it hasn't been emitted already\n if (!this.focusEmitted) {\n this.focusEmitted = true;\n this.isFocused = true;\n this.ifxFocus.emit();\n }\n\n if (this.showSuggestions) {\n // On focus without input: Show only history\n if (this.value.length === 0) {\n this.showHistoryDropdown();\n // Only show dropdown if history is actually present\n this.showDropdown = this.enableHistory && this.searchHistory.length > 0;\n } else {\n // With existing input: Normal suggestion logic\n this.updateSuggestions();\n this.showDropdown = this.filteredSuggestions.length > 0;\n }\n }\n }\n\n blurInput() {\n setTimeout(() => {\n this.isFocused = false;\n this.focusEmitted = false; // Reset focus flag when blur occurs\n this.ifxBlur.emit();\n }, 150);\n }\n\n // Public method to update history from external sources\n public loadSearchHistory() {\n if (this.enableHistory && typeof localStorage !== 'undefined') {\n const stored = localStorage.getItem(this.historyKey);\n this.searchHistory = stored ? JSON.parse(stored) : [];\n\n // Update suggestions when history is loaded\n this.updateSuggestions();\n\n // If no input and no history left, close dropdown\n if (this.value.length === 0 && this.searchHistory.length === 0) {\n this.showDropdown = false;\n }\n }\n }\n\n // Public method to completely clear history\n public clearSearchHistory() {\n if (this.enableHistory && typeof localStorage !== 'undefined') {\n // Clear from localStorage\n localStorage.removeItem(this.historyKey);\n\n // Clear internal history\n this.searchHistory = [];\n\n // Reset all dropdown-relevant states\n this.filteredSuggestions = [];\n this.selectedSuggestionIndex = -1;\n this.showDropdown = false;\n\n // Update suggestions after reset\n this.updateSuggestions();\n }\n }\n\n // Suggestion Management Methods\n private addToHistory(term: string) {\n if (!this.enableHistory || !term.trim()) return;\n\n const history = [...this.searchHistory];\n const existingIndex = history.indexOf(term);\n\n if (existingIndex > -1) {\n history.splice(existingIndex, 1);\n }\n\n history.unshift(term);\n // Limit history to maxHistoryItems (default 5)\n this.searchHistory = history.slice(0, this.maxHistoryItems);\n\n if (typeof localStorage !== 'undefined') {\n localStorage.setItem(this.historyKey, JSON.stringify(this.searchHistory));\n }\n }\n\n private requestSuggestions(query: string) {\n this.ifxSuggestionRequested.emit(query);\n this.updateSuggestions();\n }\n\n private updateSuggestions() {\n const query = this.value.toLowerCase();\n let suggestions: SuggestionItem[] = [];\n\n if (query.length > 0) {\n // For text input: Mix external suggestions and relevant history\n\n // 1. Filter external suggestions\n if (this.suggestions && this.suggestions.length > 0) {\n const filteredExternal = this.suggestions.filter(s =>\n s.text.toLowerCase().includes(query)\n );\n suggestions = [...suggestions, ...filteredExternal];\n }\n\n // 2. Filter relevant history entries\n if (this.enableHistory && this.searchHistory.length > 0) {\n const filteredHistory = this.searchHistory\n .filter(term => term.toLowerCase().includes(query))\n .map((term, index) => ({\n id: `history-${index}`,\n text: term,\n type: 'history' as const\n }));\n suggestions = [...suggestions, ...filteredHistory];\n }\n\n // 3. Sort by relevance (exact matches first, then prefix matches)\n suggestions.sort((a, b) => {\n const aText = a.text.toLowerCase();\n const bText = b.text.toLowerCase();\n\n // Exact match has highest priority\n if (aText === query && bText !== query) return -1;\n if (bText === query && aText !== query) return 1;\n\n // Prefix match has second highest priority\n const aStartsWith = aText.startsWith(query);\n const bStartsWith = bText.startsWith(query);\n\n if (aStartsWith && !bStartsWith) return -1;\n if (bStartsWith && !aStartsWith) return 1;\n\n // With equal relevance: external suggestions before history\n if (a.type === 'suggestion' && b.type === 'history') return -1;\n if (a.type === 'history' && b.type === 'suggestion') return 1;\n\n // Alphabetical sorting as last criterion\n return aText.localeCompare(bText);\n });\n\n } else {\n // For empty query: Show only history (no external suggestions)\n if (this.enableHistory && this.searchHistory.length > 0) {\n const historySuggestions = this.searchHistory.map((term, index) => ({\n id: `history-${index}`,\n text: term,\n type: 'history' as const\n }));\n\n suggestions = historySuggestions;\n }\n // For empty query DO NOT show external suggestions\n }\n\n // Remove duplicates based on text and scope combination (history takes precedence over external)\n const uniqueSuggestions = suggestions.reduce((unique: SuggestionItem[], current) => {\n const existingIndex = unique.findIndex(item =>\n item.text.toLowerCase() === current.text.toLowerCase() &&\n item.scope === current.scope\n );\n if (existingIndex === -1) {\n unique.push(current);\n } else {\n // If already exists, prefer history over external suggestions\n if (current.type === 'history' && unique[existingIndex].type !== 'history') {\n unique[existingIndex] = current;\n }\n }\n return unique;\n }, []);\n\n this.filteredSuggestions = uniqueSuggestions.slice(0, this.maxSuggestions);\n this.selectedSuggestionIndex = -1;\n }\n\n private navigateSuggestions(direction: number) {\n const maxIndex = this.filteredSuggestions.length - 1;\n\n if (direction > 0) {\n this.selectedSuggestionIndex = this.selectedSuggestionIndex < maxIndex\n ? this.selectedSuggestionIndex + 1\n : 0;\n } else {\n this.selectedSuggestionIndex = this.selectedSuggestionIndex > 0\n ? this.selectedSuggestionIndex - 1\n : maxIndex;\n }\n }\n\n private selectSuggestion(suggestion: SuggestionItem) {\n this.value = suggestion.text;\n this.inputElement.value = suggestion.text;\n this.ifxSuggestionSelected.emit(suggestion);\n this.ifxInput.emit(this.value);\n\n if (this.enableHistory) {\n // Always add selected suggestions to history since they are valid results\n this.addToHistory(suggestion.text);\n }\n\n this.hideDropdown();\n }\n\n private hideDropdown() {\n this.showDropdown = false;\n this.selectedSuggestionIndex = -1;\n this.isFocused = false;\n }\n\n // Show only history in dropdown (e.g. on focus without input)\n private showHistoryDropdown() {\n if (this.enableHistory && this.searchHistory.length > 0) {\n // Show only history entries\n const historySuggestions = this.searchHistory.map((term, index) => ({\n id: `history-${index}`,\n text: term,\n type: 'history' as const\n }));\n\n this.filteredSuggestions = historySuggestions.slice(0, this.maxSuggestions);\n this.selectedSuggestionIndex = -1;\n } else {\n this.filteredSuggestions = [];\n }\n }\n\n componentWillLoad() {\n this.loadSearchHistory();\n }\n\n async componentDidLoad() { \n if(!isNestedInIfxComponent(this.el)) {\n const framework = detectFramework()\n trackComponent('ifx-search-field', await framework)\n }\n }\n\n componentWillUpdate() {\n if (this.value !== \"\") {\n this.showDeleteIconInternalState = true;\n } else this.showDeleteIconInternalState = false;\n }\n\n render() {\n return (\n <div\n class='search-field'\n >\n <div\n class={this.getWrapperClassNames()}\n onClick={() => this.focusInput()}\n >\n <ifx-icon icon=\"search-16\" class=\"search-icon\"></ifx-icon>\n <input\n ref={(el) => (this.inputElement = el)}\n type=\"text\"\n autocomplete={this.autocomplete}\n onInput={() => this.handleInput()}\n onFocus={() => this.focusInput()}\n onBlur={() => this.blurInput()}\n placeholder={this.placeholder}\n disabled={this.disabled}\n maxlength={this.maxlength}\n value={this.value}\n role=\"combobox\"\n />\n {this.showDeleteIcon && this.showDeleteIconInternalState ? (\n <ifx-icon\n icon=\"cRemove16\"\n class=\"delete-icon\"\n onClick={this.handleDelete}\n onKeyDown={(event) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.handleDelete();\n }\n }}>\n </ifx-icon>\n ) : null}\n </div>\n </div>\n );\n }\n\n getSizeClass() {\n return `${this.size}` === \"s\"\n ? \"search-field__wrapper-s\"\n : \"\";\n }\n\n getWrapperClassNames() {\n return classNames(\n `search-field__wrapper`,\n `search-field__wrapper ${this.getSizeClass()}`,\n `${this.isFocused ? 'focused' : \"\"}`,\n `${this.showDropdown ? 'dropdown-open' : \"\"}`,\n `${this.disabled ? 'disabled' : \"\"}`\n );\n }\n\n getSuggestionClassNames(index: number) {\n return classNames(\n 'suggestion-item',\n {\n 'suggestion-item--selected': index === this.selectedSuggestionIndex,\n 'suggestion-item--history': this.filteredSuggestions[index]?.type === 'history'\n }\n );\n }\n}\n"],"names":[],"mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,o9KAAo9K;;MCqB99K,WAAW,GAAA,MAAA;AANxB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;;;AAW2B,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;AACnC,QAAA,IAAW,CAAA,WAAA,GAAqB,EAAE;AAClC,QAAA,IAAe,CAAA,eAAA,GAAY,KAAK;AAChC,QAAA,IAAc,C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AAuB,CAAC,KAAa,EAAA;;QACnC,OAAO,UAAU,CACf,iBAAiB,EACjB;AACE,YAAA,2BAA2B,EAAE,KAAK,KAAK,IAAI,CAAC,uBAAuB;AACnE,YAAA,0BAA0B,EAAE,CAAA,CAAA,EAAA,GAAA,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAK;AACvE,SAAA,CACF;;;;;;;;;;;;"}
|
|
@@ -23,7 +23,7 @@ const Segment = class {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
26
|
+
return (h("div", { key: '63649c105328d122b919f2da84580004df440910', class: `segment ${this.selected ? 'segment--selected' : ''}`, tabIndex: 0, onClick: () => { this.handleSegmentClick(); }, onKeyDown: (e) => { this.handleSegmentKeyDown(e); } }, h("ifx-icon", { key: '447e5fbc0e119e47bf8be81e9cff9115f160ef61', icon: this.icon }), " ", h("slot", { key: '7459f68f4e25b097b8125888e230c0bf9c9adb69' })));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
Segment.style = segmentCss;
|
|
@@ -71,8 +71,8 @@ const SegmentedControl = class {
|
|
|
71
71
|
this.setActiveSegment();
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (h("div", { key: '
|
|
75
|
-
h("div", { key: '
|
|
74
|
+
return (h("div", { key: '5daf0ce5b40c031c88607641a64bad4376795d40', "aria-value": this.selectedValue, "aria-label": 'segmented control', class: "group" }, h("div", { key: '2e089a49080a926635ca36aaffe38447338f9c0f', class: 'group__label' }, this.label.trim(), this.required && this.label.trim().toLowerCase() !== "" && h("span", { key: '65028e32098990164ffb0c8b6c37f619321ef8e1', class: `required ${this.error ? 'error' : ''}` }, "*")), h("div", { key: 'b42ad8dfc28a1c9a2c19f163eb01c18e7c807a2c', class: 'group__controls' }, h("slot", { key: '58f4e4bfd448298cc2d8ea3db37ac720fdba1e5a' })), this.caption.trim() &&
|
|
75
|
+
h("div", { key: '6c4116c66e1f636010c62a4d040e386d6df345ab', class: `group__caption ${this.error ? 'error' : ''}` }, h("ifx-icon", { key: '8b52235a0376b3e49b5e5c18d05b30c91131032e', icon: 'c-info-16' }), " ", this.caption.trim())));
|
|
76
76
|
}
|
|
77
77
|
componentDidRender() {
|
|
78
78
|
this.setSegmentSize();
|
|
@@ -7065,9 +7065,9 @@ const Choices = class {
|
|
|
7065
7065
|
// destroy choices element to restore previous dom structure
|
|
7066
7066
|
// so vdom can replace the element correctly
|
|
7067
7067
|
this.destroy();
|
|
7068
|
-
return (h("div", { key: '
|
|
7068
|
+
return (h("div", { key: '18ac58c92cd751a640a0699a57486060a15a9270', class: `ifx-select-container` }, this.label ? (h("div", { class: `ifx-label-wrapper ${this.disabled && !this.error ? 'disabled' : ""}` }, h("span", null, this.label), this.required && h("span", { class: `required ${this.error ? 'error' : ''}` }, "*"))) : null, h("div", { key: '78f8fc7b6bb06b906ec054c50f78e4c9470eb8f3', class: `${choicesWrapperClass}
|
|
7069
7069
|
${this.disabled && !this.error ? 'disabled' : ''}
|
|
7070
|
-
${this.error ? 'error' : ''}`, onClick: this.disabled && !this.error ? undefined : e => this.handleWrapperClick(e), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: '
|
|
7070
|
+
${this.error ? 'error' : ''}`, onClick: this.disabled && !this.error ? undefined : e => this.handleWrapperClick(e), onKeyDown: event => this.handleKeyDown(event) }, h("select", Object.assign({ key: '1326dbced764bbc486e167eaeff247fccfe5bfa2', class: "single__select-input-field", disabled: this.disabled && !this.error }, attributes, { "data-trigger": true, onChange: () => this.handleChange() }), this.createSelectOptions(this.options)), h("div", { key: 'cfea46076fc0208e960a0617bee3e024be0f4ea7', class: "single__select-icon-container" }, this.optionIsSelected && (h("div", { key: 'f8ca72210fb4c4b5bfb6f24dc61de09c41178625', class: `ifx-choices__icon-wrapper-delete ${!this.showClearButton ? 'hide' : ''}` }, h("ifx-icon", { key: 'bf047ab93adaf603ab2dda8c58e96f2c262fb8cf', icon: "cRemove16", onClick: () => this.clearSelection() }))), h("div", { key: 'f34747013e98e338eaf64fc0a642e46f310e333d', class: "ifx-choices__icon-wrapper-up" }, h("ifx-icon", { key: "icon-up", icon: "chevron-up-16" })), h("div", { key: '163dea0e26a5985a354b4a05c7ec70d6a8379aa6', class: "ifx-choices__icon-wrapper-down" }, h("ifx-icon", { key: "icon-down", icon: "chevron-down-16" })))), this.caption && h("div", { key: 'ed67947b1560ef556e26a58b573cf91992cb3ac9', class: `single__select-caption ${this.error ? 'error' : ''} ${this.disabled && !this.error ? 'disabled' : ''}` }, this.caption)));
|
|
7071
7071
|
}
|
|
7072
7072
|
toggleDropdown() {
|
|
7073
7073
|
const div = this.root.querySelector('.ifx-choices__wrapper');
|
|
@@ -147,10 +147,10 @@ const IfxSlider = class {
|
|
|
147
147
|
this.updateValuePercent();
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return (h("div", { key: '
|
|
150
|
+
return (h("div", { key: 'c847455fa1b0596452e847e36359ec44ae1adf42', class: "ifx-slider" }, this.leftText && (h("span", { key: 'c14c665defbfc9a70b0c11d08d7ca5e0a41f62eb', class: `left-text` }, this.leftText)), this.leftIcon && (h("ifx-icon", { key: 'fea79aa8e724d40b89d7611a3ad9b2796d4582d4', icon: this.leftIcon, class: `left-icon${this.disabled ? ' disabled' : ''}` })), (this.type !== 'double') ?
|
|
151
151
|
h("input", { type: "range", min: this.min, max: this.max, step: this.step, value: this.internalValue, disabled: this.disabled, ref: (el) => (this.inputRef = el), onInput: (event) => this.handleInputChange(event), "aria-label": "Slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.internalValue, "aria-disabled": this.disabled ? "true" : "false" })
|
|
152
152
|
:
|
|
153
|
-
h("div", { class: 'range-slider__wrapper', "aria-label": this.ariaLabel, role: "group" }, h("input", { id: 'min-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMinValue, disabled: this.disabled, ref: (el) => (this.minInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event), "aria-label": "Minimum value slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.internalMinValue, "aria-disabled": this.disabled ? "true" : "false" }), h("input", { id: 'max-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMaxValue, disabled: this.disabled, ref: (el) => (this.maxInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event), "aria-label": "Maximum value slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.internalMaxValue, "aria-disabled": this.disabled ? "true" : "false" })), this.rightIcon && (h("ifx-icon", { key: '
|
|
153
|
+
h("div", { class: 'range-slider__wrapper', "aria-label": this.ariaLabel, role: "group" }, h("input", { id: 'min-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMinValue, disabled: this.disabled, ref: (el) => (this.minInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event), "aria-label": "Minimum value slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.internalMinValue, "aria-disabled": this.disabled ? "true" : "false" }), h("input", { id: 'max-slider', type: 'range', min: this.min, max: this.max, step: this.step, value: this.internalMaxValue, disabled: this.disabled, ref: (el) => (this.maxInputRef = el), onInput: (event) => this.handleInputChangeOfRangeSlider(event), onMouseUp: (event) => this.handleOnMouseLeaveOfRangeSlider(event), "aria-label": "Maximum value slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.internalMaxValue, "aria-disabled": this.disabled ? "true" : "false" })), this.rightIcon && (h("ifx-icon", { key: '47c29cf189aa68190cc190f0f478669e9fa76637', icon: this.rightIcon, class: `right-icon${this.disabled ? ' disabled' : ''}` })), this.rightText && (h("span", { key: '65f2fd910a5254000bc51f66931eff23c0d0cf1a', class: `right-text${this.disabled ? ' disabled' : ''}` }, this.rightText)), this.showPercentage && (this.type !== "double") && (h("span", { key: '449c1a5c65e656bfb819738babe3da93af830709', class: `percentage-display${this.disabled ? ' disabled' : ''}` }, this.percentage, "%"))));
|
|
154
154
|
}
|
|
155
155
|
get el() { return getElement(this); }
|
|
156
156
|
static get watchers() { return {
|