@rt-tools/ui-kit-v2 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/fesm2022/rt-tools-ui-kit-v2-accordion.mjs +79 -0
- package/fesm2022/rt-tools-ui-kit-v2-accordion.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-action-bar.mjs +227 -0
- package/fesm2022/rt-tools-ui-kit-v2-action-bar.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-aside-section.mjs +47 -0
- package/fesm2022/rt-tools-ui-kit-v2-aside-section.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-aside.mjs +702 -0
- package/fesm2022/rt-tools-ui-kit-v2-aside.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-autocomplete.mjs +214 -0
- package/fesm2022/rt-tools-ui-kit-v2-autocomplete.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-bar-list.mjs +53 -0
- package/fesm2022/rt-tools-ui-kit-v2-bar-list.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-bottom-sheet.mjs +88 -0
- package/fesm2022/rt-tools-ui-kit-v2-bottom-sheet.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs +365 -0
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-calendar.mjs +152 -0
- package/fesm2022/rt-tools-ui-kit-v2-calendar.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-card.mjs +72 -0
- package/fesm2022/rt-tools-ui-kit-v2-card.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-checkbox.mjs +111 -0
- package/fesm2022/rt-tools-ui-kit-v2-checkbox.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-collapsible-text.mjs +76 -0
- package/fesm2022/rt-tools-ui-kit-v2-collapsible-text.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-confirm-popover.mjs +255 -0
- package/fesm2022/rt-tools-ui-kit-v2-confirm-popover.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-container.mjs +1326 -0
- package/fesm2022/rt-tools-ui-kit-v2-container.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs +2590 -0
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-counter-row.mjs +45 -0
- package/fesm2022/rt-tools-ui-kit-v2-counter-row.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-counter.mjs +158 -0
- package/fesm2022/rt-tools-ui-kit-v2-counter.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-data-list.mjs +894 -0
- package/fesm2022/rt-tools-ui-kit-v2-data-list.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-data-table.mjs +1217 -0
- package/fesm2022/rt-tools-ui-kit-v2-data-table.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-date-picker.mjs +779 -0
- package/fesm2022/rt-tools-ui-kit-v2-date-picker.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-date-range.mjs +573 -0
- package/fesm2022/rt-tools-ui-kit-v2-date-range.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-delta-view.mjs +141 -0
- package/fesm2022/rt-tools-ui-kit-v2-delta-view.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-detail-list.mjs +68 -0
- package/fesm2022/rt-tools-ui-kit-v2-detail-list.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-dialog.mjs +478 -0
- package/fesm2022/rt-tools-ui-kit-v2-dialog.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-dot-field.mjs +183 -0
- package/fesm2022/rt-tools-ui-kit-v2-dot-field.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-download-link.mjs +44 -0
- package/fesm2022/rt-tools-ui-kit-v2-download-link.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-list.mjs +260 -0
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-list.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-selector.mjs +937 -0
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-selector.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-empty-state.mjs +56 -0
- package/fesm2022/rt-tools-ui-kit-v2-empty-state.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-expansion-panel.mjs +107 -0
- package/fesm2022/rt-tools-ui-kit-v2-expansion-panel.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-field.mjs +183 -0
- package/fesm2022/rt-tools-ui-kit-v2-field.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-card.mjs +219 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-card.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-drop.mjs +214 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-drop.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-input.mjs +117 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-input.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-list.mjs +32 -0
- package/fesm2022/rt-tools-ui-kit-v2-file-list.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-filter-control.mjs +91 -0
- package/fesm2022/rt-tools-ui-kit-v2-filter-control.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-form-control.mjs +220 -0
- package/fesm2022/rt-tools-ui-kit-v2-form-control.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-header.mjs +72 -0
- package/fesm2022/rt-tools-ui-kit-v2-header.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-icon-button.mjs +163 -0
- package/fesm2022/rt-tools-ui-kit-v2-icon-button.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-icon.mjs +674 -0
- package/fesm2022/rt-tools-ui-kit-v2-icon.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-image-cropper.mjs +540 -0
- package/fesm2022/rt-tools-ui-kit-v2-image-cropper.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-image-upload.mjs +227 -0
- package/fesm2022/rt-tools-ui-kit-v2-image-upload.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-info-item.mjs +37 -0
- package/fesm2022/rt-tools-ui-kit-v2-info-item.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-input-number.mjs +361 -0
- package/fesm2022/rt-tools-ui-kit-v2-input-number.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-input.mjs +143 -0
- package/fesm2022/rt-tools-ui-kit-v2-input.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-live-badge.mjs +49 -0
- package/fesm2022/rt-tools-ui-kit-v2-live-badge.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-logo.mjs +97 -0
- package/fesm2022/rt-tools-ui-kit-v2-logo.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-markdown-text.mjs +57 -0
- package/fesm2022/rt-tools-ui-kit-v2-markdown-text.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-menu.mjs +537 -0
- package/fesm2022/rt-tools-ui-kit-v2-menu.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-message.mjs +105 -0
- package/fesm2022/rt-tools-ui-kit-v2-message.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-money-list.mjs +71 -0
- package/fesm2022/rt-tools-ui-kit-v2-money-list.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-multiselect.mjs +315 -0
- package/fesm2022/rt-tools-ui-kit-v2-multiselect.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-night-grid.mjs +51 -0
- package/fesm2022/rt-tools-ui-kit-v2-night-grid.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-note.mjs +44 -0
- package/fesm2022/rt-tools-ui-kit-v2-note.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-notifications-bell.mjs +54 -0
- package/fesm2022/rt-tools-ui-kit-v2-notifications-bell.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-page-header.mjs +339 -0
- package/fesm2022/rt-tools-ui-kit-v2-page-header.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-pagination.mjs +187 -0
- package/fesm2022/rt-tools-ui-kit-v2-pagination.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-photo-viewer.mjs +170 -0
- package/fesm2022/rt-tools-ui-kit-v2-photo-viewer.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-popover.mjs +312 -0
- package/fesm2022/rt-tools-ui-kit-v2-popover.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-radio-button.mjs +174 -0
- package/fesm2022/rt-tools-ui-kit-v2-radio-button.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-radius.mjs +56 -0
- package/fesm2022/rt-tools-ui-kit-v2-radius.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs +96 -41
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-ripple.mjs +118 -0
- package/fesm2022/rt-tools-ui-kit-v2-ripple.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-scroll-area.mjs +290 -0
- package/fesm2022/rt-tools-ui-kit-v2-scroll-area.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-section-nav.mjs +37 -0
- package/fesm2022/rt-tools-ui-kit-v2-section-nav.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-select.mjs +495 -0
- package/fesm2022/rt-tools-ui-kit-v2-select.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-side-menu.mjs +1493 -0
- package/fesm2022/rt-tools-ui-kit-v2-side-menu.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-skeleton-wrapper.mjs +49 -0
- package/fesm2022/rt-tools-ui-kit-v2-skeleton-wrapper.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-skeleton.mjs +123 -0
- package/fesm2022/rt-tools-ui-kit-v2-skeleton.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-spinner.mjs +70 -0
- package/fesm2022/rt-tools-ui-kit-v2-spinner.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-split-button.mjs +92 -0
- package/fesm2022/rt-tools-ui-kit-v2-split-button.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-stat-tile.mjs +147 -0
- package/fesm2022/rt-tools-ui-kit-v2-stat-tile.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-stepper.mjs +117 -0
- package/fesm2022/rt-tools-ui-kit-v2-stepper.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-table.mjs +1636 -0
- package/fesm2022/rt-tools-ui-kit-v2-table.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-tabs.mjs +350 -0
- package/fesm2022/rt-tools-ui-kit-v2-tabs.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-tag.mjs +122 -0
- package/fesm2022/rt-tools-ui-kit-v2-tag.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-textarea.mjs +85 -0
- package/fesm2022/rt-tools-ui-kit-v2-textarea.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-theme-toggle.mjs +73 -0
- package/fesm2022/rt-tools-ui-kit-v2-theme-toggle.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs +196 -0
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-timeline.mjs +39 -0
- package/fesm2022/rt-tools-ui-kit-v2-timeline.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-toast.mjs +338 -0
- package/fesm2022/rt-tools-ui-kit-v2-toast.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-toggle-button-group.mjs +132 -0
- package/fesm2022/rt-tools-ui-kit-v2-toggle-button-group.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-toggle-switch.mjs +162 -0
- package/fesm2022/rt-tools-ui-kit-v2-toggle-switch.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-toolbar.mjs +135 -0
- package/fesm2022/rt-tools-ui-kit-v2-toolbar.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-tooltip.mjs +214 -0
- package/fesm2022/rt-tools-ui-kit-v2-tooltip.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-welcome-dialog.mjs +64 -0
- package/fesm2022/rt-tools-ui-kit-v2-welcome-dialog.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-workspace-details.mjs +263 -0
- package/fesm2022/rt-tools-ui-kit-v2-workspace-details.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-workspace.mjs +296 -0
- package/fesm2022/rt-tools-ui-kit-v2-workspace.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2.mjs +91 -23164
- package/fesm2022/rt-tools-ui-kit-v2.mjs.map +1 -1
- package/package.json +349 -1
- package/rt-tools-ui-kit-v2-0.18.0.tgz +0 -0
- package/src/lib/components/action-bar/CONTEXT.md +5 -0
- package/src/lib/components/action-bar/rt-action-bar.component.scss +30 -16
- package/src/lib/components/aside/CONTEXT.md +9 -1
- package/src/lib/components/aside/footer/rt-aside-footer.component.scss +7 -8
- package/src/lib/components/aside/header/rt-aside-header.component.scss +16 -1
- package/src/lib/components/aside/rt-aside.component.scss +17 -1
- package/src/lib/components/button/CONTEXT.md +12 -11
- package/src/lib/components/button/rt-button.directive.scss +36 -0
- package/src/lib/components/data-list/settings/rt-data-list-settings-aside.component.scss +2 -2
- package/src/lib/components/data-table/cell/rt-data-table-cell.component.scss +1 -1
- package/src/lib/components/data-table/filter-cell/rt-data-table-filter-cell.component.scss +1 -1
- package/src/lib/components/data-table/rt-data-table.component.scss +1 -1
- package/src/lib/components/dialog/CONTEXT.md +9 -0
- package/src/lib/components/dialog/content/rt-dialog-content.component.scss +20 -0
- package/src/lib/components/dialog/footer/rt-dialog-footer.component.scss +18 -2
- package/src/lib/components/dialog/header/rt-dialog-header.component.scss +21 -3
- package/src/lib/components/dialog/rt-dialog.component.scss +9 -3
- package/src/lib/components/dot-field/CONTEXT.md +31 -0
- package/src/lib/components/dot-field/rt-dot-field.component.scss +20 -0
- package/src/lib/components/dot-field/stories/component/CONTEXT.md +14 -0
- package/src/lib/components/dot-field/stories/component/test-dot-field.component.scss +31 -0
- package/src/lib/components/dynamic-selector/CONTEXT.md +6 -0
- package/src/lib/components/field/CONTEXT.md +18 -2
- package/src/lib/components/header/CONTEXT.md +2 -2
- package/src/lib/components/icon/CONTEXT.md +11 -7
- package/src/lib/components/icon/rt-icon.component.scss +47 -0
- package/src/lib/components/icon-button/CONTEXT.md +27 -20
- package/src/lib/components/icon-button/rt-icon-button.component.scss +51 -25
- package/src/lib/components/image-upload/CONTEXT.md +20 -15
- package/src/lib/components/image-upload/rt-image-upload.component.scss +14 -2
- package/src/lib/components/pagination/rt-pagination.component.scss +1 -1
- package/src/lib/components/scroll-area/CONTEXT.md +2 -0
- package/src/lib/components/scroll-area/rt-scroll-area.component.scss +20 -3
- package/src/lib/components/select/rt-select.component.scss +4 -0
- package/src/lib/components/side-menu/CONTEXT.md +7 -2
- package/src/lib/components/spinner/CONTEXT.md +15 -8
- package/src/lib/components/spinner/rt-spinner.component.scss +108 -9
- package/src/lib/components/tag/rt-tag.component.scss +43 -23
- package/src/lib/components/toast/CONTEXT.md +8 -0
- package/src/lib/components/toast/rt-toast.component.scss +74 -15
- package/src/lib/components/toast/rt-toaster.component.scss +5 -1
- package/src/lib/components/toggle-button-group/rt-toggle-button-group.component.scss +35 -37
- package/src/lib/components/toggle-switch/CONTEXT.md +11 -3
- package/src/lib/components/toggle-switch/rt-toggle-switch.component.scss +53 -14
- package/src/lib/components/toolbar/rt-toolbar.component.scss +15 -4
- package/src/lib/components/tooltip/CONTEXT.md +5 -5
- package/src/rich-editor/lib/components/chat/CONTEXT.md +7 -2
- package/src/rich-editor/lib/components/chat/rt-chat.component.scss +25 -0
- package/src/styles/_semantic.scss +1 -1
- package/styles/tokens.css +43 -8
- package/types/rt-tools-ui-kit-v2-accordion.d.ts +30 -0
- package/types/rt-tools-ui-kit-v2-action-bar.d.ts +140 -0
- package/types/rt-tools-ui-kit-v2-aside-section.d.ts +25 -0
- package/types/rt-tools-ui-kit-v2-aside.d.ts +436 -0
- package/types/rt-tools-ui-kit-v2-autocomplete.d.ts +78 -0
- package/types/rt-tools-ui-kit-v2-bar-list.d.ts +41 -0
- package/types/rt-tools-ui-kit-v2-bottom-sheet.d.ts +20 -0
- package/types/rt-tools-ui-kit-v2-button.d.ts +76 -0
- package/types/rt-tools-ui-kit-v2-calendar.d.ts +96 -0
- package/types/rt-tools-ui-kit-v2-card.d.ts +38 -0
- package/types/rt-tools-ui-kit-v2-checkbox.d.ts +46 -0
- package/types/rt-tools-ui-kit-v2-collapsible-text.d.ts +20 -0
- package/types/rt-tools-ui-kit-v2-confirm-popover.d.ts +85 -0
- package/types/rt-tools-ui-kit-v2-container.d.ts +425 -0
- package/types/rt-tools-ui-kit-v2-core.d.ts +1222 -0
- package/types/rt-tools-ui-kit-v2-counter-row.d.ts +22 -0
- package/types/rt-tools-ui-kit-v2-counter.d.ts +70 -0
- package/types/rt-tools-ui-kit-v2-data-list.d.ts +334 -0
- package/types/rt-tools-ui-kit-v2-data-table.d.ts +494 -0
- package/types/rt-tools-ui-kit-v2-date-picker.d.ts +181 -0
- package/types/rt-tools-ui-kit-v2-date-range.d.ts +98 -0
- package/types/rt-tools-ui-kit-v2-delta-view.d.ts +20 -0
- package/types/rt-tools-ui-kit-v2-detail-list.d.ts +33 -0
- package/types/rt-tools-ui-kit-v2-dialog.d.ts +287 -0
- package/types/rt-tools-ui-kit-v2-dot-field.d.ts +17 -0
- package/types/rt-tools-ui-kit-v2-download-link.d.ts +17 -0
- package/types/rt-tools-ui-kit-v2-dynamic-list.d.ts +139 -0
- package/types/rt-tools-ui-kit-v2-dynamic-selector.d.ts +384 -0
- package/types/rt-tools-ui-kit-v2-empty-state.d.ts +29 -0
- package/types/rt-tools-ui-kit-v2-expansion-panel.d.ts +57 -0
- package/types/rt-tools-ui-kit-v2-field.d.ts +82 -0
- package/types/rt-tools-ui-kit-v2-file-card.d.ts +114 -0
- package/types/rt-tools-ui-kit-v2-file-drop.d.ts +75 -0
- package/types/rt-tools-ui-kit-v2-file-input.d.ts +48 -0
- package/types/rt-tools-ui-kit-v2-file-list.d.ts +13 -0
- package/types/rt-tools-ui-kit-v2-filter-control.d.ts +72 -0
- package/types/rt-tools-ui-kit-v2-form-control.d.ts +74 -0
- package/types/rt-tools-ui-kit-v2-header.d.ts +40 -0
- package/types/rt-tools-ui-kit-v2-icon-button.d.ts +113 -0
- package/types/rt-tools-ui-kit-v2-icon.d.ts +238 -0
- package/types/rt-tools-ui-kit-v2-image-cropper.d.ts +168 -0
- package/types/rt-tools-ui-kit-v2-image-upload.d.ts +102 -0
- package/types/rt-tools-ui-kit-v2-info-item.d.ts +13 -0
- package/types/rt-tools-ui-kit-v2-input-number.d.ts +67 -0
- package/types/rt-tools-ui-kit-v2-input.d.ts +54 -0
- package/types/rt-tools-ui-kit-v2-live-badge.d.ts +23 -0
- package/types/rt-tools-ui-kit-v2-logo.d.ts +58 -0
- package/types/rt-tools-ui-kit-v2-markdown-text.d.ts +30 -0
- package/types/rt-tools-ui-kit-v2-menu.d.ts +217 -0
- package/types/rt-tools-ui-kit-v2-message.d.ts +56 -0
- package/types/rt-tools-ui-kit-v2-money-list.d.ts +34 -0
- package/types/rt-tools-ui-kit-v2-multiselect.d.ts +93 -0
- package/types/rt-tools-ui-kit-v2-night-grid.d.ts +39 -0
- package/types/rt-tools-ui-kit-v2-note.d.ts +21 -0
- package/types/rt-tools-ui-kit-v2-notifications-bell.d.ts +23 -0
- package/types/rt-tools-ui-kit-v2-page-header.d.ts +173 -0
- package/types/rt-tools-ui-kit-v2-pagination.d.ts +64 -0
- package/types/rt-tools-ui-kit-v2-photo-viewer.d.ts +98 -0
- package/types/rt-tools-ui-kit-v2-popover.d.ts +79 -0
- package/types/rt-tools-ui-kit-v2-radio-button.d.ts +61 -0
- package/types/rt-tools-ui-kit-v2-radius.d.ts +37 -0
- package/types/rt-tools-ui-kit-v2-rich-editor.d.ts +16 -20
- package/types/rt-tools-ui-kit-v2-ripple.d.ts +39 -0
- package/types/rt-tools-ui-kit-v2-scroll-area.d.ts +91 -0
- package/types/rt-tools-ui-kit-v2-section-nav.d.ts +23 -0
- package/types/rt-tools-ui-kit-v2-select.d.ts +215 -0
- package/types/rt-tools-ui-kit-v2-side-menu.d.ts +483 -0
- package/types/rt-tools-ui-kit-v2-skeleton-wrapper.d.ts +32 -0
- package/types/rt-tools-ui-kit-v2-skeleton.d.ts +41 -0
- package/types/rt-tools-ui-kit-v2-spinner.d.ts +56 -0
- package/types/rt-tools-ui-kit-v2-split-button.d.ts +72 -0
- package/types/rt-tools-ui-kit-v2-stat-tile.d.ts +81 -0
- package/types/rt-tools-ui-kit-v2-stepper.d.ts +51 -0
- package/types/rt-tools-ui-kit-v2-table.d.ts +739 -0
- package/types/rt-tools-ui-kit-v2-tabs.d.ts +153 -0
- package/types/rt-tools-ui-kit-v2-tag.d.ts +70 -0
- package/types/rt-tools-ui-kit-v2-textarea.d.ts +36 -0
- package/types/rt-tools-ui-kit-v2-theme-toggle.d.ts +43 -0
- package/types/rt-tools-ui-kit-v2-thread-list.d.ts +111 -0
- package/types/rt-tools-ui-kit-v2-timeline.d.ts +35 -0
- package/types/rt-tools-ui-kit-v2-toast.d.ts +103 -0
- package/types/rt-tools-ui-kit-v2-toggle-button-group.d.ts +109 -0
- package/types/rt-tools-ui-kit-v2-toggle-switch.d.ts +85 -0
- package/types/rt-tools-ui-kit-v2-toolbar.d.ts +66 -0
- package/types/rt-tools-ui-kit-v2-tooltip.d.ts +74 -0
- package/types/rt-tools-ui-kit-v2-welcome-dialog.d.ts +33 -0
- package/types/rt-tools-ui-kit-v2-workspace-details.d.ts +128 -0
- package/types/rt-tools-ui-kit-v2-workspace.d.ts +84 -0
- package/types/rt-tools-ui-kit-v2.d.ts +87 -9290
- package/rt-tools-ui-kit-v2-0.16.0.tgz +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Signal, InputSignal, InputSignalWithTransform } from '@angular/core';
|
|
4
|
+
import { IButton } from '@rt-tools/ui-kit-v2/core';
|
|
5
|
+
import * as i1 from '@rt-tools/ui-kit-v2/ripple';
|
|
6
|
+
import * as i2 from '@rt-tools/ui-kit-v2/radius';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Директива стилизованной кнопки. Применяется к `<button>` или `<a>`
|
|
10
|
+
* (для ссылок-кнопок с `routerLink`/`href`).
|
|
11
|
+
*
|
|
12
|
+
* Иконка и лейбл рендерятся внутрь элемента через `Renderer2`, чтобы можно
|
|
13
|
+
* было применять директиву к существующему элементу без обёртки.
|
|
14
|
+
* Поддерживает анимированный переход в/из loading.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <button rtButton label="Войти" theme="primary"></button>
|
|
19
|
+
* <button rtButton label="Скачать" icon="ico-download" theme="success"></button>
|
|
20
|
+
* <button rtButton icon="pencil" theme="info" appearance="text"></button>
|
|
21
|
+
* <button rtButton label="Сохранение..." [loading]="saving()" [disabled]="saving()"></button>
|
|
22
|
+
* <a rtButton label="Главная" [routerLink]="'/'"></a>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare class RtButtonDirective {
|
|
26
|
+
#private;
|
|
27
|
+
protected readonly isIconOnly: Signal<boolean>;
|
|
28
|
+
/** Текстовый лейбл кнопки. Если null — кнопка только с иконкой. */
|
|
29
|
+
readonly label: InputSignal<string | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Значок кнопки: имя кита (`check`) или имя Material (`arrow_back`). Имя Material рисуется
|
|
32
|
+
* так же, как вход `glyph` у `rt-icon`: парой из перечня кита или лигатурой шрифта — по
|
|
33
|
+
* настройке `glyphStrategy` у `provideRtIcons()`. Если null — без иконки.
|
|
34
|
+
*/
|
|
35
|
+
readonly icon: InputSignal<string | null>;
|
|
36
|
+
/** Сторона размещения иконки относительно лейбла. */
|
|
37
|
+
readonly iconPos: InputSignal<IButton.IconPos>;
|
|
38
|
+
/** Семантическая палитра. */
|
|
39
|
+
readonly theme: InputSignal<IButton.Theme>;
|
|
40
|
+
/** Внешний вид (filled / outlined / text). Умолчание — из настроек кита. */
|
|
41
|
+
readonly appearance: InputSignal<IButton.Appearance>;
|
|
42
|
+
/** Размер. Умолчание — из настроек кита. */
|
|
43
|
+
readonly size: InputSignal<IButton.Size>;
|
|
44
|
+
/** Состояние загрузки: показывает спиннер вместо иконки, блокирует клики. */
|
|
45
|
+
readonly loading: InputSignalWithTransform<boolean, BooleanInput>;
|
|
46
|
+
/** Кастомный CSS-класс иконки в loading. Если null — встроенный CSS-спиннер. */
|
|
47
|
+
readonly loadingIcon: InputSignal<string | null>;
|
|
48
|
+
/**
|
|
49
|
+
* Подпись во время загрузки. `hide` оставляет подпись и иконку в кнопке невидимыми — ширина
|
|
50
|
+
* не скачет, — а спиннер ставит по центру; имя кнопки для скринридера остаётся.
|
|
51
|
+
*/
|
|
52
|
+
readonly loadingLabel: InputSignal<IButton.LoadingLabel>;
|
|
53
|
+
/**
|
|
54
|
+
* Положение двухпозиционной кнопки: `true` — нажата, `false` — отжата, `null` — положения нет
|
|
55
|
+
* вовсе.
|
|
56
|
+
*
|
|
57
|
+
* Три значения, а не два, потому что обычная кнопка переключателем не является и объявлять
|
|
58
|
+
* себя двухпозиционной не должна: сказанное вспомогательным средствам «эта кнопка отжата» на
|
|
59
|
+
* кнопке, которая просто запускает действие, — ложь, а не умолчание. Отжатое положение при
|
|
60
|
+
* этом объявляется наравне с нажатым: молчащая в отжатом виде кнопка неотличима от обычной, и
|
|
61
|
+
* о втором положении узнают только нажав.
|
|
62
|
+
*
|
|
63
|
+
* Само по нажатию положение не меняется: кнопка говорит о нажатии наружу, а положение
|
|
64
|
+
* возвращает вызывающий — иначе вид кнопки и состояние приложения расходятся при первом же
|
|
65
|
+
* отказе сохранения.
|
|
66
|
+
*/
|
|
67
|
+
readonly pressed: InputSignal<boolean | null>;
|
|
68
|
+
constructor();
|
|
69
|
+
/** Положение наружу: атрибута нет вовсе там, где положения у кнопки не бывает. */
|
|
70
|
+
protected get ariaPressed(): string | null;
|
|
71
|
+
protected get hostClasses(): Record<string, boolean>;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtButtonDirective, never>;
|
|
73
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RtButtonDirective, "button[rtButton], a[rtButton]", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "pressed": { "alias": "pressed"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RtRippleDirective; inputs: { "rippleDisabled": "rippleDisabled"; }; outputs: {}; }, { directive: typeof i2.RtRadiusDirective; inputs: { "radius": "radius"; }; outputs: {}; }]>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { RtButtonDirective };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Signal, ElementRef, InputSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
|
|
4
|
+
import * as i1 from '@rt-tools/ui-kit-v2/radius';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Контракты `rt-calendar` — презентационный месячный грид с range-выбором.
|
|
8
|
+
*
|
|
9
|
+
* Компонент домен-агностичен: состояния/цены/доступность дней вычисляет
|
|
10
|
+
* consumer и передаёт готовые view-модели месяцев. Клики по дням и навигация
|
|
11
|
+
* по месяцам эмитятся наружу; никакой доменной логики внутри нет.
|
|
12
|
+
*/
|
|
13
|
+
/** Состояние ячейки дня — модификатор `data-state` на кнопке дня. */
|
|
14
|
+
declare enum ERtCalendarDayState {
|
|
15
|
+
Free = "free",
|
|
16
|
+
Busy = "busy",
|
|
17
|
+
Past = "past",
|
|
18
|
+
Blocked = "blocked",
|
|
19
|
+
Start = "start",
|
|
20
|
+
End = "end",
|
|
21
|
+
InRange = "in-range",
|
|
22
|
+
/** Выбранный день одиночного выбора — залит. */
|
|
23
|
+
Chosen = "chosen"
|
|
24
|
+
}
|
|
25
|
+
declare namespace IRtCalendar {
|
|
26
|
+
/** View-модель дня. `key` — стабильный ключ (ISO-дата). */
|
|
27
|
+
interface Day {
|
|
28
|
+
key: string;
|
|
29
|
+
dayOfMonth: number;
|
|
30
|
+
/** Подпись под числом (цена за ночь и т.п.); пустая строка не рендерится. */
|
|
31
|
+
sublabel: string;
|
|
32
|
+
state: ERtCalendarDayState;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
/** Сегодняшний день — обведён рамкой поверх любого состояния. */
|
|
35
|
+
today?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/** Клавиша сетки, нажатая на дне. */
|
|
38
|
+
interface GridKey {
|
|
39
|
+
key: string;
|
|
40
|
+
day: Day;
|
|
41
|
+
}
|
|
42
|
+
/** View-модель месяца: подпись, пустые ячейки до первого дня, дни. */
|
|
43
|
+
interface Month {
|
|
44
|
+
key: string;
|
|
45
|
+
label: string;
|
|
46
|
+
leadingBlanks: readonly number[];
|
|
47
|
+
days: readonly Day[];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare class RtCalendarComponent {
|
|
52
|
+
#private;
|
|
53
|
+
protected readonly sublabelSkeletonHeight: string;
|
|
54
|
+
protected readonly chosenState: ERtCalendarDayState;
|
|
55
|
+
protected readonly dayButtons: Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
56
|
+
/**
|
|
57
|
+
* День, что стоит в порядке обхода Tab в режиме сетки: `activeKey`, иначе выбранный, иначе
|
|
58
|
+
* сегодняшний, иначе первый доступный. Вне режима сетки — `null`, и каждый день обходится Tab.
|
|
59
|
+
*/
|
|
60
|
+
protected readonly rovingKey: Signal<string | null>;
|
|
61
|
+
readonly months: InputSignal<readonly IRtCalendar.Month[]>;
|
|
62
|
+
readonly weekdayLabels: InputSignal<readonly string[]>;
|
|
63
|
+
readonly canPrev: InputSignalWithTransform<boolean, BooleanInput>;
|
|
64
|
+
readonly canNext: InputSignalWithTransform<boolean, BooleanInput>;
|
|
65
|
+
/** Локализованные aria-подписи кнопок навигации — задаёт consumer. */
|
|
66
|
+
readonly prevAriaLabel: InputSignal<string>;
|
|
67
|
+
readonly nextAriaLabel: InputSignal<string>;
|
|
68
|
+
readonly sublabelsLoading: InputSignalWithTransform<boolean, BooleanInput>;
|
|
69
|
+
/**
|
|
70
|
+
* Режим сетки: один день в обходе Tab, клавиши стрелок, PageUp/PageDown, Home и End уходят
|
|
71
|
+
* наружу событием `gridKey`, а фокус встаёт на `activeKey`. Выключен — поведение прежнее.
|
|
72
|
+
*/
|
|
73
|
+
readonly grid: InputSignalWithTransform<boolean, BooleanInput>;
|
|
74
|
+
/** День с фокусом в режиме сетки, ключ `YYYY-MM-DD`; его ставит consumer по `gridKey`. */
|
|
75
|
+
readonly activeKey: InputSignal<string | null>;
|
|
76
|
+
/** Заголовок месяца — кнопка, что шлёт `titleClick`: так consumer открывает выбор месяца. */
|
|
77
|
+
readonly titleAction: InputSignalWithTransform<boolean, BooleanInput>;
|
|
78
|
+
/** Заголовок первого месяца стоит в шапке между стрелками, а не над сеткой. */
|
|
79
|
+
readonly headerTitle: InputSignalWithTransform<boolean, BooleanInput>;
|
|
80
|
+
readonly prevMonth: OutputEmitterRef<void>;
|
|
81
|
+
readonly nextMonth: OutputEmitterRef<void>;
|
|
82
|
+
readonly dayClick: OutputEmitterRef<IRtCalendar.Day>;
|
|
83
|
+
/** Клавиша сетки на дне: куда перевести фокус, решает consumer. */
|
|
84
|
+
readonly gridKey: OutputEmitterRef<IRtCalendar.GridKey>;
|
|
85
|
+
readonly titleClick: OutputEmitterRef<IRtCalendar.Month>;
|
|
86
|
+
/** День под указателем или с фокусом; `null` — указатель ушёл с месяцев. По нему рисуется будущий диапазон. */
|
|
87
|
+
readonly dayHover: OutputEmitterRef<IRtCalendar.Day | null>;
|
|
88
|
+
constructor();
|
|
89
|
+
protected onDayKey(event: KeyboardEvent, day: IRtCalendar.Day): void;
|
|
90
|
+
protected onDayHover(day: IRtCalendar.Day): void;
|
|
91
|
+
protected onDayClick(day: IRtCalendar.Day): void;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtCalendarComponent, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtCalendarComponent, "rt-calendar", never, { "months": { "alias": "months"; "required": true; "isSignal": true; }; "weekdayLabels": { "alias": "weekdayLabels"; "required": true; "isSignal": true; }; "canPrev": { "alias": "canPrev"; "required": false; "isSignal": true; }; "canNext": { "alias": "canNext"; "required": false; "isSignal": true; }; "prevAriaLabel": { "alias": "prevAriaLabel"; "required": false; "isSignal": true; }; "nextAriaLabel": { "alias": "nextAriaLabel"; "required": false; "isSignal": true; }; "sublabelsLoading": { "alias": "sublabelsLoading"; "required": false; "isSignal": true; }; "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "activeKey": { "alias": "activeKey"; "required": false; "isSignal": true; }; "titleAction": { "alias": "titleAction"; "required": false; "isSignal": true; }; "headerTitle": { "alias": "headerTitle"; "required": false; "isSignal": true; }; }, { "prevMonth": "prevMonth"; "nextMonth": "nextMonth"; "dayClick": "dayClick"; "gridKey": "gridKey"; "titleClick": "titleClick"; "dayHover": "dayHover"; }, never, ["[calendarHint]", "*"], true, [{ directive: typeof i1.RtRadiusDirective; inputs: { "radius": "radius"; }; outputs: {}; }]>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export { ERtCalendarDayState, IRtCalendar, RtCalendarComponent };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InputSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
|
|
4
|
+
import * as i1 from '@rt-tools/ui-kit-v2/radius';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Контейнер-карточка с опциональным header (текст ИЛИ projected slot) и footer
|
|
8
|
+
* (projected slot). Default content проецируется в основную область. Поддерживает
|
|
9
|
+
* clickable mode для card-as-button сценариев: при `clickable=true` корневой
|
|
10
|
+
* `<article>` получает `role="button"`, `tabindex="0"` и эмиттит `cardClick`
|
|
11
|
+
* MouseEvent на клик и Enter/Space с клавиатуры.
|
|
12
|
+
*
|
|
13
|
+
* Две стратегии header:
|
|
14
|
+
* 1. Текстом через `header="..."` input — рендерит `<h3 class="rt-card__title">`.
|
|
15
|
+
* 2. Произвольный контент через attribute-selector slot `[rtCardHeader]`.
|
|
16
|
+
*
|
|
17
|
+
* Footer — только через slot `[rtCardFooter]`. Пустые header/footer слоты
|
|
18
|
+
* визуально скрываются через `:empty` CSS-селектор.
|
|
19
|
+
*
|
|
20
|
+
* Все цвета и размеры — через семантические `--rt-*` токены; BEM-разметка через
|
|
21
|
+
* директивы `rtBlock` / `rtElem` / `rtMod` из `@rt-tools/core`.
|
|
22
|
+
*/
|
|
23
|
+
declare class RtCardComponent {
|
|
24
|
+
/** Заголовок-текст; если задан — рендерится `<h3 class="rt-card__title">`. */
|
|
25
|
+
readonly header: InputSignal<string | null>;
|
|
26
|
+
/** ARIA-label на корневом `<article>`. */
|
|
27
|
+
readonly ariaLabel: InputSignal<string | null>;
|
|
28
|
+
/** Делает карточку интерактивной: `role="button"`, `tabindex="0"`, клавиатура. */
|
|
29
|
+
readonly clickable: InputSignalWithTransform<boolean, BooleanInput>;
|
|
30
|
+
/** Эмиттит MouseEvent при клике (или Enter/Space) — только если `clickable=true`. */
|
|
31
|
+
readonly cardClick: OutputEmitterRef<MouseEvent>;
|
|
32
|
+
protected onClick(event: MouseEvent): void;
|
|
33
|
+
protected onKeyActivate(event: Event): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtCardComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtCardComponent, "rt-card", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; }, { "cardClick": "cardClick"; }, never, ["[rtCardHeader]", "*", "[rtCardFooter]"], true, [{ directive: typeof i1.RtRadiusDirective; inputs: { "radius": "radius"; }; outputs: {}; }]>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { RtCardComponent };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { WritableSignal, Signal, InputSignal, InputSignalWithTransform } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import * as i1 from '@rt-tools/ui-kit-v2/radius';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Чекбокс с `role="checkbox"` + `aria-checked` (`true`/`false`/`mixed`) поверх
|
|
9
|
+
* нативного `<button>` — клавиатурный toggle (Enter/Space) работает «из коробки»
|
|
10
|
+
* без отдельных keydown-хендлеров. Галочка/прочерк рисуются через `rt-icon`
|
|
11
|
+
* (`check`/`minus`), бокс и цвета — на токенах `--rt-*`.
|
|
12
|
+
*
|
|
13
|
+
* Реализует `ControlValueAccessor` для `boolean` value через
|
|
14
|
+
* `useExisting: forwardRef(...)` — `useClass` на self-reference вызывает
|
|
15
|
+
* NG0200 cycle при boot'е.
|
|
16
|
+
*
|
|
17
|
+
* Отключение складывается из двух независимых источников: входа `disabled` и
|
|
18
|
+
* слова формы (CVA `setDisabledState`). Отключено, если так сказал любой из
|
|
19
|
+
* них. Сводить их в один signal нельзя: форма зовёт `setDisabledState` при
|
|
20
|
+
* связывании контрола, то есть раньше, чем чекбокс впервые обновит своё вью,
|
|
21
|
+
* и мирроринг входа затирал бы её слово — контрол, созданный отключённым,
|
|
22
|
+
* оказывался бы кликабельным.
|
|
23
|
+
*
|
|
24
|
+
* `indeterminate` — чисто визуальное mixed-состояние; клик по нему разрешается
|
|
25
|
+
* в `true` (стандартное поведение tri-state чекбокса).
|
|
26
|
+
*
|
|
27
|
+
* Текстовая подпись проецируется через `<ng-content>`.
|
|
28
|
+
*/
|
|
29
|
+
declare class RtCheckboxComponent implements ControlValueAccessor {
|
|
30
|
+
#private;
|
|
31
|
+
protected readonly isChecked: WritableSignal<boolean>;
|
|
32
|
+
protected readonly isDisabled: Signal<boolean>;
|
|
33
|
+
readonly inputId: InputSignal<string | null>;
|
|
34
|
+
readonly ariaLabel: InputSignal<string | null>;
|
|
35
|
+
readonly disabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
36
|
+
readonly indeterminate: InputSignalWithTransform<boolean, BooleanInput>;
|
|
37
|
+
writeValue(value: boolean | null | undefined): void;
|
|
38
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
39
|
+
registerOnTouched(fn: () => void): void;
|
|
40
|
+
setDisabledState(disabled: boolean): void;
|
|
41
|
+
protected toggle(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtCheckboxComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtCheckboxComponent, "rt-checkbox", never, { "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.RtRadiusDirective; inputs: { "radius": "radius"; }; outputs: {}; }]>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { RtCheckboxComponent };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, Signal, ElementRef, WritableSignal, InputSignal, InputSignalWithTransform } from '@angular/core';
|
|
3
|
+
import { TRtKitLabelMap } from '@rt-tools/ui-kit-v2/core';
|
|
4
|
+
|
|
5
|
+
declare class RtCollapsibleTextComponent implements OnDestroy {
|
|
6
|
+
#private;
|
|
7
|
+
protected readonly t: Signal<TRtKitLabelMap>;
|
|
8
|
+
protected readonly textRef: Signal<ElementRef<HTMLElement> | undefined>;
|
|
9
|
+
protected readonly expanded: WritableSignal<boolean>;
|
|
10
|
+
protected readonly overflowing: WritableSignal<boolean>;
|
|
11
|
+
readonly paragraphs: InputSignal<readonly string[]>;
|
|
12
|
+
readonly clampLines: InputSignalWithTransform<number, number | string>;
|
|
13
|
+
constructor();
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
protected toggle(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtCollapsibleTextComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtCollapsibleTextComponent, "rt-collapsible-text", never, { "paragraphs": { "alias": "paragraphs"; "required": true; "isSignal": true; }; "clampLines": { "alias": "clampLines"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { RtCollapsibleTextComponent };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Signal, InputSignal, OutputEmitterRef, OnDestroy, WritableSignal, InputSignalWithTransform } from '@angular/core';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Модель confirm-popover: один корневой неймспейс с префиксом `I`.
|
|
7
|
+
*/
|
|
8
|
+
declare namespace IRtConfirmPopover {
|
|
9
|
+
/** Тон подтверждающей кнопки. Подмножество `IButton.Theme`. */
|
|
10
|
+
type Tone = 'danger' | 'warning' | 'primary';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Презентационная панель подтверждения. Рендерится директивой `[rtConfirm]`
|
|
15
|
+
* через CDK `ComponentPortal` под host-кнопкой. Содержит опциональный заголовок,
|
|
16
|
+
* текст вопроса и две кнопки: «Отмена» (text/secondary) и подтверждающую
|
|
17
|
+
* (`tone` — danger по умолчанию для деструктивных действий).
|
|
18
|
+
*
|
|
19
|
+
* `ViewEncapsulation.None` — стили префиксованы `.rt-confirm-popover`. Inputs
|
|
20
|
+
* выставляются директивой через `setInput`; outputs (`confirm`/`cancel`) она
|
|
21
|
+
* слушает и транслирует в `(confirmed)` / закрытие.
|
|
22
|
+
*/
|
|
23
|
+
declare class RtConfirmPopoverComponent {
|
|
24
|
+
#private;
|
|
25
|
+
protected readonly confirmText: Signal<string>;
|
|
26
|
+
protected readonly cancelText: Signal<string>;
|
|
27
|
+
readonly message: InputSignal<string>;
|
|
28
|
+
readonly title: InputSignal<string | null>;
|
|
29
|
+
/** Пусто — берётся переведённая подпись по умолчанию */
|
|
30
|
+
readonly confirmLabel: InputSignal<string>;
|
|
31
|
+
readonly cancelLabel: InputSignal<string>;
|
|
32
|
+
readonly tone: InputSignal<IRtConfirmPopover.Tone>;
|
|
33
|
+
readonly accepted: OutputEmitterRef<void>;
|
|
34
|
+
readonly cancelled: OutputEmitterRef<void>;
|
|
35
|
+
protected onConfirm(): void;
|
|
36
|
+
protected onCancel(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtConfirmPopoverComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtConfirmPopoverComponent, "rt-confirm-popover", never, { "message": { "alias": "message"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; }, { "accepted": "accepted"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Confirm-popover директива поверх CDK Overlay. Вешается на host-кнопку
|
|
43
|
+
* (обычно `rt-icon-button` деструктивного действия). По клику показывает прямо
|
|
44
|
+
* под кнопкой панель `rt-confirm-popover` с вопросом и кнопками
|
|
45
|
+
* «Отмена» / подтверждение. Подтверждение → `(confirmed)` + закрытие; отмена,
|
|
46
|
+
* outside-click, Escape → просто закрытие.
|
|
47
|
+
*
|
|
48
|
+
* Движок — CDK `flexibleConnectedTo` (end-выравнивание + flip), чтобы панель у
|
|
49
|
+
* правого края aside'а раскрывалась влево и не резалась `overflow: hidden`.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```html
|
|
53
|
+
* <rt-icon-button
|
|
54
|
+
* icon="ico-error"
|
|
55
|
+
* variant="danger"
|
|
56
|
+
* ariaLabel="Отклонить"
|
|
57
|
+
* tooltip="Отклонить"
|
|
58
|
+
* [rtConfirm]="'Отклонить заявку? Оператор получит уведомление.'"
|
|
59
|
+
* rtConfirmTitle="Отклонить заявку"
|
|
60
|
+
* rtConfirmLabel="Отклонить"
|
|
61
|
+
* (confirmed)="rejectTour()" />
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
declare class RtConfirmDirective implements OnDestroy {
|
|
65
|
+
#private;
|
|
66
|
+
protected readonly isOpenState: WritableSignal<boolean>;
|
|
67
|
+
readonly message: InputSignal<string>;
|
|
68
|
+
readonly title: InputSignal<string | null>;
|
|
69
|
+
/** Пусто — панель подставит переведённое умолчание */
|
|
70
|
+
readonly label: InputSignal<string>;
|
|
71
|
+
readonly cancelLabel: InputSignal<string>;
|
|
72
|
+
readonly tone: InputSignal<IRtConfirmPopover.Tone>;
|
|
73
|
+
readonly disabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
74
|
+
readonly confirmed: OutputEmitterRef<void>;
|
|
75
|
+
readonly isOpen: Signal<boolean>;
|
|
76
|
+
constructor();
|
|
77
|
+
ngOnDestroy(): void;
|
|
78
|
+
open(): void;
|
|
79
|
+
close(): void;
|
|
80
|
+
protected onHostClick(): void;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtConfirmDirective, never>;
|
|
82
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RtConfirmDirective, "[rtConfirm]", ["rtConfirm"], { "message": { "alias": "rtConfirm"; "required": false; "isSignal": true; }; "title": { "alias": "rtConfirmTitle"; "required": false; "isSignal": true; }; "label": { "alias": "rtConfirmLabel"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "rtConfirmCancelLabel"; "required": false; "isSignal": true; }; "tone": { "alias": "rtConfirmTone"; "required": false; "isSignal": true; }; "disabled": { "alias": "rtConfirmDisabled"; "required": false; "isSignal": true; }; }, { "confirmed": "confirmed"; }, never, never, true, never>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { IRtConfirmPopover, RtConfirmDirective, RtConfirmPopoverComponent };
|