@siemens/ix 0.0.0-pr-1318-20240627080522 → 0.0.0-pr-1373-20240705054533
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/a11y.js +2 -3
- package/components/a11y.js.map +1 -1
- package/components/application-header.js +3 -3
- package/components/card-content.js +1 -1
- package/components/card-title.js +1 -1
- package/components/date-picker.js +4 -4
- package/components/date-time-card.js +2 -2
- package/components/date-time-card.js.map +1 -1
- package/components/divider.js +1 -1
- package/components/dropdown-item.js +3 -3
- package/components/dropdown.js +9 -9
- package/components/dropdown.js.map +1 -1
- package/components/filter-chip.js +1 -1
- package/components/group-context-menu.js +1 -1
- package/components/group-item.js +2 -2
- package/components/icon-button.js +1 -1
- package/components/index.js +4 -19
- package/components/index.js.map +1 -1
- package/components/ix-application-sidebar.js +1 -1
- package/components/ix-application-switch-modal.js +1 -1
- package/components/ix-application.js +3 -3
- package/components/ix-basic-navigation.js +2 -2
- package/components/ix-breadcrumb.js +2 -2
- package/components/ix-card-list.js +4 -4
- package/components/ix-category-filter.js +4 -4
- package/components/ix-category-filter.js.map +1 -1
- package/components/ix-chip.js +4 -4
- package/components/ix-content.js +3 -3
- package/components/ix-css-grid-item.js +1 -1
- package/components/ix-datetime-picker.js +1 -1
- package/components/ix-drawer.js +2 -2
- package/components/ix-dropdown-button.js +2 -2
- package/components/ix-dropdown-header.js +1 -1
- package/components/ix-dropdown-quick-actions.js +1 -1
- package/components/ix-empty-state.js +1 -1
- package/components/ix-event-list-item.js +4 -4
- package/components/ix-event-list.js +2 -2
- package/components/ix-expanding-search.js +4 -4
- package/components/ix-flip-tile-content.js +1 -1
- package/components/ix-flip-tile.js +4 -4
- package/components/{ix-text-field.d.ts → ix-form-field.d.ts} +4 -4
- package/components/ix-form-field.js +44 -0
- package/components/ix-form-field.js.map +1 -0
- package/components/ix-group.js +8 -8
- package/components/ix-icon-toggle-button.js +1 -1
- package/components/ix-input-group.js +1 -1
- package/components/ix-key-value-list.js +1 -1
- package/components/ix-key-value.js +1 -1
- package/components/ix-kpi.js +3 -3
- package/components/ix-link-button.js +3 -3
- package/components/ix-map-navigation.js +2 -2
- package/components/ix-menu-about-item.js +1 -1
- package/components/ix-menu-about-news.js +4 -4
- package/components/ix-menu-about.js +1 -1
- package/components/ix-menu-avatar.js +2 -2
- package/components/ix-menu-category.js +5 -5
- package/components/ix-menu-settings-item.js +1 -1
- package/components/ix-menu.js +11 -11
- package/components/ix-message-bar.js +1 -1
- package/components/ix-modal-example.js +1 -1
- package/components/ix-modal-footer.js +1 -1
- package/components/ix-modal-loading.js +1 -1
- package/components/ix-modal.js +3 -3
- package/components/ix-pagination.js +16 -34
- package/components/ix-pagination.js.map +1 -1
- package/components/ix-pane-layout.js +1 -1
- package/components/ix-pane.js +6 -6
- package/components/ix-pill.js +4 -4
- package/components/ix-playground-internal.js +1 -1
- package/components/ix-playground-internal.js.map +1 -1
- package/components/ix-push-card.js +1 -1
- package/components/ix-slider.js +6 -6
- package/components/ix-split-button-item.js +1 -1
- package/components/ix-split-button.js +1 -1
- package/components/ix-tile.js +4 -4
- package/components/ix-toast-container.js +2 -2
- package/components/ix-toggle-button.js +2 -2
- package/components/ix-toggle.js +5 -43
- package/components/ix-toggle.js.map +1 -1
- package/components/ix-tree.js +1 -1
- package/components/ix-upload.js +3 -3
- package/components/ix-validation-tooltip.js +2 -2
- package/components/ix-workflow-step.js +3 -3
- package/components/ix-workflow-steps.js +1 -1
- package/components/layout-grid.js +2 -2
- package/components/make-ref.js +0 -5
- package/components/make-ref.js.map +1 -1
- package/components/map-navigation-overlay.js +2 -2
- package/components/menu-avatar-item.js +1 -1
- package/components/menu-expand-icon.js +1 -1
- package/components/menu-item.js +3 -3
- package/components/menu-tabs-fc.js +1 -1
- package/components/modal-content.js +1 -1
- package/components/modal-header.js +1 -1
- package/components/row.js +1 -1
- package/components/select-item.js +1 -1
- package/components/select.js +71 -167
- package/components/select.js.map +1 -1
- package/components/service.js +2 -2
- package/components/service.js.map +1 -1
- package/components/spinner.js +1 -1
- package/components/tab-item.js +3 -3
- package/components/tab-item.js.map +1 -1
- package/components/tabs.js +2 -2
- package/components/time-picker.js +4 -4
- package/components/time-picker.js.map +1 -1
- package/components/toast.js +2 -2
- package/components/tooltip.js +2 -2
- package/components/tree-item.js +4 -4
- package/dist/cjs/{a11y-32046b56.js → a11y-d3ce56d1.js} +3 -4
- package/dist/cjs/a11y-d3ce56d1.js.map +1 -0
- package/dist/cjs/{base-button-16d4fadf.js → base-button-3735b8c2.js} +2 -2
- package/dist/cjs/{base-button-16d4fadf.js.map → base-button-3735b8c2.js.map} +1 -1
- package/dist/cjs/{base-icon-button-aba2ddbf.js → base-icon-button-44c72bc8.js} +3 -3
- package/dist/cjs/{base-icon-button-aba2ddbf.js.map → base-icon-button-44c72bc8.js.map} +1 -1
- package/dist/cjs/{index-0f6297c8.js → index-529f21c1.js} +156 -78
- package/dist/cjs/index-529f21c1.js.map +1 -0
- package/dist/cjs/index.cjs.js +0 -16
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +5 -5
- package/dist/cjs/ix-application-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ix-application.cjs.entry.js +5 -5
- package/dist/cjs/ix-avatar_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ix-blind.cjs.entry.js +2 -2
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/ix-button.cjs.entry.js +2 -2
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-card-list.cjs.entry.js +5 -5
- package/dist/cjs/ix-card_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-category-filter.cjs.entry.js +6 -6
- package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +5 -5
- package/dist/cjs/ix-col_4.cjs.entry.js +9 -9
- package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-content.cjs.entry.js +4 -4
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/ix-divider.cjs.entry.js +2 -2
- package/dist/cjs/ix-drawer.cjs.entry.js +3 -3
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown.cjs.entry.js +160 -21
- package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ix-event-list-item.cjs.entry.js +6 -6
- package/dist/cjs/ix-event-list.cjs.entry.js +3 -3
- package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -5
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-form-field.cjs.entry.js +28 -0
- package/dist/cjs/ix-form-field.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-group.cjs.entry.js +9 -9
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +5 -5
- package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
- package/dist/cjs/ix-kpi.cjs.entry.js +4 -4
- package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +3 -3
- package/dist/cjs/ix-map-navigation.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu.cjs.entry.js +13 -13
- package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-modal-example.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js +6 -6
- package/dist/cjs/ix-pagination.cjs.entry.js +5 -5
- package/dist/cjs/ix-pane-layout.cjs.entry.js +3 -3
- package/dist/cjs/ix-pane.cjs.entry.js +8 -8
- package/dist/cjs/ix-pill.cjs.entry.js +5 -5
- package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
- package/dist/cjs/ix-playground-internal.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-select.cjs.entry.js +59 -121
- package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-slider.cjs.entry.js +9 -9
- package/dist/cjs/ix-split-button-item.cjs.entry.js +3 -3
- package/dist/cjs/ix-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/ix-toast.cjs.entry.js +3 -3
- package/dist/cjs/ix-toggle-button.cjs.entry.js +5 -5
- package/dist/cjs/ix-toggle.cjs.entry.js +5 -42
- package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/{ix-field-label_3.cjs.entry.js → ix-tooltip.cjs.entry.js} +5 -146
- package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-tree.cjs.entry.js +2 -2
- package/dist/cjs/ix-typography.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +4 -4
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -4
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
- package/dist/cjs/{listener-0881dc51.js → listener-bc3e7c0c.js} +2 -2
- package/dist/cjs/{listener-0881dc51.js.map → listener-bc3e7c0c.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{make-ref-01530e5a.js → make-ref-c25629b7.js} +1 -6
- package/dist/cjs/make-ref-c25629b7.js.map +1 -0
- package/dist/cjs/{menu-tabs-fc-f6b706e3.js → menu-tabs-fc-df53f176.js} +3 -3
- package/dist/cjs/{menu-tabs-fc-f6b706e3.js.map → menu-tabs-fc-df53f176.js.map} +1 -1
- package/dist/cjs/{service-a42add5f.js → service-39a8e5fe.js} +3 -3
- package/dist/cjs/service-39a8e5fe.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -13
- package/dist/collection/components/application/application.js +3 -3
- package/dist/collection/components/application-header/application-header.js +3 -3
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
- package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
- package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/collection/components/card-content/card-content.js +1 -1
- package/dist/collection/components/card-list/card-list.js +4 -4
- package/dist/collection/components/card-title/card-title.js +1 -1
- package/dist/collection/components/category-filter/category-filter.css +20 -120
- package/dist/collection/components/category-filter/category-filter.js +3 -3
- package/dist/collection/components/chip/chip.js +4 -4
- package/dist/collection/components/content/content.js +3 -3
- package/dist/collection/components/css-grid/css-grid-item.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +4 -4
- package/dist/collection/components/date-time-card/date-time-card.js +7 -6
- package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +2 -2
- package/dist/collection/components/dropdown/dropdown-controller.js +0 -3
- package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.js +8 -5
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.ct.js +28 -0
- package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.js +2 -2
- package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/event-list/event-list.js +2 -2
- package/dist/collection/components/event-list-item/event-list-item.js +4 -4
- package/dist/collection/components/expanding-search/expanding-search.js +4 -4
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js +4 -4
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
- package/dist/collection/components/{text-field/number-field.css → form-field/form-field.css} +9 -236
- package/dist/collection/components/form-field/form-field.js +56 -0
- package/dist/collection/components/form-field/form-field.js.map +1 -0
- package/dist/collection/components/grid/layout-grid.js +2 -2
- package/dist/collection/components/group/group-context-menu.js +1 -1
- package/dist/collection/components/group/group.js +8 -8
- package/dist/collection/components/group-item/group-item.js +2 -2
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/key-value/key-value.js +1 -1
- package/dist/collection/components/key-value-list/key-value-list.js +1 -1
- package/dist/collection/components/kpi/kpi.js +3 -3
- package/dist/collection/components/link-button/link-button.js +3 -3
- package/dist/collection/components/map-navigation/map-navigation.js +2 -2
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
- package/dist/collection/components/menu/menu-expand-icon.js +1 -1
- package/dist/collection/components/menu/menu.js +11 -11
- package/dist/collection/components/menu-about/menu-about.js +1 -1
- package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
- package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-category/menu-category.js +5 -5
- package/dist/collection/components/menu-item/menu-item.js +3 -3
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/modal-content/modal-content.js +1 -1
- package/dist/collection/components/modal-footer/modal-footer.js +1 -1
- package/dist/collection/components/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.js +2 -2
- package/dist/collection/components/pane/pane.js +6 -6
- package/dist/collection/components/pane-layout/pane-layout.js +1 -1
- package/dist/collection/components/pill/pill.js +4 -4
- package/dist/collection/components/playground/example-modal.js +1 -1
- package/dist/collection/components/playground/playground.js +3 -3
- package/dist/collection/components/playground/playground.js.map +1 -1
- package/dist/collection/components/push-card/push-card.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/select/select.css +0 -52
- package/dist/collection/components/select/select.js +59 -387
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select/test/select.ct.js +96 -82
- package/dist/collection/components/select/test/select.ct.js.map +1 -1
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/slider/slider.js +6 -6
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/split-button-item/split-button-item.js +1 -1
- package/dist/collection/components/tab-item/tab-item.js +4 -4
- package/dist/collection/components/tab-item/tab-item.js.map +1 -1
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tile/tile.js +4 -4
- package/dist/collection/components/time-picker/time-picker.css +7 -80
- package/dist/collection/components/time-picker/time-picker.js +3 -3
- package/dist/collection/components/toast/toast-container.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/test/toggle.ct.js +1 -24
- package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -1
- package/dist/collection/components/toggle/toggle.css +1 -132
- package/dist/collection/components/toggle/toggle.js +2 -157
- package/dist/collection/components/toggle/toggle.js.map +1 -1
- package/dist/collection/components/toggle-button/toggle-button.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +4 -4
- package/dist/collection/components/upload/upload.js +3 -3
- package/dist/collection/components/utils/a11y.js +2 -3
- package/dist/collection/components/utils/a11y.js.map +1 -1
- package/dist/collection/components/utils/application-layout/service.js +2 -2
- package/dist/collection/components/utils/application-layout/service.js.map +1 -1
- package/dist/collection/components/utils/make-ref.js +0 -5
- package/dist/collection/components/utils/make-ref.js.map +1 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
- package/dist/collection/components/workflow-step/workflow-step.js +3 -3
- package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
- package/dist/collection/index.js +0 -6
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/tests/utils/test/index.js +0 -11
- package/dist/collection/tests/utils/test/index.js.map +1 -1
- package/dist/esm/{a11y-13dedaef.js → a11y-d5444a76.js} +3 -4
- package/dist/esm/a11y-d5444a76.js.map +1 -0
- package/dist/esm/{base-button-ea06697f.js → base-button-1b40b11d.js} +2 -2
- package/dist/esm/{base-button-ea06697f.js.map → base-button-1b40b11d.js.map} +1 -1
- package/dist/esm/{base-icon-button-c64fdb50.js → base-icon-button-bc1dabe0.js} +3 -3
- package/dist/esm/{base-icon-button-c64fdb50.js.map → base-icon-button-bc1dabe0.js.map} +1 -1
- package/dist/esm/{index-9103b14c.js → index-5429f20b.js} +156 -78
- package/dist/esm/index-5429f20b.js.map +1 -0
- package/dist/esm/index.js +1 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ix-action-card.entry.js +1 -1
- package/dist/esm/ix-application-header.entry.js +5 -5
- package/dist/esm/ix-application-sidebar.entry.js +2 -2
- package/dist/esm/ix-application-switch-modal.entry.js +2 -2
- package/dist/esm/ix-application.entry.js +5 -5
- package/dist/esm/ix-avatar_2.entry.js +4 -4
- package/dist/esm/ix-basic-navigation.entry.js +4 -4
- package/dist/esm/ix-blind.entry.js +2 -2
- package/dist/esm/ix-breadcrumb-item.entry.js +3 -3
- package/dist/esm/ix-breadcrumb.entry.js +4 -4
- package/dist/esm/ix-button.entry.js +2 -2
- package/dist/esm/ix-card-accordion_2.entry.js +2 -2
- package/dist/esm/ix-card-list.entry.js +5 -5
- package/dist/esm/ix-card_2.entry.js +2 -2
- package/dist/esm/ix-category-filter.entry.js +6 -6
- package/dist/esm/ix-category-filter.entry.js.map +1 -1
- package/dist/esm/ix-chip.entry.js +5 -5
- package/dist/esm/ix-col_4.entry.js +9 -9
- package/dist/esm/ix-content-header.entry.js +1 -1
- package/dist/esm/ix-content.entry.js +4 -4
- package/dist/esm/ix-css-grid-item.entry.js +2 -2
- package/dist/esm/ix-css-grid.entry.js +1 -1
- package/dist/esm/ix-date-dropdown.entry.js +1 -1
- package/dist/esm/ix-date-time-card.entry.js +2 -2
- package/dist/esm/ix-date-time-card.entry.js.map +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +2 -2
- package/dist/esm/ix-divider.entry.js +2 -2
- package/dist/esm/ix-drawer.entry.js +3 -3
- package/dist/esm/ix-dropdown-button.entry.js +3 -3
- package/dist/esm/ix-dropdown-header.entry.js +2 -2
- package/dist/esm/ix-dropdown-item.entry.js +4 -4
- package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
- package/dist/esm/ix-dropdown.entry.js +146 -7
- package/dist/esm/ix-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-empty-state.entry.js +2 -2
- package/dist/esm/ix-event-list-item.entry.js +6 -6
- package/dist/esm/ix-event-list.entry.js +3 -3
- package/dist/esm/ix-expanding-search.entry.js +5 -5
- package/dist/esm/ix-filter-chip_2.entry.js +3 -3
- package/dist/esm/ix-flip-tile-content.entry.js +2 -2
- package/dist/esm/ix-flip-tile.entry.js +5 -5
- package/dist/esm/ix-form-field.entry.js +24 -0
- package/dist/esm/ix-form-field.entry.js.map +1 -0
- package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
- package/dist/esm/ix-group.entry.js +9 -9
- package/dist/esm/ix-icon-button_2.entry.js +6 -6
- package/dist/esm/ix-icon-toggle-button.entry.js +5 -5
- package/dist/esm/ix-input-group.entry.js +2 -2
- package/dist/esm/ix-key-value-list.entry.js +2 -2
- package/dist/esm/ix-key-value.entry.js +2 -2
- package/dist/esm/ix-kpi.entry.js +4 -4
- package/dist/esm/ix-link-button.entry.js +4 -4
- package/dist/esm/ix-map-navigation-overlay.entry.js +3 -3
- package/dist/esm/ix-map-navigation.entry.js +3 -3
- package/dist/esm/ix-menu-about-item.entry.js +2 -2
- package/dist/esm/ix-menu-about-news.entry.js +5 -5
- package/dist/esm/ix-menu-about.entry.js +3 -3
- package/dist/esm/ix-menu-avatar.entry.js +3 -3
- package/dist/esm/ix-menu-category.entry.js +6 -6
- package/dist/esm/ix-menu-expand-icon.entry.js +4 -4
- package/dist/esm/ix-menu-item.entry.js +5 -5
- package/dist/esm/ix-menu-settings-item.entry.js +2 -2
- package/dist/esm/ix-menu-settings.entry.js +2 -2
- package/dist/esm/ix-menu.entry.js +13 -13
- package/dist/esm/ix-message-bar.entry.js +2 -2
- package/dist/esm/ix-modal-content_2.entry.js +3 -3
- package/dist/esm/ix-modal-example.entry.js +2 -2
- package/dist/esm/ix-modal-footer.entry.js +2 -2
- package/dist/esm/ix-modal-loading.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js +6 -6
- package/dist/esm/ix-pagination.entry.js +5 -5
- package/dist/esm/ix-pane-layout.entry.js +3 -3
- package/dist/esm/ix-pane.entry.js +8 -8
- package/dist/esm/ix-pill.entry.js +5 -5
- package/dist/esm/ix-playground-internal.entry.js +2 -2
- package/dist/esm/ix-playground-internal.entry.js.map +1 -1
- package/dist/esm/ix-push-card.entry.js +2 -2
- package/dist/esm/ix-select.entry.js +59 -121
- package/dist/esm/ix-select.entry.js.map +1 -1
- package/dist/esm/ix-slider.entry.js +9 -9
- package/dist/esm/ix-split-button-item.entry.js +3 -3
- package/dist/esm/ix-split-button.entry.js +2 -2
- package/dist/esm/ix-tab-item_2.entry.js +6 -6
- package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
- package/dist/esm/ix-tile.entry.js +5 -5
- package/dist/esm/ix-time-picker.entry.js +5 -5
- package/dist/esm/ix-time-picker.entry.js.map +1 -1
- package/dist/esm/ix-toast-container.entry.js +3 -3
- package/dist/esm/ix-toast.entry.js +3 -3
- package/dist/esm/ix-toggle-button.entry.js +5 -5
- package/dist/esm/ix-toggle.entry.js +5 -42
- package/dist/esm/ix-toggle.entry.js.map +1 -1
- package/dist/esm/{ix-field-label_3.entry.js → ix-tooltip.entry.js} +6 -145
- package/dist/esm/ix-tooltip.entry.js.map +1 -0
- package/dist/esm/ix-tree-item.entry.js +5 -5
- package/dist/esm/ix-tree.entry.js +2 -2
- package/dist/esm/ix-typography.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +4 -4
- package/dist/esm/ix-validation-tooltip.entry.js +3 -3
- package/dist/esm/ix-workflow-step.entry.js +4 -4
- package/dist/esm/ix-workflow-steps.entry.js +2 -2
- package/dist/esm/{listener-98571ba8.js → listener-4f3baab5.js} +2 -2
- package/dist/esm/{listener-98571ba8.js.map → listener-4f3baab5.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{make-ref-6b3b4e16.js → make-ref-c80046bf.js} +1 -6
- package/dist/esm/make-ref-c80046bf.js.map +1 -0
- package/dist/esm/{menu-tabs-fc-7ec1fb5d.js → menu-tabs-fc-d9a7dd06.js} +3 -3
- package/dist/esm/{menu-tabs-fc-7ec1fb5d.js.map → menu-tabs-fc-d9a7dd06.js.map} +1 -1
- package/dist/esm/{service-02cc9011.js → service-c7fc628b.js} +3 -3
- package/dist/esm/service-c7fc628b.js.map +1 -0
- package/dist/esm/siemens-ix.js +3 -3
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/index.esm.js.map +1 -1
- package/dist/siemens-ix/{p-9cc0d11b.entry.js → p-052340f9.entry.js} +2 -2
- package/dist/siemens-ix/{p-dde0af66.entry.js → p-0653a145.entry.js} +2 -2
- package/dist/siemens-ix/{p-ac05950c.entry.js → p-0b4e398e.entry.js} +2 -2
- package/dist/siemens-ix/{p-224ebf90.js → p-0c8a98cd.js} +2 -2
- package/dist/siemens-ix/p-0d2a6886.entry.js +2 -0
- package/dist/siemens-ix/{p-4b69ab0d.entry.js → p-0f7ef743.entry.js} +2 -2
- package/dist/siemens-ix/{p-6bd0ba14.entry.js → p-112069ca.entry.js} +2 -2
- package/dist/siemens-ix/p-112069ca.entry.js.map +1 -0
- package/dist/siemens-ix/{p-6ca97a73.entry.js → p-113cc793.entry.js} +2 -2
- package/dist/siemens-ix/{p-1f771917.entry.js → p-14a41c8c.entry.js} +2 -2
- package/dist/siemens-ix/{p-787293f4.entry.js → p-15b3c17e.entry.js} +2 -2
- package/dist/siemens-ix/p-16b923e9.entry.js +2 -0
- package/dist/siemens-ix/{p-3b38f812.entry.js → p-1a122c76.entry.js} +2 -2
- package/dist/siemens-ix/{p-83b8b502.entry.js → p-1cff59db.entry.js} +2 -2
- package/dist/siemens-ix/{p-ed991838.js → p-1d581190.js} +2 -2
- package/dist/siemens-ix/{p-37ca7ed4.js → p-1db6be55.js} +2 -2
- package/dist/siemens-ix/{p-1ec8d2b9.entry.js → p-1f4b8463.entry.js} +2 -2
- package/dist/siemens-ix/{p-846cf6d2.entry.js → p-24a8737a.entry.js} +2 -2
- package/dist/siemens-ix/{p-fad5daa1.entry.js → p-2908cacd.entry.js} +2 -2
- package/dist/siemens-ix/{p-80051a81.entry.js → p-2946fd70.entry.js} +2 -2
- package/dist/siemens-ix/{p-b973db5e.entry.js → p-29df2e29.entry.js} +2 -2
- package/dist/siemens-ix/{p-35690183.entry.js → p-2c4c03d4.entry.js} +2 -2
- package/dist/siemens-ix/p-2ebfd4fd.entry.js +2 -0
- package/dist/siemens-ix/{p-02ed5606.entry.js.map → p-2ebfd4fd.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-edd99767.entry.js → p-2ec7f841.entry.js} +2 -2
- package/dist/siemens-ix/{p-576b09c9.entry.js → p-309ac3ad.entry.js} +2 -2
- package/dist/siemens-ix/p-315f070d.entry.js +2 -0
- package/dist/siemens-ix/p-315f070d.entry.js.map +1 -0
- package/dist/siemens-ix/p-32375ddb.entry.js +2 -0
- package/dist/siemens-ix/p-32d4ed3b.entry.js +2 -0
- package/dist/siemens-ix/{p-cfcd2bd3.entry.js → p-427676f4.entry.js} +2 -2
- package/dist/siemens-ix/{p-b6c0dfb5.entry.js → p-4430117a.entry.js} +2 -2
- package/dist/siemens-ix/p-44db3646.entry.js +2 -0
- package/dist/siemens-ix/{p-5924a783.entry.js → p-453fa360.entry.js} +2 -2
- package/dist/siemens-ix/p-4b3facea.entry.js +2 -0
- package/dist/siemens-ix/p-4f8ac3bf.js +2 -0
- package/dist/siemens-ix/p-4f8ac3bf.js.map +1 -0
- package/dist/siemens-ix/p-52857629.entry.js +2 -0
- package/dist/siemens-ix/p-52857629.entry.js.map +1 -0
- package/dist/siemens-ix/{p-f0bbd496.entry.js → p-53352bfb.entry.js} +2 -2
- package/dist/siemens-ix/p-5696bb62.entry.js +2 -0
- package/dist/siemens-ix/p-5696bb62.entry.js.map +1 -0
- package/dist/siemens-ix/{p-9840f086.entry.js → p-5aa0b93c.entry.js} +2 -2
- package/dist/siemens-ix/{p-628c8612.entry.js → p-5c673ae9.entry.js} +2 -2
- package/dist/siemens-ix/{p-b5c4fd55.entry.js → p-5f25e7fd.entry.js} +2 -2
- package/dist/siemens-ix/{p-1df98c59.entry.js → p-60c16878.entry.js} +2 -2
- package/dist/siemens-ix/{p-0681f4d8.entry.js → p-6227e62b.entry.js} +2 -2
- package/dist/siemens-ix/p-64c3fa3d.js +2 -0
- package/dist/siemens-ix/p-64c3fa3d.js.map +1 -0
- package/dist/siemens-ix/p-68532fa2.js +2 -0
- package/dist/siemens-ix/{p-b0fe18f7.entry.js → p-68644ee1.entry.js} +2 -2
- package/dist/siemens-ix/{p-8a9fc2f0.entry.js → p-6af4415c.entry.js} +2 -2
- package/dist/siemens-ix/{p-8dcf30ce.entry.js → p-6fd7ecd0.entry.js} +2 -2
- package/dist/siemens-ix/{p-ec0806c3.entry.js → p-7076210b.entry.js} +2 -2
- package/dist/siemens-ix/{p-86b46723.entry.js → p-713828ed.entry.js} +2 -2
- package/dist/siemens-ix/{p-8e10d2f2.entry.js → p-7bfd6cd2.entry.js} +2 -2
- package/dist/siemens-ix/p-7faa148f.entry.js +2 -0
- package/dist/siemens-ix/p-85423643.entry.js +2 -0
- package/dist/siemens-ix/p-85423643.entry.js.map +1 -0
- package/dist/siemens-ix/{p-97f475db.entry.js → p-8629db91.entry.js} +2 -2
- package/dist/siemens-ix/p-87e692d9.entry.js +2 -0
- package/dist/siemens-ix/{p-18d15442.entry.js.map → p-87e692d9.entry.js.map} +1 -1
- package/dist/siemens-ix/p-882a0233.entry.js +2 -0
- package/dist/siemens-ix/{p-0d907964.entry.js.map → p-882a0233.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-75c61fbf.entry.js → p-8d0758c1.entry.js} +2 -2
- package/dist/siemens-ix/{p-3a5f7b61.entry.js → p-8d599677.entry.js} +2 -2
- package/dist/siemens-ix/{p-504f43d4.entry.js → p-90440046.entry.js} +2 -2
- package/dist/siemens-ix/{p-504f43d4.entry.js.map → p-90440046.entry.js.map} +1 -1
- package/dist/siemens-ix/p-92a18c10.entry.js +2 -0
- package/dist/siemens-ix/{p-06965e5f.entry.js → p-96a3a750.entry.js} +2 -2
- package/dist/siemens-ix/{p-921c59c4.entry.js → p-9ebc4fc3.entry.js} +2 -2
- package/dist/siemens-ix/{p-d7131f75.entry.js → p-a0138163.entry.js} +2 -2
- package/dist/siemens-ix/{p-3730ac72.entry.js → p-a0a44a2b.entry.js} +2 -2
- package/dist/siemens-ix/{p-3de71a19.entry.js → p-a8d291fa.entry.js} +2 -2
- package/dist/siemens-ix/{p-c6dcff7e.entry.js → p-af099ca4.entry.js} +2 -2
- package/dist/siemens-ix/p-b3b23af7.entry.js +2 -0
- package/dist/siemens-ix/{p-f37ac17d.entry.js → p-b4ce366d.entry.js} +2 -2
- package/dist/siemens-ix/{p-293dd6d1.entry.js → p-b663ca16.entry.js} +2 -2
- package/dist/siemens-ix/{p-9569e1a2.entry.js → p-b804b8c5.entry.js} +2 -2
- package/dist/siemens-ix/{p-b789e0e7.entry.js → p-bc2c74c5.entry.js} +2 -2
- package/dist/siemens-ix/{p-8d737a35.entry.js → p-bea7c748.entry.js} +2 -2
- package/dist/siemens-ix/{p-781a1922.entry.js → p-bf14c60b.entry.js} +2 -2
- package/dist/siemens-ix/p-c1222581.entry.js +2 -0
- package/dist/siemens-ix/{p-934ae9a0.entry.js → p-c1968b80.entry.js} +2 -2
- package/dist/siemens-ix/{p-e1bd7b4f.entry.js → p-c33cee36.entry.js} +2 -2
- package/dist/siemens-ix/{p-5eb935a3.entry.js → p-c45601cb.entry.js} +2 -2
- package/dist/siemens-ix/{p-815dd9a1.entry.js → p-c55db6c7.entry.js} +2 -2
- package/dist/siemens-ix/p-d03df401.entry.js +2 -0
- package/dist/siemens-ix/p-d03df401.entry.js.map +1 -0
- package/dist/siemens-ix/{p-87d7aaf9.entry.js → p-d14024d3.entry.js} +2 -2
- package/dist/siemens-ix/{p-2442ad01.entry.js → p-d1f49940.entry.js} +2 -2
- package/dist/siemens-ix/{p-61265df9.entry.js → p-d95cbd1f.entry.js} +2 -2
- package/dist/siemens-ix/{p-e72dfb3c.entry.js → p-d998415f.entry.js} +2 -2
- package/dist/siemens-ix/{p-628f031a.entry.js → p-dcb3e5be.entry.js} +2 -2
- package/dist/siemens-ix/{p-724b98ce.entry.js → p-dde7eb80.entry.js} +2 -2
- package/dist/siemens-ix/{p-ae7fdfa6.entry.js → p-e30ed20a.entry.js} +2 -2
- package/dist/siemens-ix/{p-15a5bc5a.entry.js → p-e8d3cf35.entry.js} +2 -2
- package/dist/siemens-ix/{p-aca94a5e.entry.js → p-e9a3f58a.entry.js} +2 -2
- package/dist/siemens-ix/p-eb6268a6.entry.js +2 -0
- package/dist/siemens-ix/{p-79c848ec.entry.js.map → p-eb6268a6.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-b8ed7953.entry.js → p-ebb277f0.entry.js} +2 -2
- package/dist/siemens-ix/{p-e5218382.entry.js → p-f07110c6.entry.js} +2 -2
- package/dist/siemens-ix/{p-6c412b52.entry.js → p-f78246bd.entry.js} +2 -2
- package/dist/siemens-ix/p-f87cd962.js +3 -0
- package/dist/siemens-ix/p-f87cd962.js.map +1 -0
- package/dist/siemens-ix/{p-104097fb.entry.js → p-fb2b78f7.entry.js} +2 -2
- package/dist/siemens-ix/{p-aae05303.entry.js → p-fb47546b.entry.js} +2 -2
- package/dist/siemens-ix/p-fb4c79c6.entry.js +2 -0
- package/dist/siemens-ix/{p-702f9349.js → p-fbe017b7.js} +2 -2
- package/dist/siemens-ix/p-fbe017b7.js.map +1 -0
- package/dist/siemens-ix/{p-9ec92185.entry.js → p-fc5814df.entry.js} +2 -2
- package/dist/siemens-ix/{p-bd24bbde.entry.js → p-feac09bc.entry.js} +2 -2
- package/dist/siemens-ix/p-ff148103.entry.js +2 -0
- package/dist/siemens-ix/p-ff148103.entry.js.map +1 -0
- package/dist/siemens-ix/{p-35fa9e1a.entry.js → p-ff1ac5b3.entry.js} +2 -2
- package/dist/siemens-ix/siemens-ix-core.css +1 -1
- package/dist/siemens-ix/siemens-ix.css +7 -80
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
- package/dist/types/components/date-time-card/date-time-card.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown-controller.d.ts +0 -1
- package/dist/types/components/form-field/form-field.d.ts +10 -0
- package/dist/types/components/select/select.d.ts +4 -84
- package/dist/types/components/tab-item/tab-item.d.ts +1 -1
- package/dist/types/components/toggle/toggle.d.ts +1 -29
- package/dist/types/components/utils/a11y.d.ts +5 -5
- package/dist/types/components.d.ts +30 -1714
- package/dist/types/index.d.ts +0 -1
- package/dist/types/tests/utils/test/index.d.ts +0 -3
- package/hydrate/index.js +516 -2584
- package/package.json +3 -3
- package/scss/components/form/_input.scss +6 -56
- package/components/field-label.js +0 -127
- package/components/field-label.js.map +0 -1
- package/components/field-wrapper.js +0 -97
- package/components/field-wrapper.js.map +0 -1
- package/components/helper-text-util.js +0 -48
- package/components/helper-text-util.js.map +0 -1
- package/components/ix-checkbox-group.d.ts +0 -11
- package/components/ix-checkbox-group.js +0 -105
- package/components/ix-checkbox-group.js.map +0 -1
- package/components/ix-checkbox.d.ts +0 -11
- package/components/ix-checkbox.js +0 -141
- package/components/ix-checkbox.js.map +0 -1
- package/components/ix-custom-field.d.ts +0 -11
- package/components/ix-custom-field.js +0 -116
- package/components/ix-custom-field.js.map +0 -1
- package/components/ix-date-field.d.ts +0 -11
- package/components/ix-date-field.js +0 -351
- package/components/ix-date-field.js.map +0 -1
- package/components/ix-field-label.d.ts +0 -11
- package/components/ix-field-label.js +0 -8
- package/components/ix-field-label.js.map +0 -1
- package/components/ix-field-wrapper.d.ts +0 -11
- package/components/ix-field-wrapper.js +0 -8
- package/components/ix-field-wrapper.js.map +0 -1
- package/components/ix-helper-text.d.ts +0 -11
- package/components/ix-helper-text.js +0 -97
- package/components/ix-helper-text.js.map +0 -1
- package/components/ix-layout-form.d.ts +0 -11
- package/components/ix-layout-form.js +0 -113
- package/components/ix-layout-form.js.map +0 -1
- package/components/ix-number-field.d.ts +0 -11
- package/components/ix-number-field.js +0 -217
- package/components/ix-number-field.js.map +0 -1
- package/components/ix-radio-group.d.ts +0 -11
- package/components/ix-radio-group.js +0 -169
- package/components/ix-radio-group.js.map +0 -1
- package/components/ix-radio.d.ts +0 -11
- package/components/ix-radio.js +0 -115
- package/components/ix-radio.js.map +0 -1
- package/components/ix-text-field.js +0 -223
- package/components/ix-text-field.js.map +0 -1
- package/components/ix-textarea-field.d.ts +0 -11
- package/components/ix-textarea-field.js +0 -177
- package/components/ix-textarea-field.js.map +0 -1
- package/components/text-field.util.js +0 -167
- package/components/text-field.util.js.map +0 -1
- package/components/validation.js +0 -112
- package/components/validation.js.map +0 -1
- package/dist/cjs/a11y-32046b56.js.map +0 -1
- package/dist/cjs/dropdown-controller-403dc7fa.js +0 -147
- package/dist/cjs/dropdown-controller-403dc7fa.js.map +0 -1
- package/dist/cjs/helper-text-util-9f617ef2.js +0 -40
- package/dist/cjs/helper-text-util-9f617ef2.js.map +0 -1
- package/dist/cjs/index-0f6297c8.js.map +0 -1
- package/dist/cjs/index-762a29a3.js +0 -24
- package/dist/cjs/index-762a29a3.js.map +0 -1
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +0 -56
- package/dist/cjs/ix-checkbox-group.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-checkbox.cjs.entry.js +0 -114
- package/dist/cjs/ix-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-custom-field.cjs.entry.js +0 -65
- package/dist/cjs/ix-custom-field.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-date-field.cjs.entry.js +0 -255
- package/dist/cjs/ix-date-field.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-field-label_3.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-helper-text.cjs.entry.js +0 -70
- package/dist/cjs/ix-helper-text.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-layout-form.cjs.entry.js +0 -94
- package/dist/cjs/ix-layout-form.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-number-field.cjs.entry.js +0 -148
- package/dist/cjs/ix-number-field.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-radio-group.cjs.entry.js +0 -116
- package/dist/cjs/ix-radio-group.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-radio.cjs.entry.js +0 -96
- package/dist/cjs/ix-radio.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-text-field.cjs.entry.js +0 -151
- package/dist/cjs/ix-text-field.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-textarea-field.cjs.entry.js +0 -118
- package/dist/cjs/ix-textarea-field.cjs.entry.js.map +0 -1
- package/dist/cjs/make-ref-01530e5a.js.map +0 -1
- package/dist/cjs/service-a42add5f.js.map +0 -1
- package/dist/cjs/text-field.util-d7c5c1cd.js +0 -179
- package/dist/cjs/text-field.util-d7c5c1cd.js.map +0 -1
- package/dist/cjs/validation-c5a41d68.js +0 -117
- package/dist/cjs/validation-c5a41d68.js.map +0 -1
- package/dist/collection/components/checkbox/checkbox.css +0 -437
- package/dist/collection/components/checkbox/checkbox.js +0 -323
- package/dist/collection/components/checkbox/checkbox.js.map +0 -1
- package/dist/collection/components/checkbox/tests/checkbox.ct.js +0 -52
- package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +0 -1
- package/dist/collection/components/checkbox-group/checkbox-group.css +0 -35
- package/dist/collection/components/checkbox-group/checkbox-group.js +0 -173
- package/dist/collection/components/checkbox-group/checkbox-group.js.map +0 -1
- package/dist/collection/components/custom-field/custom-field.css +0 -11
- package/dist/collection/components/custom-field/custom-field.js +0 -216
- package/dist/collection/components/custom-field/custom-field.js.map +0 -1
- package/dist/collection/components/custom-field/tests/custom-field.ct.js +0 -68
- package/dist/collection/components/custom-field/tests/custom-field.ct.js.map +0 -1
- package/dist/collection/components/date-field/date-field.css +0 -938
- package/dist/collection/components/date-field/date-field.js +0 -696
- package/dist/collection/components/date-field/date-field.js.map +0 -1
- package/dist/collection/components/date-field/tests/date-field.ct.js +0 -114
- package/dist/collection/components/date-field/tests/date-field.ct.js.map +0 -1
- package/dist/collection/components/field-label/field-label.css +0 -14
- package/dist/collection/components/field-label/field-label.js +0 -173
- package/dist/collection/components/field-label/field-label.js.map +0 -1
- package/dist/collection/components/field-label/tests/field-label.ct.js +0 -70
- package/dist/collection/components/field-label/tests/field-label.ct.js.map +0 -1
- package/dist/collection/components/field-wrapper/field-wrapper.css +0 -71
- package/dist/collection/components/field-wrapper/field-wrapper.js +0 -309
- package/dist/collection/components/field-wrapper/field-wrapper.js.map +0 -1
- package/dist/collection/components/field-wrapper/helper-text-util.js +0 -26
- package/dist/collection/components/field-wrapper/helper-text-util.js.map +0 -1
- package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js +0 -63
- package/dist/collection/components/field-wrapper/tests/field-wrapper.ct.js.map +0 -1
- package/dist/collection/components/helper-text/helper-text.css +0 -34
- package/dist/collection/components/helper-text/helper-text.js +0 -179
- package/dist/collection/components/helper-text/helper-text.js.map +0 -1
- package/dist/collection/components/layout-form/layout-form.css +0 -15
- package/dist/collection/components/layout-form/layout-form.js +0 -126
- package/dist/collection/components/layout-form/layout-form.js.map +0 -1
- package/dist/collection/components/radio/radio.css +0 -428
- package/dist/collection/components/radio/radio.js +0 -276
- package/dist/collection/components/radio/radio.js.map +0 -1
- package/dist/collection/components/radio/test/radio.ct.js +0 -36
- package/dist/collection/components/radio/test/radio.ct.js.map +0 -1
- package/dist/collection/components/radio-group/radio-group.css +0 -35
- package/dist/collection/components/radio-group/radio-group.js +0 -296
- package/dist/collection/components/radio-group/radio-group.js.map +0 -1
- package/dist/collection/components/radio-group/test/radio-group.ct.js +0 -99
- package/dist/collection/components/radio-group/test/radio-group.ct.js.map +0 -1
- package/dist/collection/components/text-field/input.fc.js +0 -38
- package/dist/collection/components/text-field/input.fc.js.map +0 -1
- package/dist/collection/components/text-field/number-field.js +0 -586
- package/dist/collection/components/text-field/number-field.js.map +0 -1
- package/dist/collection/components/text-field/tests/form-ready.ct.js +0 -63
- package/dist/collection/components/text-field/tests/form-ready.ct.js.map +0 -1
- package/dist/collection/components/text-field/text-field.animation.js +0 -36
- package/dist/collection/components/text-field/text-field.animation.js.map +0 -1
- package/dist/collection/components/text-field/text-field.css +0 -899
- package/dist/collection/components/text-field/text-field.js +0 -594
- package/dist/collection/components/text-field/text-field.js.map +0 -1
- package/dist/collection/components/text-field/text-field.util.js +0 -93
- package/dist/collection/components/text-field/text-field.util.js.map +0 -1
- package/dist/collection/components/text-field/textarea-field.css +0 -550
- package/dist/collection/components/text-field/textarea-field.js +0 -595
- package/dist/collection/components/text-field/textarea-field.js.map +0 -1
- package/dist/collection/components/utils/attributes.js +0 -25
- package/dist/collection/components/utils/attributes.js.map +0 -1
- package/dist/collection/components/utils/field/index.js +0 -9
- package/dist/collection/components/utils/field/index.js.map +0 -1
- package/dist/collection/components/utils/field/validation.js +0 -108
- package/dist/collection/components/utils/field/validation.js.map +0 -1
- package/dist/collection/components/utils/testing/index.js +0 -9
- package/dist/collection/components/utils/testing/index.js.map +0 -1
- package/dist/collection/components/utils/uuid.js +0 -16
- package/dist/collection/components/utils/uuid.js.map +0 -1
- package/dist/collection/tests/form-fields/form-fields.e2e.js +0 -57
- package/dist/collection/tests/form-fields/form-fields.e2e.js.map +0 -1
- package/dist/esm/a11y-13dedaef.js.map +0 -1
- package/dist/esm/dropdown-controller-d6d8b14a.js +0 -143
- package/dist/esm/dropdown-controller-d6d8b14a.js.map +0 -1
- package/dist/esm/helper-text-util-3dd33b44.js +0 -38
- package/dist/esm/helper-text-util-3dd33b44.js.map +0 -1
- package/dist/esm/index-9103b14c.js.map +0 -1
- package/dist/esm/index-f51bf247.js +0 -14
- package/dist/esm/index-f51bf247.js.map +0 -1
- package/dist/esm/ix-checkbox-group.entry.js +0 -52
- package/dist/esm/ix-checkbox-group.entry.js.map +0 -1
- package/dist/esm/ix-checkbox.entry.js +0 -110
- package/dist/esm/ix-checkbox.entry.js.map +0 -1
- package/dist/esm/ix-custom-field.entry.js +0 -61
- package/dist/esm/ix-custom-field.entry.js.map +0 -1
- package/dist/esm/ix-date-field.entry.js +0 -251
- package/dist/esm/ix-date-field.entry.js.map +0 -1
- package/dist/esm/ix-field-label_3.entry.js.map +0 -1
- package/dist/esm/ix-helper-text.entry.js +0 -66
- package/dist/esm/ix-helper-text.entry.js.map +0 -1
- package/dist/esm/ix-layout-form.entry.js +0 -90
- package/dist/esm/ix-layout-form.entry.js.map +0 -1
- package/dist/esm/ix-number-field.entry.js +0 -144
- package/dist/esm/ix-number-field.entry.js.map +0 -1
- package/dist/esm/ix-radio-group.entry.js +0 -112
- package/dist/esm/ix-radio-group.entry.js.map +0 -1
- package/dist/esm/ix-radio.entry.js +0 -92
- package/dist/esm/ix-radio.entry.js.map +0 -1
- package/dist/esm/ix-text-field.entry.js +0 -147
- package/dist/esm/ix-text-field.entry.js.map +0 -1
- package/dist/esm/ix-textarea-field.entry.js +0 -114
- package/dist/esm/ix-textarea-field.entry.js.map +0 -1
- package/dist/esm/make-ref-6b3b4e16.js.map +0 -1
- package/dist/esm/service-02cc9011.js.map +0 -1
- package/dist/esm/text-field.util-6a84bffd.js +0 -167
- package/dist/esm/text-field.util-6a84bffd.js.map +0 -1
- package/dist/esm/validation-9db7dfa3.js +0 -112
- package/dist/esm/validation-9db7dfa3.js.map +0 -1
- package/dist/siemens-ix/p-02ed5606.entry.js +0 -2
- package/dist/siemens-ix/p-08215ad3.entry.js +0 -2
- package/dist/siemens-ix/p-08215ad3.entry.js.map +0 -1
- package/dist/siemens-ix/p-0bed10af.entry.js +0 -2
- package/dist/siemens-ix/p-0d907964.entry.js +0 -2
- package/dist/siemens-ix/p-0dfc3b80.entry.js +0 -2
- package/dist/siemens-ix/p-18d15442.entry.js +0 -2
- package/dist/siemens-ix/p-277980fa.entry.js +0 -2
- package/dist/siemens-ix/p-277980fa.entry.js.map +0 -1
- package/dist/siemens-ix/p-36c0f378.js +0 -2
- package/dist/siemens-ix/p-36c0f378.js.map +0 -1
- package/dist/siemens-ix/p-3782e028.js +0 -2
- package/dist/siemens-ix/p-3782e028.js.map +0 -1
- package/dist/siemens-ix/p-399bb0ce.entry.js +0 -2
- package/dist/siemens-ix/p-4017727a.entry.js +0 -2
- package/dist/siemens-ix/p-4017727a.entry.js.map +0 -1
- package/dist/siemens-ix/p-42c66a44.js +0 -2
- package/dist/siemens-ix/p-42c66a44.js.map +0 -1
- package/dist/siemens-ix/p-4a335b55.entry.js +0 -2
- package/dist/siemens-ix/p-4a335b55.entry.js.map +0 -1
- package/dist/siemens-ix/p-50cae62d.entry.js +0 -2
- package/dist/siemens-ix/p-53e62b51.entry.js +0 -2
- package/dist/siemens-ix/p-56d01130.entry.js +0 -2
- package/dist/siemens-ix/p-56d01130.entry.js.map +0 -1
- package/dist/siemens-ix/p-5a6d8b69.entry.js +0 -2
- package/dist/siemens-ix/p-5a6d8b69.entry.js.map +0 -1
- package/dist/siemens-ix/p-5bf40a9f.entry.js +0 -2
- package/dist/siemens-ix/p-6bd0ba14.entry.js.map +0 -1
- package/dist/siemens-ix/p-6f83793b.entry.js +0 -2
- package/dist/siemens-ix/p-6f83793b.entry.js.map +0 -1
- package/dist/siemens-ix/p-702f9349.js.map +0 -1
- package/dist/siemens-ix/p-70a7bd22.entry.js +0 -2
- package/dist/siemens-ix/p-70a7bd22.entry.js.map +0 -1
- package/dist/siemens-ix/p-73e0eb40.entry.js +0 -2
- package/dist/siemens-ix/p-73e0eb40.entry.js.map +0 -1
- package/dist/siemens-ix/p-79c848ec.entry.js +0 -2
- package/dist/siemens-ix/p-7f4b78e5.js +0 -2
- package/dist/siemens-ix/p-7f4b78e5.js.map +0 -1
- package/dist/siemens-ix/p-9010831e.entry.js +0 -2
- package/dist/siemens-ix/p-9010831e.entry.js.map +0 -1
- package/dist/siemens-ix/p-a9b0c087.entry.js +0 -2
- package/dist/siemens-ix/p-ac6c6d3f.entry.js +0 -2
- package/dist/siemens-ix/p-ac6c6d3f.entry.js.map +0 -1
- package/dist/siemens-ix/p-b9b59a08.entry.js +0 -2
- package/dist/siemens-ix/p-b9b59a08.entry.js.map +0 -1
- package/dist/siemens-ix/p-bc1e92ac.js +0 -2
- package/dist/siemens-ix/p-c3db120e.entry.js +0 -2
- package/dist/siemens-ix/p-c66e4a5f.entry.js +0 -2
- package/dist/siemens-ix/p-c71d1690.entry.js +0 -2
- package/dist/siemens-ix/p-c71d1690.entry.js.map +0 -1
- package/dist/siemens-ix/p-cce7a3d5.js +0 -2
- package/dist/siemens-ix/p-cce7a3d5.js.map +0 -1
- package/dist/siemens-ix/p-ce8a0611.entry.js +0 -2
- package/dist/siemens-ix/p-ce8a0611.entry.js.map +0 -1
- package/dist/siemens-ix/p-cf65d3b6.entry.js +0 -2
- package/dist/siemens-ix/p-cf65d3b6.entry.js.map +0 -1
- package/dist/siemens-ix/p-da8517ed.js +0 -2
- package/dist/siemens-ix/p-da8517ed.js.map +0 -1
- package/dist/siemens-ix/p-dead9c8e.js +0 -2
- package/dist/siemens-ix/p-dead9c8e.js.map +0 -1
- package/dist/siemens-ix/p-ef6171a2.entry.js +0 -2
- package/dist/siemens-ix/p-f22e4bb2.entry.js +0 -2
- package/dist/siemens-ix/p-f22e4bb2.entry.js.map +0 -1
- package/dist/siemens-ix/p-f3c3366d.entry.js +0 -2
- package/dist/siemens-ix/p-f86a894a.js +0 -3
- package/dist/siemens-ix/p-f86a894a.js.map +0 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -61
- package/dist/types/components/checkbox/tests/checkbox.ct.d.ts +0 -1
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -40
- package/dist/types/components/custom-field/custom-field.d.ts +0 -46
- package/dist/types/components/custom-field/tests/custom-field.ct.d.ts +0 -1
- package/dist/types/components/date-field/date-field.d.ts +0 -127
- package/dist/types/components/date-field/tests/date-field.ct.d.ts +0 -1
- package/dist/types/components/field-label/field-label.d.ts +0 -27
- package/dist/types/components/field-label/tests/field-label.ct.d.ts +0 -1
- package/dist/types/components/field-wrapper/field-wrapper.d.ts +0 -64
- package/dist/types/components/field-wrapper/helper-text-util.d.ts +0 -11
- package/dist/types/components/field-wrapper/tests/field-wrapper.ct.d.ts +0 -1
- package/dist/types/components/helper-text/helper-text.d.ts +0 -37
- package/dist/types/components/layout-form/layout-form.d.ts +0 -22
- package/dist/types/components/radio/radio.d.ts +0 -53
- package/dist/types/components/radio/test/radio.ct.d.ts +0 -1
- package/dist/types/components/radio-group/radio-group.d.ts +0 -60
- package/dist/types/components/radio-group/test/radio-group.ct.d.ts +0 -1
- package/dist/types/components/text-field/input.fc.d.ts +0 -50
- package/dist/types/components/text-field/number-field.d.ts +0 -117
- package/dist/types/components/text-field/tests/form-ready.ct.d.ts +0 -1
- package/dist/types/components/text-field/text-field.animation.d.ts +0 -1
- package/dist/types/components/text-field/text-field.d.ts +0 -119
- package/dist/types/components/text-field/text-field.util.d.ts +0 -13
- package/dist/types/components/text-field/textarea-field.d.ts +0 -127
- package/dist/types/components/utils/attributes.d.ts +0 -2
- package/dist/types/components/utils/field/index.d.ts +0 -60
- package/dist/types/components/utils/field/validation.d.ts +0 -15
- package/dist/types/components/utils/testing/index.d.ts +0 -0
- package/dist/types/components/utils/uuid.d.ts +0 -1
- package/scss/mixins/_field.scss +0 -18
- package/scss/mixins/validation/_form-component.scss +0 -63
- /package/dist/siemens-ix/{p-9cc0d11b.entry.js.map → p-052340f9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-dde0af66.entry.js.map → p-0653a145.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ac05950c.entry.js.map → p-0b4e398e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-224ebf90.js.map → p-0c8a98cd.js.map} +0 -0
- /package/dist/siemens-ix/{p-ef6171a2.entry.js.map → p-0d2a6886.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4b69ab0d.entry.js.map → p-0f7ef743.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6ca97a73.entry.js.map → p-113cc793.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1f771917.entry.js.map → p-14a41c8c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-787293f4.entry.js.map → p-15b3c17e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c3db120e.entry.js.map → p-16b923e9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3b38f812.entry.js.map → p-1a122c76.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-83b8b502.entry.js.map → p-1cff59db.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ed991838.js.map → p-1d581190.js.map} +0 -0
- /package/dist/siemens-ix/{p-37ca7ed4.js.map → p-1db6be55.js.map} +0 -0
- /package/dist/siemens-ix/{p-1ec8d2b9.entry.js.map → p-1f4b8463.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-846cf6d2.entry.js.map → p-24a8737a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-fad5daa1.entry.js.map → p-2908cacd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-80051a81.entry.js.map → p-2946fd70.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b973db5e.entry.js.map → p-29df2e29.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-35690183.entry.js.map → p-2c4c03d4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-edd99767.entry.js.map → p-2ec7f841.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-576b09c9.entry.js.map → p-309ac3ad.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-50cae62d.entry.js.map → p-32375ddb.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a9b0c087.entry.js.map → p-32d4ed3b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cfcd2bd3.entry.js.map → p-427676f4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b6c0dfb5.entry.js.map → p-4430117a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0dfc3b80.entry.js.map → p-44db3646.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5924a783.entry.js.map → p-453fa360.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-399bb0ce.entry.js.map → p-4b3facea.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f0bbd496.entry.js.map → p-53352bfb.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9840f086.entry.js.map → p-5aa0b93c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-628c8612.entry.js.map → p-5c673ae9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b5c4fd55.entry.js.map → p-5f25e7fd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1df98c59.entry.js.map → p-60c16878.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0681f4d8.entry.js.map → p-6227e62b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bc1e92ac.js.map → p-68532fa2.js.map} +0 -0
- /package/dist/siemens-ix/{p-b0fe18f7.entry.js.map → p-68644ee1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8a9fc2f0.entry.js.map → p-6af4415c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8dcf30ce.entry.js.map → p-6fd7ecd0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ec0806c3.entry.js.map → p-7076210b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-86b46723.entry.js.map → p-713828ed.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8e10d2f2.entry.js.map → p-7bfd6cd2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5bf40a9f.entry.js.map → p-7faa148f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-97f475db.entry.js.map → p-8629db91.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-75c61fbf.entry.js.map → p-8d0758c1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3a5f7b61.entry.js.map → p-8d599677.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f3c3366d.entry.js.map → p-92a18c10.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-06965e5f.entry.js.map → p-96a3a750.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-921c59c4.entry.js.map → p-9ebc4fc3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d7131f75.entry.js.map → p-a0138163.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3730ac72.entry.js.map → p-a0a44a2b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3de71a19.entry.js.map → p-a8d291fa.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c6dcff7e.entry.js.map → p-af099ca4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0bed10af.entry.js.map → p-b3b23af7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f37ac17d.entry.js.map → p-b4ce366d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-293dd6d1.entry.js.map → p-b663ca16.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9569e1a2.entry.js.map → p-b804b8c5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b789e0e7.entry.js.map → p-bc2c74c5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8d737a35.entry.js.map → p-bea7c748.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-781a1922.entry.js.map → p-bf14c60b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c66e4a5f.entry.js.map → p-c1222581.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-934ae9a0.entry.js.map → p-c1968b80.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e1bd7b4f.entry.js.map → p-c33cee36.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5eb935a3.entry.js.map → p-c45601cb.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-815dd9a1.entry.js.map → p-c55db6c7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-87d7aaf9.entry.js.map → p-d14024d3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2442ad01.entry.js.map → p-d1f49940.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-61265df9.entry.js.map → p-d95cbd1f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e72dfb3c.entry.js.map → p-d998415f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-628f031a.entry.js.map → p-dcb3e5be.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-724b98ce.entry.js.map → p-dde7eb80.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ae7fdfa6.entry.js.map → p-e30ed20a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-15a5bc5a.entry.js.map → p-e8d3cf35.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-aca94a5e.entry.js.map → p-e9a3f58a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b8ed7953.entry.js.map → p-ebb277f0.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e5218382.entry.js.map → p-f07110c6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6c412b52.entry.js.map → p-f78246bd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-104097fb.entry.js.map → p-fb2b78f7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-aae05303.entry.js.map → p-fb47546b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-53e62b51.entry.js.map → p-fb4c79c6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9ec92185.entry.js.map → p-fc5814df.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bd24bbde.entry.js.map → p-feac09bc.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-35fa9e1a.entry.js.map → p-ff1ac5b3.entry.js.map} +0 -0
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { H as HookValidationLifecycle } from './validation.js';
|
|
3
|
-
import { m as makeRef } from './make-ref.js';
|
|
4
|
-
import { m as mapValidationResult, T as TextareaElement, o as onInputBlur } from './text-field.util.js';
|
|
5
|
-
import { d as defineCustomElement$5 } from './field-label.js';
|
|
6
|
-
import { d as defineCustomElement$4 } from './field-wrapper.js';
|
|
7
|
-
import { d as defineCustomElement$3 } from './tooltip.js';
|
|
8
|
-
import { d as defineCustomElement$2 } from './typography.js';
|
|
9
|
-
|
|
10
|
-
const textareaFieldCss = "label{color:var(--theme-color-soft-text);padding:2px 0px}label.label-alignment-left{padding:6px 0px}input{font-feature-settings:\"clig\" off, \"liga\" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;min-height:2rem;width:100%;padding:0.25rem 0.5rem;background-color:var(--theme-input--background);color:var(--theme-input--color);-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;text-overflow:ellipsis;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color);border-radius:var(--theme-input--border-radius);box-shadow:var(--theme-input--box-shadow)}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}input:-webkit-autofill,input:autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}input::-moz-placeholder{color:var(--theme-input-hint--color)}input::placeholder{color:var(--theme-input-hint--color)}input:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only).hover,input:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only):hover{border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}input:not(.readonly):not([readonly]):not([readOnly]):not(:read-only).hover,input:not(.readonly):not([readonly]):not([readOnly]):not(:read-only):hover{border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}input:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only).focus,input:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only):focus{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}input:not(.readonly):not([readonly]):not([readOnly]):not(:read-only).focus,input:not(.readonly):not([readonly]):not([readOnly]):not(:read-only):focus{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}input:-moz-read-only{box-shadow:none;background-color:transparent;outline:none;border:none;border-bottom:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color-bottom--readonly)}input.read-only,input:read-only{box-shadow:none;background-color:transparent;outline:none;border:none;border-bottom:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color-bottom--readonly)}input.read-only::-moz-placeholder,input:read-only::-moz-placeholder{color:transparent}input:-moz-read-only::placeholder{color:transparent}input.read-only::placeholder,input:read-only::placeholder{color:transparent}input:disabled{box-shadow:none;background-color:transparent;outline:none;border:none;color:var(--theme-input--color--disabled);border-bottom:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color-bottom--disabled)}input:disabled::-moz-placeholder{color:transparent}input:disabled::placeholder{color:transparent}input[type=number]{text-align:right}input[type=number]::-webkit-inner-spin-button{margin-right:-2px;margin-left:2px;display:none}textarea{padding:0.375rem 1.25rem 0.375rem 0.5rem}textarea{font-feature-settings:\"clig\" off, \"liga\" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;min-height:2rem;width:100%;padding:0.25rem 0.5rem;background-color:var(--theme-input--background);color:var(--theme-input--color);-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;text-overflow:ellipsis;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color);border-radius:var(--theme-input--border-radius);box-shadow:var(--theme-input--box-shadow)}textarea:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}textarea:-webkit-autofill,textarea:autofill{-webkit-box-shadow:0 0 0 1000px var(--theme-color-component-info) inset !important;-webkit-text-fill-color:var(--theme-input--color--autofill) !important;background-color:var(--theme-input--background--autofill) !important;border:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color--autofill) !important;color:var(--theme-input--color--autofill) !important}textarea::-moz-placeholder{color:var(--theme-input-hint--color)}textarea::placeholder{color:var(--theme-input-hint--color)}textarea:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only).hover,textarea:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only):hover{border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}textarea:not(.readonly):not([readonly]):not([readOnly]):not(:read-only).hover,textarea:not(.readonly):not([readonly]):not([readOnly]):not(:read-only):hover{border-color:var(--theme-input--border-color--hover) !important;background-color:var(--theme-input--background--hover)}textarea:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only).focus,textarea:not(.readonly):not([readonly]):not([readOnly]):not(:-moz-read-only):focus{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}textarea:not(.readonly):not([readonly]):not([readOnly]):not(:read-only).focus,textarea:not(.readonly):not([readonly]):not([readOnly]):not(:read-only):focus{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-input--focus--outline-offset);border-color:var(--theme-input--border-color--focus) !important}textarea:-moz-read-only{box-shadow:none;background-color:transparent;outline:none;border:none;border-bottom:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color-bottom--readonly)}textarea.read-only,textarea:read-only{box-shadow:none;background-color:transparent;outline:none;border:none;border-bottom:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color-bottom--readonly)}textarea.read-only::-moz-placeholder,textarea:read-only::-moz-placeholder{color:transparent}textarea:-moz-read-only::placeholder{color:transparent}textarea.read-only::placeholder,textarea:read-only::placeholder{color:transparent}textarea:disabled{box-shadow:none;background-color:transparent;outline:none;border:none;color:var(--theme-input--color--disabled);border-bottom:var(--theme-input--border-thickness, 1px) solid var(--theme-input--border-color-bottom--disabled)}textarea:disabled::-moz-placeholder{color:transparent}textarea:disabled::placeholder{color:transparent}textarea~.valid-feedback,textarea~.invalid-feedback,input~.valid-feedback,input~.invalid-feedback{display:none;font-feature-settings:\"clig\" off, \"liga\" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}form textarea~.valid-feedback,form input~.valid-feedback{color:var(--theme-color-success)}form textarea~.invalid-feedback,form input~.invalid-feedback{color:var(--theme-color-alarm-text)}form:not([novalidate]) :invalid,form:not([novalidate]) .is-invalid,form.was-validated :invalid,form.was-validated .is-invalid{background-color:var(--theme-input-error--background);border-color:var(--theme-input-error--border-color);background-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='512px' height='512px' viewBox='0 0 512 512' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3C!-- Generator: sketchtool 62 (101010) - https://sketch.com --%3E%3Ctitle%3Eerror%3C/title%3E%3Cdesc%3ECreated with sketchtool.%3C/desc%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0.75'%3E%3Cg id='error' fill='%23ff2640'%3E%3Cg id='error/error'%3E%3Cpath d='M256,42.6666667 C373.626371,42.6666667 469.333333,138.373627 469.333333,256 C469.333333,373.626371 373.626371,469.333333 256,469.333333 C138.373627,469.333333 42.6666667,373.626371 42.6666667,256 C42.6666667,138.373627 138.373627,42.6666667 256,42.6666667 Z M256,85.3333333 C161.559631,85.3333333 85.3333333,161.559631 85.3333333,256 C85.3333333,350.44037 161.559631,426.666667 256,426.666667 C350.44037,426.666667 426.666667,350.44037 426.666667,256 C426.666667,161.559631 350.44037,85.3333333 256,85.3333333 Z M326.248389,155.581722 L356.418278,185.751611 L286.168667,255.999667 L356.418278,326.248389 L326.248389,356.418278 L255.999667,286.168667 L185.751611,356.418278 L155.581722,326.248389 L225.829667,255.999667 L155.581722,185.751611 L185.751611,155.581722 L255.999667,225.829667 L326.248389,155.581722 Z' id='Combined-Shape'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") !important;background-position:left calc(0.375em + 0.1875rem) center;padding-right:0.75rem;padding-left:calc(1.5em + 0.75rem);background-size:18px;background-repeat:no-repeat}form:not([novalidate]) :invalid~.invalid-feedback,form:not([novalidate]) .is-invalid~.invalid-feedback,form.was-validated :invalid~.invalid-feedback,form.was-validated .is-invalid~.invalid-feedback{display:block}form:not([novalidate]) :valid~.valid-feedback,form:not([novalidate]) .is-valid~.valid-feedback,form.was-validated :valid~.valid-feedback,form.was-validated .is-valid~.valid-feedback{display:block}form:not(.was-validated) .invalid-feedback,form:not(.was-validated) .valid-feedback{display:none !important}textarea.ix-info:not(.disabled):not(:disabled):not([disabled]),input.ix-info:not(.disabled):not(:disabled):not([disabled]){border-color:var(--theme-input--border-color--info)}textarea.ix-info:not(.disabled):not(:disabled):not([disabled]):hover,input.ix-info:not(.disabled):not(:disabled):not([disabled]):hover{border-color:var(--theme-input--border-color--info--hover) !important}textarea.ix-info:not(.disabled):not(:disabled):not([disabled]):active,input.ix-info:not(.disabled):not(:disabled):not([disabled]):active{border-color:var(--theme-input--border-color--info--active) !important}textarea.ix-warning:not(.disabled):not(:disabled):not([disabled]),input.ix-warning:not(.disabled):not(:disabled):not([disabled]){border-color:var(--theme-input--border-color--warning--active) !important}textarea.ix-warning:not(.disabled):not(:disabled):not([disabled]):hover,input.ix-warning:not(.disabled):not(:disabled):not([disabled]):hover{border-color:var(--theme-input--border-color--warning--active) !important}textarea.ix-warning:not(.disabled):not(:disabled):not([disabled]):active,input.ix-warning:not(.disabled):not(:disabled):not([disabled]):active{border-color:var(--theme-input--border-color--warning--active) !important}textarea[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]),input[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]){background-color:var(--theme-input--background--invalid);border-color:var(--theme-input--border-color--invalid)}textarea[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]),input[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]){border-color:var(--theme-input--border-color--invalid) !important}textarea[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):hover,input[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):hover{border-color:var(--theme-input--border-color--invalid--hover) !important}textarea[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):active,input[class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled]):active{border-color:var(--theme-input--border-color--invalid--active) !important}:host{display:inline-block;position:relative;width:auto}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .input-wrapper{display:flex;position:relative;align-items:center;width:100%;height:100%}:host input{width:100%;height:100%}:host .prefix-container,:host .postfix-container{display:flex;position:absolute;align-items:center;justify-content:center;z-index:1}:host .prefix-container{left:0.5rem}:host .postfix-container{right:0.5rem}:host(.disabled){pointer-events:none}:host(.disabled) input,:host(.disabled) textarea{pointer-events:none}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) input{border-color:var(--theme-input--border-color--info)}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) input:hover{border-color:var(--theme-input--border-color--info--hover) !important}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) input:active{border-color:var(--theme-input--border-color--info--active) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) input{border-color:var(--theme-input--border-color--warning--active) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) input:hover{border-color:var(--theme-input--border-color--warning--active) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) input:active{border-color:var(--theme-input--border-color--warning--active) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) input,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) input{background-color:var(--theme-input--background--invalid);border-color:var(--theme-input--border-color--invalid)}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) input,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) input{border-color:var(--theme-input--border-color--invalid) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) input:hover,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) input:hover{border-color:var(--theme-input--border-color--invalid--hover) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) input:active,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) input:active{border-color:var(--theme-input--border-color--invalid--active) !important}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) textarea{border-color:var(--theme-input--border-color--info)}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) textarea:hover{border-color:var(--theme-input--border-color--info--hover) !important}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) textarea:active{border-color:var(--theme-input--border-color--info--active) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) textarea{border-color:var(--theme-input--border-color--warning--active) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) textarea:hover{border-color:var(--theme-input--border-color--warning--active) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) textarea:active{border-color:var(--theme-input--border-color--warning--active) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) textarea,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) textarea{background-color:var(--theme-input--background--invalid);border-color:var(--theme-input--border-color--invalid)}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) textarea,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) textarea{border-color:var(--theme-input--border-color--invalid) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) textarea:hover,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) textarea:hover{border-color:var(--theme-input--border-color--invalid--hover) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) textarea:active,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) textarea:active{border-color:var(--theme-input--border-color--invalid--active) !important}";
|
|
11
|
-
const IxTextareaFieldStyle0 = textareaFieldCss;
|
|
12
|
-
|
|
13
|
-
/*
|
|
14
|
-
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
15
|
-
*
|
|
16
|
-
* SPDX-License-Identifier: MIT
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
24
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
25
|
-
else
|
|
26
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
27
|
-
if (d = decorators[i])
|
|
28
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
29
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
-
};
|
|
31
|
-
const TextareaField = /*@__PURE__*/ proxyCustomElement(class TextareaField extends HTMLElement {
|
|
32
|
-
constructor() {
|
|
33
|
-
super();
|
|
34
|
-
this.__registerHost();
|
|
35
|
-
this.__attachShadow();
|
|
36
|
-
this.valueChange = createEvent(this, "valueChange", 7);
|
|
37
|
-
this.validityStateChange = createEvent(this, "validityStateChange", 7);
|
|
38
|
-
this.ixBlur = createEvent(this, "ixBlur", 7);
|
|
39
|
-
this.formInternals = this.attachInternals();
|
|
40
|
-
this.textAreaRef = makeRef();
|
|
41
|
-
this.name = undefined;
|
|
42
|
-
this.placeholder = undefined;
|
|
43
|
-
this.value = '';
|
|
44
|
-
this.required = false;
|
|
45
|
-
this.disabled = false;
|
|
46
|
-
this.readonly = false;
|
|
47
|
-
this.helperText = undefined;
|
|
48
|
-
this.infoText = undefined;
|
|
49
|
-
this.showTextAsTooltip = undefined;
|
|
50
|
-
this.validText = undefined;
|
|
51
|
-
this.warningText = undefined;
|
|
52
|
-
this.label = undefined;
|
|
53
|
-
this.invalidText = undefined;
|
|
54
|
-
this.textareaHeight = '300px';
|
|
55
|
-
this.textareaWidth = '100%';
|
|
56
|
-
this.textareaRows = '5';
|
|
57
|
-
this.textareaCols = '20';
|
|
58
|
-
this.resizeBehavior = 'rowsCols';
|
|
59
|
-
this.maxLength = undefined;
|
|
60
|
-
this.minLength = undefined;
|
|
61
|
-
this.isInvalid = false;
|
|
62
|
-
this.isValid = false;
|
|
63
|
-
this.isInfo = false;
|
|
64
|
-
this.isWarning = false;
|
|
65
|
-
this.isInvalidByRequired = false;
|
|
66
|
-
}
|
|
67
|
-
updateClassMappings(result) {
|
|
68
|
-
mapValidationResult(this, result);
|
|
69
|
-
}
|
|
70
|
-
componentWillLoad() {
|
|
71
|
-
this.updateFormInternalValue(this.value);
|
|
72
|
-
}
|
|
73
|
-
updateFormInternalValue(value) {
|
|
74
|
-
this.formInternals.setFormValue(value);
|
|
75
|
-
this.value = value;
|
|
76
|
-
}
|
|
77
|
-
/** @internal */
|
|
78
|
-
async getAssociatedFormElement() {
|
|
79
|
-
return this.formInternals.form;
|
|
80
|
-
}
|
|
81
|
-
/** @internal */
|
|
82
|
-
hasValidValue() {
|
|
83
|
-
return Promise.resolve(!!this.value);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Get the native textarea element.
|
|
87
|
-
*/
|
|
88
|
-
getNativeInputElement() {
|
|
89
|
-
return this.textAreaRef.waitForCurrent();
|
|
90
|
-
}
|
|
91
|
-
getSizeValue(behavior, value) {
|
|
92
|
-
return this.resizeBehavior === behavior ? value : undefined;
|
|
93
|
-
}
|
|
94
|
-
render() {
|
|
95
|
-
return (h(Host, { key: '456ca522d8ab0a0a79f0adea7145705865d86a09', class: {
|
|
96
|
-
disabled: this.disabled,
|
|
97
|
-
readonly: this.readonly,
|
|
98
|
-
} }, h("ix-field-wrapper", { key: '2032747da520d9d61539f4b984ded07cfeffde69', required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.textAreaRef }, h("slot", { key: '5592740e78354735847f8b21156ceeec315b16f9', name: "label", slot: "label" }), this.maxLength && (h("ix-typography", { key: '11af96c2f18a16b948fbb90f6ea500e8c11796eb', slot: "bottom-right", color: "weak" }, this.value.length, "/", this.maxLength)), h("div", { key: '0604f5d438affa47574e819705d7bbfe52e8487f', class: {
|
|
99
|
-
'input-wrapper': true,
|
|
100
|
-
} }, h(TextareaElement, { key: '2c9f32df3c5ed09c1ecc15dad1b7367e3569da4c', minLength: this.minLength, maxLength: this.maxLength, textareaHeight: this.getSizeValue('dimensions', this.textareaHeight), textareaWidth: this.getSizeValue('dimensions', this.textareaWidth), textareaCols: this.getSizeValue('rowsCols', this.textareaCols), textareaRows: this.getSizeValue('rowsCols', this.textareaRows), readonly: this.readonly, disabled: this.disabled, isInvalid: this.isInvalid, required: this.required, value: this.value, placeholder: this.placeholder, textAreaRef: this.textAreaRef, valueChange: (value) => this.valueChange.emit(value), updateFormInternalValue: (value) => this.updateFormInternalValue(value), onBlur: () => onInputBlur(this, this.textAreaRef.current) })))));
|
|
101
|
-
}
|
|
102
|
-
static get formAssociated() { return true; }
|
|
103
|
-
get hostElement() { return this; }
|
|
104
|
-
static get style() { return IxTextareaFieldStyle0; }
|
|
105
|
-
}, [65, "ix-textarea-field", {
|
|
106
|
-
"name": [513],
|
|
107
|
-
"placeholder": [513],
|
|
108
|
-
"value": [1537],
|
|
109
|
-
"required": [516],
|
|
110
|
-
"disabled": [4],
|
|
111
|
-
"readonly": [4],
|
|
112
|
-
"helperText": [1, "helper-text"],
|
|
113
|
-
"infoText": [1, "info-text"],
|
|
114
|
-
"showTextAsTooltip": [4, "show-text-as-tooltip"],
|
|
115
|
-
"validText": [1, "valid-text"],
|
|
116
|
-
"warningText": [1, "warning-text"],
|
|
117
|
-
"label": [513],
|
|
118
|
-
"invalidText": [1, "invalid-text"],
|
|
119
|
-
"textareaHeight": [1, "textarea-height"],
|
|
120
|
-
"textareaWidth": [1, "textarea-width"],
|
|
121
|
-
"textareaRows": [1, "textarea-rows"],
|
|
122
|
-
"textareaCols": [513, "textarea-cols"],
|
|
123
|
-
"resizeBehavior": [1, "resize-behavior"],
|
|
124
|
-
"maxLength": [2, "max-length"],
|
|
125
|
-
"minLength": [2, "min-length"],
|
|
126
|
-
"isInvalid": [32],
|
|
127
|
-
"isValid": [32],
|
|
128
|
-
"isInfo": [32],
|
|
129
|
-
"isWarning": [32],
|
|
130
|
-
"isInvalidByRequired": [32],
|
|
131
|
-
"getAssociatedFormElement": [64],
|
|
132
|
-
"hasValidValue": [64],
|
|
133
|
-
"getNativeInputElement": [64]
|
|
134
|
-
}]);
|
|
135
|
-
__decorate([
|
|
136
|
-
HookValidationLifecycle()
|
|
137
|
-
], TextareaField.prototype, "updateClassMappings", null);
|
|
138
|
-
function defineCustomElement$1() {
|
|
139
|
-
if (typeof customElements === "undefined") {
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
const components = ["ix-textarea-field", "ix-field-label", "ix-field-wrapper", "ix-tooltip", "ix-typography"];
|
|
143
|
-
components.forEach(tagName => { switch (tagName) {
|
|
144
|
-
case "ix-textarea-field":
|
|
145
|
-
if (!customElements.get(tagName)) {
|
|
146
|
-
customElements.define(tagName, TextareaField);
|
|
147
|
-
}
|
|
148
|
-
break;
|
|
149
|
-
case "ix-field-label":
|
|
150
|
-
if (!customElements.get(tagName)) {
|
|
151
|
-
defineCustomElement$5();
|
|
152
|
-
}
|
|
153
|
-
break;
|
|
154
|
-
case "ix-field-wrapper":
|
|
155
|
-
if (!customElements.get(tagName)) {
|
|
156
|
-
defineCustomElement$4();
|
|
157
|
-
}
|
|
158
|
-
break;
|
|
159
|
-
case "ix-tooltip":
|
|
160
|
-
if (!customElements.get(tagName)) {
|
|
161
|
-
defineCustomElement$3();
|
|
162
|
-
}
|
|
163
|
-
break;
|
|
164
|
-
case "ix-typography":
|
|
165
|
-
if (!customElements.get(tagName)) {
|
|
166
|
-
defineCustomElement$2();
|
|
167
|
-
}
|
|
168
|
-
break;
|
|
169
|
-
} });
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
const IxTextareaField = TextareaField;
|
|
173
|
-
const defineCustomElement = defineCustomElement$1;
|
|
174
|
-
|
|
175
|
-
export { IxTextareaField, defineCustomElement };
|
|
176
|
-
|
|
177
|
-
//# sourceMappingURL=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Q,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,WAAW,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EACpD,uBAAuB,EAAE,CAAC,KAAK,KAC7B,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAErC,MAAM,EAAE,MAAM,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,GACxC,CACf,CACW,CACd,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtGD;IADC,uBAAuB,EAAE;wDAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/text-field/textarea-field.scss?tag=ix-textarea-field&encapsulation=shadow","src/components/text-field/textarea-field.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import \"./text-field.mixins.scss\";\n\n@include input-field;\n\n@include host-valid {\n}\n\n@include host-info {\n textarea {\n border-color: var(--theme-input--border-color--info);\n }\n\n textarea:hover {\n border-color: var(--theme-input--border-color--info--hover) !important;\n }\n\n textarea:active {\n border-color: var(--theme-input--border-color--info--active) !important;\n }\n}\n\n@include host-warning {\n textarea {\n border-color: var(--theme-input--border-color--warning--active) !important;\n }\n\n textarea:hover {\n border-color: var(--theme-input--border-color--warning--active) !important;\n }\n\n textarea:active {\n border-color: var(--theme-input--border-color--warning--active) !important;\n }\n}\n\n@include host-invalid {\n textarea {\n background-color: var(--theme-input--background--invalid);\n border-color: var(--theme-input--border-color--invalid);\n }\n\n textarea {\n border-color: var(--theme-input--border-color--invalid) !important;\n }\n\n textarea:hover {\n border-color: var(--theme-input--border-color--invalid--hover) !important;\n }\n\n textarea:active {\n border-color: var(--theme-input--border-color--invalid--active) !important;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Method,\n Prop,\n State,\n h,\n} from '@stencil/core';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/field';\nimport { makeRef } from '../utils/make-ref';\nimport { TextareaElement } from './input.fc';\nimport { mapValidationResult, onInputBlur } from './text-field.util';\n\n/**\n * @since 2.4.0\n * @form-ready 2.4.0\n */\n@Component({\n tag: 'ix-textarea-field',\n styleUrl: 'textarea-field.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class TextareaField implements IxInputFieldComponent<string> {\n @Element() hostElement!: HTMLIxTextareaFieldElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * The name of the textarea field.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The placeholder text for the textarea field.\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * The value of the textarea field.\n */\n @Prop({ reflect: true, mutable: true }) value: string = '';\n\n /**\n * Determines if the textarea field is required.\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Determines if the textarea field is disabled.\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Determines if the textarea field is readonly.\n */\n @Prop() readonly: boolean = false;\n\n /**\n * The helper text for the textarea field.\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the textarea field.\n */\n @Prop() infoText?: string;\n\n /**\n * Determines if the text should be displayed as a tooltip.\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the textarea field.\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the textarea field.\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the textarea field.\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the textarea field.\n */\n @Prop() invalidText?: string;\n\n /**\n * The height of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop() textareaHeight: string = '300px';\n\n /**\n * The height of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop() textareaWidth: string = '100%';\n\n /**\n * The number of rows of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop() textareaRows: string = '5';\n\n /**\n * The height of the textarea field.\n * Helpful if you want to set an initial height for the textarea.\n */\n @Prop({ reflect: true }) textareaCols: string = '20';\n\n /**\n * Determines the resize behavior of the textarea field.\n * 'dimensions' means the textarea will be resized based on textareaHeight and textareaWidth.\n * 'rowsCols' means the textarea will be resized based on textareaRows and textareaCols.\n */\n @Prop() resizeBehavior: 'dimensions' | 'rowsCols' = 'rowsCols';\n\n /**\n * The maximum length of the textarea field.\n */\n @Prop() maxLength?: number;\n\n /**\n * The minimum length of the textarea field.\n */\n @Prop() minLength?: number;\n\n /**\n * Event emitted when the value of the textarea field changes.\n */\n @Event() valueChange!: EventEmitter<string>;\n\n /**\n * Event emitted when the validity state of the textarea field changes.\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the textarea field loses focus.\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n private textAreaRef = makeRef<HTMLTextAreaElement>();\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value);\n }\n\n updateFormInternalValue(value: string) {\n this.formInternals.setFormValue(value);\n this.value = value;\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /**\n * Get the native textarea element.\n */\n @Method()\n getNativeInputElement(): Promise<HTMLTextAreaElement> {\n return this.textAreaRef.waitForCurrent();\n }\n\n getSizeValue(behavior: string, value: string) {\n return this.resizeBehavior === behavior ? value : undefined;\n }\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.textAreaRef}\n >\n <slot name=\"label\" slot=\"label\"></slot>\n\n {this.maxLength && (\n <ix-typography slot=\"bottom-right\" color=\"weak\">\n {this.value.length}/{this.maxLength}\n </ix-typography>\n )}\n <div\n class={{\n 'input-wrapper': true,\n }}\n >\n <TextareaElement\n minLength={this.minLength}\n maxLength={this.maxLength}\n textareaHeight={this.getSizeValue(\n 'dimensions',\n this.textareaHeight\n )}\n textareaWidth={this.getSizeValue(\n 'dimensions',\n this.textareaWidth\n )}\n textareaCols={this.getSizeValue('rowsCols', this.textareaCols)}\n textareaRows={this.getSizeValue('rowsCols', this.textareaRows)}\n readonly={this.readonly}\n disabled={this.disabled}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.value}\n placeholder={this.placeholder}\n textAreaRef={this.textAreaRef}\n valueChange={(value) => this.valueChange.emit(value)}\n updateFormInternalValue={(value) =>\n this.updateFormInternalValue(value)\n }\n onBlur={() => onInputBlur(this, this.textAreaRef.current)}\n ></TextareaElement>\n </div>\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as a11yBoolean } from './a11y.js';
|
|
3
|
-
import { s as shouldSuppressInternalValidation } from './validation.js';
|
|
4
|
-
import { a as anime } from './anime.es.js';
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
8
|
-
*
|
|
9
|
-
* SPDX-License-Identifier: MIT
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
function TextareaElement(props) {
|
|
15
|
-
return (h("textarea", Object.assign({ readOnly: props.readonly, disabled: props.disabled, maxLength: props.maxLength, minLength: props.minLength, cols: Number(props.textareaCols), rows: Number(props.textareaRows), ref: props.textAreaRef, class: {
|
|
16
|
-
'is-invalid': props.isInvalid,
|
|
17
|
-
}, required: props.required, value: props.value, placeholder: props.placeholder, onChange: (changeEvent) => {
|
|
18
|
-
const target = changeEvent.target;
|
|
19
|
-
props.valueChange(target.value);
|
|
20
|
-
}, onInput: (inputEvent) => {
|
|
21
|
-
const target = inputEvent.target;
|
|
22
|
-
props.updateFormInternalValue(target.value);
|
|
23
|
-
}, onBlur: () => props.onBlur(), style: { height: props.textareaHeight, width: props.textareaWidth } }, props.ariaAttributes)));
|
|
24
|
-
}
|
|
25
|
-
function InputElement(props) {
|
|
26
|
-
return (h("input", Object.assign({ id: props.id, autoComplete: "off", readOnly: props.readonly, disabled: props.disabled, min: props.min, max: props.max, maxLength: props.maxLength ? Number(props.maxLength) : undefined, minLength: props.maxLength ? Number(props.minLength) : undefined, ref: props.inputRef, pattern: props.pattern, type: props.type, class: {
|
|
27
|
-
'is-invalid': props.isInvalid,
|
|
28
|
-
}, required: props.required, value: props.value, placeholder: props.placeholder, onKeyPress: (event) => props.onKeyPress(event), onChange: (changeEvent) => {
|
|
29
|
-
const target = changeEvent.target;
|
|
30
|
-
props.valueChange(target.value);
|
|
31
|
-
}, onInput: (inputEvent) => {
|
|
32
|
-
const target = inputEvent.target;
|
|
33
|
-
props.updateFormInternalValue(target.value);
|
|
34
|
-
}, onBlur: () => props.onBlur() }, props.ariaAttributes)));
|
|
35
|
-
}
|
|
36
|
-
function PostfixSlot(props, children) {
|
|
37
|
-
return (h("div", { class: "postfix-container", ref: props.postfixRef },
|
|
38
|
-
h("slot", { name: "postfix", onSlotchange: props.onSlotChange }),
|
|
39
|
-
children));
|
|
40
|
-
}
|
|
41
|
-
function PrefixSlot(props) {
|
|
42
|
-
return (h("div", { class: "prefix-container", ref: props.prefixRef },
|
|
43
|
-
h("slot", { name: "prefix", onSlotchange: props.onSlotChange })));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/*
|
|
47
|
-
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
48
|
-
*
|
|
49
|
-
* SPDX-License-Identifier: MIT
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the MIT license found in the
|
|
52
|
-
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/
|
|
54
|
-
function shakeInput(input) {
|
|
55
|
-
const xMax = 5;
|
|
56
|
-
anime({
|
|
57
|
-
targets: input,
|
|
58
|
-
duration: 200,
|
|
59
|
-
easing: 'easeInOutSine',
|
|
60
|
-
loop: 2,
|
|
61
|
-
translateX: [
|
|
62
|
-
{
|
|
63
|
-
value: xMax * -1,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
value: xMax,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
value: xMax / -2,
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
value: xMax / 2,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
value: 0,
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/*
|
|
82
|
-
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
83
|
-
*
|
|
84
|
-
* SPDX-License-Identifier: MIT
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the MIT license found in the
|
|
87
|
-
* LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/
|
|
89
|
-
function mapValidationResult(ref, result) {
|
|
90
|
-
ref.isInvalid = result.isInvalid || result.isInvalidByRequired;
|
|
91
|
-
ref.isValid = result.isValid;
|
|
92
|
-
ref.isInfo = result.isInfo;
|
|
93
|
-
ref.isWarning = result.isWarning;
|
|
94
|
-
}
|
|
95
|
-
function checkAllowedKeys(comp, event) {
|
|
96
|
-
if (comp.allowedCharactersPattern) {
|
|
97
|
-
const regex = new RegExp(comp.allowedCharactersPattern);
|
|
98
|
-
if (!regex.test(event.key)) {
|
|
99
|
-
event.preventDefault();
|
|
100
|
-
shakeInput(comp.inputRef.current);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
async function checkInternalValidity(comp, input) {
|
|
105
|
-
const validityState = input.validity;
|
|
106
|
-
const eventResult = comp.validityStateChange.emit(validityState);
|
|
107
|
-
if (eventResult.defaultPrevented) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (!comp.value) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const skipValidation = await shouldSuppressInternalValidation(comp);
|
|
114
|
-
if (skipValidation) {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
const { valid } = validityState;
|
|
118
|
-
comp.hostElement.classList.toggle('ix-invalid', !valid);
|
|
119
|
-
}
|
|
120
|
-
function onInputBlur(comp, input) {
|
|
121
|
-
comp.ixBlur.emit();
|
|
122
|
-
checkInternalValidity(comp, input);
|
|
123
|
-
}
|
|
124
|
-
function applyPostfixPadding(inputElement, width, options) {
|
|
125
|
-
var _a;
|
|
126
|
-
if (!inputElement) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
if (width === 0) {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
const padding = `${(width + 12) / 16}rem`;
|
|
133
|
-
if (options.postfix) {
|
|
134
|
-
inputElement.style.paddingRight = `calc(${padding} + ${(_a = options.additionalPaddingRight) !== null && _a !== void 0 ? _a : '0rem'})`;
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
inputElement.style.paddingLeft = padding;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function adjustPaddingForPrefixAndPostfix(prefixElement, postfixElement, inputElement) {
|
|
141
|
-
const prefixBoundingRect = prefixElement.getBoundingClientRect();
|
|
142
|
-
const postfixBoundingRect = postfixElement.getBoundingClientRect();
|
|
143
|
-
if (prefixBoundingRect) {
|
|
144
|
-
applyPostfixPadding(inputElement, prefixBoundingRect.width, {
|
|
145
|
-
postfix: false,
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
if (postfixBoundingRect) {
|
|
149
|
-
applyPostfixPadding(inputElement, postfixBoundingRect.width, {
|
|
150
|
-
postfix: true,
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function getAriaAttributesForInput(component) {
|
|
155
|
-
const inputAria = {
|
|
156
|
-
'aria-invalid': `${a11yBoolean(component.isInvalid)}`,
|
|
157
|
-
'aria-required': `${a11yBoolean(component.required)}`,
|
|
158
|
-
};
|
|
159
|
-
if (component.isInvalid && component.invalidText) {
|
|
160
|
-
inputAria['aria-errormessage'] = component.invalidText;
|
|
161
|
-
}
|
|
162
|
-
return inputAria;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export { InputElement as I, PrefixSlot as P, TextareaElement as T, adjustPaddingForPrefixAndPostfix as a, PostfixSlot as b, applyPostfixPadding as c, checkAllowedKeys as d, checkInternalValidity as e, getAriaAttributesForInput as g, mapValidationResult as m, onInputBlur as o };
|
|
166
|
-
|
|
167
|
-
//# sourceMappingURL=text-field.util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"text-field.util.js","mappings":";;;;;AAAA;;;;;;;;SAYgB,eAAe,CAAC,KAkB/B;IAC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IACjE,MAAM,mBAAmB,GAAG,cAAc,CAAC,qBAAqB,EAAE,CAAC;IAEnE,IAAI,kBAAkB,EAAE;QACtB,mBAAmB,CAAC,YAAY,EAAE,kBAAkB,CAAC,KAAK,EAAE;YAC1D,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;KACJ;IAED,IAAI,mBAAmB,EAAE;QACvB,mBAAmB,CAAC,YAAY,EAAE,mBAAmB,CAAC,KAAK,EAAE;YAC3D,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;KACJ;AACH,CAAC;SAEe,yBAAyB,CACvC,SAAgC;IAEhC,MAAM,SAAS,GAAmB;QAChC,cAAc,EAAE,GAAG,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;QACrD,eAAe,EAAE,GAAG,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;KACtD,CAAC;IAEF,IAAI,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,WAAW,EAAE;QAChD,SAAS,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC;KACxD;IACD,OAAO,SAAS,CAAC;AACnB;;;;","names":[],"sources":["src/components/text-field/input.fc.tsx","src/components/text-field/text-field.animation.ts","src/components/text-field/text-field.util.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { h } from '@stencil/core';\nimport { MakeRef } from '../utils/make-ref';\nimport { A11yAttributes } from '../utils/a11y';\n\nexport function TextareaElement(props: {\n textareaHeight?: string;\n textareaWidth?: string;\n textareaRows?: string;\n textareaCols?: string;\n disabled: boolean;\n readonly: boolean;\n maxLength?: number;\n minLength?: number;\n isInvalid: boolean;\n required: boolean;\n value: string;\n placeholder?: string;\n textAreaRef: (el: HTMLTextAreaElement) => void;\n valueChange: (value: string) => void;\n updateFormInternalValue: (value: string) => void;\n onBlur: () => void;\n ariaAttributes?: A11yAttributes;\n}) {\n return (\n <textarea\n readOnly={props.readonly}\n disabled={props.disabled}\n maxLength={props.maxLength}\n minLength={props.minLength}\n cols={Number(props.textareaCols)}\n rows={Number(props.textareaRows)}\n ref={props.textAreaRef}\n class={{\n 'is-invalid': props.isInvalid,\n }}\n required={props.required}\n value={props.value}\n placeholder={props.placeholder}\n onChange={(changeEvent) => {\n const target = changeEvent.target as HTMLInputElement;\n props.valueChange(target.value);\n }}\n onInput={(inputEvent) => {\n const target = inputEvent.target as HTMLInputElement;\n props.updateFormInternalValue(target.value);\n }}\n onBlur={() => props.onBlur()}\n style={{ height: props.textareaHeight, width: props.textareaWidth }}\n {...props.ariaAttributes}\n ></textarea>\n );\n}\n\nexport function InputElement(props: {\n id: string;\n disabled: boolean;\n readonly: boolean;\n maxLength?: string | number;\n minLength?: string | number;\n max?: string | number;\n min?: string | number;\n pattern?: string;\n type: string;\n isInvalid: boolean;\n required: boolean;\n value: string | number;\n placeholder?: string;\n inputRef: (el: HTMLInputElement) => void;\n onKeyPress: (event: KeyboardEvent) => void;\n valueChange: (value: string) => void;\n updateFormInternalValue: (value: string) => void;\n onBlur: () => void;\n ariaAttributes?: A11yAttributes;\n}) {\n return (\n <input\n id={props.id}\n autoComplete=\"off\"\n readOnly={props.readonly}\n disabled={props.disabled}\n min={props.min}\n max={props.max}\n maxLength={props.maxLength ? Number(props.maxLength) : undefined}\n minLength={props.maxLength ? Number(props.minLength) : undefined}\n ref={props.inputRef}\n pattern={props.pattern}\n type={props.type}\n class={{\n 'is-invalid': props.isInvalid,\n }}\n required={props.required}\n value={props.value}\n placeholder={props.placeholder}\n onKeyPress={(event) => props.onKeyPress(event)}\n onChange={(changeEvent) => {\n const target = changeEvent.target as HTMLInputElement;\n props.valueChange(target.value);\n }}\n onInput={(inputEvent) => {\n const target = inputEvent.target as HTMLInputElement;\n props.updateFormInternalValue(target.value);\n }}\n onBlur={() => props.onBlur()}\n {...props.ariaAttributes}\n ></input>\n );\n}\n\nexport function PostfixSlot(\n props: {\n postfixRef: MakeRef<HTMLDivElement>;\n onSlotChange?: (e: Event) => void;\n },\n children\n) {\n return (\n <div class=\"postfix-container\" ref={props.postfixRef}>\n <slot name=\"postfix\" onSlotchange={props.onSlotChange}></slot>\n {children}\n </div>\n );\n}\n\nexport function PrefixSlot(props: {\n prefixRef: MakeRef<HTMLDivElement>;\n onSlotChange?: (e: Event) => void;\n}) {\n return (\n <div class=\"prefix-container\" ref={props.prefixRef}>\n <slot name=\"prefix\" onSlotchange={props.onSlotChange}></slot>\n </div>\n );\n}\n","/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport anime from 'animejs';\n\nexport function shakeInput(input: HTMLInputElement) {\n const xMax = 5;\n anime({\n targets: input,\n duration: 200,\n easing: 'easeInOutSine',\n loop: 2,\n translateX: [\n {\n value: xMax * -1,\n },\n {\n value: xMax,\n },\n {\n value: xMax / -2,\n },\n {\n value: xMax / 2,\n },\n {\n value: 0,\n },\n ],\n });\n}\n","/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { A11yAttributes, a11yBoolean } from '../utils/a11y';\nimport {\n IxFormComponent,\n IxInputFieldComponent,\n ValidationResults,\n shouldSuppressInternalValidation,\n} from '../utils/field';\nimport { generateUUID } from '../utils/uuid';\nimport { shakeInput } from './text-field.animation';\n\nexport function createIdIfNotExists(\n element: IxFormComponent,\n idPrefix: string = 'field'\n) {\n return element.hasAttribute('id')\n ? element.getAttribute('id')\n : `${idPrefix}-${generateUUID()}`;\n}\n\nexport function mapValidationResult(\n ref: IxInputFieldComponent<unknown>,\n result: ValidationResults\n) {\n ref.isInvalid = result.isInvalid || result.isInvalidByRequired;\n ref.isValid = result.isValid;\n ref.isInfo = result.isInfo;\n ref.isWarning = result.isWarning;\n}\n\nexport function checkAllowedKeys(\n comp: IxInputFieldComponent<unknown>,\n event: KeyboardEvent\n) {\n if (comp.allowedCharactersPattern) {\n const regex = new RegExp(comp.allowedCharactersPattern);\n if (!regex.test(event.key)) {\n event.preventDefault();\n shakeInput(comp.inputRef.current);\n }\n }\n}\n\nexport async function checkInternalValidity(\n comp: IxFormComponent<unknown>,\n input: HTMLInputElement | HTMLTextAreaElement\n) {\n const validityState = input.validity;\n\n const eventResult = comp.validityStateChange.emit(validityState);\n\n if (eventResult.defaultPrevented) {\n return;\n }\n\n if (!comp.value) {\n return;\n }\n\n const skipValidation = await shouldSuppressInternalValidation(comp);\n if (skipValidation) {\n return;\n }\n\n const { valid } = validityState;\n comp.hostElement.classList.toggle('ix-invalid', !valid);\n}\n\nexport function onInputBlur(\n comp: IxInputFieldComponent<unknown>,\n input: HTMLInputElement | HTMLTextAreaElement\n) {\n comp.ixBlur.emit();\n checkInternalValidity(comp, input);\n}\n\nexport function applyPostfixPadding(\n inputElement: HTMLElement,\n width: number,\n options: {\n postfix: boolean;\n additionalPaddingRight?: string;\n }\n) {\n if (!inputElement) {\n return;\n }\n\n if (width === 0) {\n return;\n }\n\n const padding = `${(width + 12) / 16}rem`;\n\n if (options.postfix) {\n inputElement.style.paddingRight = `calc(${padding} + ${\n options.additionalPaddingRight ?? '0rem'\n })`;\n } else {\n inputElement.style.paddingLeft = padding;\n }\n}\n\nexport function adjustPaddingForPrefixAndPostfix(\n prefixElement: HTMLElement,\n postfixElement: HTMLElement,\n inputElement: HTMLElement\n) {\n const prefixBoundingRect = prefixElement.getBoundingClientRect();\n const postfixBoundingRect = postfixElement.getBoundingClientRect();\n\n if (prefixBoundingRect) {\n applyPostfixPadding(inputElement, prefixBoundingRect.width, {\n postfix: false,\n });\n }\n\n if (postfixBoundingRect) {\n applyPostfixPadding(inputElement, postfixBoundingRect.width, {\n postfix: true,\n });\n }\n}\n\nexport function getAriaAttributesForInput(\n component: IxInputFieldComponent\n): A11yAttributes {\n const inputAria: A11yAttributes = {\n 'aria-invalid': `${a11yBoolean(component.isInvalid)}`,\n 'aria-required': `${a11yBoolean(component.required)}`,\n };\n\n if (component.isInvalid && component.invalidText) {\n inputAria['aria-errormessage'] = component.invalidText;\n }\n return inputAria;\n}\n"],"version":3}
|
package/components/validation.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { getElement } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
5
|
-
*
|
|
6
|
-
* SPDX-License-Identifier: MIT
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
async function shouldSuppressInternalValidation(host) {
|
|
12
|
-
if (host.getAssociatedFormElement &&
|
|
13
|
-
typeof host.getAssociatedFormElement === 'function') {
|
|
14
|
-
const form = await host.getAssociatedFormElement();
|
|
15
|
-
if (!form) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
return form.noValidate;
|
|
19
|
-
}
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
function createClassMutationObserver(element, callback, options) {
|
|
23
|
-
const observer = new MutationObserver(callback);
|
|
24
|
-
observer.observe(element, {
|
|
25
|
-
subtree: options === null || options === void 0 ? void 0 : options.includeChildren,
|
|
26
|
-
childList: options === null || options === void 0 ? void 0 : options.includeChildren,
|
|
27
|
-
attributes: true,
|
|
28
|
-
attributeFilter: ['class'],
|
|
29
|
-
});
|
|
30
|
-
return {
|
|
31
|
-
destroy() {
|
|
32
|
-
observer.disconnect();
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function containsClass(hostElement, className, includeChildren) {
|
|
37
|
-
return (hostElement.classList.contains(`${className}`) ||
|
|
38
|
-
(includeChildren ? !!hostElement.querySelector(`.${className}`) : false));
|
|
39
|
-
}
|
|
40
|
-
function checkFieldClasses(hostElement, includeChildren = false) {
|
|
41
|
-
return {
|
|
42
|
-
isInvalid: containsClass(hostElement, 'ix-invalid', includeChildren),
|
|
43
|
-
isInvalidByRequired: containsClass(hostElement, 'ix-invalid--required', includeChildren),
|
|
44
|
-
isValid: containsClass(hostElement, 'ix-valid', includeChildren),
|
|
45
|
-
isInfo: containsClass(hostElement, 'ix-info', includeChildren),
|
|
46
|
-
isWarning: containsClass(hostElement, 'ix-warning', includeChildren),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function HookValidationLifecycle(options) {
|
|
50
|
-
return (proto, methodName) => {
|
|
51
|
-
let checkIfRequiredFunction;
|
|
52
|
-
let classMutationObserver;
|
|
53
|
-
const { componentWillLoad, disconnectedCallback, connectedCallback } = proto;
|
|
54
|
-
proto.connectedCallback = function () {
|
|
55
|
-
const host = getElement(this);
|
|
56
|
-
checkIfRequiredFunction = async () => {
|
|
57
|
-
const skipValidation = await shouldSuppressInternalValidation(host);
|
|
58
|
-
if (skipValidation) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (host.hasValidValue && typeof host.hasValidValue === 'function') {
|
|
62
|
-
const hasValue = await host.hasValidValue();
|
|
63
|
-
if (host.required) {
|
|
64
|
-
host.classList.toggle('ix-invalid--required', !hasValue);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
host.classList.remove('ix-invalid--required');
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
if (host.getValidityState &&
|
|
71
|
-
typeof host.getValidityState === 'function') {
|
|
72
|
-
const validityState = await host.getValidityState();
|
|
73
|
-
Object.keys(validityState)
|
|
74
|
-
// Use only the keys that are relevant for the validation state
|
|
75
|
-
// patternMismatch used for `ix-date-field`
|
|
76
|
-
.filter((key) => ['patternMismatch'].includes(key))
|
|
77
|
-
.forEach((key) => {
|
|
78
|
-
host.classList.toggle(`ix-invalid--${key}`, validityState[key]);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
host.addEventListener('valueChange', checkIfRequiredFunction);
|
|
83
|
-
setTimeout(checkIfRequiredFunction);
|
|
84
|
-
return connectedCallback && connectedCallback.call(this);
|
|
85
|
-
};
|
|
86
|
-
proto.componentWillLoad = function () {
|
|
87
|
-
const host = getElement(this);
|
|
88
|
-
classMutationObserver = createClassMutationObserver(host, () => {
|
|
89
|
-
const result = checkFieldClasses(host, options === null || options === void 0 ? void 0 : options.includeChildren);
|
|
90
|
-
proto[methodName].call(this, result);
|
|
91
|
-
}, options);
|
|
92
|
-
const result = checkFieldClasses(host, options === null || options === void 0 ? void 0 : options.includeChildren);
|
|
93
|
-
proto[methodName].call(this, result);
|
|
94
|
-
return componentWillLoad && componentWillLoad.call(this);
|
|
95
|
-
};
|
|
96
|
-
proto.disconnectedCallback = function () {
|
|
97
|
-
const host = getElement(this);
|
|
98
|
-
if (host && classMutationObserver) {
|
|
99
|
-
classMutationObserver.destroy();
|
|
100
|
-
classMutationObserver = null;
|
|
101
|
-
}
|
|
102
|
-
if (host && checkIfRequiredFunction) {
|
|
103
|
-
host.removeEventListener('valueChange', checkIfRequiredFunction);
|
|
104
|
-
}
|
|
105
|
-
return disconnectedCallback && disconnectedCallback.call(this);
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export { HookValidationLifecycle as H, checkFieldClasses as a, createClassMutationObserver as c, shouldSuppressInternalValidation as s };
|
|
111
|
-
|
|
112
|
-
//# sourceMappingURL=validation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"validation.js","mappings":";;AAAA;;;;;;;;AAgBO,eAAe,gCAAgC,CACpD,IAA8B;IAE9B,IACE,IAAI,CAAC,wBAAwB;QAC7B,OAAO,IAAI,CAAC,wBAAwB,KAAK,UAAU,EACnD;QACA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAEnD,IAA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names":[],"sources":["src/components/utils/field/validation.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { getElement } from '@stencil/core';\nimport { HTMLIxFormComponentElement, IxFormComponent } from '.';\nimport { IxComponent } from '../internal';\n\nexport type ClassMutationObserver = {\n destroy: () => void;\n};\n\nexport async function shouldSuppressInternalValidation(\n host: IxFormComponent<unknown>\n) {\n if (\n host.getAssociatedFormElement &&\n typeof host.getAssociatedFormElement === 'function'\n ) {\n const form = await host.getAssociatedFormElement();\n\n if (!form) {\n return false;\n }\n\n return form.noValidate;\n }\n\n return false;\n}\n\nexport function createClassMutationObserver(\n element: HTMLElement,\n callback: () => void,\n options?: {\n includeChildren?: boolean;\n }\n): ClassMutationObserver {\n const observer = new MutationObserver(callback);\n observer.observe(element, {\n subtree: options?.includeChildren,\n childList: options?.includeChildren,\n attributes: true,\n attributeFilter: ['class'],\n });\n\n return {\n destroy() {\n observer.disconnect();\n },\n };\n}\n\nexport type ValidationResultProperty =\n | 'isInvalid'\n | 'isInvalidByRequired'\n | 'isValid'\n | 'isInfo'\n | 'isWarning';\nexport type ValidationResults = Record<ValidationResultProperty, boolean>;\n\nfunction containsClass(\n hostElement: HTMLIxFormComponentElement<unknown>,\n className: string,\n includeChildren: boolean\n) {\n return (\n hostElement.classList.contains(`${className}`) ||\n (includeChildren ? !!hostElement.querySelector(`.${className}`) : false)\n );\n}\n\nexport function checkFieldClasses(\n hostElement: HTMLIxFormComponentElement<unknown>,\n includeChildren = false\n): ValidationResults {\n return {\n isInvalid: containsClass(hostElement, 'ix-invalid', includeChildren),\n isInvalidByRequired: containsClass(\n hostElement,\n 'ix-invalid--required',\n includeChildren\n ),\n isValid: containsClass(hostElement, 'ix-valid', includeChildren),\n isInfo: containsClass(hostElement, 'ix-info', includeChildren),\n isWarning: containsClass(hostElement, 'ix-warning', includeChildren),\n };\n}\n\nexport function HookValidationLifecycle(options?: {\n includeChildren?: boolean;\n}) {\n return (proto: IxComponent, methodName: string) => {\n let checkIfRequiredFunction: () => void;\n let classMutationObserver: ClassMutationObserver | null;\n const { componentWillLoad, disconnectedCallback, connectedCallback } =\n proto;\n\n proto.connectedCallback = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n\n checkIfRequiredFunction = async () => {\n const skipValidation = await shouldSuppressInternalValidation(host);\n if (skipValidation) {\n return;\n }\n\n if (host.hasValidValue && typeof host.hasValidValue === 'function') {\n const hasValue = await host.hasValidValue();\n if (host.required) {\n host.classList.toggle('ix-invalid--required', !hasValue);\n } else {\n host.classList.remove('ix-invalid--required');\n }\n }\n\n if (\n host.getValidityState &&\n typeof host.getValidityState === 'function'\n ) {\n const validityState = await host.getValidityState();\n Object.keys(validityState)\n // Use only the keys that are relevant for the validation state\n // patternMismatch used for `ix-date-field`\n .filter((key) => ['patternMismatch'].includes(key))\n .forEach((key) => {\n host.classList.toggle(`ix-invalid--${key}`, validityState[key]);\n });\n }\n };\n\n host.addEventListener('valueChange', checkIfRequiredFunction);\n setTimeout(checkIfRequiredFunction);\n return connectedCallback && connectedCallback.call(this);\n };\n\n proto.componentWillLoad = function () {\n const host = getElement(\n this\n ) as unknown as HTMLIxFormComponentElement<unknown>;\n classMutationObserver = createClassMutationObserver(\n host,\n () => {\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n },\n options\n );\n const result = checkFieldClasses(host, options?.includeChildren);\n proto[methodName].call(this, result);\n return componentWillLoad && componentWillLoad.call(this);\n };\n\n proto.disconnectedCallback = function () {\n const host = getElement(this);\n\n if (host && classMutationObserver) {\n classMutationObserver.destroy();\n classMutationObserver = null;\n }\n\n if (host && checkIfRequiredFunction) {\n host.removeEventListener('valueChange', checkIfRequiredFunction);\n }\n\n return disconnectedCallback && disconnectedCallback.call(this);\n };\n };\n}\n"],"version":3}
|
|
@@ -1 +0,0 @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uB;IACvB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,6BAA6B;IAC7B,WAAW;IACX,cAAc;IACd,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,aAAa;IACb,eAAe;IACf,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,WAAW;IACX,eAAe;IACf,eAAe;IACf,eAAe;IACf,gBAAgB;CACjB;;;;;;","names":[],"sources":["src/components/utils/condition-checks.ts","src/components/utils/a11y.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nexport const isHttpUrl = (link: string) => {\n if (!link) {\n return false;\n }\n\n let url: URL;\n\n try {\n url = new URL(link);\n } catch (e) {\n return false;\n }\n\n return url.protocol === 'http:' || url.protocol === 'https:';\n};\n\nexport const isSvgDataUrl = (url: string) => {\n if (!url) {\n return false;\n }\n\n if (typeof url !== 'string') {\n return false;\n }\n\n return url.startsWith('data:image/svg+xml');\n};\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { isHttpUrl, isSvgDataUrl } from './condition-checks';\n\nexport const a11yBoolean = (value: boolean | undefined) =>\n value ? 'true' : 'false';\n\nconst kebabCaseToUpperCaseSentence = (kebabCase: string) => {\n const withoutFilledSuffix = kebabCase.replace('-filled', '');\n const words = withoutFilledSuffix.split('-');\n const sentence = words\n .map((word) => {\n const trimWord = word.trim();\n const digitLessWord = trimWord.replace(/\\d+/g, '');\n\n if (digitLessWord.length === 0) {\n return trimWord;\n }\n\n return digitLessWord;\n })\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ');\n\n return sentence;\n};\n\nexport const getFallbackLabelFromIconName = (iconName: string) => {\n if (!iconName) {\n return 'Unknown';\n }\n\n if (isHttpUrl(iconName)) {\n return 'Unknown';\n }\n\n if (isSvgDataUrl(iconName)) {\n return 'Unknown';\n }\n\n const label = kebabCaseToUpperCaseSentence(iconName);\n\n if (label.length === 0) {\n return 'Unknown';\n }\n\n return label;\n};\n\nexport const a11yHostAttributes = (\n hostElement: HTMLElement,\n ignoreAttributes: A11yAttributeName[] = []\n): Record<A11yAttributeName, string> => {\n const attributeObject: Record<string, string> = {};\n a11yAttributes.forEach((attr) => {\n if (hostElement.hasAttribute(attr)) {\n const value = hostElement.getAttribute(attr);\n if (value !== null && !ignoreAttributes.includes(attr)) {\n attributeObject[attr] = hostElement.getAttribute(attr) ?? '';\n hostElement.removeAttribute(attr);\n }\n }\n });\n\n return attributeObject;\n};\n\nexport type A11yAttributeName =\n | 'role'\n | 'aria-activedescendant'\n | 'aria-atomic'\n | 'aria-autocomplete'\n | 'aria-braillelabel'\n | 'aria-brailleroledescription'\n | 'aria-busy'\n | 'aria-checked'\n | 'aria-colcount'\n | 'aria-colindex'\n | 'aria-colindextext'\n | 'aria-colspan'\n | 'aria-controls'\n | 'aria-current'\n | 'aria-describedby'\n | 'aria-description'\n | 'aria-details'\n | 'aria-disabled'\n | 'aria-errormessage'\n | 'aria-expanded'\n | 'aria-flowto'\n | 'aria-haspopup'\n | 'aria-hidden'\n | 'aria-invalid'\n | 'aria-keyshortcuts'\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-level'\n | 'aria-live'\n | 'aria-multiline'\n | 'aria-multiselectable'\n | 'aria-orientation'\n | 'aria-owns'\n | 'aria-placeholder'\n | 'aria-posinset'\n | 'aria-pressed'\n | 'aria-readonly'\n | 'aria-relevant'\n | 'aria-required'\n | 'aria-roledescription'\n | 'aria-rowcount'\n | 'aria-rowindex'\n | 'aria-rowindextext'\n | 'aria-rowspan'\n | 'aria-selected'\n | 'aria-setsize'\n | 'aria-sort'\n | 'aria-valuemax'\n | 'aria-valuemin'\n | 'aria-valuenow'\n | 'aria-valuetext';\n\nconst a11yAttributes: A11yAttributeName[] = [\n 'role',\n 'aria-activedescendant',\n 'aria-atomic',\n 'aria-autocomplete',\n 'aria-braillelabel',\n 'aria-brailleroledescription',\n 'aria-busy',\n 'aria-checked',\n 'aria-colcount',\n 'aria-colindex',\n 'aria-colindextext',\n 'aria-colspan',\n 'aria-controls',\n 'aria-current',\n 'aria-describedby',\n 'aria-description',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-flowto',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-level',\n 'aria-live',\n 'aria-multiline',\n 'aria-multiselectable',\n 'aria-orientation',\n 'aria-owns',\n 'aria-placeholder',\n 'aria-posinset',\n 'aria-pressed',\n 'aria-readonly',\n 'aria-relevant',\n 'aria-required',\n 'aria-roledescription',\n 'aria-rowcount',\n 'aria-rowindex',\n 'aria-rowindextext',\n 'aria-rowspan',\n 'aria-selected',\n 'aria-setsize',\n 'aria-sort',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n];\n\ntype PartialRecord<K extends A11yAttributeName, T> = {\n [P in K]?: T;\n};\nexport type A11yAttributes = PartialRecord<A11yAttributeName, string>;\n"],"version":3}
|