@acorex/components 18.5.15 → 18.5.17
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.component.d.ts +26 -0
- package/alert/lib/alert.component.d.ts +50 -2
- package/audio-wave/lib/audio-wave.component.d.ts +48 -0
- package/avatar/lib/avatar.component.d.ts +20 -1
- package/badge/lib/badge.component.d.ts +8 -0
- package/bottom-navigation/lib/bottom-navigation.component.d.ts +16 -0
- package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +11 -0
- package/breadcrumbs/lib/breadcrumbs.component.d.ts +11 -0
- package/button/lib/button-item-list.component.d.ts +34 -0
- package/button/lib/button-item.component.d.ts +47 -0
- package/button/lib/button.component.d.ts +36 -0
- package/button-group/lib/button-group.component.d.ts +53 -0
- package/calendar/lib/calendar-range.component.d.ts +48 -0
- package/calendar/lib/calendar.component.d.ts +114 -0
- package/check-box/lib/check-box.component.d.ts +36 -0
- package/chips/lib/chips.component.d.ts +13 -0
- package/circular-progress/lib/circular-progress.component.d.ts +67 -1
- package/collapse/lib/collapse-group.component.d.ts +38 -0
- package/collapse/lib/collapse.component.d.ts +55 -0
- package/color-box/lib/color-box.component.d.ts +28 -1
- package/color-palette/lib/color-palette-input.component.d.ts +35 -0
- package/color-palette/lib/color-palette-picker.component.d.ts +53 -0
- package/color-palette/lib/color-palette-preview.component.d.ts +17 -0
- package/color-palette/lib/color-palette-swatches.component.d.ts +30 -0
- package/color-palette/lib/color-palette.component.d.ts +8 -0
- package/comment/lib/comment-container/comment-container.component.d.ts +5 -0
- package/comment/lib/comment-item/comment-item.component.d.ts +16 -2
- package/comment/lib/comment-like/comment-like.component.d.ts +8 -0
- package/comment/lib/comment-reply/comment-reply.component.d.ts +4 -0
- package/comment/lib/comment-view/comment-view.component.d.ts +4 -0
- package/common/lib/components/base-component.class.d.ts +8 -0
- package/common/lib/components/button-base-component.class.d.ts +21 -0
- package/common/lib/components/interactive-component.class.d.ts +15 -0
- package/conversation/lib/conversation-container/conversation-container.component.d.ts +4 -0
- package/conversation/lib/conversation-input/conversation-input.component.d.ts +79 -2
- package/conversation/lib/conversation-message/conversation-message.component.d.ts +41 -0
- package/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.d.ts +62 -0
- package/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.d.ts +34 -0
- package/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.d.ts +21 -0
- package/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.d.ts +29 -0
- package/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.d.ts +72 -0
- package/conversation/lib/conversation-view/conversation-view.component.d.ts +22 -0
- package/data-pager/lib/data-pager-base.component.d.ts +9 -0
- package/data-pager/lib/data-pager-info.component.d.ts +14 -0
- package/data-pager/lib/data-pager-input-selector.component.d.ts +17 -0
- package/data-pager/lib/data-pager-next-buttons.components.d.ts +20 -0
- package/data-pager/lib/data-pager-numeric-selector.component.d.ts +14 -0
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +21 -1
- package/esm2022/alert/lib/alert.component.mjs +48 -3
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +43 -1
- package/esm2022/avatar/lib/avatar.component.mjs +21 -2
- package/esm2022/badge/lib/badge.component.mjs +9 -1
- package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +14 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +9 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +6 -1
- package/esm2022/button/lib/button-item-list.component.mjs +35 -1
- package/esm2022/button/lib/button-item.component.mjs +36 -1
- package/esm2022/button/lib/button.component.mjs +39 -3
- package/esm2022/button-group/lib/button-group.component.mjs +48 -1
- package/esm2022/calendar/lib/calendar-range.component.mjs +46 -1
- package/esm2022/calendar/lib/calendar.component.mjs +112 -1
- package/esm2022/check-box/lib/check-box.component.mjs +34 -1
- package/esm2022/chips/lib/chips.component.mjs +14 -1
- package/esm2022/circular-progress/lib/circular-progress.component.mjs +69 -1
- package/esm2022/collapse/lib/collapse-group.component.mjs +39 -1
- package/esm2022/collapse/lib/collapse.component.mjs +53 -1
- package/esm2022/color-box/lib/color-box.component.mjs +23 -2
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +36 -1
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +54 -1
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +18 -1
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +28 -1
- package/esm2022/color-palette/lib/color-palette.component.mjs +9 -1
- package/esm2022/comment/lib/comment-container/comment-container.component.mjs +6 -1
- package/esm2022/comment/lib/comment-item/comment-item.component.mjs +15 -1
- package/esm2022/comment/lib/comment-like/comment-like.component.mjs +9 -1
- package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +5 -1
- package/esm2022/comment/lib/comment-view/comment-view.component.mjs +5 -1
- package/esm2022/common/lib/components/base-component.class.mjs +9 -1
- package/esm2022/common/lib/components/button-base-component.class.mjs +22 -1
- package/esm2022/common/lib/components/interactive-component.class.mjs +16 -1
- package/esm2022/conversation/lib/conversation-container/conversation-container.component.mjs +5 -1
- package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +75 -1
- package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +39 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +63 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +35 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.mjs +22 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.mjs +9 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.mjs +30 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.mjs +12 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +70 -1
- package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +23 -1
- package/esm2022/data-pager/lib/data-pager-base.component.mjs +7 -1
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +9 -1
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +15 -1
- package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +20 -1
- package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +5 -1
- package/esm2022/scheduler/lib/scheduler.component.mjs +10 -1
- package/esm2022/search-box/lib/search-box.component.mjs +19 -2
- package/esm2022/select-box/lib/select-box.component.mjs +50 -2
- package/esm2022/selection-list/lib/selection-list.component.mjs +51 -1
- package/esm2022/side-menu/lib/side-menu.component.mjs +5 -1
- package/esm2022/skeleton/lib/skeleton.component.mjs +11 -1
- package/esm2022/slider/lib/slider.component.mjs +52 -2
- package/esm2022/step-wizard/lib/step-wizard.component.mjs +23 -1
- package/esm2022/switch/lib/switch-content.component.mjs +5 -1
- package/esm2022/switch/lib/switch.component.mjs +11 -1
- package/esm2022/tabs/lib/tab-item.component.mjs +24 -1
- package/esm2022/tabs/lib/tabs.component.mjs +36 -1
- package/esm2022/tag/lib/tag.component.mjs +2 -1
- package/esm2022/text-area/lib/text-area.component.mjs +8 -1
- package/esm2022/text-box/lib/text-box.component.mjs +13 -1
- package/esm2022/toast/lib/toast.component.mjs +6 -1
- package/esm2022/tooltip/lib/tooltip.component.mjs +5 -1
- package/esm2022/uploader/lib/uploader-dialog-container.component.mjs +16 -1
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +5 -1
- package/esm2022/uploader/lib/uploader-list.component.mjs +8 -3
- package/esm2022/uploader/lib/uploader.models.mjs +14 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +18 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +106 -36
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +9 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +4 -1
- package/fesm2022/acorex-components-action-sheet.mjs +20 -0
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +47 -2
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +42 -0
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +20 -1
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +8 -0
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +13 -0
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +13 -0
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +47 -0
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +107 -2
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +156 -0
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +33 -0
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +13 -0
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +68 -0
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +90 -0
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +22 -1
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +140 -0
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +35 -0
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +44 -0
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +372 -0
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +62 -0
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +32 -0
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +18 -1
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +49 -1
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +50 -0
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +4 -0
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +10 -0
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +51 -1
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +22 -0
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +14 -0
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +58 -0
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +1 -0
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +7 -0
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +12 -0
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +5 -0
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +4 -0
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +39 -2
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +134 -35
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/package.json +71 -71
- package/scheduler/lib/scheduler-month-view.component.d.ts +20 -0
- package/scheduler/lib/scheduler-week-view.component.d.ts +4 -0
- package/scheduler/lib/scheduler.component.d.ts +10 -0
- package/search-box/lib/search-box.component.d.ts +19 -1
- package/select-box/lib/select-box.component.d.ts +78 -1
- package/selection-list/lib/selection-list.component.d.ts +55 -0
- package/side-menu/lib/side-menu.component.d.ts +4 -0
- package/skeleton/lib/skeleton.component.d.ts +10 -0
- package/slider/lib/slider.component.d.ts +51 -1
- package/step-wizard/lib/step-wizard.component.d.ts +23 -0
- package/switch/lib/switch-content.component.d.ts +4 -0
- package/switch/lib/switch.component.d.ts +14 -0
- package/tabs/lib/tab-item.component.d.ts +32 -0
- package/tabs/lib/tabs.component.d.ts +42 -0
- package/tag/lib/tag.component.d.ts +4 -0
- package/text-area/lib/text-area.component.d.ts +13 -0
- package/text-box/lib/text-box.component.d.ts +27 -0
- package/toast/lib/toast.component.d.ts +6 -0
- package/tooltip/lib/tooltip.component.d.ts +13 -0
- package/uploader/lib/uploader-dialog-container.component.d.ts +15 -0
- package/uploader/lib/uploader-drop-zone.component.d.ts +4 -0
- package/uploader/lib/uploader-list.component.d.ts +5 -0
- package/uploader/lib/uploader.models.d.ts +4 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +19 -3
- package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +61 -20
- package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +4 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +3 -0
@@ -2,11 +2,24 @@ import { AXRippleDirective, MXColorLookComponent } from '@acorex/components/comm
|
|
2
2
|
import { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation, model } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@acorex/components/common";
|
5
|
+
/**
|
6
|
+
* A component for displaying and managing a set of chips.
|
7
|
+
*
|
8
|
+
* @category Components
|
9
|
+
*/
|
5
10
|
export class AXChipsComponent extends MXColorLookComponent {
|
6
11
|
constructor() {
|
7
12
|
super(...arguments);
|
13
|
+
/**
|
14
|
+
* The text displayed on the chips.
|
15
|
+
*
|
16
|
+
* @defaultValue ''
|
17
|
+
*/
|
8
18
|
this.text = model('');
|
9
19
|
}
|
20
|
+
/**
|
21
|
+
* @ignore
|
22
|
+
*/
|
10
23
|
get __hostClass() {
|
11
24
|
return `ax-el-${this.color}-${this.look} ax-el-interactive`;
|
12
25
|
}
|
@@ -20,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
20
33
|
type: HostBinding,
|
21
34
|
args: ['class']
|
22
35
|
}] } });
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hpcHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NoaXBzL3NyYy9saWIvY2hpcHMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NoaXBzL3NyY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vbnRlbnQgc2VsZWN0PVwiYXgtcHJlZml4XCI+PC9uZy1jb250ZW50PlxuQGlmKHRleHQoKSl7XG48ZGl2IGNsYXNzPVwiYXgtY2hpcHMtdGV4dFwiPnt7IHRleHQoKSB9fTwvZGl2PlxufVxuPG5nLWNvbnRlbnQgc2VsZWN0PVwiYXgtc3VmZml4XCI+PC9uZy1jb250ZW50PiJdfQ==
|
@@ -1,23 +1,70 @@
|
|
1
1
|
import { MXColorComponent } from '@acorex/components/common';
|
2
2
|
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostBinding, Input, Output, ViewChild, ViewEncapsulation, } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
6
|
+
*
|
7
|
+
* @category Components
|
8
|
+
*/
|
4
9
|
export class AXCircularProgressComponent extends MXColorComponent {
|
5
10
|
constructor() {
|
6
11
|
super(...arguments);
|
12
|
+
/**
|
13
|
+
* @ignore
|
14
|
+
*/
|
7
15
|
this.strokeDashoffset = 0;
|
16
|
+
/**
|
17
|
+
* @ignore
|
18
|
+
*/
|
8
19
|
this.circumference = 0;
|
20
|
+
/**
|
21
|
+
* @ignore
|
22
|
+
*/
|
9
23
|
this.normalizedRadius = 0;
|
24
|
+
/**
|
25
|
+
* Emits when the value of the circular progress changes.
|
26
|
+
*
|
27
|
+
* @event
|
28
|
+
*/
|
10
29
|
this.ValueChange = new EventEmitter();
|
30
|
+
/**
|
31
|
+
* @ignore
|
32
|
+
*/
|
11
33
|
this._progress = 0;
|
34
|
+
/**
|
35
|
+
* Emitted when the stroke width of the circular progress component changes.
|
36
|
+
*
|
37
|
+
* @event
|
38
|
+
*/
|
12
39
|
this.strokeChange = new EventEmitter();
|
40
|
+
/**
|
41
|
+
* @ignore
|
42
|
+
*/
|
13
43
|
this._stroke = 4;
|
44
|
+
/**
|
45
|
+
* Emits when the size of the circular progress component changes.
|
46
|
+
*
|
47
|
+
* @event
|
48
|
+
*/
|
14
49
|
this.sizeChange = new EventEmitter();
|
50
|
+
/**
|
51
|
+
* @ignore
|
52
|
+
*/
|
15
53
|
this._size = 48;
|
16
54
|
}
|
55
|
+
/**
|
56
|
+
* @ignore
|
57
|
+
*/
|
17
58
|
ngAfterViewInit() {
|
18
59
|
this.setCircularSize();
|
19
60
|
this.updateProgress();
|
20
61
|
}
|
62
|
+
/**
|
63
|
+
* Defines the current progress of the circular progress component.
|
64
|
+
*
|
65
|
+
* @param v - The percentage value to set for the progress.
|
66
|
+
*
|
67
|
+
*/
|
21
68
|
get progress() {
|
22
69
|
return this._progress;
|
23
70
|
}
|
@@ -30,6 +77,11 @@ export class AXCircularProgressComponent extends MXColorComponent {
|
|
30
77
|
},
|
31
78
|
});
|
32
79
|
}
|
80
|
+
/**
|
81
|
+
* Defines the stroke width of the circular progress component.
|
82
|
+
*
|
83
|
+
* @param v - The stroke width to be set for the circular progress component.
|
84
|
+
*/
|
33
85
|
get stroke() {
|
34
86
|
return this._stroke;
|
35
87
|
}
|
@@ -42,6 +94,11 @@ export class AXCircularProgressComponent extends MXColorComponent {
|
|
42
94
|
},
|
43
95
|
});
|
44
96
|
}
|
97
|
+
/**
|
98
|
+
* Defines the size of the circular progress component.
|
99
|
+
*
|
100
|
+
* @param v - The new size value for the circular progress component.
|
101
|
+
*/
|
45
102
|
get size() {
|
46
103
|
return this._size;
|
47
104
|
}
|
@@ -54,15 +111,26 @@ export class AXCircularProgressComponent extends MXColorComponent {
|
|
54
111
|
},
|
55
112
|
});
|
56
113
|
}
|
114
|
+
/**
|
115
|
+
* @ignore
|
116
|
+
*/
|
57
117
|
get __hostClass() {
|
58
118
|
return `ax-${this['color']}-circular`;
|
59
119
|
}
|
120
|
+
/**
|
121
|
+
* Updates the circular progress size based on `size` and `stroke`.
|
122
|
+
* @ignore
|
123
|
+
*/
|
60
124
|
setCircularSize() {
|
61
125
|
if (this.circle) {
|
62
126
|
this.circle.nativeElement.style.setProperty('--ax-stroke-size', `${this.size - this.stroke}px`);
|
63
127
|
this.circle.nativeElement.style.setProperty('--ax-circle-size', `${this.size}px`);
|
64
128
|
}
|
65
129
|
}
|
130
|
+
/**
|
131
|
+
* Updates the circular progress display based on the current `progress` value.
|
132
|
+
* @ignore
|
133
|
+
*/
|
66
134
|
updateProgress() {
|
67
135
|
if (this.circle) {
|
68
136
|
this.circle.nativeElement.style.background = `conic-gradient(var(--ax-progress-color) ${this.progress * 3.6}deg, var(--ax-progress-line-color) 0deg)`;
|
@@ -93,4 +161,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
93
161
|
type: HostBinding,
|
94
162
|
args: ['class']
|
95
163
|
}] } });
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
164
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2lyY3VsYXItcHJvZ3Jlc3MuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NpcmN1bGFyLXByb2dyZXNzL3NyYy9saWIvY2lyY3VsYXItcHJvZ3Jlc3MuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NpcmN1bGFyLXByb2dyZXNzL3NyYy9saWIvY2lyY3VsYXItcHJvZ3Jlc3MuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDN0QsT0FBTyxFQUVMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixXQUFXLEVBQ1gsS0FBSyxFQUNMLE1BQU0sRUFDTixTQUFTLEVBQ1QsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQU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NwYW4+XG48L2Rpdj5cbjxuZy1jb250ZW50IHNlbGVjdD1cImF4LXN1ZmZpeFwiPjwvbmctY29udGVudD5cbiJdfQ==
|
@@ -3,13 +3,36 @@ import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Host
|
|
3
3
|
import { classes } from 'polytype';
|
4
4
|
import { AXCollapseComponent } from './collapse.component';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* Container for collapsible items with configurable styling.
|
8
|
+
*
|
9
|
+
* @category Components
|
10
|
+
*/
|
6
11
|
export class AXCollapseGroupComponent extends classes(MXBaseComponent, MXLookComponent) {
|
7
12
|
constructor() {
|
8
13
|
super(...arguments);
|
14
|
+
/**
|
15
|
+
* Emitted when the accordion state changes.
|
16
|
+
*
|
17
|
+
* @event
|
18
|
+
*/
|
9
19
|
this.accordionChange = new EventEmitter();
|
20
|
+
/**
|
21
|
+
* @ignore
|
22
|
+
*/
|
10
23
|
this._accordion = false;
|
24
|
+
/**
|
25
|
+
* Emits when the active index changes.
|
26
|
+
* @event
|
27
|
+
*/
|
11
28
|
this.activeIndexChange = new EventEmitter();
|
29
|
+
/**
|
30
|
+
* @ignore
|
31
|
+
*/
|
12
32
|
this._activeIndex = 0;
|
33
|
+
/**
|
34
|
+
* @ignore
|
35
|
+
*/
|
13
36
|
this._subs = [];
|
14
37
|
}
|
15
38
|
/**
|
@@ -56,11 +79,17 @@ export class AXCollapseGroupComponent extends classes(MXBaseComponent, MXLookCom
|
|
56
79
|
},
|
57
80
|
});
|
58
81
|
}
|
82
|
+
/**
|
83
|
+
* @ignore
|
84
|
+
*/
|
59
85
|
ngAfterViewInit() {
|
60
86
|
if (this.accordion) {
|
61
87
|
this.applyAccordion();
|
62
88
|
}
|
63
89
|
}
|
90
|
+
/**
|
91
|
+
* @ignore
|
92
|
+
*/
|
64
93
|
applyAccordion() {
|
65
94
|
if (!this.look)
|
66
95
|
return;
|
@@ -82,13 +111,22 @@ export class AXCollapseGroupComponent extends classes(MXBaseComponent, MXLookCom
|
|
82
111
|
});
|
83
112
|
}
|
84
113
|
}
|
114
|
+
/**
|
115
|
+
* @ignore
|
116
|
+
*/
|
85
117
|
removeAccordion() {
|
86
118
|
this._subs.forEach((s) => s.unsubscribe());
|
87
119
|
this._subs = [];
|
88
120
|
}
|
121
|
+
/**
|
122
|
+
* @ignore
|
123
|
+
*/
|
89
124
|
ngOnDestroy() {
|
90
125
|
this.removeAccordion();
|
91
126
|
}
|
127
|
+
/**
|
128
|
+
* @ignore
|
129
|
+
*/
|
92
130
|
get __hostClass() {
|
93
131
|
return ['ax-collapse-group', `ax-look-${this.look}`];
|
94
132
|
}
|
@@ -130,4 +168,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
130
168
|
type: HostBinding,
|
131
169
|
args: ['class']
|
132
170
|
}] } });
|
133
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2UtZ3JvdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbGxhcHNlL3NyYy9saWIvY29sbGFwc2UtZ3JvdXAuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsZUFBZSxFQUFFLG1CQUFtQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbEcsT0FBTyxFQUVMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsZUFBZSxFQUNmLFlBQVksRUFDWixXQUFXLEVBQ1gsS0FBSyxFQUVMLE1BQU0sRUFDTixTQUFTLEVBQ1QsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxVQUFVLENBQUM7QUF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XRlbXMudG9BcnJheSgpO1xuXG4gICAgICAgIHRoaXMuX3N1YnMucHVzaChcbiAgICAgICAgICAvLyBUT0RPOiBhZGQgYW5kIHVzZSBhIG5ldyBldmVudCBmb3Igc3RhdHVzIGNoYW5nZXNcbiAgICAgICAgICBjMS5vbkNsaWNrLnN1YnNjcmliZSgoZSkgPT4ge1xuICAgICAgICAgICAgaWYgKCFlLmhhbmRsZWQpIHtcbiAgICAgICAgICAgICAgdGhpcy5fYWN0aXZlSW5kZXggPSBsaXN0LmluZGV4T2YoYzEpO1xuICAgICAgICAgICAgICBsaXN0LmZpbHRlcigoYzIpID0+IGMyICE9IGMxKS5mb3JFYWNoKChjKSA9PiAoYy5pc0NvbGxhcHNlZCA9IHRydWUpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KSxcbiAgICAgICAgKTtcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgcHJpdmF0ZSByZW1vdmVBY2NvcmRpb24oKSB7XG4gICAgdGhpcy5fc3Vicy5mb3JFYWNoKChzKSA9PiBzLnVuc3Vic2NyaWJlKCkpO1xuICAgIHRoaXMuX3N1YnMgPSBbXTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5yZW1vdmVBY2NvcmRpb24oKTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgQEhvc3RCaW5kaW5nKCdjbGFzcycpXG4gIHByaXZhdGUgZ2V0IF9faG9zdENsYXNzKCk6IHN0cmluZ1tdIHtcbiAgICByZXR1cm4gWydheC1jb2xsYXBzZS1ncm91cCcsIGBheC1sb29rLSR7dGhpcy5sb29rfWBdO1xuICB9XG59XG4iXX0=
|
@@ -12,7 +12,15 @@ export class AXCollapseClickEvent extends AXClickEvent {
|
|
12
12
|
this.handled = false;
|
13
13
|
}
|
14
14
|
}
|
15
|
+
/**
|
16
|
+
* A component that provides a collapsible section with animated transitions.
|
17
|
+
*
|
18
|
+
* @category Components
|
19
|
+
*/
|
15
20
|
export class AXCollapseComponent extends classes(MXInteractiveComponent, MXLookComponent) {
|
21
|
+
/**
|
22
|
+
* @ignore
|
23
|
+
*/
|
16
24
|
constructor(parent) {
|
17
25
|
super();
|
18
26
|
this.parent = parent;
|
@@ -21,11 +29,35 @@ export class AXCollapseComponent extends classes(MXInteractiveComponent, MXLookC
|
|
21
29
|
* @event
|
22
30
|
*/
|
23
31
|
this.onClick = new EventEmitter();
|
32
|
+
/**
|
33
|
+
* Fires an event when the collapse state changes.
|
34
|
+
*
|
35
|
+
* @event
|
36
|
+
*/
|
24
37
|
this.isCollapsedChange = new EventEmitter();
|
38
|
+
/**
|
39
|
+
* @ignore
|
40
|
+
*/
|
25
41
|
this._isCollapsed = false;
|
42
|
+
/**
|
43
|
+
* @ignore
|
44
|
+
*/
|
26
45
|
this._showHeader = true;
|
46
|
+
/**
|
47
|
+
* Sets the caption for the collapse component.
|
48
|
+
*
|
49
|
+
* @defaultValue ''
|
50
|
+
*/
|
27
51
|
this.caption = '';
|
52
|
+
/**
|
53
|
+
* Specifies the icon to display in the collapse component.
|
54
|
+
*
|
55
|
+
* @defaultValue ''
|
56
|
+
*/
|
28
57
|
this.icon = '';
|
58
|
+
/**
|
59
|
+
* @ignore
|
60
|
+
*/
|
29
61
|
this._isLoading = false;
|
30
62
|
}
|
31
63
|
/**
|
@@ -73,6 +105,11 @@ export class AXCollapseComponent extends classes(MXInteractiveComponent, MXLookC
|
|
73
105
|
},
|
74
106
|
});
|
75
107
|
}
|
108
|
+
/**
|
109
|
+
* Handles header clicks, emitting a click event and toggling collapse state if not handled.
|
110
|
+
*
|
111
|
+
* @param e - The native mouse event.
|
112
|
+
*/
|
76
113
|
handleHeaderClick(e) {
|
77
114
|
if (this.disabled || this.isLoading)
|
78
115
|
return;
|
@@ -87,15 +124,30 @@ export class AXCollapseComponent extends classes(MXInteractiveComponent, MXLookC
|
|
87
124
|
this.toggle();
|
88
125
|
}
|
89
126
|
}
|
127
|
+
/**
|
128
|
+
* Expands the collapse component.
|
129
|
+
* @ignore
|
130
|
+
*/
|
90
131
|
open() {
|
91
132
|
this.isCollapsed = false;
|
92
133
|
}
|
134
|
+
/**
|
135
|
+
* Collapses the collapse component.
|
136
|
+
* @ignore
|
137
|
+
*/
|
93
138
|
close() {
|
94
139
|
this.isCollapsed = true;
|
95
140
|
}
|
141
|
+
/**
|
142
|
+
* Toggles the collapse state between expanded and collapsed.
|
143
|
+
* @ignore
|
144
|
+
*/
|
96
145
|
toggle() {
|
97
146
|
this.isCollapsed = !this.isCollapsed;
|
98
147
|
}
|
148
|
+
/**
|
149
|
+
* @ignore
|
150
|
+
*/
|
99
151
|
get __hostClass() {
|
100
152
|
return [`${this.disabled ? 'ax-state-disabled' : ''}`, `ax-look-${this.parent?.look ? this.parent.look : this.look}`];
|
101
153
|
}
|
@@ -143,4 +195,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
143
195
|
type: HostBinding,
|
144
196
|
args: ['class']
|
145
197
|
}] } });
|
146
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbGxhcHNlL3NyYy9saWIvY29sbGFwc2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbGxhcHNlL3NyYy9saWIvY29sbGFwc2UuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxzQkFBc0IsRUFBRSxlQUFlL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WNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICA8L2Rpdj5cbjwvZGl2PiJdfQ==
|
@@ -10,28 +10,49 @@ import * as i2 from "@angular/forms";
|
|
10
10
|
import * as i3 from "@acorex/components/color-palette";
|
11
11
|
import * as i4 from "@acorex/components/dropdown";
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* A color box component that handles color selection and triggers relevant events.
|
14
14
|
*
|
15
15
|
* @category Components
|
16
16
|
*/
|
17
17
|
export class AXColorBoxComponent extends classes(MXDropdownBoxBaseComponent, (MXInputBaseValueComponent), MXColorLookComponent) {
|
18
|
+
/**
|
19
|
+
* @ignore
|
20
|
+
*/
|
18
21
|
_handleModelChange(value) {
|
19
22
|
this.commitValue(value, true);
|
20
23
|
}
|
24
|
+
/**
|
25
|
+
* @ignore
|
26
|
+
*/
|
21
27
|
_handleArrowClickEvent(e) {
|
22
28
|
e.stopPropagation();
|
23
29
|
this.toggle();
|
24
30
|
}
|
31
|
+
/**
|
32
|
+
* @ignore
|
33
|
+
*/
|
25
34
|
_handleInputClickEvent(e) {
|
26
35
|
e.stopPropagation();
|
27
36
|
this.toggle();
|
28
37
|
}
|
38
|
+
/**
|
39
|
+
* @ignore
|
40
|
+
*/
|
29
41
|
_handleOnOpenedEvent(e) {
|
30
42
|
//this.picker?.refresh();
|
31
43
|
}
|
44
|
+
/**
|
45
|
+
* @ignore
|
46
|
+
*/
|
32
47
|
_handleOnClosedEvent(e) {
|
33
48
|
this.focus();
|
34
49
|
}
|
50
|
+
/**
|
51
|
+
* Handles changes to the internal value.
|
52
|
+
*
|
53
|
+
* @param value - The new value of the component.
|
54
|
+
* @ignore
|
55
|
+
*/
|
35
56
|
internalValueChanged(value) {
|
36
57
|
//this.close();
|
37
58
|
}
|
@@ -68,4 +89,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
68
89
|
type: ViewChild,
|
69
90
|
args: [AXDropdownBoxComponent]
|
70
91
|
}] }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