@acorex/components 18.5.16 → 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 +37 -1
- 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 +105 -0
- 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 +31 -31
- 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
@@ -1,18 +1,34 @@
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Input, NgZone, ViewEncapsulation, forwardRef, output } from '@angular/core';
|
2
1
|
import { AXValuableComponent, MXColorComponent, MXValueComponent, } from '@acorex/components/common';
|
2
|
+
import { ChangeDetectionStrategy, Component, HostBinding, Input, NgZone, ViewEncapsulation, forwardRef, output } from '@angular/core';
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
4
|
import { classes } from 'polytype';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
import * as i1 from "@angular/forms";
|
7
|
+
/**
|
8
|
+
* @category
|
9
|
+
* A customizable slider component for selecting a value within a range.
|
10
|
+
*/
|
7
11
|
export class AXSliderComponent extends classes((MXValueComponent), MXColorComponent) {
|
12
|
+
/** @ignore */
|
8
13
|
constructor(_zone) {
|
9
14
|
super();
|
10
15
|
this._zone = _zone;
|
16
|
+
/**
|
17
|
+
* @event
|
18
|
+
*/
|
11
19
|
this.onClick = output();
|
20
|
+
/** @ignore */
|
12
21
|
this._minValue = 0;
|
22
|
+
/** @ignore */
|
13
23
|
this._maxValue = 100;
|
24
|
+
/** @ignore */
|
14
25
|
this._step = 1;
|
15
26
|
//TODO: vertical dont work properly
|
27
|
+
/**
|
28
|
+
* The direction of the slider.
|
29
|
+
*
|
30
|
+
* @defaultValue 'horizontal'
|
31
|
+
*/
|
16
32
|
this.direction = 'horizontal';
|
17
33
|
}
|
18
34
|
/**
|
@@ -21,6 +37,11 @@ export class AXSliderComponent extends classes((MXValueComponent), MXColorCompon
|
|
21
37
|
get minValue() {
|
22
38
|
return this._minValue ?? 0;
|
23
39
|
}
|
40
|
+
/**
|
41
|
+
* Sets the minimum value of the slider.
|
42
|
+
*
|
43
|
+
* @param {number} v
|
44
|
+
*/
|
24
45
|
set minValue(v) {
|
25
46
|
this.setOption({
|
26
47
|
name: 'minValue',
|
@@ -33,6 +54,11 @@ export class AXSliderComponent extends classes((MXValueComponent), MXColorCompon
|
|
33
54
|
get maxValue() {
|
34
55
|
return this._maxValue ?? 100;
|
35
56
|
}
|
57
|
+
/**
|
58
|
+
* Sets the maximum value of the slider.
|
59
|
+
*
|
60
|
+
* @param {number} v
|
61
|
+
*/
|
36
62
|
set maxValue(v) {
|
37
63
|
this.setOption({
|
38
64
|
name: 'maxValue',
|
@@ -45,33 +71,57 @@ export class AXSliderComponent extends classes((MXValueComponent), MXColorCompon
|
|
45
71
|
get step() {
|
46
72
|
return this._step ?? 100;
|
47
73
|
}
|
74
|
+
/**
|
75
|
+
* Sets the step increment for the slider.
|
76
|
+
*
|
77
|
+
* @param {number} v
|
78
|
+
*/
|
48
79
|
set step(v) {
|
49
80
|
this.setOption({
|
50
81
|
name: 'step',
|
51
82
|
value: v != null ? Number(v) : 1,
|
52
83
|
});
|
53
84
|
}
|
85
|
+
/**
|
86
|
+
* Handles changes to internal component options.
|
87
|
+
*
|
88
|
+
* @param {MXComponentOptionChanged} e
|
89
|
+
*/
|
54
90
|
internalOptionChanged(e) {
|
55
91
|
this._calcVars();
|
56
92
|
}
|
93
|
+
/**
|
94
|
+
* Handles changes to the component's value.
|
95
|
+
*
|
96
|
+
* @param {number} value
|
97
|
+
*/
|
57
98
|
internalValueChanged(value) {
|
58
99
|
this._calcVars();
|
59
100
|
}
|
101
|
+
/** @ignore */
|
60
102
|
_handleModelChange(value) {
|
61
103
|
this.commitValue(value, true);
|
62
104
|
}
|
105
|
+
/** @ignore */
|
63
106
|
_calcVars() {
|
64
107
|
this._zone.runOutsideAngular(() => {
|
65
108
|
const per = (((this.value ?? 0) - this.minValue) / (this.maxValue - this.minValue)) * 100 - 0.1;
|
66
109
|
this.getHostElement().style.setProperty('--ax-current-value', `${per}%`);
|
67
110
|
});
|
68
111
|
}
|
112
|
+
/**
|
113
|
+
* @event
|
114
|
+
*
|
115
|
+
* Emits the value of the clicked input element when the click event occurs.
|
116
|
+
*/
|
69
117
|
clickHandler(e) {
|
70
118
|
this.onClick.emit(e.target.value);
|
71
119
|
}
|
120
|
+
/** @ignore */
|
72
121
|
get __hostClass() {
|
73
122
|
return `ax-${this.color}-solid ax-${this.direction}`;
|
74
123
|
}
|
124
|
+
/** @ignore */
|
75
125
|
get __hostClassDisabled() {
|
76
126
|
return this.disabled;
|
77
127
|
}
|
@@ -110,4 +160,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
110
160
|
type: HostBinding,
|
111
161
|
args: ['class.ax-state-disabled']
|
112
162
|
}] } });
|
113
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zbGlkZXIvc3JjL2xpYi9zbGlkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NsaWRlci9zcmMvbGliL3NsaWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLGlCQUFpQixFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdEksT0FBTyxFQUdMLG1CQUFtQixFQUNuQixnQkFBZ0IsRUFFaEIsZ0JBQWdCLEdBQ2pCLE1BQU0sMkJBQTJCLENBQUM7QUFFbkMsT0FBTyxFQUFFLGlCQUFpQixFQUFFL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nY2xhc3MuYXgtc3RhdGUtZGlzYWJsZWQnKVxuICBwcml2YXRlIGdldCBfX2hvc3RDbGFzc0Rpc2FibGVkKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmRpc2FibGVkO1xuICB9XG59XG4iLCI8aW5wdXRcbiAgKGNsaWNrKT1cImNsaWNrSGFuZGxlcigkZXZlbnQpXCJcbiAgdHlwZT1cInJhbmdlXCJcbiAgW21pbl09XCJtaW5WYWx1ZVwiXG4gIFttYXhdPVwibWF4VmFsdWVcIlxuICBbbmdNb2RlbF09XCJ2YWx1ZVwiXG4gIChuZ01vZGVsQ2hhbmdlKT1cIl9oYW5kbGVNb2RlbENoYW5nZSgkZXZlbnQpXCJcbiAgKGJsdXIpPVwiZW1pdE9uQmx1ckV2ZW50KCRldmVudClcIlxuICAoZm9jdXMpPVwiZW1pdE9uRm9jdXNFdmVudCgkZXZlbnQpXCJcbiAgW3N0ZXBdPVwic3RlcFwiXG4gIFtkaXNhYmxlZF09XCJkaXNhYmxlZCB8fCByZWFkb25seVwiXG4gIFtyZWFkb25seV09XCJyZWFkb25seVwiXG4vPlxuIl19
|
@@ -3,14 +3,22 @@ import { ChangeDetectionStrategy, Component, ContentChildren, HostBinding, Input
|
|
3
3
|
import { AXStepWizardItemComponent } from './step-wizard-item/step-wizard-item.component';
|
4
4
|
import { AXStepWizardContentDirective } from './step-wizard.directive';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* @category
|
8
|
+
* A component for creating a step-by-step wizard interface.
|
9
|
+
*/
|
6
10
|
export class AXStepWizardComponent extends MXBaseComponent {
|
7
11
|
constructor() {
|
8
12
|
super(...arguments);
|
13
|
+
/** @ignore */
|
9
14
|
this.activeStepIndex = signal(0);
|
15
|
+
/** @ignore */
|
10
16
|
this.activeLook = signal(this.look);
|
17
|
+
/** @ignore */
|
11
18
|
this.activeOrientation = signal(this.orientation);
|
12
19
|
this.isFirst = computed(() => this.activeStepIndex() === 0);
|
13
20
|
this.isLast = computed(() => this.activeStepIndex() === this.steps?.length - 1);
|
21
|
+
/** @ignore */
|
14
22
|
this.className = computed(() => {
|
15
23
|
const classList = [`ax-look-${this.activeLook()}`];
|
16
24
|
if (this.activeOrientation() == 'vertical') {
|
@@ -18,6 +26,7 @@ export class AXStepWizardComponent extends MXBaseComponent {
|
|
18
26
|
}
|
19
27
|
return classList;
|
20
28
|
});
|
29
|
+
/** @ignore */
|
21
30
|
this.stepChangeEffect = effect(() => {
|
22
31
|
const step = this.steps.get(this.activeStepIndex());
|
23
32
|
this.steps.forEach((s, i) => {
|
@@ -38,20 +47,32 @@ export class AXStepWizardComponent extends MXBaseComponent {
|
|
38
47
|
allowSignalWrites: true,
|
39
48
|
});
|
40
49
|
}
|
50
|
+
/** @ignore */
|
41
51
|
changeStepContent(step) {
|
42
52
|
if (this.content && step) {
|
43
53
|
this.content.portal = step.template;
|
44
54
|
}
|
45
55
|
}
|
56
|
+
/** @ignore */
|
46
57
|
ngOnInit() {
|
47
58
|
super.ngOnInit();
|
48
59
|
}
|
60
|
+
/**
|
61
|
+
* Sets the visual style of the step wizard.
|
62
|
+
*
|
63
|
+
* @param v
|
64
|
+
*/
|
49
65
|
set look(v) {
|
50
66
|
this.activeLook.set(v);
|
51
67
|
this.steps?.forEach((s) => {
|
52
68
|
s.look = this.activeLook();
|
53
69
|
});
|
54
70
|
}
|
71
|
+
/**
|
72
|
+
* Sets the orientation of the component.
|
73
|
+
*
|
74
|
+
* @param v
|
75
|
+
*/
|
55
76
|
set orientation(v) {
|
56
77
|
this.activeOrientation.set(v);
|
57
78
|
}
|
@@ -77,6 +98,7 @@ export class AXStepWizardComponent extends MXBaseComponent {
|
|
77
98
|
reset() {
|
78
99
|
this.activeStepIndex.set(0);
|
79
100
|
}
|
101
|
+
/** @ignore */
|
80
102
|
get __hostClass() {
|
81
103
|
return this.className();
|
82
104
|
}
|
@@ -99,4 +121,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
99
121
|
type: HostBinding,
|
100
122
|
args: ['class']
|
101
123
|
}] } });
|
102
|
-
//# sourceMappingURL=data:application/json;base64,
|
124
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC13aXphcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3N0ZXAtd2l6YXJkL3NyYy9saWIvc3RlcC13aXphcmQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsZUFBZSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDM0UsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsZUFBZSxFQUNmLFdBQVcsRUFDWCxLQUFLLEVBRUwsU0FBUyxFQUVULGlCQUFpQixFQUVqQixRQUFRLEVBQ1IsTUFBTSxFQUNOLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSwrQ0FBK0MsQ0FBQztBQUUxRixPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQzs7QUFFdkU7OztHQUdHO0FBUUgsTUFBTSxPQUFPLHFCQUFzQixTQUFRLGVBQWU7SUFQMUQ7O1FBUUUsY0FBYztRQUNKLG9CQUFlLEdBQTJCLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUU5RCxjQUFjO1FBQ0osZUFBVSxHQUFxQyxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRTNFLGNBQWM7UUFDSixzQkFBaUIsR0FBa0MsTUFBTSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUUvRSxZQUFPLEdBQW9CLFFB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AgfVxuXG4gIHB1YmxpYyByZXNldCgpIHtcbiAgICB0aGlzLmFjdGl2ZVN0ZXBJbmRleC5zZXQoMCk7XG4gIH1cblxuICAvKiogQGlnbm9yZSAqL1xuICBASG9zdEJpbmRpbmcoJ2NsYXNzJylcbiAgcHJpdmF0ZSBnZXQgX19ob3N0Q2xhc3MoKTogc3RyaW5nW10ge1xuICAgIHJldHVybiB0aGlzLmNsYXNzTmFtZSgpO1xuICB9XG59XG4iXX0=
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import { MXBaseComponent } from '@acorex/components/common';
|
2
2
|
import { Component } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
|
+
/**
|
5
|
+
* @category
|
6
|
+
* Displays content for different switch states using `<ng-content>`.
|
7
|
+
*/
|
4
8
|
export class AXSwitchContentComponent extends MXBaseComponent {
|
5
9
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXSwitchContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
6
10
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXSwitchContentComponent, selector: "ax-switch-handler-content,ax-switch-handler-on-content,ax-switch-handler-off-content,ax-switch-off-content,ax-switch-on-content", usesInheritance: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); }
|
@@ -12,4 +16,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
12
16
|
template: `<ng-content></ng-content>`,
|
13
17
|
}]
|
14
18
|
}] });
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb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nQgZXh0ZW5kcyBNWEJhc2VDb21wb25lbnQge31cbiJdfQ==
|
@@ -3,7 +3,14 @@ import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulati
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4
4
|
import { classes } from 'polytype';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* @category
|
8
|
+
* A switch component that allows toggling between on and off states.
|
9
|
+
*/
|
6
10
|
export class AXSwitchComponent extends classes((MXValueComponent), MXColorComponent) {
|
11
|
+
/**
|
12
|
+
* @ignore
|
13
|
+
*/
|
7
14
|
_handleOnClickEvent(e) {
|
8
15
|
this.onTouchedCallback();
|
9
16
|
if (this.readonly || this.disabled) {
|
@@ -14,6 +21,9 @@ export class AXSwitchComponent extends classes((MXValueComponent), MXColorCompon
|
|
14
21
|
this.commitValue(!this.value, true);
|
15
22
|
}
|
16
23
|
}
|
24
|
+
/**
|
25
|
+
* @ignore
|
26
|
+
*/
|
17
27
|
get __hostClass() {
|
18
28
|
return `ax-${this.color ? this.color : 'primary'}-solid`;
|
19
29
|
}
|
@@ -41,4 +51,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
41
51
|
type: HostBinding,
|
42
52
|
args: ['class']
|
43
53
|
}] } });
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zd2l0Y2gvc3JjL2xpYi9zd2l0Y2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3N3aXRjaC9zcmMvbGliL3N3aXRjaC5jb21wb25lbnQuaHRtbCJdL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d2l0Y2gtY2hlY2tlZF09XCJ2YWx1ZVwiXG4gIChjbGljayk9XCJfaGFuZGxlT25DbGlja0V2ZW50KCRldmVudClcIj5cbiAgPGRpdiBjbGFzcz1cImF4LXN3aXRjaC1oYW5kbGVcIj5cbiAgICBAaWYoaXNMb2FkaW5nKXtcbiAgICA8c3BhbiBjbGFzcz1cImF4LWxvYWRlclwiPjwvc3Bhbj5cbiAgICB9XG4gICAgQGlmKCFpc0xvYWRpbmcpe1xuICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImF4LXN3aXRjaC1oYW5kbGVyLWNvbnRlbnRcIj48L25nLWNvbnRlbnQ+XG4gICAgfVxuICAgIEBpZighaXNMb2FkaW5nICYmIHZhbHVlKXtcbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJheC1zd2l0Y2gtaGFuZGxlci1vbi1jb250ZW50XCI+PC9uZy1jb250ZW50PlxuICAgIH1cbiAgICBAaWYoIWlzTG9hZGluZyAmJiAhdmFsdWUpe1xuICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImF4LXN3aXRjaC1oYW5kbGVyLW9mZi1jb250ZW50XCI+PC9uZy1jb250ZW50PlxuICAgIH1cbiAgPC9kaXY+XG4gIEBpZighdmFsdWUpe1xuICA8c3BhbiBjbGFzcz1cImF4LXN3aXRjaC1pbm5lclwiPlxuICAgIDxuZy1jb250ZW50IHNlbGVjdD1cImF4LXN3aXRjaC1vZmYtY29udGVudFwiPjwvbmctY29udGVudD5cbiAgPC9zcGFuPlxuICB9XG4gIEBpZih2YWx1ZSl7XG4gIDxzcGFuIGNsYXNzPVwiYXgtc3dpdGNoLWlubmVyXCI+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiYXgtc3dpdGNoLW9uLWNvbnRlbnRcIj48L25nLWNvbnRlbnQ+XG4gIDwvc3Bhbj5cbiAgfVxuPC9idXR0b24+Il19
|
@@ -2,13 +2,30 @@ import { MXInteractiveComponent } from '@acorex/components/common';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, Input, Output, TemplateRef, ViewChild, ViewEncapsulation, } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/common";
|
5
|
+
/**
|
6
|
+
* @category
|
7
|
+
* Represents an individual tab item in a tab component.
|
8
|
+
*/
|
5
9
|
export class AXTabItemComponent extends MXInteractiveComponent {
|
6
10
|
constructor() {
|
7
11
|
super(...arguments);
|
12
|
+
/**
|
13
|
+
* Emits an event when the `active` state of the component changes.
|
14
|
+
* @event
|
15
|
+
*/
|
8
16
|
this.activeChange = new EventEmitter();
|
17
|
+
/**
|
18
|
+
* Emits an event when the component is clicked.
|
19
|
+
* @event
|
20
|
+
*/
|
9
21
|
this.onClick = new EventEmitter();
|
22
|
+
/** @ignore */
|
10
23
|
this._active = false;
|
11
24
|
}
|
25
|
+
/**
|
26
|
+
* Gets or sets the component's active state, controlling its behavior and appearance.
|
27
|
+
* @param value {boolean}
|
28
|
+
*/
|
12
29
|
get active() {
|
13
30
|
return this._active;
|
14
31
|
}
|
@@ -21,6 +38,9 @@ export class AXTabItemComponent extends MXInteractiveComponent {
|
|
21
38
|
},
|
22
39
|
});
|
23
40
|
}
|
41
|
+
/**
|
42
|
+
* @ignore
|
43
|
+
*/
|
24
44
|
__hostClick(e) {
|
25
45
|
if (!this.disabled) {
|
26
46
|
this.onClick.emit({
|
@@ -30,6 +50,9 @@ export class AXTabItemComponent extends MXInteractiveComponent {
|
|
30
50
|
});
|
31
51
|
}
|
32
52
|
}
|
53
|
+
/**
|
54
|
+
* @ignore
|
55
|
+
*/
|
33
56
|
internalOptionChanged(option) {
|
34
57
|
//TODO: change to hostbind
|
35
58
|
const classListRef = this.getHostElement().classList;
|
@@ -114,4 +137,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
114
137
|
type: HostListener,
|
115
138
|
args: ['click', ['$event']]
|
116
139
|
}] } });
|
117
|
-
//# s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uICAgICAgICBuYXRpdmVFdmVudDogZSxcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiBAaWdub3JlXG4gICAqL1xuICBwcm90ZWN0ZWQgb3ZlcnJpZGUgaW50ZXJuYWxPcHRpb25DaGFuZ2VkKG9wdGlvbjogTVhDb21wb25lbnRPcHRpb25DaGFuZ2VkPGFueT4pOiB2b2lkIHtcbiAgICAvL1RPRE86IGNoYW5nZSB0byBob3N0YmluZFxuICAgIGNvbnN0IGNsYXNzTGlzdFJlZiA9IHRoaXMuZ2V0SG9zdEVsZW1lbnQoKS5jbGFzc0xpc3Q7XG4gICAgaWYgKG9wdGlvbi5uYW1lID09ICdkaXNhYmxlZCcpIHtcbiAgICAgIG9wdGlvbi52YWx1ZSA/IGNsYXNzTGlzdFJlZi5hZGQoJ2F4LXN0YXRlLWRpc2FibGVkJykgOiBjbGFzc0xpc3RSZWYucmVtb3ZlKCdheC1zdGF0ZS1kaXNhYmxlZCcpO1xuICAgIH1cbiAgICBpZiAob3B0aW9uLm5hbWUgPT0gJ2FjdGl2ZScpIHtcbiAgICAgIG9wdGlvbi52YWx1ZSA/IGNsYXNzTGlzdFJlZi5hZGQoJ2F4LXN0YXRlLWFjdGl2ZScpIDogY2xhc3NMaXN0UmVmLnJlbW92ZSgnYXgtc3RhdGUtYWN0aXZlJyk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -3,25 +3,52 @@ import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Host
|
|
3
3
|
import { AXTabContentDirective } from './tab-content.directive';
|
4
4
|
import { AXTabItemComponent } from './tab-item.component';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
+
/**
|
7
|
+
* @category
|
8
|
+
* A component that serves as a container for tab items.
|
9
|
+
*/
|
6
10
|
export class AXTabsComponent extends MXBaseComponent {
|
7
11
|
constructor() {
|
8
12
|
super(...arguments);
|
13
|
+
/**
|
14
|
+
* Sets the appearance style of the tab component.
|
15
|
+
* @defaultValue 'default'
|
16
|
+
*/
|
9
17
|
this.look = 'default';
|
18
|
+
/**
|
19
|
+
* Specifies the position of the tab component.
|
20
|
+
* @defaultValue 'bottom'
|
21
|
+
*/
|
10
22
|
this.location = 'bottom';
|
23
|
+
/**
|
24
|
+
* @defaultValue 'false'
|
25
|
+
* Specifies whether the component should resize to fit its parent container.
|
26
|
+
*/
|
11
27
|
this.fitParent = false;
|
28
|
+
/**
|
29
|
+
* @defaultValue 'false'
|
30
|
+
* Applies a minimum width constraint to the component.
|
31
|
+
*/
|
12
32
|
this.minWidth = false;
|
33
|
+
/** @ignore */
|
13
34
|
this._isUserInteraction = false;
|
35
|
+
/**
|
36
|
+
* @event
|
37
|
+
*/
|
14
38
|
this.onActiveTabChanged = new EventEmitter();
|
15
39
|
}
|
16
40
|
get items() {
|
17
41
|
return this._contentTabs.toArray();
|
18
42
|
}
|
43
|
+
/** @ignore */
|
19
44
|
get selectedIndex() {
|
20
45
|
return this.items.indexOf(this._selectedItem);
|
21
46
|
}
|
47
|
+
/** @ignore */
|
22
48
|
get selectedItem() {
|
23
49
|
return this._selectedItem;
|
24
50
|
}
|
51
|
+
/** @ignore */
|
25
52
|
get __hostClass() {
|
26
53
|
const cssClasses = [];
|
27
54
|
cssClasses.push(`ax-look-${this.look}`);
|
@@ -30,14 +57,17 @@ export class AXTabsComponent extends MXBaseComponent {
|
|
30
57
|
cssClasses.push(`ax-tabs-fit`);
|
31
58
|
return cssClasses;
|
32
59
|
}
|
60
|
+
/** @ignore */
|
33
61
|
ngAfterContentInit() {
|
34
62
|
this._contentTabs.changes.subscribe(() => {
|
35
63
|
this._bindOnClickEvent();
|
36
64
|
});
|
37
65
|
}
|
66
|
+
/** @ignore */
|
38
67
|
ngAfterViewInit() {
|
39
68
|
this._bindOnClickEvent();
|
40
69
|
}
|
70
|
+
/** @ignore */
|
41
71
|
_bindOnClickEvent() {
|
42
72
|
const selected = this.items.find((c) => c.active) || this.items[0];
|
43
73
|
this.select(selected);
|
@@ -50,6 +80,11 @@ export class AXTabsComponent extends MXBaseComponent {
|
|
50
80
|
}
|
51
81
|
});
|
52
82
|
}
|
83
|
+
/**
|
84
|
+
* Activates the specified tab and updates the content.
|
85
|
+
*
|
86
|
+
* @param {number | AXTabItemComponent}
|
87
|
+
*/
|
53
88
|
select(tab) {
|
54
89
|
const tabItem = typeof tab == 'number' ? this.items[tab] : tab;
|
55
90
|
//
|
@@ -96,4 +131,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
96
131
|
type: HostBinding,
|
97
132
|
args: ['class']
|
98
133
|
}] } });
|
99
|
-
//# sourceMappingURL=data:application/json;base64,
|
134
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvdGFicy9zcmMvbGliL3RhYnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUM1RCxPQUFPLEVBR0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsWUFBWSxFQUNaLFdBQVcsRUFDWCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFNBQVMsRUFDVCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDaEUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7O0FBRzFEOzs7R0FHRztBQVFILE1BQU0sT0FBTyxlQUFnQixTQUFRLGVBQWU7SUFQcEQ7O1FBY0U7OztXQUdHO1FBQ00sU0FBSSxHQUFj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xuICAgICAgY29tcG9uZW50OiB0aGlzLFxuICAgICAgaXNVc2VySW50ZXJhY3Rpb246IHRoaXMuX2lzVXNlckludGVyYWN0aW9uLFxuICAgICAgdGFiOiB0YWJJdGVtLFxuICAgICAgaW5kZXg6IHRoaXMuc2VsZWN0ZWRJbmRleCxcbiAgICB9KTtcbiAgICB0aGlzLl9pc1VzZXJJbnRlcmFjdGlvbiA9IGZhbHNlO1xuICB9XG59XG4iXX0=
|
@@ -2,6 +2,7 @@ import { MXColorLookComponent } from '@acorex/components/common';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export class AXTagComponent extends MXColorLookComponent {
|
5
|
+
/** @ignore */
|
5
6
|
get __hostClass() {
|
6
7
|
return `ax-el-${this.color}-${this.look}`;
|
7
8
|
}
|
@@ -17,4 +18,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
17
18
|
type: HostBinding,
|
18
19
|
args: ['class']
|
19
20
|
}] } });
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFnLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy90YWcvc3JjL2xpYi90YWcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3RhZy9zcmMvbGliL3RhZy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNqRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFdBQV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