@acorex/components 18.5.16 → 18.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.component.d.ts +26 -0
- package/alert/lib/alert.component.d.ts +50 -2
- package/audio-wave/lib/audio-wave.component.d.ts +53 -0
- package/avatar/lib/avatar.component.d.ts +20 -1
- package/badge/lib/badge.component.d.ts +8 -0
- package/bottom-navigation/lib/bottom-navigation.component.d.ts +16 -0
- package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +11 -0
- package/breadcrumbs/lib/breadcrumbs.component.d.ts +11 -0
- package/button/lib/button-item-list.component.d.ts +34 -0
- package/button/lib/button-item.component.d.ts +47 -0
- package/button/lib/button.component.d.ts +36 -0
- package/button-group/lib/button-group.component.d.ts +56 -0
- package/calendar/lib/calendar-range.component.d.ts +48 -0
- package/calendar/lib/calendar.component.d.ts +114 -0
- package/check-box/lib/check-box.component.d.ts +36 -0
- package/chips/lib/chips.component.d.ts +13 -0
- package/circular-progress/lib/circular-progress.component.d.ts +51 -21
- package/collapse/lib/collapse-group.component.d.ts +38 -0
- package/collapse/lib/collapse.component.d.ts +55 -0
- package/color-box/lib/color-box.component.d.ts +28 -1
- package/color-palette/lib/color-palette-input.component.d.ts +35 -0
- package/color-palette/lib/color-palette-picker.component.d.ts +53 -0
- package/color-palette/lib/color-palette-preview.component.d.ts +17 -0
- package/color-palette/lib/color-palette-swatches.component.d.ts +30 -0
- package/color-palette/lib/color-palette.component.d.ts +8 -0
- package/comment/lib/comment-container/comment-container.component.d.ts +5 -0
- package/comment/lib/comment-item/comment-item.component.d.ts +16 -2
- package/comment/lib/comment-like/comment-like.component.d.ts +8 -0
- package/comment/lib/comment-reply/comment-reply.component.d.ts +4 -0
- package/comment/lib/comment-view/comment-view.component.d.ts +4 -0
- package/common/lib/components/base-component.class.d.ts +8 -0
- package/common/lib/components/button-base-component.class.d.ts +21 -0
- package/common/lib/components/interactive-component.class.d.ts +15 -0
- package/conversation/lib/conversation-container/conversation-container.component.d.ts +4 -0
- package/conversation/lib/conversation-input/conversation-input.component.d.ts +79 -2
- package/conversation/lib/conversation-message/conversation-message.component.d.ts +41 -0
- package/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.d.ts +62 -0
- package/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.d.ts +34 -0
- package/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.d.ts +21 -0
- package/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.d.ts +29 -0
- package/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.d.ts +72 -0
- package/conversation/lib/conversation-view/conversation-view.component.d.ts +22 -0
- package/data-pager/lib/data-pager-base.component.d.ts +9 -0
- package/data-pager/lib/data-pager-info.component.d.ts +14 -0
- package/data-pager/lib/data-pager-input-selector.component.d.ts +17 -0
- package/data-pager/lib/data-pager-next-buttons.components.d.ts +20 -0
- package/data-pager/lib/data-pager-numeric-selector.component.d.ts +14 -0
- package/data-pager/lib/data-pager-pagesize-dropdown.component.d.ts +28 -0
- package/data-pager/lib/data-pager-prev-buttons.component.d.ts +20 -0
- package/data-pager/lib/data-pager.component.d.ts +111 -0
- package/data-table/lib/columns/data-text-column.component.d.ts +58 -0
- package/data-table/lib/columns/row-command-column.component.d.ts +83 -0
- package/data-table/lib/columns/row-index-column.component.d.ts +51 -0
- package/data-table/lib/columns/row-select-column.component.d.ts +47 -0
- package/data-table/lib/data-table/data-table.component.d.ts +200 -0
- package/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.d.ts +185 -0
- package/datetime-box/lib/datetime-box.component.d.ts +59 -1
- package/datetime-input/lib/datetime-input.component.d.ts +133 -0
- package/datetime-picker/lib/datetime-picker.component.d.ts +95 -0
- package/decorators/lib/components/clear-button.component.d.ts +25 -0
- package/decorators/lib/components/close-button.component.d.ts +22 -0
- package/decorators/lib/components/generic-content.component.d.ts +4 -0
- package/decorators/lib/components/icon.component.d.ts +12 -0
- package/dialog/lib/dialog.component.d.ts +20 -0
- package/drawer/lib/drawer-container.component.d.ts +7 -0
- package/drawer/lib/drawer.component.d.ts +104 -0
- package/dropdown/lib/dropdown-box.component.d.ts +66 -0
- package/dropdown/lib/dropdown-panel.component.d.ts +85 -0
- package/dropdown-button/lib/dropdown-button.component.d.ts +38 -0
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +21 -1
- package/esm2022/alert/lib/alert.component.mjs +48 -3
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +48 -1
- package/esm2022/avatar/lib/avatar.component.mjs +21 -2
- package/esm2022/badge/lib/badge.component.mjs +9 -1
- package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +14 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +9 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +6 -1
- package/esm2022/button/lib/button-item-list.component.mjs +35 -1
- package/esm2022/button/lib/button-item.component.mjs +36 -1
- package/esm2022/button/lib/button.component.mjs +37 -1
- package/esm2022/button-group/lib/button-group.component.mjs +51 -1
- package/esm2022/calendar/lib/calendar-range.component.mjs +46 -1
- package/esm2022/calendar/lib/calendar.component.mjs +112 -1
- package/esm2022/check-box/lib/check-box.component.mjs +34 -1
- package/esm2022/chips/lib/chips.component.mjs +14 -1
- package/esm2022/circular-progress/lib/circular-progress.component.mjs +73 -74
- package/esm2022/collapse/lib/collapse-group.component.mjs +39 -1
- package/esm2022/collapse/lib/collapse.component.mjs +53 -1
- package/esm2022/color-box/lib/color-box.component.mjs +23 -2
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +36 -1
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +54 -1
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +18 -1
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +28 -1
- package/esm2022/color-palette/lib/color-palette.component.mjs +9 -1
- package/esm2022/comment/lib/comment-container/comment-container.component.mjs +6 -1
- package/esm2022/comment/lib/comment-item/comment-item.component.mjs +15 -1
- package/esm2022/comment/lib/comment-like/comment-like.component.mjs +9 -1
- package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +5 -1
- package/esm2022/comment/lib/comment-view/comment-view.component.mjs +5 -1
- package/esm2022/common/lib/components/base-component.class.mjs +9 -1
- package/esm2022/common/lib/components/button-base-component.class.mjs +22 -1
- package/esm2022/common/lib/components/interactive-component.class.mjs +16 -1
- package/esm2022/conversation/lib/conversation-container/conversation-container.component.mjs +5 -1
- package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +75 -1
- package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +39 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +63 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +35 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.mjs +22 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.mjs +9 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.mjs +30 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.mjs +12 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +70 -1
- package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +23 -1
- package/esm2022/data-pager/lib/data-pager-base.component.mjs +7 -1
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +9 -1
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +15 -1
- package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +23 -1
- package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager.component.mjs +109 -1
- package/esm2022/data-table/lib/columns/data-text-column.component.mjs +32 -1
- package/esm2022/data-table/lib/columns/row-command-column.component.mjs +63 -1
- package/esm2022/data-table/lib/columns/row-index-column.component.mjs +40 -1
- package/esm2022/data-table/lib/columns/row-select-column.component.mjs +39 -1
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +183 -1
- package/esm2022/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.mjs +159 -1
- package/esm2022/datetime-box/lib/datetime-box.component.mjs +51 -2
- package/esm2022/datetime-input/lib/datetime-input.component.mjs +122 -1
- package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +90 -1
- package/esm2022/decorators/lib/components/clear-button.component.mjs +26 -1
- package/esm2022/decorators/lib/components/close-button.component.mjs +23 -1
- package/esm2022/decorators/lib/components/generic-content.component.mjs +5 -1
- package/esm2022/decorators/lib/components/icon.component.mjs +13 -1
- package/esm2022/dialog/lib/dialog.component.mjs +18 -1
- package/esm2022/drawer/lib/drawer-container.component.mjs +8 -1
- package/esm2022/drawer/lib/drawer.component.mjs +102 -1
- package/esm2022/dropdown/lib/dropdown-box.component.mjs +58 -1
- package/esm2022/dropdown/lib/dropdown-panel.component.mjs +77 -1
- package/esm2022/dropdown-button/lib/dropdown-button.component.mjs +36 -1
- package/esm2022/form/lib/form-field.component.mjs +40 -1
- package/esm2022/form/lib/form.component.mjs +59 -1
- package/esm2022/form/lib/validation-summary.component.mjs +41 -1
- package/esm2022/image/lib/image.component.mjs +47 -1
- package/esm2022/label/lib/label.component.mjs +32 -1
- package/esm2022/list/lib/list.component.mjs +84 -1
- package/esm2022/loading/lib/loading-spinner.component.mjs +17 -1
- package/esm2022/loading/lib/loading.component.mjs +27 -1
- package/esm2022/popup/lib/popup.component.mjs +2 -2
- package/esm2022/progress-bar/lib/progress-bar.component.mjs +1 -1
- package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +20 -1
- package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +5 -1
- package/esm2022/scheduler/lib/scheduler.component.mjs +10 -1
- package/esm2022/search-box/lib/search-box.component.mjs +19 -2
- package/esm2022/select-box/lib/select-box.component.mjs +50 -2
- package/esm2022/selection-list/lib/selection-list.component.mjs +51 -1
- package/esm2022/side-menu/lib/side-menu.component.mjs +5 -1
- package/esm2022/skeleton/lib/skeleton.component.mjs +11 -1
- package/esm2022/slider/lib/slider.component.mjs +52 -2
- package/esm2022/step-wizard/lib/step-wizard.component.mjs +23 -1
- package/esm2022/switch/lib/switch-content.component.mjs +5 -1
- package/esm2022/switch/lib/switch.component.mjs +11 -1
- package/esm2022/tabs/lib/tab-item.component.mjs +24 -1
- package/esm2022/tabs/lib/tabs.component.mjs +36 -1
- package/esm2022/tag/lib/tag.component.mjs +2 -1
- package/esm2022/text-area/lib/text-area.component.mjs +8 -1
- package/esm2022/text-box/lib/text-box.component.mjs +13 -1
- package/esm2022/toast/lib/toast.component.mjs +6 -1
- package/esm2022/tooltip/lib/tooltip.component.mjs +5 -1
- package/esm2022/uploader/index.mjs +5 -5
- package/esm2022/uploader/lib/{uploader-dialog-container.component.mjs → uploader-dialog-container/uploader-dialog-container.component.mjs} +17 -2
- package/esm2022/uploader/lib/uploader-drop-zone/uploader-drop-zone.component.mjs +27 -0
- package/esm2022/uploader/lib/uploader-list/uploader-list.component.mjs +26 -0
- package/esm2022/uploader/lib/uploader-zone.directive.mjs +23 -16
- package/esm2022/uploader/lib/uploader.models.mjs +19 -1
- package/esm2022/uploader/lib/uploader.module.mjs +18 -13
- package/esm2022/uploader/lib/uploader.service.mjs +14 -7
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +66 -9
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +105 -43
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +9 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +4 -1
- package/fesm2022/acorex-components-action-sheet.mjs +20 -0
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +47 -2
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +47 -0
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +20 -1
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +8 -0
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +13 -0
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +13 -0
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +50 -0
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +105 -0
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +156 -0
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +33 -0
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +13 -0
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +72 -73
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +90 -0
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +22 -1
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +140 -0
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +35 -0
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +44 -0
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +372 -0
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +209 -0
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +510 -0
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +50 -1
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +121 -0
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +89 -0
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +63 -0
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +17 -0
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +108 -0
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +35 -0
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +133 -0
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +137 -0
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +46 -0
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +31 -0
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +83 -0
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +42 -0
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +1 -1
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +32 -0
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +18 -1
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +49 -1
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +50 -0
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +4 -0
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +10 -0
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +51 -1
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +22 -0
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +14 -0
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +58 -0
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +1 -0
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +7 -0
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +12 -0
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +5 -0
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +4 -0
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +100 -32
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +179 -50
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/form/lib/form-field.component.d.ts +45 -0
- package/form/lib/form.component.d.ts +58 -0
- package/form/lib/validation-summary.component.d.ts +49 -0
- package/image/lib/image.component.d.ts +61 -0
- package/label/lib/label.component.d.ts +34 -0
- package/list/lib/list.component.d.ts +98 -0
- package/loading/lib/loading-spinner.component.d.ts +20 -0
- package/loading/lib/loading.component.d.ts +35 -0
- package/package.json +58 -58
- package/progress-bar/lib/progress-bar.component.d.ts +0 -1
- package/scheduler/lib/scheduler-month-view.component.d.ts +20 -0
- package/scheduler/lib/scheduler-week-view.component.d.ts +4 -0
- package/scheduler/lib/scheduler.component.d.ts +10 -0
- package/search-box/lib/search-box.component.d.ts +19 -1
- package/select-box/lib/select-box.component.d.ts +78 -1
- package/selection-list/lib/selection-list.component.d.ts +55 -0
- package/side-menu/lib/side-menu.component.d.ts +4 -0
- package/skeleton/lib/skeleton.component.d.ts +10 -0
- package/slider/lib/slider.component.d.ts +51 -1
- package/step-wizard/lib/step-wizard.component.d.ts +23 -0
- package/switch/lib/switch-content.component.d.ts +4 -0
- package/switch/lib/switch.component.d.ts +14 -0
- package/tabs/lib/tab-item.component.d.ts +32 -0
- package/tabs/lib/tabs.component.d.ts +42 -0
- package/tag/lib/tag.component.d.ts +4 -0
- package/text-area/lib/text-area.component.d.ts +13 -0
- package/text-box/lib/text-box.component.d.ts +27 -0
- package/toast/lib/toast.component.d.ts +6 -0
- package/tooltip/lib/tooltip.component.d.ts +13 -0
- package/uploader/index.d.ts +4 -4
- package/uploader/lib/{uploader-dialog-container.component.d.ts → uploader-dialog-container/uploader-dialog-container.component.d.ts} +15 -0
- package/uploader/lib/uploader-drop-zone/uploader-drop-zone.component.d.ts +12 -0
- package/uploader/lib/{uploader-list.component.d.ts → uploader-list/uploader-list.component.d.ts} +6 -1
- package/uploader/lib/uploader-zone.directive.d.ts +1 -0
- package/uploader/lib/uploader.models.d.ts +9 -0
- package/uploader/lib/uploader.module.d.ts +4 -4
- package/uploader/lib/uploader.service.d.ts +2 -1
- package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +35 -6
- package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +61 -21
- package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +4 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +3 -0
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +0 -14
- package/esm2022/uploader/lib/uploader-list.component.mjs +0 -21
- package/uploader/lib/uploader-drop-zone.component.d.ts +0 -6
@@ -11,31 +11,81 @@ import * as i3 from "@acorex/components/decorators";
|
|
11
11
|
import * as i4 from "@acorex/components/dropdown";
|
12
12
|
import * as i5 from "@angular/common";
|
13
13
|
import * as i6 from "@acorex/core/translation";
|
14
|
+
/**
|
15
|
+
* An input component for entering conversation messages.
|
16
|
+
*
|
17
|
+
* @category Components
|
18
|
+
*/
|
14
19
|
export class AXConversationInputComponent extends classes((MXInputBaseValueComponent), MXLookComponent) {
|
15
20
|
constructor() {
|
16
21
|
super(...arguments);
|
22
|
+
/**
|
23
|
+
* @ignore
|
24
|
+
*/
|
17
25
|
this.conversationService = inject(AXConversationService);
|
26
|
+
/**
|
27
|
+
* @ignore
|
28
|
+
*/
|
18
29
|
this.chats = computed(() => {
|
19
30
|
return this.conversationService.chats();
|
20
31
|
});
|
32
|
+
/**
|
33
|
+
* @ignore
|
34
|
+
*/
|
21
35
|
this.replyChat = computed(() => {
|
22
36
|
const findMessage = this.chats().find((item) => item.id === this.conversationService.replyId());
|
23
37
|
return findMessage;
|
24
38
|
});
|
39
|
+
/** Maximum length of input text */
|
25
40
|
this.maxLength = input();
|
41
|
+
/** Indicates if an attachment is present */
|
26
42
|
this.hasAttachment = input();
|
43
|
+
/** Indicates if voice recording is enabled */
|
27
44
|
this.haVoice = input();
|
45
|
+
/** Acceptable file types for attachment */
|
28
46
|
this.acceptFileType = input('*');
|
47
|
+
/**
|
48
|
+
* Emitted when the send button is clicked.
|
49
|
+
*
|
50
|
+
* @event
|
51
|
+
*/
|
29
52
|
this.onSendClick = output();
|
53
|
+
/**
|
54
|
+
* Emitted when recording starts.
|
55
|
+
*
|
56
|
+
* @event
|
57
|
+
*/
|
30
58
|
this.onStartRecording = output();
|
59
|
+
/**
|
60
|
+
* Emitted when recording is canceled.
|
61
|
+
*
|
62
|
+
* @event
|
63
|
+
*/
|
31
64
|
this.onCancelRecording = output();
|
65
|
+
/**
|
66
|
+
* @ignore
|
67
|
+
*/
|
32
68
|
this.recording = signal(false);
|
69
|
+
/**
|
70
|
+
* @ignore
|
71
|
+
*/
|
33
72
|
this.recordingService = inject(AXRecordingService);
|
73
|
+
/**
|
74
|
+
* @ignore
|
75
|
+
*/
|
34
76
|
this._updateOn = 'change';
|
35
77
|
}
|
78
|
+
/**
|
79
|
+
* @ignore
|
80
|
+
*/
|
36
81
|
_handleModelChange(value) {
|
37
82
|
this.commitValue(value, true);
|
38
83
|
}
|
84
|
+
/**
|
85
|
+
* Initiates recording when the record button is clicked.
|
86
|
+
* Emits an event when recording starts.
|
87
|
+
* @ignore
|
88
|
+
*/
|
39
89
|
handleRecordClick() {
|
40
90
|
this.recording.set(true);
|
41
91
|
this.recordingService
|
@@ -51,6 +101,10 @@ export class AXConversationInputComponent extends classes((MXInputBaseValueCompo
|
|
51
101
|
throw e;
|
52
102
|
});
|
53
103
|
}
|
104
|
+
/**
|
105
|
+
* Cancels the recording and emits an event to indicate cancellation.
|
106
|
+
* @ignore
|
107
|
+
*/
|
54
108
|
handleCancelRecordingClick() {
|
55
109
|
this.recording.set(false);
|
56
110
|
this.onCancelRecording.emit({
|
@@ -58,15 +112,27 @@ export class AXConversationInputComponent extends classes((MXInputBaseValueCompo
|
|
58
112
|
data: { value: null },
|
59
113
|
});
|
60
114
|
}
|
115
|
+
/**
|
116
|
+
* Opens the file picker for attachment.
|
117
|
+
* @ignore
|
118
|
+
*/
|
61
119
|
handleAttachClick() {
|
62
120
|
this.inputFile.nativeElement.click();
|
63
121
|
}
|
122
|
+
/**
|
123
|
+
* Emits the selected files when the file input changes.
|
124
|
+
* @ignore
|
125
|
+
*/
|
64
126
|
handleChangeFile(event) {
|
65
127
|
this.onSendClick.emit({
|
66
128
|
component: this,
|
67
129
|
data: { value: event.target.files, type: 'file' },
|
68
130
|
});
|
69
131
|
}
|
132
|
+
/**
|
133
|
+
* Emits the text value and optional replyChat when the send button is clicked.
|
134
|
+
* @ignore
|
135
|
+
*/
|
70
136
|
handleSendClick() {
|
71
137
|
this.onSendClick.emit({
|
72
138
|
component: this,
|
@@ -75,6 +141,10 @@ export class AXConversationInputComponent extends classes((MXInputBaseValueCompo
|
|
75
141
|
});
|
76
142
|
this.conversationService.replyId.set('');
|
77
143
|
}
|
144
|
+
/**
|
145
|
+
* Ends recording and emits the recorded voice data when the send voice button is clicked.
|
146
|
+
* @ignore
|
147
|
+
*/
|
78
148
|
handleSendVoiceClick() {
|
79
149
|
this.recordingService.endRecording().then((c) => {
|
80
150
|
this.recording.set(false);
|
@@ -85,6 +155,10 @@ export class AXConversationInputComponent extends classes((MXInputBaseValueCompo
|
|
85
155
|
});
|
86
156
|
});
|
87
157
|
}
|
158
|
+
/**
|
159
|
+
* Clears the reply ID when closing a reply.
|
160
|
+
* @ignore
|
161
|
+
*/
|
88
162
|
closeReplyHandler() {
|
89
163
|
this.conversationService.replyId.set('');
|
90
164
|
}
|
@@ -116,4 +190,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
116
190
|
type: ViewChild,
|
117
191
|
args: ['inputFile']
|
118
192
|
}] } });
|
119
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbI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0KCkudHlwZSkge1xuICAgICAgICBAY2FzZSAoJ3RleHQnKSB7XG4gICAgICAgICAgPHA+XG4gICAgICAgICAgICB7eyByZXBseUNoYXQoKS5jb250ZW50IH19XG4gICAgICAgICAgPC9wPlxuICAgICAgICB9XG4gICAgICAgIEBjYXNlICgnaW1hZ2UnKSB7XG4gICAgICAgICAgPGRpdiBjbGFzcz1cImF4LXJlcGx5LXR5cGVzXCI+XG4gICAgICAgICAgICA8aW1nIHNyYz1cInt7IHJlcGx5Q2hhdCgpLmNvbnRlbnQgfX1cIiBhbHQ9XCJcIiAvPlxuICAgICAgICAgICAge3sgcmVwbHlDaGF0KCkudHlwZSB9fVxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICB9XG4gICAgICAgIEBjYXNlICgndmlkZW8nKSB7XG4gICAgICAgICAgPGRpdiBjbGFzcz1cImF4LXJlcGx5LXR5cGVzXCI+XG4gICAgICAgICAgICA8dmlkZW8gc3JjPVwie3sgcmVwbHlDaGF0KCkuY29udGVudCB9fVwiIGFsdD1cIlwiPjwvdmlkZW8+XG4gICAgICAgICAgICB7eyByZXBseUNoYXQoKS50eXBlIH19XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIH1cbiAgICAgICAgQGNhc2UgKCdmaWxlJykge1xuICAgICAgICAgIDxkaXYgY2xhc3M9XCJheC1yZXBseS10eXBlc1wiPlxuICAgICAgICAgICAgPGkgY2xhc3M9XCJmYS1yZWd1bGFyIGZhLWZvbGRlci1vcGVuXCI+PC9pPlxuICAgICAgICAgICAge3sgcmVwbHlDaGF0KCkubmFtZSB9fVxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICB9XG4gICAgICAgIEBkZWZhdWx0IHtcbiAgICAgICAgICA8cD5cbiAgICAgICAgICAgIHt7IHJlcGx5Q2hhdCgpLnR5cGUgfX1cbiAgICAgICAgICA8L3A+XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICA8L2Rpdj5cbiAgICA8aSAoY2xpY2spPVwiY2xvc2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WNlQ2xpY2soKVwiPlxuICAgICAgICA8YXgtaWNvbj5cbiAgICAgICAgICA8aSBjbGFzcz1cImF4LWljb24gYXgtaWNvbi1zZW5kXCI+PC9pPlxuICAgICAgICA8L2F4LWljb24+XG4gICAgICA8L2F4LWJ1dHRvbj5cbiAgICA8L2Rpdj5cbiAgfSBAZWxzZSB7XG4gICAgPGRpdiBjbGFzcz1cImF4LWNvbnZlcnNhdGlvbi1pbnB1dC1zdGFydC1zaWRlXCI+XG4gICAgICA8YXgtYnV0dG9uIGxvb2s9XCJibGFua1wiIGNsYXNzPVwiYXgtc21cIj5cbiAgICAgICAgPGF4LWljb24+XG4gICAgICAgICAgPGkgY2xhc3M9XCJheC1pY29uIGF4LWljb24tZW1vamlcIj48L2k+XG4gICAgICAgIDwvYXgtaWNvbj5cbiAgICAgICAgPGF4LWRyb3Bkb3duLXBhbmVsPlxuICAgICAgICAgIDxuZy1jb250YWluZXI+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiYXgtZW1vamktY29udGFpbmVyXCI+XG4gICAgICAgICAgICAgIDxkaXY+4pqg77iPPC9kaXY+XG4gICAgICAgICAgICAgIDxkaXY+4p6h77iPPC9kaXY+XG4gICAgICAgICAgICAgIDxkaXY+8J+UgzwvZGl2PlxuICAgICAgICAgICAgICA8ZGl2PvCflLc8L2Rpdj5cbiAgICAgICAgICAgICAgPGRpdj7wn6SaPC9kaXY+XG4gICAgICAgICAgICAgIDxkaXY+8J+YgjwvZGl2PlxuICAgICAgICAgICAgICA8ZGl2PvCfmIo8L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICA8L2F4LWRyb3Bkb3duLXBhbmVsPlxuICAgICAgPC9heC1idXR0b24+XG4gICAgPC9kaXY+XG5cbiAgICA8dGV4dGFyZWFcbiAgICAgIGNsYXNzPVwiYXgtY29udmVyc2F0aW9uLWlucHV0LW1haW4tc2lkZVwiXG4gICAgICBvb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PVwiYmxhbmtcIiBjbGFzcz1cImF4LXNtXCIgKG9uQ2xpY2spPVwiaGFuZGxlQXR0YWNoQ2xpY2soKVwiPlxuICAgICAgICAgIDxheC1pY29uPlxuICAgICAgICAgICAgPGkgY2xhc3M9XCJheC1pY29uIGF4LWljb24tYXR0YWNoXCI+PC9pPlxuICAgICAgICAgIDwvYXgtaWNvbj5cbiAgICAgICAgPC9heC1idXR0b24+XG4gICAgICAgIDxheC1idXR0b24gbG9vaz1cImJsYW5rXCIgY2xhc3M9XCJheC1zbVwiIChvbkNsaWNrKT1cImhhbmRsZVJlY29yZENsaWNrKClcIj5cbiAgICAgICAgICA8YXgtaWNvbj5cbiAgICAgICAgICAgIDxpIGNsYXNzPVwiYXgtaWNvbiBheC1pY29uLW1pY1wiPjwvaT5cbiAgICAgICAgICA8L2F4LWljb24+XG4gICAgICAgIDwvYXgtYnV0dG9uPlxuICAgICAgICA8aW5wdXQgbXVsdGlwbGUgI2lucHV0RmlsZSBbYWNjZXB0XT1cImFjY2VwdEZpbGVUeXBlKClcIiB0eXBlPVwiZmlsZVwiIGNsYXNzPVwiYXgtYXR0YWNoLWlucHV0XCIgKGNoYW5nZSk9XCJoYW5kbGVDaGFuZ2VGaWxlKCRldmVudClcIiAvPlxuICAgICAgfSBAZWxzZSB7XG4gICAgICAgIDxheC1idXR0b24gbG9vaz1cInNvbGlkXCIgY29sb3I9XCJwcmltYXJ5XCIgY2xhc3M9XCJheC1zbVwiIChvbkNsaWNrKT1cImhhbmRsZVNlbmRDbGljaygpXCI+XG4gICAgICAgICAgPGF4LWljb24+XG4gICAgICAgICAgICA8aSBjbGFzcz1cImF4LWljb24gYXgtaWNvbi1zZW5kXCI+PC9pPlxuICAgICAgICAgIDwvYXgtaWNvbj5cbiAgICAgICAgPC9heC1idXR0b24+XG4gICAgICB9XG4gICAgPC9kaXY+XG4gIH1cbjwvZGl2PlxuIl19
|
193
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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bnZlcnNhdGlvbi1pbnB1dC1lbmQtc2lkZVwiPlxuICAgICAgPGF4LWJ1dHRvbiBsb29rPVwic29saWRcIiBjb2xvcj1cImRhbmdlclwiIGNsYXNzPVwiYXgtYmxvYiBheC1zbVwiIChvbkNsaWNrKT1cImhhbmRsZVNlbmRWb2ljZUNsaWNrKClcIj5cbiAgICAgICAgPGF4LWljb24+XG4gICAgICAgICAgPGkgY2xhc3M9XCJheC1pY29uIGF4LWljb24tc2VuZFwiPjwvaT5cbiAgICAgICAgPC9heC1pY29uPlxuICAgICAgPC9heC1idXR0b24+XG4gICAgPC9kaXY+XG4gIH0gQGVsc2Uge1xuICAgIDxkaXYgY2xhc3M9XCJheC1jb252ZXJzYXRpb24taW5wdXQtc3RhcnQtc2lkZVwiPlxuICAgICAgPGF4LWJ1dHRvbiBsb29rPVwiYmxhbmtcIiBjbGFzcz1cImF4LXNtXCI+XG4gICAgICAgIDxheC1pY29uPlxuICAgICAgICAgIDxpIGNsYXNzPVwiYXgtaWNvbiBheC1pY29uLWVtb2ppXCI+PC9pPlxuICAgICAgICA8L2F4LWljb24+XG4gICAgICAgIDxheC1kcm9wZG93bi1wYW5lbD5cbiAgICAgICAgICA8bmctY29udGFpbmVyPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImF4LWVtb2ppLWNvbnRhaW5lclwiPlxuICAgICAgICAgICAgICA8ZGl2PuKaoO+4jzwvZGl2PlxuICAgICAgICAgICAgICA8ZGl2PuKeoe+4jzwvZGl2PlxuICAgICAgICAgICAgICA8ZGl2PvCflIM8L2Rpdj5cbiAgICAgICAgICAgICAgPGRpdj7wn5S3PC9kaXY+XG4gICAgICAgICAgICAgIDxkaXY+8J+kmjwvZGl2PlxuICAgICAgICAgICAgICA8ZGl2PvCfmII8L2Rpdj5cbiAgICAgICAgICAgICAgPGRpdj7wn5iKPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICA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AgICA8L2F4LWljb24+XG4gICAgICAgIDwvYXgtYnV0dG9uPlxuICAgICAgfVxuICAgIDwvZGl2PlxuICB9XG48L2Rpdj5cbiJdfQ==
|
@@ -12,23 +12,52 @@ import * as i4 from "@acorex/components/avatar";
|
|
12
12
|
import * as i5 from "@acorex/components/popover";
|
13
13
|
import * as i6 from "@angular/common";
|
14
14
|
import * as i7 from "@acorex/core/format";
|
15
|
+
/**
|
16
|
+
* A component for displaying individual conversation messages.
|
17
|
+
*
|
18
|
+
* @category Components
|
19
|
+
*/
|
15
20
|
export class AXConversationMessageComponent extends MXBaseComponent {
|
16
21
|
constructor() {
|
17
22
|
super(...arguments);
|
23
|
+
/**
|
24
|
+
* @ignore
|
25
|
+
*/
|
18
26
|
this.popover = viewChild('popover');
|
27
|
+
/**
|
28
|
+
* @ignore
|
29
|
+
*/
|
19
30
|
this.conversationService = inject(AXConversationService);
|
31
|
+
/**
|
32
|
+
* The message data to display in the conversation.
|
33
|
+
*/
|
20
34
|
this.chatMessage = input();
|
35
|
+
/**
|
36
|
+
* @ignore
|
37
|
+
*/
|
21
38
|
this.registryService = inject(AXConversationMessageTypeRegistryService);
|
22
39
|
}
|
40
|
+
/**
|
41
|
+
* @ignore
|
42
|
+
*/
|
23
43
|
get isOwn() {
|
24
44
|
return !this.chatMessage().fromId;
|
25
45
|
}
|
46
|
+
/**
|
47
|
+
* @ignore
|
48
|
+
*/
|
26
49
|
get __hostClass() {
|
27
50
|
return `${this.isOwn ? 'ax-state-own' : ''} ${!this.isOwn ? 'ax-state-other' : ''}`;
|
28
51
|
}
|
52
|
+
/**
|
53
|
+
* @ignore
|
54
|
+
*/
|
29
55
|
ngOnInit() {
|
30
56
|
this._portal = new ComponentPortal(this.registryService.resolve(this.chatMessage().type).component);
|
31
57
|
}
|
58
|
+
/**
|
59
|
+
* @ignore
|
60
|
+
*/
|
32
61
|
_handleAttached(ref) {
|
33
62
|
ref = ref;
|
34
63
|
if (ref.instance && isBrowser()) {
|
@@ -48,14 +77,23 @@ export class AXConversationMessageComponent extends MXBaseComponent {
|
|
48
77
|
}
|
49
78
|
}
|
50
79
|
}
|
80
|
+
/**
|
81
|
+
* @ignore
|
82
|
+
*/
|
51
83
|
handleResendClick() {
|
52
84
|
this.popover()?.close();
|
53
85
|
this.chatMessage().onResendClick();
|
54
86
|
}
|
87
|
+
/**
|
88
|
+
* @ignore
|
89
|
+
*/
|
55
90
|
handleDeleteClick() {
|
56
91
|
this.popover()?.close();
|
57
92
|
this.chatMessage().onDeleteClick();
|
58
93
|
}
|
94
|
+
/**
|
95
|
+
* @ignore
|
96
|
+
*/
|
59
97
|
replyHandler(e) {
|
60
98
|
this.conversationService.replyId.set(e);
|
61
99
|
}
|
@@ -69,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
69
107
|
type: HostBinding,
|
70
108
|
args: ['class']
|
71
109
|
}] } });
|
72
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZXNzYWdlL2NvbnZlcnNhdGlvbi1tZXNzYWdlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb252ZXJzYXRpb24vc3JjL2xpYi9jb252ZXJzYXRpb24tbWVzc2FnZS9jb252ZXJzYXRpb24tbWVzc2FnZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFFNUQsT0FBTyxFQUFFLFNBQVMsRUF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hdE1lc3NhZ2UoKS5vblJlc2VuZENsaWNrKSB7XG4gICAgICAgICAgICA8YXgtYnV0dG9uLWl0ZW0gdGV4dD1cIlJlc2VuZFwiIChvbkNsaWNrKT1cImhhbmRsZVJlc2VuZENsaWNrKClcIj5cbiAgICAgICAgICAgICAgPGF4LWljb24gY2xhc3M9XCJheC1pY29uIGF4LWljb24tcmVsb2FkIGF4LWJvbGRcIj48L2F4LWljb24+XG4gICAgICAgICAgICA8L2F4LWJ1dHRvbi1pdGVtPlxuICAgICAgICAgIH1cbiAgICAgICAgICBAaWYgKGNoYXRNZXNzYWdlKCkub25EZWxldGVDbGljaykge1xuICAgICAgICAgICAgPGF4LWJ1dHRvbi1pdGVtIHRleHQ9XCJEZWxldGVcIiBjb2xvcj1cImRhbmdlclwiIChvbkNsaWNrKT1cImhhbmRsZURlbGV0ZUNsaWNrKClcIj5cbiAgICAgICAgICAgICAgPGF4LWljb24gY2xhc3M9XCJheC1pY29uIGF4LWljb24tY2xlYXIgYXgtYm9sZFwiPjwvYXgtaWNvbj5cbiAgICAgICAgICAgIDwvYXgtYnV0dG9uLWl0ZW0+XG4gICAgICAgICAgfVxuICAgICAgICA8L2F4LWJ1dHRvbi1pdGVtLWxpc3Q+XG4gICAgICA8L2Rpdj5cbiAgICA8L2F4LXBvcG92ZXI+XG4gIDwvYXgtYnV0dG9uPlxufVxuIl19
|
@@ -7,40 +7,93 @@ import * as i2 from "@acorex/components/decorators";
|
|
7
7
|
import * as i3 from "@acorex/components/slider";
|
8
8
|
import * as i4 from "@angular/common";
|
9
9
|
import * as i5 from "@acorex/core/format";
|
10
|
+
/**
|
11
|
+
* Component for displaying audio messages in a conversation.
|
12
|
+
*
|
13
|
+
* @category Components
|
14
|
+
*/
|
10
15
|
export class AXConversationMessageAudioComponent extends AXConversationMessageBaseComponent {
|
16
|
+
/**
|
17
|
+
* @ignore
|
18
|
+
*/
|
11
19
|
constructor() {
|
12
20
|
super();
|
21
|
+
/**
|
22
|
+
* @ignore
|
23
|
+
*/
|
13
24
|
this.audioState = signal('paused');
|
25
|
+
/**
|
26
|
+
* @ignore
|
27
|
+
*/
|
14
28
|
this.audioTag = viewChild('a');
|
29
|
+
/**
|
30
|
+
* @ignore
|
31
|
+
*/
|
15
32
|
this.renderer = inject(Renderer2);
|
33
|
+
/**
|
34
|
+
* @ignore
|
35
|
+
*/
|
16
36
|
this.audioRate = signal(1);
|
37
|
+
/**
|
38
|
+
* @ignore
|
39
|
+
*/
|
17
40
|
this.currentTime = signal(0);
|
41
|
+
/**
|
42
|
+
* @ignore
|
43
|
+
*/
|
18
44
|
this.duration = signal(0);
|
45
|
+
/**
|
46
|
+
* @ignore
|
47
|
+
*/
|
19
48
|
this.currentTimeFormat = signal(0);
|
49
|
+
/**
|
50
|
+
* @ignore
|
51
|
+
*/
|
20
52
|
this.durationFormat = signal(0);
|
21
53
|
afterNextRender(() => {
|
22
54
|
this.renderer.setAttribute(this.audioTag().nativeElement, 'src', this.message.content);
|
23
55
|
this.eventListeners();
|
24
56
|
});
|
25
57
|
}
|
58
|
+
/**
|
59
|
+
* @ignore
|
60
|
+
*/
|
26
61
|
eventListeners() {
|
27
62
|
this.ended();
|
28
63
|
this.durationChange();
|
29
64
|
this.timeUpdate();
|
30
65
|
}
|
66
|
+
/**
|
67
|
+
* Seeks to the specified time and resumes audio playback.
|
68
|
+
*
|
69
|
+
* @param e - Time in seconds to seek to.
|
70
|
+
* @ignore
|
71
|
+
*/
|
31
72
|
clickHandler(e) {
|
32
73
|
this.audioTag().nativeElement.pause();
|
33
74
|
this.audioTag().nativeElement.currentTime = e;
|
34
75
|
this.audioTag().nativeElement.play();
|
35
76
|
}
|
77
|
+
/**
|
78
|
+
* Pauses the audio and updates the state to 'paused'.
|
79
|
+
* @ignore
|
80
|
+
*/
|
36
81
|
handlePauseClick() {
|
37
82
|
this.audioState.set('paused');
|
38
83
|
this.audioTag().nativeElement.pause();
|
39
84
|
}
|
85
|
+
/**
|
86
|
+
* Plays the audio and updates the state to 'playing'.\
|
87
|
+
* @ignore
|
88
|
+
*/
|
40
89
|
handlePlayClick() {
|
41
90
|
this.audioState.set('playing');
|
42
91
|
this.audioTag().nativeElement.play();
|
43
92
|
}
|
93
|
+
/**
|
94
|
+
* Toggles the playback rate of the audio between 1x, 1.5x, and 2x.
|
95
|
+
* @ignore
|
96
|
+
*/
|
44
97
|
handleRateClick() {
|
45
98
|
if (this.audioRate() === 1) {
|
46
99
|
this.audioRate.set(1.5);
|
@@ -55,6 +108,9 @@ export class AXConversationMessageAudioComponent extends AXConversationMessageBa
|
|
55
108
|
this.audioTag().nativeElement.playbackRate = 1;
|
56
109
|
}
|
57
110
|
}
|
111
|
+
/**
|
112
|
+
* @ignore
|
113
|
+
*/
|
58
114
|
ended() {
|
59
115
|
fromEvent(this.audioTag().nativeElement, 'ended').subscribe((e) => {
|
60
116
|
this.audioState.set('paused');
|
@@ -62,6 +118,9 @@ export class AXConversationMessageAudioComponent extends AXConversationMessageBa
|
|
62
118
|
this.audioTag().nativeElement.currentTime = 0;
|
63
119
|
});
|
64
120
|
}
|
121
|
+
/**
|
122
|
+
* @ignore
|
123
|
+
*/
|
65
124
|
durationChange() {
|
66
125
|
fromEvent(this.audioTag().nativeElement, 'durationchange').subscribe((e) => {
|
67
126
|
if (this.audioTag().nativeElement.duration === Infinity)
|
@@ -70,6 +129,9 @@ export class AXConversationMessageAudioComponent extends AXConversationMessageBa
|
|
70
129
|
this.durationFormat.set(Math.ceil(this.audioTag().nativeElement.duration) * 1000);
|
71
130
|
});
|
72
131
|
}
|
132
|
+
/**
|
133
|
+
* @ignore
|
134
|
+
*/
|
73
135
|
timeUpdate() {
|
74
136
|
fromEvent(this.audioTag().nativeElement, 'timeupdate').subscribe((e) => {
|
75
137
|
this.currentTime.set(this.audioTag().nativeElement.currentTime);
|
@@ -83,4 +145,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
83
145
|
type: Component,
|
84
146
|
args: [{ selector: 'ax-conversation-message-audio', encapsulation: ViewEncapsulation.None, template: "<audio #a></audio>\n<ax-prefix>\n <div class=\"ax-time-rate\">\n @switch (audioState()) {\n @case ('paused') {\n {{ currentTimeFormat() | format: 'time-duration' | async }}\n }\n @case ('playing') {\n {{ currentTimeFormat() | format: 'time-duration' | async }}\n }\n @default {\n {{ durationFormat() | format: 'time-duration' | async }}\n }\n }\n <button class=\"ax-audio-speed\" (click)=\"handleRateClick()\">{{ audioRate() }}X</button>\n </div>\n</ax-prefix>\n<div class=\"ax-conversation-controller\">\n @switch (audioState()) {\n @case ('playing') {\n <button (click)=\"handlePauseClick()\">\n <i class=\"ax-icon ax-icon-pause\"></i>\n </button>\n }\n @case ('paused') {\n <button (click)=\"handlePlayClick()\">\n <i class=\"ax-icon ax-icon-play\"></i>\n </button>\n }\n }\n</div>\n<ax-slider\n class=\"ax-modify-bgSlider\"\n (onClick)=\"clickHandler($event)\"\n [maxValue]=\"duration()\"\n [minValue]=\"0\"\n [ngModel]=\"currentTime()\"\n color=\"secondary\"\n>\n</ax-slider>\n", styles: [".ax-time-rate button{margin-inline-start:.3rem;background-color:rgba(var(--ax-color-primary-fore));color:rgba(var(--ax-color-neutral-950));border-radius:.2rem;min-width:2rem}.ax-modify-bgSlider input[type=range]::-webkit-slider-runnable-track{background:rgba(var(--ax-color-primary-400));height:.5rem}.ax-modify-bgSlider input[type=range]::-moz-range-track{background:rgba(var(--ax-color-primary-400));height:.5rem}.ax-modify-bgSlider input[type=range]::-webkit-slider-thumb{margin-top:-.5rem}\n"] }]
|
85
147
|
}], ctorParameters: () => [] });
|
86
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtYXVkaW8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlc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gICAgICA8L2J1dHRvbj5cbiAgICB9XG4gIH1cbjwvZGl2PlxuPGF4LXNsaWRlclxuICBjbGFzcz1cImF4LW1vZGlmeS1iZ1NsaWRlclwiXG4gIChvbkNsaWNrKT1cImNsaWNrSGFuZGxlcigkZXZlbnQpXCJcbiAgW21heFZhbHVlXT1cImR1cmF0aW9uKClcIlxuICBbbWluVmFsdWVdPVwiMFwiXG4gIFtuZ01vZGVsXT1cImN1cnJlbnRUaW1lKClcIlxuICBjb2xvcj1cInNlY29uZGFyeVwiXG4+XG48L2F4LXNsaWRlcj5cbiJdfQ==
|
@@ -9,14 +9,40 @@ import * as i1 from "@acorex/components/decorators";
|
|
9
9
|
import * as i2 from "@acorex/components/loading";
|
10
10
|
import * as i3 from "@angular/common";
|
11
11
|
import * as i4 from "@acorex/core/format";
|
12
|
+
/**
|
13
|
+
* Component for displaying file messages in a conversation.
|
14
|
+
*
|
15
|
+
* @category Components
|
16
|
+
*/
|
12
17
|
export class AXConversationFileMessageComponent extends AXConversationMessageBaseComponent {
|
18
|
+
/**
|
19
|
+
* @ignore
|
20
|
+
*/
|
13
21
|
constructor() {
|
14
22
|
super();
|
23
|
+
/**
|
24
|
+
* @ignore
|
25
|
+
*/
|
15
26
|
this.fileState = signal('ready');
|
27
|
+
/**
|
28
|
+
* @ignore
|
29
|
+
*/
|
16
30
|
this.fileSize = signal(null);
|
31
|
+
/**
|
32
|
+
* @ignore
|
33
|
+
*/
|
17
34
|
this.fileName = signal('');
|
35
|
+
/**
|
36
|
+
* @ignore
|
37
|
+
*/
|
18
38
|
this.fileService = inject(AXFileService);
|
39
|
+
/**
|
40
|
+
* @ignore
|
41
|
+
*/
|
19
42
|
this.http = inject(HttpClient);
|
43
|
+
/**
|
44
|
+
* @ignore
|
45
|
+
*/
|
20
46
|
this.parent = inject(AXConversationViewComponent);
|
21
47
|
afterNextRender(() => {
|
22
48
|
if (this.message.name) {
|
@@ -29,9 +55,17 @@ export class AXConversationFileMessageComponent extends AXConversationMessageBas
|
|
29
55
|
}
|
30
56
|
});
|
31
57
|
}
|
58
|
+
/**
|
59
|
+
* Emits a download action event for the file.
|
60
|
+
* @ignore
|
61
|
+
*/
|
32
62
|
handleDownloadFile() {
|
33
63
|
this.parent.onAction.emit({ component: this, data: this.message, isUserInteraction: true });
|
34
64
|
}
|
65
|
+
/**
|
66
|
+
* Emits a cancel action event for the file loading.
|
67
|
+
* @ignore
|
68
|
+
*/
|
35
69
|
handleCancelLoading() {
|
36
70
|
this.parent.onAction.emit({ component: this, data: this.message, isUserInteraction: true });
|
37
71
|
}
|
@@ -42,4 +76,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
42
76
|
type: Component,
|
43
77
|
args: [{ selector: 'ax-conversation-message-file', encapsulation: ViewEncapsulation.None, template: "<ax-prefix>\n {{ fileSize() | format: 'filesize' | async }}\n</ax-prefix>\n<div class=\"ax-file-container\">\n <div class=\"ax-conversation-controller\">\n @switch (fileState()) {\n @case ('ready') {\n <button (click)=\"handleDownloadFile()\">\n <i class=\"ax-icon ax-icon-download\"></i>\n </button>\n }\n\n @default {\n <button (click)=\"handleCancelLoading()\">\n <ax-loading-spinner\n [size]=\"24\"\n [stroke]=\"2\"\n [color]=\"message.fromId ? 'var(--ax-other-color)' : 'var(--ax-own-color)'\"\n ></ax-loading-spinner>\n </button>\n }\n }\n </div>\n\n <div class=\"ax-file-name\">{{ fileName() }}</div>\n</div>\n", styles: ["ax-conversation-message-file .ax-file-container{display:flex;align-items:center;justify-content:center;gap:.5rem}ax-conversation-message-file .ax-file-container .ax-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
|
44
78
|
}], ctorParameters: () => [] });
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
79
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2UtZmlsZS5jb21wb25lbnQuanMiL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