@und-ui/angular 0.2.0 → 0.3.1
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 +31 -2
- package/dist/charts.d.ts +6 -0
- package/dist/charts.d.ts.map +1 -0
- package/dist/charts.js +6 -0
- package/dist/charts.js.map +1 -0
- package/dist/generated/charts/index.d.ts +5 -0
- package/dist/generated/charts/index.d.ts.map +1 -0
- package/dist/generated/charts/index.js +8 -0
- package/dist/generated/charts/index.js.map +1 -0
- package/dist/generated/charts/und-chart.d.ts +52 -0
- package/dist/generated/charts/und-chart.d.ts.map +1 -0
- package/dist/generated/charts/und-chart.js +120 -0
- package/dist/generated/charts/und-chart.js.map +1 -0
- package/dist/generated/forms.d.ts +15 -2
- package/dist/generated/forms.d.ts.map +1 -1
- package/dist/generated/forms.js +47 -1
- package/dist/generated/forms.js.map +1 -1
- package/dist/generated/index.d.ts +25 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +25 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/richtext/forms.d.ts +19 -0
- package/dist/generated/richtext/forms.d.ts.map +1 -0
- package/dist/generated/richtext/forms.js +57 -0
- package/dist/generated/richtext/forms.js.map +1 -0
- package/dist/generated/richtext/index.d.ts +5 -0
- package/dist/generated/richtext/index.d.ts.map +1 -0
- package/dist/generated/richtext/index.js +8 -0
- package/dist/generated/richtext/index.js.map +1 -0
- package/dist/generated/richtext/und-rich-text-editor.d.ts +44 -0
- package/dist/generated/richtext/und-rich-text-editor.d.ts.map +1 -0
- package/dist/generated/richtext/und-rich-text-editor.js +109 -0
- package/dist/generated/richtext/und-rich-text-editor.js.map +1 -0
- package/dist/generated/und-aspect-ratio.d.ts +5 -2
- package/dist/generated/und-aspect-ratio.d.ts.map +1 -1
- package/dist/generated/und-aspect-ratio.js +11 -2
- package/dist/generated/und-aspect-ratio.js.map +1 -1
- package/dist/generated/und-avatar-group.d.ts +5 -2
- package/dist/generated/und-avatar-group.d.ts.map +1 -1
- package/dist/generated/und-avatar-group.js +11 -2
- package/dist/generated/und-avatar-group.js.map +1 -1
- package/dist/generated/und-avatar.d.ts +3 -3
- package/dist/generated/und-avatar.d.ts.map +1 -1
- package/dist/generated/und-avatar.js +3 -3
- package/dist/generated/und-avatar.js.map +1 -1
- package/dist/generated/und-badge.d.ts +4 -1
- package/dist/generated/und-badge.d.ts.map +1 -1
- package/dist/generated/und-badge.js +10 -1
- package/dist/generated/und-badge.js.map +1 -1
- package/dist/generated/und-banner.d.ts +10 -1
- package/dist/generated/und-banner.d.ts.map +1 -1
- package/dist/generated/und-banner.js +28 -1
- package/dist/generated/und-banner.js.map +1 -1
- package/dist/generated/und-bottom-sheet.d.ts +5 -2
- package/dist/generated/und-bottom-sheet.d.ts.map +1 -1
- package/dist/generated/und-bottom-sheet.js +11 -2
- package/dist/generated/und-bottom-sheet.js.map +1 -1
- package/dist/generated/und-breadcrumb.d.ts +4 -1
- package/dist/generated/und-breadcrumb.d.ts.map +1 -1
- package/dist/generated/und-breadcrumb.js +11 -2
- package/dist/generated/und-breadcrumb.js.map +1 -1
- package/dist/generated/und-card.d.ts +5 -2
- package/dist/generated/und-card.d.ts.map +1 -1
- package/dist/generated/und-card.js +11 -2
- package/dist/generated/und-card.js.map +1 -1
- package/dist/generated/und-carousel.d.ts +15 -1
- package/dist/generated/und-carousel.d.ts.map +1 -1
- package/dist/generated/und-carousel.js +39 -1
- package/dist/generated/und-carousel.js.map +1 -1
- package/dist/generated/und-center.d.ts +29 -1
- package/dist/generated/und-center.d.ts.map +1 -1
- package/dist/generated/und-center.js +83 -1
- package/dist/generated/und-center.js.map +1 -1
- package/dist/generated/und-chat-composer.d.ts +19 -1
- package/dist/generated/und-chat-composer.d.ts.map +1 -1
- package/dist/generated/und-chat-composer.js +44 -1
- package/dist/generated/und-chat-composer.js.map +1 -1
- package/dist/generated/und-chat-layout.d.ts +7 -1
- package/dist/generated/und-chat-layout.d.ts.map +1 -1
- package/dist/generated/und-chat-layout.js +19 -1
- package/dist/generated/und-chat-layout.js.map +1 -1
- package/dist/generated/und-chat-message.d.ts +15 -5
- package/dist/generated/und-chat-message.d.ts.map +1 -1
- package/dist/generated/und-chat-message.js +33 -5
- package/dist/generated/und-chat-message.js.map +1 -1
- package/dist/generated/und-checkbox.d.ts +17 -1
- package/dist/generated/und-checkbox.d.ts.map +1 -1
- package/dist/generated/und-checkbox.js +47 -1
- package/dist/generated/und-checkbox.js.map +1 -1
- package/dist/generated/und-citation.d.ts +7 -1
- package/dist/generated/und-citation.d.ts.map +1 -1
- package/dist/generated/und-citation.js +19 -1
- package/dist/generated/und-citation.js.map +1 -1
- package/dist/generated/und-clickable-card.d.ts +5 -2
- package/dist/generated/und-clickable-card.d.ts.map +1 -1
- package/dist/generated/und-clickable-card.js +11 -2
- package/dist/generated/und-clickable-card.js.map +1 -1
- package/dist/generated/und-code-block.d.ts +17 -1
- package/dist/generated/und-code-block.d.ts.map +1 -1
- package/dist/generated/und-code-block.js +47 -1
- package/dist/generated/und-code-block.js.map +1 -1
- package/dist/generated/und-code.d.ts +8 -1
- package/dist/generated/und-code.d.ts.map +1 -1
- package/dist/generated/und-code.js +20 -2
- package/dist/generated/und-code.js.map +1 -1
- package/dist/generated/und-command-palette.d.ts +5 -2
- package/dist/generated/und-command-palette.d.ts.map +1 -1
- package/dist/generated/und-command-palette.js +11 -2
- package/dist/generated/und-command-palette.js.map +1 -1
- package/dist/generated/und-date-input.d.ts +17 -1
- package/dist/generated/und-date-input.d.ts.map +1 -1
- package/dist/generated/und-date-input.js +47 -1
- package/dist/generated/und-date-input.js.map +1 -1
- package/dist/generated/und-date-range-input.d.ts +17 -1
- package/dist/generated/und-date-range-input.d.ts.map +1 -1
- package/dist/generated/und-date-range-input.js +47 -1
- package/dist/generated/und-date-range-input.js.map +1 -1
- package/dist/generated/und-dialog.d.ts +5 -2
- package/dist/generated/und-dialog.d.ts.map +1 -1
- package/dist/generated/und-dialog.js +11 -2
- package/dist/generated/und-dialog.js.map +1 -1
- package/dist/generated/und-divider.d.ts +8 -1
- package/dist/generated/und-divider.d.ts.map +1 -1
- package/dist/generated/und-divider.js +20 -1
- package/dist/generated/und-divider.js.map +1 -1
- package/dist/generated/und-drawer.d.ts +5 -2
- package/dist/generated/und-drawer.d.ts.map +1 -1
- package/dist/generated/und-drawer.js +11 -2
- package/dist/generated/und-drawer.js.map +1 -1
- package/dist/generated/und-empty-state.d.ts +5 -1
- package/dist/generated/und-empty-state.d.ts.map +1 -1
- package/dist/generated/und-empty-state.js +12 -2
- package/dist/generated/und-empty-state.js.map +1 -1
- package/dist/generated/und-file-input.d.ts +17 -1
- package/dist/generated/und-file-input.d.ts.map +1 -1
- package/dist/generated/und-file-input.js +47 -1
- package/dist/generated/und-file-input.js.map +1 -1
- package/dist/generated/und-form-field.d.ts +14 -1
- package/dist/generated/und-form-field.d.ts.map +1 -1
- package/dist/generated/und-form-field.js +38 -1
- package/dist/generated/und-form-field.js.map +1 -1
- package/dist/generated/und-form-layout.d.ts +4 -1
- package/dist/generated/und-form-layout.d.ts.map +1 -1
- package/dist/generated/und-form-layout.js +11 -2
- package/dist/generated/und-form-layout.js.map +1 -1
- package/dist/generated/und-grid.d.ts +21 -3
- package/dist/generated/und-grid.d.ts.map +1 -1
- package/dist/generated/und-grid.js +57 -3
- package/dist/generated/und-grid.js.map +1 -1
- package/dist/generated/und-heading.d.ts +21 -2
- package/dist/generated/und-heading.d.ts.map +1 -1
- package/dist/generated/und-heading.js +58 -3
- package/dist/generated/und-heading.js.map +1 -1
- package/dist/generated/und-hover-card.d.ts +4 -1
- package/dist/generated/und-hover-card.d.ts.map +1 -1
- package/dist/generated/und-hover-card.js +10 -1
- package/dist/generated/und-hover-card.js.map +1 -1
- package/dist/generated/und-icon.d.ts +9 -2
- package/dist/generated/und-icon.d.ts.map +1 -1
- package/dist/generated/und-icon.js +21 -2
- package/dist/generated/und-icon.js.map +1 -1
- package/dist/generated/und-indicator.d.ts +23 -0
- package/dist/generated/und-indicator.d.ts.map +1 -0
- package/dist/generated/und-indicator.js +58 -0
- package/dist/generated/und-indicator.js.map +1 -0
- package/dist/generated/und-info-tip.d.ts +4 -1
- package/dist/generated/und-info-tip.d.ts.map +1 -1
- package/dist/generated/und-info-tip.js +10 -1
- package/dist/generated/und-info-tip.js.map +1 -1
- package/dist/generated/und-input-group.d.ts +29 -1
- package/dist/generated/und-input-group.d.ts.map +1 -1
- package/dist/generated/und-input-group.js +79 -4
- package/dist/generated/und-input-group.js.map +1 -1
- package/dist/generated/und-item.d.ts +50 -0
- package/dist/generated/und-item.d.ts.map +1 -0
- package/dist/generated/und-item.js +133 -0
- package/dist/generated/und-item.js.map +1 -0
- package/dist/generated/und-kbd.d.ts +5 -1
- package/dist/generated/und-kbd.d.ts.map +1 -1
- package/dist/generated/und-kbd.js +11 -2
- package/dist/generated/und-kbd.js.map +1 -1
- package/dist/generated/und-layout.d.ts +37 -0
- package/dist/generated/und-layout.d.ts.map +1 -0
- package/dist/generated/und-layout.js +96 -0
- package/dist/generated/und-layout.js.map +1 -0
- package/dist/generated/und-lightbox.d.ts +5 -2
- package/dist/generated/und-lightbox.d.ts.map +1 -1
- package/dist/generated/und-lightbox.js +11 -2
- package/dist/generated/und-lightbox.js.map +1 -1
- package/dist/generated/und-list-item.d.ts +22 -1
- package/dist/generated/und-list-item.d.ts.map +1 -1
- package/dist/generated/und-list-item.js +60 -3
- package/dist/generated/und-list-item.js.map +1 -1
- package/dist/generated/und-list.d.ts +14 -1
- package/dist/generated/und-list.d.ts.map +1 -1
- package/dist/generated/und-list.js +39 -2
- package/dist/generated/und-list.js.map +1 -1
- package/dist/generated/und-markdown.d.ts +4 -1
- package/dist/generated/und-markdown.d.ts.map +1 -1
- package/dist/generated/und-markdown.js +10 -1
- package/dist/generated/und-markdown.js.map +1 -1
- package/dist/generated/und-metadata-list.d.ts +14 -2
- package/dist/generated/und-metadata-list.d.ts.map +1 -1
- package/dist/generated/und-metadata-list.js +38 -2
- package/dist/generated/und-metadata-list.js.map +1 -1
- package/dist/generated/und-nav-icon.d.ts +13 -0
- package/dist/generated/und-nav-icon.d.ts.map +1 -0
- package/dist/generated/und-nav-icon.js +30 -0
- package/dist/generated/und-nav-icon.js.map +1 -0
- package/dist/generated/und-nav-item.d.ts +33 -0
- package/dist/generated/und-nav-item.d.ts.map +1 -0
- package/dist/generated/und-nav-item.js +86 -0
- package/dist/generated/und-nav-item.js.map +1 -0
- package/dist/generated/und-nav-menu-item.d.ts +23 -0
- package/dist/generated/und-nav-menu-item.d.ts.map +1 -0
- package/dist/generated/und-nav-menu-item.js +58 -0
- package/dist/generated/und-nav-menu-item.js.map +1 -0
- package/dist/generated/und-nav-menu.d.ts +25 -0
- package/dist/generated/und-nav-menu.d.ts.map +1 -0
- package/dist/generated/und-nav-menu.js +57 -0
- package/dist/generated/und-nav-menu.js.map +1 -0
- package/dist/generated/und-number-input.d.ts +20 -1
- package/dist/generated/und-number-input.d.ts.map +1 -1
- package/dist/generated/und-number-input.js +56 -1
- package/dist/generated/und-number-input.js.map +1 -1
- package/dist/generated/und-outline.d.ts +4 -1
- package/dist/generated/und-outline.d.ts.map +1 -1
- package/dist/generated/und-outline.js +10 -1
- package/dist/generated/und-outline.js.map +1 -1
- package/dist/generated/und-pagination.d.ts +16 -1
- package/dist/generated/und-pagination.d.ts.map +1 -1
- package/dist/generated/und-pagination.js +46 -1
- package/dist/generated/und-pagination.js.map +1 -1
- package/dist/generated/und-popover.d.ts +7 -1
- package/dist/generated/und-popover.d.ts.map +1 -1
- package/dist/generated/und-popover.js +19 -1
- package/dist/generated/und-popover.js.map +1 -1
- package/dist/generated/und-power-search.d.ts +71 -0
- package/dist/generated/und-power-search.d.ts.map +1 -0
- package/dist/generated/und-power-search.js +178 -0
- package/dist/generated/und-power-search.js.map +1 -0
- package/dist/generated/und-progress.d.ts +14 -2
- package/dist/generated/und-progress.d.ts.map +1 -1
- package/dist/generated/und-progress.js +33 -3
- package/dist/generated/und-progress.js.map +1 -1
- package/dist/generated/und-resize-handle.d.ts +6 -2
- package/dist/generated/und-resize-handle.d.ts.map +1 -1
- package/dist/generated/und-resize-handle.js +12 -2
- package/dist/generated/und-resize-handle.js.map +1 -1
- package/dist/generated/und-section.d.ts +27 -3
- package/dist/generated/und-section.d.ts.map +1 -1
- package/dist/generated/und-section.js +75 -3
- package/dist/generated/und-section.js.map +1 -1
- package/dist/generated/und-select.d.ts +2 -2
- package/dist/generated/und-select.d.ts.map +1 -1
- package/dist/generated/und-select.js +2 -2
- package/dist/generated/und-select.js.map +1 -1
- package/dist/generated/und-selectable-card.d.ts +21 -1
- package/dist/generated/und-selectable-card.d.ts.map +1 -1
- package/dist/generated/und-selectable-card.js +57 -1
- package/dist/generated/und-selectable-card.js.map +1 -1
- package/dist/generated/und-skeleton.d.ts +10 -1
- package/dist/generated/und-skeleton.d.ts.map +1 -1
- package/dist/generated/und-skeleton.js +28 -1
- package/dist/generated/und-skeleton.js.map +1 -1
- package/dist/generated/und-slider.d.ts +17 -1
- package/dist/generated/und-slider.d.ts.map +1 -1
- package/dist/generated/und-slider.js +47 -1
- package/dist/generated/und-slider.js.map +1 -1
- package/dist/generated/und-snap-paging.d.ts +23 -0
- package/dist/generated/und-snap-paging.d.ts.map +1 -0
- package/dist/generated/und-snap-paging.js +48 -0
- package/dist/generated/und-snap-paging.js.map +1 -0
- package/dist/generated/und-spinner.d.ts +4 -1
- package/dist/generated/und-spinner.d.ts.map +1 -1
- package/dist/generated/und-spinner.js +10 -1
- package/dist/generated/und-spinner.js.map +1 -1
- package/dist/generated/und-stack.d.ts +36 -6
- package/dist/generated/und-stack.d.ts.map +1 -1
- package/dist/generated/und-stack.js +95 -5
- package/dist/generated/und-stack.js.map +1 -1
- package/dist/generated/und-status-dot.d.ts +8 -1
- package/dist/generated/und-status-dot.d.ts.map +1 -1
- package/dist/generated/und-status-dot.js +21 -2
- package/dist/generated/und-status-dot.js.map +1 -1
- package/dist/generated/und-swipe-action.d.ts +20 -0
- package/dist/generated/und-swipe-action.d.ts.map +1 -0
- package/dist/generated/und-swipe-action.js +49 -0
- package/dist/generated/und-swipe-action.js.map +1 -0
- package/dist/generated/und-swipe.d.ts +26 -0
- package/dist/generated/und-swipe.d.ts.map +1 -0
- package/dist/generated/und-swipe.js +63 -0
- package/dist/generated/und-swipe.js.map +1 -0
- package/dist/generated/und-switch.d.ts +17 -1
- package/dist/generated/und-switch.d.ts.map +1 -1
- package/dist/generated/und-switch.js +47 -1
- package/dist/generated/und-switch.js.map +1 -1
- package/dist/generated/und-table.d.ts +21 -2
- package/dist/generated/und-table.d.ts.map +1 -1
- package/dist/generated/und-table.js +46 -2
- package/dist/generated/und-table.js.map +1 -1
- package/dist/generated/und-text-field.d.ts +29 -1
- package/dist/generated/und-text-field.d.ts.map +1 -1
- package/dist/generated/und-text-field.js +79 -4
- package/dist/generated/und-text-field.js.map +1 -1
- package/dist/generated/und-text.d.ts +18 -1
- package/dist/generated/und-text.d.ts.map +1 -1
- package/dist/generated/und-text.js +48 -1
- package/dist/generated/und-text.js.map +1 -1
- package/dist/generated/und-textarea.d.ts +24 -1
- package/dist/generated/und-textarea.d.ts.map +1 -1
- package/dist/generated/und-textarea.js +67 -2
- package/dist/generated/und-textarea.js.map +1 -1
- package/dist/generated/und-thumbnail.d.ts +21 -1
- package/dist/generated/und-thumbnail.d.ts.map +1 -1
- package/dist/generated/und-thumbnail.js +55 -2
- package/dist/generated/und-thumbnail.js.map +1 -1
- package/dist/generated/und-time-input.d.ts +17 -1
- package/dist/generated/und-time-input.d.ts.map +1 -1
- package/dist/generated/und-time-input.js +47 -1
- package/dist/generated/und-time-input.js.map +1 -1
- package/dist/generated/und-timestamp.d.ts +7 -1
- package/dist/generated/und-timestamp.d.ts.map +1 -1
- package/dist/generated/und-timestamp.js +19 -1
- package/dist/generated/und-timestamp.js.map +1 -1
- package/dist/generated/und-toast.d.ts +4 -1
- package/dist/generated/und-toast.d.ts.map +1 -1
- package/dist/generated/und-toast.js +10 -1
- package/dist/generated/und-toast.js.map +1 -1
- package/dist/generated/und-toggle-button.d.ts +82 -0
- package/dist/generated/und-toggle-button.d.ts.map +1 -0
- package/dist/generated/und-toggle-button.js +216 -0
- package/dist/generated/und-toggle-button.js.map +1 -0
- package/dist/generated/und-token.d.ts +7 -1
- package/dist/generated/und-token.d.ts.map +1 -1
- package/dist/generated/und-token.js +19 -1
- package/dist/generated/und-token.js.map +1 -1
- package/dist/generated/und-tree-list.d.ts +4 -1
- package/dist/generated/und-tree-list.d.ts.map +1 -1
- package/dist/generated/und-tree-list.js +10 -1
- package/dist/generated/und-tree-list.js.map +1 -1
- package/dist/richtext-forms.d.ts +6 -0
- package/dist/richtext-forms.d.ts.map +1 -0
- package/dist/richtext-forms.js +6 -0
- package/dist/richtext-forms.js.map +1 -0
- package/dist/richtext.d.ts +6 -0
- package/dist/richtext.d.ts.map +1 -0
- package/dist/richtext.js +6 -0
- package/dist/richtext.js.map +1 -0
- package/package.json +30 -8
- package/src/charts.ts +5 -0
- package/src/generated/charts/index.ts +9 -0
- package/src/generated/charts/und-chart.ts +112 -0
- package/src/generated/forms.ts +42 -2
- package/src/generated/index.ts +25 -1
- package/src/generated/richtext/forms.ts +51 -0
- package/src/generated/richtext/index.ts +9 -0
- package/src/generated/richtext/und-rich-text-editor.ts +100 -0
- package/src/generated/und-aspect-ratio.ts +10 -1
- package/src/generated/und-avatar-group.ts +10 -1
- package/src/generated/und-avatar.ts +3 -3
- package/src/generated/und-badge.ts +9 -0
- package/src/generated/und-banner.ts +27 -0
- package/src/generated/und-bottom-sheet.ts +10 -1
- package/src/generated/und-breadcrumb.ts +9 -0
- package/src/generated/und-card.ts +10 -1
- package/src/generated/und-carousel.ts +36 -0
- package/src/generated/und-center.ts +81 -0
- package/src/generated/und-chat-composer.ts +41 -0
- package/src/generated/und-chat-layout.ts +18 -0
- package/src/generated/und-chat-message.ts +31 -4
- package/src/generated/und-checkbox.ts +45 -0
- package/src/generated/und-citation.ts +18 -0
- package/src/generated/und-clickable-card.ts +10 -1
- package/src/generated/und-code-block.ts +45 -0
- package/src/generated/und-code.ts +17 -0
- package/src/generated/und-command-palette.ts +10 -1
- package/src/generated/und-date-input.ts +45 -0
- package/src/generated/und-date-range-input.ts +45 -0
- package/src/generated/und-dialog.ts +10 -1
- package/src/generated/und-divider.ts +18 -0
- package/src/generated/und-drawer.ts +10 -1
- package/src/generated/und-empty-state.ts +10 -1
- package/src/generated/und-file-input.ts +45 -0
- package/src/generated/und-form-field.ts +36 -0
- package/src/generated/und-form-layout.ts +9 -0
- package/src/generated/und-grid.ts +56 -2
- package/src/generated/und-heading.ts +56 -2
- package/src/generated/und-hover-card.ts +9 -0
- package/src/generated/und-icon.ts +19 -1
- package/src/generated/und-indicator.ts +52 -0
- package/src/generated/und-info-tip.ts +9 -0
- package/src/generated/und-input-group.ts +74 -1
- package/src/generated/und-item.ts +124 -0
- package/src/generated/und-kbd.ts +8 -0
- package/src/generated/und-layout.ts +88 -0
- package/src/generated/und-lightbox.ts +10 -1
- package/src/generated/und-list-item.ts +55 -1
- package/src/generated/und-list.ts +37 -1
- package/src/generated/und-markdown.ts +9 -0
- package/src/generated/und-metadata-list.ts +37 -1
- package/src/generated/und-nav-icon.ts +25 -0
- package/src/generated/und-nav-item.ts +79 -0
- package/src/generated/und-nav-menu-item.ts +52 -0
- package/src/generated/und-nav-menu.ts +53 -0
- package/src/generated/und-number-input.ts +54 -0
- package/src/generated/und-outline.ts +9 -0
- package/src/generated/und-pagination.ts +45 -0
- package/src/generated/und-popover.ts +18 -0
- package/src/generated/und-power-search.ts +169 -0
- package/src/generated/und-progress.ts +29 -2
- package/src/generated/und-resize-handle.ts +10 -1
- package/src/generated/und-section.ts +74 -2
- package/src/generated/und-select.ts +2 -2
- package/src/generated/und-selectable-card.ts +54 -0
- package/src/generated/und-skeleton.ts +27 -0
- package/src/generated/und-slider.ts +45 -0
- package/src/generated/und-snap-paging.ts +44 -0
- package/src/generated/und-spinner.ts +9 -0
- package/src/generated/und-stack.ts +95 -5
- package/src/generated/und-status-dot.ts +19 -1
- package/src/generated/und-swipe-action.ts +43 -0
- package/src/generated/und-swipe.ts +58 -0
- package/src/generated/und-switch.ts +45 -0
- package/src/generated/und-table.ts +42 -1
- package/src/generated/und-text-field.ts +74 -1
- package/src/generated/und-text.ts +45 -0
- package/src/generated/und-textarea.ts +63 -0
- package/src/generated/und-thumbnail.ts +51 -1
- package/src/generated/und-time-input.ts +45 -0
- package/src/generated/und-timestamp.ts +18 -0
- package/src/generated/und-toast.ts +9 -0
- package/src/generated/und-toggle-button.ts +206 -0
- package/src/generated/und-token.ts +18 -0
- package/src/generated/und-tree-list.ts +9 -0
- package/src/richtext-forms.ts +5 -0
- package/src/richtext.ts +5 -0
package/src/generated/forms.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// UND UI form controls. Import from `@und-ui/angular/forms` (needs @angular/forms).
|
|
6
6
|
import { DestroyRef, Directive, type DoCheck, ElementRef, forwardRef, inject, Input } from '@angular/core';
|
|
7
7
|
import { ControlContainer, NG_VALUE_ACCESSOR, NgControl, type AbstractControl, type ControlValueAccessor, type ValidationErrors } from '@angular/forms';
|
|
8
|
-
import type { UndCheckbox as UndCheckboxElement, UndCheckboxList as UndCheckboxListElement, UndCombobox as UndComboboxElement, UndDateInput as UndDateInputElement, UndInputGroup as UndInputGroupElement, UndMultiSelect as UndMultiSelectElement, UndNumberInput as UndNumberInputElement, UndRadioGroup as UndRadioGroupElement, UndRadioList as UndRadioListElement, UndSegmentedControl as UndSegmentedControlElement, UndSelect as UndSelectElement, UndSelectableCard as UndSelectableCardElement, UndSlider as UndSliderElement, UndSwitch as UndSwitchElement, UndTextField as UndTextFieldElement, UndTextarea as UndTextareaElement, UndTimeInput as UndTimeInputElement, UndTokenizer as UndTokenizerElement, UndTypeahead as UndTypeaheadElement } from '@und-ui/core';
|
|
8
|
+
import type { UndCheckbox as UndCheckboxElement, UndCheckboxList as UndCheckboxListElement, UndCombobox as UndComboboxElement, UndDateInput as UndDateInputElement, UndInputGroup as UndInputGroupElement, UndMultiSelect as UndMultiSelectElement, UndNumberInput as UndNumberInputElement, UndPowerSearch as UndPowerSearchElement, UndRadioGroup as UndRadioGroupElement, UndRadioList as UndRadioListElement, UndSegmentedControl as UndSegmentedControlElement, UndSelect as UndSelectElement, UndSelectableCard as UndSelectableCardElement, UndSlider as UndSliderElement, UndSwitch as UndSwitchElement, UndTextField as UndTextFieldElement, UndTextarea as UndTextareaElement, UndTimeInput as UndTimeInputElement, UndTokenizer as UndTokenizerElement, UndTypeahead as UndTypeaheadElement } from '@und-ui/core';
|
|
9
9
|
|
|
10
10
|
/** Connects `<und-checkbox>` to Angular forms through `checked`. */
|
|
11
11
|
@Directive({
|
|
@@ -285,6 +285,46 @@ export class UndNumberInputValueAccessor implements ControlValueAccessor {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
+
/** Connects `<und-power-search>` to Angular forms through `value`. */
|
|
289
|
+
@Directive({
|
|
290
|
+
selector: 'und-power-search[ngModel], und-power-search[formControl], und-power-search[formControlName]',
|
|
291
|
+
host: {
|
|
292
|
+
'(input)': 'onUserChange($event)',
|
|
293
|
+
'(compositionend)': 'onUserChange($event)',
|
|
294
|
+
'(focusout)': 'onTouched()',
|
|
295
|
+
},
|
|
296
|
+
providers: [
|
|
297
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UndPowerSearchValueAccessor), multi: true },
|
|
298
|
+
],
|
|
299
|
+
})
|
|
300
|
+
export class UndPowerSearchValueAccessor implements ControlValueAccessor {
|
|
301
|
+
readonly #el: UndPowerSearchElement = inject<ElementRef<UndPowerSearchElement>>(ElementRef).nativeElement;
|
|
302
|
+
#onChange: (value: UndPowerSearchElement['value']) => void = () => {};
|
|
303
|
+
onTouched: () => void = () => {};
|
|
304
|
+
|
|
305
|
+
writeValue(value: UndPowerSearchElement['value'] | null): void {
|
|
306
|
+
this.#el.value = value ?? '';
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
registerOnChange(fn: (value: UndPowerSearchElement['value']) => void): void {
|
|
310
|
+
this.#onChange = fn;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
registerOnTouched(fn: () => void): void {
|
|
314
|
+
this.onTouched = fn;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
setDisabledState(disabled: boolean): void {
|
|
318
|
+
this.#el.disabled = disabled;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/** @internal IME: composing input events are skipped; compositionend commits. */
|
|
322
|
+
onUserChange(event: Event): void {
|
|
323
|
+
if ((event as InputEvent).isComposing) return;
|
|
324
|
+
this.#onChange(this.#el.value);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
288
328
|
/** Connects `<und-radio-group>` to Angular forms through `value`. */
|
|
289
329
|
@Directive({
|
|
290
330
|
selector: 'und-radio-group[ngModel], und-radio-group[formControl], und-radio-group[formControlName]',
|
|
@@ -835,4 +875,4 @@ export class UndControlError implements DoCheck {
|
|
|
835
875
|
}
|
|
836
876
|
|
|
837
877
|
/** Every value accessor and `UndControlError`, for a standalone component's `imports`. */
|
|
838
|
-
export const UND_UI_FORMS = [UndCheckboxValueAccessor, UndCheckboxListValueAccessor, UndComboboxValueAccessor, UndDateInputValueAccessor, UndInputGroupValueAccessor, UndMultiSelectValueAccessor, UndNumberInputValueAccessor, UndRadioGroupValueAccessor, UndRadioListValueAccessor, UndSegmentedControlValueAccessor, UndSelectValueAccessor, UndSelectableCardValueAccessor, UndSliderValueAccessor, UndSwitchValueAccessor, UndTextFieldValueAccessor, UndTextareaValueAccessor, UndTimeInputValueAccessor, UndTokenizerValueAccessor, UndTypeaheadValueAccessor, UndControlError] as const;
|
|
878
|
+
export const UND_UI_FORMS = [UndCheckboxValueAccessor, UndCheckboxListValueAccessor, UndComboboxValueAccessor, UndDateInputValueAccessor, UndInputGroupValueAccessor, UndMultiSelectValueAccessor, UndNumberInputValueAccessor, UndPowerSearchValueAccessor, UndRadioGroupValueAccessor, UndRadioListValueAccessor, UndSegmentedControlValueAccessor, UndSelectValueAccessor, UndSelectableCardValueAccessor, UndSliderValueAccessor, UndSwitchValueAccessor, UndTextFieldValueAccessor, UndTextareaValueAccessor, UndTimeInputValueAccessor, UndTokenizerValueAccessor, UndTypeaheadValueAccessor, UndControlError] as const;
|
package/src/generated/index.ts
CHANGED
|
@@ -48,9 +48,12 @@ import { UndHeading } from './und-heading.js';
|
|
|
48
48
|
import { UndHoverCard } from './und-hover-card.js';
|
|
49
49
|
import { UndIcon } from './und-icon.js';
|
|
50
50
|
import { UndIconButton } from './und-icon-button.js';
|
|
51
|
+
import { UndIndicator } from './und-indicator.js';
|
|
51
52
|
import { UndInfoTip } from './und-info-tip.js';
|
|
52
53
|
import { UndInputGroup } from './und-input-group.js';
|
|
54
|
+
import { UndItem } from './und-item.js';
|
|
53
55
|
import { UndKbd } from './und-kbd.js';
|
|
56
|
+
import { UndLayout } from './und-layout.js';
|
|
54
57
|
import { UndLightbox } from './und-lightbox.js';
|
|
55
58
|
import { UndLink } from './und-link.js';
|
|
56
59
|
import { UndList } from './und-list.js';
|
|
@@ -65,11 +68,16 @@ import { UndMetadataList } from './und-metadata-list.js';
|
|
|
65
68
|
import { UndMobileNav } from './und-mobile-nav.js';
|
|
66
69
|
import { UndMoreMenu } from './und-more-menu.js';
|
|
67
70
|
import { UndMultiSelect } from './und-multi-select.js';
|
|
71
|
+
import { UndNavIcon } from './und-nav-icon.js';
|
|
72
|
+
import { UndNavItem } from './und-nav-item.js';
|
|
73
|
+
import { UndNavMenu } from './und-nav-menu.js';
|
|
74
|
+
import { UndNavMenuItem } from './und-nav-menu-item.js';
|
|
68
75
|
import { UndNumberInput } from './und-number-input.js';
|
|
69
76
|
import { UndOutline } from './und-outline.js';
|
|
70
77
|
import { UndOverflowList } from './und-overflow-list.js';
|
|
71
78
|
import { UndPagination } from './und-pagination.js';
|
|
72
79
|
import { UndPopover } from './und-popover.js';
|
|
80
|
+
import { UndPowerSearch } from './und-power-search.js';
|
|
73
81
|
import { UndProgress } from './und-progress.js';
|
|
74
82
|
import { UndRadio } from './und-radio.js';
|
|
75
83
|
import { UndRadioGroup } from './und-radio-group.js';
|
|
@@ -87,11 +95,14 @@ import { UndSideNavItem } from './und-side-nav-item.js';
|
|
|
87
95
|
import { UndSideNavSection } from './und-side-nav-section.js';
|
|
88
96
|
import { UndSkeleton } from './und-skeleton.js';
|
|
89
97
|
import { UndSlider } from './und-slider.js';
|
|
98
|
+
import { UndSnapPaging } from './und-snap-paging.js';
|
|
90
99
|
import { UndSpinner } from './und-spinner.js';
|
|
91
100
|
import { UndStack } from './und-stack.js';
|
|
92
101
|
import { UndStatusDot } from './und-status-dot.js';
|
|
93
102
|
import { UndStep } from './und-step.js';
|
|
94
103
|
import { UndStepper } from './und-stepper.js';
|
|
104
|
+
import { UndSwipe } from './und-swipe.js';
|
|
105
|
+
import { UndSwipeAction } from './und-swipe-action.js';
|
|
95
106
|
import { UndSwitch } from './und-switch.js';
|
|
96
107
|
import { UndTab } from './und-tab.js';
|
|
97
108
|
import { UndTabMenu } from './und-tab-menu.js';
|
|
@@ -107,6 +118,7 @@ import { UndTimer } from './und-timer.js';
|
|
|
107
118
|
import { UndTimestamp } from './und-timestamp.js';
|
|
108
119
|
import { UndToast } from './und-toast.js';
|
|
109
120
|
import { UndToaster } from './und-toaster.js';
|
|
121
|
+
import { UndToggleButton } from './und-toggle-button.js';
|
|
110
122
|
import { UndToggleButtonGroup } from './und-toggle-button-group.js';
|
|
111
123
|
import { UndToken } from './und-token.js';
|
|
112
124
|
import { UndTokenizer } from './und-tokenizer.js';
|
|
@@ -167,9 +179,12 @@ export { UndHeading } from './und-heading.js';
|
|
|
167
179
|
export { UndHoverCard } from './und-hover-card.js';
|
|
168
180
|
export { UndIcon } from './und-icon.js';
|
|
169
181
|
export { UndIconButton } from './und-icon-button.js';
|
|
182
|
+
export { UndIndicator } from './und-indicator.js';
|
|
170
183
|
export { UndInfoTip } from './und-info-tip.js';
|
|
171
184
|
export { UndInputGroup } from './und-input-group.js';
|
|
185
|
+
export { UndItem } from './und-item.js';
|
|
172
186
|
export { UndKbd } from './und-kbd.js';
|
|
187
|
+
export { UndLayout } from './und-layout.js';
|
|
173
188
|
export { UndLightbox } from './und-lightbox.js';
|
|
174
189
|
export { UndLink } from './und-link.js';
|
|
175
190
|
export { UndList } from './und-list.js';
|
|
@@ -184,11 +199,16 @@ export { UndMetadataList } from './und-metadata-list.js';
|
|
|
184
199
|
export { UndMobileNav } from './und-mobile-nav.js';
|
|
185
200
|
export { UndMoreMenu } from './und-more-menu.js';
|
|
186
201
|
export { UndMultiSelect } from './und-multi-select.js';
|
|
202
|
+
export { UndNavIcon } from './und-nav-icon.js';
|
|
203
|
+
export { UndNavItem } from './und-nav-item.js';
|
|
204
|
+
export { UndNavMenu } from './und-nav-menu.js';
|
|
205
|
+
export { UndNavMenuItem } from './und-nav-menu-item.js';
|
|
187
206
|
export { UndNumberInput } from './und-number-input.js';
|
|
188
207
|
export { UndOutline } from './und-outline.js';
|
|
189
208
|
export { UndOverflowList } from './und-overflow-list.js';
|
|
190
209
|
export { UndPagination } from './und-pagination.js';
|
|
191
210
|
export { UndPopover } from './und-popover.js';
|
|
211
|
+
export { UndPowerSearch } from './und-power-search.js';
|
|
192
212
|
export { UndProgress } from './und-progress.js';
|
|
193
213
|
export { UndRadio } from './und-radio.js';
|
|
194
214
|
export { UndRadioGroup } from './und-radio-group.js';
|
|
@@ -206,11 +226,14 @@ export { UndSideNavItem } from './und-side-nav-item.js';
|
|
|
206
226
|
export { UndSideNavSection } from './und-side-nav-section.js';
|
|
207
227
|
export { UndSkeleton } from './und-skeleton.js';
|
|
208
228
|
export { UndSlider } from './und-slider.js';
|
|
229
|
+
export { UndSnapPaging } from './und-snap-paging.js';
|
|
209
230
|
export { UndSpinner } from './und-spinner.js';
|
|
210
231
|
export { UndStack } from './und-stack.js';
|
|
211
232
|
export { UndStatusDot } from './und-status-dot.js';
|
|
212
233
|
export { UndStep } from './und-step.js';
|
|
213
234
|
export { UndStepper } from './und-stepper.js';
|
|
235
|
+
export { UndSwipe } from './und-swipe.js';
|
|
236
|
+
export { UndSwipeAction } from './und-swipe-action.js';
|
|
214
237
|
export { UndSwitch } from './und-switch.js';
|
|
215
238
|
export { UndTab } from './und-tab.js';
|
|
216
239
|
export { UndTabMenu } from './und-tab-menu.js';
|
|
@@ -226,6 +249,7 @@ export { UndTimer } from './und-timer.js';
|
|
|
226
249
|
export { UndTimestamp } from './und-timestamp.js';
|
|
227
250
|
export { UndToast } from './und-toast.js';
|
|
228
251
|
export { UndToaster } from './und-toaster.js';
|
|
252
|
+
export { UndToggleButton } from './und-toggle-button.js';
|
|
229
253
|
export { UndToggleButtonGroup } from './und-toggle-button-group.js';
|
|
230
254
|
export { UndToken } from './und-token.js';
|
|
231
255
|
export { UndTokenizer } from './und-tokenizer.js';
|
|
@@ -240,4 +264,4 @@ export { UndTypeahead } from './und-typeahead.js';
|
|
|
240
264
|
export { UndVisuallyHidden } from './und-visually-hidden.js';
|
|
241
265
|
|
|
242
266
|
/** Every UND UI component, for a standalone component's `imports`. */
|
|
243
|
-
export const UND_UI_COMPONENTS = [UndAccordion, UndAlert, UndAppShell, UndAspectRatio, UndAvatar, UndAvatarGroup, UndBadge, UndBanner, UndBlockquote, UndBottomSheet, UndBreadcrumb, UndBreadcrumbItem, UndButton, UndButtonGroup, UndCalendar, UndCard, UndCarousel, UndCenter, UndChatComposer, UndChatLayout, UndChatMessage, UndCheckbox, UndCheckboxList, UndCitation, UndClickableCard, UndCode, UndCodeBlock, UndCollapsible, UndCombobox, UndCommandPalette, UndContextMenu, UndDateInput, UndDateRangeInput, UndDateTimeInput, UndDialog, UndDivider, UndDrawer, UndEmptyState, UndFileInput, UndFormField, UndFormLayout, UndGrid, UndGridItem, UndHeading, UndHoverCard, UndIcon, UndIconButton, UndInfoTip, UndInputGroup, UndKbd, UndLightbox, UndLink, UndList, UndListItem, UndMarkdown, UndMenu, UndMenuGroup, UndMenuItem, UndMenuSeparator, UndMetadataItem, UndMetadataList, UndMobileNav, UndMoreMenu, UndMultiSelect, UndNumberInput, UndOutline, UndOverflowList, UndPagination, UndPopover, UndProgress, UndRadio, UndRadioGroup, UndRadioList, UndResizeHandle, UndScrollArea, UndSection, UndSegmentedControl, UndSegmentedControlItem, UndSelect, UndSelectableCard, UndSideNav, UndSideNavHeading, UndSideNavItem, UndSideNavSection, UndSkeleton, UndSlider, UndSpinner, UndStack, UndStatusDot, UndStep, UndStepper, UndSwitch, UndTab, UndTabMenu, UndTabPanel, UndTable, UndTabs, UndText, UndTextField, UndTextarea, UndThumbnail, UndTimeInput, UndTimer, UndTimestamp, UndToast, UndToaster, UndToggleButtonGroup, UndToken, UndTokenizer, UndToolbar, UndTooltip, UndTopNav, UndTopNavItem, UndTopNavMenu, UndTreeItem, UndTreeList, UndTypeahead, UndVisuallyHidden] as const;
|
|
267
|
+
export const UND_UI_COMPONENTS = [UndAccordion, UndAlert, UndAppShell, UndAspectRatio, UndAvatar, UndAvatarGroup, UndBadge, UndBanner, UndBlockquote, UndBottomSheet, UndBreadcrumb, UndBreadcrumbItem, UndButton, UndButtonGroup, UndCalendar, UndCard, UndCarousel, UndCenter, UndChatComposer, UndChatLayout, UndChatMessage, UndCheckbox, UndCheckboxList, UndCitation, UndClickableCard, UndCode, UndCodeBlock, UndCollapsible, UndCombobox, UndCommandPalette, UndContextMenu, UndDateInput, UndDateRangeInput, UndDateTimeInput, UndDialog, UndDivider, UndDrawer, UndEmptyState, UndFileInput, UndFormField, UndFormLayout, UndGrid, UndGridItem, UndHeading, UndHoverCard, UndIcon, UndIconButton, UndIndicator, UndInfoTip, UndInputGroup, UndItem, UndKbd, UndLayout, UndLightbox, UndLink, UndList, UndListItem, UndMarkdown, UndMenu, UndMenuGroup, UndMenuItem, UndMenuSeparator, UndMetadataItem, UndMetadataList, UndMobileNav, UndMoreMenu, UndMultiSelect, UndNavIcon, UndNavItem, UndNavMenu, UndNavMenuItem, UndNumberInput, UndOutline, UndOverflowList, UndPagination, UndPopover, UndPowerSearch, UndProgress, UndRadio, UndRadioGroup, UndRadioList, UndResizeHandle, UndScrollArea, UndSection, UndSegmentedControl, UndSegmentedControlItem, UndSelect, UndSelectableCard, UndSideNav, UndSideNavHeading, UndSideNavItem, UndSideNavSection, UndSkeleton, UndSlider, UndSnapPaging, UndSpinner, UndStack, UndStatusDot, UndStep, UndStepper, UndSwipe, UndSwipeAction, UndSwitch, UndTab, UndTabMenu, UndTabPanel, UndTable, UndTabs, UndText, UndTextField, UndTextarea, UndThumbnail, UndTimeInput, UndTimer, UndTimestamp, UndToast, UndToaster, UndToggleButton, UndToggleButtonGroup, UndToken, UndTokenizer, UndToolbar, UndTooltip, UndTopNav, UndTopNavItem, UndTopNavMenu, UndTreeItem, UndTreeList, UndTypeahead, UndVisuallyHidden] as const;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// GENERATED FILE. DO NOT EDIT.
|
|
2
|
+
// Source: @und-ui/richtext custom-elements.json, via tools/codegen/wrappers.mjs.
|
|
3
|
+
// Run `pnpm codegen` (or `pnpm build`) after changing a component.
|
|
4
|
+
// ControlValueAccessor directives: ngModel, formControl and formControlName on
|
|
5
|
+
// UND UI form controls. Import from `@und-ui/angular/richtext/forms` (needs @angular/forms).
|
|
6
|
+
import { Directive, ElementRef, forwardRef, inject } from '@angular/core';
|
|
7
|
+
import { NG_VALUE_ACCESSOR, type ControlValueAccessor } from '@angular/forms';
|
|
8
|
+
import type { UndRichTextEditor as UndRichTextEditorElement } from '@und-ui/richtext';
|
|
9
|
+
|
|
10
|
+
/** Connects `<und-rich-text-editor>` to Angular forms through `value`. */
|
|
11
|
+
@Directive({
|
|
12
|
+
selector: 'und-rich-text-editor[ngModel], und-rich-text-editor[formControl], und-rich-text-editor[formControlName]',
|
|
13
|
+
host: {
|
|
14
|
+
'(input)': 'onUserChange($event)',
|
|
15
|
+
'(compositionend)': 'onUserChange($event)',
|
|
16
|
+
'(focusout)': 'onTouched()',
|
|
17
|
+
},
|
|
18
|
+
providers: [
|
|
19
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UndRichTextEditorValueAccessor), multi: true },
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
export class UndRichTextEditorValueAccessor implements ControlValueAccessor {
|
|
23
|
+
readonly #el: UndRichTextEditorElement = inject<ElementRef<UndRichTextEditorElement>>(ElementRef).nativeElement;
|
|
24
|
+
#onChange: (value: UndRichTextEditorElement['value']) => void = () => {};
|
|
25
|
+
onTouched: () => void = () => {};
|
|
26
|
+
|
|
27
|
+
writeValue(value: UndRichTextEditorElement['value'] | null): void {
|
|
28
|
+
this.#el.value = value ?? '';
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
registerOnChange(fn: (value: UndRichTextEditorElement['value']) => void): void {
|
|
32
|
+
this.#onChange = fn;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
registerOnTouched(fn: () => void): void {
|
|
36
|
+
this.onTouched = fn;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
setDisabledState(disabled: boolean): void {
|
|
40
|
+
this.#el.disabled = disabled;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** @internal IME: composing input events are skipped; compositionend commits. */
|
|
44
|
+
onUserChange(event: Event): void {
|
|
45
|
+
if ((event as InputEvent).isComposing) return;
|
|
46
|
+
this.#onChange(this.#el.value);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Every value accessor, for a standalone component's `imports`. */
|
|
51
|
+
export const UND_UI_RICHTEXT_FORMS = [UndRichTextEditorValueAccessor] as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// GENERATED FILE. DO NOT EDIT.
|
|
2
|
+
// Source: @und-ui/richtext custom-elements.json, via tools/codegen/wrappers.mjs.
|
|
3
|
+
// Run `pnpm codegen` (or `pnpm build`) after changing a component.
|
|
4
|
+
import { UndRichTextEditor } from './und-rich-text-editor.js';
|
|
5
|
+
|
|
6
|
+
export { UndRichTextEditor } from './und-rich-text-editor.js';
|
|
7
|
+
|
|
8
|
+
/** Every @und-ui/richtext component, for a standalone component's `imports`. */
|
|
9
|
+
export const UND_UI_RICHTEXT_COMPONENTS = [UndRichTextEditor] as const;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// GENERATED FILE. DO NOT EDIT.
|
|
2
|
+
// Source: @und-ui/richtext custom-elements.json, via tools/codegen/wrappers.mjs.
|
|
3
|
+
// Run `pnpm codegen` (or `pnpm build`) after changing a component.
|
|
4
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, Input, inject } from '@angular/core';
|
|
5
|
+
import '@und-ui/richtext/rich-text-editor.js';
|
|
6
|
+
import type { UndRichTextEditor as UndRichTextEditorElement } from '@und-ui/richtext';
|
|
7
|
+
|
|
8
|
+
/** A small, security-first rich text editor with Markdown shortcuts.
|
|
9
|
+
*
|
|
10
|
+
* Native events (`input`, `change`) are not outputs: bind them on the
|
|
11
|
+
* element as usual, for example `(input)="..."`. */
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'und-rich-text-editor',
|
|
14
|
+
template: '<ng-content></ng-content>',
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
+
})
|
|
17
|
+
export class UndRichTextEditor {
|
|
18
|
+
readonly #el: UndRichTextEditorElement = inject<ElementRef<UndRichTextEditorElement>>(ElementRef).nativeElement;
|
|
19
|
+
|
|
20
|
+
/** Accessible name (and visible label) of the editing area. */
|
|
21
|
+
@Input()
|
|
22
|
+
set label(value: UndRichTextEditorElement['label']) {
|
|
23
|
+
this.#el.label = value;
|
|
24
|
+
}
|
|
25
|
+
get label(): UndRichTextEditorElement['label'] {
|
|
26
|
+
return this.#el.label;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Text shown while the editor is empty. */
|
|
30
|
+
@Input()
|
|
31
|
+
set placeholder(value: UndRichTextEditorElement['placeholder']) {
|
|
32
|
+
this.#el.placeholder = value;
|
|
33
|
+
}
|
|
34
|
+
get placeholder(): UndRichTextEditorElement['placeholder'] {
|
|
35
|
+
return this.#el.placeholder;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Form field name for the sanitized HTML. */
|
|
39
|
+
@Input()
|
|
40
|
+
set name(value: UndRichTextEditorElement['name']) {
|
|
41
|
+
this.#el.name = value;
|
|
42
|
+
}
|
|
43
|
+
get name(): UndRichTextEditorElement['name'] {
|
|
44
|
+
return this.#el.name;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Form field name for the Markdown version (optional). */
|
|
48
|
+
@Input()
|
|
49
|
+
set markdownName(value: UndRichTextEditorElement['markdownName']) {
|
|
50
|
+
this.#el.markdownName = value;
|
|
51
|
+
}
|
|
52
|
+
get markdownName(): UndRichTextEditorElement['markdownName'] {
|
|
53
|
+
return this.#el.markdownName;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Disables editing and the toolbar. A disabled ancestor fieldset also disables it. */
|
|
57
|
+
@Input({ transform: booleanAttribute })
|
|
58
|
+
set disabled(value: boolean) {
|
|
59
|
+
this.#el.disabled = value;
|
|
60
|
+
}
|
|
61
|
+
get disabled(): UndRichTextEditorElement['disabled'] {
|
|
62
|
+
return this.#el.disabled;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Shows the content without allowing edits. */
|
|
66
|
+
@Input({ transform: booleanAttribute })
|
|
67
|
+
set readOnly(value: boolean) {
|
|
68
|
+
this.#el.readOnly = value;
|
|
69
|
+
}
|
|
70
|
+
get readOnly(): UndRichTextEditorElement['readOnly'] {
|
|
71
|
+
return this.#el.readOnly;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Requires some text before the form submits. */
|
|
75
|
+
@Input({ transform: booleanAttribute })
|
|
76
|
+
set required(value: boolean) {
|
|
77
|
+
this.#el.required = value;
|
|
78
|
+
}
|
|
79
|
+
get required(): UndRichTextEditorElement['required'] {
|
|
80
|
+
return this.#el.required;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Hides the toolbar (keyboard shortcuts and Markdown shortcuts still work). */
|
|
84
|
+
@Input({ transform: booleanAttribute })
|
|
85
|
+
set noToolbar(value: boolean) {
|
|
86
|
+
this.#el.noToolbar = value;
|
|
87
|
+
}
|
|
88
|
+
get noToolbar(): UndRichTextEditorElement['noToolbar'] {
|
|
89
|
+
return this.#el.noToolbar;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** The content as sanitized HTML. Setting it sanitizes the input (never trust it), so assigning user or server HTML is safe. */
|
|
93
|
+
@Input()
|
|
94
|
+
set value(value: UndRichTextEditorElement['value']) {
|
|
95
|
+
this.#el.value = value;
|
|
96
|
+
}
|
|
97
|
+
get value(): UndRichTextEditorElement['value'] {
|
|
98
|
+
return this.#el.value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -23,7 +23,7 @@ export class UndAspectRatio {
|
|
|
23
23
|
return this.#el.ratio;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/** How
|
|
26
|
+
/** How the child fills the box: `cover` (default), `contain`, `fill`, or `center` (natural size, centered). */
|
|
27
27
|
@Input()
|
|
28
28
|
set fit(value: UndAspectRatioElement['fit']) {
|
|
29
29
|
this.#el.fit = value;
|
|
@@ -31,4 +31,13 @@ export class UndAspectRatio {
|
|
|
31
31
|
get fit(): UndAspectRatioElement['fit'] {
|
|
32
32
|
return this.#el.fit;
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
/** Shape of the box: `rectangle` (default) or `ellipse` (a circle at `1/1`). */
|
|
36
|
+
@Input()
|
|
37
|
+
set shape(value: UndAspectRatioElement['shape']) {
|
|
38
|
+
this.#el.shape = value;
|
|
39
|
+
}
|
|
40
|
+
get shape(): UndAspectRatioElement['shape'] {
|
|
41
|
+
return this.#el.shape;
|
|
42
|
+
}
|
|
34
43
|
}
|
|
@@ -32,7 +32,7 @@ export class UndAvatarGroup {
|
|
|
32
32
|
return this.#el.max;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/** Size of the "+N" counter; match it to the avatars. */
|
|
35
|
+
/** Size of the overlap and of the "+N" counter; match it to the avatars. */
|
|
36
36
|
@Input()
|
|
37
37
|
set size(value: UndAvatarGroupElement['size']) {
|
|
38
38
|
this.#el.size = value;
|
|
@@ -41,6 +41,15 @@ export class UndAvatarGroup {
|
|
|
41
41
|
return this.#el.size;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/** Corner style of the rings and the "+N" counter; match it to the avatars. */
|
|
45
|
+
@Input()
|
|
46
|
+
set shape(value: UndAvatarGroupElement['shape']) {
|
|
47
|
+
this.#el.shape = value;
|
|
48
|
+
}
|
|
49
|
+
get shape(): UndAvatarGroupElement['shape'] {
|
|
50
|
+
return this.#el.shape;
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
/** Spoken text of the counter; `{count}` is replaced by the hidden count. */
|
|
45
54
|
@Input()
|
|
46
55
|
set moreLabel(value: UndAvatarGroupElement['moreLabel']) {
|
|
@@ -32,7 +32,7 @@ export class UndAvatar {
|
|
|
32
32
|
return this.#el.name;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/** Size of the avatar. */
|
|
35
|
+
/** Size of the avatar: `xs` 20px, `sm` 24px, `md` 36px, `lg` 48px, `xl` 128px. */
|
|
36
36
|
@Input()
|
|
37
37
|
set size(value: UndAvatarElement['size']) {
|
|
38
38
|
this.#el.size = value;
|
|
@@ -41,7 +41,7 @@ export class UndAvatar {
|
|
|
41
41
|
return this.#el.size;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
/** Corner style
|
|
44
|
+
/** Corner style: `circle`, `rounded` (8px corners) or `square`. */
|
|
45
45
|
@Input()
|
|
46
46
|
set shape(value: UndAvatarElement['shape']) {
|
|
47
47
|
this.#el.shape = value;
|
|
@@ -50,7 +50,7 @@ export class UndAvatar {
|
|
|
50
50
|
return this.#el.shape;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
/** Presence indicator. It is part of the accessible name,
|
|
53
|
+
/** Presence indicator. It is part of the accessible name, and each status has its own look besides colour (offline is a hollow ring, busy a minus bar). */
|
|
54
54
|
@Input()
|
|
55
55
|
set status(value: UndAvatarElement['status']) {
|
|
56
56
|
this.#el.status = value;
|
|
@@ -49,4 +49,13 @@ export class UndBadge {
|
|
|
49
49
|
get dot(): UndBadgeElement['dot'] {
|
|
50
50
|
return this.#el.dot;
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
/** Categorical colour (a tinted fill with dark text); overrides `tone`. */
|
|
54
|
+
@Input()
|
|
55
|
+
set color(value: UndBadgeElement['color']) {
|
|
56
|
+
this.#el.color = value;
|
|
57
|
+
}
|
|
58
|
+
get color(): UndBadgeElement['color'] {
|
|
59
|
+
return this.#el.color;
|
|
60
|
+
}
|
|
52
61
|
}
|
|
@@ -68,6 +68,33 @@ export class UndBanner {
|
|
|
68
68
|
return this.#el.dismissLabel;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
/** A short heading above the message (use the `heading` slot for rich content). With a heading, the message is set smaller, as its description. */
|
|
72
|
+
@Input()
|
|
73
|
+
set heading(value: UndBannerElement['heading']) {
|
|
74
|
+
this.#el.heading = value;
|
|
75
|
+
}
|
|
76
|
+
get heading(): UndBannerElement['heading'] {
|
|
77
|
+
return this.#el.heading;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** `section` (default): square, for the top of a page or section. `card`: rounded, for a banner inside the page flow. */
|
|
81
|
+
@Input()
|
|
82
|
+
set container(value: UndBannerElement['container']) {
|
|
83
|
+
this.#el.container = value;
|
|
84
|
+
}
|
|
85
|
+
get container(): UndBannerElement['container'] {
|
|
86
|
+
return this.#el.container;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Shadow depth (`none`, `low`, `med`, `high`), for a floating banner. */
|
|
90
|
+
@Input()
|
|
91
|
+
set elevation(value: UndBannerElement['elevation']) {
|
|
92
|
+
this.#el.elevation = value;
|
|
93
|
+
}
|
|
94
|
+
get elevation(): UndBannerElement['elevation'] {
|
|
95
|
+
return this.#el.elevation;
|
|
96
|
+
}
|
|
97
|
+
|
|
71
98
|
/** Before the banner hides after the dismiss button is pressed. Cancelable: call `preventDefault()` to keep it visible. */
|
|
72
99
|
@Output() readonly undDismiss = new EventEmitter<CustomEvent<unknown>>();
|
|
73
100
|
|
|
@@ -77,7 +77,7 @@ export class UndBottomSheet {
|
|
|
77
77
|
return this.#el.variant;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
/** Preferred width. */
|
|
80
|
+
/** Preferred width: `sm` 320px, `md` 400px (default), `lg` 640px, or `full` for a full-screen dialog that fades in without moving. */
|
|
81
81
|
@Input()
|
|
82
82
|
set size(value: UndBottomSheetElement['size']) {
|
|
83
83
|
this.#el.size = value;
|
|
@@ -104,6 +104,15 @@ export class UndBottomSheet {
|
|
|
104
104
|
return this.#el.label;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/** A short plain-text description shown under the title and announced with it. Use the `description` slot for rich content. */
|
|
108
|
+
@Input()
|
|
109
|
+
set description(value: UndBottomSheetElement['description']) {
|
|
110
|
+
this.#el.description = value;
|
|
111
|
+
}
|
|
112
|
+
get description(): UndBottomSheetElement['description'] {
|
|
113
|
+
return this.#el.description;
|
|
114
|
+
}
|
|
115
|
+
|
|
107
116
|
/** CSS selector (inside the dialog content) of the element to focus on open. Defaults to an `[autofocus]` element, then the first focusable element. */
|
|
108
117
|
@Input()
|
|
109
118
|
set initialFocus(value: UndBottomSheetElement['initialFocus']) {
|
|
@@ -14,6 +14,15 @@ import type { UndBreadcrumb as UndBreadcrumbElement } from '@und-ui/core';
|
|
|
14
14
|
export class UndBreadcrumb {
|
|
15
15
|
readonly #el: UndBreadcrumbElement = inject<ElementRef<UndBreadcrumbElement>>(ElementRef).nativeElement;
|
|
16
16
|
|
|
17
|
+
/** Glyph between the steps: `slash` (default) or `chevron`. */
|
|
18
|
+
@Input()
|
|
19
|
+
set separator(value: UndBreadcrumbElement['separator']) {
|
|
20
|
+
this.#el.separator = value;
|
|
21
|
+
}
|
|
22
|
+
get separator(): UndBreadcrumbElement['separator'] {
|
|
23
|
+
return this.#el.separator;
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
/** Accessible name of the navigation landmark (localise it). */
|
|
18
27
|
@Input()
|
|
19
28
|
set label(value: UndBreadcrumbElement['label']) {
|
|
@@ -14,7 +14,7 @@ import type { UndCard as UndCardElement } from '@und-ui/core';
|
|
|
14
14
|
export class UndCard {
|
|
15
15
|
readonly #el: UndCardElement = inject<ElementRef<UndCardElement>>(ElementRef).nativeElement;
|
|
16
16
|
|
|
17
|
-
/** Surface style. */
|
|
17
|
+
/** Surface style. `default` (and its alias `outlined`) is a surface with a hairline border; `muted` (alias `filled`) is a tinted surface without a border; `transparent` has neither; `elevated` is `default` with a low shadow. */
|
|
18
18
|
@Input()
|
|
19
19
|
set variant(value: UndCardElement['variant']) {
|
|
20
20
|
this.#el.variant = value;
|
|
@@ -23,6 +23,15 @@ export class UndCard {
|
|
|
23
23
|
return this.#el.variant;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
/** Resting shadow depth (`none`, `low`, `med`, `high`). Overrides the shadow of `variant="elevated"`. */
|
|
27
|
+
@Input()
|
|
28
|
+
set elevation(value: UndCardElement['elevation']) {
|
|
29
|
+
this.#el.elevation = value;
|
|
30
|
+
}
|
|
31
|
+
get elevation(): UndCardElement['elevation'] {
|
|
32
|
+
return this.#el.elevation;
|
|
33
|
+
}
|
|
34
|
+
|
|
26
35
|
/** Level of the heading (1 to 6), so the card fits the page outline. */
|
|
27
36
|
@Input()
|
|
28
37
|
set headingLevel(value: UndCardElement['headingLevel']) {
|
|
@@ -50,6 +50,42 @@ export class UndCarousel {
|
|
|
50
50
|
return this.#el.loop;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/** `slide` (default) shows one slide at a time; `scroll` shows a horizontal scroll strip of slides. */
|
|
54
|
+
@Input()
|
|
55
|
+
set layout(value: UndCarouselElement['layout']) {
|
|
56
|
+
this.#el.layout = value;
|
|
57
|
+
}
|
|
58
|
+
get layout(): UndCarouselElement['layout'] {
|
|
59
|
+
return this.#el.layout;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** With `layout="scroll"`: how many slides fill one view. Unset (0) keeps each slide at its own width. */
|
|
63
|
+
@Input()
|
|
64
|
+
set slidesPerView(value: UndCarouselElement['slidesPerView']) {
|
|
65
|
+
this.#el.slidesPerView = value;
|
|
66
|
+
}
|
|
67
|
+
get slidesPerView(): UndCarouselElement['slidesPerView'] {
|
|
68
|
+
return this.#el.slidesPerView;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** With `layout="scroll"` and `slides-per-view`: leave room so part of the next slide shows. */
|
|
72
|
+
@Input({ transform: booleanAttribute })
|
|
73
|
+
set peek(value: boolean) {
|
|
74
|
+
this.#el.peek = value;
|
|
75
|
+
}
|
|
76
|
+
get peek(): UndCarouselElement['peek'] {
|
|
77
|
+
return this.#el.peek;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** With `layout="scroll"`: snap slides to the start edge. */
|
|
81
|
+
@Input({ transform: booleanAttribute })
|
|
82
|
+
set snap(value: boolean) {
|
|
83
|
+
this.#el.snap = value;
|
|
84
|
+
}
|
|
85
|
+
get snap(): UndCarouselElement['snap'] {
|
|
86
|
+
return this.#el.snap;
|
|
87
|
+
}
|
|
88
|
+
|
|
53
89
|
/** Rotate automatically. Off by default; see the class description. */
|
|
54
90
|
@Input({ transform: booleanAttribute })
|
|
55
91
|
set autoplay(value: boolean) {
|
|
@@ -40,4 +40,85 @@ export class UndCenter {
|
|
|
40
40
|
get text(): UndCenterElement['text'] {
|
|
41
41
|
return this.#el.text;
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
/** Astryx flex centering: `both`, `horizontal` or `vertical`. Unset keeps the max-width column. */
|
|
45
|
+
@Input()
|
|
46
|
+
set axis(value: UndCenterElement['axis']) {
|
|
47
|
+
this.#el.axis = value;
|
|
48
|
+
}
|
|
49
|
+
get axis(): UndCenterElement['axis'] {
|
|
50
|
+
return this.#el.axis;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** An inline flex box that centers its content (both axes unless `axis` says otherwise). */
|
|
54
|
+
@Input({ transform: booleanAttribute })
|
|
55
|
+
set inline(value: boolean) {
|
|
56
|
+
this.#el.inline = value;
|
|
57
|
+
}
|
|
58
|
+
get inline(): UndCenterElement['inline'] {
|
|
59
|
+
return this.#el.inline;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Padding on every side, a space step (`0`, `0.5`, `1`, `1.5`, `2` ... `32`). Replaces the gutter. */
|
|
63
|
+
@Input()
|
|
64
|
+
set padding(value: UndCenterElement['padding']) {
|
|
65
|
+
this.#el.padding = value;
|
|
66
|
+
}
|
|
67
|
+
get padding(): UndCenterElement['padding'] {
|
|
68
|
+
return this.#el.padding;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Inline (start and end) padding, a space step. Wins over `padding`. */
|
|
72
|
+
@Input()
|
|
73
|
+
set paddingInline(value: UndCenterElement['paddingInline']) {
|
|
74
|
+
this.#el.paddingInline = value;
|
|
75
|
+
}
|
|
76
|
+
get paddingInline(): UndCenterElement['paddingInline'] {
|
|
77
|
+
return this.#el.paddingInline;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Block (top and bottom) padding, a space step. Wins over `padding`. */
|
|
81
|
+
@Input()
|
|
82
|
+
set paddingBlock(value: UndCenterElement['paddingBlock']) {
|
|
83
|
+
this.#el.paddingBlock = value;
|
|
84
|
+
}
|
|
85
|
+
get paddingBlock(): UndCenterElement['paddingBlock'] {
|
|
86
|
+
return this.#el.paddingBlock;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Inline-start padding, a space step. Wins over `padding-inline`. */
|
|
90
|
+
@Input()
|
|
91
|
+
set paddingInlineStart(value: UndCenterElement['paddingInlineStart']) {
|
|
92
|
+
this.#el.paddingInlineStart = value;
|
|
93
|
+
}
|
|
94
|
+
get paddingInlineStart(): UndCenterElement['paddingInlineStart'] {
|
|
95
|
+
return this.#el.paddingInlineStart;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Inline-end padding, a space step. Wins over `padding-inline`. */
|
|
99
|
+
@Input()
|
|
100
|
+
set paddingInlineEnd(value: UndCenterElement['paddingInlineEnd']) {
|
|
101
|
+
this.#el.paddingInlineEnd = value;
|
|
102
|
+
}
|
|
103
|
+
get paddingInlineEnd(): UndCenterElement['paddingInlineEnd'] {
|
|
104
|
+
return this.#el.paddingInlineEnd;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** Block-start padding, a space step. Wins over `padding-block`. */
|
|
108
|
+
@Input()
|
|
109
|
+
set paddingBlockStart(value: UndCenterElement['paddingBlockStart']) {
|
|
110
|
+
this.#el.paddingBlockStart = value;
|
|
111
|
+
}
|
|
112
|
+
get paddingBlockStart(): UndCenterElement['paddingBlockStart'] {
|
|
113
|
+
return this.#el.paddingBlockStart;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** Block-end padding, a space step. Wins over `padding-block`. */
|
|
117
|
+
@Input()
|
|
118
|
+
set paddingBlockEnd(value: UndCenterElement['paddingBlockEnd']) {
|
|
119
|
+
this.#el.paddingBlockEnd = value;
|
|
120
|
+
}
|
|
121
|
+
get paddingBlockEnd(): UndCenterElement['paddingBlockEnd'] {
|
|
122
|
+
return this.#el.paddingBlockEnd;
|
|
123
|
+
}
|
|
43
124
|
}
|