@acorex/components 21.0.1-next.12 → 21.0.1-next.13
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/action-sheet/index.d.ts +19 -41
- package/button-group/index.d.ts +6 -4
- package/chips/index.d.ts +3 -8
- package/collapse/index.d.ts +4 -6
- package/conversation2/README.md +31 -71
- package/conversation2/index.d.ts +35 -36
- package/data-table/index.d.ts +4 -253
- package/dialog/index.d.ts +15 -19
- package/dropdown/index.d.ts +4 -3
- package/fesm2022/acorex-components-accordion.mjs +8 -13
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +93 -141
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +6 -6
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +5 -4
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +3 -3
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +3 -3
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +2 -2
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +2 -2
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +15 -11
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +5 -5
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +4 -4
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +3 -3
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +6 -8
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +6 -4
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +13 -10
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +2 -2
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +2 -2
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +2 -2
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +8 -8
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +2 -2
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation2.mjs +155 -161
- package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-list.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +2 -2
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +16 -452
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +2 -2
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +2 -2
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +10 -12
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +20 -13
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +47 -67
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +6 -7
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +2 -2
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +13 -12
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-editor.mjs +4 -4
- package/fesm2022/acorex-components-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +17 -9
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +4 -5
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +18 -18
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +2 -2
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +2 -2
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-kanban.mjs +6 -4
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +25 -7
- package/fesm2022/acorex-components-kbd.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +2 -2
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +2 -2
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +36 -73
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +8 -8
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +2 -2
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +10 -10
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +6 -27
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs → acorex-components-modal-acorex-components-modal-BnUdtPke.mjs} +5 -29
- package/fesm2022/acorex-components-modal-acorex-components-modal-BnUdtPke.mjs.map +1 -0
- package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs → acorex-components-modal-modal-content.component-Cgq-wx_m.mjs} +7 -5
- package/fesm2022/acorex-components-modal-modal-content.component-Cgq-wx_m.mjs.map +1 -0
- package/fesm2022/acorex-components-modal.mjs +1 -1
- package/fesm2022/acorex-components-navbar.mjs +3 -3
- package/fesm2022/acorex-components-navbar.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +250 -378
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box-legacy.mjs +2 -2
- package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +2 -2
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +2 -2
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +14 -19
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +4 -4
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +2 -2
- package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +2 -2
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +6 -6
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +175 -136
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +106 -296
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +5 -3
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-qrcode.mjs +2 -2
- package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +2 -2
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +2 -2
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-rail-navigation.mjs +27 -25
- package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +3 -3
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +14 -29
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +2 -2
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-routing-progress.mjs +2 -2
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +2 -2
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +18 -18
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-scss.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +9 -3
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +4 -2
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list-2.mjs +4 -4
- package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +2 -2
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +63 -14
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +2 -2
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +5 -5
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-sliding-item.mjs +2 -2
- package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +2 -2
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +4 -4
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +2 -2
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +2 -2
- package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +3 -3
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +2 -2
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +2 -2
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +4 -4
- package/fesm2022/acorex-components-time-line.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +125 -233
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-toolbar.mjs +2 -2
- 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-legacy.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +6 -6
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +2 -2
- package/fesm2022/acorex-components-video-player.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +12 -12
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/grid-layout-builder/index.d.ts +1 -2
- package/kbd/index.d.ts +13 -7
- package/loading/index.d.ts +1 -1
- package/loading-dialog/index.d.ts +15 -31
- package/menu/index.d.ts +0 -4
- package/modal/index.d.ts +0 -7
- package/notification/index.d.ts +30 -47
- package/package.json +15 -15
- package/paint/index.d.ts +1 -6
- package/popover/index.d.ts +27 -20
- package/popup/index.d.ts +27 -98
- package/rate-picker/index.d.ts +5 -15
- package/side-menu/index.d.ts +9 -2
- package/slider/index.d.ts +2 -2
- package/toast/index.d.ts +18 -24
- package/tooltip/index.d.ts +2 -2
- package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map +0 -1
package/accordion/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ declare class AXAccordionGroupComponent {
|
|
|
10
10
|
activeIndex: _angular_core.ModelSignal<number | number[]>;
|
|
11
11
|
look: _angular_core.InputSignal<string>;
|
|
12
12
|
collapsedOnItemClick: _angular_core.InputSignal<boolean>;
|
|
13
|
-
private get __hostClass();
|
|
14
13
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXAccordionGroupComponent, never>;
|
|
15
14
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXAccordionGroupComponent, "ax-accordion-group", never, { "accordion": { "alias": "accordion"; "required": false; "isSignal": true; }; "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "collapsedOnItemClick": { "alias": "collapsedOnItemClick"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; }, ["content"], ["ax-accordion-item"], true, never>;
|
|
16
15
|
}
|
package/action-sheet/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AXStyleColorType,
|
|
2
|
-
import {
|
|
1
|
+
import { AXStyleColorType, MXBaseComponent } from '@acorex/cdk/common';
|
|
2
|
+
import { ComponentType, Portal, CdkPortalOutletAttachedRef } from '@angular/cdk/portal';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { TemplateRef,
|
|
4
|
+
import { TemplateRef, OnInit, OnDestroy } from '@angular/core';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
7
|
|
|
@@ -21,7 +21,7 @@ interface AXActionSheetItem {
|
|
|
21
21
|
title?: string;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
type AXActionSheetContentType = TemplateRef<unknown> |
|
|
24
|
+
type AXActionSheetContentType = TemplateRef<unknown> | ComponentType<unknown>;
|
|
25
25
|
interface AXActionSheetConfig {
|
|
26
26
|
title?: string;
|
|
27
27
|
subTitle?: string;
|
|
@@ -35,21 +35,13 @@ interface AXActionSheetConfig {
|
|
|
35
35
|
dragUp?: boolean;
|
|
36
36
|
}
|
|
37
37
|
interface AXActionSheetEvent {
|
|
38
|
-
|
|
38
|
+
dialogRef: any;
|
|
39
39
|
nativeEvent?: Event;
|
|
40
40
|
isUserInteraction: boolean;
|
|
41
41
|
data: {
|
|
42
42
|
state: 'open' | 'close' | 'dragStart' | 'dragEnd' | 'fullScreen' | 'normalSize';
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* Internal reference used by action sheet service to manage overlay instances
|
|
48
|
-
*/
|
|
49
|
-
interface AXActionSheetInternalRef {
|
|
50
|
-
overlayRef: AXOverlayRef<unknown>;
|
|
51
|
-
close: (result?: AXComponentCloseEvent) => void;
|
|
52
|
-
}
|
|
53
45
|
|
|
54
46
|
/**
|
|
55
47
|
* A component for displaying an action sheet, which is a menu that slides up from the bottom of the screen.
|
|
@@ -57,12 +49,8 @@ interface AXActionSheetInternalRef {
|
|
|
57
49
|
* @category Components
|
|
58
50
|
*/
|
|
59
51
|
declare class AXActionSheetComponent extends MXBaseComponent implements OnInit, OnDestroy {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/** @internal Callback function to close the action sheet */
|
|
63
|
-
onClose: i0.InputSignal<(result?: AXComponentCloseEvent) => void>;
|
|
64
|
-
/** @internal Overlay reference for event tracking */
|
|
65
|
-
overlayRef: i0.InputSignal<AXOverlayRef<unknown>>;
|
|
52
|
+
protected data: AXActionSheetConfig;
|
|
53
|
+
private dialogRef;
|
|
66
54
|
private document;
|
|
67
55
|
private platformID;
|
|
68
56
|
private renderer;
|
|
@@ -77,19 +65,14 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
|
77
65
|
private actionSheetHeight;
|
|
78
66
|
private isActionSheetHeightSet;
|
|
79
67
|
private transitionDuration;
|
|
68
|
+
/**
|
|
69
|
+
* @ignore
|
|
70
|
+
*/
|
|
71
|
+
protected _selectedPortal: Portal<any>;
|
|
80
72
|
/**
|
|
81
73
|
* @ignore
|
|
82
74
|
*/
|
|
83
75
|
private _componentRef;
|
|
84
|
-
/** Template content if data.content is a TemplateRef */
|
|
85
|
-
protected templateContent: i0.Signal<TemplateRef<unknown>>;
|
|
86
|
-
/** Component content if data.content is a component Type */
|
|
87
|
-
protected componentContent: i0.Signal<Type<unknown>>;
|
|
88
|
-
/** Template context for ngTemplateOutlet */
|
|
89
|
-
protected templateContext: i0.Signal<{
|
|
90
|
-
$implicit: AXActionSheetConfig;
|
|
91
|
-
ref: AXActionSheetComponent;
|
|
92
|
-
}>;
|
|
93
76
|
/**
|
|
94
77
|
* @ignore
|
|
95
78
|
*/
|
|
@@ -100,10 +83,7 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
|
100
83
|
private handleDown;
|
|
101
84
|
private snapToFinalPosition;
|
|
102
85
|
private heightCalculator;
|
|
103
|
-
|
|
104
|
-
* Handles component attachment from ngComponentOutlet
|
|
105
|
-
*/
|
|
106
|
-
protected handleComponentCreated(componentRef: ComponentRef<unknown>): void;
|
|
86
|
+
protected handleAttched(ref: CdkPortalOutletAttachedRef): void;
|
|
107
87
|
/**
|
|
108
88
|
* Handles click events on action sheet items.
|
|
109
89
|
* This method is called when a user clicks on an action sheet item. It closes the action sheet
|
|
@@ -124,13 +104,13 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
|
124
104
|
* This affects how the action sheet handles accessibility and event tracking.
|
|
125
105
|
* @returns void
|
|
126
106
|
*/
|
|
127
|
-
close(e?:
|
|
107
|
+
close(e?: any, isUserInteraction?: boolean): void;
|
|
128
108
|
/**
|
|
129
109
|
* @ignore
|
|
130
110
|
*/
|
|
131
111
|
protected onKeydownHandler(): void;
|
|
132
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXActionSheetComponent, never>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, {
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, {}, {}, never, never, true, never>;
|
|
134
114
|
}
|
|
135
115
|
|
|
136
116
|
declare class AXActionSheetModule {
|
|
@@ -140,13 +120,11 @@ declare class AXActionSheetModule {
|
|
|
140
120
|
}
|
|
141
121
|
|
|
142
122
|
interface AXActionSheetDialogRef {
|
|
143
|
-
close: (e?:
|
|
144
|
-
closed: Subject<
|
|
145
|
-
data?: unknown;
|
|
146
|
-
}>;
|
|
123
|
+
close: (e?: any) => void;
|
|
124
|
+
closed: Subject<any>;
|
|
147
125
|
}
|
|
148
126
|
declare class AXActionSheetService {
|
|
149
|
-
private
|
|
127
|
+
private dialog;
|
|
150
128
|
private readonly actionSheetEvent;
|
|
151
129
|
actionSheetEvent$: rxjs.Observable<AXActionSheetEvent>;
|
|
152
130
|
/**
|
|
@@ -184,7 +162,7 @@ declare class AXActionSheetService {
|
|
|
184
162
|
* observable for external subscribers to monitor action sheet state changes.
|
|
185
163
|
*
|
|
186
164
|
* @param event - The action sheet event to emit. Contains information about the event type,
|
|
187
|
-
* associated data, user interaction status, and
|
|
165
|
+
* associated data, user interaction status, and dialog reference.
|
|
188
166
|
* @returns void
|
|
189
167
|
*/
|
|
190
168
|
setActionSheetEventState(event: AXActionSheetEvent): void;
|
|
@@ -193,4 +171,4 @@ declare class AXActionSheetService {
|
|
|
193
171
|
}
|
|
194
172
|
|
|
195
173
|
export { AXActionSheetComponent, AXActionSheetModule, AXActionSheetService };
|
|
196
|
-
export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent,
|
|
174
|
+
export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent, AXActionSheetItem };
|
package/button-group/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as polytype from 'polytype';
|
|
2
|
-
import { MXInteractiveComponent, MXColorLookComponent, AXClickEvent, AXSelectionMode, AXStyleColorType, MXColorComponent } from '@acorex/cdk/common';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import * as polytype from 'polytype';
|
|
4
|
+
import { MXInteractiveComponent, MXColorLookComponent, AXClickEvent, AXSelectionMode, AXStyleColorType, MXColorComponent } from '@acorex/cdk/common';
|
|
5
5
|
|
|
6
6
|
declare const AXButtonGroupComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXColorLookComponent]>;
|
|
7
7
|
/**
|
|
@@ -12,6 +12,7 @@ declare const AXButtonGroupComponent_base: polytype.Polytype.ClusteredConstructo
|
|
|
12
12
|
declare class AXButtonGroupComponent extends AXButtonGroupComponent_base {
|
|
13
13
|
#private;
|
|
14
14
|
readonly fitParent: i0.InputSignal<boolean>;
|
|
15
|
+
readonly customClass: i0.InputSignal<string>;
|
|
15
16
|
/**
|
|
16
17
|
* Fires when any button in the group is clicked.
|
|
17
18
|
*
|
|
@@ -82,7 +83,7 @@ declare class AXButtonGroupComponent extends AXButtonGroupComponent_base {
|
|
|
82
83
|
*/
|
|
83
84
|
private __hostClick;
|
|
84
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupComponent, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupComponent, "ax-button-group", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "fitParent": { "alias": "fitParent"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "lookChange": "lookChange"; "colorChange": "colorChange"; "disabledChange": "disabledChange"; "onClick": "onClick"; "selectionChange": "selectionChange"; "selectedButtonChange": "selectedButtonChange"; }, ["_contentButtons"], ["ax-button-group-item"], true, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupComponent, "ax-button-group", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "fitParent": { "alias": "fitParent"; "required": false; "isSignal": true; }; "customClass": { "alias": "class"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "lookChange": "lookChange"; "colorChange": "colorChange"; "disabledChange": "disabledChange"; "onClick": "onClick"; "selectionChange": "selectionChange"; "selectedButtonChange": "selectedButtonChange"; }, ["_contentButtons"], ["ax-button-group-item"], true, never>;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
interface AXButtonItemListItem {
|
|
@@ -109,6 +110,7 @@ declare class AXButtonGroupItemComponent extends AXButtonGroupItemComponent_base
|
|
|
109
110
|
* @ignore
|
|
110
111
|
*/
|
|
111
112
|
private _selected;
|
|
113
|
+
readonly customClass: i0.ModelSignal<string>;
|
|
112
114
|
/**
|
|
113
115
|
* Indicates whether the button item is selected.
|
|
114
116
|
*
|
|
@@ -157,7 +159,7 @@ declare class AXButtonGroupItemComponent extends AXButtonGroupItemComponent_base
|
|
|
157
159
|
*/
|
|
158
160
|
tabindex: string;
|
|
159
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupItemComponent, never>;
|
|
160
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupItemComponent, "ax-button-group-item", never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "divided": { "alias": "divided"; "required": false; }; "data": { "alias": "data"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "disabledChange": "disabledChange"; }, never, ["*"], true, never>;
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupItemComponent, "ax-button-group-item", never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "customClass": { "alias": "class"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; }; "divided": { "alias": "divided"; "required": false; }; "data": { "alias": "data"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "disabledChange": "disabledChange"; "customClass": "classChange"; }, never, ["*"], true, never>;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
declare class AXButtonGroupModule {
|
package/chips/index.d.ts
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@acorex/cdk/common';
|
|
3
|
-
import {
|
|
3
|
+
import { MXColorLookComponent } from '@acorex/cdk/common';
|
|
4
4
|
|
|
5
|
-
type AXChipsLookType = Extract<AXStyleLookType, 'solid' | 'outline' | 'twotone'>;
|
|
6
|
-
type AXChipsSizeType = Exclude<AXStyleSizeType, 'ax-xs' | 'ax-xl'>;
|
|
7
5
|
/**
|
|
8
6
|
* A component for displaying and managing a set of chips.
|
|
9
7
|
*
|
|
10
8
|
* @category Components
|
|
11
9
|
*/
|
|
12
|
-
declare class AXChipsComponent extends
|
|
10
|
+
declare class AXChipsComponent extends MXColorLookComponent {
|
|
13
11
|
/**
|
|
14
12
|
* The text displayed on the chips.
|
|
15
13
|
*
|
|
16
14
|
* @defaultValue ''
|
|
17
15
|
*/
|
|
18
16
|
text: i0.ModelSignal<string>;
|
|
19
|
-
look: i0.ModelSignal<AXChipsLookType>;
|
|
20
|
-
size: i0.ModelSignal<AXChipsSizeType>;
|
|
21
17
|
/**
|
|
22
18
|
* @ignore
|
|
23
19
|
*/
|
|
24
20
|
private get __hostClass();
|
|
25
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXChipsComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXChipsComponent, "ax-chips", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXChipsComponent, "ax-chips", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "text": "textChange"; }, never, ["ax-prefix", "ax-suffix"], true, [{ directive: typeof i1.AXRippleDirective; inputs: {}; outputs: {}; }]>;
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
declare class AXChipsModule {
|
|
@@ -33,4 +29,3 @@ declare class AXChipsModule {
|
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
export { AXChipsComponent, AXChipsModule };
|
|
36
|
-
export type { AXChipsLookType, AXChipsSizeType };
|
package/collapse/index.d.ts
CHANGED
|
@@ -5,9 +5,8 @@ import { AfterViewInit, OnDestroy, EventEmitter, TemplateRef } from '@angular/co
|
|
|
5
5
|
|
|
6
6
|
declare const AXCollapseGroupComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXBaseComponent, typeof MXLookComponent]>;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @category Components
|
|
8
|
+
* @deprecated Use `accordion` instead.
|
|
9
|
+
* This component deprecated and no longer support.
|
|
11
10
|
*/
|
|
12
11
|
declare class AXCollapseGroupComponent extends AXCollapseGroupComponent_base implements AfterViewInit, OnDestroy {
|
|
13
12
|
/**
|
|
@@ -73,9 +72,8 @@ declare class AXCollapseClickEvent extends AXClickEvent {
|
|
|
73
72
|
}
|
|
74
73
|
declare const AXCollapseComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXLookComponent]>;
|
|
75
74
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @category Components
|
|
75
|
+
* @deprecated Use `accordion` instead.
|
|
76
|
+
* This component deprecated and no longer support.
|
|
79
77
|
*/
|
|
80
78
|
declare class AXCollapseComponent extends AXCollapseComponent_base {
|
|
81
79
|
private parent;
|
package/conversation2/README.md
CHANGED
|
@@ -78,32 +78,22 @@ This package requires the following peer dependencies:
|
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
80
|
import { ApplicationConfig } from '@angular/core';
|
|
81
|
-
import {
|
|
82
|
-
provideConversation,
|
|
83
|
-
AXIndexedDBUserApi,
|
|
84
|
-
AXIndexedDBConversationApi,
|
|
85
|
-
AXIndexedDBMessageApi,
|
|
86
|
-
AXIndexedDBRealtimeApi,
|
|
87
|
-
} from '@acorex/components/conversation2';
|
|
81
|
+
import { provideConversation, AXIndexedDBApi } from '@acorex/components/conversation2';
|
|
88
82
|
|
|
89
83
|
export const appConfig: ApplicationConfig = {
|
|
90
84
|
providers: [
|
|
91
85
|
provideConversation({
|
|
92
|
-
|
|
93
|
-
conversationApi: AXIndexedDBConversationApi,
|
|
94
|
-
messageApi: AXIndexedDBMessageApi,
|
|
95
|
-
realtimeApi: AXIndexedDBRealtimeApi, // optional
|
|
86
|
+
api: AXIndexedDBApi, // or your custom API implementation
|
|
96
87
|
config: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
maxFileSize: 10 * 1024 * 1024,
|
|
88
|
+
pageSize: 20,
|
|
89
|
+
maxFileSize: 10 * 1024 * 1024, // 10MB
|
|
100
90
|
allowedFileTypes: ['image/*', 'video/*', 'audio/*', 'application/pdf'],
|
|
101
91
|
},
|
|
102
92
|
registry: {
|
|
103
93
|
// Optional: Register custom message renderers, actions, etc.
|
|
104
|
-
}
|
|
105
|
-
})
|
|
106
|
-
]
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
]
|
|
107
97
|
};
|
|
108
98
|
```
|
|
109
99
|
|
|
@@ -111,26 +101,17 @@ export const appConfig: ApplicationConfig = {
|
|
|
111
101
|
|
|
112
102
|
```typescript
|
|
113
103
|
import { NgModule } from '@angular/core';
|
|
114
|
-
import {
|
|
115
|
-
AXConversation2Module,
|
|
116
|
-
AXIndexedDBUserApi,
|
|
117
|
-
AXIndexedDBConversationApi,
|
|
118
|
-
AXIndexedDBMessageApi,
|
|
119
|
-
AXIndexedDBRealtimeApi,
|
|
120
|
-
} from '@acorex/components/conversation2';
|
|
104
|
+
import { AXConversation2Module, AXIndexedDBApi } from '@acorex/components/conversation2';
|
|
121
105
|
|
|
122
106
|
@NgModule({
|
|
123
107
|
imports: [
|
|
124
108
|
AXConversation2Module.forRoot({
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
config: { /* ... */ },
|
|
130
|
-
}),
|
|
131
|
-
],
|
|
109
|
+
api: AXIndexedDBApi,
|
|
110
|
+
config: { /* ... */ }
|
|
111
|
+
})
|
|
112
|
+
]
|
|
132
113
|
})
|
|
133
|
-
export class AppModule {}
|
|
114
|
+
export class AppModule { }
|
|
134
115
|
```
|
|
135
116
|
|
|
136
117
|
### 3. Use in Template
|
|
@@ -174,42 +155,20 @@ export class MyConversationApi extends AXConversationApi {
|
|
|
174
155
|
#### IndexedDB API (Development/Demo)
|
|
175
156
|
|
|
176
157
|
```typescript
|
|
177
|
-
import {
|
|
178
|
-
provideConversation,
|
|
179
|
-
AXIndexedDBUserApi,
|
|
180
|
-
AXIndexedDBConversationApi,
|
|
181
|
-
AXIndexedDBMessageApi,
|
|
182
|
-
AXIndexedDBRealtimeApi,
|
|
183
|
-
} from '@acorex/components/conversation2';
|
|
158
|
+
import { AXIndexedDBApi } from '@acorex/components/conversation2';
|
|
184
159
|
|
|
185
160
|
// Provides in-memory storage with sample data
|
|
186
161
|
// Perfect for development and demos
|
|
187
|
-
provideConversation({
|
|
188
|
-
userApi: AXIndexedDBUserApi,
|
|
189
|
-
conversationApi: AXIndexedDBConversationApi,
|
|
190
|
-
messageApi: AXIndexedDBMessageApi,
|
|
191
|
-
realtimeApi: AXIndexedDBRealtimeApi,
|
|
192
|
-
});
|
|
162
|
+
provideConversation({ api: AXIndexedDBApi })
|
|
193
163
|
```
|
|
194
164
|
|
|
195
165
|
#### IndexedDB with AI API (AI-Powered Demo)
|
|
196
166
|
|
|
197
167
|
```typescript
|
|
198
|
-
import {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
AXIndexedDBMessageAIApi,
|
|
203
|
-
AXIndexedDBRealtimeApi,
|
|
204
|
-
} from '@acorex/components/conversation2';
|
|
205
|
-
|
|
206
|
-
// Includes AI-powered auto-responses via message API
|
|
207
|
-
provideConversation({
|
|
208
|
-
userApi: AXIndexedDBUserApi,
|
|
209
|
-
conversationApi: AXIndexedDBConversationApi,
|
|
210
|
-
messageApi: AXIndexedDBMessageAIApi,
|
|
211
|
-
realtimeApi: AXIndexedDBRealtimeApi,
|
|
212
|
-
});
|
|
168
|
+
import { AXIndexedDBAIApi } from '@acorex/components/conversation2';
|
|
169
|
+
|
|
170
|
+
// Includes AI-powered auto-responses
|
|
171
|
+
provideConversation({ api: AXIndexedDBAIApi })
|
|
213
172
|
```
|
|
214
173
|
|
|
215
174
|
## ⚙️ Configuration
|
|
@@ -219,18 +178,23 @@ provideConversation({
|
|
|
219
178
|
```typescript
|
|
220
179
|
interface AXConversationConfig {
|
|
221
180
|
// Pagination
|
|
222
|
-
|
|
223
|
-
conversationPageSize?: number; // Default: 30
|
|
181
|
+
pageSize?: number; // Default: 20
|
|
224
182
|
infiniteScrollThreshold?: number; // Default: 200px
|
|
225
183
|
scrollThreshold?: number; // Default: 100px
|
|
226
184
|
|
|
227
185
|
// File Upload
|
|
228
186
|
maxFileSize?: number; // Default: 10MB
|
|
229
|
-
allowedFileTypes?: string[]; // Default:
|
|
187
|
+
allowedFileTypes?: string[]; // Default: all types
|
|
230
188
|
|
|
231
189
|
// UI Behavior
|
|
232
190
|
messageHighlightDuration?: number; // Default: 2000ms
|
|
233
191
|
typingIndicatorTimeout?: number; // Default: 3000ms
|
|
192
|
+
|
|
193
|
+
// Features
|
|
194
|
+
enableReactions?: boolean; // Default: true
|
|
195
|
+
enableReplies?: boolean; // Default: true
|
|
196
|
+
enableEditing?: boolean; // Default: true
|
|
197
|
+
enableDeletion?: boolean; // Default: true
|
|
234
198
|
}
|
|
235
199
|
```
|
|
236
200
|
|
|
@@ -363,18 +327,14 @@ export class MyComponent {
|
|
|
363
327
|
```typescript
|
|
364
328
|
import { TestBed } from '@angular/core/testing';
|
|
365
329
|
import { provideConversation, AXConversationService } from '@acorex/components/conversation2';
|
|
366
|
-
import {
|
|
330
|
+
import { MockConversationApi } from './mocks/mock-api';
|
|
367
331
|
|
|
368
332
|
describe('MyComponent', () => {
|
|
369
333
|
beforeEach(() => {
|
|
370
334
|
TestBed.configureTestingModule({
|
|
371
335
|
providers: [
|
|
372
|
-
provideConversation({
|
|
373
|
-
|
|
374
|
-
conversationApi: MockConversationApi,
|
|
375
|
-
messageApi: MockMessageApi,
|
|
376
|
-
}),
|
|
377
|
-
],
|
|
336
|
+
provideConversation({ api: MockConversationApi })
|
|
337
|
+
]
|
|
378
338
|
});
|
|
379
339
|
});
|
|
380
340
|
|
|
@@ -383,7 +343,7 @@ describe('MyComponent', () => {
|
|
|
383
343
|
const message = await service.sendMessage({
|
|
384
344
|
conversationId: 'test',
|
|
385
345
|
type: 'text',
|
|
386
|
-
payload: { text: 'Test' }
|
|
346
|
+
payload: { text: 'Test' }
|
|
387
347
|
});
|
|
388
348
|
expect(message).toBeDefined();
|
|
389
349
|
});
|