@acorex/components 21.0.1-next.0 → 21.0.1-next.10
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 +1 -0
- package/action-sheet/index.d.ts +41 -19
- package/button-group/index.d.ts +4 -6
- package/chips/index.d.ts +8 -3
- package/collapse/index.d.ts +6 -4
- package/conversation2/README.md +71 -31
- package/conversation2/index.d.ts +36 -35
- package/data-table/index.d.ts +253 -4
- package/datetime-picker/index.d.ts +1 -1
- package/dialog/index.d.ts +19 -15
- package/dropdown/index.d.ts +3 -4
- package/fesm2022/acorex-components-accordion.mjs +13 -8
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +141 -93
- 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 +4 -5
- 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 +11 -15
- 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 +8 -6
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +4 -6
- 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 +10 -13
- 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 +161 -155
- 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 +452 -16
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +3 -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 +35 -27
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +13 -20
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +67 -47
- 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 +7 -6
- 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 +9 -11
- 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 +9 -17
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +5 -4
- 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 +151 -13
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +7 -25
- 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 +73 -36
- 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 +27 -6
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-BnUdtPke.mjs → acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs} +29 -5
- package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +1 -0
- package/fesm2022/{acorex-components-modal-modal-content.component-Cgq-wx_m.mjs → acorex-components-modal-modal-content.component-CSJU1vRi.mjs} +5 -7
- package/fesm2022/acorex-components-modal-modal-content.component-CSJU1vRi.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 +374 -246
- 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 +6 -7
- 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 +19 -14
- 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 +22 -27
- 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 +136 -175
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +308 -105
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +3 -5
- 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 +25 -27
- 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 +29 -14
- 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 +1195 -136
- 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 +3 -9
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +2 -4
- 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 +14 -63
- 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 +233 -125
- 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 +2 -1
- package/kanban/index.d.ts +61 -4
- package/kbd/index.d.ts +7 -13
- package/loading/index.d.ts +1 -1
- package/loading-dialog/index.d.ts +31 -15
- package/menu/index.d.ts +4 -0
- package/modal/index.d.ts +7 -0
- package/notification/index.d.ts +47 -28
- package/number-box/index.d.ts +1 -1
- package/package.json +3 -3
- package/paint/index.d.ts +6 -1
- package/phone-box/index.d.ts +1 -6
- package/popover/index.d.ts +20 -27
- package/popup/index.d.ts +103 -27
- package/rate-picker/index.d.ts +15 -5
- package/scheduler/index.d.ts +281 -27
- package/side-menu/index.d.ts +2 -9
- package/slider/index.d.ts +2 -2
- package/toast/index.d.ts +24 -18
- package/tooltip/index.d.ts +2 -2
- package/fesm2022/acorex-components-modal-acorex-components-modal-BnUdtPke.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-modal-content.component-Cgq-wx_m.mjs.map +0 -1
package/accordion/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ 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();
|
|
13
14
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXAccordionGroupComponent, never>;
|
|
14
15
|
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>;
|
|
15
16
|
}
|
package/action-sheet/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AXStyleColorType, MXBaseComponent } from '@acorex/cdk/common';
|
|
2
|
-
import {
|
|
1
|
+
import { AXStyleColorType, AXComponentCloseEvent, MXBaseComponent } from '@acorex/cdk/common';
|
|
2
|
+
import { AXOverlayRef } from '@acorex/cdk/overlay';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { TemplateRef, OnInit, OnDestroy } from '@angular/core';
|
|
4
|
+
import { TemplateRef, Type, OnInit, OnDestroy, ComponentRef } 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> | Type<unknown>;
|
|
25
25
|
interface AXActionSheetConfig {
|
|
26
26
|
title?: string;
|
|
27
27
|
subTitle?: string;
|
|
@@ -35,13 +35,21 @@ interface AXActionSheetConfig {
|
|
|
35
35
|
dragUp?: boolean;
|
|
36
36
|
}
|
|
37
37
|
interface AXActionSheetEvent {
|
|
38
|
-
|
|
38
|
+
overlayRef?: AXOverlayRef<unknown>;
|
|
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
|
+
}
|
|
45
53
|
|
|
46
54
|
/**
|
|
47
55
|
* A component for displaying an action sheet, which is a menu that slides up from the bottom of the screen.
|
|
@@ -49,8 +57,12 @@ interface AXActionSheetEvent {
|
|
|
49
57
|
* @category Components
|
|
50
58
|
*/
|
|
51
59
|
declare class AXActionSheetComponent extends MXBaseComponent implements OnInit, OnDestroy {
|
|
52
|
-
|
|
53
|
-
|
|
60
|
+
/** Action sheet configuration data */
|
|
61
|
+
data: i0.InputSignal<AXActionSheetConfig>;
|
|
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>>;
|
|
54
66
|
private document;
|
|
55
67
|
private platformID;
|
|
56
68
|
private renderer;
|
|
@@ -65,14 +77,19 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
|
65
77
|
private actionSheetHeight;
|
|
66
78
|
private isActionSheetHeightSet;
|
|
67
79
|
private transitionDuration;
|
|
68
|
-
/**
|
|
69
|
-
* @ignore
|
|
70
|
-
*/
|
|
71
|
-
protected _selectedPortal: Portal<any>;
|
|
72
80
|
/**
|
|
73
81
|
* @ignore
|
|
74
82
|
*/
|
|
75
83
|
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
|
+
}>;
|
|
76
93
|
/**
|
|
77
94
|
* @ignore
|
|
78
95
|
*/
|
|
@@ -83,7 +100,10 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
|
83
100
|
private handleDown;
|
|
84
101
|
private snapToFinalPosition;
|
|
85
102
|
private heightCalculator;
|
|
86
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Handles component attachment from ngComponentOutlet
|
|
105
|
+
*/
|
|
106
|
+
protected handleComponentCreated(componentRef: ComponentRef<unknown>): void;
|
|
87
107
|
/**
|
|
88
108
|
* Handles click events on action sheet items.
|
|
89
109
|
* This method is called when a user clicks on an action sheet item. It closes the action sheet
|
|
@@ -104,13 +124,13 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
|
|
|
104
124
|
* This affects how the action sheet handles accessibility and event tracking.
|
|
105
125
|
* @returns void
|
|
106
126
|
*/
|
|
107
|
-
close(e?:
|
|
127
|
+
close(e?: unknown, isUserInteraction?: boolean): void;
|
|
108
128
|
/**
|
|
109
129
|
* @ignore
|
|
110
130
|
*/
|
|
111
131
|
protected onKeydownHandler(): void;
|
|
112
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXActionSheetComponent, never>;
|
|
113
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, {}, {}, never, never, true, never>;
|
|
133
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "onClose": { "alias": "onClose"; "required": false; "isSignal": true; }; "overlayRef": { "alias": "overlayRef"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
114
134
|
}
|
|
115
135
|
|
|
116
136
|
declare class AXActionSheetModule {
|
|
@@ -120,11 +140,13 @@ declare class AXActionSheetModule {
|
|
|
120
140
|
}
|
|
121
141
|
|
|
122
142
|
interface AXActionSheetDialogRef {
|
|
123
|
-
close: (e?:
|
|
124
|
-
closed: Subject<
|
|
143
|
+
close: (e?: unknown) => void;
|
|
144
|
+
closed: Subject<{
|
|
145
|
+
data?: unknown;
|
|
146
|
+
}>;
|
|
125
147
|
}
|
|
126
148
|
declare class AXActionSheetService {
|
|
127
|
-
private
|
|
149
|
+
private overlayService;
|
|
128
150
|
private readonly actionSheetEvent;
|
|
129
151
|
actionSheetEvent$: rxjs.Observable<AXActionSheetEvent>;
|
|
130
152
|
/**
|
|
@@ -162,7 +184,7 @@ declare class AXActionSheetService {
|
|
|
162
184
|
* observable for external subscribers to monitor action sheet state changes.
|
|
163
185
|
*
|
|
164
186
|
* @param event - The action sheet event to emit. Contains information about the event type,
|
|
165
|
-
* associated data, user interaction status, and
|
|
187
|
+
* associated data, user interaction status, and overlay reference.
|
|
166
188
|
* @returns void
|
|
167
189
|
*/
|
|
168
190
|
setActionSheetEventState(event: AXActionSheetEvent): void;
|
|
@@ -171,4 +193,4 @@ declare class AXActionSheetService {
|
|
|
171
193
|
}
|
|
172
194
|
|
|
173
195
|
export { AXActionSheetComponent, AXActionSheetModule, AXActionSheetService };
|
|
174
|
-
export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent, AXActionSheetItem };
|
|
196
|
+
export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent, AXActionSheetInternalRef, AXActionSheetItem };
|
package/button-group/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
3
1
|
import * as polytype from 'polytype';
|
|
4
2
|
import { MXInteractiveComponent, MXColorLookComponent, AXClickEvent, AXSelectionMode, AXStyleColorType, MXColorComponent } from '@acorex/cdk/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { EventEmitter } from '@angular/core';
|
|
5
5
|
|
|
6
6
|
declare const AXButtonGroupComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXColorLookComponent]>;
|
|
7
7
|
/**
|
|
@@ -12,7 +12,6 @@ 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>;
|
|
16
15
|
/**
|
|
17
16
|
* Fires when any button in the group is clicked.
|
|
18
17
|
*
|
|
@@ -83,7 +82,7 @@ declare class AXButtonGroupComponent extends AXButtonGroupComponent_base {
|
|
|
83
82
|
*/
|
|
84
83
|
private __hostClick;
|
|
85
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupComponent, 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; }; "
|
|
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>;
|
|
87
86
|
}
|
|
88
87
|
|
|
89
88
|
interface AXButtonItemListItem {
|
|
@@ -110,7 +109,6 @@ declare class AXButtonGroupItemComponent extends AXButtonGroupItemComponent_base
|
|
|
110
109
|
* @ignore
|
|
111
110
|
*/
|
|
112
111
|
private _selected;
|
|
113
|
-
readonly customClass: i0.ModelSignal<string>;
|
|
114
112
|
/**
|
|
115
113
|
* Indicates whether the button item is selected.
|
|
116
114
|
*
|
|
@@ -159,7 +157,7 @@ declare class AXButtonGroupItemComponent extends AXButtonGroupItemComponent_base
|
|
|
159
157
|
*/
|
|
160
158
|
tabindex: string;
|
|
161
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupItemComponent, 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; }; "
|
|
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>;
|
|
163
161
|
}
|
|
164
162
|
|
|
165
163
|
declare class AXButtonGroupModule {
|
package/chips/index.d.ts
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@acorex/cdk/common';
|
|
3
|
-
import {
|
|
3
|
+
import { AXStyleLookType, AXStyleSizeType, MXColorComponent } from '@acorex/cdk/common';
|
|
4
4
|
|
|
5
|
+
type AXChipsLookType = Extract<AXStyleLookType, 'solid' | 'outline' | 'twotone'>;
|
|
6
|
+
type AXChipsSizeType = Exclude<AXStyleSizeType, 'ax-xs' | 'ax-xl'>;
|
|
5
7
|
/**
|
|
6
8
|
* A component for displaying and managing a set of chips.
|
|
7
9
|
*
|
|
8
10
|
* @category Components
|
|
9
11
|
*/
|
|
10
|
-
declare class AXChipsComponent extends
|
|
12
|
+
declare class AXChipsComponent extends MXColorComponent {
|
|
11
13
|
/**
|
|
12
14
|
* The text displayed on the chips.
|
|
13
15
|
*
|
|
14
16
|
* @defaultValue ''
|
|
15
17
|
*/
|
|
16
18
|
text: i0.ModelSignal<string>;
|
|
19
|
+
look: i0.ModelSignal<AXChipsLookType>;
|
|
20
|
+
size: i0.ModelSignal<AXChipsSizeType>;
|
|
17
21
|
/**
|
|
18
22
|
* @ignore
|
|
19
23
|
*/
|
|
20
24
|
private get __hostClass();
|
|
21
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXChipsComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXChipsComponent, "ax-chips", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXChipsComponent, "ax-chips", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "text": "textChange"; "look": "lookChange"; "size": "sizeChange"; }, never, ["ax-prefix", "ax-suffix"], true, [{ directive: typeof i1.AXRippleDirective; inputs: {}; outputs: {}; }]>;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
declare class AXChipsModule {
|
|
@@ -29,3 +33,4 @@ declare class AXChipsModule {
|
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
export { AXChipsComponent, AXChipsModule };
|
|
36
|
+
export type { AXChipsLookType, AXChipsSizeType };
|
package/collapse/index.d.ts
CHANGED
|
@@ -5,8 +5,9 @@ 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
|
-
*
|
|
8
|
+
* Container for collapsible items with configurable styling.
|
|
9
|
+
*
|
|
10
|
+
* @category Components
|
|
10
11
|
*/
|
|
11
12
|
declare class AXCollapseGroupComponent extends AXCollapseGroupComponent_base implements AfterViewInit, OnDestroy {
|
|
12
13
|
/**
|
|
@@ -72,8 +73,9 @@ declare class AXCollapseClickEvent extends AXClickEvent {
|
|
|
72
73
|
}
|
|
73
74
|
declare const AXCollapseComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXLookComponent]>;
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
76
|
+
* A component that provides a collapsible section with animated transitions.
|
|
77
|
+
*
|
|
78
|
+
* @category Components
|
|
77
79
|
*/
|
|
78
80
|
declare class AXCollapseComponent extends AXCollapseComponent_base {
|
|
79
81
|
private parent;
|
package/conversation2/README.md
CHANGED
|
@@ -78,22 +78,32 @@ This package requires the following peer dependencies:
|
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
80
|
import { ApplicationConfig } from '@angular/core';
|
|
81
|
-
import {
|
|
81
|
+
import {
|
|
82
|
+
provideConversation,
|
|
83
|
+
AXIndexedDBUserApi,
|
|
84
|
+
AXIndexedDBConversationApi,
|
|
85
|
+
AXIndexedDBMessageApi,
|
|
86
|
+
AXIndexedDBRealtimeApi,
|
|
87
|
+
} from '@acorex/components/conversation2';
|
|
82
88
|
|
|
83
89
|
export const appConfig: ApplicationConfig = {
|
|
84
90
|
providers: [
|
|
85
91
|
provideConversation({
|
|
86
|
-
|
|
92
|
+
userApi: AXIndexedDBUserApi,
|
|
93
|
+
conversationApi: AXIndexedDBConversationApi,
|
|
94
|
+
messageApi: AXIndexedDBMessageApi,
|
|
95
|
+
realtimeApi: AXIndexedDBRealtimeApi, // optional
|
|
87
96
|
config: {
|
|
88
|
-
|
|
89
|
-
|
|
97
|
+
messagePageSize: 50,
|
|
98
|
+
conversationPageSize: 30,
|
|
99
|
+
maxFileSize: 10 * 1024 * 1024,
|
|
90
100
|
allowedFileTypes: ['image/*', 'video/*', 'audio/*', 'application/pdf'],
|
|
91
101
|
},
|
|
92
102
|
registry: {
|
|
93
103
|
// Optional: Register custom message renderers, actions, etc.
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
]
|
|
104
|
+
},
|
|
105
|
+
}),
|
|
106
|
+
],
|
|
97
107
|
};
|
|
98
108
|
```
|
|
99
109
|
|
|
@@ -101,17 +111,26 @@ export const appConfig: ApplicationConfig = {
|
|
|
101
111
|
|
|
102
112
|
```typescript
|
|
103
113
|
import { NgModule } from '@angular/core';
|
|
104
|
-
import {
|
|
114
|
+
import {
|
|
115
|
+
AXConversation2Module,
|
|
116
|
+
AXIndexedDBUserApi,
|
|
117
|
+
AXIndexedDBConversationApi,
|
|
118
|
+
AXIndexedDBMessageApi,
|
|
119
|
+
AXIndexedDBRealtimeApi,
|
|
120
|
+
} from '@acorex/components/conversation2';
|
|
105
121
|
|
|
106
122
|
@NgModule({
|
|
107
123
|
imports: [
|
|
108
124
|
AXConversation2Module.forRoot({
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
125
|
+
userApi: AXIndexedDBUserApi,
|
|
126
|
+
conversationApi: AXIndexedDBConversationApi,
|
|
127
|
+
messageApi: AXIndexedDBMessageApi,
|
|
128
|
+
realtimeApi: AXIndexedDBRealtimeApi,
|
|
129
|
+
config: { /* ... */ },
|
|
130
|
+
}),
|
|
131
|
+
],
|
|
113
132
|
})
|
|
114
|
-
export class AppModule {
|
|
133
|
+
export class AppModule {}
|
|
115
134
|
```
|
|
116
135
|
|
|
117
136
|
### 3. Use in Template
|
|
@@ -155,20 +174,42 @@ export class MyConversationApi extends AXConversationApi {
|
|
|
155
174
|
#### IndexedDB API (Development/Demo)
|
|
156
175
|
|
|
157
176
|
```typescript
|
|
158
|
-
import {
|
|
177
|
+
import {
|
|
178
|
+
provideConversation,
|
|
179
|
+
AXIndexedDBUserApi,
|
|
180
|
+
AXIndexedDBConversationApi,
|
|
181
|
+
AXIndexedDBMessageApi,
|
|
182
|
+
AXIndexedDBRealtimeApi,
|
|
183
|
+
} from '@acorex/components/conversation2';
|
|
159
184
|
|
|
160
185
|
// Provides in-memory storage with sample data
|
|
161
186
|
// Perfect for development and demos
|
|
162
|
-
provideConversation({
|
|
187
|
+
provideConversation({
|
|
188
|
+
userApi: AXIndexedDBUserApi,
|
|
189
|
+
conversationApi: AXIndexedDBConversationApi,
|
|
190
|
+
messageApi: AXIndexedDBMessageApi,
|
|
191
|
+
realtimeApi: AXIndexedDBRealtimeApi,
|
|
192
|
+
});
|
|
163
193
|
```
|
|
164
194
|
|
|
165
195
|
#### IndexedDB with AI API (AI-Powered Demo)
|
|
166
196
|
|
|
167
197
|
```typescript
|
|
168
|
-
import {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
198
|
+
import {
|
|
199
|
+
provideConversation,
|
|
200
|
+
AXIndexedDBUserApi,
|
|
201
|
+
AXIndexedDBConversationApi,
|
|
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
|
+
});
|
|
172
213
|
```
|
|
173
214
|
|
|
174
215
|
## ⚙️ Configuration
|
|
@@ -178,23 +219,18 @@ provideConversation({ api: AXIndexedDBAIApi })
|
|
|
178
219
|
```typescript
|
|
179
220
|
interface AXConversationConfig {
|
|
180
221
|
// Pagination
|
|
181
|
-
|
|
222
|
+
messagePageSize?: number; // Default: 50
|
|
223
|
+
conversationPageSize?: number; // Default: 30
|
|
182
224
|
infiniteScrollThreshold?: number; // Default: 200px
|
|
183
225
|
scrollThreshold?: number; // Default: 100px
|
|
184
226
|
|
|
185
227
|
// File Upload
|
|
186
228
|
maxFileSize?: number; // Default: 10MB
|
|
187
|
-
allowedFileTypes?: string[]; // Default:
|
|
229
|
+
allowedFileTypes?: string[]; // Default: see defaults
|
|
188
230
|
|
|
189
231
|
// UI Behavior
|
|
190
232
|
messageHighlightDuration?: number; // Default: 2000ms
|
|
191
233
|
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
|
|
198
234
|
}
|
|
199
235
|
```
|
|
200
236
|
|
|
@@ -327,14 +363,18 @@ export class MyComponent {
|
|
|
327
363
|
```typescript
|
|
328
364
|
import { TestBed } from '@angular/core/testing';
|
|
329
365
|
import { provideConversation, AXConversationService } from '@acorex/components/conversation2';
|
|
330
|
-
import { MockConversationApi } from './mocks/mock-
|
|
366
|
+
import { MockUserApi, MockConversationApi, MockMessageApi } from './mocks/mock-apis';
|
|
331
367
|
|
|
332
368
|
describe('MyComponent', () => {
|
|
333
369
|
beforeEach(() => {
|
|
334
370
|
TestBed.configureTestingModule({
|
|
335
371
|
providers: [
|
|
336
|
-
provideConversation({
|
|
337
|
-
|
|
372
|
+
provideConversation({
|
|
373
|
+
userApi: MockUserApi,
|
|
374
|
+
conversationApi: MockConversationApi,
|
|
375
|
+
messageApi: MockMessageApi,
|
|
376
|
+
}),
|
|
377
|
+
],
|
|
338
378
|
});
|
|
339
379
|
});
|
|
340
380
|
|
|
@@ -343,7 +383,7 @@ describe('MyComponent', () => {
|
|
|
343
383
|
const message = await service.sendMessage({
|
|
344
384
|
conversationId: 'test',
|
|
345
385
|
type: 'text',
|
|
346
|
-
payload: { text: 'Test' }
|
|
386
|
+
payload: { text: 'Test' },
|
|
347
387
|
});
|
|
348
388
|
expect(message).toBeDefined();
|
|
349
389
|
});
|