@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/code-editor/index.d.ts
CHANGED
|
@@ -1,20 +1,267 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { InjectionToken, ElementRef } from '@angular/core';
|
|
3
3
|
import * as _codemirror_autocomplete from '@codemirror/autocomplete';
|
|
4
4
|
import * as _codemirror_state from '@codemirror/state';
|
|
5
|
+
import { Extension } from '@codemirror/state';
|
|
5
6
|
import { MXValueComponent } from '@acorex/cdk/common';
|
|
6
7
|
import * as i1 from '@angular/common';
|
|
7
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Base interface for all code editor plugins
|
|
11
|
+
*/
|
|
12
|
+
interface AXCodeEditorPlugin {
|
|
13
|
+
/** Unique identifier for the plugin */
|
|
14
|
+
readonly id: string;
|
|
15
|
+
/** Human-readable name */
|
|
16
|
+
readonly name: string;
|
|
17
|
+
/** Plugin version */
|
|
18
|
+
readonly version?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Language plugin provides syntax highlighting and language-specific features
|
|
22
|
+
*/
|
|
23
|
+
interface AXCodeEditorLanguagePlugin extends AXCodeEditorPlugin {
|
|
24
|
+
/** Language identifiers this plugin supports (e.g., 'javascript', 'js') */
|
|
25
|
+
readonly languages: ReadonlyArray<string>;
|
|
26
|
+
/** Load and return the CodeMirror extension for this language */
|
|
27
|
+
getExtension(): Promise<Extension>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Theme plugin provides visual styling for the editor
|
|
31
|
+
*/
|
|
32
|
+
interface AXCodeEditorThemePlugin extends AXCodeEditorPlugin {
|
|
33
|
+
/** Whether this is a dark theme */
|
|
34
|
+
readonly dark: boolean;
|
|
35
|
+
/** Load and return the CodeMirror theme extension */
|
|
36
|
+
getExtension(): Promise<Extension>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Formatter plugin provides code formatting capabilities
|
|
40
|
+
*/
|
|
41
|
+
interface AXCodeEditorFormatterPlugin extends AXCodeEditorPlugin {
|
|
42
|
+
/** Languages this formatter supports */
|
|
43
|
+
readonly languages: ReadonlyArray<string>;
|
|
44
|
+
/** Format the given text */
|
|
45
|
+
format(text: string, language: string): Promise<string | null>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Extension plugin provides additional CodeMirror extensions
|
|
49
|
+
*/
|
|
50
|
+
interface AXCodeEditorExtensionPlugin extends AXCodeEditorPlugin {
|
|
51
|
+
/** Get the CodeMirror extension */
|
|
52
|
+
getExtension(): Promise<Extension>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Plugin configuration for the code editor
|
|
56
|
+
*/
|
|
57
|
+
interface AXCodeEditorPluginConfig {
|
|
58
|
+
/** Language plugins */
|
|
59
|
+
languages?: ReadonlyArray<AXCodeEditorLanguagePlugin>;
|
|
60
|
+
/** Theme plugins */
|
|
61
|
+
themes?: ReadonlyArray<AXCodeEditorThemePlugin>;
|
|
62
|
+
/** Formatter plugins */
|
|
63
|
+
formatters?: ReadonlyArray<AXCodeEditorFormatterPlugin>;
|
|
64
|
+
/** Additional extension plugins */
|
|
65
|
+
extensions?: ReadonlyArray<AXCodeEditorExtensionPlugin>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Injection token for providing code editor plugin configuration
|
|
70
|
+
*/
|
|
71
|
+
declare const AX_CODE_EDITOR_PLUGIN_CONFIG: InjectionToken<AXCodeEditorPluginConfig>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Registry service for managing code editor plugins
|
|
75
|
+
*/
|
|
76
|
+
declare class AXCodeEditorPluginRegistry {
|
|
77
|
+
private config;
|
|
78
|
+
private languagePlugins;
|
|
79
|
+
private themePlugins;
|
|
80
|
+
private formatterPlugins;
|
|
81
|
+
private extensionPlugins;
|
|
82
|
+
constructor();
|
|
83
|
+
private initializePlugins;
|
|
84
|
+
/**
|
|
85
|
+
* Get language extension for the specified language
|
|
86
|
+
*/
|
|
87
|
+
getLanguageExtension(language: string): Promise<Extension>;
|
|
88
|
+
/**
|
|
89
|
+
* Get theme extension by theme ID
|
|
90
|
+
*/
|
|
91
|
+
getThemeExtension(themeId: string): Promise<Extension>;
|
|
92
|
+
/**
|
|
93
|
+
* Format text using the appropriate formatter for the language
|
|
94
|
+
*/
|
|
95
|
+
format(text: string, language: string): Promise<string | null>;
|
|
96
|
+
/**
|
|
97
|
+
* Get all registered extension plugins
|
|
98
|
+
*/
|
|
99
|
+
getExtensionPlugins(): Promise<Extension[]>;
|
|
100
|
+
/**
|
|
101
|
+
* Check if a language is supported
|
|
102
|
+
*/
|
|
103
|
+
hasLanguage(language: string): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Check if a theme is available
|
|
106
|
+
*/
|
|
107
|
+
hasTheme(themeId: string): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Check if a formatter is available for a language
|
|
110
|
+
*/
|
|
111
|
+
hasFormatter(language: string): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Get all available language identifiers
|
|
114
|
+
*/
|
|
115
|
+
getAvailableLanguages(): string[];
|
|
116
|
+
/**
|
|
117
|
+
* Get all available theme identifiers
|
|
118
|
+
*/
|
|
119
|
+
getAvailableThemes(): string[];
|
|
120
|
+
/**
|
|
121
|
+
* Register a language plugin at runtime
|
|
122
|
+
*/
|
|
123
|
+
registerLanguagePlugin(plugin: AXCodeEditorLanguagePlugin): void;
|
|
124
|
+
/**
|
|
125
|
+
* Register a theme plugin at runtime
|
|
126
|
+
*/
|
|
127
|
+
registerThemePlugin(plugin: AXCodeEditorThemePlugin): void;
|
|
128
|
+
/**
|
|
129
|
+
* Register a formatter plugin at runtime
|
|
130
|
+
*/
|
|
131
|
+
registerFormatterPlugin(plugin: AXCodeEditorFormatterPlugin): void;
|
|
132
|
+
/**
|
|
133
|
+
* Register an extension plugin at runtime
|
|
134
|
+
*/
|
|
135
|
+
registerExtensionPlugin(plugin: AXCodeEditorExtensionPlugin): void;
|
|
136
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXCodeEditorPluginRegistry, never>;
|
|
137
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXCodeEditorPluginRegistry>;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare class JavaScriptLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
141
|
+
readonly id = "javascript";
|
|
142
|
+
readonly name = "JavaScript";
|
|
143
|
+
readonly version = "1.0.0";
|
|
144
|
+
readonly languages: readonly ["javascript", "js"];
|
|
145
|
+
getExtension(): Promise<Extension>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare class TypeScriptLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
149
|
+
readonly id = "typescript";
|
|
150
|
+
readonly name = "TypeScript";
|
|
151
|
+
readonly version = "1.0.0";
|
|
152
|
+
readonly languages: readonly ["typescript", "ts"];
|
|
153
|
+
getExtension(): Promise<Extension>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class JSONLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
157
|
+
readonly id = "json";
|
|
158
|
+
readonly name = "JSON";
|
|
159
|
+
readonly version = "1.0.0";
|
|
160
|
+
readonly languages: readonly ["json"];
|
|
161
|
+
getExtension(): Promise<Extension>;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare class HTMLLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
165
|
+
readonly id = "html";
|
|
166
|
+
readonly name = "HTML";
|
|
167
|
+
readonly version = "1.0.0";
|
|
168
|
+
readonly languages: readonly ["html"];
|
|
169
|
+
getExtension(): Promise<Extension>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare class CSSLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
173
|
+
readonly id = "css";
|
|
174
|
+
readonly name = "CSS";
|
|
175
|
+
readonly version = "1.0.0";
|
|
176
|
+
readonly languages: readonly ["css"];
|
|
177
|
+
getExtension(): Promise<Extension>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
declare class SassLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
181
|
+
readonly id = "sass";
|
|
182
|
+
readonly name = "Sass/SCSS";
|
|
183
|
+
readonly version = "1.0.0";
|
|
184
|
+
readonly languages: readonly ["sass", "scss"];
|
|
185
|
+
getExtension(): Promise<Extension>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
declare class SQLLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
189
|
+
readonly id = "sql";
|
|
190
|
+
readonly name = "SQL";
|
|
191
|
+
readonly version = "1.0.0";
|
|
192
|
+
readonly languages: readonly ["sql"];
|
|
193
|
+
getExtension(): Promise<Extension>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
declare class XMLLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
197
|
+
readonly id = "xml";
|
|
198
|
+
readonly name = "XML";
|
|
199
|
+
readonly version = "1.0.0";
|
|
200
|
+
readonly languages: readonly ["xml"];
|
|
201
|
+
getExtension(): Promise<Extension>;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
declare class MarkdownLanguagePlugin implements AXCodeEditorLanguagePlugin {
|
|
205
|
+
readonly id = "markdown";
|
|
206
|
+
readonly name = "Markdown";
|
|
207
|
+
readonly version = "1.0.0";
|
|
208
|
+
readonly languages: readonly ["markdown"];
|
|
209
|
+
getExtension(): Promise<Extension>;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
type AXCodeEditorDefaultLanguage = 'javascript' | 'js' | 'typescript' | 'ts' | 'json' | 'html' | 'css' | 'scss' | 'sass' | 'sql' | 'xml' | 'markdown';
|
|
213
|
+
|
|
214
|
+
declare class OneDarkThemePlugin implements AXCodeEditorThemePlugin {
|
|
215
|
+
readonly id = "one-dark";
|
|
216
|
+
readonly name = "One Dark";
|
|
217
|
+
readonly version = "1.0.0";
|
|
218
|
+
readonly dark = true;
|
|
219
|
+
getExtension(): Promise<Extension>;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare class LightThemePlugin implements AXCodeEditorThemePlugin {
|
|
223
|
+
readonly id = "light";
|
|
224
|
+
readonly name = "Light";
|
|
225
|
+
readonly version = "1.0.0";
|
|
226
|
+
readonly dark = false;
|
|
227
|
+
getExtension(): Promise<Extension>;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare class GitHubLightThemePlugin implements AXCodeEditorThemePlugin {
|
|
231
|
+
readonly id = "github-light";
|
|
232
|
+
readonly name = "GitHub Light";
|
|
233
|
+
readonly version = "1.0.0";
|
|
234
|
+
readonly dark = false;
|
|
235
|
+
getExtension(): Promise<Extension>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare class GitHubDarkThemePlugin implements AXCodeEditorThemePlugin {
|
|
239
|
+
readonly id = "github-dark";
|
|
240
|
+
readonly name = "GitHub Dark";
|
|
241
|
+
readonly version = "1.0.0";
|
|
242
|
+
readonly dark = true;
|
|
243
|
+
getExtension(): Promise<Extension>;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
declare class PrettierFormatterPlugin implements AXCodeEditorFormatterPlugin {
|
|
247
|
+
readonly id = "prettier";
|
|
248
|
+
readonly name = "Prettier";
|
|
249
|
+
readonly version = "1.0.0";
|
|
250
|
+
readonly languages: readonly ["javascript", "js", "typescript", "ts", "json", "html", "css", "markdown"];
|
|
251
|
+
format(text: string, language: string): Promise<string | null>;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Default plugin configuration with all built-in plugins
|
|
256
|
+
*/
|
|
257
|
+
declare function provideDefaultCodeEditorPlugins(): AXCodeEditorPluginConfig;
|
|
258
|
+
|
|
8
259
|
type AXCodeEditorExtensionLike = _codemirror_state.Extension;
|
|
9
260
|
type AXCodeEditorCompletionLike = _codemirror_autocomplete.Completion;
|
|
10
261
|
type AXCodeEditorCompletionSourceLike = _codemirror_autocomplete.CompletionSource;
|
|
11
|
-
/**
|
|
12
|
-
* Supported syntax highlighting modes for the editor.
|
|
13
|
-
*/
|
|
14
|
-
type AXCodeEditorSupportedLanguage = 'javascript' | 'js' | 'typescript' | 'ts' | 'json' | 'html' | 'css' | 'scss' | 'sass' | 'sql' | 'xml' | 'markdown' | 'text';
|
|
15
262
|
declare class AXCodeEditorComponent extends MXValueComponent<string> {
|
|
16
|
-
/** Active language
|
|
17
|
-
language: _angular_core.InputSignal<
|
|
263
|
+
/** Active language identifier from default plugins. Default: 'javascript'. */
|
|
264
|
+
language: _angular_core.InputSignal<AXCodeEditorDefaultLanguage>;
|
|
18
265
|
/** When true, the editor becomes readonly (non-editable). */
|
|
19
266
|
readOnly: _angular_core.InputSignal<boolean>;
|
|
20
267
|
/** Placeholder text shown when the document is empty. */
|
|
@@ -33,6 +280,8 @@ declare class AXCodeEditorComponent extends MXValueComponent<string> {
|
|
|
33
280
|
minHeight: _angular_core.InputSignal<string>;
|
|
34
281
|
/** Maximum height for the editor. */
|
|
35
282
|
maxHeight: _angular_core.InputSignal<string>;
|
|
283
|
+
/** Theme identifier. If null, uses platform theme mode (dark/light). */
|
|
284
|
+
theme: _angular_core.InputSignal<string>;
|
|
36
285
|
/** Additional CodeMirror extensions to apply. Reconfigures at runtime. */
|
|
37
286
|
extensions: _angular_core.InputSignal<readonly _codemirror_state.Extension[]>;
|
|
38
287
|
/** ARIA label for accessibility. */
|
|
@@ -54,6 +303,7 @@ declare class AXCodeEditorComponent extends MXValueComponent<string> {
|
|
|
54
303
|
private platformId;
|
|
55
304
|
private destroyRef;
|
|
56
305
|
private platformService;
|
|
306
|
+
private pluginRegistry;
|
|
57
307
|
private editorViewSig;
|
|
58
308
|
private languageCompartment;
|
|
59
309
|
private readOnlyCompartment;
|
|
@@ -76,8 +326,6 @@ declare class AXCodeEditorComponent extends MXValueComponent<string> {
|
|
|
76
326
|
private loadCodeMirrorModules;
|
|
77
327
|
private createCompartments;
|
|
78
328
|
private buildKeymaps;
|
|
79
|
-
private tryFormatWithPrettier;
|
|
80
|
-
private resolveLanguageExtension;
|
|
81
329
|
private resolveThemeExtension;
|
|
82
330
|
private buildCustomCompletionSources;
|
|
83
331
|
/** Programmatically focus the editor. */
|
|
@@ -90,7 +338,7 @@ declare class AXCodeEditorComponent extends MXValueComponent<string> {
|
|
|
90
338
|
/** Returns the total number of lines in the current document. */
|
|
91
339
|
getTotalLines(): number;
|
|
92
340
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXCodeEditorComponent, never>;
|
|
93
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXCodeEditorComponent, "ax-code-editor", never, { "language": { "alias": "language"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "lineNumbers": { "alias": "lineNumbers"; "required": false; "isSignal": true; }; "lineWrapping": { "alias": "lineWrapping"; "required": false; "isSignal": true; }; "tabSize": { "alias": "tabSize"; "required": false; "isSignal": true; }; "indentWithTab": { "alias": "indentWithTab"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "focusOnReady": { "alias": "focusOnReady"; "required": false; "isSignal": true; }; "formatOnSave": { "alias": "formatOnSave"; "required": false; "isSignal": true; }; "customCompletions": { "alias": "customCompletions"; "required": false; "isSignal": true; }; }, { "ready": "ready"; "save": "save"; }, never, never, true, never>;
|
|
341
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXCodeEditorComponent, "ax-code-editor", never, { "language": { "alias": "language"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "lineNumbers": { "alias": "lineNumbers"; "required": false; "isSignal": true; }; "lineWrapping": { "alias": "lineWrapping"; "required": false; "isSignal": true; }; "tabSize": { "alias": "tabSize"; "required": false; "isSignal": true; }; "indentWithTab": { "alias": "indentWithTab"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "focusOnReady": { "alias": "focusOnReady"; "required": false; "isSignal": true; }; "formatOnSave": { "alias": "formatOnSave"; "required": false; "isSignal": true; }; "customCompletions": { "alias": "customCompletions"; "required": false; "isSignal": true; }; }, { "ready": "ready"; "save": "save"; }, never, never, true, never>;
|
|
94
342
|
}
|
|
95
343
|
|
|
96
344
|
declare class AXCodeEditorModule {
|
|
@@ -99,5 +347,5 @@ declare class AXCodeEditorModule {
|
|
|
99
347
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXCodeEditorModule>;
|
|
100
348
|
}
|
|
101
349
|
|
|
102
|
-
export { AXCodeEditorComponent, AXCodeEditorModule };
|
|
103
|
-
export type { AXCodeEditorCompletionLike, AXCodeEditorCompletionSourceLike, AXCodeEditorExtensionLike,
|
|
350
|
+
export { AXCodeEditorComponent, AXCodeEditorModule, AXCodeEditorPluginRegistry, AX_CODE_EDITOR_PLUGIN_CONFIG, CSSLanguagePlugin, GitHubDarkThemePlugin, GitHubLightThemePlugin, HTMLLanguagePlugin, JSONLanguagePlugin, JavaScriptLanguagePlugin, LightThemePlugin, MarkdownLanguagePlugin, OneDarkThemePlugin, PrettierFormatterPlugin, SQLLanguagePlugin, SassLanguagePlugin, TypeScriptLanguagePlugin, XMLLanguagePlugin, provideDefaultCodeEditorPlugins };
|
|
351
|
+
export type { AXCodeEditorCompletionLike, AXCodeEditorCompletionSourceLike, AXCodeEditorDefaultLanguage, AXCodeEditorExtensionLike, AXCodeEditorExtensionPlugin, AXCodeEditorFormatterPlugin, AXCodeEditorLanguagePlugin, AXCodeEditorPlugin, AXCodeEditorPluginConfig, AXCodeEditorThemePlugin };
|
package/command/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare class AXCommandComponent extends AXCommandComponent_base {
|
|
|
37
37
|
readonly onSearchBoxFocus: _angular_core.OutputEmitterRef<AXHtmlEvent<FocusEvent>>;
|
|
38
38
|
readonly onSearchBoxBlur: _angular_core.OutputEmitterRef<AXHtmlEvent<FocusEvent>>;
|
|
39
39
|
protected listNavigation: _angular_core.Signal<AXListNavigationDirective>;
|
|
40
|
+
private listNav;
|
|
40
41
|
protected displayItems: _angular_core.Signal<CommandItem[]>;
|
|
41
42
|
protected focusHandler(e: AXFocusEvent): void;
|
|
42
43
|
protected blurHandler(e: AXFocusEvent): void;
|