@acorex/components 5.0.48 → 5.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/base/mixin/mixin.class.mjs +2 -2
- package/esm2020/lib/base/mixin/value-mixin.class.mjs +1 -1
- package/esm2020/lib/calendar/calendar.class.mjs +19 -2
- package/esm2020/lib/calendar/calendar.component.mjs +24 -23
- package/esm2020/lib/datepicker/datepicker.component.mjs +8 -6
- package/esm2020/lib/decorators/content.component.mjs +1 -1
- package/esm2020/lib/label/label.component.mjs +8 -5
- package/esm2020/lib/tabs/tab-item.component.mjs +45 -28
- package/esm2020/lib/tabs/tabs.class.mjs +1 -1
- package/esm2020/lib/tabs/tabs.component.mjs +25 -12
- package/fesm2015/acorex-components.mjs +117 -67
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +117 -67
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/base/mixin/mixin.class.d.ts +1 -28
- package/lib/calendar/calendar.class.d.ts +4 -0
- package/lib/calendar/calendar.component.d.ts +4 -4
- package/lib/datepicker/datepicker.component.d.ts +2 -33
- package/lib/label/label.component.d.ts +2 -1
- package/lib/tabs/tab-item.component.d.ts +39 -6
- package/lib/tabs/tabs.class.d.ts +2 -2
- package/lib/tabs/tabs.component.d.ts +6 -3
- package/package.json +1 -1
|
@@ -1050,7 +1050,7 @@ const TEXTBOX_OUTPUT = [...VALUE_OUTPUT];
|
|
|
1050
1050
|
const AXBaseComponentMixin = _BaseComponenetMixin(AXBaseComponent);
|
|
1051
1051
|
const AXSizableComponentMixin = _SizableComponenetMixin(_BaseComponenetMixin(AXBaseComponent));
|
|
1052
1052
|
const AXInteractiveComponenetMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(AXBaseComponent));
|
|
1053
|
-
const AXBaseClickableMixin =
|
|
1053
|
+
const AXBaseClickableMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
|
|
1054
1054
|
const AXBaseButtonMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ClickableComponenetMixin(_ColorLookComponentMixin(_ButtonComponentMixin(AXBaseComponent)))));
|
|
1055
1055
|
const AXBaseValueComponentMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXBaseComponent)));
|
|
1056
1056
|
const AXBaseTextBoxMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXBaseComponent))));
|
|
@@ -2057,6 +2057,8 @@ class AXCalendarBaseComponent extends AXBaseComponent {
|
|
|
2057
2057
|
super(elementRef, cdr);
|
|
2058
2058
|
this.activeViewChange = new EventEmitter();
|
|
2059
2059
|
this._activeView = 'days';
|
|
2060
|
+
this.typeChange = new EventEmitter();
|
|
2061
|
+
this._type = AXConfig.get(`dateTime.calendar`);
|
|
2060
2062
|
this.depthChange = new EventEmitter();
|
|
2061
2063
|
this._depth = 'days';
|
|
2062
2064
|
this.minChange = new EventEmitter();
|
|
@@ -2070,6 +2072,15 @@ class AXCalendarBaseComponent extends AXBaseComponent {
|
|
|
2070
2072
|
set activeView(v) {
|
|
2071
2073
|
this._setOption({ name: 'activeView', value: v });
|
|
2072
2074
|
}
|
|
2075
|
+
get type() {
|
|
2076
|
+
return this._type || AXConfig.get(`dateTime.calendar`);
|
|
2077
|
+
}
|
|
2078
|
+
set type(v) {
|
|
2079
|
+
this._setOption({
|
|
2080
|
+
name: 'type',
|
|
2081
|
+
value: v
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2073
2084
|
get depth() {
|
|
2074
2085
|
return this._depth;
|
|
2075
2086
|
}
|
|
@@ -2115,6 +2126,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
2115
2126
|
type: Output
|
|
2116
2127
|
}], activeView: [{
|
|
2117
2128
|
type: Input
|
|
2129
|
+
}], typeChange: [{
|
|
2130
|
+
type: Output
|
|
2131
|
+
}], type: [{
|
|
2132
|
+
type: Input
|
|
2118
2133
|
}], depthChange: [{
|
|
2119
2134
|
type: Output
|
|
2120
2135
|
}], depth: [{
|
|
@@ -2142,16 +2157,16 @@ const CALENDAR_INPUTS = [
|
|
|
2142
2157
|
'min',
|
|
2143
2158
|
'max',
|
|
2144
2159
|
'disabledDates',
|
|
2160
|
+
'type',
|
|
2145
2161
|
'holidayDates',
|
|
2146
2162
|
];
|
|
2147
|
-
const CALENDAR_OUTPUTS = ['depthChange'];
|
|
2163
|
+
const CALENDAR_OUTPUTS = ['depthChange', 'typeChange'];
|
|
2148
2164
|
|
|
2149
2165
|
const AXCalendarComponentMixin = _ClickableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent)));
|
|
2150
2166
|
class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
2151
2167
|
constructor(elementRef, cdr) {
|
|
2152
2168
|
super(elementRef, cdr);
|
|
2153
2169
|
this.cdr = cdr;
|
|
2154
|
-
this._type = AXConfig.get(`dateTime.calendar`);
|
|
2155
2170
|
this._today = new AXDateTime(new Date(), this.type);
|
|
2156
2171
|
this._navText = '';
|
|
2157
2172
|
this._todayText = '';
|
|
@@ -2174,22 +2189,21 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2174
2189
|
return new AXDateTimeRange(current.startOf('month'), current.endOf('month'));
|
|
2175
2190
|
}
|
|
2176
2191
|
}
|
|
2177
|
-
|
|
2178
|
-
|
|
2192
|
+
_initValues() {
|
|
2193
|
+
this._today = new AXDateTime(new Date(), this.type);
|
|
2194
|
+
this._dayNames = this._today.calendar.dayShortNames;
|
|
2179
2195
|
}
|
|
2180
|
-
|
|
2181
|
-
this.
|
|
2182
|
-
this.
|
|
2196
|
+
_refresh() {
|
|
2197
|
+
this._initValues();
|
|
2198
|
+
this.navTo(this.value || this._today);
|
|
2183
2199
|
}
|
|
2184
2200
|
onInit() {
|
|
2185
|
-
this.
|
|
2186
|
-
this._dayNames = this._today.calendar.dayShortNames;
|
|
2201
|
+
this._initValues();
|
|
2187
2202
|
this.goToday();
|
|
2188
2203
|
}
|
|
2189
2204
|
_genearteSlots() {
|
|
2190
2205
|
if (!this._viewStartDate)
|
|
2191
2206
|
return;
|
|
2192
|
-
debugger;
|
|
2193
2207
|
const vr = this._viewRange;
|
|
2194
2208
|
// just for tailwind
|
|
2195
2209
|
//'ax-col-start-1','ax-col-start-2','ax-col-start-3','ax-col-start-4','ax-col-start-5','ax-col-start-6','ax-col-start-7'
|
|
@@ -2284,21 +2298,21 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2284
2298
|
if (slot.disabled || this.disabled)
|
|
2285
2299
|
return;
|
|
2286
2300
|
if (this.activeView == 'days') {
|
|
2287
|
-
this.
|
|
2301
|
+
this._setDate(slot.date);
|
|
2288
2302
|
}
|
|
2289
2303
|
else if (this.activeView == 'months' && this.depth == 'days') {
|
|
2290
2304
|
this.activeView = 'days';
|
|
2291
2305
|
this.navTo(slot.date);
|
|
2292
2306
|
}
|
|
2293
2307
|
else if (this.activeView == 'months' && this.depth == 'months') {
|
|
2294
|
-
this.
|
|
2308
|
+
this._setDate(slot.date);
|
|
2295
2309
|
}
|
|
2296
2310
|
else if (this.activeView == 'years' && (this.depth == 'days' || this.depth == 'months')) {
|
|
2297
2311
|
this.activeView = 'months';
|
|
2298
2312
|
this.navTo(slot.date);
|
|
2299
2313
|
}
|
|
2300
2314
|
else if (this.activeView == 'years' && this.depth == 'years') {
|
|
2301
|
-
this.
|
|
2315
|
+
this._setDate(slot.date);
|
|
2302
2316
|
}
|
|
2303
2317
|
this.onSlotClick.emit({
|
|
2304
2318
|
component: this,
|
|
@@ -2316,13 +2330,16 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2316
2330
|
if (option.name == 'depth' || option.name == 'activeView') {
|
|
2317
2331
|
this._genearteSlots();
|
|
2318
2332
|
}
|
|
2333
|
+
if (option.name == 'type') {
|
|
2334
|
+
this._refresh();
|
|
2335
|
+
}
|
|
2319
2336
|
}
|
|
2320
2337
|
_onValueChanged(oldValue, newValue) {
|
|
2321
2338
|
this._viewStartDate = new AXDateTime(newValue, this.type);
|
|
2322
2339
|
this._genearteSlots();
|
|
2323
2340
|
}
|
|
2324
2341
|
_handleGoToday() {
|
|
2325
|
-
this.
|
|
2342
|
+
this._setDate(this._today.date);
|
|
2326
2343
|
this.goToday();
|
|
2327
2344
|
}
|
|
2328
2345
|
next() {
|
|
@@ -2336,7 +2353,6 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2336
2353
|
(_a = this._getHostElement().querySelector('.ax-calendar-slots>div')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2337
2354
|
}
|
|
2338
2355
|
_navNextPrev(prev) {
|
|
2339
|
-
debugger;
|
|
2340
2356
|
const sign = (prev ? -1 : 1);
|
|
2341
2357
|
if (this.activeView == 'days')
|
|
2342
2358
|
this.navTo(this._viewStartDate.add('month', sign * 1));
|
|
@@ -2346,10 +2362,10 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2346
2362
|
this.navTo(this._viewStartDate.add('year', sign * 10));
|
|
2347
2363
|
}
|
|
2348
2364
|
goToday() {
|
|
2349
|
-
this.navTo(this._today
|
|
2365
|
+
this.navTo(this._today);
|
|
2350
2366
|
}
|
|
2351
2367
|
navTo(date) {
|
|
2352
|
-
this._viewStartDate = AXDateTime.convert(date, this._today.calendar.name());
|
|
2368
|
+
this._viewStartDate = AXDateTime.convert(date, this._today.calendar.name()).startOf();
|
|
2353
2369
|
this._genearteSlots();
|
|
2354
2370
|
}
|
|
2355
2371
|
get __hostClass() {
|
|
@@ -2358,6 +2374,9 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2358
2374
|
};
|
|
2359
2375
|
return Object.entries(_classes).filter(c => c[1]).map(c => c[0]).join(' ');
|
|
2360
2376
|
}
|
|
2377
|
+
_setDate(value) {
|
|
2378
|
+
this.value = AXDateTime.convert(value, this._today.calendar.name()).startOf().date;
|
|
2379
|
+
}
|
|
2361
2380
|
isDisabled(date) {
|
|
2362
2381
|
if (Array.isArray(this.disabledDates) && this.disabledDates.length != 0) {
|
|
2363
2382
|
;
|
|
@@ -2382,13 +2401,11 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2382
2401
|
}
|
|
2383
2402
|
}
|
|
2384
2403
|
AXCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXCalendarComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2385
|
-
AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXCalendarComponent, selector: "ax-calendar", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", disabled: "disabled", tabIndex: "tabIndex", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates",
|
|
2404
|
+
AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXCalendarComponent, selector: "ax-calendar", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", disabled: "disabled", tabIndex: "tabIndex", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", type: "type", holidayDates: "holidayDates" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", depthChange: "depthChange", typeChange: "typeChange", onSlotClick: "onSlotClick" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-calendar-header\">\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText\" color=\"light\" look=\"blank\" (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n <ax-button class=\"ax-prev-button\" color=\"light\" look=\"blank\" (onClick)=\"_handlePrevClick($event)\" [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button class=\"ax-next-button\" color=\"light\" look=\"blank\" (onClick)=\"_handleNextClick($event)\" [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\" \r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\" \r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n</div>\r\n<div class=\"ax-calendar-footer\">\r\n <ax-button class=\"dark:ax-text-danger\" [text]=\"_todayText\" color=\"dark\" look=\"blank\" size=\"sm\" (onClick)=\"_handleGoToday()\" [disabled]=\"disabled\"></ax-button>\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2386
2405
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXCalendarComponent, decorators: [{
|
|
2387
2406
|
type: Component,
|
|
2388
2407
|
args: [{ selector: 'ax-calendar', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...VALUE_INPUTS, ...INTERACTIVE_INPUTS, ...CALENDAR_INPUTS], outputs: [...VALUE_OUTPUT, ...INTERACTIVE_OUTPUT, ...CALENDAR_OUTPUTS], encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-calendar-header\">\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText\" color=\"light\" look=\"blank\" (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n <ax-button class=\"ax-prev-button\" color=\"light\" look=\"blank\" (onClick)=\"_handlePrevClick($event)\" [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button class=\"ax-next-button\" color=\"light\" look=\"blank\" (onClick)=\"_handleNextClick($event)\" [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\" \r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\" \r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n</div>\r\n<div class=\"ax-calendar-footer\">\r\n <ax-button class=\"dark:ax-text-danger\" [text]=\"_todayText\" color=\"dark\" look=\"blank\" size=\"sm\" (onClick)=\"_handleGoToday()\" [disabled]=\"disabled\"></ax-button>\r\n</div>" }]
|
|
2389
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
2390
|
-
type: Input
|
|
2391
|
-
}], onSlotClick: [{
|
|
2408
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onSlotClick: [{
|
|
2392
2409
|
type: Output
|
|
2393
2410
|
}], __hostClass: [{
|
|
2394
2411
|
type: HostBinding,
|
|
@@ -3703,7 +3720,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
3703
3720
|
args: ['keydown', ['$event']]
|
|
3704
3721
|
}] } });
|
|
3705
3722
|
|
|
3706
|
-
const AXBaseDatePickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(
|
|
3723
|
+
const AXBaseDatePickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent)));
|
|
3707
3724
|
class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
3708
3725
|
constructor(_elementRef, _cdr, _platform) {
|
|
3709
3726
|
super(_elementRef, _cdr);
|
|
@@ -3735,7 +3752,7 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3735
3752
|
this.toggle();
|
|
3736
3753
|
}
|
|
3737
3754
|
_onValueChanged(oldValue, newValue) {
|
|
3738
|
-
this.displayText = newValue ? AXDateTime.convert(newValue).format(this._format) : null;
|
|
3755
|
+
this.displayText = newValue ? AXDateTime.convert(newValue, this.type).format(this._format) : null;
|
|
3739
3756
|
this.close();
|
|
3740
3757
|
}
|
|
3741
3758
|
_handleOnKeydownEvent(e) {
|
|
@@ -3836,10 +3853,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3836
3853
|
}
|
|
3837
3854
|
}
|
|
3838
3855
|
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$2.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
3839
|
-
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\" (mouseup)=\"_handleOnInputClickEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" >\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span >{{placeholder || 'Choose a date'}}</span>\r\n <i class=\"ax-ic ax-ic-close \"\r\n (click)=\"close()\" tabindex=\"1\"></i>\r\n </div>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [min]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\">\r\n </ax-calendar>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "
|
|
3856
|
+
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\" (mouseup)=\"_handleOnInputClickEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" >\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span >{{placeholder || 'Choose a date'}}</span>\r\n <i class=\"ax-ic ax-ic-close \"\r\n (click)=\"close()\" tabindex=\"1\"></i>\r\n </div>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [min]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\" [type]=\"type\">\r\n </ax-calendar>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "type", "holidayDates"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange", "typeChange", "onSlotClick"] }], directives: [{ type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3840
3857
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
|
3841
3858
|
type: Component,
|
|
3842
|
-
args: [{ selector: 'ax-date-picker', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\" (mouseup)=\"_handleOnInputClickEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" >\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span >{{placeholder || 'Choose a date'}}</span>\r\n <i class=\"ax-ic ax-ic-close \"\r\n (click)=\"close()\" tabindex=\"1\"></i>\r\n </div>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [min]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\">\r\n </ax-calendar>\r\n </div>\r\n</ax-popover>" }]
|
|
3859
|
+
args: [{ selector: 'ax-date-picker', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\" (mouseup)=\"_handleOnInputClickEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" >\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span >{{placeholder || 'Choose a date'}}</span>\r\n <i class=\"ax-ic ax-ic-close \"\r\n (click)=\"close()\" tabindex=\"1\"></i>\r\n </div>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [min]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\" [type]=\"type\">\r\n </ax-calendar>\r\n </div>\r\n</ax-popover>" }]
|
|
3843
3860
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
3844
3861
|
type: ViewChild,
|
|
3845
3862
|
args: [AXPopoverComponent, { static: true }]
|
|
@@ -3850,6 +3867,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
3850
3867
|
type: Output
|
|
3851
3868
|
}], format: [{
|
|
3852
3869
|
type: Input
|
|
3870
|
+
}], placeholder: [{
|
|
3871
|
+
type: Input
|
|
3853
3872
|
}] } });
|
|
3854
3873
|
|
|
3855
3874
|
class AXPopoverModule {
|
|
@@ -4829,11 +4848,13 @@ class AXLabelComponent extends AXBaseComponentMixin {
|
|
|
4829
4848
|
}
|
|
4830
4849
|
}
|
|
4831
4850
|
AXLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4832
|
-
AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXLabelComponent, selector: "ax-label", usesInheritance: true, ngImport: i0, template: "<label [attr.for]=\"target\">\r\n <ng-content></ng-content>\r\n</label>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4851
|
+
AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXLabelComponent, selector: "ax-label", inputs: { class: "class" }, usesInheritance: true, ngImport: i0, template: "<label [attr.for]=\"target\" [ngClass]=\"class\">\r\n <ng-content></ng-content>\r\n</label>", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4833
4852
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
4834
4853
|
type: Component,
|
|
4835
|
-
args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label [attr.for]=\"target\">\r\n <ng-content></ng-content>\r\n</label>" }]
|
|
4836
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }
|
|
4854
|
+
args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label [attr.for]=\"target\" [ngClass]=\"class\">\r\n <ng-content></ng-content>\r\n</label>" }]
|
|
4855
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
|
|
4856
|
+
type: Input
|
|
4857
|
+
}] } });
|
|
4837
4858
|
|
|
4838
4859
|
const COMPONENT$a = [AXLabelComponent];
|
|
4839
4860
|
const MODULES$a = [CommonModule];
|
|
@@ -5994,42 +6015,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
5994
6015
|
}]
|
|
5995
6016
|
}] });
|
|
5996
6017
|
|
|
5997
|
-
|
|
6018
|
+
const AXBaseTabItemMixin = _ClickableComponenetMixin(AXBaseComponent);
|
|
6019
|
+
class AXTabItemComponent extends AXBaseTabItemMixin {
|
|
5998
6020
|
constructor(elementRef, cdr) {
|
|
5999
6021
|
super(elementRef, cdr);
|
|
6000
|
-
this.width = false;
|
|
6001
6022
|
this.activeChange = new EventEmitter();
|
|
6002
6023
|
this._active = false;
|
|
6024
|
+
this.disabledChange = new EventEmitter();
|
|
6025
|
+
this._disabled = false;
|
|
6003
6026
|
}
|
|
6004
6027
|
get active() {
|
|
6005
6028
|
return this._active;
|
|
6006
6029
|
}
|
|
6007
|
-
set active(
|
|
6008
|
-
this.
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6030
|
+
set active(value) {
|
|
6031
|
+
this._setOption({
|
|
6032
|
+
name: 'active',
|
|
6033
|
+
value
|
|
6034
|
+
});
|
|
6012
6035
|
}
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
// }
|
|
6021
|
-
__hostClick(e) {
|
|
6022
|
-
this.onClick.emit({
|
|
6023
|
-
component: this,
|
|
6024
|
-
htmlElement: this._getHostElement(),
|
|
6025
|
-
nativeEvent: e
|
|
6036
|
+
get disabled() {
|
|
6037
|
+
return this._disabled;
|
|
6038
|
+
}
|
|
6039
|
+
set disabled(value) {
|
|
6040
|
+
this._setOption({
|
|
6041
|
+
name: 'disabled',
|
|
6042
|
+
value
|
|
6026
6043
|
});
|
|
6027
6044
|
}
|
|
6045
|
+
__hostClick(e) {
|
|
6046
|
+
if (!this.disabled) {
|
|
6047
|
+
this.onClick.emit({
|
|
6048
|
+
component: this,
|
|
6049
|
+
htmlElement: this._getHostElement(),
|
|
6050
|
+
nativeEvent: e
|
|
6051
|
+
});
|
|
6052
|
+
}
|
|
6053
|
+
}
|
|
6054
|
+
_onOptionChanged(option) {
|
|
6055
|
+
const classListRef = this._getHostElement().classList;
|
|
6056
|
+
if (option.name == 'disabled') {
|
|
6057
|
+
option.newValue ? classListRef.add('ax-state-disabled') : classListRef.remove('ax-state-disabled');
|
|
6058
|
+
}
|
|
6059
|
+
if (option.name == 'active') {
|
|
6060
|
+
option.newValue ? classListRef.add('ax-state-active') : classListRef.remove('ax-state-active');
|
|
6061
|
+
}
|
|
6062
|
+
}
|
|
6028
6063
|
}
|
|
6029
6064
|
AXTabItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXTabItemComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6030
|
-
AXTabItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXTabItemComponent, selector: "ax-tab-item", inputs: { text: "text",
|
|
6065
|
+
AXTabItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXTabItemComponent, selector: "ax-tab-item", inputs: { text: "text", key: "key", active: "active", disabled: "disabled" }, outputs: { activeChange: "activeChange", disabledChange: "disabledChange" }, host: { listeners: { "click": "__hostClick($event)" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, static: true }], viewQueries: [{ propertyName: "template", first: true, predicate: ["content"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
6031
6066
|
<ng-container *ngIf="headerTemplate;else header">
|
|
6032
|
-
<ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ $implicit: {text,active} }"></ng-container>
|
|
6067
|
+
<ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ $implicit: {text,key,active,disabled} }"></ng-container>
|
|
6033
6068
|
</ng-container>
|
|
6034
6069
|
<!-- <ng-container *ngIf="headerTemplate;else header">
|
|
6035
6070
|
<ng-content select="ax-header">
|
|
@@ -6051,7 +6086,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
6051
6086
|
selector: 'ax-tab-item',
|
|
6052
6087
|
template: `
|
|
6053
6088
|
<ng-container *ngIf="headerTemplate;else header">
|
|
6054
|
-
<ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ $implicit: {text,active} }"></ng-container>
|
|
6089
|
+
<ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ $implicit: {text,key,active,disabled} }"></ng-container>
|
|
6055
6090
|
</ng-container>
|
|
6056
6091
|
<!-- <ng-container *ngIf="headerTemplate;else header">
|
|
6057
6092
|
<ng-content select="ax-header">
|
|
@@ -6072,9 +6107,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
6072
6107
|
}]
|
|
6073
6108
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
6074
6109
|
type: Input
|
|
6075
|
-
}],
|
|
6076
|
-
type: Input
|
|
6077
|
-
}], width: [{
|
|
6110
|
+
}], key: [{
|
|
6078
6111
|
type: Input
|
|
6079
6112
|
}], template: [{
|
|
6080
6113
|
type: ViewChild,
|
|
@@ -6086,6 +6119,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
6086
6119
|
type: Output
|
|
6087
6120
|
}], active: [{
|
|
6088
6121
|
type: Input
|
|
6122
|
+
}], disabledChange: [{
|
|
6123
|
+
type: Output
|
|
6124
|
+
}], disabled: [{
|
|
6125
|
+
type: Input
|
|
6089
6126
|
}], __hostClick: [{
|
|
6090
6127
|
type: HostListener,
|
|
6091
6128
|
args: ['click', ['$event']]
|
|
@@ -6099,6 +6136,15 @@ class AXTabsComponent extends AXBaseComponent {
|
|
|
6099
6136
|
this._isUserInteraction = false;
|
|
6100
6137
|
this.onActiveTabChanged = new EventEmitter();
|
|
6101
6138
|
}
|
|
6139
|
+
get items() {
|
|
6140
|
+
return this._contentTabs.toArray();
|
|
6141
|
+
}
|
|
6142
|
+
get selectedIndex() {
|
|
6143
|
+
return this.items.findIndex(c => c.active);
|
|
6144
|
+
}
|
|
6145
|
+
get selectedItem() {
|
|
6146
|
+
return this.items.find(c => c.active);
|
|
6147
|
+
}
|
|
6102
6148
|
onRenderCssClass() {
|
|
6103
6149
|
const classList = Array.from(this._getHostElement().classList);
|
|
6104
6150
|
if (!classList.some(c => ['ax-vertical', 'ax-horizontal'].includes(c))) {
|
|
@@ -6109,29 +6155,33 @@ class AXTabsComponent extends AXBaseComponent {
|
|
|
6109
6155
|
}
|
|
6110
6156
|
}
|
|
6111
6157
|
onViewInit() {
|
|
6112
|
-
const selected = this.
|
|
6113
|
-
this.
|
|
6114
|
-
this.
|
|
6158
|
+
const selected = this.items.find(c => c.active) || this.items[0];
|
|
6159
|
+
this.select(selected);
|
|
6160
|
+
this.items.forEach(c => {
|
|
6115
6161
|
c.onClick.subscribe(t => {
|
|
6116
6162
|
var _a;
|
|
6117
6163
|
this._isUserInteraction = (_a = t.nativeEvent) === null || _a === void 0 ? void 0 : _a.isTrusted;
|
|
6118
|
-
this.
|
|
6164
|
+
this.select(c);
|
|
6119
6165
|
});
|
|
6120
6166
|
});
|
|
6121
6167
|
}
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6168
|
+
select(tab) {
|
|
6169
|
+
let tabItem = typeof tab == 'number' ? this.items[tab] : tab;
|
|
6170
|
+
//
|
|
6171
|
+
if (!tab || this.selectedItem == tabItem)
|
|
6172
|
+
return;
|
|
6173
|
+
//
|
|
6174
|
+
this.items.forEach(c => c.active = false);
|
|
6175
|
+
tabItem.active = true;
|
|
6126
6176
|
if (this.content) {
|
|
6127
|
-
this.content.portal =
|
|
6177
|
+
this.content.portal = tabItem.template;
|
|
6128
6178
|
}
|
|
6129
6179
|
this._cdr.markForCheck();
|
|
6130
6180
|
this.onActiveTabChanged.emit({
|
|
6131
6181
|
component: this,
|
|
6132
6182
|
isUserInteraction: this._isUserInteraction,
|
|
6133
|
-
|
|
6134
|
-
|
|
6183
|
+
tab: tabItem,
|
|
6184
|
+
index: this.selectedIndex
|
|
6135
6185
|
});
|
|
6136
6186
|
this._isUserInteraction = false;
|
|
6137
6187
|
}
|
|
@@ -7083,5 +7133,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
7083
7133
|
* Generated bundle index. Do not edit.
|
|
7084
7134
|
*/
|
|
7085
7135
|
|
|
7086
|
-
export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageHeaderComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeSliderComponent, AXRangeSliderModule, AXResponsiveDirective, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
|
|
7136
|
+
export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageHeaderComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeSliderComponent, AXRangeSliderModule, AXResponsiveDirective, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
|
|
7087
7137
|
//# sourceMappingURL=acorex-components.mjs.map
|