@acorex/components 18.12.38 → 18.12.40
Sign up to get free protection for your applications and to get access to all the features.
- package/common/lib/components/button-base-component.class.d.ts +10 -10
- package/common/lib/components/interactive-component.class.d.ts +11 -11
- package/common/lib/types/base/button.type.d.ts +8 -0
- package/common/lib/types/base/color.type.d.ts +7 -0
- package/common/lib/types/base/events.types.d.ts +1 -1
- package/common/lib/types/base/index.d.ts +5 -0
- package/common/lib/types/base/interactive.type.d.ts +13 -0
- package/common/lib/types/base/look.type.d.ts +7 -0
- package/common/lib/types/base/value.type.d.ts +9 -0
- package/esm2022/button-group/lib/button-group.component.mjs +2 -2
- package/esm2022/common/lib/components/base-component.class.mjs +1 -1
- package/esm2022/common/lib/components/button-base-component.class.mjs +11 -11
- package/esm2022/common/lib/components/interactive-component.class.mjs +12 -12
- package/esm2022/common/lib/components/selection-base.component.class.mjs +13 -5
- package/esm2022/common/lib/types/base/button.type.mjs +18 -0
- package/esm2022/common/lib/types/base/color.type.mjs +16 -0
- package/esm2022/common/lib/types/base/events.types.mjs +1 -1
- package/esm2022/common/lib/types/base/index.mjs +6 -1
- package/esm2022/common/lib/types/base/interactive.type.mjs +31 -0
- package/esm2022/common/lib/types/base/look.type.mjs +16 -0
- package/esm2022/common/lib/types/base/value.type.mjs +19 -0
- package/esm2022/form/lib/validation-rule.directive.mjs +1 -1
- package/esm2022/notification/lib/notification.component.mjs +4 -4
- package/esm2022/notification/lib/notification.service.mjs +53 -36
- package/esm2022/otp/lib/otp.component.mjs +2 -2
- package/esm2022/side-menu/lib/side-menu.component.mjs +2 -2
- package/esm2022/tabs/lib/tabs.component.mjs +2 -2
- package/esm2022/toast/lib/toast.component.mjs +2 -2
- package/esm2022/toast/lib/toast.config.mjs +2 -1
- package/esm2022/toast/lib/toast.service.mjs +130 -36
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +2 -2
- package/fesm2022/acorex-components-button-group.mjs +2 -2
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +124 -28
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +54 -37
- package/fesm2022/acorex-components-notification.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-side-menu.mjs +2 -2
- package/fesm2022/acorex-components-side-menu.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-toast.mjs +130 -35
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +2 -2
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/form/lib/validation-rule.directive.d.ts +1 -1
- package/notification/lib/notification.component.d.ts +3 -3
- package/notification/lib/notification.service.d.ts +2 -0
- package/package.json +1 -1
- package/toast/lib/toast.component.d.ts +1 -1
- package/toast/lib/toast.config.d.ts +1 -0
- package/toast/lib/toast.service.d.ts +9 -1
@@ -7,15 +7,15 @@ export class MXInteractiveComponent extends MXBaseComponent {
|
|
7
7
|
constructor() {
|
8
8
|
super(...arguments);
|
9
9
|
/**
|
10
|
-
|
11
|
-
|
10
|
+
* @ignore
|
11
|
+
*/
|
12
12
|
this.onTouchedCallback = noop;
|
13
13
|
this._touched = false;
|
14
14
|
/**
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
* Emits an event whenever the disabled state of the component changes.
|
16
|
+
*
|
17
|
+
* @event
|
18
|
+
*/
|
19
19
|
this.disabledChange = new EventEmitter();
|
20
20
|
this._tabIndex = 0;
|
21
21
|
/**
|
@@ -40,15 +40,15 @@ export class MXInteractiveComponent extends MXBaseComponent {
|
|
40
40
|
this.onTouchedCallback = fn;
|
41
41
|
}
|
42
42
|
/**
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
* Indicates whether the component has been touched.
|
44
|
+
*
|
45
|
+
*/
|
46
46
|
get touched() {
|
47
47
|
return this._touched;
|
48
48
|
}
|
49
49
|
/**
|
50
|
-
|
51
|
-
|
50
|
+
* @ignore
|
51
|
+
*/
|
52
52
|
markAsTouched() {
|
53
53
|
if (!this.touched) {
|
54
54
|
this.onTouchedCallback();
|
@@ -126,4 +126,4 @@ export class MXInteractiveComponent extends MXBaseComponent {
|
|
126
126
|
return AXHtmlUtil.hasFocus(this.getHostElement());
|
127
127
|
}
|
128
128
|
}
|
129
|
-
//# sourceMappingURL=data:application/json;base64,
|
129
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3RpdmUtY29tcG9uZW50LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbW1vbi9zcmMvbGliL2NvbXBvbmVudHMvaW50ZXJhY3RpdmUtY29tcG9uZW50LmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNwRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFNUIsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBRXpELE1BQU0sT0FBTyxzQkFBdUIsU0FBUSxlQUFlO0lBQTNEOztRQUNFOztXQUVHO1FBQ08sc0JBQWlCLEdBQWUsSUFBSSxDQUFDO1FBTXZDLGFBQVEsR0FBRyxLQUFLLEN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NsaWNrRXZlbnQoZTogTW91c2VFdmVudCk6IHZvaWQge1xuICAvLyAgIHRoaXMub25DbGljay5lbWl0KHtcbiAgLy8gICAgIGNvbXBvbmVudDogdGhpcyxcbiAgLy8gICAgIGh0bWxFbGVtZW50OiB0aGlzLmdldEhvc3RFbGVtZW50KCksXG4gIC8vICAgICBuYXRpdmVFdmVudDogZSxcbiAgLy8gICB9KTtcbiAgLy8gfVxuXG4gIGZvY3VzKCkge1xuICAgIEFYSHRtbFV0aWwuZm9jdXNFbGVtZW50KHRoaXMuZ2V0SG9zdEVsZW1lbnQoKSk7XG4gIH1cblxuICBibHVyKCkge1xuICAgIEFYSHRtbFV0aWwuYmx1ckVsZW1lbnQodGhpcy5nZXRIb3N0RWxlbWVudCgpKTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQ2hlY2sgY29tcG9uZW50IGlzIGZvY3VzZWQgb3IgaGFzIGFueSBmb2N1c2VkIGVsZW1lbnQuXG4gICAqL1xuICBoYXNGb2N1cygpOiBib29sZWFuIHtcbiAgICByZXR1cm4gQVhIdG1sVXRpbC5oYXNGb2N1cyh0aGlzLmdldEhvc3RFbGVtZW50KCkpO1xuICB9XG5cbiAgLy8gcHJpdmF0ZSBfZm9jdXNlZCA9IHNpZ25hbChmYWxzZSk7XG5cbiAgLy8gcHJvdGVjdGVkIG1hcmtBc0ZvY3VzZWQoKSB7XG4gIC8vICAgdGhpcy5fZm9jdXNlZC5zZXQodHJ1ZSk7XG4gIC8vIH1cblxuICAvLyBwcm90ZWN0ZWQgbWFya0FzQmx1cmVkKCkge1xuICAvLyAgIHRoaXMuX2ZvY3VzZWQuc2V0KGZhbHNlKTtcbiAgLy8gfVxufVxuIl19
|
@@ -82,11 +82,15 @@ export class MXSelectionValueComponent extends MXValueComponent {
|
|
82
82
|
if (value == null || (isArray && value.length == 0)) {
|
83
83
|
return this.multiple ? [] : null;
|
84
84
|
}
|
85
|
-
const normalizedItems = isArray
|
85
|
+
const normalizedItems = isArray
|
86
|
+
? this.normalizeItemsList(value, true)
|
87
|
+
: this.normalizeItemsList([value], true);
|
86
88
|
if (normalizedItems.length == 0) {
|
87
89
|
return this.multiple ? [] : null;
|
88
90
|
}
|
89
|
-
const result = this.multiple
|
91
|
+
const result = this.multiple
|
92
|
+
? normalizedItems.map((c) => c[this.valueField])
|
93
|
+
: normalizedItems[0][this.valueField];
|
90
94
|
return result;
|
91
95
|
}
|
92
96
|
emitOnValueChangedEvent(oldValue, newValue) {
|
@@ -156,14 +160,18 @@ export class MXSelectionValueComponent extends MXValueComponent {
|
|
156
160
|
this.commitValue([], true);
|
157
161
|
return;
|
158
162
|
}
|
159
|
-
const normalizeItems = Array.isArray(items)
|
163
|
+
const normalizeItems = Array.isArray(items)
|
164
|
+
? this.normalizeItemsList(items)
|
165
|
+
: [this.normalizeItem(items)];
|
160
166
|
const newSelectedItems = this.selectedItems.filter((i) => !normalizeItems.some((n) => n[this.valueField] == i[this.valueField]));
|
161
167
|
this.commitValue(newSelectedItems, true);
|
162
168
|
}
|
163
169
|
selectItems(...items) {
|
164
170
|
if (items && items.length) {
|
165
171
|
let newSelectedItems = Array.isArray(this.value) ? this.value : [this.value];
|
166
|
-
const normalizeItems = Array.isArray(items)
|
172
|
+
const normalizeItems = Array.isArray(items)
|
173
|
+
? this.normalizeItemsList(items)
|
174
|
+
: [this.normalizeItem(items)];
|
167
175
|
if (this.multiple) {
|
168
176
|
newSelectedItems = [...newSelectedItems, ...normalizeItems];
|
169
177
|
}
|
@@ -217,4 +225,4 @@ export class MXSelectionValueComponent extends MXValueComponent {
|
|
217
225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: MXSelectionValueComponent, decorators: [{
|
218
226
|
type: Injectable
|
219
227
|
}] });
|
220
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWJhc2UuY29tcG9uZW50LmNsYXNzLmpzIiwic291cmNlUm9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NzaWduKG9iaiwgaXRlbSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGNvbnN0IGV4aXN0c0l0ZW0gPSBmaW5kQnlrZXkgPyB0aGlzLmdldEl0ZW1CeUtleShrZXkpIDogbnVsbDtcbiAgICAgIGlmIChleGlzdHNJdGVtICYmIGV4aXN0c0l0ZW0gaW5zdGFuY2VvZiBQcm9taXNlKSB7XG4gICAgICAgIG9ialt0aGlzLnZhbHVlRmllbGRdID0ga2V5O1xuICAgICAgICBvYmpbJ2lzTG9hZGluZyddID0gdHJ1ZTtcbiAgICAgICAgb2JqW3RoaXMudGV4dEZpZWxkXSA9ICdMb2FkaW5nJztcbiAgICAgICAgLy9cbiAgICAgICAgZXhpc3RzSXRlbVxuICAgICAgICAgIC50aGVuKChyKSA9PiB7XG4gICAgICAgICAgICBpZiAodHlwZW9mIHIgPT09ICdvYmplY3QnICYmIHIpIHtcbiAgICAgICAgICAgICAgb2JqW3RoaXMudmFsdWVGaWVsZF0gPSByW3RoaXMudmFsdWVGaWVsZF07XG4gICAgICAgICAgICAgIG9ialt0aGlzLnRleHRGaWVsZF0gPSByW3RoaXMudGV4dEZpZWxkXTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIG9ialt0aGlzLnZhbHVlRmllbGRdID0gciB8fCBrZXk7XG4gICAgICAgICAgICAgIG9ialt0aGlzLnRleHRGaWVsZF0gPSByO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pXG4gICAgICAgICAgLmZpbmFsbHkoKCkgPT4ge1xuICAgICAgICAgICAgb2JqWydpc0xvYWRpbmcnXSA9IGZhbHNlO1xuICAgICAgICAgICAgdGhpcy5kYXRhU2VydmljZS5jYWNoZUxpc3RbY2FjaGVLZXldID0gb2JqO1xuICAgICAgICAgICAgdGhpcy5jZHIubWFya0ZvckNoZWNrKCk7XG4gICAgICAgICAgfSk7XG4gICAgICB9IGVsc2UgaWYgKGV4aXN0c0l0ZW0pIHtcbiAgICAgICAgb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xuICAgICAgT2JqZWN0LmFzc2lnbihvYmosIGl0ZW0pO1xuICAgIH0gZWxzZSB7XG4gICAgICBjb25zdCBleGlzdHNJdGVtID0gZmluZEJ5a2V5ID8gdGhpcy5nZXRJdGVtQnlLZXkoa2V5KSA6IG51bGw7XG4gICAgICBpZiAoZXhpc3RzSXRlbSAmJiBleGlzdHNJdGVtIGluc3RhbmNlb2YgUHJvbWlzZSkge1xuICAgICAgICBvYmpbdGhpcy52YWx1ZUZpZWxkXSA9IGtleTtcbiAgICAgICAgb2JqWydpc0xvYWRpbmcnXSA9IHRydWU7XG4gICAgICAgIG9ialt0aGlzLnRleHRGaWVsZF0gPSAnTG9hZGluZyc7XG4gICAgICAgIC8vXG4gICAgICAgIGV4aXN0c0l0ZW1cbiAgICAgICAgICAudGhlbigocikgPT4ge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiByID09PSAnb2JqZWN0JyAmJiByKSB7XG4gICAgICAgICAgICAgIG9ialt0aGlzLnZhbHVlRmllbGRdID0gclt0aGlzLnZhbHVlRmllbGRdO1xuICAgICAgICAgICAgICBvYmpbdGhpcy50ZXh0RmllbGRdID0gclt0aGlzLnRleHRGaWVsZF07XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBvYmpbdGhpcy52YWx1ZUZpZWxkXSA9IHIgfHwga2V5O1xuICAgICAgICAgICAgICBvYmpbdGhpcy50ZXh0RmllbGRdID0gcjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KVxuICAgICAgICAgIC5maW5hbGx5KCgpID0+IHtcbiAgICAgICAgICAgIG9ialsnaXNMb2FkaW5nJ10gPSBmYWxzZTtcbiAgICAgICAgICAgIHRoaXMuZGF0YVNlcnZpY2UuY2FjaGVMaXN0W2NhY2hlS2V5XSA9IG9iajtcbiAgICAgICAgICAgIHRoaXMuY2RyLm1hcmtGb3JDaGVjaygpO1xuICAgICAgICAgIH0pO1xuICAgICAgfSBlbHNlIGlmIChleGlzdHNJdGVtKS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mV0dXJuIGZvcm1hdHRlZFRleHQgfHwgbm9ybWFsaXplSXRlbVt0aGlzLnZhbHVlRmllbGRdO1xuICAvLyB9XG5cbiAgcHJvdGVjdGVkIGdldERpc3BsYXlUZXh0KGl0ZW06IFQpIHtcbiAgICBjb25zdCBub3JtYWxpemVJdGVtID0gdGhpcy5ub3JtYWxpemVJdGVtKGl0ZW0pIGFzIGFueTtcbiAgICBjb25zdCBmb3JtYXR0ZWRUZW1wbGF0ZSA9IHRoaXMuZm9ybWF0U2VydmljZS5mb3JtYXQodGhpcy50ZXh0VGVtcGxhdGUsICdzdHJpbmcnLCBub3JtYWxpemVJdGVtKTtcbiAgICBpZiAodGhpcy50ZXh0VGVtcGxhdGUgJiYgZm9ybWF0dGVkVGVtcGxhdGUgIT0gdGhpcy50ZXh0VGVtcGxhdGUpIHJldHVybiBmb3JtYXR0ZWRUZW1wbGF0ZTtcbiAgICBlbHNlIHJldHVybiBub3JtYWxpemVJdGVtW3RoaXMudGV4dEZpZWxkXSB8fCBub3JtYWxpemVJdGVtW3RoaXMudmFsdWVGaWVsZF07XG4gIH1cblxuICBwcm90ZWN0ZWQgZ2V0VmFsdWUoaXRlbTogVCkge1xuICAgIGNvbnN0IG5vcm1hbGl6ZUl0ZW0gPSB0aGlzLm5vcm1hbGl6ZUl0ZW0oaXRlbSkgYXMgYW55O1xuICAgIHJldHVybiBub3JtYWxpemVJdGVtW3RoaXMudmFsdWVGaWVsZF07XG4gIH1cblxuICBwcm90ZWN0ZWQgY2xlYXJTZWxlY3Rpb25DYWNoZSgpIHtcbiAgICB0aGlzLmRhdGFTZXJ2aWNlLmNhY2hlTGlzdCA9IHt9O1xuICAgIHRoaXMuZGF0YVNlcnZpY2Uuc2VsZWN0ZWRJdGVtcyA9IFtdO1xuICB9XG59XG4iXX0=
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Component, model, output } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class NXButtonComponent {
|
4
|
+
constructor() {
|
5
|
+
this.text = model();
|
6
|
+
this.toggleableChange = output();
|
7
|
+
this.selectedChange = output();
|
8
|
+
}
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: NXButtonComponent, selector: "ng-component", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { text: "textChange", toggleableChange: "toggleableChange", selectedChange: "selectedChange" }, ngImport: i0, template: '', isInline: true }); }
|
11
|
+
}
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXButtonComponent, decorators: [{
|
13
|
+
type: Component,
|
14
|
+
args: [{
|
15
|
+
template: '',
|
16
|
+
}]
|
17
|
+
}] });
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29tbW9uL3NyYy9saWIvdHlwZXMvYmFzZS9idXR0b24udHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBS3pELE1BQU0sT0FBZ0IsaUJBQWlCO0lBSHZDO1FBSUUsU0FBSSxHQUFHLEtBQUssRUFBVSxDQUFDO1FBRXZCLHFCQUFnQixHQUFHLE1BQU0sRUFBVyxDQUFDO1FBQ3JDLG1CQUFjLEdBQUcsTUFBTSxFQUFXLENBQUM7S0FDcEM7OEdBTHFCLGlCQUFpQjtrR0FBakIsaUJBQWlCLDhSQUYzQixFQUFFOzsyRkFFUSxpQkFBaUI7a0JBSHRDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLEVBQUU7aUJBQ2IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIG1vZGVsLCBvdXRwdXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHRlbXBsYXRlOiAnJyxcbn0pXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgTlhCdXR0b25Db21wb25lbnQge1xuICB0ZXh0ID0gbW9kZWw8c3RyaW5nPigpO1xuXG4gIHRvZ2dsZWFibGVDaGFuZ2UgPSBvdXRwdXQ8Ym9vbGVhbj4oKTtcbiAgc2VsZWN0ZWRDaGFuZ2UgPSBvdXRwdXQ8Ym9vbGVhbj4oKTtcbn1cbiJdfQ==
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Component, model } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class NXColorComponent {
|
4
|
+
constructor() {
|
5
|
+
this.color = model('ghost');
|
6
|
+
}
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXColorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
8
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: NXColorComponent, selector: "ng-component", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange" }, ngImport: i0, template: '', isInline: true }); }
|
9
|
+
}
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXColorComponent, decorators: [{
|
11
|
+
type: Component,
|
12
|
+
args: [{
|
13
|
+
template: '',
|
14
|
+
}]
|
15
|
+
}] });
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sb3IudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb21tb24vc3JjL2xpYi90eXBlcy9iYXNlL2NvbG9yLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBTWpELE1BQU0sT0FBZ0IsZ0JBQWdCO0lBSHRDO1FBSUUsVUFBSyxHQUFHLEtBQUssQ0FBbUIsT0FBTyxDQUFDLENBQUM7S0FDMUM7OEdBRnFCLGdCQUFnQjtrR0FBaEIsZ0JBQWdCLDJOQUYxQixFQUFFOzsyRkFFUSxnQkFBZ0I7a0JBSHJDLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLEVBQUU7aUJBQ2IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIG1vZGVsIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBWFN0eWxlQ29sb3JUeXBlIH0gZnJvbSAnLi4vLi4vY2xhc3Nlcy9zdHlsZXMuY2xhc3MnO1xuXG5AQ29tcG9uZW50KHtcbiAgdGVtcGxhdGU6ICcnLFxufSlcbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBOWENvbG9yQ29tcG9uZW50IHtcbiAgY29sb3IgPSBtb2RlbDxBWFN0eWxlQ29sb3JUeXBlPignZ2hvc3QnKTtcbn1cbiJdfQ==
|
@@ -16,4 +16,4 @@ export class NXNativeEvent extends NXEvent {
|
|
16
16
|
*/
|
17
17
|
export class NXClickEvent extends NXNativeEvent {
|
18
18
|
}
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
19
|
+
//# source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jbGFzcyBOWENsaWNrRXZlbnQ8VCBleHRlbmRzIE5YQ29tcG9uZW50ID0gTlhDb21wb25lbnQ+IGV4dGVuZHMgTlhOYXRpdmVFdmVudDxULCBNb3VzZUV2ZW50PiB7fVxuIl19
|
@@ -1,3 +1,8 @@
|
|
1
|
+
export * from './button.type';
|
2
|
+
export * from './color.type';
|
1
3
|
export * from './component.types';
|
2
4
|
export * from './events.types';
|
3
|
-
|
5
|
+
export * from './interactive.type';
|
6
|
+
export * from './look.type';
|
7
|
+
export * from './value.type';
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29tbW9uL3NyYy9saWIvdHlwZXMvYmFzZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYnV0dG9uLnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9jb2xvci50eXBlJztcbmV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50LnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vZXZlbnRzLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJhY3RpdmUudHlwZSc7XG5leHBvcnQgKiBmcm9tICcuL2xvb2sudHlwZSc7XG5leHBvcnQgKiBmcm9tICcuL3ZhbHVlLnR5cGUnO1xuIl19
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { AXHtmlUtil } from '@acorex/core/utils';
|
2
|
+
import { Component, model, output } from '@angular/core';
|
3
|
+
import { NXComponent } from './component.types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export class NXInteractiveComponent extends NXComponent {
|
6
|
+
constructor() {
|
7
|
+
super(...arguments);
|
8
|
+
this.disabled = model(false);
|
9
|
+
this.tabIndex = model(0);
|
10
|
+
this.onFocus = output();
|
11
|
+
this.onBlur = output();
|
12
|
+
}
|
13
|
+
focus() {
|
14
|
+
AXHtmlUtil.focusElement(this.nativeElement);
|
15
|
+
}
|
16
|
+
blur() {
|
17
|
+
AXHtmlUtil.blurElement(this.nativeElement);
|
18
|
+
}
|
19
|
+
hasFocus() {
|
20
|
+
return AXHtmlUtil.hasFocus(this.nativeElement);
|
21
|
+
}
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXInteractiveComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: NXInteractiveComponent, selector: "ng-component", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", tabIndex: "tabIndexChange", onFocus: "onFocus", onBlur: "onBlur" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
24
|
+
}
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXInteractiveComponent, decorators: [{
|
26
|
+
type: Component,
|
27
|
+
args: [{
|
28
|
+
template: '',
|
29
|
+
}]
|
30
|
+
}] });
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlI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ttQkFBQztvQkFDVCxRQUFRLEVBQUUsRUFBRTtpQkFDYiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFYSHRtbFV0aWwgfSBmcm9tICdAYWNvcmV4L2NvcmUvdXRpbHMnO1xuaW1wb3J0IHsgQ29tcG9uZW50LCBtb2RlbCwgb3V0cHV0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBOWENvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50LnR5cGVzJztcblxuQENvbXBvbmVudCh7XG4gIHRlbXBsYXRlOiAnJyxcbn0pXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgTlhJbnRlcmFjdGl2ZUNvbXBvbmVudCBleHRlbmRzIE5YQ29tcG9uZW50IHtcbiAgZGlzYWJsZWQgPSBtb2RlbDxib29sZWFuPihmYWxzZSk7XG4gIHRhYkluZGV4ID0gbW9kZWw8bnVtYmVyPigwKTtcblxuICBvbkZvY3VzID0gb3V0cHV0KCk7XG4gIG9uQmx1ciA9IG91dHB1dCgpO1xuXG4gIGZvY3VzKCkge1xuICAgIEFYSHRtbFV0aWwuZm9jdXNFbGVtZW50KHRoaXMubmF0aXZlRWxlbWVudCk7XG4gIH1cblxuICBibHVyKCkge1xuICAgIEFYSHRtbFV0aWwuYmx1ckVsZW1lbnQodGhpcy5uYXRpdmVFbGVtZW50KTtcbiAgfVxuXG4gIGhhc0ZvY3VzKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBBWEh0bWxVdGlsLmhhc0ZvY3VzKHRoaXMubmF0aXZlRWxlbWVudCk7XG4gIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Component, model } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class NXLookComponent {
|
4
|
+
constructor() {
|
5
|
+
this.look = model('solid');
|
6
|
+
}
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXLookComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
8
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: NXLookComponent, selector: "ng-component", inputs: { look: { classPropertyName: "look", publicName: "look", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { look: "lookChange" }, ngImport: i0, template: '', isInline: true }); }
|
9
|
+
}
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXLookComponent, decorators: [{
|
11
|
+
type: Component,
|
12
|
+
args: [{
|
13
|
+
template: '',
|
14
|
+
}]
|
15
|
+
}] });
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9vay50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbW1vbi9zcmMvbGliL3R5cGVzL2Jhc2UvbG9vay50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU1qRCxNQUFNLE9BQWdCLGVBQWU7SUFIckM7UUFJRSxTQUFJLEdBQUcsS0FBSyxDQUFrQixPQUFPLENBQUMsQ0FBQztLQUN4Qzs4R0FGcUIsZUFBZTtrR0FBZixlQUFlLHNOQUZ6QixFQUFFOzsyRkFFUSxlQUFlO2tCQUhwQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxFQUFFO2lCQUNiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBtb2RlbCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhTdHlsZUxvb2tUeXBlIH0gZnJvbSAnLi4vLi4vY2xhc3Nlcy9zdHlsZXMuY2xhc3MnO1xuXG5AQ29tcG9uZW50KHtcbiAgdGVtcGxhdGU6ICcnLFxufSlcbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBOWExvb2tDb21wb25lbnQge1xuICBsb29rID0gbW9kZWw8QVhTdHlsZUxvb2tUeXBlPignc29saWQnKTtcbn1cbiJdfQ==
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Component, model, output } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class NXValueComponent {
|
4
|
+
constructor() {
|
5
|
+
this.readonly = model();
|
6
|
+
this.name = model();
|
7
|
+
this.value = model();
|
8
|
+
this.onValueChanged = output();
|
9
|
+
}
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
11
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: NXValueComponent, selector: "ng-component", inputs: { readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { readonly: "readonlyChange", name: "nameChange", value: "valueChange", onValueChanged: "onValueChanged" }, ngImport: i0, template: '', isInline: true }); }
|
12
|
+
}
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: NXValueComponent, decorators: [{
|
14
|
+
type: Component,
|
15
|
+
args: [{
|
16
|
+
template: '',
|
17
|
+
}]
|
18
|
+
}] });
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb21tb24vc3JjL2xpYi90eXBlcy9iYXNlL3ZhbHVlLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUt6RCxNQUFNLE9BQWdCLGdCQUFnQjtJQUh0QztRQUlFLGFBQVEsR0FBRyxLQUFLLEVBQVcsQ0FBQztRQUM1QixTQUFJLEdBQUcsS0FBSyxFQUFVLENBQUM7UUFDdkIsVUFBSyxHQUFHLEtBQUssRUFBRSxDQUFDO1FBRWhCLG1CQUFjLEdBQUcsTUFBTSxFQUFFLENBQUM7S0FDM0I7OEdBTnFCLGdCQUFnQjtrR0FBaEIsZ0JBQWdCLG1pQkFGMUIsRUFBRTs7MkZBRVEsZ0JBQWdCO2tCQUhyQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxFQUFFO2lCQUNiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBtb2RlbCwgb3V0cHV0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICB0ZW1wbGF0ZTogJycsXG59KVxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIE5YVmFsdWVDb21wb25lbnQge1xuICByZWFkb25seSA9IG1vZGVsPGJvb2xlYW4+KCk7XG4gIG5hbWUgPSBtb2RlbDxzdHJpbmc+KCk7XG4gIHZhbHVlID0gbW9kZWwoKTtcblxuICBvblZhbHVlQ2hhbmdlZCA9IG91dHB1dCgpO1xufVxuIl19
|
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
33
33
|
}], message: [{
|
34
34
|
type: Input
|
35
35
|
}] } });
|
36
|
-
//# source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pb25zIH0pO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgdGhpcy5ob3N0LnJlbW92ZVZhbGlkYXRpb25SdWxlKHtcbiAgICAgIHJ1bGU6IHRoaXMucnVsZSxcbiAgICAgIG9wdGlvbnM6IHRoaXMucnVsZU9wdGlvbnMsXG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIGdldCBydWxlT3B0aW9ucygpOiBBWFZhbGlkYXRpb25SdWxlT3B0aW9ucyB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oeyBtZXNzYWdlOiB0aGlzLm1lc3NhZ2UsIG5hbWU6IHRoaXMuaG9zdC5uYW1lIH0sIHRoaXMub3B0aW9ucyk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { AXClosbaleComponent, MXBaseComponent } from '@acorex/components/common';
|
2
2
|
import { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';
|
3
3
|
import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
4
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Inject, TemplateRef, ViewEncapsulation } from '@angular/core';
|
4
|
+
import { ChangeDetectionStrategy, Component, HostBinding, Inject, TemplateRef, ViewEncapsulation, } from '@angular/core';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
import * as i1 from "@angular/cdk/dialog";
|
7
7
|
import * as i2 from "@angular/cdk/portal";
|
@@ -86,8 +86,8 @@ export class AXNotificationComponent extends MXBaseComponent {
|
|
86
86
|
return `ax-${this.config.color}`;
|
87
87
|
}
|
88
88
|
/**
|
89
|
-
|
90
|
-
|
89
|
+
* Closes the dialog and provides the component and HTML element for reference.
|
90
|
+
*/
|
91
91
|
close() {
|
92
92
|
this.dialogRef.close({
|
93
93
|
component: this,
|
@@ -107,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
107
107
|
type: HostBinding,
|
108
108
|
args: ['class']
|
109
109
|
}] } });
|
110
|
-
//# sourceMappingURL=data:application/json;base64,
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9ub3RpZmljYXRpb24vc3JjL2xpYi9ub3RpZmljYXRpb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL25vdGlmaWNhdGlvbi9zcmMvbGliL25vdGlmaWNhdGlvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQXlCLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ3hHLE9BQU8sRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDN0QsT0FBTyxFQUFFLGVBQWUsRUFBeUIsY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDN0YsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsV0FBVyxFQUNYLE1BQU0sRUFDTixXQUFXLEVBQ1gsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDOzs7Ozs7Ozs7QUFHdkI7Ozs7R0FJRztBQVNILE1BQU0sT0FBTyx1QkFBd0IsU0FBUSxlQUFlO0lBTzFEOztPQUVHO0lBQ0gsWUFFUyxNQUEwQixFQUMxQixTQUEyQztRQUVsRCxLQUFLLEVBQUUsQ0FBQztRQUhELFdBQU0sR0FBTixNQUFNLENBQW9CO1FBQzFCLGNBQVMsR0FBVCxTQUFTLENBQWtDO0lBR3BELENBQUM7SUFFRCxjQUFjO0lBQ0wsUUFBUTtRQUNmLEtBQUss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