@infineon/infineon-design-system-stencil 30.0.1--canary.1600.132296aefcef8cc51db60ef119d15e86b7549a02.0 → 30.1.1--canary.1496.ada7ab553a087bc3fb372b950494343ccb1df41e.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-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ifx-alert_2.cjs.entry.js +201 -0
- package/dist/cjs/ifx-alert_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ifx-badge.cjs.entry.js +1 -1
- package/dist/cjs/ifx-basic-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item-label.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ifx-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-headline.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-image.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-links.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-overline.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card-text.cjs.entry.js +1 -1
- package/dist/cjs/ifx-card.cjs.entry.js +1 -1
- package/dist/cjs/ifx-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ifx-chip_3.cjs.entry.js +1 -1
- package/dist/cjs/ifx-content-switcher-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-content-switcher.cjs.entry.js +1 -1
- package/dist/cjs/ifx-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-header.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-separator.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-trigger-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown-trigger.cjs.entry.js +1 -1
- package/dist/cjs/ifx-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ifx-faq.cjs.entry.js +2 -2
- package/dist/cjs/ifx-filter-accordion.cjs.entry.js +1 -1
- 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-footer-column.cjs.entry.js +1 -1
- package/dist/cjs/ifx-footer.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icon.cjs.entry.js +1 -1
- package/dist/cjs/ifx-icons-preview.cjs.entry.js +1 -1
- package/dist/cjs/ifx-link.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-entry.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-group.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list-notification.cjs.entry.js +1 -1
- package/dist/cjs/ifx-list.cjs.entry.js +1 -1
- package/dist/cjs/ifx-modal.cjs.entry.js +1 -1
- package/dist/cjs/{ifx-multiselect_2.cjs.entry.js → ifx-multiselect.cjs.entry.js} +2 -70
- package/dist/cjs/ifx-multiselect.cjs.entry.js.map +1 -0
- package/dist/cjs/ifx-navbar-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-navbar-profile.cjs.entry.js +1 -1
- package/dist/cjs/ifx-navbar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-notification.cjs.entry.js +1 -1
- package/dist/cjs/ifx-number-indicator.cjs.entry.js +1 -1
- package/dist/cjs/ifx-overview-table.cjs.entry.js +1 -1
- package/dist/cjs/ifx-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ifx-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-search-field.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segment.cjs.entry.js +1 -1
- package/dist/cjs/ifx-segmented-control.cjs.entry.js +1 -1
- package/dist/cjs/ifx-select.cjs.entry.js +1 -1
- package/dist/cjs/ifx-set-filter.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar-title.cjs.entry.js +1 -1
- package/dist/cjs/ifx-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/ifx-slider.cjs.entry.js +1 -1
- package/dist/cjs/ifx-spinner_2.cjs.entry.js +103 -0
- package/dist/cjs/ifx-spinner_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ifx-status.cjs.entry.js +1 -1
- package/dist/cjs/ifx-step.cjs.entry.js +1 -1
- package/dist/cjs/ifx-stepper.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/ifx-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ifx-tag.cjs.entry.js +1 -1
- package/dist/cjs/ifx-templates-ui.cjs.entry.js +61 -0
- package/dist/cjs/ifx-templates-ui.cjs.entry.js.map +1 -0
- package/dist/cjs/ifx-textarea.cjs.entry.js +3 -3
- package/dist/cjs/ifx-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/{index-f6c58643.js → index-155a65a3.js} +30 -19
- package/dist/cjs/index-155a65a3.js.map +1 -0
- package/dist/cjs/infineon-design-system-stencil.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/templates/template/template.css +76 -0
- package/dist/collection/components/templates/template/template.js +263 -0
- package/dist/collection/components/templates/template/template.js.map +1 -0
- package/dist/collection/components/templates/templates-ui/templates-ui.css +33 -0
- package/dist/collection/components/templates/templates-ui/templates-ui.js +75 -0
- package/dist/collection/components/templates/templates-ui/templates-ui.js.map +1 -0
- package/dist/collection/components/text-field/text-field.js +4 -4
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/stories/setup-and-installation/faq/faq.js +1 -1
- package/dist/components/ifx-alert.js +1 -68
- package/dist/components/ifx-alert.js.map +1 -1
- package/dist/components/ifx-faq.js +1 -1
- package/dist/components/ifx-set-filter.js +1 -1
- package/dist/components/ifx-spinner.js +1 -46
- package/dist/components/ifx-spinner.js.map +1 -1
- package/dist/components/ifx-template.d.ts +11 -0
- package/dist/components/ifx-template.js +8 -0
- package/dist/components/ifx-template.js.map +1 -0
- package/dist/components/ifx-templates-ui.d.ts +11 -0
- package/dist/components/ifx-templates-ui.js +123 -0
- package/dist/components/ifx-templates-ui.js.map +1 -0
- 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/{esm/ifx-spinner.entry.js → components/p-53704c65.js} +28 -9
- package/dist/components/p-53704c65.js.map +1 -0
- package/dist/components/p-80d6c6e4.js +211 -0
- package/dist/components/p-80d6c6e4.js.map +1 -0
- package/dist/{esm/ifx-alert.entry.js → components/p-81263927.js} +35 -8
- package/dist/components/p-81263927.js.map +1 -0
- package/dist/components/{p-d5a199fb.js → p-b537c83a.js} +5 -5
- package/dist/components/{p-d5a199fb.js.map → p-b537c83a.js.map} +1 -1
- package/dist/esm/ifx-accordion_2.entry.js +1 -1
- package/dist/esm/ifx-alert_2.entry.js +196 -0
- package/dist/esm/ifx-alert_2.entry.js.map +1 -0
- package/dist/esm/ifx-badge.entry.js +1 -1
- package/dist/esm/ifx-basic-table.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item-label.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb-item.entry.js +1 -1
- package/dist/esm/ifx-breadcrumb.entry.js +1 -1
- package/dist/esm/ifx-button.entry.js +1 -1
- package/dist/esm/ifx-card-headline.entry.js +1 -1
- package/dist/esm/ifx-card-image.entry.js +1 -1
- package/dist/esm/ifx-card-links.entry.js +1 -1
- package/dist/esm/ifx-card-overline.entry.js +1 -1
- package/dist/esm/ifx-card-text.entry.js +1 -1
- package/dist/esm/ifx-card.entry.js +1 -1
- package/dist/esm/ifx-checkbox.entry.js +1 -1
- package/dist/esm/ifx-chip_3.entry.js +1 -1
- package/dist/esm/ifx-content-switcher-item.entry.js +1 -1
- package/dist/esm/ifx-content-switcher.entry.js +1 -1
- package/dist/esm/ifx-date-picker.entry.js +1 -1
- package/dist/esm/ifx-dropdown-header.entry.js +1 -1
- package/dist/esm/ifx-dropdown-item.entry.js +1 -1
- package/dist/esm/ifx-dropdown-menu.entry.js +1 -1
- package/dist/esm/ifx-dropdown-separator.entry.js +1 -1
- package/dist/esm/ifx-dropdown-trigger-button.entry.js +1 -1
- package/dist/esm/ifx-dropdown-trigger.entry.js +1 -1
- package/dist/esm/ifx-dropdown.entry.js +1 -1
- package/dist/esm/ifx-faq.entry.js +2 -2
- package/dist/esm/ifx-filter-accordion.entry.js +1 -1
- 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-footer-column.entry.js +1 -1
- package/dist/esm/ifx-footer.entry.js +1 -1
- package/dist/esm/ifx-icon-button.entry.js +1 -1
- package/dist/esm/ifx-icon.entry.js +1 -1
- package/dist/esm/ifx-icons-preview.entry.js +1 -1
- package/dist/esm/ifx-link.entry.js +1 -1
- package/dist/esm/ifx-list-entry.entry.js +1 -1
- package/dist/esm/ifx-list-group.entry.js +1 -1
- package/dist/esm/ifx-list-item.entry.js +1 -1
- package/dist/esm/ifx-list-notification.entry.js +1 -1
- package/dist/esm/ifx-list.entry.js +1 -1
- package/dist/esm/ifx-modal.entry.js +1 -1
- package/dist/esm/{ifx-multiselect_2.entry.js → ifx-multiselect.entry.js} +3 -70
- package/dist/esm/ifx-multiselect.entry.js.map +1 -0
- package/dist/esm/ifx-navbar-item.entry.js +1 -1
- package/dist/esm/ifx-navbar-profile.entry.js +1 -1
- package/dist/esm/ifx-navbar.entry.js +1 -1
- package/dist/esm/ifx-notification.entry.js +1 -1
- package/dist/esm/ifx-number-indicator.entry.js +1 -1
- package/dist/esm/ifx-overview-table.entry.js +1 -1
- package/dist/esm/ifx-progress-bar.entry.js +1 -1
- package/dist/esm/ifx-radio-button.entry.js +1 -1
- package/dist/esm/ifx-search-bar.entry.js +1 -1
- package/dist/esm/ifx-search-field.entry.js +1 -1
- package/dist/esm/ifx-segment.entry.js +1 -1
- package/dist/esm/ifx-segmented-control.entry.js +1 -1
- package/dist/esm/ifx-select.entry.js +1 -1
- package/dist/esm/ifx-set-filter.entry.js +1 -1
- package/dist/esm/ifx-sidebar-item.entry.js +1 -1
- package/dist/esm/ifx-sidebar-title.entry.js +1 -1
- package/dist/esm/ifx-sidebar.entry.js +1 -1
- package/dist/esm/ifx-slider.entry.js +1 -1
- package/dist/esm/ifx-spinner_2.entry.js +98 -0
- package/dist/esm/ifx-spinner_2.entry.js.map +1 -0
- package/dist/esm/ifx-status.entry.js +1 -1
- package/dist/esm/ifx-step.entry.js +1 -1
- package/dist/esm/ifx-stepper.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ifx-tabs.entry.js +1 -1
- package/dist/esm/ifx-tag.entry.js +1 -1
- package/dist/esm/ifx-templates-ui.entry.js +57 -0
- package/dist/esm/ifx-templates-ui.entry.js.map +1 -0
- package/dist/esm/ifx-textarea.entry.js +3 -3
- package/dist/esm/ifx-tooltip.entry.js +5 -5
- package/dist/esm/{index-fc6a5751.js → index-d021b985.js} +30 -20
- package/dist/esm/index-d021b985.js.map +1 -0
- package/dist/esm/infineon-design-system-stencil.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js +1 -1
- package/dist/infineon-design-system-stencil/infineon-design-system-stencil.esm.js.map +1 -1
- package/dist/infineon-design-system-stencil/{p-37654645.entry.js → p-005cee40.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1d9e400c.entry.js → p-070a401c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d31a6167.entry.js → p-0b2330b1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-fcf71895.entry.js → p-0c6417aa.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b3fb648f.entry.js → p-10f2f4d2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c2e6cbdb.entry.js → p-15c2d91e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-1a9b19fa.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-1a9b19fa.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-37ecac74.entry.js → p-1e32dc46.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-47476fcb.entry.js → p-1f0a54f5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-21ab54a8.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-21ab54a8.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-c61a9185.entry.js → p-21f9efe3.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4111bbdc.entry.js → p-22c3e2a6.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-7378190d.entry.js → p-23061813.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-39697853.entry.js → p-23fc1ac6.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ea74d7ab.entry.js → p-2cde10eb.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-50e122c4.entry.js → p-2deacdfc.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-3419fe00.entry.js +2 -0
- package/dist/infineon-design-system-stencil/{p-2ae0a0d0.entry.js → p-3a64f78a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-30640970.entry.js → p-3b597917.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5edfe317.entry.js → p-3e313cf5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-cb0ddc9b.entry.js → p-3f71f020.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0b5ad497.entry.js → p-4082111f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-0c570fa2.entry.js → p-4126ee6a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2d17e5b2.entry.js → p-4626a7a5.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-49872432.entry.js → p-4b7b93c4.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-31e9d4f8.entry.js → p-5269c5f6.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a3c03169.entry.js → p-55e8c571.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a10f9b3c.entry.js → p-577e735a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c22f8c81.entry.js → p-5a134c12.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5992e272.entry.js → p-67efe96d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-cdad5d2c.entry.js → p-6c3947ee.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-db4a364b.entry.js → p-6d82d306.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-951cf503.entry.js → p-6ff541a9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-02be14a9.entry.js → p-716f6675.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2e8c0115.entry.js → p-7973be1c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-7aa4082c.js +3 -0
- package/dist/infineon-design-system-stencil/{p-80bb0959.js.map → p-7aa4082c.js.map} +1 -1
- package/dist/infineon-design-system-stencil/{p-79b4d359.entry.js → p-80d79ac2.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-3be58aa2.entry.js → p-8299d886.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b30b66e5.entry.js → p-83a3c6d9.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f3383274.entry.js → p-85b95a9b.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b8f31dc3.entry.js → p-8822c055.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-2fbad873.entry.js → p-8bd1eb2e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e6427f2e.entry.js → p-8c0caf65.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-a29b6247.entry.js → p-8ccea8df.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4349aa3a.entry.js → p-9256384e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-d323e4ed.entry.js → p-95c0da4c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-41b0849d.entry.js → p-95c56362.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6ad287cf.entry.js → p-9c641115.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-666e0ea0.entry.js → p-9e68df13.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-4af08129.entry.js → p-a4205f38.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-a76a2ec0.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-a76a2ec0.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-8b089cd1.entry.js → p-a7b721e4.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-bc40ad21.entry.js → p-a825eb1f.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-985c7bdc.entry.js → p-b10e3175.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1b9317bd.entry.js → p-b1543f1d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ee68427e.entry.js → p-bbc7a00e.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-31889cb2.entry.js → p-c9211767.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1175d112.entry.js → p-ca00d3c8.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-c9aca4b7.entry.js → p-cc49128c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-ce9e5451.entry.js → p-d0afd036.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-8c9887e3.entry.js → p-d4432905.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-16348b9d.entry.js → p-d517ea6c.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-6e61295f.entry.js → p-d70843bb.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-b010bfcb.entry.js → p-d74b939d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-f121e197.entry.js → p-d7b5242d.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-e8cde48d.entry.js → p-da42f326.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-1f329979.entry.js → p-e2c6464a.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-e3ce1662.entry.js +2 -0
- package/dist/infineon-design-system-stencil/p-e3ce1662.entry.js.map +1 -0
- package/dist/infineon-design-system-stencil/{p-16f9a47c.entry.js → p-e76c8cce.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-5cc523fb.entry.js → p-ec5fcb90.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-208b28b1.entry.js → p-f037e2e1.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-9c50bc3e.entry.js → p-f2ba1590.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-dba5e033.entry.js → p-f93d0e29.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/{p-336778c3.entry.js → p-f98cae21.entry.js} +2 -2
- package/dist/infineon-design-system-stencil/p-ff8f6ddc.entry.js +2 -0
- package/dist/types/components/templates/template/template.d.ts +33 -0
- package/dist/types/components/templates/templates-ui/templates-ui.d.ts +10 -0
- package/dist/types/components.d.ts +49 -0
- package/package.json +1 -1
- package/dist/cjs/ifx-alert.cjs.entry.js +0 -49
- package/dist/cjs/ifx-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/ifx-multiselect_2.cjs.entry.js.map +0 -1
- package/dist/cjs/ifx-spinner.cjs.entry.js +0 -35
- package/dist/cjs/ifx-spinner.cjs.entry.js.map +0 -1
- package/dist/cjs/index-f6c58643.js.map +0 -1
- package/dist/esm/ifx-alert.entry.js.map +0 -1
- package/dist/esm/ifx-multiselect_2.entry.js.map +0 -1
- package/dist/esm/ifx-spinner.entry.js.map +0 -1
- package/dist/esm/index-fc6a5751.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-0ddf85fc.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-0ddf85fc.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-25bf54c9.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-492a9ab7.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-4aab4af4.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-4aab4af4.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-75436967.entry.js +0 -2
- package/dist/infineon-design-system-stencil/p-75436967.entry.js.map +0 -1
- package/dist/infineon-design-system-stencil/p-80bb0959.js +0 -3
- /package/dist/infineon-design-system-stencil/{p-37654645.entry.js.map → p-005cee40.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1d9e400c.entry.js.map → p-070a401c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d31a6167.entry.js.map → p-0b2330b1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-fcf71895.entry.js.map → p-0c6417aa.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b3fb648f.entry.js.map → p-10f2f4d2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c2e6cbdb.entry.js.map → p-15c2d91e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-37ecac74.entry.js.map → p-1e32dc46.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-47476fcb.entry.js.map → p-1f0a54f5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c61a9185.entry.js.map → p-21f9efe3.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4111bbdc.entry.js.map → p-22c3e2a6.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-7378190d.entry.js.map → p-23061813.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-39697853.entry.js.map → p-23fc1ac6.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ea74d7ab.entry.js.map → p-2cde10eb.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-50e122c4.entry.js.map → p-2deacdfc.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-25bf54c9.entry.js.map → p-3419fe00.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2ae0a0d0.entry.js.map → p-3a64f78a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-30640970.entry.js.map → p-3b597917.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5edfe317.entry.js.map → p-3e313cf5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cb0ddc9b.entry.js.map → p-3f71f020.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0b5ad497.entry.js.map → p-4082111f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-0c570fa2.entry.js.map → p-4126ee6a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2d17e5b2.entry.js.map → p-4626a7a5.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-49872432.entry.js.map → p-4b7b93c4.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-31e9d4f8.entry.js.map → p-5269c5f6.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a3c03169.entry.js.map → p-55e8c571.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a10f9b3c.entry.js.map → p-577e735a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c22f8c81.entry.js.map → p-5a134c12.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5992e272.entry.js.map → p-67efe96d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-cdad5d2c.entry.js.map → p-6c3947ee.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-db4a364b.entry.js.map → p-6d82d306.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-951cf503.entry.js.map → p-6ff541a9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-02be14a9.entry.js.map → p-716f6675.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2e8c0115.entry.js.map → p-7973be1c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-79b4d359.entry.js.map → p-80d79ac2.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-3be58aa2.entry.js.map → p-8299d886.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b30b66e5.entry.js.map → p-83a3c6d9.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f3383274.entry.js.map → p-85b95a9b.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b8f31dc3.entry.js.map → p-8822c055.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-2fbad873.entry.js.map → p-8bd1eb2e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e6427f2e.entry.js.map → p-8c0caf65.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-a29b6247.entry.js.map → p-8ccea8df.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4349aa3a.entry.js.map → p-9256384e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-d323e4ed.entry.js.map → p-95c0da4c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-41b0849d.entry.js.map → p-95c56362.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6ad287cf.entry.js.map → p-9c641115.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-666e0ea0.entry.js.map → p-9e68df13.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-4af08129.entry.js.map → p-a4205f38.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8b089cd1.entry.js.map → p-a7b721e4.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-bc40ad21.entry.js.map → p-a825eb1f.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-985c7bdc.entry.js.map → p-b10e3175.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1b9317bd.entry.js.map → p-b1543f1d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ee68427e.entry.js.map → p-bbc7a00e.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-31889cb2.entry.js.map → p-c9211767.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1175d112.entry.js.map → p-ca00d3c8.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-c9aca4b7.entry.js.map → p-cc49128c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-ce9e5451.entry.js.map → p-d0afd036.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-8c9887e3.entry.js.map → p-d4432905.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-16348b9d.entry.js.map → p-d517ea6c.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-6e61295f.entry.js.map → p-d70843bb.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-b010bfcb.entry.js.map → p-d74b939d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-f121e197.entry.js.map → p-d7b5242d.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-e8cde48d.entry.js.map → p-da42f326.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-1f329979.entry.js.map → p-e2c6464a.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-16f9a47c.entry.js.map → p-e76c8cce.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-5cc523fb.entry.js.map → p-ec5fcb90.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-208b28b1.entry.js.map → p-f037e2e1.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-9c50bc3e.entry.js.map → p-f2ba1590.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-dba5e033.entry.js.map → p-f93d0e29.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-336778c3.entry.js.map → p-f98cae21.entry.js.map} +0 -0
- /package/dist/infineon-design-system-stencil/{p-492a9ab7.entry.js.map → p-ff8f6ddc.entry.js.map} +0 -0
@@ -13,7 +13,7 @@ const Faq = /*@__PURE__*/ proxyCustomElement(class Faq extends H {
|
|
13
13
|
this.__attachShadow();
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (h("div", { key: '
|
16
|
+
return (h("div", { key: '940635ca96aed75993f653a115ca4e76e711e0c1', class: 'container' }, h("ifx-accordion", { key: '1560bc2603d0666ad6504b9f148e19c2934a730f' }, h("ifx-accordion-item", { key: '63e5b09b25ce51683cfd6aa59318f7fdd45205a4', 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: 'a16615fa9a0d533decc568b476717b4550546065', 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: 'fe1464594ab2e24acc7869320b51b6fed951f438', 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: '4a3cb74604b6d73210d2da4004f8bcd9a37df0b8', 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: '132a5a7b1b55ffc4213d0beddebf05cf58c8bcb1', 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."))));
|
17
17
|
}
|
18
18
|
static get style() { return IfxFaqStyle0; }
|
19
19
|
}, [1, "ifx-faq"]);
|
@@ -4,7 +4,7 @@ import { d as defineCustomElement$6 } from './p-0d986658.js';
|
|
4
4
|
import { d as defineCustomElement$5 } from './p-a2411b44.js';
|
5
5
|
import { d as defineCustomElement$4 } from './p-96fbc3db.js';
|
6
6
|
import { d as defineCustomElement$3 } from './p-b9024e1a.js';
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
7
|
+
import { d as defineCustomElement$2 } from './p-b537c83a.js';
|
8
8
|
|
9
9
|
const setFilterCss = "";
|
10
10
|
const IfxSetFilterStyle0 = setFilterCss;
|
@@ -1,49 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { c as classNames } from './p-5cdc6210.js';
|
3
|
-
|
4
|
-
const spinnerCss = ":host{display:inline-block}.spinner{position:relative;width:40px;height:40px}.spinner.s{width:24px;height:24px}.border{box-sizing:border-box;position:absolute;width:100%;height:100%;border:4px solid transparent;border-top-color:#0A8276;border-left-color:#0A8276;border-right-color:#0A8276;border-top-left-radius:1px;border-top-right-radius:1px;border-radius:50%;animation:spin 2s linear infinite}.border.inverted{border-top-color:#FFFFFF;border-left-color:#FFFFFF;border-right-color:#FFFFFF}.semiconductor{width:100%;height:100%;animation:spin 2s linear infinite}.semiconductor svg{fill:#0A8276}.semiconductor.inverted svg{fill:#FFFFFF}.semiconductor.s svg{width:24px;height:24px}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
5
|
-
const IfxSpinnerStyle0 = spinnerCss;
|
6
|
-
|
7
|
-
const Spinner = /*@__PURE__*/ proxyCustomElement(class Spinner extends H {
|
8
|
-
constructor() {
|
9
|
-
super();
|
10
|
-
this.__registerHost();
|
11
|
-
this.__attachShadow();
|
12
|
-
this.size = undefined;
|
13
|
-
this.variant = undefined;
|
14
|
-
this.inverted = false;
|
15
|
-
}
|
16
|
-
render() {
|
17
|
-
return (h("div", { key: 'b04265492791de4279b55be5c26c3f91d0310ce3', "aria-label": "spinner indicating a loading process", class: this.getClassNames() }, h("div", { key: '4be11129b1b1ec16a9ad6aac61959f3fcf884e05', class: `${this.variant !== 'brand' ? 'border' : ""} ${this.inverted ? 'inverted' : ""}` }), this.variant === 'brand'
|
18
|
-
&& h("div", { key: '7147294300181e410f1a2da1a04bebaa34ca2338', class: `semiconductor ${this.inverted ? 'inverted' : ""} ${this.getSizeClass()}` }, h("svg", { key: '08aaeab1b3b244ea665cfb7ba86c5b2be0a833f4', width: '40', height: '40', viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '32a839d29fa24742874c01a72e7f447940a6180c', id: "spinner/conductor" }, h("path", { key: '55846dd76b8622f0ac57337caf2ac049d7934144', id: "Vector", d: "M38.75 18.75C39.4375 18.75 40 19.3125 40 20C40 20.6875 39.4409 21.25 38.75 21.25H35V26.25H38.75C39.4375 26.25 40 26.8125 40 27.5C40 28.1875 39.4409 28.75 38.75 28.75H35V30C35 32.7617 32.7617 35 30 35H28.75V38.75C28.75 39.4409 28.1875 40 27.5 40C26.8125 40 26.25 39.4409 26.25 38.75V35H21.25V38.75C21.25 39.4409 20.6875 40 20 40C19.3125 40 18.75 39.4409 18.75 38.75V35H13.75V38.75C13.75 39.4409 13.1875 40 12.5 40C11.8125 40 11.25 39.4409 11.25 38.75V35H10C7.23828 35 5 32.7617 5 30V28.75H1.25C0.559062 28.75 0 28.1875 0 27.5C0 26.8125 0.559062 26.25 1.25 26.25H5V21.25H1.25C0.559062 21.25 0 20.6875 0 20C0 19.3125 0.559062 18.75 1.25 18.75H5V13.75H1.25C0.559062 13.75 0 13.1875 0 12.5C0 11.8125 0.559062 11.25 1.25 11.25H5V10C5 7.23828 7.23828 5 10 5H11.25V1.25C11.25 0.5625 11.8125 0 12.5 0C13.1875 0 13.75 0.559063 13.75 1.25V5H18.75V1.25C18.75 0.559063 19.3091 0 20 0C20.6909 0 21.25 0.559063 21.25 1.25V5H26.25V1.25C26.25 0.559063 26.8091 0 27.5 0C28.1909 0 28.75 0.559063 28.75 1.25V5H30C32.7617 5 35 7.23828 35 10V11.25H38.75C39.4409 11.25 40 11.8091 40 12.5C40 13.1909 39.4409 13.75 38.75 13.75H35V18.75H38.75ZM32.5 10C32.5 8.62188 31.3781 7.5 30 7.5H10C8.62187 7.5 7.5 8.62188 7.5 10V30C7.5 31.3781 8.62187 32.5 10 32.5H30C31.3781 32.5 32.5 31.3781 32.5 30V10Z" }))))));
|
19
|
-
}
|
20
|
-
getSizeClass() {
|
21
|
-
return `${this.size}` === "s"
|
22
|
-
? "s"
|
23
|
-
: "";
|
24
|
-
}
|
25
|
-
getClassNames() {
|
26
|
-
return classNames('spinner', this.size && `spinner ${this.getSizeClass()}`);
|
27
|
-
}
|
28
|
-
static get style() { return IfxSpinnerStyle0; }
|
29
|
-
}, [1, "ifx-spinner", {
|
30
|
-
"size": [1],
|
31
|
-
"variant": [1],
|
32
|
-
"inverted": [4]
|
33
|
-
}]);
|
34
|
-
function defineCustomElement$1() {
|
35
|
-
if (typeof customElements === "undefined") {
|
36
|
-
return;
|
37
|
-
}
|
38
|
-
const components = ["ifx-spinner"];
|
39
|
-
components.forEach(tagName => { switch (tagName) {
|
40
|
-
case "ifx-spinner":
|
41
|
-
if (!customElements.get(tagName)) {
|
42
|
-
customElements.define(tagName, Spinner);
|
43
|
-
}
|
44
|
-
break;
|
45
|
-
} });
|
46
|
-
}
|
1
|
+
import { S as Spinner, d as defineCustomElement$1 } from './p-53704c65.js';
|
47
2
|
|
48
3
|
const IfxSpinner = Spinner;
|
49
4
|
const defineCustomElement = defineCustomElement$1;
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"ifx-spinner.js","mappings":"
|
1
|
+
{"file":"ifx-spinner.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface IfxTemplate extends Components.IfxTemplate, HTMLElement {}
|
4
|
+
export const IfxTemplate: {
|
5
|
+
prototype: IfxTemplate;
|
6
|
+
new (): IfxTemplate;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ifx-template.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface IfxTemplatesUi extends Components.IfxTemplatesUi, HTMLElement {}
|
4
|
+
export const IfxTemplatesUi: {
|
5
|
+
prototype: IfxTemplatesUi;
|
6
|
+
new (): IfxTemplatesUi;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1,123 @@
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-4c09147f.js';
|
2
|
+
import { d as defineCustomElement$9 } from './p-81263927.js';
|
3
|
+
import { d as defineCustomElement$8 } from './p-995af7ca.js';
|
4
|
+
import { d as defineCustomElement$7 } from './p-a2411b44.js';
|
5
|
+
import { d as defineCustomElement$6 } from './p-6a771687.js';
|
6
|
+
import { d as defineCustomElement$5 } from './p-1d98a3a6.js';
|
7
|
+
import { d as defineCustomElement$4 } from './p-53704c65.js';
|
8
|
+
import { d as defineCustomElement$3 } from './p-80d6c6e4.js';
|
9
|
+
import { d as defineCustomElement$2 } from './p-b537c83a.js';
|
10
|
+
|
11
|
+
const templatesUiCss = "*{padding:0;margin:0}.templates__container{display:flex;flex-direction:column;align-items:center}.templates__container .back__btn-wrapper{display:none}.templates__container .back__btn-wrapper.show{display:flex;justify-content:space-between;width:100%}.templates__container .back__btn-wrapper .alert__wrapper{display:none}.templates__container .back__btn-wrapper .alert__wrapper.show{display:block}.templates__container .templates__wrapper{display:flex;padding:20px 0px;gap:20px;flex-wrap:wrap}.templates__container .templates__title.hide{display:none}";
|
12
|
+
const IfxTemplatesUiStyle0 = templatesUiCss;
|
13
|
+
|
14
|
+
const TemplatesUI = /*@__PURE__*/ proxyCustomElement(class TemplatesUI extends H {
|
15
|
+
constructor() {
|
16
|
+
super();
|
17
|
+
this.__registerHost();
|
18
|
+
this.__attachShadow();
|
19
|
+
this.tableTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/table_template.png`);
|
20
|
+
this.wizardTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/wizard_template.png`);
|
21
|
+
}
|
22
|
+
toggleTemplate(currTemp) {
|
23
|
+
const templates = this.el.shadowRoot.querySelector('.templates__wrapper').querySelectorAll('ifx-template');
|
24
|
+
templates.forEach((template) => {
|
25
|
+
template.toggleTemplate(currTemp);
|
26
|
+
});
|
27
|
+
}
|
28
|
+
handleError(e) {
|
29
|
+
const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');
|
30
|
+
if (e.detail) {
|
31
|
+
alertWrapper.classList.add('show');
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
alertWrapper.classList.remove('show');
|
35
|
+
}
|
36
|
+
}
|
37
|
+
filterTemplates(e) {
|
38
|
+
const title = this.el.shadowRoot.querySelector('.templates__title');
|
39
|
+
const backBtn = this.el.shadowRoot.querySelector('.back__btn-wrapper');
|
40
|
+
if (e.detail) {
|
41
|
+
title.classList.add('hide');
|
42
|
+
if (e.detail !== 'details') {
|
43
|
+
backBtn.classList.add('show');
|
44
|
+
}
|
45
|
+
this.toggleTemplate(e.detail);
|
46
|
+
}
|
47
|
+
else {
|
48
|
+
title.classList.remove('hide');
|
49
|
+
backBtn.classList.remove('show');
|
50
|
+
this.toggleTemplate(null);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
closeAlert() {
|
54
|
+
const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');
|
55
|
+
alertWrapper.classList.remove('show');
|
56
|
+
}
|
57
|
+
render() {
|
58
|
+
return (h("div", { key: '021302ff1be7a098818f46abea24d04084ca3048', class: 'templates__container' }, h("div", { key: '7bdbf267abf9e7684b6f15d2149c6e0130ce3458', class: "back__btn-wrapper" }, h("ifx-icon-button", { key: 'b38d94883924f12f40619ad96b3d4ef1da3a8831', onClick: () => this.filterTemplates(false), shape: "round", variant: "tertiary", icon: "arrow-left-16", target: "_blank", size: "m" }), h("div", { key: '7e6bcb6482bfebec1d9917e1ffa8655124d9e67d', class: "alert__wrapper" }, h("ifx-alert", { key: '4687bc498dab92676f947838398b7257e059f3c2', onClick: () => this.closeAlert(), "aria-live": "assertive", variant: "danger", icon: "c-info-24" }, "All fields are mandatory"))), h("h2", { key: 'c2420ad1ca629e5702b64043b47a113e9b387b87', class: "templates__title" }, "Choose your template"), h("div", { key: '5d7b84eaddb49ec2a98eae1bb19515fcc11eb7e5', class: "templates__wrapper" }, h("ifx-template", { key: 'bff5d0e5143a8d0a34904fc65564e0ce0487d437', name: 'template-01', thumbnail: this.tableTemplate }), h("ifx-template", { key: 'c8621f682b5d4eaf2dbab6ff41def757f7a8ddb0', name: 'template-02', thumbnail: this.wizardTemplate }))));
|
59
|
+
}
|
60
|
+
static get assetsDirs() { return ["assets"]; }
|
61
|
+
get el() { return this; }
|
62
|
+
static get style() { return IfxTemplatesUiStyle0; }
|
63
|
+
}, [1, "ifx-templates-ui", undefined, [[0, "fieldError", "handleError"], [0, "toggleTemplates", "filterTemplates"]]]);
|
64
|
+
function defineCustomElement$1() {
|
65
|
+
if (typeof customElements === "undefined") {
|
66
|
+
return;
|
67
|
+
}
|
68
|
+
const components = ["ifx-templates-ui", "ifx-alert", "ifx-button", "ifx-icon", "ifx-icon-button", "ifx-link", "ifx-spinner", "ifx-template", "ifx-text-field"];
|
69
|
+
components.forEach(tagName => { switch (tagName) {
|
70
|
+
case "ifx-templates-ui":
|
71
|
+
if (!customElements.get(tagName)) {
|
72
|
+
customElements.define(tagName, TemplatesUI);
|
73
|
+
}
|
74
|
+
break;
|
75
|
+
case "ifx-alert":
|
76
|
+
if (!customElements.get(tagName)) {
|
77
|
+
defineCustomElement$9();
|
78
|
+
}
|
79
|
+
break;
|
80
|
+
case "ifx-button":
|
81
|
+
if (!customElements.get(tagName)) {
|
82
|
+
defineCustomElement$8();
|
83
|
+
}
|
84
|
+
break;
|
85
|
+
case "ifx-icon":
|
86
|
+
if (!customElements.get(tagName)) {
|
87
|
+
defineCustomElement$7();
|
88
|
+
}
|
89
|
+
break;
|
90
|
+
case "ifx-icon-button":
|
91
|
+
if (!customElements.get(tagName)) {
|
92
|
+
defineCustomElement$6();
|
93
|
+
}
|
94
|
+
break;
|
95
|
+
case "ifx-link":
|
96
|
+
if (!customElements.get(tagName)) {
|
97
|
+
defineCustomElement$5();
|
98
|
+
}
|
99
|
+
break;
|
100
|
+
case "ifx-spinner":
|
101
|
+
if (!customElements.get(tagName)) {
|
102
|
+
defineCustomElement$4();
|
103
|
+
}
|
104
|
+
break;
|
105
|
+
case "ifx-template":
|
106
|
+
if (!customElements.get(tagName)) {
|
107
|
+
defineCustomElement$3();
|
108
|
+
}
|
109
|
+
break;
|
110
|
+
case "ifx-text-field":
|
111
|
+
if (!customElements.get(tagName)) {
|
112
|
+
defineCustomElement$2();
|
113
|
+
}
|
114
|
+
break;
|
115
|
+
} });
|
116
|
+
}
|
117
|
+
|
118
|
+
const IfxTemplatesUi = TemplatesUI;
|
119
|
+
const defineCustomElement = defineCustomElement$1;
|
120
|
+
|
121
|
+
export { IfxTemplatesUi, defineCustomElement };
|
122
|
+
|
123
|
+
//# sourceMappingURL=ifx-templates-ui.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ifx-templates-ui.js","mappings":";;;;;;;;;;AAAA,MAAM,cAAc,GAAG,yiBAAyiB,CAAC;AACjkB,6BAAe,cAAc;;MCQhB,WAAW;IAPxB;;;;QAUU,kBAAa,GAAG,YAAY,CAAC,6FAA6F,CAAC,CAAC;QAC5H,mBAAc,GAAG,YAAY,CAAC,8FAA8F,CAAC,CAAC;KA2DvI;IAxDC,cAAc,CAAC,QAAQ;QACrB,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACzG,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ;YACzB,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;SAClC,CAAC,CAAA;KACL;IAGD,WAAW,CAAC,CAAC;QACX,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;QACzE,IAAG,CAAC,CAAC,MAAM,EAAE;YACX,YAAY,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SACpC;aAAM;YACL,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;SACvC;KACF;IAGD,eAAe,CAAC,CAAC;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;QACpE,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;QACvE,IAAG,CAAC,CAAC,MAAM,EAAE;YACX,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YAC5B,IAAG,CAAC,CAAC,MAAM,KAAK,SAAS,EAAE;gBACzB,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;aAC/B;YACD,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;SAC9B;aAAM;YACL,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC/B,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;SAC1B;KACF;IAED,UAAU;QACR,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;QACzE,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KACvC;IAED,MAAM;QACJ,QACE,4DAAK,KAAK,EAAC,sBAAsB,IAC/B,4DAAK,KAAK,EAAC,mBAAmB,IAC5B,wEAAiB,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,EAAC,OAAO,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,eAAe,EAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,GAAG,EAC9I,4DAAK,KAAK,EAAC,gBAAgB,IACzB,kEAAW,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,EAAE,eAAY,WAAW,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,WAAW,+BAAqC,CACrI,CACF,EACN,2DAAI,KAAK,EAAC,kBAAkB,2BAA0B,EACtD,4DAAK,KAAK,EAAC,oBAAoB,IAC7B,qEAAc,IAAI,EAAC,aAAa,EAAC,SAAS,EAAE,IAAI,CAAC,aAAa,GAAI,EAClE,qEAAc,IAAI,EAAC,aAAa,EAAC,SAAS,EAAE,IAAI,CAAC,cAAc,GAAI,CAC/D,CACF,EACP;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/templates/templates-ui/templates-ui.scss?tag=ifx-templates-ui&encapsulation=shadow","src/components/templates/templates-ui/templates-ui.tsx"],"sourcesContent":["* { \n padding: 0;\n margin: 0;\n}\n\n.templates__container { \n display: flex;\n flex-direction: column;\n align-items: center;\n\n & .back__btn-wrapper { \n display: none;\n &.show { \n display: flex;\n justify-content: space-between;\n width: 100%;\n }\n\n & .alert__wrapper { \n display: none;\n\n &.show { \n display: block;\n }\n }\n }\n\n & .templates__wrapper { \n display: flex;\n padding: 20px 0px;\n gap: 20px;\n // justify-content: space-evenly;\n flex-wrap: wrap;\n }\n\n & .templates__title { \n &.hide { \n display: none;\n }\n }\n}\n\n\n\n","import { Component, h, Listen, Element, getAssetPath } from '@stencil/core';\n\n@Component({\n tag: 'ifx-templates-ui',\n styleUrl: 'templates-ui.scss',\n shadow: true,\n assetsDirs: ['assets']\n})\n\nexport class TemplatesUI {\n @Element() el: HTMLElement;\n\n private tableTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/table_template.png`);\n private wizardTemplate = getAssetPath(`https://raw.githubusercontent.com/Infineon/public-assets/refs/heads/main/wizard_template.png`);\n\n\n toggleTemplate(currTemp) { \n const templates = this.el.shadowRoot.querySelector('.templates__wrapper').querySelectorAll('ifx-template');\n templates.forEach((template) => { \n template.toggleTemplate(currTemp)\n })\n }\n\n @Listen('fieldError')\n handleError(e) { \n const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');\n if(e.detail) { \n alertWrapper.classList.add('show');\n } else { \n alertWrapper.classList.remove('show');\n }\n }\n\n @Listen('toggleTemplates')\n filterTemplates(e) {\n const title = this.el.shadowRoot.querySelector('.templates__title');\n const backBtn = this.el.shadowRoot.querySelector('.back__btn-wrapper');\n if(e.detail) { \n title.classList.add('hide');\n if(e.detail !== 'details') { \n backBtn.classList.add('show');\n }\n this.toggleTemplate(e.detail)\n } else { \n title.classList.remove('hide');\n backBtn.classList.remove('show');\n this.toggleTemplate(null)\n }\n }\n\n closeAlert() { \n const alertWrapper = this.el.shadowRoot.querySelector('.alert__wrapper');\n alertWrapper.classList.remove('show');\n }\n\n render() {\n return (\n <div class='templates__container'>\n <div class=\"back__btn-wrapper\">\n <ifx-icon-button onClick={() => this.filterTemplates(false)} shape=\"round\" variant=\"tertiary\" icon=\"arrow-left-16\" target=\"_blank\" size=\"m\" />\n <div class=\"alert__wrapper\">\n <ifx-alert onClick={() => this.closeAlert()} aria-live=\"assertive\" variant=\"danger\" icon=\"c-info-24\">All fields are mandatory</ifx-alert>\n </div>\n </div>\n <h2 class=\"templates__title\">Choose your template</h2>\n <div class=\"templates__wrapper\">\n <ifx-template name='template-01' thumbnail={this.tableTemplate} />\n <ifx-template name='template-02' thumbnail={this.wizardTemplate} />\n </div>\n </div>\n )\n }\n}\n"],"version":3}
|
@@ -47,9 +47,9 @@ const TextArea = /*@__PURE__*/ proxyCustomElement(class TextArea extends H {
|
|
47
47
|
}
|
48
48
|
render() {
|
49
49
|
var _a, _b;
|
50
|
-
return (h(Host, { key: '
|
50
|
+
return (h(Host, { key: 'e5c17cac7a95922f09f368164922e4a1476cb1d0', class: `wrapper
|
51
51
|
wrapper--${this.error ? 'error' : ''}
|
52
|
-
wrapper--${this.disabled ? 'disabled' : ''}` }, h("label", { key: '
|
52
|
+
wrapper--${this.disabled ? 'disabled' : ''}` }, h("label", { key: '924af5892e76fca1b3e68670c42b95d963972d1b', class: 'wrapper__label', htmlFor: this.inputId }, (_a = this.label) === null || _a === void 0 ? void 0 : _a.trim()), h("div", { key: 'dc8be60590d330e62b0b9e56dcd3985095ac2039', class: 'wrapper__textarea' }, h("textarea", { key: 'a49734b30b44ae14d80a90448e807f12a1decb15', "aria-label": 'a textarea', "aria-value": this.value, "aria-disabled": this.disabled, id: this.inputId, style: { resize: this.resize }, name: this.name ? this.name : this.inputId, cols: this.cols, rows: this.rows, maxlength: this.maxlength, wrap: this.wrap, disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, onInput: (e) => this.handleOnInput(e) })), ((_b = this.caption) === null || _b === void 0 ? void 0 : _b.trim()) && (h("div", { key: '1b0a2afad717723ced888bbd13d5705ef5312922', class: 'wrapper__caption' }, this.caption.trim()))));
|
53
53
|
}
|
54
54
|
static get formAssociated() { return true; }
|
55
55
|
static get style() { return IfxTextareaStyle0; }
|
@@ -156,10 +156,10 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends H {
|
|
156
156
|
'tooltip-extended': true,
|
157
157
|
'visible': this.tooltipVisible,
|
158
158
|
};
|
159
|
-
return (h("div", { key: '
|
160
|
-
h("div", { key: '
|
161
|
-
h("div", { key: '
|
162
|
-
h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: '
|
159
|
+
return (h("div", { key: '3566693f57f31b7e8d1b7cfc86210d416a2ff405', "aria-label": "a tooltip showing important information", "aria-value": this.header, class: "tooltip__container" }, h("slot", { key: 'd8f66d71d9844579ba1a669d8b9d65e6b80285b9' }), this.variant.toLowerCase() === 'dismissible' && h("div", { key: '6a20c5e5b3b6f36460891529c31b15cbb2a3f80d', class: tooltipDismissible }, h("button", { key: '26e5b3de6264c5d669b6dd2e67ac720e7ed523d6', "aria-label": "Close Tooltip", class: "close-button", onClick: this.onDismissClick }, h("ifx-icon", { key: 'dd2e518cc33a4fad6a6625ac8ad93510c0ac8a76', icon: "cross16" })), h("div", { key: '8dfda31b92a2a68e902d9294dfafa829e2ae125d', class: "tooltip-dismissible-content" }, this.header && h("div", { key: '102cdcade59aa6087cef62a33cc40890cc712edc', class: "tooltip-dismissible-header" }, this.header), h("div", { key: '433c704e55e38e676ced43af80cbedf66a08ecef', class: "tooltip-dismissible-body" }, this.text)), h("svg", { key: 'dfed0dd56d3164ba18799ab39198f380993f6248', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '915aec860f084f37befe14e1b29ced2dbe802ffe', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'compact' &&
|
160
|
+
h("div", { key: '0ab10da386219cfa266adfc8d01460a2f7861b70', class: tooltipCompact }, this.text, h("svg", { key: '1bfc2c79d905ef0c725f3a7b4ceb962280ad6ec1', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ce5383e429ceae096c397a177ee451a60ddaa20f', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" }))), this.variant.toLowerCase() === 'extended' &&
|
161
|
+
h("div", { key: '7f2d598a355e5105659531a7d65868a572b0c8d3', class: tooltipExtended }, h("slot", { key: 'a7194c3e4b34f6a80e973d721be9e928dc6b543a', name: "icon" }, this.icon ? h("div", { class: "extended_icon" }, h("ifx-icon", { icon: this.icon })) :
|
162
|
+
h("svg", { class: "extended_icon", xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, h("path", { stroke: "#fff", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.5 2.5h-16a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-16a2 2 0 0 0-2-2Z" }), h("path", { stroke: "#fff", d: "M19 17H6l2.5-4 2.097 2.516.405.486.379-.506 4.118-5.49.003-.002L19 17Z" }), h("path", { fill: "#fff", d: "M10 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" }))), h("div", { key: '90c7c32649a095f7c7d5ca91dfb11565b6e4cefd', class: "tooltip-extended-content" }, this.header && h("div", { key: '2a685101980670bcda6dca798a1b4ff5dce2b0e9', class: "tooltip-extended-header" }, this.header), h("div", { key: '0e772b681e344b36852b40ad64a60c0fce70a026', class: "tooltip-extended-body" }, this.text)), h("svg", { key: '4ba674399371b299380f00788d5df4c2fab7c511', class: "tooltip-arrow-svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ad20591f248f3cd2132d33faaeb155043b53fb38', id: "Indicator", d: "M6 0L12 8L0 8L6 0Z", fill: "#1D1D1D" })))));
|
163
163
|
}
|
164
164
|
get el() { return this; }
|
165
165
|
static get watchers() { return {
|
@@ -1,12 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import { c as classNames } from './
|
1
|
+
import { p as proxyCustomElement, H, h } from './p-4c09147f.js';
|
2
|
+
import { c as classNames } from './p-5cdc6210.js';
|
3
3
|
|
4
4
|
const spinnerCss = ":host{display:inline-block}.spinner{position:relative;width:40px;height:40px}.spinner.s{width:24px;height:24px}.border{box-sizing:border-box;position:absolute;width:100%;height:100%;border:4px solid transparent;border-top-color:#0A8276;border-left-color:#0A8276;border-right-color:#0A8276;border-top-left-radius:1px;border-top-right-radius:1px;border-radius:50%;animation:spin 2s linear infinite}.border.inverted{border-top-color:#FFFFFF;border-left-color:#FFFFFF;border-right-color:#FFFFFF}.semiconductor{width:100%;height:100%;animation:spin 2s linear infinite}.semiconductor svg{fill:#0A8276}.semiconductor.inverted svg{fill:#FFFFFF}.semiconductor.s svg{width:24px;height:24px}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
5
5
|
const IfxSpinnerStyle0 = spinnerCss;
|
6
6
|
|
7
|
-
const Spinner = class {
|
8
|
-
constructor(
|
9
|
-
|
7
|
+
const Spinner = /*@__PURE__*/ proxyCustomElement(class Spinner extends H {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
this.__registerHost();
|
11
|
+
this.__attachShadow();
|
10
12
|
this.size = undefined;
|
11
13
|
this.variant = undefined;
|
12
14
|
this.inverted = false;
|
@@ -23,9 +25,26 @@ const Spinner = class {
|
|
23
25
|
getClassNames() {
|
24
26
|
return classNames('spinner', this.size && `spinner ${this.getSizeClass()}`);
|
25
27
|
}
|
26
|
-
}
|
27
|
-
|
28
|
+
static get style() { return IfxSpinnerStyle0; }
|
29
|
+
}, [1, "ifx-spinner", {
|
30
|
+
"size": [1],
|
31
|
+
"variant": [1],
|
32
|
+
"inverted": [4]
|
33
|
+
}]);
|
34
|
+
function defineCustomElement() {
|
35
|
+
if (typeof customElements === "undefined") {
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
const components = ["ifx-spinner"];
|
39
|
+
components.forEach(tagName => { switch (tagName) {
|
40
|
+
case "ifx-spinner":
|
41
|
+
if (!customElements.get(tagName)) {
|
42
|
+
customElements.define(tagName, Spinner);
|
43
|
+
}
|
44
|
+
break;
|
45
|
+
} });
|
46
|
+
}
|
28
47
|
|
29
|
-
export { Spinner as
|
48
|
+
export { Spinner as S, defineCustomElement as d };
|
30
49
|
|
31
|
-
//# sourceMappingURL=
|
50
|
+
//# sourceMappingURL=p-53704c65.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"p-53704c65.js","mappings":";;;AAAA,MAAM,UAAU,GAAG,mvBAAmvB,CAAC;AACvwB,yBAAe,UAAU;;MCQZ,OAAO;;;;;;;wBAGU,KAAK;;IAGjC,MAAM;QACJ,QACE,0EAAgB,sCAAsC,EAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,IAChF,4DAAK,KAAK,EAAE,GAAG,IAAI,CAAC,OAAO,KAAK,OAAO,GAAG,QAAQ,GAAG,EAAE,IAAI,IAAI,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,EAAE,GAAQ,EACnG,IAAI,CAAC,OAAO,KAAK,OAAO;eACpB,4DAAK,KAAK,EAAE,iBAAiB,IAAI,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,IACtF,4DAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,IAC5F,0DAAG,EAAE,EAAC,mBAAmB,IACvB,6DAAM,EAAE,EAAC,QAAQ,EAAC,CAAC,EAAC,svCAAsvC,GAAG,CAC3wC,CACA,CACF,CACJ,EACN;KACH;IAED,YAAY;QACV,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG;cACzB,GAAG;cACH,EAAE,CAAC;KACR;IAED,aAAa;QACX,OAAO,UAAU,CACf,SAAS,EACT,IAAI,CAAC,IAAI,IAAI,WAAW,IAAI,CAAC,YAAY,EAAE,EAAE,CAC9C,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/spinner/spinner.scss?tag=ifx-spinner&encapsulation=shadow","src/components/spinner/spinner.tsx"],"sourcesContent":["@use \"~@infineon/design-system-tokens/dist/tokens\";\n\n:host {\n display: inline-block;\n\n}\n\n.spinner {\n position: relative;\n width: tokens.$ifxSize500;\n height: tokens.$ifxSize500;\n\n}\n\n.spinner.s {\n width: tokens.$ifxSize300;\n height: tokens.$ifxSize300;\n}\n\n.border {\n box-sizing: border-box;\n position: absolute;\n width: 100%;\n height: 100%;\n border: 4px solid transparent;\n border-top-color: tokens.$ifxColorOcean500;\n border-left-color: tokens.$ifxColorOcean500;\n border-right-color: tokens.$ifxColorOcean500;\n border-top-left-radius: 1px;\n border-top-right-radius: 1px;\n border-radius: 50%;\n animation: spin 2s linear infinite;\n\n &.inverted {\n border-top-color: tokens.$ifxColorBaseWhite;\n border-left-color: tokens.$ifxColorBaseWhite;\n border-right-color: tokens.$ifxColorBaseWhite;\n }\n}\n\n.semiconductor {\n width: 100%;\n height: 100%;\n animation: spin 2s linear infinite;\n\n & svg {\n fill: tokens.$ifxColorOcean500;\n }\n\n &.inverted {\n & svg {\n fill: tokens.$ifxColorBaseWhite;\n }\n }\n\n &.s {\n & svg {\n width: tokens.$ifxSize300;\n height: tokens.$ifxSize300;\n }\n }\n}\n\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}","import { Component, h, Prop } from '@stencil/core';\nimport classNames from 'classnames';\n \n\n@Component({\n tag: 'ifx-spinner',\n styleUrl: 'spinner.scss',\n shadow: true,\n})\nexport class Spinner {\n @Prop() size: string;\n @Prop() variant: string;\n @Prop() inverted: boolean = false;\n\n\n render() {\n return (\n <div aria-label=\"spinner indicating a loading process\" class={this.getClassNames()}>\n <div class={`${this.variant !== 'brand' ? 'border' : \"\"} ${this.inverted ? 'inverted' : \"\"}`}></div>\n {this.variant === 'brand'\n && <div class={`semiconductor ${this.inverted ? 'inverted' : \"\"} ${this.getSizeClass()}`}>\n <svg width='40' height='40' viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"spinner/conductor\">\n <path id=\"Vector\" d=\"M38.75 18.75C39.4375 18.75 40 19.3125 40 20C40 20.6875 39.4409 21.25 38.75 21.25H35V26.25H38.75C39.4375 26.25 40 26.8125 40 27.5C40 28.1875 39.4409 28.75 38.75 28.75H35V30C35 32.7617 32.7617 35 30 35H28.75V38.75C28.75 39.4409 28.1875 40 27.5 40C26.8125 40 26.25 39.4409 26.25 38.75V35H21.25V38.75C21.25 39.4409 20.6875 40 20 40C19.3125 40 18.75 39.4409 18.75 38.75V35H13.75V38.75C13.75 39.4409 13.1875 40 12.5 40C11.8125 40 11.25 39.4409 11.25 38.75V35H10C7.23828 35 5 32.7617 5 30V28.75H1.25C0.559062 28.75 0 28.1875 0 27.5C0 26.8125 0.559062 26.25 1.25 26.25H5V21.25H1.25C0.559062 21.25 0 20.6875 0 20C0 19.3125 0.559062 18.75 1.25 18.75H5V13.75H1.25C0.559062 13.75 0 13.1875 0 12.5C0 11.8125 0.559062 11.25 1.25 11.25H5V10C5 7.23828 7.23828 5 10 5H11.25V1.25C11.25 0.5625 11.8125 0 12.5 0C13.1875 0 13.75 0.559063 13.75 1.25V5H18.75V1.25C18.75 0.559063 19.3091 0 20 0C20.6909 0 21.25 0.559063 21.25 1.25V5H26.25V1.25C26.25 0.559063 26.8091 0 27.5 0C28.1909 0 28.75 0.559063 28.75 1.25V5H30C32.7617 5 35 7.23828 35 10V11.25H38.75C39.4409 11.25 40 11.8091 40 12.5C40 13.1909 39.4409 13.75 38.75 13.75H35V18.75H38.75ZM32.5 10C32.5 8.62188 31.3781 7.5 30 7.5H10C8.62187 7.5 7.5 8.62188 7.5 10V30C7.5 31.3781 8.62187 32.5 10 32.5H30C31.3781 32.5 32.5 31.3781 32.5 30V10Z\" />\n </g>\n </svg>\n </div>}\n </div>\n );\n }\n\n getSizeClass() {\n return `${this.size}` === \"s\"\n ? \"s\"\n : \"\";\n }\n\n getClassNames() {\n return classNames(\n 'spinner',\n this.size && `spinner ${this.getSizeClass()}`\n );\n }\n}\n"],"version":3}
|
@@ -0,0 +1,211 @@
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h } from './p-4c09147f.js';
|
2
|
+
import { d as defineCustomElement$5 } from './p-995af7ca.js';
|
3
|
+
import { d as defineCustomElement$4 } from './p-a2411b44.js';
|
4
|
+
import { d as defineCustomElement$3 } from './p-1d98a3a6.js';
|
5
|
+
import { d as defineCustomElement$2 } from './p-53704c65.js';
|
6
|
+
import { d as defineCustomElement$1 } from './p-b537c83a.js';
|
7
|
+
|
8
|
+
const templateCss = ".react__template-wrapper{display:flex;width:300px;height:200px;border-radius:3px;border:1px solid #ccc}.react__template-wrapper.hide{display:none}.react__template-wrapper:hover{cursor:pointer}.template__page-wrapper{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.template__page-wrapper .repository__url{text-decoration:none}.input__fields-wrapper{display:flex;flex-direction:column;gap:10px}.details__wrapper{display:flex;flex-direction:column;gap:10px}.selection__buttons-wrapper{display:flex;gap:10px;padding-top:10px;align-items:center}.selection__buttons-wrapper .vue__label{color:#ccc}.selection__buttons-wrapper label:not(.vue__label):hover{cursor:pointer}.selection__buttons-wrapper .selection__input{display:flex;align-items:center;gap:5px}.selection__buttons-wrapper .selection__input input{margin:0;height:20px;width:20px}.selection__buttons-wrapper .selection__input input:hover:not(.vue__input){cursor:pointer}.image__wrapper img{position:relative;width:300px;height:100%;border-radius:3px;object-fit:contain;transition:transform 0.2s}.image__wrapper img:hover{transform:scale(2);top:50px;z-index:100}";
|
9
|
+
const IfxTemplateStyle0 = templateCss;
|
10
|
+
|
11
|
+
const Template = /*@__PURE__*/ proxyCustomElement(class Template extends H {
|
12
|
+
constructor() {
|
13
|
+
super();
|
14
|
+
this.__registerHost();
|
15
|
+
this.__attachShadow();
|
16
|
+
this.toggleTemplates = createEvent(this, "toggleTemplates", 7);
|
17
|
+
this.fieldError = createEvent(this, "fieldError", 7);
|
18
|
+
this.repoDetails = { name: "", desc: "", framework: "" };
|
19
|
+
this.repoUrl = undefined;
|
20
|
+
this.showDetails = false;
|
21
|
+
this.isTemplatePage = false;
|
22
|
+
this.isLoading = true;
|
23
|
+
this.repoError = undefined;
|
24
|
+
this.name = undefined;
|
25
|
+
this.thumbnail = undefined;
|
26
|
+
}
|
27
|
+
authUser() {
|
28
|
+
const clientId = undefined;
|
29
|
+
const redirectUri = 'http://localhost:6262/?path=/docs/dds-templates--development';
|
30
|
+
const scope = undefined;
|
31
|
+
const state = undefined;
|
32
|
+
const authorizationUrl = `https://github.com/login/oauth/authorize?` +
|
33
|
+
`client_id=${clientId}&` +
|
34
|
+
`redirect_uri=${redirectUri}&` +
|
35
|
+
`scope=${scope}&` +
|
36
|
+
`state=${state}`;
|
37
|
+
window.open(authorizationUrl, '_blank');
|
38
|
+
}
|
39
|
+
componentDidLoad() {
|
40
|
+
const url = new URL(window.location.href);
|
41
|
+
const code = url.searchParams.get('code');
|
42
|
+
const { templateName } = this.getLocalStorageValues();
|
43
|
+
if (code && this.name === templateName) {
|
44
|
+
this.isTemplatePage = true;
|
45
|
+
this.toggleTemplates.emit('details');
|
46
|
+
this.getUserToken(code);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
getLocalStorageValues() {
|
50
|
+
const repoName = localStorage.getItem('repo_name');
|
51
|
+
const repoDesc = localStorage.getItem('repo_desc');
|
52
|
+
const repoFramework = localStorage.getItem('repo_framework');
|
53
|
+
const templateName = localStorage.getItem('selectedTemplate');
|
54
|
+
return { repoName, repoDesc, repoFramework, templateName };
|
55
|
+
}
|
56
|
+
async getUserToken(authCode) {
|
57
|
+
const { repoName, repoDesc, repoFramework, templateName } = this.getLocalStorageValues();
|
58
|
+
fetch(`http://localhost:5000/token/${authCode}/${repoName}/${repoDesc}/${repoFramework}/${templateName}`)
|
59
|
+
.then(response => {
|
60
|
+
if (response.ok) {
|
61
|
+
return response.text();
|
62
|
+
}
|
63
|
+
else {
|
64
|
+
return response.text().then(errorMessage => {
|
65
|
+
throw new Error(errorMessage);
|
66
|
+
});
|
67
|
+
}
|
68
|
+
})
|
69
|
+
.then(data => {
|
70
|
+
if (data) {
|
71
|
+
this.isLoading = false;
|
72
|
+
this.repoUrl = data;
|
73
|
+
localStorage.clear();
|
74
|
+
}
|
75
|
+
})
|
76
|
+
.catch(error => {
|
77
|
+
this.repoError = error.message;
|
78
|
+
console.error('Error:', error.message);
|
79
|
+
});
|
80
|
+
}
|
81
|
+
handleUserInput(e, type) {
|
82
|
+
if (type === 'name') {
|
83
|
+
this.repoDetails = Object.assign(Object.assign({}, this.repoDetails), { name: e.target.value });
|
84
|
+
}
|
85
|
+
else if (type === 'desc') {
|
86
|
+
this.repoDetails = Object.assign(Object.assign({}, this.repoDetails), { desc: e.target.value });
|
87
|
+
}
|
88
|
+
else if (type === 'framework') {
|
89
|
+
this.repoDetails = Object.assign(Object.assign({}, this.repoDetails), { framework: e.target.value });
|
90
|
+
}
|
91
|
+
}
|
92
|
+
submitUserData() {
|
93
|
+
if (this.repoDetails.name && this.repoDetails.desc && this.repoDetails.framework) {
|
94
|
+
localStorage.setItem('repo_name', this.repoDetails.name);
|
95
|
+
localStorage.setItem('repo_desc', this.repoDetails.desc);
|
96
|
+
localStorage.setItem('repo_framework', this.repoDetails.framework);
|
97
|
+
localStorage.setItem('selectedTemplate', this.name);
|
98
|
+
this.fieldError.emit(false);
|
99
|
+
this.authUser();
|
100
|
+
}
|
101
|
+
else {
|
102
|
+
this.fieldError.emit('All fields are mandatory');
|
103
|
+
}
|
104
|
+
}
|
105
|
+
togglePadding(action) {
|
106
|
+
let parent = this.el.parentElement;
|
107
|
+
if (parent) {
|
108
|
+
const rootNode = parent.getRootNode();
|
109
|
+
if (rootNode instanceof ShadowRoot) {
|
110
|
+
parent = rootNode.host.parentElement;
|
111
|
+
}
|
112
|
+
else {
|
113
|
+
parent = parent.parentElement;
|
114
|
+
}
|
115
|
+
if (action === 'remove') {
|
116
|
+
parent.parentElement.style.padding = '0px';
|
117
|
+
}
|
118
|
+
else if (action === 'add') {
|
119
|
+
parent.parentElement.style.padding = '4rem 20px';
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
handleCurrentTemplate(e) {
|
124
|
+
if (e && !this.showDetails) {
|
125
|
+
this.togglePadding('remove');
|
126
|
+
const targetTemplate = e.currentTarget;
|
127
|
+
this.toggleTemplates.emit(targetTemplate);
|
128
|
+
this.showDetails = true;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
async toggleTemplate(currTemp) {
|
132
|
+
const templateWrapper = this.el.shadowRoot.querySelector('.react__template-wrapper');
|
133
|
+
if (templateWrapper) {
|
134
|
+
if (!templateWrapper.classList.contains('hide') && currTemp) {
|
135
|
+
if (templateWrapper !== currTemp) {
|
136
|
+
templateWrapper.classList.add('hide');
|
137
|
+
}
|
138
|
+
}
|
139
|
+
else {
|
140
|
+
if (this.showDetails) {
|
141
|
+
this.showDetails = false;
|
142
|
+
}
|
143
|
+
this.togglePadding('add');
|
144
|
+
templateWrapper.classList.remove('hide');
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
render() {
|
149
|
+
return (h("div", { key: 'de9032e360a189b62a9b6b861f2dabbdd21cb409' }, this.isTemplatePage
|
150
|
+
?
|
151
|
+
h("div", { class: "template__page-wrapper" }, !this.repoUrl && !this.repoError &&
|
152
|
+
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))
|
153
|
+
:
|
154
|
+
h("div", { class: "react__template-container" }, h("div", { class: "react__template-wrapper", onClick: (e) => this.handleCurrentTemplate(e) }, h("div", { class: "image__wrapper" }, h("img", { src: this.thumbnail }))), this.showDetails &&
|
155
|
+
h("div", { class: "details__wrapper" }, h("div", { class: "selection__buttons-wrapper" }, h("div", { class: "selection__input" }, h("input", { type: "radio", id: "react", name: "chosen_framework", value: "react", onInput: (e) => this.handleUserInput(e, 'framework') }), h("label", { htmlFor: "react" }, "React")), h("div", { class: "selection__input vue" }, h("input", { class: "vue__input", disabled: true, type: "radio", id: "vue", name: "chosen_framework", value: "vue", onInput: (e) => this.handleUserInput(e, 'framework') }), h("label", { class: "vue__label", htmlFor: "vue" }, "Vue"), " (Soon)")), h("div", { class: "input__fields-wrapper" }, h("ifx-text-field", { required: true, onInput: (e) => this.handleUserInput(e, 'name'), size: "m", icon: "c-info-16", placeholder: "Your repository name" }, "Repository Name"), h("ifx-text-field", { required: true, size: "m", icon: "c-info-16", onInput: (e) => this.handleUserInput(e, 'desc'), placeholder: "Your repository description" }, "Repository Description"), h("ifx-button", { fullWidth: true, onClick: () => this.submitUserData(), variant: 'primary' }, "Generate template"))))));
|
156
|
+
}
|
157
|
+
get el() { return this; }
|
158
|
+
static get style() { return IfxTemplateStyle0; }
|
159
|
+
}, [1, "ifx-template", {
|
160
|
+
"name": [1],
|
161
|
+
"thumbnail": [1],
|
162
|
+
"repoDetails": [32],
|
163
|
+
"repoUrl": [32],
|
164
|
+
"showDetails": [32],
|
165
|
+
"isTemplatePage": [32],
|
166
|
+
"isLoading": [32],
|
167
|
+
"repoError": [32],
|
168
|
+
"toggleTemplate": [64]
|
169
|
+
}]);
|
170
|
+
function defineCustomElement() {
|
171
|
+
if (typeof customElements === "undefined") {
|
172
|
+
return;
|
173
|
+
}
|
174
|
+
const components = ["ifx-template", "ifx-button", "ifx-icon", "ifx-link", "ifx-spinner", "ifx-text-field"];
|
175
|
+
components.forEach(tagName => { switch (tagName) {
|
176
|
+
case "ifx-template":
|
177
|
+
if (!customElements.get(tagName)) {
|
178
|
+
customElements.define(tagName, Template);
|
179
|
+
}
|
180
|
+
break;
|
181
|
+
case "ifx-button":
|
182
|
+
if (!customElements.get(tagName)) {
|
183
|
+
defineCustomElement$5();
|
184
|
+
}
|
185
|
+
break;
|
186
|
+
case "ifx-icon":
|
187
|
+
if (!customElements.get(tagName)) {
|
188
|
+
defineCustomElement$4();
|
189
|
+
}
|
190
|
+
break;
|
191
|
+
case "ifx-link":
|
192
|
+
if (!customElements.get(tagName)) {
|
193
|
+
defineCustomElement$3();
|
194
|
+
}
|
195
|
+
break;
|
196
|
+
case "ifx-spinner":
|
197
|
+
if (!customElements.get(tagName)) {
|
198
|
+
defineCustomElement$2();
|
199
|
+
}
|
200
|
+
break;
|
201
|
+
case "ifx-text-field":
|
202
|
+
if (!customElements.get(tagName)) {
|
203
|
+
defineCustomElement$1();
|
204
|
+
}
|
205
|
+
break;
|
206
|
+
} });
|
207
|
+
}
|
208
|
+
|
209
|
+
export { Template as T, defineCustomElement as d };
|
210
|
+
|
211
|
+
//# sourceMappingURL=p-80d6c6e4.js.map
|