@siemens/element-ng 47.2.0 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -6
- package/autocomplete/index.d.ts +8 -0
- package/autocomplete/package.json +3 -0
- package/autocomplete/si-autocomplete-listbox.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete-option.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete.directive.d.ts +14 -0
- package/autocomplete/si-autocomplete.model.d.ts +7 -0
- package/autocomplete/si-autocomplete.module.d.ts +9 -0
- package/badge/index.d.ts +5 -0
- package/badge/package.json +3 -0
- package/badge/si-badge.component.d.ts +17 -0
- package/breadcrumb/breadcrumb-item.model.d.ts +36 -0
- package/breadcrumb/index.d.ts +7 -0
- package/breadcrumb/package.json +3 -0
- package/breadcrumb/si-breadcrumb-item-template.directive.d.ts +10 -0
- package/breadcrumb/si-breadcrumb.component.d.ts +46 -0
- package/breadcrumb/si-breadcrumb.module.d.ts +7 -0
- package/card/index.d.ts +6 -0
- package/card/package.json +3 -0
- package/card/si-card.component.d.ts +79 -0
- package/card/si-card.module.d.ts +7 -0
- package/circle-status/index.d.ts +6 -0
- package/circle-status/package.json +3 -0
- package/circle-status/si-circle-status.component.d.ts +66 -0
- package/circle-status/si-circle-status.module.d.ts +7 -0
- package/column-selection-dialog/column-selection-editor/si-column-selection-editor.component.d.ts +23 -0
- package/column-selection-dialog/index.d.ts +6 -0
- package/column-selection-dialog/package.json +3 -0
- package/column-selection-dialog/si-column-selection-dialog.component.d.ts +114 -0
- package/column-selection-dialog/si-column-selection-dialog.service.d.ts +20 -0
- package/column-selection-dialog/si-column-selection-dialog.types.d.ts +68 -0
- package/common/models/status-type.model.d.ts +2 -2
- package/content-action-bar/index.d.ts +7 -0
- package/content-action-bar/package.json +3 -0
- package/content-action-bar/si-content-action-bar-toggle.component.d.ts +6 -0
- package/content-action-bar/si-content-action-bar.component.d.ts +72 -0
- package/content-action-bar/si-content-action-bar.model.d.ts +9 -0
- package/content-action-bar/si-content-action-bar.module.d.ts +7 -0
- package/date-range-filter/index.d.ts +8 -0
- package/date-range-filter/package.json +3 -0
- package/date-range-filter/si-date-range-calculation.service.d.ts +33 -0
- package/date-range-filter/si-date-range-filter.component.d.ts +248 -0
- package/date-range-filter/si-date-range-filter.module.d.ts +7 -0
- package/date-range-filter/si-date-range-filter.types.d.ts +40 -0
- package/date-range-filter/si-relative-date.component.d.ts +31 -0
- package/datepicker/components/si-calendar-body.component.d.ts +137 -0
- package/datepicker/components/si-calendar-date-cell.directive.d.ts +16 -0
- package/datepicker/components/si-calendar-direction-button.component.d.ts +18 -0
- package/datepicker/components/si-compare-adapter.d.ts +37 -0
- package/datepicker/components/si-day-selection.component.d.ts +76 -0
- package/datepicker/components/si-initial-focus.component.d.ts +74 -0
- package/datepicker/components/si-month-selection.component.d.ts +62 -0
- package/datepicker/components/si-year-selection.component.d.ts +65 -0
- package/datepicker/date-time-helper.d.ts +302 -0
- package/datepicker/index.d.ts +15 -0
- package/datepicker/package.json +3 -0
- package/datepicker/si-calendar-button.component.d.ts +49 -0
- package/datepicker/si-date-input.directive.d.ts +114 -0
- package/datepicker/si-date-range.component.d.ts +150 -0
- package/datepicker/si-datepicker-overlay.component.d.ts +82 -0
- package/datepicker/si-datepicker-overlay.directive.d.ts +104 -0
- package/datepicker/si-datepicker.component.d.ts +228 -0
- package/datepicker/si-datepicker.directive.d.ts +62 -0
- package/datepicker/si-datepicker.model.d.ts +129 -0
- package/datepicker/si-datepicker.module.d.ts +12 -0
- package/datepicker/si-timepicker.component.d.ts +214 -0
- package/electron-titlebar/electron.helpers.d.ts +5 -0
- package/electron-titlebar/index.d.ts +7 -0
- package/electron-titlebar/package.json +3 -0
- package/electron-titlebar/si-electron-titlebar.component.d.ts +72 -0
- package/electron-titlebar/si-electron-titlebar.module.d.ts +7 -0
- package/fesm2022/siemens-element-ng-application-header.mjs +2 -2
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-autocomplete.mjs +235 -0
- package/fesm2022/siemens-element-ng-autocomplete.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-badge.mjs +59 -0
- package/fesm2022/siemens-element-ng-badge.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +302 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-card.mjs +122 -0
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs +146 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +369 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-common.mjs +1 -1
- package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +200 -0
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +649 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs +4231 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +142 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs +751 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs +153 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-form.mjs +827 -0
- package/fesm2022/siemens-element-ng-form.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs +65 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon.mjs +22 -2
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-info-page.mjs +63 -0
- package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-inline-notification.mjs +4 -6
- package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ip-input.mjs +451 -0
- package/fesm2022/siemens-element-ng-ip-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs +90 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-localization.mjs +306 -0
- package/fesm2022/siemens-element-ng-localization.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-number-input.mjs +267 -0
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs +177 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs +480 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs +397 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs +259 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover.mjs +256 -0
- package/fesm2022/siemens-element-ng-popover.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs +83 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs +193 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-select.mjs +1166 -0
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs +117 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-slider.mjs +313 -0
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs +89 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-split.mjs +575 -0
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs +196 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs +77 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs +47 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-tabs.mjs +395 -0
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs +227 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs +746 -0
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs +76 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-wizard.mjs +465 -0
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -0
- package/file-uploader/index.d.ts +8 -0
- package/file-uploader/package.json +3 -0
- package/file-uploader/si-file-dropzone.component.d.ts +106 -0
- package/file-uploader/si-file-uploader.component.d.ts +296 -0
- package/file-uploader/si-file-uploader.model.d.ts +12 -0
- package/file-uploader/si-file-uploader.module.d.ts +8 -0
- package/filter-bar/filter.d.ts +26 -0
- package/filter-bar/index.d.ts +8 -0
- package/filter-bar/package.json +3 -0
- package/filter-bar/si-filter-bar.component.d.ts +65 -0
- package/filter-bar/si-filter-bar.module.d.ts +7 -0
- package/filter-bar/si-filter-pill.component.d.ts +20 -0
- package/form/form-fieldset/si-form-fieldset.component.d.ts +40 -0
- package/form/index.d.ts +14 -0
- package/form/package.json +3 -0
- package/form/si-form-container/si-form-container.component.d.ts +155 -0
- package/form/si-form-item/si-form-field-native.control.d.ts +22 -0
- package/form/si-form-item/si-form-item.component.d.ts +90 -0
- package/form/si-form-item-control-input.directive.d.ts +18 -0
- package/form/si-form-item.control.d.ts +35 -0
- package/form/si-form-validation-error.model.d.ts +55 -0
- package/form/si-form-validation-error.provider.d.ts +11 -0
- package/form/si-form-validation-error.service.d.ts +42 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.component.d.ts +13 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.directive.d.ts +42 -0
- package/form/si-form.module.d.ts +25 -0
- package/icon/element-icons.d.ts +20 -0
- package/icon-status/index.d.ts +6 -0
- package/icon-status/package.json +3 -0
- package/icon-status/si-icon-status.component.d.ts +24 -0
- package/icon-status/si-icon-status.module.d.ts +7 -0
- package/info-page/index.d.ts +5 -0
- package/info-page/package.json +3 -0
- package/info-page/si-info-page.component.d.ts +38 -0
- package/inline-notification/si-inline-notification.component.d.ts +0 -2
- package/ip-input/address-utils.d.ts +28 -0
- package/ip-input/address-validators.d.ts +21 -0
- package/ip-input/index.d.ts +7 -0
- package/ip-input/package.json +3 -0
- package/ip-input/si-ip-input.directive.d.ts +53 -0
- package/ip-input/si-ip4-input.directive.d.ts +9 -0
- package/ip-input/si-ip6-input.directive.d.ts +10 -0
- package/language-switcher/index.d.ts +7 -0
- package/language-switcher/iso-language-value.d.ts +14 -0
- package/language-switcher/package.json +3 -0
- package/language-switcher/si-language-switcher.component.d.ts +32 -0
- package/language-switcher/si-language-switcher.module.d.ts +7 -0
- package/localization/index.d.ts +8 -0
- package/localization/package.json +3 -0
- package/localization/si-directionality.d.ts +41 -0
- package/localization/si-locale-id.d.ts +22 -0
- package/localization/si-locale-store.d.ts +16 -0
- package/localization/si-locale.service.d.ts +73 -0
- package/number-input/index.d.ts +6 -0
- package/number-input/package.json +3 -0
- package/number-input/si-number-input.component.d.ts +106 -0
- package/number-input/si-number-input.module.d.ts +7 -0
- package/package.json +163 -3
- package/password-strength/index.d.ts +7 -0
- package/password-strength/package.json +3 -0
- package/password-strength/si-password-strength.component.d.ts +25 -0
- package/password-strength/si-password-strength.directive.d.ts +54 -0
- package/password-strength/si-password-strength.module.d.ts +8 -0
- package/photo-upload/index.d.ts +6 -0
- package/photo-upload/package.json +3 -0
- package/photo-upload/si-image-cropper-style.component.d.ts +5 -0
- package/photo-upload/si-photo-upload.component.d.ts +298 -0
- package/pills-input/index.d.ts +9 -0
- package/pills-input/package.json +3 -0
- package/pills-input/si-input-pill.component.d.ts +9 -0
- package/pills-input/si-pills-input-csv.directive.d.ts +8 -0
- package/pills-input/si-pills-input-email.directive.d.ts +10 -0
- package/pills-input/si-pills-input-pattern-base.d.ts +19 -0
- package/pills-input/si-pills-input-value-handler.d.ts +12 -0
- package/pills-input/si-pills-input.component.d.ts +87 -0
- package/pills-input/si-pills-input.module.d.ts +9 -0
- package/popover/index.d.ts +6 -0
- package/popover/package.json +3 -0
- package/popover/si-popover.component.d.ts +26 -0
- package/popover/si-popover.directive.d.ts +89 -0
- package/popover/si-popover.module.d.ts +7 -0
- package/popover-next/index.d.ts +7 -0
- package/popover-next/package.json +3 -0
- package/popover-next/si-popover-description.directive.d.ts +7 -0
- package/popover-next/si-popover-next.directive.d.ts +61 -0
- package/popover-next/si-popover-title.directive.d.ts +7 -0
- package/popover-next/si-popover.component.d.ts +27 -0
- package/progressbar/index.d.ts +6 -0
- package/progressbar/package.json +3 -0
- package/progressbar/si-progressbar.component.d.ts +43 -0
- package/progressbar/si-progressbar.module.d.ts +7 -0
- package/search-bar/index.d.ts +6 -0
- package/search-bar/package.json +3 -0
- package/search-bar/si-search-bar.component.d.ts +87 -0
- package/search-bar/si-search-bar.module.d.ts +7 -0
- package/select/index.d.ts +18 -0
- package/select/options/si-select-complex-options.directive.d.ts +69 -0
- package/select/options/si-select-lazy-options.directive.d.ts +38 -0
- package/select/options/si-select-option.source.d.ts +49 -0
- package/select/options/si-select-options-strategy.base.d.ts +35 -0
- package/select/options/si-select-options-strategy.d.ts +37 -0
- package/select/options/si-select-simple-options.directive.d.ts +34 -0
- package/select/package.json +3 -0
- package/select/select-input/si-select-input.component.d.ts +43 -0
- package/select/select-list/si-select-list-has-filter.component.d.ts +20 -0
- package/select/select-list/si-select-list.base.d.ts +37 -0
- package/select/select-list/si-select-list.component.d.ts +15 -0
- package/select/select-option/si-select-option-row.component.d.ts +16 -0
- package/select/select-option/si-select-option.component.d.ts +9 -0
- package/select/selection/si-select-multi-value.directive.d.ts +26 -0
- package/select/selection/si-select-selection-strategy.d.ts +58 -0
- package/select/selection/si-select-single-value.directive.d.ts +26 -0
- package/select/si-select-action.directive.d.ts +12 -0
- package/select/si-select-actions.directive.d.ts +5 -0
- package/select/si-select-group-template.directive.d.ts +20 -0
- package/select/si-select-option-row-template.directive.d.ts +9 -0
- package/select/si-select-option-template.directive.d.ts +21 -0
- package/select/si-select.component.d.ts +96 -0
- package/select/si-select.module.d.ts +15 -0
- package/select/si-select.types.d.ts +65 -0
- package/skip-links/index.d.ts +5 -0
- package/skip-links/package.json +3 -0
- package/skip-links/si-skip-link-target.directive.d.ts +27 -0
- package/skip-links/si-skip-links.component.d.ts +9 -0
- package/skip-links/skip-link.service.d.ts +14 -0
- package/slider/index.d.ts +6 -0
- package/slider/package.json +3 -0
- package/slider/si-slider.component.d.ts +129 -0
- package/slider/si-slider.module.d.ts +7 -0
- package/sort-bar/index.d.ts +6 -0
- package/sort-bar/package.json +3 -0
- package/sort-bar/si-sort-bar.component.d.ts +42 -0
- package/sort-bar/si-sort-bar.module.d.ts +7 -0
- package/split/index.d.ts +8 -0
- package/split/package.json +3 -0
- package/split/si-split-part.component.d.ts +154 -0
- package/split/si-split.component.d.ts +48 -0
- package/split/si-split.interfaces.d.ts +17 -0
- package/split/si-split.module.d.ts +8 -0
- package/status-toggle/index.d.ts +6 -0
- package/status-toggle/package.json +3 -0
- package/status-toggle/si-status-toggle.component.d.ts +54 -0
- package/status-toggle/status-toggle.model.d.ts +26 -0
- package/summary-widget/index.d.ts +5 -0
- package/summary-widget/package.json +3 -0
- package/summary-widget/si-summary-widget.component.d.ts +44 -0
- package/system-banner/index.d.ts +5 -0
- package/system-banner/package.json +3 -0
- package/system-banner/system-banner.component.d.ts +23 -0
- package/tabs/index.d.ts +7 -0
- package/tabs/package.json +3 -0
- package/tabs/si-tab/index.d.ts +5 -0
- package/tabs/si-tab/si-tab.component.d.ts +58 -0
- package/tabs/si-tabs.module.d.ts +8 -0
- package/tabs/si-tabset/index.d.ts +5 -0
- package/tabs/si-tabset/si-tabset.component.d.ts +100 -0
- package/template-i18n.json +111 -1
- package/toast-notification/index.d.ts +6 -0
- package/toast-notification/package.json +3 -0
- package/toast-notification/si-toast-notification/si-toast-notification.component.d.ts +17 -0
- package/toast-notification/si-toast-notification-drawer/si-toast-notification-drawer.component.d.ts +9 -0
- package/toast-notification/si-toast-notification.service.d.ts +41 -0
- package/toast-notification/si-toast.model.d.ts +25 -0
- package/translate/si-translatable-keys.interface.d.ts +110 -0
- package/typeahead/index.d.ts +8 -0
- package/typeahead/package.json +3 -0
- package/typeahead/si-typeahead-item-template.directive.d.ts +7 -0
- package/typeahead/si-typeahead.component.d.ts +22 -0
- package/typeahead/si-typeahead.directive.d.ts +196 -0
- package/typeahead/si-typeahead.model.d.ts +60 -0
- package/typeahead/si-typeahead.module.d.ts +8 -0
- package/typeahead/si-typeahead.sorting.d.ts +10 -0
- package/unauthorized-page/index.d.ts +6 -0
- package/unauthorized-page/package.json +3 -0
- package/unauthorized-page/si-unauthorized-page.component.d.ts +35 -0
- package/unauthorized-page/si-unauthorized-page.module.d.ts +7 -0
- package/wizard/index.d.ts +7 -0
- package/wizard/package.json +3 -0
- package/wizard/si-wizard-step.component.d.ts +21 -0
- package/wizard/si-wizard.component.d.ts +196 -0
- package/wizard/si-wizard.module.d.ts +8 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
6
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
7
|
+
import { SiTabsetComponent } from '../si-tabset/index';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SiTabComponent implements OnChanges {
|
|
10
|
+
private static idCounter;
|
|
11
|
+
/** Title of the tab item. */
|
|
12
|
+
heading?: TranslatableString;
|
|
13
|
+
/** Icon of the tab item. */
|
|
14
|
+
icon?: string;
|
|
15
|
+
/** Alternative name or translation key for icon. Used for A11y. */
|
|
16
|
+
iconAltText?: TranslatableString;
|
|
17
|
+
/**
|
|
18
|
+
* Additional badge content. A value of
|
|
19
|
+
* - `true` will render a red dot
|
|
20
|
+
* - any string without a `badgeColor` will render a red dot with text
|
|
21
|
+
* - any string with a `badgeColor` will render a normal badge
|
|
22
|
+
*/
|
|
23
|
+
badgeContent?: TranslatableString | boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Background color of the badge.
|
|
26
|
+
* If no color is provided a red dot badge will be rendered.
|
|
27
|
+
*/
|
|
28
|
+
badgeColor?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Disables the tab.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue false
|
|
33
|
+
*/
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Close the current tab.
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue false
|
|
39
|
+
*/
|
|
40
|
+
closable?: boolean | undefined;
|
|
41
|
+
/** Event emitter to notify when a tab is closed. */
|
|
42
|
+
readonly closeTriggered: EventEmitter<SiTabComponent>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
id: string;
|
|
45
|
+
/** @internal */
|
|
46
|
+
tabId: string;
|
|
47
|
+
protected get isHidden(): boolean | null;
|
|
48
|
+
private parent?;
|
|
49
|
+
/** @internal */
|
|
50
|
+
readonly active: import("@angular/core").WritableSignal<boolean>;
|
|
51
|
+
/** @internal */
|
|
52
|
+
registerParent(parent: SiTabsetComponent): void;
|
|
53
|
+
ngOnChanges(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTabComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiTabComponent, "si-tab", never, { "heading": { "alias": "heading"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconAltText": { "alias": "iconAltText"; "required": false; }; "badgeContent": { "alias": "badgeContent"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; }, { "closeTriggered": "closeTriggered"; }, never, ["*"], true, never>;
|
|
56
|
+
static ngAcceptInputType_disabled: unknown;
|
|
57
|
+
static ngAcceptInputType_closable: unknown;
|
|
58
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-tabset/si-tabset.component";
|
|
3
|
+
import * as i2 from "./si-tab/si-tab.component";
|
|
4
|
+
export declare class SiTabsModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTabsModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiTabsModule, never, [typeof i1.SiTabsetComponent, typeof i2.SiTabComponent], [typeof i1.SiTabsetComponent, typeof i2.SiTabComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiTabsModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { SiTabComponent } from '../si-tab/si-tab.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface SiTabDeselectionEvent {
|
|
5
|
+
/**
|
|
6
|
+
* The target tab
|
|
7
|
+
*/
|
|
8
|
+
target: SiTabComponent;
|
|
9
|
+
/**
|
|
10
|
+
* The index of target tab
|
|
11
|
+
*/
|
|
12
|
+
tabIndex: number;
|
|
13
|
+
/**
|
|
14
|
+
* To be called to prevent switching the tab
|
|
15
|
+
*/
|
|
16
|
+
cancel: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare class SiTabsetComponent implements AfterViewInit, OnDestroy {
|
|
19
|
+
/**
|
|
20
|
+
* Contains the current tab components.
|
|
21
|
+
*/
|
|
22
|
+
protected tabPanels: QueryList<SiTabComponent>;
|
|
23
|
+
/**
|
|
24
|
+
* Component variable to indicate if scrolling is necessary or the container is big enough to display all tabs.
|
|
25
|
+
*/
|
|
26
|
+
protected scrollable: boolean;
|
|
27
|
+
protected xPos: number;
|
|
28
|
+
protected endArrowDisabled: boolean;
|
|
29
|
+
protected focusedTabIndex?: number;
|
|
30
|
+
protected readonly icons: Record<"elementCancel" | "elementLeft3" | "elementRight3", string>;
|
|
31
|
+
/**
|
|
32
|
+
* If selectDefaultTab is passed as 'false', this implies no default tab selection
|
|
33
|
+
* i.e. on initial load of tabset component no tab gets selected.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue true
|
|
36
|
+
*/
|
|
37
|
+
selectDefaultTab: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Sets a selected tab index. This will activate the tab of the provided
|
|
40
|
+
* index, activates the tab and fires a notification about the change.
|
|
41
|
+
* If index is passed as -1 i.e. `selectedTabIndex = -1`, this implies to clear all tab selection.
|
|
42
|
+
* @defaultref {@link _selectedTabIndex}
|
|
43
|
+
*/
|
|
44
|
+
set selectedTabIndex(tabIndex: number);
|
|
45
|
+
/**
|
|
46
|
+
* Returns the currently selected tab index.
|
|
47
|
+
*/
|
|
48
|
+
get selectedTabIndex(): number;
|
|
49
|
+
/** Define an optional max-width in px for the tab buttons. The minimum value is `100`. */
|
|
50
|
+
tabButtonMaxWidth?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Event emitter to notify about selected tab index changes. You can either
|
|
53
|
+
* use bi-directional binding with [(selectedTabIndex)] or separate both with
|
|
54
|
+
* [selectedTabIndex]=... and (selectedTabIndexChange)=...
|
|
55
|
+
*/
|
|
56
|
+
readonly selectedTabIndexChange: EventEmitter<number>;
|
|
57
|
+
/**
|
|
58
|
+
* Event emitter to notify when a tab became inactive.
|
|
59
|
+
*/
|
|
60
|
+
readonly deselect: EventEmitter<SiTabDeselectionEvent>;
|
|
61
|
+
private initTabIndex;
|
|
62
|
+
private initialized;
|
|
63
|
+
private subscription?;
|
|
64
|
+
private readonly tabContainer;
|
|
65
|
+
private readonly innerTabContainer;
|
|
66
|
+
private readonly tabs;
|
|
67
|
+
private changeDetectorRef;
|
|
68
|
+
ngAfterViewInit(): void;
|
|
69
|
+
ngOnDestroy(): void;
|
|
70
|
+
/** @internal */
|
|
71
|
+
notifyChildrenChanged(): void;
|
|
72
|
+
protected isTabFocusable(index: number): boolean;
|
|
73
|
+
protected focusNext(): void;
|
|
74
|
+
protected focusPrevious(): void;
|
|
75
|
+
protected resize(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Finds the index of the provided tab and sets the index as new selected tab index
|
|
78
|
+
*
|
|
79
|
+
* @param selectedTab - The tab to be selected. This must already be part of the container.
|
|
80
|
+
*/
|
|
81
|
+
protected selectTab(selectedTab: SiTabComponent): void;
|
|
82
|
+
/**
|
|
83
|
+
* Scrolls the tab headers to the end (right in LTR).
|
|
84
|
+
*/
|
|
85
|
+
protected scrollEnd(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Scrolls the tab headers to the start (left in LTR).
|
|
88
|
+
*/
|
|
89
|
+
protected scrollStart(): void;
|
|
90
|
+
private scroll;
|
|
91
|
+
protected mouseScroll(event: WheelEvent): void;
|
|
92
|
+
/** @internal */
|
|
93
|
+
focus(index: number): void;
|
|
94
|
+
/** @internal */
|
|
95
|
+
blur(): void;
|
|
96
|
+
protected closeTab(event: MouseEvent, tab: SiTabComponent): void;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTabsetComponent, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiTabsetComponent, "si-tabset", never, { "selectDefaultTab": { "alias": "selectDefaultTab"; "required": false; }; "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "tabButtonMaxWidth": { "alias": "tabButtonMaxWidth"; "required": false; }; }, { "selectedTabIndexChange": "selectedTabIndexChange"; "deselect": "deselect"; }, ["tabPanels"], ["*"], true, never>;
|
|
99
|
+
static ngAcceptInputType_selectDefaultTab: unknown;
|
|
100
|
+
}
|
package/template-i18n.json
CHANGED
|
@@ -3,8 +3,58 @@
|
|
|
3
3
|
"SI_APPLICATION_HEADER.LAUNCHPAD": "Launchpad",
|
|
4
4
|
"SI_APPLICATION_HEADER.TOGGLE_ACTIONS": "Toggle actions",
|
|
5
5
|
"SI_APPLICATION_HEADER.TOGGLE_NAVIGATION": "Toggle navigation",
|
|
6
|
+
"SI_BREADCRUMB": "Breadcrumbs",
|
|
7
|
+
"SI_COLUMN_SELECTION_DIALOG.CANCEL": "Cancel",
|
|
8
|
+
"SI_COLUMN_SELECTION_DIALOG.HIDDEN": "Hidden",
|
|
9
|
+
"SI_COLUMN_SELECTION_DIALOG.ITEM_MOVED": "Item is now at position {{targetPosition}}",
|
|
10
|
+
"SI_COLUMN_SELECTION_DIALOG.ITEM_NOT_MOVED": "Item was not moved",
|
|
11
|
+
"SI_COLUMN_SELECTION_DIALOG.LIST_ARIA_LABEL": "List of possible columns. Items can be moved using Alt+ArrowUp or Alt+ArrowDown. Press Enter to rename supported items.",
|
|
12
|
+
"SI_COLUMN_SELECTION_DIALOG.RENAME_INPUT_ARIA_LABEL": "Rename column",
|
|
13
|
+
"SI_COLUMN_SELECTION_DIALOG.RESTORE_TO_DEFAULT": "Restore to default",
|
|
14
|
+
"SI_COLUMN_SELECTION_DIALOG.SUBMIT": "Apply",
|
|
15
|
+
"SI_COLUMN_SELECTION_DIALOG.VISIBLE": "Visible",
|
|
6
16
|
"SI_CONFIRMATION_DIALOG.NO": "No",
|
|
7
17
|
"SI_CONFIRMATION_DIALOG.YES": "Yes",
|
|
18
|
+
"SI_CONTENT_ACTION_BAR.TOGGLE": "Toggle",
|
|
19
|
+
"SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON": "Open calendar",
|
|
20
|
+
"SI_DATEPICKER.CALENDAR_WEEK_LABEL": "Calendar week",
|
|
21
|
+
"SI_DATEPICKER.DISABLED_TIME_TEXT": "Ignore time",
|
|
22
|
+
"SI_DATEPICKER.ENABLED_TIME_TEXT": "Consider time",
|
|
23
|
+
"SI_DATEPICKER.END_DATE_PLACEHOLDER": "End date",
|
|
24
|
+
"SI_DATEPICKER.END_TIME_LABEL": "to",
|
|
25
|
+
"SI_DATEPICKER.HOURS": "Hours",
|
|
26
|
+
"SI_DATEPICKER.MILLISECONDS": "Milliseconds",
|
|
27
|
+
"SI_DATEPICKER.MINUTES": "Minutes",
|
|
28
|
+
"SI_DATEPICKER.NEXT": "Next",
|
|
29
|
+
"SI_DATEPICKER.PERIOD": "Period",
|
|
30
|
+
"SI_DATEPICKER.PREVIOUS": "Previous",
|
|
31
|
+
"SI_DATEPICKER.SECONDS": "Seconds",
|
|
32
|
+
"SI_DATEPICKER.START_DATE_PLACEHOLDER": "Start date",
|
|
33
|
+
"SI_DATEPICKER.START_TIME_LABEL": "from",
|
|
34
|
+
"SI_DATE_RANGE_FILTER.ADVANCED": "Advanced",
|
|
35
|
+
"SI_DATE_RANGE_FILTER.AFTER": "After",
|
|
36
|
+
"SI_DATE_RANGE_FILTER.APPLY": "Apply",
|
|
37
|
+
"SI_DATE_RANGE_FILTER.BEFORE": "Before",
|
|
38
|
+
"SI_DATE_RANGE_FILTER.DATE": "Date",
|
|
39
|
+
"SI_DATE_RANGE_FILTER.DATE_PLACEHOLDER": "Select date",
|
|
40
|
+
"SI_DATE_RANGE_FILTER.DAYS": "Days",
|
|
41
|
+
"SI_DATE_RANGE_FILTER.FROM": "From",
|
|
42
|
+
"SI_DATE_RANGE_FILTER.HOURS": "Hours",
|
|
43
|
+
"SI_DATE_RANGE_FILTER.MINUTES": "Minutes",
|
|
44
|
+
"SI_DATE_RANGE_FILTER.MONTHS": "Months",
|
|
45
|
+
"SI_DATE_RANGE_FILTER.NOW": "Now",
|
|
46
|
+
"SI_DATE_RANGE_FILTER.PRESETS": "Presets",
|
|
47
|
+
"SI_DATE_RANGE_FILTER.PREVIEW": "Preview",
|
|
48
|
+
"SI_DATE_RANGE_FILTER.RANGE": "Range",
|
|
49
|
+
"SI_DATE_RANGE_FILTER.REF_POINT": "Reference point",
|
|
50
|
+
"SI_DATE_RANGE_FILTER.SEARCH": "Search",
|
|
51
|
+
"SI_DATE_RANGE_FILTER.TO": "To",
|
|
52
|
+
"SI_DATE_RANGE_FILTER.TODAY": "Today",
|
|
53
|
+
"SI_DATE_RANGE_FILTER.UNIT": "Unit",
|
|
54
|
+
"SI_DATE_RANGE_FILTER.VALUE": "Value",
|
|
55
|
+
"SI_DATE_RANGE_FILTER.WEEKS": "Weeks",
|
|
56
|
+
"SI_DATE_RANGE_FILTER.WITHIN": "Within",
|
|
57
|
+
"SI_DATE_RANGE_FILTER.YEARS": "Years",
|
|
8
58
|
"SI_DELETE_CONFIRMATION_DIALOG.CANCEL_BTN": "Cancel",
|
|
9
59
|
"SI_DELETE_CONFIRMATION_DIALOG.DELETE_BTN": "Delete",
|
|
10
60
|
"SI_DELETE_CONFIRMATION_DIALOG.MESSAGE": "Do you really want to delete the selected elements?",
|
|
@@ -14,6 +64,41 @@
|
|
|
14
64
|
"SI_EDIT_DISCARD_DIALOG.DISCARD_BTN": "Don't save",
|
|
15
65
|
"SI_EDIT_DISCARD_DIALOG.MESSAGE": "Do you want to save changes to the modified element?",
|
|
16
66
|
"SI_EDIT_DISCARD_DIALOG.SAVE_BTN": "Save",
|
|
67
|
+
"SI_ELECTRON_TITLEBAR.BACK": "Back",
|
|
68
|
+
"SI_ELECTRON_TITLEBAR.FORWARD": "Forward",
|
|
69
|
+
"SI_ELECTRON_TITLEBAR.MENU": "Menu",
|
|
70
|
+
"SI_FILE_UPLOADER.ACCEPTED_FILE_TYPES": "Accepted file types",
|
|
71
|
+
"SI_FILE_UPLOADER.CANCEL": "Cancel",
|
|
72
|
+
"SI_FILE_UPLOADER.CLEAR": "Clear",
|
|
73
|
+
"SI_FILE_UPLOADER.DROP": "Drop files here or",
|
|
74
|
+
"SI_FILE_UPLOADER.ERROR_FILE_SIZE_EXCEEDED": "File exceeds allowed maximum size",
|
|
75
|
+
"SI_FILE_UPLOADER.ERROR_FILE_TYPE": "Incorrect file type selected",
|
|
76
|
+
"SI_FILE_UPLOADER.FILE_SELECT": "click to upload",
|
|
77
|
+
"SI_FILE_UPLOADER.MAX_FILE_REACHED": "Maximum number of files reached",
|
|
78
|
+
"SI_FILE_UPLOADER.MAX_SIZE": "Maximum upload size",
|
|
79
|
+
"SI_FILE_UPLOADER.REMOVE": "Remove",
|
|
80
|
+
"SI_FILE_UPLOADER.UPLOAD": "Upload",
|
|
81
|
+
"SI_FILE_UPLOADER.UPLOADING": "Uploading",
|
|
82
|
+
"SI_FILE_UPLOADER.UPLOAD_COMPLETED": "Upload completed",
|
|
83
|
+
"SI_FILE_UPLOADER.UPLOAD_FAILED": "Upload failed",
|
|
84
|
+
"SI_FILTER_BAR.COLLAPSED_FILTERS_DESCRIPTION": "+ {{count}} filters",
|
|
85
|
+
"SI_FILTER_BAR.NO_FILTERS": "No filters applied",
|
|
86
|
+
"SI_FILTER_BAR.RESET_FILTERS": "Reset filters",
|
|
87
|
+
"SI_FORM_CONTAINER.ERROR.DATE_FORMAT": "Invalid date format.",
|
|
88
|
+
"SI_FORM_CONTAINER.ERROR.EMAIL": "The email is not valid.",
|
|
89
|
+
"SI_FORM_CONTAINER.ERROR.IPV4": "Invalid IPv4 address.",
|
|
90
|
+
"SI_FORM_CONTAINER.ERROR.IPV6": "Invalid IPv6 address.",
|
|
91
|
+
"SI_FORM_CONTAINER.ERROR.MAX": "The value is too large.",
|
|
92
|
+
"SI_FORM_CONTAINER.ERROR.MAX_DATE": "The date is too far in the future.",
|
|
93
|
+
"SI_FORM_CONTAINER.ERROR.MAX_LENGTH": "A maximum number of characters is exceeded.",
|
|
94
|
+
"SI_FORM_CONTAINER.ERROR.MIN": "The value is too small",
|
|
95
|
+
"SI_FORM_CONTAINER.ERROR.MIN_DATE": "The date is too far in the past.",
|
|
96
|
+
"SI_FORM_CONTAINER.ERROR.MIN_LENGTH": "The minimum number of characters is not met.",
|
|
97
|
+
"SI_FORM_CONTAINER.ERROR.NUMBER_FORMAT": "The value is not a valid number.",
|
|
98
|
+
"SI_FORM_CONTAINER.ERROR.PATTERN": "The value does not match the predefined pattern.",
|
|
99
|
+
"SI_FORM_CONTAINER.ERROR.REQUIRED": "A value is required.",
|
|
100
|
+
"SI_FORM_CONTAINER.ERROR.REQUIRED_TRUE": "The value should be true.",
|
|
101
|
+
"SI_LANGUAGE_SWITCHER.LABEL": "Language switcher",
|
|
17
102
|
"SI_LAUNCHPAD.CLOSE": "Close launchpad",
|
|
18
103
|
"SI_LAUNCHPAD.DEFAULT_CATEGORY_TITLE": "Apps",
|
|
19
104
|
"SI_LAUNCHPAD.FAVORITE_APPS": "Favorite apps",
|
|
@@ -29,5 +114,30 @@
|
|
|
29
114
|
"SI_PAGINATION.FORWARD": "Forward",
|
|
30
115
|
"SI_PAGINATION.NAV_LABEL": "Pagination",
|
|
31
116
|
"SI_PASSWORD_TOGGLE.HIDE": "hide password",
|
|
32
|
-
"SI_PASSWORD_TOGGLE.SHOW": "show password"
|
|
117
|
+
"SI_PASSWORD_TOGGLE.SHOW": "show password",
|
|
118
|
+
"SI_PHOTO_UPLOAD.APPLY_PHOTO": "Apply",
|
|
119
|
+
"SI_PHOTO_UPLOAD.CANCEL": "Cancel",
|
|
120
|
+
"SI_PHOTO_UPLOAD.CHANGE_PHOTO": "Change",
|
|
121
|
+
"SI_PHOTO_UPLOAD.CROPPER_FRAME_LABEL": "Crop photo",
|
|
122
|
+
"SI_PHOTO_UPLOAD.ERROR_FILE_SIZE_EXCEEDED": "The actual file size {{mb}} MB exceeds the {{maxSizeMb}} MB limit.",
|
|
123
|
+
"SI_PHOTO_UPLOAD.ERROR_FILE_TYPE": "The image file is not valid. Please upload a PNG or JP(E)G.",
|
|
124
|
+
"SI_PHOTO_UPLOAD.MODAL_TITLE": "Avatar photo",
|
|
125
|
+
"SI_PHOTO_UPLOAD.REMOVE": "Remove",
|
|
126
|
+
"SI_PHOTO_UPLOAD.UPLOAD_PHOTO": "Upload photo",
|
|
127
|
+
"SI_PILLS_INPUT.INPUT_ELEMENT_ARIA_LABEL": "Create item",
|
|
128
|
+
"SI_PROGRESSBAR.LABEL": "Progress",
|
|
129
|
+
"SI_SELECT.NO-RESULTS-FOUND": "No results found",
|
|
130
|
+
"SI_SELECT.SEARCH-PLACEHOLDER": "Search...",
|
|
131
|
+
"SI_SKIP_LINKS.JUMP_TO": "Jump to {{link}}",
|
|
132
|
+
"SI_SLIDER.DECREMENT": "Decrement",
|
|
133
|
+
"SI_SLIDER.INCREMENT": "Increment",
|
|
134
|
+
"SI_SLIDER.LABEL": "Value",
|
|
135
|
+
"SI_SORT_BAR.TITLE": "Sort by",
|
|
136
|
+
"SI_TOAST.CLOSE": "Close",
|
|
137
|
+
"SI_TYPEAHEAD.AUTOCOMPLETE_LIST_LABEL": "Suggestions",
|
|
138
|
+
"SI_WIZARD.BACK": "Back",
|
|
139
|
+
"SI_WIZARD.CANCEL": "Cancel",
|
|
140
|
+
"SI_WIZARD.COMPLETED": "Wizard completed!",
|
|
141
|
+
"SI_WIZARD.NEXT": "Next",
|
|
142
|
+
"SI_WIZARD.SAVE": "Save"
|
|
33
143
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { SiToast } from '../si-toast.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiToastNotificationComponent implements OnChanges {
|
|
5
|
+
private readonly statusIcons;
|
|
6
|
+
readonly toast: import("@angular/core").InputSignal<SiToast>;
|
|
7
|
+
protected closeAriaLabel: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
8
|
+
protected readonly icons: Record<"elementCancel", string>;
|
|
9
|
+
protected readonly status: import("@angular/core").Signal<import("dist/@siemens/element-ng/common").StatusType>;
|
|
10
|
+
protected readonly statusColor: import("@angular/core").Signal<string>;
|
|
11
|
+
private readonly autoCloseBar;
|
|
12
|
+
private animationBuilder;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
protected close(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiToastNotificationComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiToastNotificationComponent, "si-toast-notification", never, { "toast": { "alias": "toast"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
package/toast-notification/si-toast-notification-drawer/si-toast-notification-drawer.component.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { SiToast } from '../si-toast.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SiToastNotificationDrawerComponent {
|
|
5
|
+
readonly toasts: import("@angular/core").InputSignal<Observable<SiToast[]> | undefined>;
|
|
6
|
+
protected animationsDisabled: boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiToastNotificationDrawerComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiToastNotificationDrawerComponent, "si-toast-notification-drawer", never, { "toasts": { "alias": "toasts"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Link } from '@siemens/element-ng/link';
|
|
3
|
+
import { SiToast, ToastStateName } from './si-toast.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SiToastNotificationService implements OnDestroy {
|
|
6
|
+
/**
|
|
7
|
+
* List of currently active toasts to see details or close them.
|
|
8
|
+
*
|
|
9
|
+
* @defaultValue []
|
|
10
|
+
*/
|
|
11
|
+
activeToasts: SiToast[];
|
|
12
|
+
private activeToastsSubject;
|
|
13
|
+
private queuedToastSubject;
|
|
14
|
+
private readonly maxToasts;
|
|
15
|
+
private componentRef?;
|
|
16
|
+
private overlayRef?;
|
|
17
|
+
private injector;
|
|
18
|
+
private overlay;
|
|
19
|
+
constructor();
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Queue a new toast to be shown.
|
|
23
|
+
* @param action - Passing a Link object will optionally add a clickable link to the toast which can contain an action.
|
|
24
|
+
* @returns the toast object
|
|
25
|
+
*/
|
|
26
|
+
queueToastNotification(state: ToastStateName, title: string, message: string, disableAutoClose?: boolean, disableManualClose?: boolean, action?: Link): SiToast;
|
|
27
|
+
/**
|
|
28
|
+
* Show a toast notification
|
|
29
|
+
* @param toast - The toast object of the toast to be shown, can also be constructed while calling this.
|
|
30
|
+
*/
|
|
31
|
+
showToastNotification(toast: SiToast): SiToast;
|
|
32
|
+
/**
|
|
33
|
+
* Hide a toast notification
|
|
34
|
+
* @param toast - The toast object of the toast to be hidden, can be retrieved from {@link activeToasts} and is returned by {@link queueToastNotification}.
|
|
35
|
+
*/
|
|
36
|
+
hideToastNotification(toast?: SiToast): void;
|
|
37
|
+
private addToastDrawer;
|
|
38
|
+
private buildInjector;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiToastNotificationService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SiToastNotificationService>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { StatusType } from '@siemens/element-ng/common';
|
|
6
|
+
import { Link } from '@siemens/element-ng/link';
|
|
7
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
8
|
+
import { Subject } from 'rxjs';
|
|
9
|
+
export interface SiToast {
|
|
10
|
+
state: ToastStateName;
|
|
11
|
+
title: TranslatableString;
|
|
12
|
+
message: TranslatableString;
|
|
13
|
+
disableManualClose?: boolean;
|
|
14
|
+
disableAutoClose?: boolean;
|
|
15
|
+
timeout?: number;
|
|
16
|
+
action?: Link;
|
|
17
|
+
close?: () => void;
|
|
18
|
+
translationParams?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
hidden?: Subject<void>;
|
|
22
|
+
closeAriaLabel?: TranslatableString;
|
|
23
|
+
}
|
|
24
|
+
export type ToastStateName = StatusType | 'connection';
|
|
25
|
+
export declare const SI_TOAST_AUTO_HIDE_DELAY = 6000;
|
|
@@ -3,8 +3,58 @@ export interface SiTranslatableKeys {
|
|
|
3
3
|
'SI_APPLICATION_HEADER.LAUNCHPAD'?: string;
|
|
4
4
|
'SI_APPLICATION_HEADER.TOGGLE_ACTIONS'?: string;
|
|
5
5
|
'SI_APPLICATION_HEADER.TOGGLE_NAVIGATION'?: string;
|
|
6
|
+
'SI_BREADCRUMB'?: string;
|
|
7
|
+
'SI_COLUMN_SELECTION_DIALOG.CANCEL'?: string;
|
|
8
|
+
'SI_COLUMN_SELECTION_DIALOG.HIDDEN'?: string;
|
|
9
|
+
'SI_COLUMN_SELECTION_DIALOG.ITEM_MOVED'?: string;
|
|
10
|
+
'SI_COLUMN_SELECTION_DIALOG.ITEM_NOT_MOVED'?: string;
|
|
11
|
+
'SI_COLUMN_SELECTION_DIALOG.LIST_ARIA_LABEL'?: string;
|
|
12
|
+
'SI_COLUMN_SELECTION_DIALOG.RENAME_INPUT_ARIA_LABEL'?: string;
|
|
13
|
+
'SI_COLUMN_SELECTION_DIALOG.RESTORE_TO_DEFAULT'?: string;
|
|
14
|
+
'SI_COLUMN_SELECTION_DIALOG.SUBMIT'?: string;
|
|
15
|
+
'SI_COLUMN_SELECTION_DIALOG.VISIBLE'?: string;
|
|
6
16
|
'SI_CONFIRMATION_DIALOG.NO'?: string;
|
|
7
17
|
'SI_CONFIRMATION_DIALOG.YES'?: string;
|
|
18
|
+
'SI_CONTENT_ACTION_BAR.TOGGLE'?: string;
|
|
19
|
+
'SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON'?: string;
|
|
20
|
+
'SI_DATEPICKER.CALENDAR_WEEK_LABEL'?: string;
|
|
21
|
+
'SI_DATEPICKER.DISABLED_TIME_TEXT'?: string;
|
|
22
|
+
'SI_DATEPICKER.ENABLED_TIME_TEXT'?: string;
|
|
23
|
+
'SI_DATEPICKER.END_DATE_PLACEHOLDER'?: string;
|
|
24
|
+
'SI_DATEPICKER.END_TIME_LABEL'?: string;
|
|
25
|
+
'SI_DATEPICKER.HOURS'?: string;
|
|
26
|
+
'SI_DATEPICKER.MILLISECONDS'?: string;
|
|
27
|
+
'SI_DATEPICKER.MINUTES'?: string;
|
|
28
|
+
'SI_DATEPICKER.NEXT'?: string;
|
|
29
|
+
'SI_DATEPICKER.PERIOD'?: string;
|
|
30
|
+
'SI_DATEPICKER.PREVIOUS'?: string;
|
|
31
|
+
'SI_DATEPICKER.SECONDS'?: string;
|
|
32
|
+
'SI_DATEPICKER.START_DATE_PLACEHOLDER'?: string;
|
|
33
|
+
'SI_DATEPICKER.START_TIME_LABEL'?: string;
|
|
34
|
+
'SI_DATE_RANGE_FILTER.ADVANCED'?: string;
|
|
35
|
+
'SI_DATE_RANGE_FILTER.AFTER'?: string;
|
|
36
|
+
'SI_DATE_RANGE_FILTER.APPLY'?: string;
|
|
37
|
+
'SI_DATE_RANGE_FILTER.BEFORE'?: string;
|
|
38
|
+
'SI_DATE_RANGE_FILTER.DATE'?: string;
|
|
39
|
+
'SI_DATE_RANGE_FILTER.DATE_PLACEHOLDER'?: string;
|
|
40
|
+
'SI_DATE_RANGE_FILTER.DAYS'?: string;
|
|
41
|
+
'SI_DATE_RANGE_FILTER.FROM'?: string;
|
|
42
|
+
'SI_DATE_RANGE_FILTER.HOURS'?: string;
|
|
43
|
+
'SI_DATE_RANGE_FILTER.MINUTES'?: string;
|
|
44
|
+
'SI_DATE_RANGE_FILTER.MONTHS'?: string;
|
|
45
|
+
'SI_DATE_RANGE_FILTER.NOW'?: string;
|
|
46
|
+
'SI_DATE_RANGE_FILTER.PRESETS'?: string;
|
|
47
|
+
'SI_DATE_RANGE_FILTER.PREVIEW'?: string;
|
|
48
|
+
'SI_DATE_RANGE_FILTER.RANGE'?: string;
|
|
49
|
+
'SI_DATE_RANGE_FILTER.REF_POINT'?: string;
|
|
50
|
+
'SI_DATE_RANGE_FILTER.SEARCH'?: string;
|
|
51
|
+
'SI_DATE_RANGE_FILTER.TO'?: string;
|
|
52
|
+
'SI_DATE_RANGE_FILTER.TODAY'?: string;
|
|
53
|
+
'SI_DATE_RANGE_FILTER.UNIT'?: string;
|
|
54
|
+
'SI_DATE_RANGE_FILTER.VALUE'?: string;
|
|
55
|
+
'SI_DATE_RANGE_FILTER.WEEKS'?: string;
|
|
56
|
+
'SI_DATE_RANGE_FILTER.WITHIN'?: string;
|
|
57
|
+
'SI_DATE_RANGE_FILTER.YEARS'?: string;
|
|
8
58
|
'SI_DELETE_CONFIRMATION_DIALOG.CANCEL_BTN'?: string;
|
|
9
59
|
'SI_DELETE_CONFIRMATION_DIALOG.DELETE_BTN'?: string;
|
|
10
60
|
'SI_DELETE_CONFIRMATION_DIALOG.MESSAGE'?: string;
|
|
@@ -14,6 +64,41 @@ export interface SiTranslatableKeys {
|
|
|
14
64
|
'SI_EDIT_DISCARD_DIALOG.DISCARD_BTN'?: string;
|
|
15
65
|
'SI_EDIT_DISCARD_DIALOG.MESSAGE'?: string;
|
|
16
66
|
'SI_EDIT_DISCARD_DIALOG.SAVE_BTN'?: string;
|
|
67
|
+
'SI_ELECTRON_TITLEBAR.BACK'?: string;
|
|
68
|
+
'SI_ELECTRON_TITLEBAR.FORWARD'?: string;
|
|
69
|
+
'SI_ELECTRON_TITLEBAR.MENU'?: string;
|
|
70
|
+
'SI_FILE_UPLOADER.ACCEPTED_FILE_TYPES'?: string;
|
|
71
|
+
'SI_FILE_UPLOADER.CANCEL'?: string;
|
|
72
|
+
'SI_FILE_UPLOADER.CLEAR'?: string;
|
|
73
|
+
'SI_FILE_UPLOADER.DROP'?: string;
|
|
74
|
+
'SI_FILE_UPLOADER.ERROR_FILE_SIZE_EXCEEDED'?: string;
|
|
75
|
+
'SI_FILE_UPLOADER.ERROR_FILE_TYPE'?: string;
|
|
76
|
+
'SI_FILE_UPLOADER.FILE_SELECT'?: string;
|
|
77
|
+
'SI_FILE_UPLOADER.MAX_FILE_REACHED'?: string;
|
|
78
|
+
'SI_FILE_UPLOADER.MAX_SIZE'?: string;
|
|
79
|
+
'SI_FILE_UPLOADER.REMOVE'?: string;
|
|
80
|
+
'SI_FILE_UPLOADER.UPLOAD'?: string;
|
|
81
|
+
'SI_FILE_UPLOADER.UPLOADING'?: string;
|
|
82
|
+
'SI_FILE_UPLOADER.UPLOAD_COMPLETED'?: string;
|
|
83
|
+
'SI_FILE_UPLOADER.UPLOAD_FAILED'?: string;
|
|
84
|
+
'SI_FILTER_BAR.COLLAPSED_FILTERS_DESCRIPTION'?: string;
|
|
85
|
+
'SI_FILTER_BAR.NO_FILTERS'?: string;
|
|
86
|
+
'SI_FILTER_BAR.RESET_FILTERS'?: string;
|
|
87
|
+
'SI_FORM_CONTAINER.ERROR.DATE_FORMAT'?: string;
|
|
88
|
+
'SI_FORM_CONTAINER.ERROR.EMAIL'?: string;
|
|
89
|
+
'SI_FORM_CONTAINER.ERROR.IPV4'?: string;
|
|
90
|
+
'SI_FORM_CONTAINER.ERROR.IPV6'?: string;
|
|
91
|
+
'SI_FORM_CONTAINER.ERROR.MAX'?: string;
|
|
92
|
+
'SI_FORM_CONTAINER.ERROR.MAX_DATE'?: string;
|
|
93
|
+
'SI_FORM_CONTAINER.ERROR.MAX_LENGTH'?: string;
|
|
94
|
+
'SI_FORM_CONTAINER.ERROR.MIN'?: string;
|
|
95
|
+
'SI_FORM_CONTAINER.ERROR.MIN_DATE'?: string;
|
|
96
|
+
'SI_FORM_CONTAINER.ERROR.MIN_LENGTH'?: string;
|
|
97
|
+
'SI_FORM_CONTAINER.ERROR.NUMBER_FORMAT'?: string;
|
|
98
|
+
'SI_FORM_CONTAINER.ERROR.PATTERN'?: string;
|
|
99
|
+
'SI_FORM_CONTAINER.ERROR.REQUIRED'?: string;
|
|
100
|
+
'SI_FORM_CONTAINER.ERROR.REQUIRED_TRUE'?: string;
|
|
101
|
+
'SI_LANGUAGE_SWITCHER.LABEL'?: string;
|
|
17
102
|
'SI_LAUNCHPAD.CLOSE'?: string;
|
|
18
103
|
'SI_LAUNCHPAD.DEFAULT_CATEGORY_TITLE'?: string;
|
|
19
104
|
'SI_LAUNCHPAD.FAVORITE_APPS'?: string;
|
|
@@ -30,4 +115,29 @@ export interface SiTranslatableKeys {
|
|
|
30
115
|
'SI_PAGINATION.NAV_LABEL'?: string;
|
|
31
116
|
'SI_PASSWORD_TOGGLE.HIDE'?: string;
|
|
32
117
|
'SI_PASSWORD_TOGGLE.SHOW'?: string;
|
|
118
|
+
'SI_PHOTO_UPLOAD.APPLY_PHOTO'?: string;
|
|
119
|
+
'SI_PHOTO_UPLOAD.CANCEL'?: string;
|
|
120
|
+
'SI_PHOTO_UPLOAD.CHANGE_PHOTO'?: string;
|
|
121
|
+
'SI_PHOTO_UPLOAD.CROPPER_FRAME_LABEL'?: string;
|
|
122
|
+
'SI_PHOTO_UPLOAD.ERROR_FILE_SIZE_EXCEEDED'?: string;
|
|
123
|
+
'SI_PHOTO_UPLOAD.ERROR_FILE_TYPE'?: string;
|
|
124
|
+
'SI_PHOTO_UPLOAD.MODAL_TITLE'?: string;
|
|
125
|
+
'SI_PHOTO_UPLOAD.REMOVE'?: string;
|
|
126
|
+
'SI_PHOTO_UPLOAD.UPLOAD_PHOTO'?: string;
|
|
127
|
+
'SI_PILLS_INPUT.INPUT_ELEMENT_ARIA_LABEL'?: string;
|
|
128
|
+
'SI_PROGRESSBAR.LABEL'?: string;
|
|
129
|
+
'SI_SELECT.NO-RESULTS-FOUND'?: string;
|
|
130
|
+
'SI_SELECT.SEARCH-PLACEHOLDER'?: string;
|
|
131
|
+
'SI_SKIP_LINKS.JUMP_TO'?: string;
|
|
132
|
+
'SI_SLIDER.DECREMENT'?: string;
|
|
133
|
+
'SI_SLIDER.INCREMENT'?: string;
|
|
134
|
+
'SI_SLIDER.LABEL'?: string;
|
|
135
|
+
'SI_SORT_BAR.TITLE'?: string;
|
|
136
|
+
'SI_TOAST.CLOSE'?: string;
|
|
137
|
+
'SI_TYPEAHEAD.AUTOCOMPLETE_LIST_LABEL'?: string;
|
|
138
|
+
'SI_WIZARD.BACK'?: string;
|
|
139
|
+
'SI_WIZARD.CANCEL'?: string;
|
|
140
|
+
'SI_WIZARD.COMPLETED'?: string;
|
|
141
|
+
'SI_WIZARD.NEXT'?: string;
|
|
142
|
+
'SI_WIZARD.SAVE'?: string;
|
|
33
143
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TypeaheadOptionItemContext } from './si-typeahead.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SiTypeaheadItemTemplateDirective {
|
|
4
|
+
static ngTemplateContextGuard(dir: SiTypeaheadItemTemplateDirective, ctx: any): ctx is TypeaheadOptionItemContext;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTypeaheadItemTemplateDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiTypeaheadItemTemplateDirective, "[siTypeaheadItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { SiAutocompleteDirective } from '@siemens/element-ng/autocomplete';
|
|
3
|
+
import { SiTypeaheadDirective } from './si-typeahead.directive';
|
|
4
|
+
import { TypeaheadMatch } from './si-typeahead.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SiTypeaheadComponent implements OnDestroy, OnInit, AfterViewInit {
|
|
7
|
+
protected parent: SiTypeaheadDirective;
|
|
8
|
+
protected readonly matches: import("@angular/core").Signal<TypeaheadMatch[]>;
|
|
9
|
+
protected multiselect: boolean;
|
|
10
|
+
private renderedMatchesLength;
|
|
11
|
+
private subscription;
|
|
12
|
+
private readonly typeaheadElement;
|
|
13
|
+
protected autocompleteDirective: SiAutocompleteDirective<any>;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngAfterViewInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
protected onMouseDown(event: Event): void;
|
|
18
|
+
protected setHeight(element: ElementRef): void;
|
|
19
|
+
protected selectMatch(match: TypeaheadMatch): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiTypeaheadComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiTypeaheadComponent, "si-typeahead", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|