@acorex/components 21.0.0-next.3 → 21.0.0-next.31
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/accordion/index.d.ts +0 -1
- package/autocomplete/index.d.ts +23 -9
- package/button/index.d.ts +38 -17
- package/chips/index.d.ts +3 -8
- package/code-editor/README.md +291 -1
- package/code-editor/index.d.ts +260 -12
- package/command/index.d.ts +1 -0
- package/conversation2/README.md +426 -0
- package/conversation2/index.d.ts +6139 -0
- package/data-table/index.d.ts +79 -7
- package/dialog/index.d.ts +1 -1
- package/drawer/README.md +2 -2
- package/drawer/index.d.ts +33 -57
- package/drawer-legacy/README.md +3 -0
- package/drawer-legacy/index.d.ts +86 -0
- package/editor/README.md +3 -0
- package/editor/index.d.ts +79 -0
- package/fesm2022/acorex-components-accordion.mjs +19 -24
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +12 -12
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +14 -14
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-aspect-ratio.mjs +4 -4
- package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +12 -11
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs +30 -13
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +13 -13
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +10 -10
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +12 -12
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +12 -12
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +17 -19
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +78 -29
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +18 -18
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +11 -11
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +12 -14
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +13 -11
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-code-editor.mjs +494 -162
- package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +13 -28
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +11 -11
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +32 -32
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +18 -11
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +34 -34
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +56 -65
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation2.mjs +17641 -0
- package/fesm2022/acorex-components-conversation2.mjs.map +1 -0
- package/fesm2022/acorex-components-cron-job.mjs +53 -53
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-list.mjs +5 -5
- package/fesm2022/acorex-components-data-list.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +53 -41
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +462 -105
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +10 -10
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +8 -8
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +11 -11
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +96 -54
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +26 -16
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer-legacy.mjs +218 -0
- package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -0
- package/fesm2022/acorex-components-drawer.mjs +66 -150
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +9 -9
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +18 -16
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-editor.mjs +195 -0
- package/fesm2022/acorex-components-editor.mjs.map +1 -0
- package/fesm2022/acorex-components-file-explorer.mjs +28 -28
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-flow-chart.mjs +18 -18
- package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +52 -35
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +14 -15
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +166 -126
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +10 -10
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +9 -9
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-kanban.mjs +9 -7
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +8 -8
- package/fesm2022/acorex-components-kbd.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +9 -9
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +10 -10
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +22 -13
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +23 -23
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +16 -15
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +78 -97
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +24 -24
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-h5Y-qcbh.mjs → acorex-components-modal-acorex-components-modal-BmmAkCKJ.mjs} +24 -24
- package/fesm2022/acorex-components-modal-acorex-components-modal-BmmAkCKJ.mjs.map +1 -0
- package/fesm2022/acorex-components-modal-modal-content.component-5GqTzNOs.mjs +214 -0
- package/fesm2022/acorex-components-modal-modal-content.component-5GqTzNOs.mjs.map +1 -0
- package/fesm2022/acorex-components-modal.mjs +1 -1
- package/fesm2022/acorex-components-navbar.mjs +9 -9
- package/fesm2022/acorex-components-navbar.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +16 -23
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box-legacy.mjs +412 -0
- package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -0
- package/fesm2022/acorex-components-number-box.mjs +98 -331
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +10 -10
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs +10 -10
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +35 -40
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +13 -13
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
- package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +10 -10
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +17 -17
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +12 -12
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +13 -13
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +11 -9
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-qrcode.mjs +8 -8
- package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +9 -9
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +7 -7
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-rail-navigation.mjs +40 -38
- package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +11 -11
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +20 -35
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +23 -23
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +8 -8
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-routing-progress.mjs +8 -8
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +111 -16
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +2339 -0
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -0
- package/fesm2022/acorex-components-scheduler.mjs +52 -52
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-scss.mjs +4 -4
- package/fesm2022/acorex-components-scss.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +23 -12
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +36 -17
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list-2.mjs +10 -10
- package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +10 -10
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +31 -38
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +8 -8
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +11 -11
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-sliding-item.mjs +17 -17
- package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +16 -16
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +14 -14
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +20 -16
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +51 -21
- package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +47 -11
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +9 -9
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +13 -13
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-duration.mjs +54 -14
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +14 -29
- package/fesm2022/acorex-components-time-line.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +14 -14
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-toolbar.mjs +9 -9
- package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +12 -12
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +16 -45
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-tree2.mjs +689 -0
- package/fesm2022/acorex-components-tree2.mjs.map +1 -0
- package/fesm2022/acorex-components-uploader.mjs +28 -641
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +8 -8
- package/fesm2022/acorex-components-video-player.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +213 -462
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/form/index.d.ts +3 -3
- package/grid-layout-builder/index.d.ts +1 -2
- package/image-editor/index.d.ts +8 -5
- package/loading/index.d.ts +1 -1
- package/media-viewer/index.d.ts +2 -3
- package/notification/index.d.ts +0 -2
- package/number-box/README.md +2 -2
- package/number-box/index.d.ts +31 -171
- package/number-box-legacy/README.md +3 -0
- package/number-box-legacy/index.d.ts +191 -0
- package/package.json +53 -26
- package/paint/index.d.ts +1 -6
- package/phone-box/index.d.ts +4 -4
- package/rate-picker/index.d.ts +5 -15
- package/rrule/index.d.ts +96 -1
- package/scheduler-picker/README.md +15 -0
- package/scheduler-picker/index.d.ts +1360 -0
- package/search-box/index.d.ts +6 -1
- package/select-box/index.d.ts +15 -10
- package/side-menu/index.d.ts +3 -2
- package/tag/index.d.ts +8 -2
- package/tag-box/index.d.ts +12 -3
- package/time-duration/index.d.ts +19 -3
- package/tree2/README.md +3 -0
- package/tree2/index.d.ts +337 -0
- package/uploader/index.d.ts +4 -331
- package/wysiwyg/index.d.ts +57 -159
- package/drawer-2/README.md +0 -3
- package/drawer-2/index.d.ts +0 -62
- package/fesm2022/acorex-components-drawer-2.mjs +0 -134
- package/fesm2022/acorex-components-drawer-2.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-acorex-components-modal-h5Y-qcbh.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-modal-content.component-B6tyMLdU.mjs +0 -235
- package/fesm2022/acorex-components-modal-modal-content.component-B6tyMLdU.mjs.map +0 -1
- package/fesm2022/acorex-components-number-box-2.mjs +0 -183
- package/fesm2022/acorex-components-number-box-2.mjs.map +0 -1
- package/number-box-2/README.md +0 -3
- package/number-box-2/index.d.ts +0 -41
package/data-table/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i2 from '@acorex/cdk/common';
|
|
2
|
-
import { AXEvent, MXBaseComponent, AXDataSource, AXSortOrder, AXButtonClickEvent, AXItemClickEvent, AXValueChangedEvent, AXListDataSource } from '@acorex/cdk/common';
|
|
2
|
+
import { AXEvent, MXBaseComponent, AXDataSource, AXSortOrder, AXStyleLookType, AXButtonClickEvent, AXItemClickEvent, AXClickEvent, AXValueChangedEvent, AXListDataSource } from '@acorex/cdk/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { EventEmitter, TemplateRef, ChangeDetectorRef, OnInit, DoCheck, QueryList, WritableSignal, ElementRef, AfterViewInit, Signal } from '@angular/core';
|
|
5
5
|
import * as i11 from '@acorex/core/format';
|
|
@@ -86,7 +86,15 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
|
86
86
|
|
|
87
87
|
declare abstract class AXDataTableColumnComponent {
|
|
88
88
|
caption: string;
|
|
89
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Width of the column.
|
|
91
|
+
* - string: e.g., '180px', '20%'
|
|
92
|
+
* - number: e.g., 180 (treated as pixels)
|
|
93
|
+
* - 'auto': automatically fits to content after data load
|
|
94
|
+
*
|
|
95
|
+
* @defaultValue 'auto'
|
|
96
|
+
*/
|
|
97
|
+
width: string | number | 'auto';
|
|
90
98
|
fixed: 'start' | 'end' | undefined;
|
|
91
99
|
allowSorting: boolean;
|
|
92
100
|
allowResizing: boolean;
|
|
@@ -245,14 +253,24 @@ declare class AXDataTableTextColumnComponent extends AXDataTableColumnComponent
|
|
|
245
253
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableTextColumnComponent, "ax-text-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "allowSorting": { "alias": "allowSorting"; "required": false; }; "allowResizing": { "alias": "allowResizing"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "customExpandIcon": { "alias": "customExpandIcon"; "required": false; }; "customCollapseIcon": { "alias": "customCollapseIcon"; "required": false; }; "dataField": { "alias": "dataField"; "required": false; }; "expandHandler": { "alias": "expandHandler"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "format": { "alias": "format"; "required": false; }; "formatOptions": { "alias": "formatOptions"; "required": false; }; }, {}, never, never, true, never>;
|
|
246
254
|
}
|
|
247
255
|
|
|
248
|
-
type AXRowCommandItem = AXButtonItemListItem
|
|
249
|
-
|
|
256
|
+
type AXRowCommandItem = AXButtonItemListItem & {
|
|
257
|
+
commandId?: string;
|
|
258
|
+
look?: AXStyleLookType;
|
|
259
|
+
};
|
|
260
|
+
interface AXRowCommandItemClickEvent extends AXButtonClickEvent {
|
|
261
|
+
setLoading?: (loading: boolean) => void;
|
|
262
|
+
}
|
|
250
263
|
declare abstract class AXBaseRowCommandColumnComponent extends AXDataTableColumnComponent {
|
|
251
264
|
protected grid: AXBaseDataTable;
|
|
252
265
|
protected cdr: ChangeDetectorRef;
|
|
266
|
+
protected commandLoading: i0.WritableSignal<string>;
|
|
267
|
+
private rowIdentityMap;
|
|
268
|
+
private rowIdentitySeq;
|
|
253
269
|
allowSorting: boolean;
|
|
254
270
|
get loadingEnabled(): boolean;
|
|
255
271
|
get cssClass(): string;
|
|
272
|
+
protected resolveCommandId(rowData: unknown, commandName: string): string;
|
|
273
|
+
protected setCommandLoadingState(commandId: string, loading: boolean): void;
|
|
256
274
|
onItemClick: EventEmitter<AXRowCommandItemClickEvent>;
|
|
257
275
|
}
|
|
258
276
|
/**
|
|
@@ -280,6 +298,10 @@ declare class AXRowDropdownCommandColumnComponent extends AXBaseRowCommandColumn
|
|
|
280
298
|
*/
|
|
281
299
|
get renderHeaderTemplate(): TemplateRef<unknown>;
|
|
282
300
|
footerTemplate: TemplateRef<unknown>;
|
|
301
|
+
emptyStateTemplate?: TemplateRef<unknown>;
|
|
302
|
+
emptyStateText: string;
|
|
303
|
+
protected itemsLoading: i0.WritableSignal<boolean>;
|
|
304
|
+
protected itemsFetched: i0.WritableSignal<boolean>;
|
|
283
305
|
/**
|
|
284
306
|
* @ignore
|
|
285
307
|
*/
|
|
@@ -298,6 +320,7 @@ declare class AXRowDropdownCommandColumnComponent extends AXBaseRowCommandColumn
|
|
|
298
320
|
*/
|
|
299
321
|
protected _items: AXRowCommandItem[];
|
|
300
322
|
items: AXRowCommandItem[] | ((rowData: unknown) => AXRowCommandItem[] | Promise<AXRowCommandItem[]>);
|
|
323
|
+
private dropdownLoadingEffect;
|
|
301
324
|
/**
|
|
302
325
|
* @ignore
|
|
303
326
|
*/
|
|
@@ -306,12 +329,14 @@ declare class AXRowDropdownCommandColumnComponent extends AXBaseRowCommandColumn
|
|
|
306
329
|
* @ignore
|
|
307
330
|
*/
|
|
308
331
|
protected handleOnClosed(): void;
|
|
332
|
+
private decorateItems;
|
|
333
|
+
private applyLoadingState;
|
|
309
334
|
/**
|
|
310
335
|
* @ignore
|
|
311
336
|
*/
|
|
312
337
|
protected handleOnItemClick(e: AXItemClickEvent<AXButtonItemComponent>, data: unknown): void;
|
|
313
338
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXRowDropdownCommandColumnComponent, never>;
|
|
314
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowDropdownCommandColumnComponent, "ax-dropdown-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, true, never>;
|
|
339
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowDropdownCommandColumnComponent, "ax-dropdown-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "emptyStateTemplate": { "alias": "emptyStateTemplate"; "required": false; }; "emptyStateText": { "alias": "emptyStateText"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, true, never>;
|
|
315
340
|
}
|
|
316
341
|
/**
|
|
317
342
|
* A column for displaying command buttons in a data table.
|
|
@@ -363,10 +388,15 @@ declare class AXRowCommandColumnComponent extends AXBaseRowCommandColumnComponen
|
|
|
363
388
|
* @ignore
|
|
364
389
|
*/
|
|
365
390
|
protected getItems(rowData: unknown): AXRowCommandItem[];
|
|
391
|
+
protected getItemsWithIds(rowData: unknown): Array<{
|
|
392
|
+
item: AXRowCommandItem;
|
|
393
|
+
commandId: string;
|
|
394
|
+
}>;
|
|
366
395
|
/**
|
|
367
396
|
* @ignore
|
|
368
397
|
*/
|
|
369
|
-
protected
|
|
398
|
+
protected getCommandId(rowData: unknown, item: AXRowCommandItem): string;
|
|
399
|
+
protected handleOnItemClick(e: AXClickEvent, item: AXRowCommandItem, data: unknown): void;
|
|
370
400
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXRowCommandColumnComponent, never>;
|
|
371
401
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXRowCommandColumnComponent, "ax-command-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, true, never>;
|
|
372
402
|
}
|
|
@@ -1025,7 +1055,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
1025
1055
|
/**
|
|
1026
1056
|
* @ignore
|
|
1027
1057
|
*/
|
|
1028
|
-
private
|
|
1058
|
+
private isRefreshCalled;
|
|
1029
1059
|
/**
|
|
1030
1060
|
* Returns true if in manual mode and no data has been loaded yet.
|
|
1031
1061
|
*/
|
|
@@ -1096,6 +1126,14 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
1096
1126
|
* @ignore
|
|
1097
1127
|
*/
|
|
1098
1128
|
protected calculateRowIndex(index: number): number;
|
|
1129
|
+
/**
|
|
1130
|
+
* Handles double-click on resize handle to auto-fit column width.
|
|
1131
|
+
*
|
|
1132
|
+
* @param event - The mouse event from the double-click
|
|
1133
|
+
* @param columnIndex - The index of the column to auto-fit
|
|
1134
|
+
* @ignore
|
|
1135
|
+
*/
|
|
1136
|
+
protected onResizeHandlerDoubleClick(event: MouseEvent, columnIndex: number): void;
|
|
1099
1137
|
/**
|
|
1100
1138
|
* @ignore
|
|
1101
1139
|
*/
|
|
@@ -1116,6 +1154,40 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
|
|
|
1116
1154
|
* @ignore
|
|
1117
1155
|
*/
|
|
1118
1156
|
private calculateStickyColumnsPositions;
|
|
1157
|
+
/**
|
|
1158
|
+
* Auto-fits columns that have width='auto'.
|
|
1159
|
+
* Called automatically after data load.
|
|
1160
|
+
*
|
|
1161
|
+
* @ignore
|
|
1162
|
+
*/
|
|
1163
|
+
private autoFitColumnsWithAutoWidth;
|
|
1164
|
+
/**
|
|
1165
|
+
* Auto-fits all columns width based on their content.
|
|
1166
|
+
*
|
|
1167
|
+
* @param options - Configuration options
|
|
1168
|
+
* @param options.skipFixed - If true, skips fixed columns (default: true)
|
|
1169
|
+
* @param options.skipLoading - If true, skips if data is loading (default: true)
|
|
1170
|
+
* @param options.maxWidth - Maximum width for any column in pixels (default: 500)
|
|
1171
|
+
* @returns void
|
|
1172
|
+
*/
|
|
1173
|
+
autoFitAllColumns(options?: {
|
|
1174
|
+
skipFixed?: boolean;
|
|
1175
|
+
skipLoading?: boolean;
|
|
1176
|
+
maxWidth?: number;
|
|
1177
|
+
}): void;
|
|
1178
|
+
/**
|
|
1179
|
+
* Auto-fits a column width based on its content.
|
|
1180
|
+
* Similar to Excel's "AutoFit Column Width" feature.
|
|
1181
|
+
* Uses an invisible helper table to measure actual content width without affecting the main table.
|
|
1182
|
+
*
|
|
1183
|
+
* @param columnIndex - The index of the column to auto-fit (0-based, based on columns QueryList)
|
|
1184
|
+
* @param options - Configuration options
|
|
1185
|
+
* @param options.maxWidth - Maximum width for the column in pixels (default: none)
|
|
1186
|
+
* @returns void
|
|
1187
|
+
*/
|
|
1188
|
+
autoFitColumn(columnIndex: number, options?: {
|
|
1189
|
+
maxWidth?: number;
|
|
1190
|
+
}): void;
|
|
1119
1191
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
|
|
1120
1192
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;
|
|
1121
1193
|
}
|
package/dialog/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ declare class AXDialogService {
|
|
|
109
109
|
* @param draggable - Whether the dialog can be dragged.
|
|
110
110
|
* @returns Promise<void> - Promise that resolves when the dialog is closed.
|
|
111
111
|
*/
|
|
112
|
-
alert(title: string, content: string, type?: AXStyleColorType, orientation?: 'horizontal' | 'vertical', draggable?: boolean): Promise<void>;
|
|
112
|
+
alert(title: string, content: string, type?: AXStyleColorType, orientation?: 'horizontal' | 'vertical', draggable?: boolean, buttonLook?: AXStyleLookType): Promise<void>;
|
|
113
113
|
/**
|
|
114
114
|
* Show a confirm box with 'Okay' & 'Cancel' buttons.
|
|
115
115
|
*
|
package/drawer/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# @acorex/components/drawer
|
|
1
|
+
# @acorex/components/drawer-2
|
|
2
2
|
|
|
3
|
-
Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/drawer`.
|
|
3
|
+
Secondary entry point of `@acorex/components`. It can be used by importing from `@acorex/components/drawer-2`.
|
package/drawer/index.d.ts
CHANGED
|
@@ -1,86 +1,62 @@
|
|
|
1
|
-
import { MXBaseComponent } from '@acorex/cdk/common';
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { MXBaseComponent, AXClickEvent } from '@acorex/cdk/common';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import * as i1 from '@acorex/cdk/drawer';
|
|
4
|
+
import { AXDrawerLocation, AXDrawerMode } from '@acorex/cdk/drawer';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A container component that organizes and positions drawer components.
|
|
8
8
|
* @category component
|
|
9
9
|
*/
|
|
10
10
|
declare class AXDrawerContainerComponent extends MXBaseComponent {
|
|
11
|
-
private
|
|
12
|
-
|
|
13
|
-
static
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXDrawerContainerComponent, "ax-drawer-container", never, {}, {}, never, ["ax-drawer", "ax-content"], true, never>;
|
|
11
|
+
#private;
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawerContainerComponent, never>;
|
|
13
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXDrawerContainerComponent, "ax-drawer-container", never, {}, {}, never, ["ax-drawer", "ax-content"], true, [{ directive: typeof i1.AXDrawerContainerDirective; inputs: {}; outputs: {}; }]>;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
type AXDrawerMode = 'push' | 'overlay';
|
|
18
|
-
type AXDrawerLocation = 'start' | 'end';
|
|
19
16
|
/**
|
|
20
17
|
* A component that represents a drawer with header and content sections.
|
|
21
18
|
*
|
|
22
19
|
* @category Components
|
|
23
20
|
*/
|
|
24
|
-
declare class AXDrawerComponent extends MXBaseComponent
|
|
21
|
+
declare class AXDrawerComponent extends MXBaseComponent {
|
|
25
22
|
#private;
|
|
26
|
-
location:
|
|
27
|
-
showBackdrop:
|
|
28
|
-
mode:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
private
|
|
37
|
-
/**
|
|
23
|
+
readonly location: _angular_core.InputSignal<AXDrawerLocation>;
|
|
24
|
+
readonly showBackdrop: _angular_core.InputSignal<boolean>;
|
|
25
|
+
readonly mode: _angular_core.InputSignal<AXDrawerMode>;
|
|
26
|
+
readonly transition: _angular_core.InputSignal<number>;
|
|
27
|
+
readonly closeOnBackdropClick: _angular_core.InputSignal<boolean>;
|
|
28
|
+
readonly backdropClass: _angular_core.InputSignal<string>;
|
|
29
|
+
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
30
|
+
readonly singleOpenMode: _angular_core.InputSignal<boolean>;
|
|
31
|
+
onBackdropClick: _angular_core.OutputEmitterRef<AXClickEvent>;
|
|
32
|
+
collapsedStateChanged: _angular_core.OutputEmitterRef<boolean>;
|
|
33
|
+
private drawerItem;
|
|
34
|
+
/**
|
|
35
|
+
* Toggles the drawer state between open and closed.
|
|
38
36
|
*
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
ngAfterContentInit(): void;
|
|
42
|
-
/**
|
|
43
|
-
* @ignore
|
|
44
|
-
*/
|
|
45
|
-
ngDoCheck(): void;
|
|
46
|
-
/**
|
|
47
|
-
* @ignore
|
|
48
|
-
*/
|
|
49
|
-
private _detectBoundingSize;
|
|
50
|
-
/**
|
|
51
|
-
* Toggles the collapsed state of the drawer.
|
|
37
|
+
* @returns void - No return value. The drawer state is toggled.
|
|
52
38
|
*/
|
|
53
39
|
toggle(): void;
|
|
54
40
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
41
|
+
* Closes the drawer.
|
|
42
|
+
*
|
|
43
|
+
* @returns void - No return value. The drawer is collapsed.
|
|
57
44
|
*/
|
|
58
45
|
close(): void;
|
|
59
46
|
/**
|
|
60
|
-
*
|
|
47
|
+
* Opens the drawer.
|
|
48
|
+
*
|
|
49
|
+
* @returns void - No return value. The drawer is expanded.
|
|
61
50
|
*/
|
|
62
51
|
open(): void;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*/
|
|
66
|
-
private _addBackdrop;
|
|
67
|
-
/**
|
|
68
|
-
* @ignore
|
|
69
|
-
*/
|
|
70
|
-
private _removeBackdrop;
|
|
71
|
-
/**
|
|
72
|
-
* @ignore
|
|
73
|
-
*/
|
|
74
|
-
private get __hostClass();
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXDrawerComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXDrawerComponent, "ax-drawer", never, { "location": { "alias": "location"; "required": false; "isSignal": true; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "closeOthers": { "alias": "closeOthers"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "location": "locationChange"; "mode": "modeChange"; "collapsed": "collapsedChange"; }, never, ["ax-header", "ax-content"], true, never>;
|
|
52
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawerComponent, never>;
|
|
53
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXDrawerComponent, "ax-drawer", never, { "location": { "alias": "location"; "required": false; "isSignal": true; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "transition": { "alias": "transition"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "singleOpenMode": { "alias": "singleOpenMode"; "required": false; "isSignal": true; }; }, { "onBackdropClick": "onBackdropClick"; "collapsedStateChanged": "collapsedStateChanged"; }, never, ["ax-header", "ax-content"], true, [{ directive: typeof i1.AXDrawerItemDirective; inputs: {}; outputs: {}; }]>;
|
|
77
54
|
}
|
|
78
55
|
|
|
79
56
|
declare class AXDrawerModule {
|
|
80
|
-
static ɵfac:
|
|
81
|
-
static ɵmod:
|
|
82
|
-
static ɵinj:
|
|
57
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXDrawerModule, never>;
|
|
58
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXDrawerModule, never, [typeof AXDrawerComponent, typeof AXDrawerContainerComponent], [typeof AXDrawerComponent, typeof AXDrawerContainerComponent]>;
|
|
59
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXDrawerModule>;
|
|
83
60
|
}
|
|
84
61
|
|
|
85
62
|
export { AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule };
|
|
86
|
-
export type { AXDrawerLocation, AXDrawerMode };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { MXBaseComponent } from '@acorex/cdk/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { AfterContentInit, DoCheck } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A container component that organizes and positions drawer components.
|
|
8
|
+
* @category component
|
|
9
|
+
*/
|
|
10
|
+
declare class AXDrawerLegacyContainerComponent extends MXBaseComponent {
|
|
11
|
+
private service;
|
|
12
|
+
constructor();
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXDrawerLegacyContainerComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXDrawerLegacyContainerComponent, "ax-drawer-legacy-container", never, {}, {}, never, ["ax-drawer", "ax-content"], true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type AXDrawerMode = 'push' | 'overlay';
|
|
18
|
+
type AXDrawerLocation = 'start' | 'end';
|
|
19
|
+
/**
|
|
20
|
+
* A component that represents a drawer with header and content sections.
|
|
21
|
+
*
|
|
22
|
+
* @category Components
|
|
23
|
+
*/
|
|
24
|
+
declare class AXDrawerLegacyComponent extends MXBaseComponent implements AfterContentInit, DoCheck {
|
|
25
|
+
#private;
|
|
26
|
+
location: i0.ModelSignal<AXDrawerLocation>;
|
|
27
|
+
showBackdrop: i0.InputSignal<boolean>;
|
|
28
|
+
mode: i0.ModelSignal<AXDrawerMode>;
|
|
29
|
+
closeOthers: i0.InputSignal<boolean>;
|
|
30
|
+
collapsed: i0.ModelSignal<boolean>;
|
|
31
|
+
private backdropElement;
|
|
32
|
+
protected loaded: i0.WritableSignal<boolean>;
|
|
33
|
+
private service;
|
|
34
|
+
private _zone;
|
|
35
|
+
private document;
|
|
36
|
+
private platformID;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
ngAfterContentInit(): void;
|
|
42
|
+
/**
|
|
43
|
+
* @ignore
|
|
44
|
+
*/
|
|
45
|
+
ngDoCheck(): void;
|
|
46
|
+
/**
|
|
47
|
+
* @ignore
|
|
48
|
+
*/
|
|
49
|
+
private _detectBoundingSize;
|
|
50
|
+
/**
|
|
51
|
+
* Toggles the collapsed state of the drawer.
|
|
52
|
+
*/
|
|
53
|
+
toggle(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Collapses the drawer.
|
|
56
|
+
* @ignore
|
|
57
|
+
*/
|
|
58
|
+
close(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Expands the drawer.
|
|
61
|
+
*/
|
|
62
|
+
open(): void;
|
|
63
|
+
/**
|
|
64
|
+
* @ignore
|
|
65
|
+
*/
|
|
66
|
+
private _addBackdrop;
|
|
67
|
+
/**
|
|
68
|
+
* @ignore
|
|
69
|
+
*/
|
|
70
|
+
private _removeBackdrop;
|
|
71
|
+
/**
|
|
72
|
+
* @ignore
|
|
73
|
+
*/
|
|
74
|
+
private get __hostClass();
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXDrawerLegacyComponent, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXDrawerLegacyComponent, "ax-drawer-legacy", never, { "location": { "alias": "location"; "required": false; "isSignal": true; }; "showBackdrop": { "alias": "showBackdrop"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "closeOthers": { "alias": "closeOthers"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "location": "locationChange"; "mode": "modeChange"; "collapsed": "collapsedChange"; }, never, ["ax-header", "ax-content"], true, never>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare class AXDrawerLegacyModule {
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXDrawerLegacyModule, never>;
|
|
81
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXDrawerLegacyModule, never, [typeof i1.CommonModule, typeof AXDrawerLegacyComponent, typeof AXDrawerLegacyContainerComponent], [typeof AXDrawerLegacyComponent, typeof AXDrawerLegacyContainerComponent]>;
|
|
82
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXDrawerLegacyModule>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { AXDrawerLegacyComponent, AXDrawerLegacyContainerComponent, AXDrawerLegacyModule };
|
|
86
|
+
export type { AXDrawerLocation, AXDrawerMode };
|
package/editor/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as polytype from 'polytype';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { MXInputBaseValueComponent, MXLookComponent } from '@acorex/cdk/common';
|
|
4
|
+
import EditorJS, { OutputData } from '@editorjs/editorjs';
|
|
5
|
+
|
|
6
|
+
type EditorJsTool = 'header' | 'list' | 'raw' | 'image' | 'quote' | 'codeBox' | 'underline' | 'color';
|
|
7
|
+
type ImageToolConfig = {
|
|
8
|
+
endpoints?: {
|
|
9
|
+
byFile: string;
|
|
10
|
+
byUrl: string;
|
|
11
|
+
};
|
|
12
|
+
/** Name of the uploaded image field in POST request (default: "image") */
|
|
13
|
+
field?: string;
|
|
14
|
+
/** Mime-types of files accepted (default: "image/*") */
|
|
15
|
+
types?: string;
|
|
16
|
+
/** Extra data to send with upload requests */
|
|
17
|
+
additionalRequestData?: Record<string, any>;
|
|
18
|
+
/** Custom headers to include in upload requests */
|
|
19
|
+
additionalRequestHeaders?: Record<string, string>;
|
|
20
|
+
/** Placeholder text for the caption input (default: "Caption") */
|
|
21
|
+
captionPlaceholder?: string;
|
|
22
|
+
/** HTML content for the “Select file” button */
|
|
23
|
+
buttonContent?: string;
|
|
24
|
+
/** Custom uploader methods */
|
|
25
|
+
uploader?: {
|
|
26
|
+
uploadByFile?: (file: File) => Promise<{
|
|
27
|
+
success: number;
|
|
28
|
+
file: {
|
|
29
|
+
url: string;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
uploadByUrl?: (url: string) => Promise<{
|
|
33
|
+
success: number;
|
|
34
|
+
file: {
|
|
35
|
+
url: string;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
/** Custom actions for the tool's settings menu */
|
|
40
|
+
actions?: Array<Record<string, any>>;
|
|
41
|
+
/** Feature toggles (border, background, caption, etc.) */
|
|
42
|
+
features?: {
|
|
43
|
+
border?: boolean;
|
|
44
|
+
background?: boolean;
|
|
45
|
+
caption?: boolean;
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
declare const AXEditorComponent_base: polytype.Polytype.ClusteredConstructor<[{
|
|
51
|
+
new (): MXInputBaseValueComponent<OutputData>;
|
|
52
|
+
ɵfac: i0.ɵɵFactoryDeclaration<MXInputBaseValueComponent<any>, never>;
|
|
53
|
+
ɵprov: i0.ɵɵInjectableDeclaration<MXInputBaseValueComponent<any>>;
|
|
54
|
+
}, typeof MXLookComponent]>;
|
|
55
|
+
declare class AXEditorComponent extends AXEditorComponent_base {
|
|
56
|
+
#private;
|
|
57
|
+
private toolLoaders;
|
|
58
|
+
private editorHolder;
|
|
59
|
+
private platform;
|
|
60
|
+
modules: i0.InputSignal<EditorJsTool[]>;
|
|
61
|
+
imageConfig: i0.InputSignal<ImageToolConfig>;
|
|
62
|
+
protected editorClass: EditorJS;
|
|
63
|
+
private colorConfig;
|
|
64
|
+
private markerConfig;
|
|
65
|
+
private loadEditorJsTools;
|
|
66
|
+
private get __hostClass();
|
|
67
|
+
private get __hostName();
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXEditorComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXEditorComponent, "ax-editor", never, { "look": { "alias": "look"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "modules": { "alias": "modules"; "required": false; "isSignal": true; }; "imageConfig": { "alias": "imageConfig"; "required": false; "isSignal": true; }; }, { "onValueChanged": "onValueChanged"; }, never, ["ax-validation-rule"], true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare class EditorModule {
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorModule, never>;
|
|
74
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorModule, never, [typeof AXEditorComponent], [typeof AXEditorComponent]>;
|
|
75
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EditorModule>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { AXEditorComponent, EditorModule };
|
|
79
|
+
export type { EditorJsTool, ImageToolConfig };
|