@fundamental-ngx/ui5-webcomponents 0.63.0-rc.9 → 0.63.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/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-badge.mjs +100 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-badge.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-group.mjs +177 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-group.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar.mjs +242 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-bar.mjs +132 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-bar.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs-item.mjs +146 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs.mjs +133 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-busy-indicator.mjs +121 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-busy-indicator.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-button-badge.mjs +88 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-button-badge.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-button.mjs +244 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-button.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date-range.mjs +83 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date-range.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date.mjs +77 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend-item.mjs +81 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend.mjs +116 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar.mjs +205 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-card-header.mjs +143 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-card-header.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-card.mjs +126 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-card.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-carousel.mjs +200 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-carousel.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-check-box.mjs +210 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-check-box.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-item.mjs +112 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-popover.mjs +169 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-popover.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette.mjs +125 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-picker.mjs +119 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-color-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item-group.mjs +156 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item-group.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item.mjs +125 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box.mjs +269 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-picker.mjs +303 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-range-picker.mjs +340 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-range-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-input.mjs +300 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-input.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-picker.mjs +303 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-day-picker.mjs +118 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-day-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-dialog.mjs +238 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-dialog.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-drop-indicator.mjs +91 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-drop-indicator.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-dynamic-date-range.mjs +101 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-dynamic-date-range.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-expandable-text.mjs +91 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-expandable-text.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-file-uploader.mjs +263 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-file-uploader.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-form-group.mjs +132 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-form-group.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-form-item.mjs +112 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-form-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-form.mjs +188 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-form.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-icon.mjs +181 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-icon.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-input.mjs +300 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-input.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-label.mjs +128 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-label.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-link.mjs +235 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-link.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-custom.mjs +195 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-custom.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group-header.mjs +141 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group-header.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group.mjs +156 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-standard.mjs +262 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-standard.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list.mjs +298 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-list.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item-group.mjs +102 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item-group.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item.mjs +295 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-separator.mjs +73 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-separator.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu.mjs +178 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-menu.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-message-strip.mjs +153 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-message-strip.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-month-picker.mjs +118 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-month-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-group.mjs +156 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-group.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item.mjs +116 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box.mjs +285 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-input.mjs +324 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-input.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-option-custom.mjs +139 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-option-custom.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-option.mjs +149 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-option.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-panel.mjs +172 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-panel.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-popover.mjs +242 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-popover.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-progress-indicator.mjs +104 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-progress-indicator.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-radio-button.mjs +188 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-radio-button.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-range-slider.mjs +207 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-range-slider.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-rating-indicator.mjs +156 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-rating-indicator.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-responsive-popover.mjs +242 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-responsive-popover.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button-item.mjs +167 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button.mjs +180 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-select.mjs +292 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-select.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-handle.mjs +52 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-handle.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-tooltip.mjs +52 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-tooltip.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-slider.mjs +202 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-slider.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-special-calendar-date.mjs +82 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-special-calendar-date.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-split-button.mjs +175 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-split-button.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-step-input.mjs +203 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-step-input.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-custom.mjs +123 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-custom.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-group.mjs +156 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-group.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item.mjs +102 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-list-item.mjs +262 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-list-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-switch.mjs +194 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-switch.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-container.mjs +195 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-container.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-separator.mjs +52 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-separator.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tab.mjs +169 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tab.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-cell.mjs +110 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-cell.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-group-row.mjs +133 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-group-row.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-growing.mjs +117 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-growing.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell-action-a-i.mjs +71 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell-action-a-i.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell.mjs +161 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-row.mjs +105 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-row.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action-navigation.mjs +102 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action-navigation.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action.mjs +114 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row.mjs +133 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-multi.mjs +105 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-multi.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-single.mjs +100 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-single.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection.mjs +100 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-virtualizer.mjs +111 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table-virtualizer.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table.mjs +213 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-table.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tag.mjs +159 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tag.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-text-area.mjs +260 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-text-area.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-text.mjs +106 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-text.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-theming.mjs +23 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-theming.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker-clock.mjs +52 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker-clock.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker.mjs +249 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-clocks.mjs +86 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-clocks.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-inputs.mjs +86 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-inputs.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-title.mjs +120 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-title.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toast.mjs +136 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toast.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-button.mjs +249 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-button.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-spin-button.mjs +249 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-spin-button.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-token.mjs +108 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-token.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tokenizer.mjs +168 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tokenizer.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-button.mjs +194 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-button.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-item.mjs +109 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select-option.mjs +103 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select-option.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select.mjs +183 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-separator.mjs +83 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-separator.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-spacer.mjs +90 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-spacer.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar.mjs +125 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item-custom.mjs +256 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item-custom.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item.mjs +256 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tree.mjs +215 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-tree.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-year-picker.mjs +118 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-year-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-year-range-picker.mjs +118 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents-year-range-picker.mjs.map +1 -0
- package/fesm2022/fundamental-ngx-ui5-webcomponents.mjs +532 -39
- package/fesm2022/fundamental-ngx-ui5-webcomponents.mjs.map +1 -1
- package/package.json +498 -6
- package/types/fundamental-ngx-ui5-webcomponents-avatar-badge.d.ts +46 -0
- package/types/fundamental-ngx-ui5-webcomponents-avatar-group.d.ts +103 -0
- package/types/fundamental-ngx-ui5-webcomponents-avatar.d.ts +160 -0
- package/types/fundamental-ngx-ui5-webcomponents-bar.d.ts +67 -0
- package/types/fundamental-ngx-ui5-webcomponents-breadcrumbs-item.d.ts +76 -0
- package/types/fundamental-ngx-ui5-webcomponents-breadcrumbs.d.ts +64 -0
- package/types/fundamental-ngx-ui5-webcomponents-busy-indicator.d.ts +63 -0
- package/types/fundamental-ngx-ui5-webcomponents-button-badge.d.ts +35 -0
- package/types/fundamental-ngx-ui5-webcomponents-button.d.ts +163 -0
- package/types/fundamental-ngx-ui5-webcomponents-calendar-date-range.d.ts +30 -0
- package/types/fundamental-ngx-ui5-webcomponents-calendar-date.d.ts +25 -0
- package/types/fundamental-ngx-ui5-webcomponents-calendar-legend-item.d.ts +28 -0
- package/types/fundamental-ngx-ui5-webcomponents-calendar-legend.d.ts +59 -0
- package/types/fundamental-ngx-ui5-webcomponents-calendar.d.ts +118 -0
- package/types/fundamental-ngx-ui5-webcomponents-card-header.d.ts +68 -0
- package/types/fundamental-ngx-ui5-webcomponents-card.d.ts +69 -0
- package/types/fundamental-ngx-ui5-webcomponents-carousel.d.ts +120 -0
- package/types/fundamental-ngx-ui5-webcomponents-check-box.d.ts +114 -0
- package/types/fundamental-ngx-ui5-webcomponents-color-palette-item.d.ts +44 -0
- package/types/fundamental-ngx-ui5-webcomponents-color-palette-popover.d.ts +92 -0
- package/types/fundamental-ngx-ui5-webcomponents-color-palette.d.ts +56 -0
- package/types/fundamental-ngx-ui5-webcomponents-color-picker.d.ts +49 -0
- package/types/fundamental-ngx-ui5-webcomponents-combo-box-item-group.d.ts +81 -0
- package/types/fundamental-ngx-ui5-webcomponents-combo-box-item.d.ts +57 -0
- package/types/fundamental-ngx-ui5-webcomponents-combo-box.d.ts +160 -0
- package/types/fundamental-ngx-ui5-webcomponents-date-picker.d.ts +188 -0
- package/types/fundamental-ngx-ui5-webcomponents-date-range-picker.d.ts +217 -0
- package/types/fundamental-ngx-ui5-webcomponents-date-time-input.d.ts +188 -0
- package/types/fundamental-ngx-ui5-webcomponents-date-time-picker.d.ts +188 -0
- package/types/fundamental-ngx-ui5-webcomponents-day-picker.d.ts +59 -0
- package/types/fundamental-ngx-ui5-webcomponents-dialog.d.ts +146 -0
- package/types/fundamental-ngx-ui5-webcomponents-drop-indicator.d.ts +36 -0
- package/types/fundamental-ngx-ui5-webcomponents-dynamic-date-range.d.ts +35 -0
- package/types/fundamental-ngx-ui5-webcomponents-expandable-text.d.ts +36 -0
- package/types/fundamental-ngx-ui5-webcomponents-file-uploader.d.ts +142 -0
- package/types/fundamental-ngx-ui5-webcomponents-form-group.d.ts +73 -0
- package/types/fundamental-ngx-ui5-webcomponents-form-item.d.ts +54 -0
- package/types/fundamental-ngx-ui5-webcomponents-form.d.ts +122 -0
- package/types/fundamental-ngx-ui5-webcomponents-icon.d.ts +109 -0
- package/types/fundamental-ngx-ui5-webcomponents-input.d.ts +188 -0
- package/types/fundamental-ngx-ui5-webcomponents-label.d.ts +71 -0
- package/types/fundamental-ngx-ui5-webcomponents-link.d.ts +155 -0
- package/types/fundamental-ngx-ui5-webcomponents-list-item-custom.d.ts +119 -0
- package/types/fundamental-ngx-ui5-webcomponents-list-item-group-header.d.ts +72 -0
- package/types/fundamental-ngx-ui5-webcomponents-list-item-group.d.ts +81 -0
- package/types/fundamental-ngx-ui5-webcomponents-list-item-standard.d.ts +174 -0
- package/types/fundamental-ngx-ui5-webcomponents-list.d.ts +203 -0
- package/types/fundamental-ngx-ui5-webcomponents-menu-item-group.d.ts +48 -0
- package/types/fundamental-ngx-ui5-webcomponents-menu-item.d.ts +203 -0
- package/types/fundamental-ngx-ui5-webcomponents-menu-separator.d.ts +27 -0
- package/types/fundamental-ngx-ui5-webcomponents-menu.d.ts +100 -0
- package/types/fundamental-ngx-ui5-webcomponents-message-strip.d.ts +78 -0
- package/types/fundamental-ngx-ui5-webcomponents-month-picker.d.ts +59 -0
- package/types/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-group.d.ts +81 -0
- package/types/fundamental-ngx-ui5-webcomponents-multi-combo-box-item.d.ts +47 -0
- package/types/fundamental-ngx-ui5-webcomponents-multi-combo-box.d.ts +173 -0
- package/types/fundamental-ngx-ui5-webcomponents-multi-input.d.ts +205 -0
- package/types/fundamental-ngx-ui5-webcomponents-option-custom.d.ts +68 -0
- package/types/fundamental-ngx-ui5-webcomponents-option.d.ts +77 -0
- package/types/fundamental-ngx-ui5-webcomponents-panel.d.ts +93 -0
- package/types/fundamental-ngx-ui5-webcomponents-popover.d.ts +146 -0
- package/types/fundamental-ngx-ui5-webcomponents-progress-indicator.d.ts +48 -0
- package/types/fundamental-ngx-ui5-webcomponents-radio-button.d.ts +94 -0
- package/types/fundamental-ngx-ui5-webcomponents-range-slider.d.ts +111 -0
- package/types/fundamental-ngx-ui5-webcomponents-rating-indicator.d.ts +80 -0
- package/types/fundamental-ngx-ui5-webcomponents-responsive-popover.d.ts +146 -0
- package/types/fundamental-ngx-ui5-webcomponents-segmented-button-item.d.ts +92 -0
- package/types/fundamental-ngx-ui5-webcomponents-segmented-button.d.ts +87 -0
- package/types/fundamental-ngx-ui5-webcomponents-select.d.ts +161 -0
- package/types/fundamental-ngx-ui5-webcomponents-slider-handle.d.ts +20 -0
- package/types/fundamental-ngx-ui5-webcomponents-slider-tooltip.d.ts +20 -0
- package/types/fundamental-ngx-ui5-webcomponents-slider.d.ts +107 -0
- package/types/fundamental-ngx-ui5-webcomponents-special-calendar-date.d.ts +29 -0
- package/types/fundamental-ngx-ui5-webcomponents-split-button.d.ts +102 -0
- package/types/fundamental-ngx-ui5-webcomponents-step-input.d.ts +121 -0
- package/types/fundamental-ngx-ui5-webcomponents-suggestion-item-custom.d.ts +55 -0
- package/types/fundamental-ngx-ui5-webcomponents-suggestion-item-group.d.ts +81 -0
- package/types/fundamental-ngx-ui5-webcomponents-suggestion-item.d.ts +35 -0
- package/types/fundamental-ngx-ui5-webcomponents-suggestion-list-item.d.ts +169 -0
- package/types/fundamental-ngx-ui5-webcomponents-switch.d.ts +99 -0
- package/types/fundamental-ngx-ui5-webcomponents-tab-container.d.ts +114 -0
- package/types/fundamental-ngx-ui5-webcomponents-tab-separator.d.ts +20 -0
- package/types/fundamental-ngx-ui5-webcomponents-tab.d.ts +91 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-cell.d.ts +55 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-group-row.d.ts +75 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-growing.d.ts +49 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-header-cell-action-a-i.d.ts +25 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-header-cell.d.ts +101 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-header-row.d.ts +51 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-row-action-navigation.d.ts +35 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-row-action.d.ts +46 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-row.d.ts +75 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-selection-multi.d.ts +37 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-selection-single.d.ts +33 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-selection.d.ts +33 -0
- package/types/fundamental-ngx-ui5-webcomponents-table-virtualizer.d.ts +43 -0
- package/types/fundamental-ngx-ui5-webcomponents-table.d.ts +123 -0
- package/types/fundamental-ngx-ui5-webcomponents-tag.d.ts +82 -0
- package/types/fundamental-ngx-ui5-webcomponents-text-area.d.ts +156 -0
- package/types/fundamental-ngx-ui5-webcomponents-text.d.ts +51 -0
- package/types/fundamental-ngx-ui5-webcomponents-theming.d.ts +11 -0
- package/types/fundamental-ngx-ui5-webcomponents-time-picker-clock.d.ts +20 -0
- package/types/fundamental-ngx-ui5-webcomponents-time-picker.d.ts +144 -0
- package/types/fundamental-ngx-ui5-webcomponents-time-selection-clocks.d.ts +33 -0
- package/types/fundamental-ngx-ui5-webcomponents-time-selection-inputs.d.ts +33 -0
- package/types/fundamental-ngx-ui5-webcomponents-title.d.ts +64 -0
- package/types/fundamental-ngx-ui5-webcomponents-toast.d.ts +66 -0
- package/types/fundamental-ngx-ui5-webcomponents-toggle-button.d.ts +167 -0
- package/types/fundamental-ngx-ui5-webcomponents-toggle-spin-button.d.ts +167 -0
- package/types/fundamental-ngx-ui5-webcomponents-token.d.ts +53 -0
- package/types/fundamental-ngx-ui5-webcomponents-tokenizer.d.ts +93 -0
- package/types/fundamental-ngx-ui5-webcomponents-toolbar-button.d.ts +118 -0
- package/types/fundamental-ngx-ui5-webcomponents-toolbar-item.d.ts +54 -0
- package/types/fundamental-ngx-ui5-webcomponents-toolbar-select-option.d.ts +49 -0
- package/types/fundamental-ngx-ui5-webcomponents-toolbar-select.d.ts +106 -0
- package/types/fundamental-ngx-ui5-webcomponents-toolbar-separator.d.ts +30 -0
- package/types/fundamental-ngx-ui5-webcomponents-toolbar-spacer.d.ts +36 -0
- package/types/fundamental-ngx-ui5-webcomponents-toolbar.d.ts +67 -0
- package/types/fundamental-ngx-ui5-webcomponents-tree-item-custom.d.ts +165 -0
- package/types/fundamental-ngx-ui5-webcomponents-tree-item.d.ts +168 -0
- package/types/fundamental-ngx-ui5-webcomponents-tree.d.ts +129 -0
- package/types/fundamental-ngx-ui5-webcomponents-year-picker.d.ts +59 -0
- package/types/fundamental-ngx-ui5-webcomponents-year-range-picker.d.ts +59 -0
- package/types/fundamental-ngx-ui5-webcomponents.d.ts +309 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-ui5-webcomponents-table.mjs","sources":["../../../../libs/ui5-webcomponents/table/index.ts","../../../../libs/ui5-webcomponents/table/fundamental-ngx-ui5-webcomponents-table.ts"],"sourcesContent":["\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n input,\n output,\n AfterViewInit,\n effect,\n runInInjectionContext,\n inject,\n Injector,\n booleanAttribute,\n computed,\n signal\n} from '@angular/core';\nimport '@ui5/webcomponents/dist/Table.js';\nimport { default as _Table } from '@ui5/webcomponents/dist/Table.js';\nimport { UI5CustomEvent } from '@ui5/webcomponents-base';\nimport {\n ContentDensityObserver,\n contentDensityObserverProviders,\n ContentDensityMode\n} from '@fundamental-ngx/core/content-density';\n\nimport { default as TableOverflowMode } from '@ui5/webcomponents/dist/types/TableOverflowMode.js';\n\n@Component({\n standalone: true,\n selector: 'ui5-table, [ui5-table]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5Table',\n providers: [\n contentDensityObserverProviders({\n supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]\n })\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Table implements AfterViewInit {\n\n /**\n * Defines the accessible ARIA name of the component.\n */\n accessibleName = input<typeof _Table.prototype.accessibleName | undefined>();\n\n /**\n * Identifies the element (or elements) that labels the component.\n */\n accessibleNameRef = input<typeof _Table.prototype.accessibleNameRef | undefined>();\n\n /**\n * Determines whether the table rows are displayed with alternating background colors.\n */\n alternateRowColors = input(false, { transform: booleanAttribute });\n\n /**\n * Defines if the loading indicator should be shown.\n\n**Note:** When the component is loading, it is not interactive.\n */\n loading = input(false, { transform: booleanAttribute });\n\n /**\n * Defines the delay in milliseconds, after which the loading indicator will show up for this component.\n */\n loadingDelay = input<typeof _Table.prototype.loadingDelay | undefined>(1000);\n\n /**\n * Defines the text to be displayed when there are no rows in the component.\n */\n noDataText = input<typeof _Table.prototype.noDataText | undefined>();\n\n /**\n * Defines the mode of the <code>ui5-table</code> overflow behavior.\n\nAvailable options are:\n\n<code>Scroll</code> - Columns are shown as regular columns and horizontal scrolling is enabled.\n<code>Popin</code> - Columns are shown as pop-ins instead of regular columns.\n */\n overflowMode = input<typeof _Table.prototype.overflowMode | undefined>(\"Scroll\");\n\n /**\n * Defines the maximum number of row actions that is displayed, which determines the width of the row action column.\n\n**Note:** It is recommended to use a maximum of 3 row actions, as exceeding this limit may take up too much space on smaller screens.\n */\n rowActionCount = input<typeof _Table.prototype.rowActionCount | undefined>(0); // className is now passed\n\n\n\n /**\n * Fired when a movable list item is dropped onto a drop target.\n\n**Notes:**\n\nThe `move` event is fired only if there was a preceding `move-over` with prevented default action.\n\nIf the dragging operation is a cross-browser operation or files are moved to a potential drop target,\nthe `source` parameter will be `null`.\n */\n ui5Move = output<UI5CustomEvent<_Table, 'move'>>();\n\n /**\n * Fired when a movable item is moved over a potential drop target during a dragging operation.\n\nIf the new position is valid, prevent the default action of the event using `preventDefault()`.\n\n**Note:** If the dragging operation is a cross-browser operation or files are moved to a potential drop target,\nthe `source` parameter will be `null`.\n */\n ui5MoveOver = output<UI5CustomEvent<_Table, 'move-over'>>();\n\n /**\n * Fired when a row action is clicked.\n */\n ui5RowActionClick = output<UI5CustomEvent<_Table, 'row-action-click'>>();\n\n /**\n * Fired when an interactive row is clicked.\n\n**Note:** This event is not fired if the `behavior` property of the selection component is set to `RowOnly`.\nIn that case, use the `change` event of the selection component instead.\n */\n ui5RowClick = output<UI5CustomEvent<_Table, 'row-click'>>();\n\n /**\n * Available slots for content projection in this component.\n *\n * Slots allow you to insert custom content into predefined areas of the web component.\n * Use the `slot` attribute on child elements to target specific slots.\n *\n * - **(default)**: Defines the rows of the component.\n\n**Note:** Use `ui5-table-row` for the intended design.\n * - **features**: Defines the features of the component.\n * - **headerRow**: Defines the header row of the component.\n\n**Note:** Use `ui5-table-header-row` for the intended design.\n * - **noData**: Defines the custom visualization if there is no data available.\n *\n * @example\n * ```html\n * <ui5-table>\n * <div slot=\"header\">Custom header content</div>\n * <p>Default slot content</p>\n * </ui5-table>\n * ```\n *\n * @readonly\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}\n */\n readonly slots = [\n {\n \"name\": \"default\",\n \"description\": \"Defines the rows of the component.\\n\\n**Note:** Use `ui5-table-row` for the intended design.\"\n },\n {\n \"name\": \"features\",\n \"description\": \"Defines the features of the component.\"\n },\n {\n \"name\": \"headerRow\",\n \"description\": \"Defines the header row of the component.\\n\\n**Note:** Use `ui5-table-header-row` for the intended design.\"\n },\n {\n \"name\": \"noData\",\n \"description\": \"Defines the custom visualization if there is no data available.\"\n }\n ];\n\n\n public elementRef: ElementRef<_Table> = inject(ElementRef);\n public injector = inject(Injector);\n\n /**\n * Content density observer is injected to activate automatic CSS class and\n * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.\n * @private\n */\n private readonly _contentDensityObserver = inject(ContentDensityObserver);\n\n get element(): _Table {\n return this.elementRef.nativeElement;\n }\n\n ngAfterViewInit(): void {\n const wcElement = this.element;\n \n const inputsToSync = [\n 'accessibleName',\n 'accessibleNameRef',\n 'alternateRowColors',\n 'loading',\n 'loadingDelay',\n 'noDataText',\n 'overflowMode',\n 'rowActionCount',\n ];\n \n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x: string) => x[1].toUpperCase());\n\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n \n \n const outputsToSync = [\n 'ui5Move',\n 'ui5MoveOver',\n 'ui5RowActionClick',\n 'ui5RowClick',\n ];\n \n // Synchronize outputs (events)\n for (const outputName of outputsToSync) {\n // Map Angular output name to UI5 web component event name\n const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);\n // Ensure the output property exists and has an emit function before adding listener\n if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {\n // Cast the listener to the correct type to satisfy TypeScript\n wcElement.addEventListener(eventName, (e) => {\n\n this[outputName].emit(e as CustomEvent<any>);\n });\n }\n }\n \n\n }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAuCa,KAAK,CAAA;AAZlB,IAAA,WAAA,GAAA;AAcE;;AAEG;QACH,IAAA,CAAA,cAAc,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAsD;AAE5E;;AAEG;QACH,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAA,IAAA,SAA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ANS,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAS1B,KAAK,EAAA,UAAA,EAAA,CAAA;kBAZjB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,SAAS,EAAE;AACT,wBAAA,+BAA+B,CAAC;4BAC9B,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,IAAI;yBAC9E;AACF,qBAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;ACtCD;;AAEG;;;;"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, output, inject, ElementRef, Injector, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import '@ui5/webcomponents/dist/Tag.js';
|
|
4
|
+
import { ContentDensityObserver, contentDensityObserverProviders, ContentDensityMode } from '@fundamental-ngx/core/content-density';
|
|
5
|
+
|
|
6
|
+
class Tag {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the color scheme of the component.
|
|
10
|
+
There are 10 predefined schemes.
|
|
11
|
+
To use one you can set a number from `"1"` to `"10"`. The `colorScheme` `"1"` will be set by default.
|
|
12
|
+
*/
|
|
13
|
+
this.colorScheme = input("1", ...(ngDevMode ? [{ debugName: "colorScheme" }] : []));
|
|
14
|
+
/**
|
|
15
|
+
* Defines the design type of the component.
|
|
16
|
+
*/
|
|
17
|
+
this.design = input("Neutral", ...(ngDevMode ? [{ debugName: "design" }] : []));
|
|
18
|
+
/**
|
|
19
|
+
* Defines if the default state icon is shown.
|
|
20
|
+
*/
|
|
21
|
+
this.hideStateIcon = input(false, { ...(ngDevMode ? { debugName: "hideStateIcon" } : {}), transform: booleanAttribute });
|
|
22
|
+
/**
|
|
23
|
+
* Defines if the component is interactive (focusable and pressable).
|
|
24
|
+
*/
|
|
25
|
+
this.interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : {}), transform: booleanAttribute });
|
|
26
|
+
/**
|
|
27
|
+
* Defines predefined size of the component.
|
|
28
|
+
*/
|
|
29
|
+
this.size = input("S", ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
30
|
+
/**
|
|
31
|
+
* Defines how the text of a component will be displayed when there is not enough space.
|
|
32
|
+
|
|
33
|
+
**Note:** For option "Normal" the text will wrap and the
|
|
34
|
+
words will not be broken based on hyphenation.
|
|
35
|
+
*/
|
|
36
|
+
this.wrappingType = input("Normal", ...(ngDevMode ? [{ debugName: "wrappingType" }] : [])); // className is now passed
|
|
37
|
+
/**
|
|
38
|
+
* Fired when the user clicks on an interactive tag.
|
|
39
|
+
|
|
40
|
+
**Note:** The event will be fired if the `interactive` property is `true`
|
|
41
|
+
*/
|
|
42
|
+
this.ui5Click = output();
|
|
43
|
+
/**
|
|
44
|
+
* Available slots for content projection in this component.
|
|
45
|
+
*
|
|
46
|
+
* Slots allow you to insert custom content into predefined areas of the web component.
|
|
47
|
+
* Use the `slot` attribute on child elements to target specific slots.
|
|
48
|
+
*
|
|
49
|
+
* - **(default)**: Defines the text of the component.
|
|
50
|
+
|
|
51
|
+
**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.
|
|
52
|
+
* - **icon**: Defines the icon to be displayed in the component.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```html
|
|
56
|
+
* <ui5-tag>
|
|
57
|
+
* <div slot="header">Custom header content</div>
|
|
58
|
+
* <p>Default slot content</p>
|
|
59
|
+
* </ui5-tag>
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @readonly
|
|
63
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
|
|
64
|
+
*/
|
|
65
|
+
this.slots = [
|
|
66
|
+
{
|
|
67
|
+
"name": "default",
|
|
68
|
+
"description": "Defines the text of the component.\n\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "icon",
|
|
72
|
+
"description": "Defines the icon to be displayed in the component."
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
this.elementRef = inject(ElementRef);
|
|
76
|
+
this.injector = inject(Injector);
|
|
77
|
+
/**
|
|
78
|
+
* Content density observer is injected to activate automatic CSS class and
|
|
79
|
+
* UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.
|
|
80
|
+
* @private
|
|
81
|
+
*/
|
|
82
|
+
this._contentDensityObserver = inject(ContentDensityObserver);
|
|
83
|
+
}
|
|
84
|
+
get element() {
|
|
85
|
+
return this.elementRef.nativeElement;
|
|
86
|
+
}
|
|
87
|
+
ngAfterViewInit() {
|
|
88
|
+
const wcElement = this.element;
|
|
89
|
+
const inputsToSync = [
|
|
90
|
+
'colorScheme',
|
|
91
|
+
'design',
|
|
92
|
+
'hideStateIcon',
|
|
93
|
+
'interactive',
|
|
94
|
+
'size',
|
|
95
|
+
'wrappingType',
|
|
96
|
+
];
|
|
97
|
+
// Synchronize inputs (properties)
|
|
98
|
+
for (const inputName of inputsToSync) {
|
|
99
|
+
// Find the corresponding camelCase signal property on the Angular component
|
|
100
|
+
const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
|
|
101
|
+
// Use the Injector to run the effect in the correct context
|
|
102
|
+
if (this[signalName] && typeof this[signalName] === 'function') {
|
|
103
|
+
runInInjectionContext(this.injector, () => {
|
|
104
|
+
effect(() => {
|
|
105
|
+
// Read the signal value
|
|
106
|
+
const value = this[signalName]();
|
|
107
|
+
if (wcElement) {
|
|
108
|
+
// Write the value to the Web Component's property
|
|
109
|
+
wcElement[inputName] = value;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const outputsToSync = [
|
|
116
|
+
'ui5Click',
|
|
117
|
+
];
|
|
118
|
+
// Synchronize outputs (events)
|
|
119
|
+
for (const outputName of outputsToSync) {
|
|
120
|
+
// Map Angular output name to UI5 web component event name
|
|
121
|
+
const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);
|
|
122
|
+
// Ensure the output property exists and has an emit function before adding listener
|
|
123
|
+
if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {
|
|
124
|
+
// Cast the listener to the correct type to satisfy TypeScript
|
|
125
|
+
wcElement.addEventListener(eventName, (e) => {
|
|
126
|
+
this[outputName].emit(e);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: Tag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
132
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.0", type: Tag, isStandalone: true, selector: "ui5-tag, [ui5-tag]", inputs: { colorScheme: { classPropertyName: "colorScheme", publicName: "colorScheme", isSignal: true, isRequired: false, transformFunction: null }, design: { classPropertyName: "design", publicName: "design", isSignal: true, isRequired: false, transformFunction: null }, hideStateIcon: { classPropertyName: "hideStateIcon", publicName: "hideStateIcon", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, wrappingType: { classPropertyName: "wrappingType", publicName: "wrappingType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5Click: "ui5Click" }, providers: [
|
|
133
|
+
contentDensityObserverProviders({
|
|
134
|
+
supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
|
|
135
|
+
})
|
|
136
|
+
], exportAs: ["ui5Tag"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
137
|
+
}
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: Tag, decorators: [{
|
|
139
|
+
type: Component,
|
|
140
|
+
args: [{
|
|
141
|
+
standalone: true,
|
|
142
|
+
selector: 'ui5-tag, [ui5-tag]',
|
|
143
|
+
template: '<ng-content></ng-content>',
|
|
144
|
+
exportAs: 'ui5Tag',
|
|
145
|
+
providers: [
|
|
146
|
+
contentDensityObserverProviders({
|
|
147
|
+
supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
|
|
148
|
+
})
|
|
149
|
+
],
|
|
150
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
151
|
+
}]
|
|
152
|
+
}], propDecorators: { colorScheme: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorScheme", required: false }] }], design: [{ type: i0.Input, args: [{ isSignal: true, alias: "design", required: false }] }], hideStateIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideStateIcon", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], wrappingType: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrappingType", required: false }] }], ui5Click: [{ type: i0.Output, args: ["ui5Click"] }] } });
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Generated bundle index. Do not edit.
|
|
156
|
+
*/
|
|
157
|
+
|
|
158
|
+
export { Tag };
|
|
159
|
+
//# sourceMappingURL=fundamental-ngx-ui5-webcomponents-tag.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-ui5-webcomponents-tag.mjs","sources":["../../../../libs/ui5-webcomponents/tag/index.ts","../../../../libs/ui5-webcomponents/tag/fundamental-ngx-ui5-webcomponents-tag.ts"],"sourcesContent":["\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n input,\n output,\n AfterViewInit,\n effect,\n runInInjectionContext,\n inject,\n Injector,\n booleanAttribute,\n computed,\n signal\n} from '@angular/core';\nimport '@ui5/webcomponents/dist/Tag.js';\nimport { default as _Tag } from '@ui5/webcomponents/dist/Tag.js';\nimport { UI5CustomEvent } from '@ui5/webcomponents-base';\nimport {\n ContentDensityObserver,\n contentDensityObserverProviders,\n ContentDensityMode\n} from '@fundamental-ngx/core/content-density';\n\nimport { default as TagDesign } from '@ui5/webcomponents/dist/types/TagDesign.js';\nimport { default as TagSize } from '@ui5/webcomponents/dist/types/TagSize.js';\nimport { default as WrappingType } from '@ui5/webcomponents/dist/types/WrappingType.js';\n\n@Component({\n standalone: true,\n selector: 'ui5-tag, [ui5-tag]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5Tag',\n providers: [\n contentDensityObserverProviders({\n supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]\n })\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Tag implements AfterViewInit {\n\n /**\n * Defines the color scheme of the component.\nThere are 10 predefined schemes.\nTo use one you can set a number from `\"1\"` to `\"10\"`. The `colorScheme` `\"1\"` will be set by default.\n */\n colorScheme = input<typeof _Tag.prototype.colorScheme | undefined>(\"1\");\n\n /**\n * Defines the design type of the component.\n */\n design = input<typeof _Tag.prototype.design | undefined>(\"Neutral\");\n\n /**\n * Defines if the default state icon is shown.\n */\n hideStateIcon = input(false, { transform: booleanAttribute });\n\n /**\n * Defines if the component is interactive (focusable and pressable).\n */\n interactive = input(false, { transform: booleanAttribute });\n\n /**\n * Defines predefined size of the component.\n */\n size = input<typeof _Tag.prototype.size | undefined>(\"S\");\n\n /**\n * Defines how the text of a component will be displayed when there is not enough space.\n\n**Note:** For option \"Normal\" the text will wrap and the\nwords will not be broken based on hyphenation.\n */\n wrappingType = input<typeof _Tag.prototype.wrappingType | undefined>(\"Normal\"); // className is now passed\n\n\n\n /**\n * Fired when the user clicks on an interactive tag.\n\n**Note:** The event will be fired if the `interactive` property is `true`\n */\n ui5Click = output<UI5CustomEvent<_Tag, 'click'>>();\n\n /**\n * Available slots for content projection in this component.\n *\n * Slots allow you to insert custom content into predefined areas of the web component.\n * Use the `slot` attribute on child elements to target specific slots.\n *\n * - **(default)**: Defines the text of the component.\n\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.\n * - **icon**: Defines the icon to be displayed in the component.\n *\n * @example\n * ```html\n * <ui5-tag>\n * <div slot=\"header\">Custom header content</div>\n * <p>Default slot content</p>\n * </ui5-tag>\n * ```\n *\n * @readonly\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}\n */\n readonly slots = [\n {\n \"name\": \"default\",\n \"description\": \"Defines the text of the component.\\n\\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.\"\n },\n {\n \"name\": \"icon\",\n \"description\": \"Defines the icon to be displayed in the component.\"\n }\n ];\n\n\n public elementRef: ElementRef<_Tag> = inject(ElementRef);\n public injector = inject(Injector);\n\n /**\n * Content density observer is injected to activate automatic CSS class and\n * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.\n * @private\n */\n private readonly _contentDensityObserver = inject(ContentDensityObserver);\n\n get element(): _Tag {\n return this.elementRef.nativeElement;\n }\n\n ngAfterViewInit(): void {\n const wcElement = this.element;\n \n const inputsToSync = [\n 'colorScheme',\n 'design',\n 'hideStateIcon',\n 'interactive',\n 'size',\n 'wrappingType',\n ];\n \n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x: string) => x[1].toUpperCase());\n\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n \n \n const outputsToSync = [\n 'ui5Click',\n ];\n \n // Synchronize outputs (events)\n for (const outputName of outputsToSync) {\n // Map Angular output name to UI5 web component event name\n const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);\n // Ensure the output property exists and has an emit function before adding listener\n if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {\n // Cast the listener to the correct type to satisfy TypeScript\n wcElement.addEventListener(eventName, (e) => {\n\n this[outputName].emit(e as CustomEvent<any>);\n });\n }\n }\n \n\n }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAyCa,GAAG,CAAA;AAZhB,IAAA,WAAA,GAAA;AAcE;;;;AAIG;AACH,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAgD,GAAG,uDAAC;AAEvE;;AAEG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2C,SAAS,kDAAC;AAEnE;;AAEG;QACH,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,KAAK,0DAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE7D;;AAEG;QACH,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,KAAK,wDAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE3D;;AAEG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAyC,GAAG,gDAAC;AAEzD;;;;;AAKG;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAiD,QAAQ,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,cAAA,E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QAAQ,EAAE,QAAQ;AAClB,oBAAA,SAAS,EAAE;AACT,wBAAA,+BAA+B,CAAC;4BAC9B,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,IAAI;yBAC9E;AACF,qBAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;ACxCD;;AAEG;;;;"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, output, inject, ElementRef, Injector, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import '@ui5/webcomponents/dist/TextArea.js';
|
|
4
|
+
import { ContentDensityObserver, contentDensityObserverProviders, ContentDensityMode } from '@fundamental-ngx/core/content-density';
|
|
5
|
+
import * as i1 from '@fundamental-ngx/ui5-webcomponents/utils';
|
|
6
|
+
import { CVA_CONFIG, GenericControlValueAccessor } from '@fundamental-ngx/ui5-webcomponents/utils';
|
|
7
|
+
|
|
8
|
+
class TextArea {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Defines the accessible description of the component.
|
|
12
|
+
*/
|
|
13
|
+
this.accessibleDescription = input(...(ngDevMode ? [undefined, { debugName: "accessibleDescription" }] : []));
|
|
14
|
+
/**
|
|
15
|
+
* Receives id(or many ids) of the elements that describe the textarea.
|
|
16
|
+
*/
|
|
17
|
+
this.accessibleDescriptionRef = input(...(ngDevMode ? [undefined, { debugName: "accessibleDescriptionRef" }] : []));
|
|
18
|
+
/**
|
|
19
|
+
* Defines the accessible ARIA name of the component.
|
|
20
|
+
*/
|
|
21
|
+
this.accessibleName = input(...(ngDevMode ? [undefined, { debugName: "accessibleName" }] : []));
|
|
22
|
+
/**
|
|
23
|
+
* Receives id(or many ids) of the elements that label the textarea.
|
|
24
|
+
*/
|
|
25
|
+
this.accessibleNameRef = input(...(ngDevMode ? [undefined, { debugName: "accessibleNameRef" }] : []));
|
|
26
|
+
/**
|
|
27
|
+
* Indicates whether the user can interact with the component or not.
|
|
28
|
+
|
|
29
|
+
**Note:** A disabled component is completely noninteractive.
|
|
30
|
+
*/
|
|
31
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
|
|
32
|
+
/**
|
|
33
|
+
* Enables the component to automatically grow and shrink dynamically with its content.
|
|
34
|
+
*/
|
|
35
|
+
this.growing = input(false, { ...(ngDevMode ? { debugName: "growing" } : {}), transform: booleanAttribute });
|
|
36
|
+
/**
|
|
37
|
+
* Defines the maximum number of rows that the component can grow.
|
|
38
|
+
*/
|
|
39
|
+
this.growingMaxRows = input(0, ...(ngDevMode ? [{ debugName: "growingMaxRows" }] : []));
|
|
40
|
+
/**
|
|
41
|
+
* Defines the maximum number of characters that the `value` can have.
|
|
42
|
+
*/
|
|
43
|
+
this.maxlength = input(...(ngDevMode ? [undefined, { debugName: "maxlength" }] : []));
|
|
44
|
+
/**
|
|
45
|
+
* Determines the name by which the component will be identified upon submission in an HTML form.
|
|
46
|
+
|
|
47
|
+
**Note:** This property is only applicable within the context of an HTML Form element.
|
|
48
|
+
*/
|
|
49
|
+
this.name = input(...(ngDevMode ? [undefined, { debugName: "name" }] : []));
|
|
50
|
+
/**
|
|
51
|
+
* Defines a short hint intended to aid the user with data entry when the component has no value.
|
|
52
|
+
*/
|
|
53
|
+
this.placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
|
|
54
|
+
/**
|
|
55
|
+
* Defines whether the component is read-only.
|
|
56
|
+
|
|
57
|
+
**Note:** A read-only component is not editable,
|
|
58
|
+
but still provides visual feedback upon user interaction.
|
|
59
|
+
*/
|
|
60
|
+
this.readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: booleanAttribute });
|
|
61
|
+
/**
|
|
62
|
+
* Defines whether the component is required.
|
|
63
|
+
*/
|
|
64
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: booleanAttribute });
|
|
65
|
+
/**
|
|
66
|
+
* Defines the number of visible text rows for the component.
|
|
67
|
+
|
|
68
|
+
**Notes:**
|
|
69
|
+
|
|
70
|
+
- If the `growing` property is enabled, this property defines the minimum rows to be displayed
|
|
71
|
+
in the textarea.
|
|
72
|
+
- The CSS `height` property wins over the `rows` property, if both are set.
|
|
73
|
+
*/
|
|
74
|
+
this.rows = input(0, ...(ngDevMode ? [{ debugName: "rows" }] : []));
|
|
75
|
+
/**
|
|
76
|
+
* Determines whether the characters exceeding the maximum allowed character count are visible
|
|
77
|
+
in the component.
|
|
78
|
+
|
|
79
|
+
If set to `false`, the user is not allowed to enter more characters than what is set in the
|
|
80
|
+
`maxlength` property.
|
|
81
|
+
If set to `true` the characters exceeding the `maxlength` value are selected on
|
|
82
|
+
paste and the counter below the component displays their number.
|
|
83
|
+
*/
|
|
84
|
+
this.showExceededText = input(false, { ...(ngDevMode ? { debugName: "showExceededText" } : {}), transform: booleanAttribute });
|
|
85
|
+
/**
|
|
86
|
+
* Defines the value of the component.
|
|
87
|
+
*/
|
|
88
|
+
this.value = input("", ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
89
|
+
/**
|
|
90
|
+
* Defines the value state of the component.
|
|
91
|
+
|
|
92
|
+
**Note:** If `maxlength` property is set,
|
|
93
|
+
the component turns into "Critical" state once the characters exceeds the limit.
|
|
94
|
+
In this case, only the "Negative" state is considered and can be applied.
|
|
95
|
+
*/
|
|
96
|
+
this.valueState = input("None", ...(ngDevMode ? [{ debugName: "valueState" }] : [])); // className is now passed
|
|
97
|
+
/**
|
|
98
|
+
* Fired when the text has changed and the focus leaves the component.
|
|
99
|
+
*/
|
|
100
|
+
this.ui5Change = output();
|
|
101
|
+
/**
|
|
102
|
+
* Fired when the value of the component changes at each keystroke or when
|
|
103
|
+
something is pasted.
|
|
104
|
+
*/
|
|
105
|
+
this.ui5Input = output();
|
|
106
|
+
/**
|
|
107
|
+
* Fired when textarea is scrolled.
|
|
108
|
+
*/
|
|
109
|
+
this.ui5Scroll = output();
|
|
110
|
+
/**
|
|
111
|
+
* Fired when some text has been selected.
|
|
112
|
+
*/
|
|
113
|
+
this.ui5Select = output();
|
|
114
|
+
/**
|
|
115
|
+
* Available slots for content projection in this component.
|
|
116
|
+
*
|
|
117
|
+
* Slots allow you to insert custom content into predefined areas of the web component.
|
|
118
|
+
* Use the `slot` attribute on child elements to target specific slots.
|
|
119
|
+
*
|
|
120
|
+
* - **valueStateMessage**: Defines the value state message that will be displayed as pop up under the component.
|
|
121
|
+
The value state message slot should contain only one root element.
|
|
122
|
+
|
|
123
|
+
**Note:** If not specified, a default text (in the respective language) will be displayed.
|
|
124
|
+
|
|
125
|
+
**Note:** The `valueStateMessage` would be displayed if the component has
|
|
126
|
+
`valueState` of type `Information`, `Critical` or `Negative`.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```html
|
|
130
|
+
* <ui5-textarea>
|
|
131
|
+
* <div slot="header">Custom header content</div>
|
|
132
|
+
* <p>Default slot content</p>
|
|
133
|
+
* </ui5-textarea>
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @readonly
|
|
137
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
|
|
138
|
+
*/
|
|
139
|
+
this.slots = [
|
|
140
|
+
{
|
|
141
|
+
"name": "valueStateMessage",
|
|
142
|
+
"description": "Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n \n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed if the component has\n`valueState` of type `Information`, `Critical` or `Negative`.",
|
|
143
|
+
"since": "1.0.0-rc.7"
|
|
144
|
+
}
|
|
145
|
+
];
|
|
146
|
+
this.elementRef = inject(ElementRef);
|
|
147
|
+
this.injector = inject(Injector);
|
|
148
|
+
/**
|
|
149
|
+
* Content density observer is injected to activate automatic CSS class and
|
|
150
|
+
* UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.
|
|
151
|
+
* @private
|
|
152
|
+
*/
|
|
153
|
+
this._contentDensityObserver = inject(ContentDensityObserver);
|
|
154
|
+
}
|
|
155
|
+
get element() {
|
|
156
|
+
return this.elementRef.nativeElement;
|
|
157
|
+
}
|
|
158
|
+
ngAfterViewInit() {
|
|
159
|
+
const wcElement = this.element;
|
|
160
|
+
const inputsToSync = [
|
|
161
|
+
'accessibleDescription',
|
|
162
|
+
'accessibleDescriptionRef',
|
|
163
|
+
'accessibleName',
|
|
164
|
+
'accessibleNameRef',
|
|
165
|
+
'disabled',
|
|
166
|
+
'growing',
|
|
167
|
+
'growingMaxRows',
|
|
168
|
+
'maxlength',
|
|
169
|
+
'name',
|
|
170
|
+
'placeholder',
|
|
171
|
+
'readonly',
|
|
172
|
+
'required',
|
|
173
|
+
'rows',
|
|
174
|
+
'showExceededText',
|
|
175
|
+
'value',
|
|
176
|
+
'valueState',
|
|
177
|
+
];
|
|
178
|
+
// Synchronize inputs (properties)
|
|
179
|
+
for (const inputName of inputsToSync) {
|
|
180
|
+
// Find the corresponding camelCase signal property on the Angular component
|
|
181
|
+
const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
|
|
182
|
+
// Use the Injector to run the effect in the correct context
|
|
183
|
+
if (this[signalName] && typeof this[signalName] === 'function') {
|
|
184
|
+
runInInjectionContext(this.injector, () => {
|
|
185
|
+
effect(() => {
|
|
186
|
+
// Read the signal value
|
|
187
|
+
const value = this[signalName]();
|
|
188
|
+
if (wcElement) {
|
|
189
|
+
// Write the value to the Web Component's property
|
|
190
|
+
wcElement[inputName] = value;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const outputsToSync = [
|
|
197
|
+
'ui5Change',
|
|
198
|
+
'ui5Input',
|
|
199
|
+
'ui5Scroll',
|
|
200
|
+
'ui5Select',
|
|
201
|
+
];
|
|
202
|
+
// Synchronize outputs (events)
|
|
203
|
+
for (const outputName of outputsToSync) {
|
|
204
|
+
// Map Angular output name to UI5 web component event name
|
|
205
|
+
const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);
|
|
206
|
+
// Ensure the output property exists and has an emit function before adding listener
|
|
207
|
+
if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {
|
|
208
|
+
// Cast the listener to the correct type to satisfy TypeScript
|
|
209
|
+
wcElement.addEventListener(eventName, (e) => {
|
|
210
|
+
this[outputName].emit(e);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TextArea, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.0", type: TextArea, isStandalone: true, selector: "ui5-textarea, [ui5-textarea]", inputs: { accessibleDescription: { classPropertyName: "accessibleDescription", publicName: "accessibleDescription", isSignal: true, isRequired: false, transformFunction: null }, accessibleDescriptionRef: { classPropertyName: "accessibleDescriptionRef", publicName: "accessibleDescriptionRef", isSignal: true, isRequired: false, transformFunction: null }, accessibleName: { classPropertyName: "accessibleName", publicName: "accessibleName", isSignal: true, isRequired: false, transformFunction: null }, accessibleNameRef: { classPropertyName: "accessibleNameRef", publicName: "accessibleNameRef", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, growing: { classPropertyName: "growing", publicName: "growing", isSignal: true, isRequired: false, transformFunction: null }, growingMaxRows: { classPropertyName: "growingMaxRows", publicName: "growingMaxRows", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, showExceededText: { classPropertyName: "showExceededText", publicName: "showExceededText", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueState: { classPropertyName: "valueState", publicName: "valueState", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5Change: "ui5Change", ui5Input: "ui5Input", ui5Scroll: "ui5Scroll", ui5Select: "ui5Select" }, providers: [
|
|
217
|
+
contentDensityObserverProviders({
|
|
218
|
+
supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
|
|
219
|
+
}),
|
|
220
|
+
{
|
|
221
|
+
provide: CVA_CONFIG,
|
|
222
|
+
useValue: {
|
|
223
|
+
property: 'value',
|
|
224
|
+
events: ['change', 'input'],
|
|
225
|
+
transformValue: (v) => v || ''
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
], exportAs: ["ui5TextArea"], hostDirectives: [{ directive: i1.GenericControlValueAccessor }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
229
|
+
}
|
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TextArea, decorators: [{
|
|
231
|
+
type: Component,
|
|
232
|
+
args: [{
|
|
233
|
+
standalone: true,
|
|
234
|
+
selector: 'ui5-textarea, [ui5-textarea]',
|
|
235
|
+
template: '<ng-content></ng-content>',
|
|
236
|
+
exportAs: 'ui5TextArea',
|
|
237
|
+
hostDirectives: [GenericControlValueAccessor],
|
|
238
|
+
providers: [
|
|
239
|
+
contentDensityObserverProviders({
|
|
240
|
+
supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
|
|
241
|
+
}),
|
|
242
|
+
{
|
|
243
|
+
provide: CVA_CONFIG,
|
|
244
|
+
useValue: {
|
|
245
|
+
property: 'value',
|
|
246
|
+
events: ['change', 'input'],
|
|
247
|
+
transformValue: (v) => v || ''
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
252
|
+
}]
|
|
253
|
+
}], propDecorators: { accessibleDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleDescription", required: false }] }], accessibleDescriptionRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleDescriptionRef", required: false }] }], accessibleName: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleName", required: false }] }], accessibleNameRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleNameRef", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], growing: [{ type: i0.Input, args: [{ isSignal: true, alias: "growing", required: false }] }], growingMaxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "growingMaxRows", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], showExceededText: [{ type: i0.Input, args: [{ isSignal: true, alias: "showExceededText", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], valueState: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueState", required: false }] }], ui5Change: [{ type: i0.Output, args: ["ui5Change"] }], ui5Input: [{ type: i0.Output, args: ["ui5Input"] }], ui5Scroll: [{ type: i0.Output, args: ["ui5Scroll"] }], ui5Select: [{ type: i0.Output, args: ["ui5Select"] }] } });
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Generated bundle index. Do not edit.
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
export { TextArea };
|
|
260
|
+
//# sourceMappingURL=fundamental-ngx-ui5-webcomponents-text-area.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fundamental-ngx-ui5-webcomponents-text-area.mjs","sources":["../../../../libs/ui5-webcomponents/text-area/index.ts","../../../../libs/ui5-webcomponents/text-area/fundamental-ngx-ui5-webcomponents-text-area.ts"],"sourcesContent":["\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n input,\n output,\n AfterViewInit,\n effect,\n runInInjectionContext,\n inject,\n Injector,\n booleanAttribute,\n computed,\n signal\n} from '@angular/core';\nimport '@ui5/webcomponents/dist/TextArea.js';\nimport { default as _TextArea } from '@ui5/webcomponents/dist/TextArea.js';\nimport { UI5CustomEvent } from '@ui5/webcomponents-base';\nimport {\n ContentDensityObserver,\n contentDensityObserverProviders,\n ContentDensityMode\n} from '@fundamental-ngx/core/content-density';\nimport { GenericControlValueAccessor, CVA_CONFIG } from '@fundamental-ngx/ui5-webcomponents/utils';\nimport { default as ValueState } from '@ui5/webcomponents-base/dist/types/ValueState.js';\n\n@Component({\n standalone: true,\n selector: 'ui5-textarea, [ui5-textarea]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5TextArea',\n hostDirectives: [GenericControlValueAccessor],\n providers: [\n contentDensityObserverProviders({\n supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]\n }),\n {\n provide: CVA_CONFIG,\n useValue: {\n property: 'value',\n events: ['change', 'input'],\n transformValue: (v) => v || ''\n }\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TextArea implements AfterViewInit {\n\n /**\n * Defines the accessible description of the component.\n */\n accessibleDescription = input<typeof _TextArea.prototype.accessibleDescription | undefined>();\n\n /**\n * Receives id(or many ids) of the elements that describe the textarea.\n */\n accessibleDescriptionRef = input<typeof _TextArea.prototype.accessibleDescriptionRef | undefined>();\n\n /**\n * Defines the accessible ARIA name of the component.\n */\n accessibleName = input<typeof _TextArea.prototype.accessibleName | undefined>();\n\n /**\n * Receives id(or many ids) of the elements that label the textarea.\n */\n accessibleNameRef = input<typeof _TextArea.prototype.accessibleNameRef | undefined>();\n\n /**\n * Indicates whether the user can interact with the component or not.\n\n**Note:** A disabled component is completely noninteractive.\n */\n disabled = input(false, { transform: booleanAttribute });\n\n /**\n * Enables the component to automatically grow and shrink dynamically with its content.\n */\n growing = input(false, { transform: booleanAttribute });\n\n /**\n * Defines the maximum number of rows that the component can grow.\n */\n growingMaxRows = input<typeof _TextArea.prototype.growingMaxRows | undefined>(0);\n\n /**\n * Defines the maximum number of characters that the `value` can have.\n */\n maxlength = input<typeof _TextArea.prototype.maxlength | undefined>();\n\n /**\n * Determines the name by which the component will be identified upon submission in an HTML form.\n\n**Note:** This property is only applicable within the context of an HTML Form element.\n */\n name = input<typeof _TextArea.prototype.name | undefined>();\n\n /**\n * Defines a short hint intended to aid the user with data entry when the component has no value.\n */\n placeholder = input<typeof _TextArea.prototype.placeholder | undefined>();\n\n /**\n * Defines whether the component is read-only.\n\n**Note:** A read-only component is not editable,\nbut still provides visual feedback upon user interaction.\n */\n readonly = input(false, { transform: booleanAttribute });\n\n /**\n * Defines whether the component is required.\n */\n required = input(false, { transform: booleanAttribute });\n\n /**\n * Defines the number of visible text rows for the component.\n\n**Notes:**\n\n- If the `growing` property is enabled, this property defines the minimum rows to be displayed\nin the textarea.\n- The CSS `height` property wins over the `rows` property, if both are set.\n */\n rows = input<typeof _TextArea.prototype.rows | undefined>(0);\n\n /**\n * Determines whether the characters exceeding the maximum allowed character count are visible\nin the component.\n\nIf set to `false`, the user is not allowed to enter more characters than what is set in the\n`maxlength` property.\nIf set to `true` the characters exceeding the `maxlength` value are selected on\npaste and the counter below the component displays their number.\n */\n showExceededText = input(false, { transform: booleanAttribute });\n\n /**\n * Defines the value of the component.\n */\n value = input<typeof _TextArea.prototype.value | undefined>(\"\");\n\n /**\n * Defines the value state of the component.\n\n**Note:** If `maxlength` property is set,\nthe component turns into \"Critical\" state once the characters exceeds the limit.\nIn this case, only the \"Negative\" state is considered and can be applied.\n */\n valueState = input<typeof _TextArea.prototype.valueState | undefined>(\"None\"); // className is now passed\n\n\n\n /**\n * Fired when the text has changed and the focus leaves the component.\n */\n ui5Change = output<UI5CustomEvent<_TextArea, 'change'>>();\n\n /**\n * Fired when the value of the component changes at each keystroke or when\nsomething is pasted.\n */\n ui5Input = output<UI5CustomEvent<_TextArea, 'input'>>();\n\n /**\n * Fired when textarea is scrolled.\n */\n ui5Scroll = output<UI5CustomEvent<_TextArea, 'scroll'>>();\n\n /**\n * Fired when some text has been selected.\n */\n ui5Select = output<UI5CustomEvent<_TextArea, 'select'>>();\n\n /**\n * Available slots for content projection in this component.\n *\n * Slots allow you to insert custom content into predefined areas of the web component.\n * Use the `slot` attribute on child elements to target specific slots.\n *\n * - **valueStateMessage**: Defines the value state message that will be displayed as pop up under the component.\nThe value state message slot should contain only one root element.\n \n**Note:** If not specified, a default text (in the respective language) will be displayed.\n\n**Note:** The `valueStateMessage` would be displayed if the component has\n`valueState` of type `Information`, `Critical` or `Negative`.\n *\n * @example\n * ```html\n * <ui5-textarea>\n * <div slot=\"header\">Custom header content</div>\n * <p>Default slot content</p>\n * </ui5-textarea>\n * ```\n *\n * @readonly\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}\n */\n readonly slots = [\n {\n \"name\": \"valueStateMessage\",\n \"description\": \"Defines the value state message that will be displayed as pop up under the component.\\nThe value state message slot should contain only one root element.\\n \\n**Note:** If not specified, a default text (in the respective language) will be displayed.\\n\\n**Note:** The `valueStateMessage` would be displayed if the component has\\n`valueState` of type `Information`, `Critical` or `Negative`.\",\n \"since\": \"1.0.0-rc.7\"\n }\n ];\n\n\n public elementRef: ElementRef<_TextArea> = inject(ElementRef);\n public injector = inject(Injector);\n\n /**\n * Content density observer is injected to activate automatic CSS class and\n * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.\n * @private\n */\n private readonly _contentDensityObserver = inject(ContentDensityObserver);\n\n get element(): _TextArea {\n return this.elementRef.nativeElement;\n }\n\n ngAfterViewInit(): void {\n const wcElement = this.element;\n \n const inputsToSync = [\n 'accessibleDescription',\n 'accessibleDescriptionRef',\n 'accessibleName',\n 'accessibleNameRef',\n 'disabled',\n 'growing',\n 'growingMaxRows',\n 'maxlength',\n 'name',\n 'placeholder',\n 'readonly',\n 'required',\n 'rows',\n 'showExceededText',\n 'value',\n 'valueState',\n ];\n \n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x: string) => x[1].toUpperCase());\n\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n \n \n const outputsToSync = [\n 'ui5Change',\n 'ui5Input',\n 'ui5Scroll',\n 'ui5Select',\n ];\n \n // Synchronize outputs (events)\n for (const outputName of outputsToSync) {\n // Map Angular output name to UI5 web component event name\n const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);\n // Ensure the output property exists and has an emit function before adding listener\n if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {\n // Cast the listener to the correct type to satisfy TypeScript\n wcElement.addEventListener(eventName, (e) => {\n\n this[outputName].emit(e as CustomEvent<any>);\n });\n }\n }\n \n\n }\n}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AQ,EAAE,OAAO,CAAC;oBAC3B,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI;AAC7B;AACF;AACF,SAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,2BAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAfS,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAkB1B,QAAQ,EAAA,UAAA,EAAA,CAAA;kBArBpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,8BAA8B;AACxC,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE,aAAa;oBACvB,cAAc,EAAE,CAAC,2BAA2B,CAAC;AAC7C,oBAAA,SAAS,EAAE;AACT,wBAAA,+BAA+B,CAAC;4BAC9B,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,IAAI;yBAC9E,CAAC;AACF,wBAAA;AACE,4BAAA,OAAO,EAAE,UAAU;AACnB,4BAAA,QAAQ,EAAE;AACR,gCAAA,QAAQ,EAAE,OAAO;AACjB,gCAAA,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;gCAC3B,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI;AAC7B;AACF;AACF,qBAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;AC/CD;;AAEG;;;;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, inject, ElementRef, Injector, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import '@ui5/webcomponents/dist/Text.js';
|
|
4
|
+
import { ContentDensityObserver, contentDensityObserverProviders, ContentDensityMode } from '@fundamental-ngx/core/content-density';
|
|
5
|
+
|
|
6
|
+
class Text {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies if an empty indicator should be displayed when there is no text.
|
|
10
|
+
*/
|
|
11
|
+
this.emptyIndicatorMode = input("Off", ...(ngDevMode ? [{ debugName: "emptyIndicatorMode" }] : []));
|
|
12
|
+
/**
|
|
13
|
+
* Defines the number of lines the text should wrap before it truncates.
|
|
14
|
+
*/
|
|
15
|
+
this.maxLines = input(Infinity, ...(ngDevMode ? [{ debugName: "maxLines" }] : [])); // className is now passed
|
|
16
|
+
/**
|
|
17
|
+
* Available slots for content projection in this component.
|
|
18
|
+
*
|
|
19
|
+
* Slots allow you to insert custom content into predefined areas of the web component.
|
|
20
|
+
* Use the `slot` attribute on child elements to target specific slots.
|
|
21
|
+
*
|
|
22
|
+
* - **(default)**: Defines the text of the component.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```html
|
|
26
|
+
* <ui5-text>
|
|
27
|
+
* <div slot="header">Custom header content</div>
|
|
28
|
+
* <p>Default slot content</p>
|
|
29
|
+
* </ui5-text>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @readonly
|
|
33
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
|
|
34
|
+
*/
|
|
35
|
+
this.slots = [
|
|
36
|
+
{
|
|
37
|
+
"name": "default",
|
|
38
|
+
"description": "Defines the text of the component."
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
this.elementRef = inject(ElementRef);
|
|
42
|
+
this.injector = inject(Injector);
|
|
43
|
+
/**
|
|
44
|
+
* Content density observer is injected to activate automatic CSS class and
|
|
45
|
+
* UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.
|
|
46
|
+
* @private
|
|
47
|
+
*/
|
|
48
|
+
this._contentDensityObserver = inject(ContentDensityObserver);
|
|
49
|
+
}
|
|
50
|
+
get element() {
|
|
51
|
+
return this.elementRef.nativeElement;
|
|
52
|
+
}
|
|
53
|
+
ngAfterViewInit() {
|
|
54
|
+
const wcElement = this.element;
|
|
55
|
+
const inputsToSync = [
|
|
56
|
+
'emptyIndicatorMode',
|
|
57
|
+
'maxLines',
|
|
58
|
+
];
|
|
59
|
+
// Synchronize inputs (properties)
|
|
60
|
+
for (const inputName of inputsToSync) {
|
|
61
|
+
// Find the corresponding camelCase signal property on the Angular component
|
|
62
|
+
const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
|
|
63
|
+
// Use the Injector to run the effect in the correct context
|
|
64
|
+
if (this[signalName] && typeof this[signalName] === 'function') {
|
|
65
|
+
runInInjectionContext(this.injector, () => {
|
|
66
|
+
effect(() => {
|
|
67
|
+
// Read the signal value
|
|
68
|
+
const value = this[signalName]();
|
|
69
|
+
if (wcElement) {
|
|
70
|
+
// Write the value to the Web Component's property
|
|
71
|
+
wcElement[inputName] = value;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: Text, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
79
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.0", type: Text, isStandalone: true, selector: "ui5-text, [ui5-text]", inputs: { emptyIndicatorMode: { classPropertyName: "emptyIndicatorMode", publicName: "emptyIndicatorMode", isSignal: true, isRequired: false, transformFunction: null }, maxLines: { classPropertyName: "maxLines", publicName: "maxLines", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
80
|
+
contentDensityObserverProviders({
|
|
81
|
+
supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
|
|
82
|
+
})
|
|
83
|
+
], exportAs: ["ui5Text"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: Text, decorators: [{
|
|
86
|
+
type: Component,
|
|
87
|
+
args: [{
|
|
88
|
+
standalone: true,
|
|
89
|
+
selector: 'ui5-text, [ui5-text]',
|
|
90
|
+
template: '<ng-content></ng-content>',
|
|
91
|
+
exportAs: 'ui5Text',
|
|
92
|
+
providers: [
|
|
93
|
+
contentDensityObserverProviders({
|
|
94
|
+
supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
|
|
95
|
+
})
|
|
96
|
+
],
|
|
97
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
98
|
+
}]
|
|
99
|
+
}], propDecorators: { emptyIndicatorMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyIndicatorMode", required: false }] }], maxLines: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLines", required: false }] }] } });
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Generated bundle index. Do not edit.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
export { Text };
|
|
106
|
+
//# sourceMappingURL=fundamental-ngx-ui5-webcomponents-text.mjs.map
|