@rt-tools/ui-kit-v2 0.23.3 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/rt-tools-ui-kit-v2-accordion.mjs +142 -71
- package/fesm2022/rt-tools-ui-kit-v2-accordion.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-action-bar.mjs +467 -231
- package/fesm2022/rt-tools-ui-kit-v2-action-bar.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-ai-run-status.mjs +260 -91
- package/fesm2022/rt-tools-ui-kit-v2-ai-run-status.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-aside-section.mjs +80 -46
- package/fesm2022/rt-tools-ui-kit-v2-aside-section.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-aside.mjs +984 -697
- package/fesm2022/rt-tools-ui-kit-v2-aside.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-autocomplete.mjs +452 -210
- package/fesm2022/rt-tools-ui-kit-v2-autocomplete.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-bar-list.mjs +143 -52
- package/fesm2022/rt-tools-ui-kit-v2-bar-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-bottom-sheet.mjs +158 -83
- package/fesm2022/rt-tools-ui-kit-v2-bottom-sheet.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-breadcrumbs.mjs +335 -0
- package/fesm2022/rt-tools-ui-kit-v2-breadcrumbs.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs +437 -363
- package/fesm2022/rt-tools-ui-kit-v2-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-calendar.mjs +430 -149
- package/fesm2022/rt-tools-ui-kit-v2-calendar.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-card.mjs +155 -71
- package/fesm2022/rt-tools-ui-kit-v2-card.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-carousel.mjs +155 -0
- package/fesm2022/rt-tools-ui-kit-v2-carousel.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-checkbox.mjs +215 -110
- package/fesm2022/rt-tools-ui-kit-v2-checkbox.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-collapsible-text.mjs +158 -75
- package/fesm2022/rt-tools-ui-kit-v2-collapsible-text.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-color-palette.mjs +769 -0
- package/fesm2022/rt-tools-ui-kit-v2-color-palette.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-confirm-popover.mjs +462 -253
- package/fesm2022/rt-tools-ui-kit-v2-confirm-popover.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-container.mjs +1276 -1316
- package/fesm2022/rt-tools-ui-kit-v2-container.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-copy-value.mjs +185 -80
- package/fesm2022/rt-tools-ui-kit-v2-copy-value.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs +2321 -2619
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-counter-row.mjs +100 -44
- package/fesm2022/rt-tools-ui-kit-v2-counter-row.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-counter.mjs +290 -155
- package/fesm2022/rt-tools-ui-kit-v2-counter.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-data-list.mjs +2097 -858
- package/fesm2022/rt-tools-ui-kit-v2-data-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-data-table.mjs +2247 -1176
- package/fesm2022/rt-tools-ui-kit-v2-data-table.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-date-picker.mjs +1043 -705
- package/fesm2022/rt-tools-ui-kit-v2-date-picker.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-date-range.mjs +810 -525
- package/fesm2022/rt-tools-ui-kit-v2-date-range.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-delta-view.mjs +158 -138
- package/fesm2022/rt-tools-ui-kit-v2-delta-view.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-detail-list.mjs +177 -67
- package/fesm2022/rt-tools-ui-kit-v2-detail-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-dialog.mjs +550 -477
- package/fesm2022/rt-tools-ui-kit-v2-dialog.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-dot-field.mjs +185 -168
- package/fesm2022/rt-tools-ui-kit-v2-dot-field.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-download-link.mjs +116 -43
- package/fesm2022/rt-tools-ui-kit-v2-download-link.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-draggable-tree.mjs +585 -0
- package/fesm2022/rt-tools-ui-kit-v2-draggable-tree.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-list.mjs +755 -259
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-selector.mjs +3266 -1115
- package/fesm2022/rt-tools-ui-kit-v2-dynamic-selector.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-empty-state.mjs +190 -55
- package/fesm2022/rt-tools-ui-kit-v2-empty-state.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-expansion-panel.mjs +283 -103
- package/fesm2022/rt-tools-ui-kit-v2-expansion-panel.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-field.mjs +393 -177
- package/fesm2022/rt-tools-ui-kit-v2-field.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-file-card.mjs +399 -207
- package/fesm2022/rt-tools-ui-kit-v2-file-card.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-file-drop.mjs +288 -212
- package/fesm2022/rt-tools-ui-kit-v2-file-drop.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-file-input.mjs +262 -116
- package/fesm2022/rt-tools-ui-kit-v2-file-input.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-file-list.mjs +57 -31
- package/fesm2022/rt-tools-ui-kit-v2-file-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-filter-control.mjs +258 -90
- package/fesm2022/rt-tools-ui-kit-v2-filter-control.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-form-control.mjs +249 -215
- package/fesm2022/rt-tools-ui-kit-v2-form-control.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-header.mjs +199 -71
- package/fesm2022/rt-tools-ui-kit-v2-header.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree-selector.mjs +231 -0
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree-selector.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree.mjs +336 -0
- package/fesm2022/rt-tools-ui-kit-v2-hybrid-tree.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-icon-button.mjs +451 -162
- package/fesm2022/rt-tools-ui-kit-v2-icon-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-icon.mjs +931 -686
- package/fesm2022/rt-tools-ui-kit-v2-icon.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-image-cropper.mjs +664 -491
- package/fesm2022/rt-tools-ui-kit-v2-image-cropper.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-image-upload.mjs +574 -222
- package/fesm2022/rt-tools-ui-kit-v2-image-upload.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-info-item.mjs +150 -36
- package/fesm2022/rt-tools-ui-kit-v2-info-item.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-inline-edit.mjs +606 -0
- package/fesm2022/rt-tools-ui-kit-v2-inline-edit.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-input-number.mjs +461 -355
- package/fesm2022/rt-tools-ui-kit-v2-input-number.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-input.mjs +338 -143
- package/fesm2022/rt-tools-ui-kit-v2-input.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-live-badge.mjs +135 -48
- package/fesm2022/rt-tools-ui-kit-v2-live-badge.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-logo.mjs +166 -92
- package/fesm2022/rt-tools-ui-kit-v2-logo.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-markdown-text.mjs +118 -56
- package/fesm2022/rt-tools-ui-kit-v2-markdown-text.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-menu.mjs +1054 -527
- package/fesm2022/rt-tools-ui-kit-v2-menu.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-message.mjs +230 -104
- package/fesm2022/rt-tools-ui-kit-v2-message.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-money-list.mjs +210 -70
- package/fesm2022/rt-tools-ui-kit-v2-money-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-multiselect.mjs +532 -311
- package/fesm2022/rt-tools-ui-kit-v2-multiselect.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-night-grid.mjs +125 -50
- package/fesm2022/rt-tools-ui-kit-v2-night-grid.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-note.mjs +73 -43
- package/fesm2022/rt-tools-ui-kit-v2-note.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-notifications-bell.mjs +161 -53
- package/fesm2022/rt-tools-ui-kit-v2-notifications-bell.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-page-header.mjs +491 -310
- package/fesm2022/rt-tools-ui-kit-v2-page-header.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-pagination.mjs +374 -174
- package/fesm2022/rt-tools-ui-kit-v2-pagination.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-photo-viewer.mjs +202 -159
- package/fesm2022/rt-tools-ui-kit-v2-photo-viewer.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-popover.mjs +438 -309
- package/fesm2022/rt-tools-ui-kit-v2-popover.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-profile-menu.mjs +295 -0
- package/fesm2022/rt-tools-ui-kit-v2-profile-menu.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-prompt-suggestion.mjs +135 -45
- package/fesm2022/rt-tools-ui-kit-v2-prompt-suggestion.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-radio-button.mjs +293 -171
- package/fesm2022/rt-tools-ui-kit-v2-radio-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-radius.mjs +62 -55
- package/fesm2022/rt-tools-ui-kit-v2-radius.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs +3379 -1466
- package/fesm2022/rt-tools-ui-kit-v2-rich-editor.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-ripple.mjs +114 -116
- package/fesm2022/rt-tools-ui-kit-v2-ripple.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-scroll-area.mjs +406 -299
- package/fesm2022/rt-tools-ui-kit-v2-scroll-area.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-section-nav.mjs +137 -36
- package/fesm2022/rt-tools-ui-kit-v2-section-nav.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-select.mjs +687 -468
- package/fesm2022/rt-tools-ui-kit-v2-select.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-side-menu.mjs +2195 -1569
- package/fesm2022/rt-tools-ui-kit-v2-side-menu.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-skeleton-wrapper.mjs +187 -48
- package/fesm2022/rt-tools-ui-kit-v2-skeleton-wrapper.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-skeleton.mjs +242 -122
- package/fesm2022/rt-tools-ui-kit-v2-skeleton.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-speed-menu.mjs +439 -0
- package/fesm2022/rt-tools-ui-kit-v2-speed-menu.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-spinner.mjs +218 -69
- package/fesm2022/rt-tools-ui-kit-v2-spinner.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-split-button.mjs +292 -91
- package/fesm2022/rt-tools-ui-kit-v2-split-button.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-stat-tile.mjs +225 -138
- package/fesm2022/rt-tools-ui-kit-v2-stat-tile.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-stepper.mjs +150 -116
- package/fesm2022/rt-tools-ui-kit-v2-stepper.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-table.mjs +2462 -1583
- package/fesm2022/rt-tools-ui-kit-v2-table.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tabs.mjs +647 -346
- package/fesm2022/rt-tools-ui-kit-v2-tabs.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tag.mjs +335 -121
- package/fesm2022/rt-tools-ui-kit-v2-tag.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-textarea.mjs +217 -84
- package/fesm2022/rt-tools-ui-kit-v2-textarea.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-theme-toggle.mjs +151 -72
- package/fesm2022/rt-tools-ui-kit-v2-theme-toggle.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs +697 -226
- package/fesm2022/rt-tools-ui-kit-v2-thread-list.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-timeline.mjs +92 -38
- package/fesm2022/rt-tools-ui-kit-v2-timeline.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-toast.mjs +752 -338
- package/fesm2022/rt-tools-ui-kit-v2-toast.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-toggle-button-group.mjs +310 -129
- package/fesm2022/rt-tools-ui-kit-v2-toggle-button-group.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-toggle-switch.mjs +286 -158
- package/fesm2022/rt-tools-ui-kit-v2-toggle-switch.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-toolbar.mjs +270 -134
- package/fesm2022/rt-tools-ui-kit-v2-toolbar.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tooltip.mjs +322 -202
- package/fesm2022/rt-tools-ui-kit-v2-tooltip.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-tree-selector.mjs +908 -0
- package/fesm2022/rt-tools-ui-kit-v2-tree-selector.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-tree.mjs +785 -0
- package/fesm2022/rt-tools-ui-kit-v2-tree.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-welcome-dialog.mjs +118 -63
- package/fesm2022/rt-tools-ui-kit-v2-welcome-dialog.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-workspace-details.mjs +783 -262
- package/fesm2022/rt-tools-ui-kit-v2-workspace-details.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-workspace.mjs +633 -294
- package/fesm2022/rt-tools-ui-kit-v2-workspace.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2.mjs +100 -103
- package/package.json +45 -1
- package/src/assets/icons/collapse-all.svg +9 -0
- package/src/assets/icons/expand-all.svg +9 -0
- package/src/assets/icons-material/collapse-all.fill.svg +5 -0
- package/src/assets/icons-material/collapse-all.svg +5 -0
- package/src/assets/icons-material/expand-all.fill.svg +5 -0
- package/src/assets/icons-material/expand-all.svg +5 -0
- package/src/assets/icons-material/undo.fill.svg +5 -0
- package/src/assets/icons-material/undo.svg +5 -0
- package/src/lib/components/bottom-sheet/CONTEXT.md +20 -2
- package/src/lib/components/bottom-sheet/rt-bottom-sheet.component.scss +36 -1
- package/src/lib/components/breadcrumbs/CONTEXT.md +37 -0
- package/src/lib/components/breadcrumbs/rt-breadcrumbs.component.scss +205 -0
- package/src/lib/components/carousel/CONTEXT.md +42 -0
- package/src/lib/components/carousel/rt-carousel.component.scss +117 -0
- package/src/lib/components/checkbox/CONTEXT.md +3 -0
- package/src/lib/components/checkbox/rt-checkbox.component.scss +9 -3
- package/src/lib/components/color-palette/CONTEXT.md +49 -0
- package/src/lib/components/color-palette/picker/rt-color-picker.component.scss +161 -0
- package/src/lib/components/color-palette/rt-color-palette.component.scss +132 -0
- package/src/lib/components/draggable-tree/CONTEXT.md +54 -0
- package/src/lib/components/draggable-tree/rt-draggable-tree.component.scss +219 -0
- package/src/lib/components/hybrid-tree/CONTEXT.md +31 -0
- package/src/lib/components/hybrid-tree-selector/CONTEXT.md +25 -0
- package/src/lib/components/icon-button/CONTEXT.md +3 -0
- package/src/lib/components/inline-edit/CONTEXT.md +41 -0
- package/src/lib/components/inline-edit/rt-inline-edit.component.scss +274 -0
- package/src/lib/components/popover/CONTEXT.md +3 -0
- package/src/lib/components/profile-menu/CONTEXT.md +32 -0
- package/src/lib/components/profile-menu/rt-profile-menu.component.scss +104 -0
- package/src/lib/components/speed-menu/CONTEXT.md +34 -0
- package/src/lib/components/speed-menu/rt-speed-menu.component.scss +118 -0
- package/src/lib/components/tag/rt-tag.component.scss +12 -0
- package/src/lib/components/thread-list/CONTEXT.md +1 -0
- package/src/lib/components/thread-list/rt-thread-list.component.scss +2 -1
- package/src/lib/components/toolbar/CONTEXT.md +9 -4
- package/src/lib/components/toolbar/rt-toolbar.component.scss +10 -2
- package/src/lib/components/tooltip/CONTEXT.md +8 -1
- package/src/lib/components/tree/CONTEXT.md +66 -0
- package/src/lib/components/tree/rt-tree.component.scss +313 -0
- package/src/lib/components/tree-selector/CONTEXT.md +47 -0
- package/src/lib/components/tree-selector/rt-tree-selector.component.scss +121 -0
- package/src/styles/_primitives.scss +4 -0
- package/src/styles/_semantic.scss +5 -0
- package/styles/tokens.css +43 -0
- package/types/rt-tools-ui-kit-v2-accordion.d.ts +31 -24
- package/types/rt-tools-ui-kit-v2-action-bar.d.ts +112 -91
- package/types/rt-tools-ui-kit-v2-ai-run-status.d.ts +64 -40
- package/types/rt-tools-ui-kit-v2-aside-section.d.ts +13 -10
- package/types/rt-tools-ui-kit-v2-aside.d.ts +268 -206
- package/types/rt-tools-ui-kit-v2-autocomplete.d.ts +102 -61
- package/types/rt-tools-ui-kit-v2-bar-list.d.ts +39 -27
- package/types/rt-tools-ui-kit-v2-bottom-sheet.d.ts +31 -20
- package/types/rt-tools-ui-kit-v2-breadcrumbs.d.ts +89 -0
- package/types/rt-tools-ui-kit-v2-button.d.ts +119 -59
- package/types/rt-tools-ui-kit-v2-calendar.d.ts +151 -86
- package/types/rt-tools-ui-kit-v2-card.d.ts +42 -21
- package/types/rt-tools-ui-kit-v2-carousel.d.ts +76 -0
- package/types/rt-tools-ui-kit-v2-checkbox.d.ts +48 -24
- package/types/rt-tools-ui-kit-v2-collapsible-text.d.ts +28 -20
- package/types/rt-tools-ui-kit-v2-color-palette.d.ts +208 -0
- package/types/rt-tools-ui-kit-v2-confirm-popover.d.ts +104 -47
- package/types/rt-tools-ui-kit-v2-container.d.ts +278 -221
- package/types/rt-tools-ui-kit-v2-copy-value.d.ts +39 -24
- package/types/rt-tools-ui-kit-v2-core.d.ts +862 -865
- package/types/rt-tools-ui-kit-v2-counter-row.d.ts +20 -12
- package/types/rt-tools-ui-kit-v2-counter.d.ts +70 -38
- package/types/rt-tools-ui-kit-v2-data-list.d.ts +429 -264
- package/types/rt-tools-ui-kit-v2-data-table.d.ts +500 -351
- package/types/rt-tools-ui-kit-v2-date-picker.d.ts +164 -138
- package/types/rt-tools-ui-kit-v2-date-range.d.ts +102 -84
- package/types/rt-tools-ui-kit-v2-delta-view.d.ts +16 -13
- package/types/rt-tools-ui-kit-v2-detail-list.d.ts +23 -16
- package/types/rt-tools-ui-kit-v2-dialog.d.ts +130 -101
- package/types/rt-tools-ui-kit-v2-dot-field.d.ts +10 -13
- package/types/rt-tools-ui-kit-v2-download-link.d.ts +22 -17
- package/types/rt-tools-ui-kit-v2-draggable-tree.d.ts +132 -0
- package/types/rt-tools-ui-kit-v2-dynamic-list.d.ts +185 -96
- package/types/rt-tools-ui-kit-v2-dynamic-selector.d.ts +904 -404
- package/types/rt-tools-ui-kit-v2-empty-state.d.ts +48 -19
- package/types/rt-tools-ui-kit-v2-expansion-panel.d.ts +67 -39
- package/types/rt-tools-ui-kit-v2-field.d.ts +90 -49
- package/types/rt-tools-ui-kit-v2-file-card.d.ts +115 -75
- package/types/rt-tools-ui-kit-v2-file-drop.d.ts +75 -48
- package/types/rt-tools-ui-kit-v2-file-input.d.ts +53 -36
- package/types/rt-tools-ui-kit-v2-file-list.d.ts +5 -8
- package/types/rt-tools-ui-kit-v2-filter-control.d.ts +83 -49
- package/types/rt-tools-ui-kit-v2-form-control.d.ts +102 -74
- package/types/rt-tools-ui-kit-v2-header.d.ts +40 -22
- package/types/rt-tools-ui-kit-v2-hybrid-tree-selector.d.ts +14 -0
- package/types/rt-tools-ui-kit-v2-hybrid-tree.d.ts +72 -0
- package/types/rt-tools-ui-kit-v2-icon-button.d.ts +190 -90
- package/types/rt-tools-ui-kit-v2-icon.d.ts +160 -129
- package/types/rt-tools-ui-kit-v2-image-cropper.d.ts +151 -111
- package/types/rt-tools-ui-kit-v2-image-upload.d.ts +159 -85
- package/types/rt-tools-ui-kit-v2-info-item.d.ts +26 -13
- package/types/rt-tools-ui-kit-v2-inline-edit.d.ts +194 -0
- package/types/rt-tools-ui-kit-v2-input-number.d.ts +102 -53
- package/types/rt-tools-ui-kit-v2-input.d.ts +82 -43
- package/types/rt-tools-ui-kit-v2-live-badge.d.ts +30 -17
- package/types/rt-tools-ui-kit-v2-logo.d.ts +49 -32
- package/types/rt-tools-ui-kit-v2-markdown-text.d.ts +26 -17
- package/types/rt-tools-ui-kit-v2-menu.d.ts +272 -155
- package/types/rt-tools-ui-kit-v2-message.d.ts +59 -33
- package/types/rt-tools-ui-kit-v2-money-list.d.ts +36 -18
- package/types/rt-tools-ui-kit-v2-multiselect.d.ts +114 -80
- package/types/rt-tools-ui-kit-v2-night-grid.d.ts +34 -25
- package/types/rt-tools-ui-kit-v2-note.d.ts +12 -9
- package/types/rt-tools-ui-kit-v2-notifications-bell.d.ts +37 -16
- package/types/rt-tools-ui-kit-v2-page-header.d.ts +218 -150
- package/types/rt-tools-ui-kit-v2-pagination.d.ts +99 -63
- package/types/rt-tools-ui-kit-v2-photo-viewer.d.ts +61 -66
- package/types/rt-tools-ui-kit-v2-popover.d.ts +116 -55
- package/types/rt-tools-ui-kit-v2-profile-menu.d.ts +103 -0
- package/types/rt-tools-ui-kit-v2-prompt-suggestion.d.ts +26 -16
- package/types/rt-tools-ui-kit-v2-radio-button.d.ts +85 -43
- package/types/rt-tools-ui-kit-v2-radius.d.ts +18 -15
- package/types/rt-tools-ui-kit-v2-rich-editor.d.ts +931 -590
- package/types/rt-tools-ui-kit-v2-ripple.d.ts +28 -25
- package/types/rt-tools-ui-kit-v2-scroll-area.d.ts +60 -58
- package/types/rt-tools-ui-kit-v2-section-nav.d.ts +32 -22
- package/types/rt-tools-ui-kit-v2-select.d.ts +182 -139
- package/types/rt-tools-ui-kit-v2-side-menu.d.ts +452 -349
- package/types/rt-tools-ui-kit-v2-skeleton-wrapper.d.ts +53 -20
- package/types/rt-tools-ui-kit-v2-skeleton.d.ts +55 -26
- package/types/rt-tools-ui-kit-v2-speed-menu.d.ts +131 -0
- package/types/rt-tools-ui-kit-v2-spinner.d.ts +56 -28
- package/types/rt-tools-ui-kit-v2-split-button.d.ts +96 -55
- package/types/rt-tools-ui-kit-v2-stat-tile.d.ts +88 -60
- package/types/rt-tools-ui-kit-v2-stepper.d.ts +50 -37
- package/types/rt-tools-ui-kit-v2-table.d.ts +631 -480
- package/types/rt-tools-ui-kit-v2-tabs.d.ts +198 -113
- package/types/rt-tools-ui-kit-v2-tag.d.ts +106 -53
- package/types/rt-tools-ui-kit-v2-textarea.d.ts +48 -25
- package/types/rt-tools-ui-kit-v2-theme-toggle.d.ts +28 -26
- package/types/rt-tools-ui-kit-v2-thread-list.d.ts +154 -94
- package/types/rt-tools-ui-kit-v2-timeline.d.ts +30 -28
- package/types/rt-tools-ui-kit-v2-toast.d.ts +174 -98
- package/types/rt-tools-ui-kit-v2-toggle-button-group.d.ts +132 -86
- package/types/rt-tools-ui-kit-v2-toggle-switch.d.ts +88 -50
- package/types/rt-tools-ui-kit-v2-toolbar.d.ts +30 -27
- package/types/rt-tools-ui-kit-v2-tooltip.d.ts +65 -41
- package/types/rt-tools-ui-kit-v2-tree-selector.d.ts +257 -0
- package/types/rt-tools-ui-kit-v2-tree.d.ts +282 -0
- package/types/rt-tools-ui-kit-v2-welcome-dialog.d.ts +21 -24
- package/types/rt-tools-ui-kit-v2-workspace-details.d.ts +195 -124
- package/types/rt-tools-ui-kit-v2-workspace.d.ts +122 -79
- package/types/rt-tools-ui-kit-v2.d.ts +100 -90
- package/fesm2022/rt-tools-ui-kit-v2.mjs.map +0 -1
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ElementRef, Injector, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, inject, input, model, output, signal, untracked } from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import { FormControl, ReactiveFormsModule } from "@angular/forms";
|
|
5
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
6
|
+
import { BlockDirective, ElemDirective, ModDirective } from "@rt-tools/core";
|
|
7
|
+
import { rtKitLabel } from "@rt-tools/ui-kit-v2/core";
|
|
8
|
+
import { RtIconComponent } from "@rt-tools/ui-kit-v2/icon";
|
|
9
|
+
import { RtIconButtonComponent } from "@rt-tools/ui-kit-v2/icon-button";
|
|
10
|
+
import { RtInputComponent } from "@rt-tools/ui-kit-v2/input";
|
|
11
|
+
import { RtTooltipDirective } from "@rt-tools/ui-kit-v2/tooltip";
|
|
12
|
+
function inlineEditOutcome(value, draft, allowEmpty) {
|
|
13
|
+
const next = draft.trim();
|
|
14
|
+
if (next === "" && !allowEmpty) return { kind: "refuse" };
|
|
15
|
+
return next === value ? { kind: "close" } : {
|
|
16
|
+
kind: "save",
|
|
17
|
+
value: next
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function inlineEditMiddle(text) {
|
|
21
|
+
const chars = Array.from(text);
|
|
22
|
+
if (chars.length <= 20) return {
|
|
23
|
+
head: text,
|
|
24
|
+
tail: ""
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
head: chars.slice(0, -10).join(""),
|
|
28
|
+
tail: chars.slice(-10).join("")
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function inlineEditLeaves(host, target) {
|
|
32
|
+
return !(target instanceof Node && host.contains(target));
|
|
33
|
+
}
|
|
34
|
+
const BEM_BLOCK = "rt-inline-edit";
|
|
35
|
+
var RtInlineEditComponent = class RtInlineEditComponent {
|
|
36
|
+
#host;
|
|
37
|
+
#injector;
|
|
38
|
+
#t_uiEdit;
|
|
39
|
+
#focusInside;
|
|
40
|
+
#wasEditing;
|
|
41
|
+
#wasSaving;
|
|
42
|
+
#chipFocused;
|
|
43
|
+
#chipLeaving;
|
|
44
|
+
#draft;
|
|
45
|
+
constructor() {
|
|
46
|
+
this.#host = inject(ElementRef);
|
|
47
|
+
this.#injector = inject(Injector);
|
|
48
|
+
this.#t_uiEdit = rtKitLabel("uiEdit");
|
|
49
|
+
this.#focusInside = false;
|
|
50
|
+
this.#wasEditing = false;
|
|
51
|
+
this.#wasSaving = false;
|
|
52
|
+
this.#chipFocused = false;
|
|
53
|
+
this.#chipLeaving = false;
|
|
54
|
+
this.saveLabel = rtKitLabel("uiSave");
|
|
55
|
+
this.cancelLabel = rtKitLabel("uiCancel");
|
|
56
|
+
this.shown = computed(() => this.value() || this.placeholder(), ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
|
|
57
|
+
this.isEmpty = computed(() => this.value() === "", ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
|
|
58
|
+
this.startLabel = computed(() => `${this.#t_uiEdit()}: ${this.shown()}`, ...ngDevMode ? [{ debugName: "startLabel" }] : /* istanbul ignore next */ []);
|
|
59
|
+
this.#draft = signal("", ...ngDevMode ? [{ debugName: "#draft" }] : /* istanbul ignore next */ []);
|
|
60
|
+
this.draftControl = new FormControl("", { nonNullable: true });
|
|
61
|
+
this.canSave = computed(() => inlineEditOutcome(this.value(), this.#draft(), this.allowEmpty()).kind !== "refuse", ...ngDevMode ? [{ debugName: "canSave" }] : /* istanbul ignore next */ []);
|
|
62
|
+
this.isChipField = computed(() => this.look() === "chip-field", ...ngDevMode ? [{ debugName: "isChipField" }] : /* istanbul ignore next */ []);
|
|
63
|
+
this.chipText = computed(() => this.#draft() || this.placeholder(), ...ngDevMode ? [{ debugName: "chipText" }] : /* istanbul ignore next */ []);
|
|
64
|
+
this.middleParts = computed(() => this.truncate() === "middle" && this.#draft() !== "" ? inlineEditMiddle(this.#draft()) : null, ...ngDevMode ? [{ debugName: "middleParts" }] : /* istanbul ignore next */ []);
|
|
65
|
+
this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
66
|
+
this.placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
67
|
+
this.look = input("text", ...ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []);
|
|
68
|
+
this.truncate = input("end", ...ngDevMode ? [{ debugName: "truncate" }] : /* istanbul ignore next */ []);
|
|
69
|
+
this.size = input("sm", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
70
|
+
this.fieldLabel = input("", ...ngDevMode ? [{ debugName: "fieldLabel" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.disabled = input(false, {
|
|
72
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
73
|
+
transform: booleanAttribute
|
|
74
|
+
});
|
|
75
|
+
this.saving = input(false, {
|
|
76
|
+
...ngDevMode ? { debugName: "saving" } : /* istanbul ignore next */ {},
|
|
77
|
+
transform: booleanAttribute
|
|
78
|
+
});
|
|
79
|
+
this.allowEmpty = input(false, {
|
|
80
|
+
...ngDevMode ? { debugName: "allowEmpty" } : /* istanbul ignore next */ {},
|
|
81
|
+
transform: booleanAttribute
|
|
82
|
+
});
|
|
83
|
+
this.closeOnSave = input(true, {
|
|
84
|
+
...ngDevMode ? { debugName: "closeOnSave" } : /* istanbul ignore next */ {},
|
|
85
|
+
transform: booleanAttribute
|
|
86
|
+
});
|
|
87
|
+
this.blurAction = input("keep", ...ngDevMode ? [{ debugName: "blurAction" }] : /* istanbul ignore next */ []);
|
|
88
|
+
this.fieldIcon = input("pencil", ...ngDevMode ? [{ debugName: "fieldIcon" }] : /* istanbul ignore next */ []);
|
|
89
|
+
this.editing = model(false, ...ngDevMode ? [{ debugName: "editing" }] : /* istanbul ignore next */ []);
|
|
90
|
+
this.saved = output();
|
|
91
|
+
this.cancelled = output();
|
|
92
|
+
this.draftControl.valueChanges.pipe(takeUntilDestroyed()).subscribe((draft) => this.#draft.set(draft));
|
|
93
|
+
effect(() => {
|
|
94
|
+
const editing = this.editing();
|
|
95
|
+
if (editing) {
|
|
96
|
+
this.draftControl.setValue(untracked(this.value));
|
|
97
|
+
afterNextRender(() => this.focusField(), { injector: this.#injector });
|
|
98
|
+
} else if (this.#wasEditing) this.#restoreFocus(".rt-inline-edit__value");
|
|
99
|
+
this.#wasEditing = editing;
|
|
100
|
+
});
|
|
101
|
+
effect(() => {
|
|
102
|
+
const value = this.value();
|
|
103
|
+
if (this.isChipField() && !this.#chipFocused) this.draftControl.setValue(value);
|
|
104
|
+
});
|
|
105
|
+
effect(() => {
|
|
106
|
+
const saving = this.saving();
|
|
107
|
+
if (saving || this.isChipField() && this.disabled()) this.draftControl.disable({ emitEvent: false });
|
|
108
|
+
else {
|
|
109
|
+
this.draftControl.enable({ emitEvent: false });
|
|
110
|
+
if (this.#wasSaving && untracked(this.editing)) this.#restoreFocus(".rt-inline-edit__field input");
|
|
111
|
+
}
|
|
112
|
+
this.#wasSaving = saving;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
open() {
|
|
116
|
+
if (this.disabled() || this.editing()) return;
|
|
117
|
+
this.editing.set(true);
|
|
118
|
+
}
|
|
119
|
+
save() {
|
|
120
|
+
if (this.saving()) return;
|
|
121
|
+
const outcome = inlineEditOutcome(this.value(), this.draftControl.value, this.allowEmpty());
|
|
122
|
+
if (outcome.kind === "refuse") return;
|
|
123
|
+
if (outcome.kind === "save") {
|
|
124
|
+
this.saved.emit(outcome.value);
|
|
125
|
+
if (!this.closeOnSave()) return;
|
|
126
|
+
}
|
|
127
|
+
this.#close();
|
|
128
|
+
}
|
|
129
|
+
cancel() {
|
|
130
|
+
if (this.saving()) return;
|
|
131
|
+
this.#close();
|
|
132
|
+
this.cancelled.emit();
|
|
133
|
+
}
|
|
134
|
+
onKeydown(event) {
|
|
135
|
+
if (event.key === "Enter") {
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
this.save();
|
|
138
|
+
} else if (event.key === "Escape") {
|
|
139
|
+
event.preventDefault();
|
|
140
|
+
event.stopPropagation();
|
|
141
|
+
this.cancel();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
onFocusIn() {
|
|
145
|
+
this.#focusInside = true;
|
|
146
|
+
}
|
|
147
|
+
onFocusOut(event) {
|
|
148
|
+
if (event.relatedTarget instanceof Node && !this.#host.nativeElement.contains(event.relatedTarget)) this.#focusInside = false;
|
|
149
|
+
if (!this.editing() || this.saving() || !inlineEditLeaves(this.#host.nativeElement, event.relatedTarget)) return;
|
|
150
|
+
if (this.blurAction() === "save") this.save();
|
|
151
|
+
else if (this.blurAction() === "cancel") this.cancel();
|
|
152
|
+
}
|
|
153
|
+
onChipFocus(event) {
|
|
154
|
+
this.#chipFocused = true;
|
|
155
|
+
if (event.target instanceof HTMLInputElement) event.target.select();
|
|
156
|
+
}
|
|
157
|
+
onChipBlur() {
|
|
158
|
+
this.#chipFocused = false;
|
|
159
|
+
if (!this.#chipLeaving) this.#commitChip();
|
|
160
|
+
}
|
|
161
|
+
onChipKeydown(event) {
|
|
162
|
+
if (event.key === "Enter") {
|
|
163
|
+
event.preventDefault();
|
|
164
|
+
this.#leaveChip(event);
|
|
165
|
+
} else if (event.key === "Escape") {
|
|
166
|
+
event.preventDefault();
|
|
167
|
+
event.stopPropagation();
|
|
168
|
+
this.draftControl.setValue(this.value());
|
|
169
|
+
this.#leaveChip(event);
|
|
170
|
+
this.cancelled.emit();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
focusField() {
|
|
174
|
+
const field = this.#host.nativeElement.querySelector(".rt-inline-edit__field input");
|
|
175
|
+
field?.focus();
|
|
176
|
+
field?.select();
|
|
177
|
+
}
|
|
178
|
+
#close() {
|
|
179
|
+
this.editing.set(false);
|
|
180
|
+
}
|
|
181
|
+
#commitChip() {
|
|
182
|
+
if (this.saving()) return;
|
|
183
|
+
const outcome = inlineEditOutcome(this.value(), this.draftControl.value, this.allowEmpty());
|
|
184
|
+
if (outcome.kind === "save") {
|
|
185
|
+
this.saved.emit(outcome.value);
|
|
186
|
+
this.draftControl.setValue(outcome.value);
|
|
187
|
+
} else this.draftControl.setValue(this.value());
|
|
188
|
+
}
|
|
189
|
+
#leaveChip(event) {
|
|
190
|
+
const target = event.target;
|
|
191
|
+
this.#commitChip();
|
|
192
|
+
if (target instanceof HTMLElement && target.ownerDocument.activeElement === target) {
|
|
193
|
+
this.#chipLeaving = true;
|
|
194
|
+
target.blur();
|
|
195
|
+
this.#chipLeaving = false;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
#restoreFocus(selector) {
|
|
199
|
+
const host = this.#host.nativeElement;
|
|
200
|
+
const active = host.ownerDocument.activeElement;
|
|
201
|
+
if (!this.#focusInside || active !== null && active !== host.ownerDocument.body && !host.contains(active)) return;
|
|
202
|
+
afterNextRender(() => host.querySelector(selector)?.focus(), { injector: this.#injector });
|
|
203
|
+
}
|
|
204
|
+
static {
|
|
205
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
206
|
+
minVersion: "12.0.0",
|
|
207
|
+
version: "22.2.2",
|
|
208
|
+
ngImport: i0,
|
|
209
|
+
type: RtInlineEditComponent,
|
|
210
|
+
deps: [],
|
|
211
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
static {
|
|
215
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
216
|
+
minVersion: "17.0.0",
|
|
217
|
+
version: "22.2.2",
|
|
218
|
+
type: RtInlineEditComponent,
|
|
219
|
+
isStandalone: true,
|
|
220
|
+
selector: "rt-inline-edit",
|
|
221
|
+
inputs: {
|
|
222
|
+
value: {
|
|
223
|
+
classPropertyName: "value",
|
|
224
|
+
publicName: "value",
|
|
225
|
+
isSignal: true,
|
|
226
|
+
isRequired: true,
|
|
227
|
+
transformFunction: null
|
|
228
|
+
},
|
|
229
|
+
placeholder: {
|
|
230
|
+
classPropertyName: "placeholder",
|
|
231
|
+
publicName: "placeholder",
|
|
232
|
+
isSignal: true,
|
|
233
|
+
isRequired: false,
|
|
234
|
+
transformFunction: null
|
|
235
|
+
},
|
|
236
|
+
look: {
|
|
237
|
+
classPropertyName: "look",
|
|
238
|
+
publicName: "look",
|
|
239
|
+
isSignal: true,
|
|
240
|
+
isRequired: false,
|
|
241
|
+
transformFunction: null
|
|
242
|
+
},
|
|
243
|
+
truncate: {
|
|
244
|
+
classPropertyName: "truncate",
|
|
245
|
+
publicName: "truncate",
|
|
246
|
+
isSignal: true,
|
|
247
|
+
isRequired: false,
|
|
248
|
+
transformFunction: null
|
|
249
|
+
},
|
|
250
|
+
size: {
|
|
251
|
+
classPropertyName: "size",
|
|
252
|
+
publicName: "size",
|
|
253
|
+
isSignal: true,
|
|
254
|
+
isRequired: false,
|
|
255
|
+
transformFunction: null
|
|
256
|
+
},
|
|
257
|
+
fieldLabel: {
|
|
258
|
+
classPropertyName: "fieldLabel",
|
|
259
|
+
publicName: "fieldLabel",
|
|
260
|
+
isSignal: true,
|
|
261
|
+
isRequired: false,
|
|
262
|
+
transformFunction: null
|
|
263
|
+
},
|
|
264
|
+
disabled: {
|
|
265
|
+
classPropertyName: "disabled",
|
|
266
|
+
publicName: "disabled",
|
|
267
|
+
isSignal: true,
|
|
268
|
+
isRequired: false,
|
|
269
|
+
transformFunction: null
|
|
270
|
+
},
|
|
271
|
+
saving: {
|
|
272
|
+
classPropertyName: "saving",
|
|
273
|
+
publicName: "saving",
|
|
274
|
+
isSignal: true,
|
|
275
|
+
isRequired: false,
|
|
276
|
+
transformFunction: null
|
|
277
|
+
},
|
|
278
|
+
allowEmpty: {
|
|
279
|
+
classPropertyName: "allowEmpty",
|
|
280
|
+
publicName: "allowEmpty",
|
|
281
|
+
isSignal: true,
|
|
282
|
+
isRequired: false,
|
|
283
|
+
transformFunction: null
|
|
284
|
+
},
|
|
285
|
+
closeOnSave: {
|
|
286
|
+
classPropertyName: "closeOnSave",
|
|
287
|
+
publicName: "closeOnSave",
|
|
288
|
+
isSignal: true,
|
|
289
|
+
isRequired: false,
|
|
290
|
+
transformFunction: null
|
|
291
|
+
},
|
|
292
|
+
blurAction: {
|
|
293
|
+
classPropertyName: "blurAction",
|
|
294
|
+
publicName: "blurAction",
|
|
295
|
+
isSignal: true,
|
|
296
|
+
isRequired: false,
|
|
297
|
+
transformFunction: null
|
|
298
|
+
},
|
|
299
|
+
fieldIcon: {
|
|
300
|
+
classPropertyName: "fieldIcon",
|
|
301
|
+
publicName: "fieldIcon",
|
|
302
|
+
isSignal: true,
|
|
303
|
+
isRequired: false,
|
|
304
|
+
transformFunction: null
|
|
305
|
+
},
|
|
306
|
+
editing: {
|
|
307
|
+
classPropertyName: "editing",
|
|
308
|
+
publicName: "editing",
|
|
309
|
+
isSignal: true,
|
|
310
|
+
isRequired: false,
|
|
311
|
+
transformFunction: null
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
outputs: {
|
|
315
|
+
editing: "editingChange",
|
|
316
|
+
saved: "saved",
|
|
317
|
+
cancelled: "cancelled"
|
|
318
|
+
},
|
|
319
|
+
host: {
|
|
320
|
+
listeners: {
|
|
321
|
+
"focusin": "onFocusIn()",
|
|
322
|
+
"focusout": "onFocusOut($event)"
|
|
323
|
+
},
|
|
324
|
+
properties: {
|
|
325
|
+
"class.rt-inline-edit--chip": "look() === 'chip'",
|
|
326
|
+
"class.rt-inline-edit--chip-field": "isChipField()",
|
|
327
|
+
"class.rt-inline-edit--size-md": "size() === 'md'",
|
|
328
|
+
"class.rt-inline-edit--size-lg": "size() === 'lg'"
|
|
329
|
+
},
|
|
330
|
+
classAttribute: "rt-inline-edit"
|
|
331
|
+
},
|
|
332
|
+
ngImport: i0,
|
|
333
|
+
template: "<ng-container rtBlock=\"rt-inline-edit\">\n @if (isChipField()) {\n <!-- Плашка-поле: значок и поле внутри одной плашки. Ширину задаёт невидимая копия текста под\n полем — плашка растёт с текстом до своего предела, дальше поле прокручивается. -->\n <label rtElem=\"chip-field\" [rtMod]=\"{ disabled: disabled() }\">\n <rt-icon rtElem=\"chip-icon\" size=\"sm\" [name]=\"fieldIcon()\" />\n <span rtElem=\"sizer\" rtTooltipWhenTruncated [rtTooltip]=\"chipText()\">\n <span rtElem=\"mirror\" aria-hidden=\"true\">{{ chipText() }}</span>\n <!-- Обрезка посередине: копия выше по-прежнему задаёт ширину и будит подсказку, а этот\n слой в той же клетке показывает начало с многоточием и конец, пока поле не в фокусе. -->\n @if (middleParts(); as parts) {\n <span rtElem=\"middle\" aria-hidden=\"true\">\n <span rtElem=\"head\">{{ parts.head }}</span>\n <span rtElem=\"tail\">{{ parts.tail }}</span>\n </span>\n }\n <input\n type=\"text\"\n rtElem=\"chip-input\"\n qa-dataid=\"inline-edit-chip-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"fieldLabel() || placeholder() || null\"\n [formControl]=\"draftControl\"\n (focus)=\"onChipFocus($event)\"\n (blur)=\"onChipBlur()\"\n (keydown)=\"onChipKeydown($event)\" />\n </span>\n </label>\n } @else if (editing()) {\n <rt-input\n rtElem=\"field\"\n qa-dataid=\"inline-edit-field\"\n [size]=\"size()\"\n [placeholder]=\"placeholder()\"\n [ariaLabel]=\"fieldLabel() || placeholder() || null\"\n [clearable]=\"false\"\n [formControl]=\"draftControl\"\n (keydown)=\"onKeydown($event)\" />\n\n <rt-icon-button\n rtElem=\"save\"\n qa-dataid=\"inline-edit-save\"\n icon=\"check\"\n [size]=\"size()\"\n [ariaLabel]=\"saveLabel()\"\n [tooltip]=\"saveLabel()\"\n [loading]=\"saving()\"\n [disabled]=\"!canSave()\"\n (clicked)=\"save()\" />\n\n <rt-icon-button\n rtElem=\"cancel\"\n qa-dataid=\"inline-edit-cancel\"\n icon=\"close\"\n [size]=\"size()\"\n [ariaLabel]=\"cancelLabel()\"\n [tooltip]=\"cancelLabel()\"\n [disabled]=\"saving()\"\n (clicked)=\"cancel()\" />\n } @else {\n <button\n type=\"button\"\n rtElem=\"value\"\n qa-dataid=\"inline-edit-value\"\n [rtMod]=\"{ empty: isEmpty() }\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"startLabel()\"\n (click)=\"open()\">\n <span rtElem=\"text\" rtTooltipWhenTruncated [rtTooltip]=\"shown()\">{{ shown() }}</span>\n\n @if (!disabled()) {\n <rt-icon rtElem=\"pencil\" name=\"pencil\" size=\"sm\" />\n }\n </button>\n }\n</ng-container>\n",
|
|
334
|
+
styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-inline-edit{--rt-inline-edit-height: var(--rt-input-height-sm);--rt-inline-edit-field-width: var(--rt-size-64);--rt-inline-edit-radius: var(--rt-radius-sm);--rt-inline-edit-border-width: var(--rt-border-width-thin);--rt-inline-edit-duration: var(--rt-duration-fast);--rt-inline-edit-gap: var(--rt-space-2xs);--rt-inline-edit-value-padding-x: var(--rt-space-xs);--rt-inline-edit-value-gap: var(--rt-space-xs);--rt-inline-edit-value-bg-hover: var(--rt-color-bg-hover);--rt-inline-edit-empty-color: var(--rt-color-text-muted);--rt-inline-edit-disabled-color: var(--rt-color-text-disabled);--rt-inline-edit-pencil-color: var(--rt-color-text-muted);--rt-inline-edit-chip-radius: var(--rt-radius-sm);--rt-inline-edit-chip-bg: var(--rt-color-bg-subtle);--rt-inline-edit-chip-color: var(--rt-color-text-primary);--rt-inline-edit-chip-border-color: var(--rt-color-border-default);--rt-inline-edit-chip-border-color-hover: var(--rt-color-action-primary-on-surface);--rt-inline-edit-chip-font-size: var(--rt-text-xs);--rt-inline-edit-chip-font-weight: var(--rt-font-weight-semibold);--rt-inline-edit-chip-field-max-width: calc(var(--rt-size-64) + var(--rt-size-64) / 2);--rt-inline-edit-chip-field-bg: var(--rt-inline-edit-chip-bg);--rt-inline-edit-chip-field-color: var(--rt-inline-edit-chip-color);--rt-inline-edit-chip-field-icon-color: var(--rt-inline-edit-pencil-color);--rt-inline-edit-chip-field-border-color: var(--rt-inline-edit-chip-border-color);--rt-inline-edit-chip-field-border-color-focus: var(--rt-inline-edit-chip-border-color-hover);display:inline-flex;min-width:0;max-width:100%;align-items:center;gap:var(--rt-inline-edit-gap);vertical-align:middle}.rt-inline-edit--size-md{--rt-inline-edit-height: var(--rt-input-height-md)}.rt-inline-edit--size-lg{--rt-inline-edit-height: var(--rt-input-height-lg)}:is(.rt-preset-material,[data-preset=material]) .rt-inline-edit{--rt-inline-edit-chip-radius: var(--rt-radius-ms);--rt-inline-edit-chip-bg: var(--rt-color-bg-surface-subtle-2);--rt-inline-edit-chip-border-color: var(--rt-color-border-subtle);--rt-inline-edit-chip-border-color-hover: var(--rt-color-border-strong);--rt-inline-edit-value-padding-x: var(--rt-space-2);--rt-inline-edit-chip-field-bg: var(--rt-mat-neutral-5);--rt-inline-edit-chip-field-color: var(--mat-sys-primary, var(--rt-color-action-primary));--rt-inline-edit-chip-field-icon-color: var(--mat-sys-primary, var(--rt-color-action-primary));--rt-inline-edit-chip-field-border-color: var(--mat-sys-primary-fixed-dim, var(--rt-brand-200));--rt-inline-edit-chip-field-border-color-focus: var(--mat-sys-primary, var(--rt-color-action-primary))}.rt-inline-edit__value{display:inline-flex;min-width:0;max-width:100%;min-height:var(--rt-inline-edit-height);box-sizing:border-box;align-items:center;padding:0 var(--rt-inline-edit-value-padding-x);border:var(--rt-inline-edit-border-width) solid transparent;border-radius:var(--rt-inline-edit-radius);background:transparent;color:inherit;cursor:pointer;font:inherit;gap:var(--rt-inline-edit-value-gap);text-align:start;transition:background-color var(--rt-inline-edit-duration) ease,border-color var(--rt-inline-edit-duration) ease}.rt-inline-edit__value:hover:not(:disabled){background:var(--rt-inline-edit-value-bg-hover)}.rt-inline-edit__value:focus-visible{outline:var(--rt-focus-ring-width) solid var(--rt-focus-ring-color)}.rt-inline-edit__value--empty{color:var(--rt-inline-edit-empty-color)}.rt-inline-edit__value:disabled{color:var(--rt-inline-edit-disabled-color);cursor:default}.rt-inline-edit__text{overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}.rt-inline-edit__pencil{flex-shrink:0;color:var(--rt-inline-edit-pencil-color)}.rt-inline-edit__field{width:var(--rt-inline-edit-field-width);min-width:0;flex:0 1 auto}.rt-inline-edit__save,.rt-inline-edit__cancel{flex-shrink:0}.rt-inline-edit--chip .rt-inline-edit__value{border-color:var(--rt-inline-edit-chip-border-color);border-radius:var(--rt-inline-edit-chip-radius);background:var(--rt-inline-edit-chip-bg);color:var(--rt-inline-edit-chip-color);font-size:var(--rt-inline-edit-chip-font-size);font-weight:var(--rt-inline-edit-chip-font-weight)}.rt-inline-edit--chip .rt-inline-edit__value:hover:not(:disabled){border-color:var(--rt-inline-edit-chip-border-color-hover);background:var(--rt-inline-edit-chip-bg)}.rt-inline-edit--chip .rt-inline-edit__value--empty{color:var(--rt-inline-edit-empty-color)}.rt-inline-edit--chip .rt-inline-edit__value:disabled{color:var(--rt-inline-edit-disabled-color)}.rt-inline-edit__chip-field{display:inline-flex;min-width:0;max-width:min(100%,var(--rt-inline-edit-chip-field-max-width));min-height:var(--rt-inline-edit-height);box-sizing:border-box;align-items:center;padding:0 var(--rt-inline-edit-value-padding-x);border:var(--rt-inline-edit-border-width) solid var(--rt-inline-edit-chip-field-border-color);border-radius:var(--rt-inline-edit-chip-radius);background:var(--rt-inline-edit-chip-field-bg);color:var(--rt-inline-edit-chip-field-color);cursor:text;font-size:var(--rt-inline-edit-chip-font-size);font-weight:var(--rt-inline-edit-chip-font-weight);gap:var(--rt-inline-edit-value-gap);transition:border-color var(--rt-inline-edit-duration) ease}.rt-inline-edit__chip-field:focus-within{border-color:var(--rt-inline-edit-chip-field-border-color-focus)}.rt-inline-edit__chip-field--disabled{color:var(--rt-inline-edit-disabled-color);cursor:default}.rt-inline-edit__chip-icon{flex-shrink:0;color:var(--rt-inline-edit-chip-field-icon-color)}.rt-inline-edit__chip-field--disabled .rt-inline-edit__chip-icon{color:var(--rt-inline-edit-disabled-color)}.rt-inline-edit__sizer{display:inline-grid;overflow:hidden;min-width:0;grid-template-columns:minmax(0,auto)}.rt-inline-edit__mirror,.rt-inline-edit__middle,.rt-inline-edit__chip-input{padding:0;font:inherit;grid-area:1/1;letter-spacing:inherit;white-space:pre}.rt-inline-edit__mirror{visibility:hidden}.rt-inline-edit__middle{display:flex;overflow:hidden;min-width:0;pointer-events:none}.rt-inline-edit__head{overflow:hidden;min-width:0;text-overflow:ellipsis}.rt-inline-edit__tail{flex-shrink:0}.rt-inline-edit__middle~.rt-inline-edit__chip-input{color:transparent}.rt-inline-edit__chip-field:focus-within .rt-inline-edit__middle{visibility:hidden}.rt-inline-edit__chip-field:focus-within .rt-inline-edit__middle~.rt-inline-edit__chip-input{color:inherit}.rt-inline-edit__chip-input{width:100%;min-width:var(--rt-space-xs);border:0;background:transparent;color:inherit;outline:none}.rt-inline-edit__chip-input::placeholder{color:var(--rt-inline-edit-empty-color)}.rt-inline-edit__chip-input:disabled{cursor:default}[data-theme=dark] :is(.rt-preset-material,[data-preset=material]) .rt-inline-edit,:is(.rt-preset-material,[data-preset=material]) [data-theme=dark] .rt-inline-edit,html.rt-theme-dark :is(.rt-preset-material,[data-preset=material]) .rt-inline-edit{--rt-inline-edit-chip-field-bg: var(--rt-inline-edit-chip-bg)}}\n"],
|
|
335
|
+
dependencies: [
|
|
336
|
+
{
|
|
337
|
+
kind: "ngmodule",
|
|
338
|
+
type: ReactiveFormsModule
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
kind: "directive",
|
|
342
|
+
type: i1.DefaultValueAccessor,
|
|
343
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
kind: "directive",
|
|
347
|
+
type: i1.NgControlStatus,
|
|
348
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
kind: "directive",
|
|
352
|
+
type: i1.FormControlDirective,
|
|
353
|
+
selector: "[formControl]",
|
|
354
|
+
inputs: [
|
|
355
|
+
"formControl",
|
|
356
|
+
"disabled",
|
|
357
|
+
"ngModel"
|
|
358
|
+
],
|
|
359
|
+
outputs: ["ngModelChange"],
|
|
360
|
+
exportAs: ["ngForm"]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
kind: "directive",
|
|
364
|
+
type: BlockDirective,
|
|
365
|
+
selector: "[rtBlock]",
|
|
366
|
+
inputs: ["rtMod"]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
kind: "directive",
|
|
370
|
+
type: ElemDirective,
|
|
371
|
+
selector: "[rtElem]",
|
|
372
|
+
inputs: ["rtMod"]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
kind: "directive",
|
|
376
|
+
type: ModDirective,
|
|
377
|
+
selector: "[rtMod]"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
kind: "component",
|
|
381
|
+
type: RtIconComponent,
|
|
382
|
+
selector: "rt-icon",
|
|
383
|
+
inputs: [
|
|
384
|
+
"name",
|
|
385
|
+
"glyph",
|
|
386
|
+
"glyphStrategy",
|
|
387
|
+
"size",
|
|
388
|
+
"color",
|
|
389
|
+
"fill",
|
|
390
|
+
"spin",
|
|
391
|
+
"rotate"
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
kind: "component",
|
|
396
|
+
type: RtIconButtonComponent,
|
|
397
|
+
selector: "rt-icon-button",
|
|
398
|
+
inputs: [
|
|
399
|
+
"icon",
|
|
400
|
+
"glyph",
|
|
401
|
+
"ariaLabel",
|
|
402
|
+
"variant",
|
|
403
|
+
"iconColor",
|
|
404
|
+
"iconFill",
|
|
405
|
+
"size",
|
|
406
|
+
"iconSize",
|
|
407
|
+
"type",
|
|
408
|
+
"tooltip",
|
|
409
|
+
"tooltipHideOnClick",
|
|
410
|
+
"tabIndex",
|
|
411
|
+
"loading",
|
|
412
|
+
"disabled",
|
|
413
|
+
"active",
|
|
414
|
+
"expanded",
|
|
415
|
+
"indicator"
|
|
416
|
+
],
|
|
417
|
+
outputs: ["clicked"]
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
kind: "component",
|
|
421
|
+
type: RtInputComponent,
|
|
422
|
+
selector: "rt-input",
|
|
423
|
+
inputs: [
|
|
424
|
+
"appearance",
|
|
425
|
+
"type",
|
|
426
|
+
"placeholder",
|
|
427
|
+
"iconLeft",
|
|
428
|
+
"iconRight",
|
|
429
|
+
"passwordToggle",
|
|
430
|
+
"autocomplete"
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
kind: "directive",
|
|
435
|
+
type: RtTooltipDirective,
|
|
436
|
+
selector: "[rtTooltip]",
|
|
437
|
+
inputs: [
|
|
438
|
+
"rtTooltip",
|
|
439
|
+
"rtTooltipPlacement",
|
|
440
|
+
"rtTooltipWhenTruncated",
|
|
441
|
+
"rtTooltipHideOnClick"
|
|
442
|
+
],
|
|
443
|
+
exportAs: ["rtTooltip"]
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
447
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
452
|
+
minVersion: "12.0.0",
|
|
453
|
+
version: "22.2.2",
|
|
454
|
+
ngImport: i0,
|
|
455
|
+
type: RtInlineEditComponent,
|
|
456
|
+
decorators: [{
|
|
457
|
+
type: Component,
|
|
458
|
+
args: [{
|
|
459
|
+
selector: "rt-inline-edit",
|
|
460
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
461
|
+
encapsulation: ViewEncapsulation.None,
|
|
462
|
+
imports: [
|
|
463
|
+
ReactiveFormsModule,
|
|
464
|
+
BlockDirective,
|
|
465
|
+
ElemDirective,
|
|
466
|
+
ModDirective,
|
|
467
|
+
RtIconComponent,
|
|
468
|
+
RtIconButtonComponent,
|
|
469
|
+
RtInputComponent,
|
|
470
|
+
RtTooltipDirective
|
|
471
|
+
],
|
|
472
|
+
host: {
|
|
473
|
+
class: BEM_BLOCK,
|
|
474
|
+
"[class.rt-inline-edit--chip]": "look() === 'chip'",
|
|
475
|
+
"[class.rt-inline-edit--chip-field]": "isChipField()",
|
|
476
|
+
"[class.rt-inline-edit--size-md]": "size() === 'md'",
|
|
477
|
+
"[class.rt-inline-edit--size-lg]": "size() === 'lg'",
|
|
478
|
+
"(focusin)": "onFocusIn()",
|
|
479
|
+
"(focusout)": "onFocusOut($event)"
|
|
480
|
+
},
|
|
481
|
+
template: "<ng-container rtBlock=\"rt-inline-edit\">\n @if (isChipField()) {\n <!-- Плашка-поле: значок и поле внутри одной плашки. Ширину задаёт невидимая копия текста под\n полем — плашка растёт с текстом до своего предела, дальше поле прокручивается. -->\n <label rtElem=\"chip-field\" [rtMod]=\"{ disabled: disabled() }\">\n <rt-icon rtElem=\"chip-icon\" size=\"sm\" [name]=\"fieldIcon()\" />\n <span rtElem=\"sizer\" rtTooltipWhenTruncated [rtTooltip]=\"chipText()\">\n <span rtElem=\"mirror\" aria-hidden=\"true\">{{ chipText() }}</span>\n <!-- Обрезка посередине: копия выше по-прежнему задаёт ширину и будит подсказку, а этот\n слой в той же клетке показывает начало с многоточием и конец, пока поле не в фокусе. -->\n @if (middleParts(); as parts) {\n <span rtElem=\"middle\" aria-hidden=\"true\">\n <span rtElem=\"head\">{{ parts.head }}</span>\n <span rtElem=\"tail\">{{ parts.tail }}</span>\n </span>\n }\n <input\n type=\"text\"\n rtElem=\"chip-input\"\n qa-dataid=\"inline-edit-chip-input\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"fieldLabel() || placeholder() || null\"\n [formControl]=\"draftControl\"\n (focus)=\"onChipFocus($event)\"\n (blur)=\"onChipBlur()\"\n (keydown)=\"onChipKeydown($event)\" />\n </span>\n </label>\n } @else if (editing()) {\n <rt-input\n rtElem=\"field\"\n qa-dataid=\"inline-edit-field\"\n [size]=\"size()\"\n [placeholder]=\"placeholder()\"\n [ariaLabel]=\"fieldLabel() || placeholder() || null\"\n [clearable]=\"false\"\n [formControl]=\"draftControl\"\n (keydown)=\"onKeydown($event)\" />\n\n <rt-icon-button\n rtElem=\"save\"\n qa-dataid=\"inline-edit-save\"\n icon=\"check\"\n [size]=\"size()\"\n [ariaLabel]=\"saveLabel()\"\n [tooltip]=\"saveLabel()\"\n [loading]=\"saving()\"\n [disabled]=\"!canSave()\"\n (clicked)=\"save()\" />\n\n <rt-icon-button\n rtElem=\"cancel\"\n qa-dataid=\"inline-edit-cancel\"\n icon=\"close\"\n [size]=\"size()\"\n [ariaLabel]=\"cancelLabel()\"\n [tooltip]=\"cancelLabel()\"\n [disabled]=\"saving()\"\n (clicked)=\"cancel()\" />\n } @else {\n <button\n type=\"button\"\n rtElem=\"value\"\n qa-dataid=\"inline-edit-value\"\n [rtMod]=\"{ empty: isEmpty() }\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"startLabel()\"\n (click)=\"open()\">\n <span rtElem=\"text\" rtTooltipWhenTruncated [rtTooltip]=\"shown()\">{{ shown() }}</span>\n\n @if (!disabled()) {\n <rt-icon rtElem=\"pencil\" name=\"pencil\" size=\"sm\" />\n }\n </button>\n }\n</ng-container>\n",
|
|
482
|
+
styles: ["@charset \"UTF-8\";@layer rt-kit.components{.rt-inline-edit{--rt-inline-edit-height: var(--rt-input-height-sm);--rt-inline-edit-field-width: var(--rt-size-64);--rt-inline-edit-radius: var(--rt-radius-sm);--rt-inline-edit-border-width: var(--rt-border-width-thin);--rt-inline-edit-duration: var(--rt-duration-fast);--rt-inline-edit-gap: var(--rt-space-2xs);--rt-inline-edit-value-padding-x: var(--rt-space-xs);--rt-inline-edit-value-gap: var(--rt-space-xs);--rt-inline-edit-value-bg-hover: var(--rt-color-bg-hover);--rt-inline-edit-empty-color: var(--rt-color-text-muted);--rt-inline-edit-disabled-color: var(--rt-color-text-disabled);--rt-inline-edit-pencil-color: var(--rt-color-text-muted);--rt-inline-edit-chip-radius: var(--rt-radius-sm);--rt-inline-edit-chip-bg: var(--rt-color-bg-subtle);--rt-inline-edit-chip-color: var(--rt-color-text-primary);--rt-inline-edit-chip-border-color: var(--rt-color-border-default);--rt-inline-edit-chip-border-color-hover: var(--rt-color-action-primary-on-surface);--rt-inline-edit-chip-font-size: var(--rt-text-xs);--rt-inline-edit-chip-font-weight: var(--rt-font-weight-semibold);--rt-inline-edit-chip-field-max-width: calc(var(--rt-size-64) + var(--rt-size-64) / 2);--rt-inline-edit-chip-field-bg: var(--rt-inline-edit-chip-bg);--rt-inline-edit-chip-field-color: var(--rt-inline-edit-chip-color);--rt-inline-edit-chip-field-icon-color: var(--rt-inline-edit-pencil-color);--rt-inline-edit-chip-field-border-color: var(--rt-inline-edit-chip-border-color);--rt-inline-edit-chip-field-border-color-focus: var(--rt-inline-edit-chip-border-color-hover);display:inline-flex;min-width:0;max-width:100%;align-items:center;gap:var(--rt-inline-edit-gap);vertical-align:middle}.rt-inline-edit--size-md{--rt-inline-edit-height: var(--rt-input-height-md)}.rt-inline-edit--size-lg{--rt-inline-edit-height: var(--rt-input-height-lg)}:is(.rt-preset-material,[data-preset=material]) .rt-inline-edit{--rt-inline-edit-chip-radius: var(--rt-radius-ms);--rt-inline-edit-chip-bg: var(--rt-color-bg-surface-subtle-2);--rt-inline-edit-chip-border-color: var(--rt-color-border-subtle);--rt-inline-edit-chip-border-color-hover: var(--rt-color-border-strong);--rt-inline-edit-value-padding-x: var(--rt-space-2);--rt-inline-edit-chip-field-bg: var(--rt-mat-neutral-5);--rt-inline-edit-chip-field-color: var(--mat-sys-primary, var(--rt-color-action-primary));--rt-inline-edit-chip-field-icon-color: var(--mat-sys-primary, var(--rt-color-action-primary));--rt-inline-edit-chip-field-border-color: var(--mat-sys-primary-fixed-dim, var(--rt-brand-200));--rt-inline-edit-chip-field-border-color-focus: var(--mat-sys-primary, var(--rt-color-action-primary))}.rt-inline-edit__value{display:inline-flex;min-width:0;max-width:100%;min-height:var(--rt-inline-edit-height);box-sizing:border-box;align-items:center;padding:0 var(--rt-inline-edit-value-padding-x);border:var(--rt-inline-edit-border-width) solid transparent;border-radius:var(--rt-inline-edit-radius);background:transparent;color:inherit;cursor:pointer;font:inherit;gap:var(--rt-inline-edit-value-gap);text-align:start;transition:background-color var(--rt-inline-edit-duration) ease,border-color var(--rt-inline-edit-duration) ease}.rt-inline-edit__value:hover:not(:disabled){background:var(--rt-inline-edit-value-bg-hover)}.rt-inline-edit__value:focus-visible{outline:var(--rt-focus-ring-width) solid var(--rt-focus-ring-color)}.rt-inline-edit__value--empty{color:var(--rt-inline-edit-empty-color)}.rt-inline-edit__value:disabled{color:var(--rt-inline-edit-disabled-color);cursor:default}.rt-inline-edit__text{overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}.rt-inline-edit__pencil{flex-shrink:0;color:var(--rt-inline-edit-pencil-color)}.rt-inline-edit__field{width:var(--rt-inline-edit-field-width);min-width:0;flex:0 1 auto}.rt-inline-edit__save,.rt-inline-edit__cancel{flex-shrink:0}.rt-inline-edit--chip .rt-inline-edit__value{border-color:var(--rt-inline-edit-chip-border-color);border-radius:var(--rt-inline-edit-chip-radius);background:var(--rt-inline-edit-chip-bg);color:var(--rt-inline-edit-chip-color);font-size:var(--rt-inline-edit-chip-font-size);font-weight:var(--rt-inline-edit-chip-font-weight)}.rt-inline-edit--chip .rt-inline-edit__value:hover:not(:disabled){border-color:var(--rt-inline-edit-chip-border-color-hover);background:var(--rt-inline-edit-chip-bg)}.rt-inline-edit--chip .rt-inline-edit__value--empty{color:var(--rt-inline-edit-empty-color)}.rt-inline-edit--chip .rt-inline-edit__value:disabled{color:var(--rt-inline-edit-disabled-color)}.rt-inline-edit__chip-field{display:inline-flex;min-width:0;max-width:min(100%,var(--rt-inline-edit-chip-field-max-width));min-height:var(--rt-inline-edit-height);box-sizing:border-box;align-items:center;padding:0 var(--rt-inline-edit-value-padding-x);border:var(--rt-inline-edit-border-width) solid var(--rt-inline-edit-chip-field-border-color);border-radius:var(--rt-inline-edit-chip-radius);background:var(--rt-inline-edit-chip-field-bg);color:var(--rt-inline-edit-chip-field-color);cursor:text;font-size:var(--rt-inline-edit-chip-font-size);font-weight:var(--rt-inline-edit-chip-font-weight);gap:var(--rt-inline-edit-value-gap);transition:border-color var(--rt-inline-edit-duration) ease}.rt-inline-edit__chip-field:focus-within{border-color:var(--rt-inline-edit-chip-field-border-color-focus)}.rt-inline-edit__chip-field--disabled{color:var(--rt-inline-edit-disabled-color);cursor:default}.rt-inline-edit__chip-icon{flex-shrink:0;color:var(--rt-inline-edit-chip-field-icon-color)}.rt-inline-edit__chip-field--disabled .rt-inline-edit__chip-icon{color:var(--rt-inline-edit-disabled-color)}.rt-inline-edit__sizer{display:inline-grid;overflow:hidden;min-width:0;grid-template-columns:minmax(0,auto)}.rt-inline-edit__mirror,.rt-inline-edit__middle,.rt-inline-edit__chip-input{padding:0;font:inherit;grid-area:1/1;letter-spacing:inherit;white-space:pre}.rt-inline-edit__mirror{visibility:hidden}.rt-inline-edit__middle{display:flex;overflow:hidden;min-width:0;pointer-events:none}.rt-inline-edit__head{overflow:hidden;min-width:0;text-overflow:ellipsis}.rt-inline-edit__tail{flex-shrink:0}.rt-inline-edit__middle~.rt-inline-edit__chip-input{color:transparent}.rt-inline-edit__chip-field:focus-within .rt-inline-edit__middle{visibility:hidden}.rt-inline-edit__chip-field:focus-within .rt-inline-edit__middle~.rt-inline-edit__chip-input{color:inherit}.rt-inline-edit__chip-input{width:100%;min-width:var(--rt-space-xs);border:0;background:transparent;color:inherit;outline:none}.rt-inline-edit__chip-input::placeholder{color:var(--rt-inline-edit-empty-color)}.rt-inline-edit__chip-input:disabled{cursor:default}[data-theme=dark] :is(.rt-preset-material,[data-preset=material]) .rt-inline-edit,:is(.rt-preset-material,[data-preset=material]) [data-theme=dark] .rt-inline-edit,html.rt-theme-dark :is(.rt-preset-material,[data-preset=material]) .rt-inline-edit{--rt-inline-edit-chip-field-bg: var(--rt-inline-edit-chip-bg)}}\n"]
|
|
483
|
+
}]
|
|
484
|
+
}],
|
|
485
|
+
ctorParameters: () => [],
|
|
486
|
+
propDecorators: {
|
|
487
|
+
value: [{
|
|
488
|
+
type: i0.Input,
|
|
489
|
+
args: [{
|
|
490
|
+
isSignal: true,
|
|
491
|
+
alias: "value",
|
|
492
|
+
required: true
|
|
493
|
+
}]
|
|
494
|
+
}],
|
|
495
|
+
placeholder: [{
|
|
496
|
+
type: i0.Input,
|
|
497
|
+
args: [{
|
|
498
|
+
isSignal: true,
|
|
499
|
+
alias: "placeholder",
|
|
500
|
+
required: false
|
|
501
|
+
}]
|
|
502
|
+
}],
|
|
503
|
+
look: [{
|
|
504
|
+
type: i0.Input,
|
|
505
|
+
args: [{
|
|
506
|
+
isSignal: true,
|
|
507
|
+
alias: "look",
|
|
508
|
+
required: false
|
|
509
|
+
}]
|
|
510
|
+
}],
|
|
511
|
+
truncate: [{
|
|
512
|
+
type: i0.Input,
|
|
513
|
+
args: [{
|
|
514
|
+
isSignal: true,
|
|
515
|
+
alias: "truncate",
|
|
516
|
+
required: false
|
|
517
|
+
}]
|
|
518
|
+
}],
|
|
519
|
+
size: [{
|
|
520
|
+
type: i0.Input,
|
|
521
|
+
args: [{
|
|
522
|
+
isSignal: true,
|
|
523
|
+
alias: "size",
|
|
524
|
+
required: false
|
|
525
|
+
}]
|
|
526
|
+
}],
|
|
527
|
+
fieldLabel: [{
|
|
528
|
+
type: i0.Input,
|
|
529
|
+
args: [{
|
|
530
|
+
isSignal: true,
|
|
531
|
+
alias: "fieldLabel",
|
|
532
|
+
required: false
|
|
533
|
+
}]
|
|
534
|
+
}],
|
|
535
|
+
disabled: [{
|
|
536
|
+
type: i0.Input,
|
|
537
|
+
args: [{
|
|
538
|
+
isSignal: true,
|
|
539
|
+
alias: "disabled",
|
|
540
|
+
required: false
|
|
541
|
+
}]
|
|
542
|
+
}],
|
|
543
|
+
saving: [{
|
|
544
|
+
type: i0.Input,
|
|
545
|
+
args: [{
|
|
546
|
+
isSignal: true,
|
|
547
|
+
alias: "saving",
|
|
548
|
+
required: false
|
|
549
|
+
}]
|
|
550
|
+
}],
|
|
551
|
+
allowEmpty: [{
|
|
552
|
+
type: i0.Input,
|
|
553
|
+
args: [{
|
|
554
|
+
isSignal: true,
|
|
555
|
+
alias: "allowEmpty",
|
|
556
|
+
required: false
|
|
557
|
+
}]
|
|
558
|
+
}],
|
|
559
|
+
closeOnSave: [{
|
|
560
|
+
type: i0.Input,
|
|
561
|
+
args: [{
|
|
562
|
+
isSignal: true,
|
|
563
|
+
alias: "closeOnSave",
|
|
564
|
+
required: false
|
|
565
|
+
}]
|
|
566
|
+
}],
|
|
567
|
+
blurAction: [{
|
|
568
|
+
type: i0.Input,
|
|
569
|
+
args: [{
|
|
570
|
+
isSignal: true,
|
|
571
|
+
alias: "blurAction",
|
|
572
|
+
required: false
|
|
573
|
+
}]
|
|
574
|
+
}],
|
|
575
|
+
fieldIcon: [{
|
|
576
|
+
type: i0.Input,
|
|
577
|
+
args: [{
|
|
578
|
+
isSignal: true,
|
|
579
|
+
alias: "fieldIcon",
|
|
580
|
+
required: false
|
|
581
|
+
}]
|
|
582
|
+
}],
|
|
583
|
+
editing: [{
|
|
584
|
+
type: i0.Input,
|
|
585
|
+
args: [{
|
|
586
|
+
isSignal: true,
|
|
587
|
+
alias: "editing",
|
|
588
|
+
required: false
|
|
589
|
+
}]
|
|
590
|
+
}, {
|
|
591
|
+
type: i0.Output,
|
|
592
|
+
args: ["editingChange"]
|
|
593
|
+
}],
|
|
594
|
+
saved: [{
|
|
595
|
+
type: i0.Output,
|
|
596
|
+
args: ["saved"]
|
|
597
|
+
}],
|
|
598
|
+
cancelled: [{
|
|
599
|
+
type: i0.Output,
|
|
600
|
+
args: ["cancelled"]
|
|
601
|
+
}]
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
export { RtInlineEditComponent, inlineEditLeaves, inlineEditMiddle, inlineEditOutcome };
|
|
605
|
+
|
|
606
|
+
//# sourceMappingURL=rt-tools-ui-kit-v2-inline-edit.mjs.map
|