@acorex/components 5.0.10 → 5.0.13
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/bundles/acorex-components.umd.js +677 -587
- package/bundles/acorex-components.umd.js.map +1 -1
- package/esm2015/lib/base/mixin/base-components.class.js +19 -3
- package/esm2015/lib/base/mixin/button-mixin.class.js +92 -105
- package/esm2015/lib/base/mixin/clickable-mixin.class.js +1 -1
- package/esm2015/lib/base/mixin/dropdown-mixin.class.js +63 -9
- package/esm2015/lib/base/mixin/interactive-mixin.class.js +3 -3
- package/esm2015/lib/base/mixin/mixin.class.js +2 -2
- package/esm2015/lib/base/mixin/value-mixin.class.js +7 -2
- package/esm2015/lib/button/button-group.component.js +4 -4
- package/esm2015/lib/calendar/calendar.class.js +97 -0
- package/esm2015/lib/calendar/calendar.component.js +17 -67
- package/esm2015/lib/checkbox/checkbox.component.js +3 -4
- package/esm2015/lib/datepicker/datepicker.component.js +119 -65
- package/esm2015/lib/datepicker/datepicker.module.js +30 -6
- package/esm2015/lib/dropdown/dropdown-panel.component.js +7 -4
- package/esm2015/lib/dropdown/dropdown.component.js +10 -7
- package/esm2015/lib/form/form-hint.component.js +3 -3
- package/esm2015/lib/page/base-page.class.js +2 -2
- package/esm2015/lib/selectbox/selectbox.component.js +2 -2
- package/esm2015/lib/selection-list/selection-list.component.js +2 -2
- package/esm2015/lib/tabs/tab-content.directive.js +2 -2
- package/esm2015/lib/tabs/tab-item.component.js +2 -2
- package/fesm2015/acorex-components.js +650 -569
- package/fesm2015/acorex-components.js.map +1 -1
- package/lib/base/mixin/base-components.class.d.ts +21 -18
- package/lib/base/mixin/button-mixin.class.d.ts +11 -17
- package/lib/base/mixin/clickable-mixin.class.d.ts +3 -9
- package/lib/base/mixin/datalist-component.class.d.ts +9 -15
- package/lib/base/mixin/dropdown-mixin.class.d.ts +16 -12
- package/lib/base/mixin/interactive-mixin.class.d.ts +6 -14
- package/lib/base/mixin/loading-mixin.class.d.ts +3 -9
- package/lib/base/mixin/mixin.class.d.ts +166 -164
- package/lib/base/mixin/selection-component.class.d.ts +3 -9
- package/lib/base/mixin/sizable-mixin.class.d.ts +3 -9
- package/lib/base/mixin/textbox-mixin.class.d.ts +4 -12
- package/lib/base/mixin/value-mixin.class.d.ts +15 -20
- package/lib/button/button-item.component.d.ts +8 -20
- package/lib/calendar/calendar.class.d.ts +38 -0
- package/lib/calendar/calendar.component.d.ts +5 -26
- package/lib/datepicker/datepicker.component.d.ts +170 -16
- package/lib/datepicker/datepicker.module.d.ts +8 -2
- package/lib/dropdown/dropdown-panel.component.d.ts +4 -5
- package/lib/dropdown/dropdown.component.d.ts +5 -6
- package/package.json +1 -1
- package/esm2015/lib/dropdown/dropdown-base.class.js +0 -98
- package/lib/dropdown/dropdown-base.class.d.ts +0 -94
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/coercion'), require('@acorex/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/cdk/portal'), require('lodash'), require('@angular/cdk/overlay'), require('@angular/cdk/a11y'), require('@angular/cdk/drag-drop'), require('@angular/cdk/bidi'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@acorex/components', ['exports', '@angular/core', '@angular/cdk/coercion', '@acorex/core', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/cdk/portal', 'lodash', '@angular/cdk/overlay', '@angular/cdk/a11y', '@angular/cdk/drag-drop', '@angular/cdk/bidi', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.acorex = global.acorex || {}, global.acorex.components = {}), global.ng.core, global.ng.cdk.coercion, global.i2, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.cdk.portal, global._, global.ng.cdk.overlay, global.ng.cdk.a11y, global.ng.cdk.dragDrop, global.ng.cdk.bidi, global.
|
|
5
|
-
}(this, (function (exports, i0, coercion, i2, rxjs, operators, i1, i3, i1$1, _, i1$2, i2$1, i3$1, i2$2,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/coercion'), require('@acorex/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/cdk/portal'), require('lodash'), require('@angular/cdk/overlay'), require('ngx-mask'), require('@angular/cdk/a11y'), require('@angular/cdk/drag-drop'), require('@angular/cdk/bidi'), require('@angular/animations')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@acorex/components', ['exports', '@angular/core', '@angular/cdk/coercion', '@acorex/core', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/cdk/portal', 'lodash', '@angular/cdk/overlay', 'ngx-mask', '@angular/cdk/a11y', '@angular/cdk/drag-drop', '@angular/cdk/bidi', '@angular/animations'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.acorex = global.acorex || {}, global.acorex.components = {}), global.ng.core, global.ng.cdk.coercion, global.i2, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.cdk.portal, global._, global.ng.cdk.overlay, global.i1$3, global.ng.cdk.a11y, global.ng.cdk.dragDrop, global.ng.cdk.bidi, global.ng.animations));
|
|
5
|
+
}(this, (function (exports, i0, coercion, i2, rxjs, operators, i1, i3, i1$1, _, i1$2, i1$3, i2$1, i3$1, i2$2, animations) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
31
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
32
32
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
33
|
-
var i1__namespace$
|
|
33
|
+
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
34
34
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
35
35
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
36
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
36
37
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
37
38
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
38
39
|
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
39
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
40
40
|
|
|
41
41
|
/*! *****************************************************************************
|
|
42
42
|
Copyright (c) Microsoft Corporation.
|
|
@@ -414,10 +414,26 @@
|
|
|
414
414
|
};
|
|
415
415
|
AXBaseComponent.prototype.onDestroy = function () {
|
|
416
416
|
};
|
|
417
|
-
AXBaseComponent.prototype.
|
|
417
|
+
AXBaseComponent.prototype._onOptionChanging = function (option) {
|
|
418
418
|
return option === null || option === void 0 ? void 0 : option.value;
|
|
419
419
|
};
|
|
420
|
-
AXBaseComponent.prototype.
|
|
420
|
+
AXBaseComponent.prototype._onOptionChanged = function (option) {
|
|
421
|
+
};
|
|
422
|
+
AXBaseComponent.prototype._setOption = function (option) {
|
|
423
|
+
var oldValue = this[option.name];
|
|
424
|
+
var newValue = this._onOptionChanging({ name: option.name, value: option.value });
|
|
425
|
+
//TODO : check real changes
|
|
426
|
+
if (oldValue != newValue) {
|
|
427
|
+
if (option.beforeCallback)
|
|
428
|
+
option.beforeCallback();
|
|
429
|
+
this["_" + option.name] = option.value;
|
|
430
|
+
this._onOptionChanged({ name: option.name, newValue: newValue, oldValue: oldValue });
|
|
431
|
+
var emitter = this[option.name + "Change"];
|
|
432
|
+
if (emitter)
|
|
433
|
+
emitter.emit(newValue);
|
|
434
|
+
if (option.afterCallback)
|
|
435
|
+
option.afterCallback();
|
|
436
|
+
}
|
|
421
437
|
};
|
|
422
438
|
return AXBaseComponent;
|
|
423
439
|
}());
|
|
@@ -453,10 +469,9 @@
|
|
|
453
469
|
var BASE_OUTPUT = [];
|
|
454
470
|
|
|
455
471
|
function _ButtonComponentMixin(Base) {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
function _a() {
|
|
472
|
+
return /** @class */ (function (_super) {
|
|
473
|
+
__extends(class_1, _super);
|
|
474
|
+
function class_1() {
|
|
460
475
|
var args = [];
|
|
461
476
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
462
477
|
args[_i] = arguments[_i];
|
|
@@ -475,95 +490,92 @@
|
|
|
475
490
|
*/
|
|
476
491
|
_this.cancelBehavior = false;
|
|
477
492
|
_this.colorChange = new i0.EventEmitter();
|
|
478
|
-
_color
|
|
493
|
+
_this._color = 'primary';
|
|
479
494
|
_this.lookChange = new i0.EventEmitter();
|
|
480
|
-
_look
|
|
495
|
+
_this._look = null;
|
|
481
496
|
_this.toggleableChange = new i0.EventEmitter();
|
|
482
|
-
_toggleable
|
|
497
|
+
_this._toggleable = false;
|
|
483
498
|
_this.selectedChange = new i0.EventEmitter();
|
|
484
|
-
_selected
|
|
499
|
+
_this._selected = false;
|
|
485
500
|
return _this;
|
|
486
501
|
}
|
|
487
|
-
Object.defineProperty(
|
|
502
|
+
Object.defineProperty(class_1.prototype, "color", {
|
|
488
503
|
/**
|
|
489
504
|
* Predefined color schemes
|
|
490
505
|
*/
|
|
491
506
|
get: function () {
|
|
492
|
-
return
|
|
507
|
+
return this._color;
|
|
493
508
|
},
|
|
494
509
|
set: function (value) {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
510
|
+
var _this = this;
|
|
511
|
+
this._setOption({
|
|
512
|
+
name: 'color',
|
|
513
|
+
value: value,
|
|
514
|
+
afterCallback: function () {
|
|
515
|
+
_this._cdr.markForCheck();
|
|
516
|
+
}
|
|
517
|
+
});
|
|
503
518
|
},
|
|
504
519
|
enumerable: false,
|
|
505
520
|
configurable: true
|
|
506
521
|
});
|
|
507
|
-
Object.defineProperty(
|
|
522
|
+
Object.defineProperty(class_1.prototype, "look", {
|
|
508
523
|
/**
|
|
509
524
|
* Predefined look schemes
|
|
510
525
|
*/
|
|
511
526
|
get: function () {
|
|
512
|
-
return
|
|
527
|
+
return this._look;
|
|
513
528
|
},
|
|
514
529
|
set: function (value) {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
530
|
+
var _this = this;
|
|
531
|
+
this._setOption({
|
|
532
|
+
name: 'look',
|
|
533
|
+
value: value,
|
|
534
|
+
afterCallback: function () {
|
|
535
|
+
_this._cdr.markForCheck();
|
|
536
|
+
}
|
|
537
|
+
});
|
|
523
538
|
},
|
|
524
539
|
enumerable: false,
|
|
525
540
|
configurable: true
|
|
526
541
|
});
|
|
527
|
-
Object.defineProperty(
|
|
542
|
+
Object.defineProperty(class_1.prototype, "toggleable", {
|
|
528
543
|
/**
|
|
529
544
|
* Provides visual styling that indicates if the Button is active
|
|
530
545
|
*/
|
|
531
546
|
get: function () {
|
|
532
|
-
return
|
|
547
|
+
return this._toggleable;
|
|
533
548
|
},
|
|
534
549
|
set: function (value) {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
this.toggleableChange.emit(value);
|
|
540
|
-
this.onOptionChanged({ name: 'toggleable', oldValue: oldValue, newValue: value });
|
|
541
|
-
}
|
|
550
|
+
this._setOption({
|
|
551
|
+
name: 'toggleable',
|
|
552
|
+
value: value
|
|
553
|
+
});
|
|
542
554
|
},
|
|
543
555
|
enumerable: false,
|
|
544
556
|
configurable: true
|
|
545
557
|
});
|
|
546
|
-
Object.defineProperty(
|
|
558
|
+
Object.defineProperty(class_1.prototype, "selected", {
|
|
547
559
|
/**
|
|
548
560
|
* Indicates if the Button is selected or not
|
|
549
561
|
*/
|
|
550
562
|
get: function () {
|
|
551
|
-
return
|
|
563
|
+
return this._selected;
|
|
552
564
|
},
|
|
553
565
|
set: function (value) {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}
|
|
566
|
+
var _this = this;
|
|
567
|
+
this._setOption({
|
|
568
|
+
name: 'selected',
|
|
569
|
+
value: value,
|
|
570
|
+
afterCallback: function () {
|
|
571
|
+
_this._cdr.markForCheck();
|
|
572
|
+
}
|
|
573
|
+
});
|
|
562
574
|
},
|
|
563
575
|
enumerable: false,
|
|
564
576
|
configurable: true
|
|
565
577
|
});
|
|
566
|
-
|
|
578
|
+
class_1.prototype._onInternalViewInit = function () {
|
|
567
579
|
var _this = this;
|
|
568
580
|
_super.prototype._onInternalViewInit.call(this);
|
|
569
581
|
if (this.submitBehavior) {
|
|
@@ -572,10 +584,10 @@
|
|
|
572
584
|
}, 0);
|
|
573
585
|
}
|
|
574
586
|
};
|
|
575
|
-
|
|
587
|
+
class_1.prototype._onInternalDestroy = function () {
|
|
576
588
|
_super.prototype._onInternalDestroy.call(this);
|
|
577
589
|
};
|
|
578
|
-
Object.defineProperty(
|
|
590
|
+
Object.defineProperty(class_1.prototype, "_classes", {
|
|
579
591
|
get: function () {
|
|
580
592
|
var cssClasses = {
|
|
581
593
|
'ax-button-icon': !this.text,
|
|
@@ -588,13 +600,8 @@
|
|
|
588
600
|
enumerable: false,
|
|
589
601
|
configurable: true
|
|
590
602
|
});
|
|
591
|
-
return
|
|
592
|
-
}(Base))
|
|
593
|
-
_color = new WeakMap(),
|
|
594
|
-
_look = new WeakMap(),
|
|
595
|
-
_toggleable = new WeakMap(),
|
|
596
|
-
_selected = new WeakMap(),
|
|
597
|
-
_a;
|
|
603
|
+
return class_1;
|
|
604
|
+
}(Base));
|
|
598
605
|
}
|
|
599
606
|
var BUTTON_INPUTS = [
|
|
600
607
|
'text',
|
|
@@ -762,7 +769,6 @@
|
|
|
762
769
|
}
|
|
763
770
|
|
|
764
771
|
function _DropdownComponenetMixin(Base) {
|
|
765
|
-
var _readonly;
|
|
766
772
|
var Mixin = /** @class */ (function (_super) {
|
|
767
773
|
__extends(Mixin, _super);
|
|
768
774
|
function Mixin() {
|
|
@@ -771,18 +777,13 @@
|
|
|
771
777
|
args[_i] = arguments[_i];
|
|
772
778
|
}
|
|
773
779
|
var _this = _super.apply(this, __spreadArray([], __read(args))) || this;
|
|
774
|
-
_readonly.set(_this, false);
|
|
775
780
|
_this.fitParent = true;
|
|
781
|
+
_this.readonly = false;
|
|
776
782
|
_this.onOpened = new i0.EventEmitter();
|
|
777
783
|
_this.onClosed = new i0.EventEmitter();
|
|
784
|
+
_this.position = [];
|
|
778
785
|
return _this;
|
|
779
786
|
}
|
|
780
|
-
Object.defineProperty(Mixin.prototype, "readonly", {
|
|
781
|
-
get: function () { return __classPrivateFieldGet(this, _readonly); },
|
|
782
|
-
set: function (value) { __classPrivateFieldSet(this, _readonly, coercion.coerceBooleanProperty(value)); },
|
|
783
|
-
enumerable: false,
|
|
784
|
-
configurable: true
|
|
785
|
-
});
|
|
786
787
|
Mixin.prototype._emitOnOpenedEvent = function () {
|
|
787
788
|
//** call from interactive mixin **//
|
|
788
789
|
//(this as any).focus();
|
|
@@ -793,17 +794,81 @@
|
|
|
793
794
|
});
|
|
794
795
|
};
|
|
795
796
|
Mixin.prototype._emitOnClosedEvent = function () {
|
|
796
|
-
this.focus();
|
|
797
797
|
this.onClosed.emit({
|
|
798
798
|
component: this,
|
|
799
799
|
htmlElement: this._getHostElement()
|
|
800
800
|
});
|
|
801
801
|
};
|
|
802
|
+
Mixin.prototype.onViewInit = function () {
|
|
803
|
+
var _this = this;
|
|
804
|
+
if (this.dropdownWidth == null) {
|
|
805
|
+
if (this.fitParent === true) {
|
|
806
|
+
this.dropdownWidth = this._getInnerElement().offsetWidth;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
// wait for documentElement
|
|
810
|
+
setTimeout(function () {
|
|
811
|
+
var _b;
|
|
812
|
+
if (_this.position.length == 0) {
|
|
813
|
+
var offset = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
|
|
814
|
+
var list = [
|
|
815
|
+
{
|
|
816
|
+
originX: 'start',
|
|
817
|
+
originY: 'bottom',
|
|
818
|
+
overlayX: 'start',
|
|
819
|
+
overlayY: 'top',
|
|
820
|
+
offsetY: offset
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
originX: 'start',
|
|
824
|
+
originY: 'top',
|
|
825
|
+
overlayX: 'start',
|
|
826
|
+
overlayY: 'bottom',
|
|
827
|
+
offsetY: -offset
|
|
828
|
+
}
|
|
829
|
+
];
|
|
830
|
+
(_b = _this.position).push.apply(_b, __spreadArray([], __read(list)));
|
|
831
|
+
}
|
|
832
|
+
}, 500);
|
|
833
|
+
};
|
|
834
|
+
Mixin.prototype.toggle = function () {
|
|
835
|
+
if (this['disabled'] !== true) {
|
|
836
|
+
this.popover.toggle();
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
Mixin.prototype.close = function () {
|
|
840
|
+
if (!this.isOpen || this['disabled']) {
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
this.popover.close();
|
|
844
|
+
this._emitOnClosedEvent();
|
|
845
|
+
};
|
|
846
|
+
Mixin.prototype.open = function () {
|
|
847
|
+
if (this.isOpen || this['disabled']) {
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
this.popover.open();
|
|
851
|
+
this._emitOnOpenedEvent();
|
|
852
|
+
};
|
|
853
|
+
Object.defineProperty(Mixin.prototype, "isOpen", {
|
|
854
|
+
get: function () {
|
|
855
|
+
var _a;
|
|
856
|
+
return (_a = this.popover) === null || _a === void 0 ? void 0 : _a.isOpen;
|
|
857
|
+
},
|
|
858
|
+
enumerable: false,
|
|
859
|
+
configurable: true
|
|
860
|
+
});
|
|
802
861
|
return Mixin;
|
|
803
862
|
}(Base));
|
|
804
|
-
_readonly = new WeakMap();
|
|
805
863
|
return Mixin;
|
|
806
|
-
}
|
|
864
|
+
}
|
|
865
|
+
var DROPDOWN_INPUTS = [
|
|
866
|
+
'isOpen',
|
|
867
|
+
'fitParent',
|
|
868
|
+
'dropdownWidth',
|
|
869
|
+
'position'
|
|
870
|
+
];
|
|
871
|
+
var DROPDOWN_OUTPUT = ['onOpened', 'onClosed'];
|
|
807
872
|
|
|
808
873
|
function _InteractiveComponenetMixin(Base) {
|
|
809
874
|
var _disabled, _tabIndex;
|
|
@@ -838,11 +903,11 @@
|
|
|
838
903
|
*/
|
|
839
904
|
get: function () { return __classPrivateFieldGet(this, _disabled); },
|
|
840
905
|
set: function (value) {
|
|
841
|
-
value = this.
|
|
906
|
+
value = this._onOptionChanging({ name: 'disabled', value: value });
|
|
842
907
|
if (value != this.disabled) {
|
|
843
908
|
var oldValue = this.disabled;
|
|
844
909
|
__classPrivateFieldSet(this, _disabled, coercion.coerceBooleanProperty(value));
|
|
845
|
-
this.
|
|
910
|
+
this._onOptionChanged({ name: 'disabled', oldValue: oldValue, newValue: value });
|
|
846
911
|
this._cdr.markForCheck();
|
|
847
912
|
}
|
|
848
913
|
},
|
|
@@ -1191,7 +1256,7 @@
|
|
|
1191
1256
|
return __classPrivateFieldGet(this, _value);
|
|
1192
1257
|
},
|
|
1193
1258
|
set: function (v) {
|
|
1194
|
-
v = this.
|
|
1259
|
+
v = this._onInternalValueChanging(v);
|
|
1195
1260
|
if (!this._isInited || this.debounceTime == 0) {
|
|
1196
1261
|
this._setValue(v);
|
|
1197
1262
|
}
|
|
@@ -1212,6 +1277,11 @@
|
|
|
1212
1277
|
});
|
|
1213
1278
|
this._onValueChanged(oldValue, __classPrivateFieldGet(this, _value));
|
|
1214
1279
|
};
|
|
1280
|
+
_a.prototype._onInternalValueChanging = function (value) {
|
|
1281
|
+
if (this.readonly)
|
|
1282
|
+
return this.value;
|
|
1283
|
+
return this._onValueChanging(value);
|
|
1284
|
+
};
|
|
1215
1285
|
_a.prototype._onValueChanging = function (value) {
|
|
1216
1286
|
return value;
|
|
1217
1287
|
};
|
|
@@ -1386,7 +1456,7 @@
|
|
|
1386
1456
|
var AXBaseSelectionValueMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DatalistComponenetMixin(_SelectionComponenetMixin(_ValueComponenetMixin(AXBaseComponent)))));
|
|
1387
1457
|
var AXBaseValueDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(_DatalistComponenetMixin(_ValueComponenetMixin(AXBaseComponent)))));
|
|
1388
1458
|
var AXBaseSelectionDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(_DatalistComponenetMixin(_SelectionComponenetMixin(_ValueComponenetMixin(AXBaseComponent))))));
|
|
1389
|
-
var
|
|
1459
|
+
var AXBaseDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(AXBaseComponent)));
|
|
1390
1460
|
|
|
1391
1461
|
/**
|
|
1392
1462
|
* Contains native event
|
|
@@ -2081,7 +2151,7 @@
|
|
|
2081
2151
|
return this._selection;
|
|
2082
2152
|
},
|
|
2083
2153
|
set: function (value) {
|
|
2084
|
-
value = this.
|
|
2154
|
+
value = this._onOptionChanging({ name: 'selection', value: value });
|
|
2085
2155
|
var oldValue = this.selection;
|
|
2086
2156
|
if (value != oldValue) {
|
|
2087
2157
|
this._selection = value;
|
|
@@ -2100,7 +2170,7 @@
|
|
|
2100
2170
|
return this._color;
|
|
2101
2171
|
},
|
|
2102
2172
|
set: function (value) {
|
|
2103
|
-
value = this.
|
|
2173
|
+
value = this._onOptionChanging({ name: 'color', value: value });
|
|
2104
2174
|
var oldValue = this.color;
|
|
2105
2175
|
if (value != oldValue) {
|
|
2106
2176
|
this._color = value;
|
|
@@ -2119,7 +2189,7 @@
|
|
|
2119
2189
|
return this._look;
|
|
2120
2190
|
},
|
|
2121
2191
|
set: function (value) {
|
|
2122
|
-
value = this.
|
|
2192
|
+
value = this._onOptionChanging({ name: 'look', value: value });
|
|
2123
2193
|
var oldValue = this.look;
|
|
2124
2194
|
if (value != oldValue) {
|
|
2125
2195
|
this._look = value;
|
|
@@ -2428,100 +2498,156 @@
|
|
|
2428
2498
|
}]
|
|
2429
2499
|
}] });
|
|
2430
2500
|
|
|
2431
|
-
var
|
|
2432
|
-
__extends(
|
|
2433
|
-
function
|
|
2501
|
+
var AXCalendarBaseComponent = /** @class */ (function (_super) {
|
|
2502
|
+
__extends(AXCalendarBaseComponent, _super);
|
|
2503
|
+
function AXCalendarBaseComponent(elementRef, cdr) {
|
|
2434
2504
|
var _this = _super.call(this, elementRef, cdr) || this;
|
|
2435
|
-
_this.
|
|
2436
|
-
_this._today = new i2.AXDateTime(new Date());
|
|
2437
|
-
_this._navText = '';
|
|
2438
|
-
_this._todayText = '';
|
|
2439
|
-
_this._slots = [];
|
|
2505
|
+
_this.activeViewChange = new i0.EventEmitter();
|
|
2440
2506
|
_this._activeView = 'days';
|
|
2441
2507
|
_this.depthChange = new i0.EventEmitter();
|
|
2442
2508
|
_this._depth = 'days';
|
|
2509
|
+
_this.minChange = new i0.EventEmitter();
|
|
2510
|
+
_this.maxChange = new i0.EventEmitter();
|
|
2511
|
+
_this.disabledDatesChange = new i0.EventEmitter();
|
|
2512
|
+
_this.holidayDatesChange = new i0.EventEmitter();
|
|
2443
2513
|
return _this;
|
|
2444
2514
|
}
|
|
2445
|
-
Object.defineProperty(
|
|
2446
|
-
get: function () {
|
|
2447
|
-
var current = this._viewStartDate || this._today;
|
|
2448
|
-
switch (this.activeView) {
|
|
2449
|
-
case 'years':
|
|
2450
|
-
var y = current.startOf('year').year;
|
|
2451
|
-
var min = y - (y % 10) - 1;
|
|
2452
|
-
var max = min + 11;
|
|
2453
|
-
return new i2.AXDateTimeRange(i2.AXDateTime.convert(new Date(min, 0), this._today.calendar.name()), i2.AXDateTime.convert(new Date(max, 0), this._today.calendar.name()));
|
|
2454
|
-
case 'months':
|
|
2455
|
-
//TODO: check add month function
|
|
2456
|
-
return new i2.AXDateTimeRange(current.startOf('year'), current.endOf('year').add('day', -1));
|
|
2457
|
-
default:
|
|
2458
|
-
//return new AXDateTimeRange(current.startOf('month').startOf('week'), current.endOf('month').endOf('week'));
|
|
2459
|
-
return new i2.AXDateTimeRange(current.startOf('month'), current.endOf('month'));
|
|
2460
|
-
}
|
|
2461
|
-
},
|
|
2462
|
-
enumerable: false,
|
|
2463
|
-
configurable: true
|
|
2464
|
-
});
|
|
2465
|
-
Object.defineProperty(AXCalendarComponent.prototype, "activeView", {
|
|
2515
|
+
Object.defineProperty(AXCalendarBaseComponent.prototype, "activeView", {
|
|
2466
2516
|
get: function () {
|
|
2467
2517
|
return this._activeView;
|
|
2468
2518
|
},
|
|
2469
2519
|
set: function (v) {
|
|
2470
|
-
this.
|
|
2471
|
-
this._genearteSlots();
|
|
2520
|
+
this._setOption({ name: 'activeView', value: v });
|
|
2472
2521
|
},
|
|
2473
2522
|
enumerable: false,
|
|
2474
2523
|
configurable: true
|
|
2475
2524
|
});
|
|
2476
|
-
Object.defineProperty(
|
|
2525
|
+
Object.defineProperty(AXCalendarBaseComponent.prototype, "depth", {
|
|
2477
2526
|
get: function () {
|
|
2478
2527
|
return this._depth;
|
|
2479
2528
|
},
|
|
2480
2529
|
set: function (v) {
|
|
2481
|
-
|
|
2482
|
-
this.
|
|
2483
|
-
|
|
2484
|
-
|
|
2530
|
+
var _this = this;
|
|
2531
|
+
this._setOption({
|
|
2532
|
+
name: 'depth',
|
|
2533
|
+
value: v,
|
|
2534
|
+
beforeCallback: function () {
|
|
2535
|
+
_this._activeView = v;
|
|
2536
|
+
}
|
|
2537
|
+
});
|
|
2485
2538
|
},
|
|
2486
2539
|
enumerable: false,
|
|
2487
2540
|
configurable: true
|
|
2488
2541
|
});
|
|
2489
|
-
Object.defineProperty(
|
|
2542
|
+
Object.defineProperty(AXCalendarBaseComponent.prototype, "min", {
|
|
2490
2543
|
get: function () {
|
|
2491
2544
|
return this._min;
|
|
2492
2545
|
},
|
|
2493
2546
|
set: function (v) {
|
|
2494
|
-
this.
|
|
2547
|
+
this._setOption({ name: 'min', value: v });
|
|
2495
2548
|
},
|
|
2496
2549
|
enumerable: false,
|
|
2497
2550
|
configurable: true
|
|
2498
2551
|
});
|
|
2499
|
-
Object.defineProperty(
|
|
2552
|
+
Object.defineProperty(AXCalendarBaseComponent.prototype, "max", {
|
|
2500
2553
|
get: function () {
|
|
2501
2554
|
return this._max;
|
|
2502
2555
|
},
|
|
2503
2556
|
set: function (v) {
|
|
2504
|
-
this.
|
|
2557
|
+
this._setOption({ name: 'max', value: v });
|
|
2505
2558
|
},
|
|
2506
2559
|
enumerable: false,
|
|
2507
2560
|
configurable: true
|
|
2508
2561
|
});
|
|
2509
|
-
Object.defineProperty(
|
|
2562
|
+
Object.defineProperty(AXCalendarBaseComponent.prototype, "disabledDates", {
|
|
2510
2563
|
get: function () {
|
|
2511
2564
|
return this._disabledDates;
|
|
2512
2565
|
},
|
|
2513
2566
|
set: function (v) {
|
|
2514
|
-
this.
|
|
2567
|
+
this._setOption({ name: 'disabledDates', value: v });
|
|
2515
2568
|
},
|
|
2516
2569
|
enumerable: false,
|
|
2517
2570
|
configurable: true
|
|
2518
2571
|
});
|
|
2519
|
-
Object.defineProperty(
|
|
2572
|
+
Object.defineProperty(AXCalendarBaseComponent.prototype, "holidayDates", {
|
|
2520
2573
|
get: function () {
|
|
2521
2574
|
return this._holidayDates;
|
|
2522
2575
|
},
|
|
2523
2576
|
set: function (v) {
|
|
2524
|
-
this.
|
|
2577
|
+
this._setOption({ name: 'holidayDates', value: v });
|
|
2578
|
+
},
|
|
2579
|
+
enumerable: false,
|
|
2580
|
+
configurable: true
|
|
2581
|
+
});
|
|
2582
|
+
return AXCalendarBaseComponent;
|
|
2583
|
+
}(AXBaseComponent));
|
|
2584
|
+
AXCalendarBaseComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXCalendarBaseComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2585
|
+
AXCalendarBaseComponent.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXCalendarBaseComponent });
|
|
2586
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXCalendarBaseComponent, decorators: [{
|
|
2587
|
+
type: i0.Injectable
|
|
2588
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { activeViewChange: [{
|
|
2589
|
+
type: i0.Output
|
|
2590
|
+
}], activeView: [{
|
|
2591
|
+
type: i0.Input
|
|
2592
|
+
}], depthChange: [{
|
|
2593
|
+
type: i0.Output
|
|
2594
|
+
}], depth: [{
|
|
2595
|
+
type: i0.Input
|
|
2596
|
+
}], minChange: [{
|
|
2597
|
+
type: i0.Output
|
|
2598
|
+
}], min: [{
|
|
2599
|
+
type: i0.Input
|
|
2600
|
+
}], maxChange: [{
|
|
2601
|
+
type: i0.Output
|
|
2602
|
+
}], max: [{
|
|
2603
|
+
type: i0.Input
|
|
2604
|
+
}], disabledDatesChange: [{
|
|
2605
|
+
type: i0.Output
|
|
2606
|
+
}], disabledDates: [{
|
|
2607
|
+
type: i0.Input
|
|
2608
|
+
}], holidayDatesChange: [{
|
|
2609
|
+
type: i0.Output
|
|
2610
|
+
}], holidayDates: [{
|
|
2611
|
+
type: i0.Input
|
|
2612
|
+
}] } });
|
|
2613
|
+
var CALENDAR_INPUTS = [
|
|
2614
|
+
'depth',
|
|
2615
|
+
'activeView',
|
|
2616
|
+
'min',
|
|
2617
|
+
'max',
|
|
2618
|
+
'disabledDates',
|
|
2619
|
+
'holidayDates',
|
|
2620
|
+
];
|
|
2621
|
+
var CALENDAR_OUTPUTS = ['depthChange'];
|
|
2622
|
+
|
|
2623
|
+
var AXCalendarComponentMixin = _ClickableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent)));
|
|
2624
|
+
var AXCalendarComponent = /** @class */ (function (_super) {
|
|
2625
|
+
__extends(AXCalendarComponent, _super);
|
|
2626
|
+
function AXCalendarComponent(elementRef, cdr) {
|
|
2627
|
+
var _this = _super.call(this, elementRef, cdr) || this;
|
|
2628
|
+
_this.cdr = cdr;
|
|
2629
|
+
_this._today = new i2.AXDateTime(new Date());
|
|
2630
|
+
_this._navText = '';
|
|
2631
|
+
_this._todayText = '';
|
|
2632
|
+
_this._slots = [];
|
|
2633
|
+
return _this;
|
|
2634
|
+
}
|
|
2635
|
+
Object.defineProperty(AXCalendarComponent.prototype, "_viewRange", {
|
|
2636
|
+
get: function () {
|
|
2637
|
+
var current = this._viewStartDate || this._today;
|
|
2638
|
+
switch (this.activeView) {
|
|
2639
|
+
case 'years':
|
|
2640
|
+
var y = current.startOf('year').year;
|
|
2641
|
+
var min = y - (y % 10) - 1;
|
|
2642
|
+
var max = min + 11;
|
|
2643
|
+
return new i2.AXDateTimeRange(i2.AXDateTime.convert(new Date(min, 0), this._today.calendar.name()), i2.AXDateTime.convert(new Date(max, 0), this._today.calendar.name()));
|
|
2644
|
+
case 'months':
|
|
2645
|
+
//TODO: check add month function
|
|
2646
|
+
return new i2.AXDateTimeRange(current.startOf('year'), current.endOf('year').add('day', -1));
|
|
2647
|
+
default:
|
|
2648
|
+
//return new AXDateTimeRange(current.startOf('month').startOf('week'), current.endOf('month').endOf('week'));
|
|
2649
|
+
return new i2.AXDateTimeRange(current.startOf('month'), current.endOf('month'));
|
|
2650
|
+
}
|
|
2525
2651
|
},
|
|
2526
2652
|
enumerable: false,
|
|
2527
2653
|
configurable: true
|
|
@@ -2647,6 +2773,11 @@
|
|
|
2647
2773
|
else if (this.activeView == 'months')
|
|
2648
2774
|
this.activeView = 'years';
|
|
2649
2775
|
};
|
|
2776
|
+
AXCalendarComponent.prototype._onOptionChanged = function (option) {
|
|
2777
|
+
if (option.name == 'depth' || option.name == 'activeView') {
|
|
2778
|
+
this._genearteSlots();
|
|
2779
|
+
}
|
|
2780
|
+
};
|
|
2650
2781
|
AXCalendarComponent.prototype._onValueChanged = function (oldValue, newValue) {
|
|
2651
2782
|
this._genearteSlots();
|
|
2652
2783
|
};
|
|
@@ -2688,7 +2819,7 @@
|
|
|
2688
2819
|
});
|
|
2689
2820
|
AXCalendarComponent.prototype.isDisabled = function (date) {
|
|
2690
2821
|
if (Array.isArray(this.disabledDates) && this.disabledDates.length != 0) {
|
|
2691
|
-
|
|
2822
|
+
;
|
|
2692
2823
|
return this.disabledDates.some(function (d) { return date.equal(d, 'day'); });
|
|
2693
2824
|
}
|
|
2694
2825
|
else if (typeof this.disabledDates == 'function') {
|
|
@@ -2711,32 +2842,18 @@
|
|
|
2711
2842
|
return AXCalendarComponent;
|
|
2712
2843
|
}(AXCalendarComponentMixin));
|
|
2713
2844
|
AXCalendarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXCalendarComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2714
|
-
AXCalendarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCalendarComponent, selector: "ax-calendar", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", disabled: "disabled", tabIndex: "tabIndex",
|
|
2845
|
+
AXCalendarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXCalendarComponent, selector: "ax-calendar", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", disabled: "disabled", tabIndex: "tabIndex", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", depthChange: "depthChange" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0__namespace, 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(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(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>SU</div>\r\n <div>MO</div>\r\n <div>TU</div>\r\n <div>WE</div>\r\n <div>TH</div>\r\n <div>FR</div>\r\n <div>SA</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(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", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
2715
2846
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXCalendarComponent, decorators: [{
|
|
2716
2847
|
type: i0.Component,
|
|
2717
2848
|
args: [{
|
|
2718
2849
|
selector: 'ax-calendar',
|
|
2719
2850
|
templateUrl: './calendar.component.html',
|
|
2720
2851
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2721
|
-
inputs: __spreadArray(__spreadArray([], __read(VALUE_INPUTS)), __read(INTERACTIVE_INPUTS)),
|
|
2722
|
-
outputs: __spreadArray(__spreadArray([], __read(VALUE_OUTPUT)), __read(INTERACTIVE_OUTPUT)),
|
|
2852
|
+
inputs: __spreadArray(__spreadArray(__spreadArray([], __read(VALUE_INPUTS)), __read(INTERACTIVE_INPUTS)), __read(CALENDAR_INPUTS)),
|
|
2853
|
+
outputs: __spreadArray(__spreadArray(__spreadArray([], __read(VALUE_OUTPUT)), __read(INTERACTIVE_OUTPUT)), __read(CALENDAR_OUTPUTS)),
|
|
2723
2854
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2724
2855
|
}]
|
|
2725
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: {
|
|
2726
|
-
type: i0.Input
|
|
2727
|
-
}], depthChange: [{
|
|
2728
|
-
type: i0.Output
|
|
2729
|
-
}], depth: [{
|
|
2730
|
-
type: i0.Input
|
|
2731
|
-
}], min: [{
|
|
2732
|
-
type: i0.Input
|
|
2733
|
-
}], max: [{
|
|
2734
|
-
type: i0.Input
|
|
2735
|
-
}], disabledDates: [{
|
|
2736
|
-
type: i0.Input
|
|
2737
|
-
}], holidayDates: [{
|
|
2738
|
-
type: i0.Input
|
|
2739
|
-
}], __hostClass: [{
|
|
2856
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { __hostClass: [{
|
|
2740
2857
|
type: i0.HostBinding,
|
|
2741
2858
|
args: ['class']
|
|
2742
2859
|
}] } });
|
|
@@ -3315,12 +3432,12 @@
|
|
|
3315
3432
|
return AXFormHintComponent;
|
|
3316
3433
|
}(AXBaseComponentMixin));
|
|
3317
3434
|
AXFormHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXFormHintComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3318
|
-
AXFormHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormHintComponent, selector: "ax-form-hint", usesInheritance: true, ngImport: i0__namespace, template: ' <p class="ax-text-
|
|
3435
|
+
AXFormHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXFormHintComponent, selector: "ax-form-hint", usesInheritance: true, ngImport: i0__namespace, template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
3319
3436
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXFormHintComponent, decorators: [{
|
|
3320
3437
|
type: i0.Component,
|
|
3321
3438
|
args: [{
|
|
3322
3439
|
selector: 'ax-form-hint',
|
|
3323
|
-
template: ' <p class="ax-text-
|
|
3440
|
+
template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>',
|
|
3324
3441
|
encapsulation: i0.ViewEncapsulation.None,
|
|
3325
3442
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3326
3443
|
}]
|
|
@@ -3441,13 +3558,12 @@
|
|
|
3441
3558
|
}
|
|
3442
3559
|
AXCheckBoxComponent.prototype.onInit = function () {
|
|
3443
3560
|
_super.prototype.onInit.call(this);
|
|
3444
|
-
|
|
3561
|
+
;
|
|
3445
3562
|
if (!this.allowNull && this.value == null) {
|
|
3446
3563
|
this.value = false;
|
|
3447
3564
|
}
|
|
3448
3565
|
};
|
|
3449
3566
|
AXCheckBoxComponent.prototype._onValueChanging = function (value) {
|
|
3450
|
-
debugger;
|
|
3451
3567
|
if (this.allowNull && value == null) {
|
|
3452
3568
|
this._stateIndeterminate = true;
|
|
3453
3569
|
}
|
|
@@ -3458,7 +3574,7 @@
|
|
|
3458
3574
|
return value;
|
|
3459
3575
|
};
|
|
3460
3576
|
AXCheckBoxComponent.prototype._handleOnClickEvent = function (e) {
|
|
3461
|
-
|
|
3577
|
+
;
|
|
3462
3578
|
if (this.readonly || this.disabled) {
|
|
3463
3579
|
e.preventDefault();
|
|
3464
3580
|
e.stopPropagation();
|
|
@@ -3840,6 +3956,134 @@
|
|
|
3840
3956
|
args: ['document:keydown', ['$event']]
|
|
3841
3957
|
}] } });
|
|
3842
3958
|
|
|
3959
|
+
var AXBaseDatePickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXCalendarBaseComponent))));
|
|
3960
|
+
var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
3961
|
+
__extends(AXDatePickerComponent, _super);
|
|
3962
|
+
function AXDatePickerComponent(_elementRef, _cdr) {
|
|
3963
|
+
var _this = _super.call(this, _elementRef, _cdr) || this;
|
|
3964
|
+
_this.formatChange = new i0.EventEmitter();
|
|
3965
|
+
_this._format = 'YYYY-MM-dd';
|
|
3966
|
+
_this._target = _this._getHostElement();
|
|
3967
|
+
return _this;
|
|
3968
|
+
}
|
|
3969
|
+
Object.defineProperty(AXDatePickerComponent.prototype, "format", {
|
|
3970
|
+
get: function () {
|
|
3971
|
+
return this._format;
|
|
3972
|
+
},
|
|
3973
|
+
set: function (v) {
|
|
3974
|
+
this._setOption({
|
|
3975
|
+
name: 'format',
|
|
3976
|
+
value: v
|
|
3977
|
+
});
|
|
3978
|
+
},
|
|
3979
|
+
enumerable: false,
|
|
3980
|
+
configurable: true
|
|
3981
|
+
});
|
|
3982
|
+
AXDatePickerComponent.prototype._handleArrowClickEvent = function (e) {
|
|
3983
|
+
this.toggle();
|
|
3984
|
+
};
|
|
3985
|
+
AXDatePickerComponent.prototype._onValueChanged = function (oldValue, newValue) {
|
|
3986
|
+
this.displayText = newValue ? i2.AXDateTime.convert(newValue).format(this._format) : null;
|
|
3987
|
+
this.close();
|
|
3988
|
+
};
|
|
3989
|
+
AXDatePickerComponent.prototype._handleOnKeydownEvent = function (e) {
|
|
3990
|
+
var _this = this;
|
|
3991
|
+
var _a, _b;
|
|
3992
|
+
var ignore = function () {
|
|
3993
|
+
e.preventDefault();
|
|
3994
|
+
e.stopPropagation();
|
|
3995
|
+
};
|
|
3996
|
+
var nums = Array(10).fill(0).map(function (v, i) { return i.toString(); });
|
|
3997
|
+
var chars = ['Backspace', 'ArrowDown', 'ArrowUp', 'ArrowRight', 'ArrowLeft', 'Tab', 'Enter'];
|
|
3998
|
+
var input = e.target;
|
|
3999
|
+
var key = (e.key);
|
|
4000
|
+
var valStr = input.value;
|
|
4001
|
+
var sStart = input.selectionStart;
|
|
4002
|
+
var sEnd = input.selectionEnd;
|
|
4003
|
+
var dateVal = new i2.AXDateTime(this.value);
|
|
4004
|
+
// //
|
|
4005
|
+
if (!__spreadArray(__spreadArray([], __read(nums)), __read(chars)).includes(key)) {
|
|
4006
|
+
ignore();
|
|
4007
|
+
}
|
|
4008
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
|
4009
|
+
var re = /[a-zA-Z0-9]+/ig;
|
|
4010
|
+
var next = Array.from(valStr.substr(sEnd).matchAll(re));
|
|
4011
|
+
var prev = Array.from(valStr.substring(0, sStart).matchAll(re));
|
|
4012
|
+
ignore();
|
|
4013
|
+
this._highlightPart(input, (e.key === 'ArrowRight' ? (sEnd + (((_a = next[0]) === null || _a === void 0 ? void 0 : _a.index) || 0)) : ((_b = prev[prev.length - 1]) === null || _b === void 0 ? void 0 : _b.index)));
|
|
4014
|
+
}
|
|
4015
|
+
else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
4016
|
+
var re = /[a-zA-Z0-9]+/ig;
|
|
4017
|
+
var sign = e.key === 'ArrowUp' ? +1 : -1;
|
|
4018
|
+
var parts = Array.from(this.format.matchAll(re));
|
|
4019
|
+
var word_1 = valStr.substring(sStart, sEnd);
|
|
4020
|
+
var part = parts[Array.from(valStr.matchAll(re)).findIndex(function (c) { return c[0] == word_1; })];
|
|
4021
|
+
if (part) {
|
|
4022
|
+
switch (part[0]) {
|
|
4023
|
+
case 'dd':
|
|
4024
|
+
case 'DD':
|
|
4025
|
+
this.value = dateVal.add('day', sign).date;
|
|
4026
|
+
break;
|
|
4027
|
+
case 'mm':
|
|
4028
|
+
case 'MMM':
|
|
4029
|
+
case 'MMMM':
|
|
4030
|
+
this.value = dateVal.add('month', sign).date;
|
|
4031
|
+
break;
|
|
4032
|
+
case 'yy':
|
|
4033
|
+
case 'YYYY':
|
|
4034
|
+
this.value = dateVal.add('year', sign).date;
|
|
4035
|
+
break;
|
|
4036
|
+
}
|
|
4037
|
+
setTimeout(function () {
|
|
4038
|
+
_this._highlightPart(input, sEnd - 1);
|
|
4039
|
+
}, Math.max(10, this.debounceTime));
|
|
4040
|
+
}
|
|
4041
|
+
ignore();
|
|
4042
|
+
}
|
|
4043
|
+
else if (e.key == 'Backspace') {
|
|
4044
|
+
if (this.allowNull) {
|
|
4045
|
+
this.value = null;
|
|
4046
|
+
}
|
|
4047
|
+
ignore();
|
|
4048
|
+
}
|
|
4049
|
+
// else if (nums.includes(key)) {
|
|
4050
|
+
// }
|
|
4051
|
+
// super._emitOnKeydownEvent(e);
|
|
4052
|
+
};
|
|
4053
|
+
AXDatePickerComponent.prototype._handleOnInputClickEvent = function (e) {
|
|
4054
|
+
var input = e.target;
|
|
4055
|
+
this._highlightPart(input);
|
|
4056
|
+
e.preventDefault();
|
|
4057
|
+
e.stopPropagation();
|
|
4058
|
+
};
|
|
4059
|
+
AXDatePickerComponent.prototype._highlightPart = function (input, pos) {
|
|
4060
|
+
var _c = i2.AXStringUtil.getWordBoundsAtPosition(input.value, pos != null ? pos : input.selectionStart), start = _c.start, end = _c.end;
|
|
4061
|
+
input.setSelectionRange(start, end);
|
|
4062
|
+
};
|
|
4063
|
+
return AXDatePickerComponent;
|
|
4064
|
+
}(AXBaseDatePickerMixin));
|
|
4065
|
+
AXDatePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDatePickerComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4066
|
+
AXDatePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", 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", placeholder: "placeholder", maxLength: "maxLength", 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 }], usesInheritance: true, ngImport: i0__namespace, 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\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [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\"\r\n (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<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [style.min-width.px]=\"dropdownWidth\">\r\n <ax-calendar \r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [(value)]=\"value\"\r\n (onValueChanged)=\"_emitOnValueChangedEvent($event)\"\r\n [min]=\"min\"\r\n [min]=\"max\"\r\n [disabledDates]=\"disabledDates\"\r\n [holidayDates]=\"holidayDates\"\r\n [depth]=\"depth\"\r\n >\r\n\r\n </ax-calendar>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "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"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "holidayDates"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange"] }], directives: [{ type: i3__namespace.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: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4067
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDatePickerComponent, decorators: [{
|
|
4068
|
+
type: i0.Component,
|
|
4069
|
+
args: [{
|
|
4070
|
+
selector: 'ax-date-picker',
|
|
4071
|
+
templateUrl: './datepicker.component.html',
|
|
4072
|
+
inputs: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(DROPDOWN_INPUTS)), __read(INTERACTIVE_INPUTS)), __read(VALUE_INPUTS)), __read(TEXTBOX_INPUTS)), __read(CALENDAR_INPUTS)),
|
|
4073
|
+
outputs: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(DROPDOWN_OUTPUT)), __read(INTERACTIVE_OUTPUT)), __read(VALUE_OUTPUT)), __read(TEXTBOX_OUTPUT)), __read(CALENDAR_OUTPUTS)),
|
|
4074
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4075
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
4076
|
+
host: { class: 'ax-editor-container ax-drop-down' }
|
|
4077
|
+
}]
|
|
4078
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
4079
|
+
type: i0.ViewChild,
|
|
4080
|
+
args: [AXPopoverComponent]
|
|
4081
|
+
}], formatChange: [{
|
|
4082
|
+
type: i0.Output
|
|
4083
|
+
}], format: [{
|
|
4084
|
+
type: i0.Input
|
|
4085
|
+
}] } });
|
|
4086
|
+
|
|
3843
4087
|
var AXPopoverModule = /** @class */ (function () {
|
|
3844
4088
|
function AXPopoverModule() {
|
|
3845
4089
|
}
|
|
@@ -3858,193 +4102,105 @@
|
|
|
3858
4102
|
}]
|
|
3859
4103
|
}] });
|
|
3860
4104
|
|
|
3861
|
-
var
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3866
|
-
_this.fitParent = true;
|
|
3867
|
-
_this.onOpened = new i0.EventEmitter();
|
|
3868
|
-
_this.onClosed = new i0.EventEmitter();
|
|
3869
|
-
_this.position = [];
|
|
3870
|
-
return _this;
|
|
4105
|
+
var AXInputMaskComponent = /** @class */ (function () {
|
|
4106
|
+
function AXInputMaskComponent() {
|
|
4107
|
+
this.showMaskTyped = false;
|
|
4108
|
+
this.clearIfNotMatch = false;
|
|
3871
4109
|
}
|
|
3872
|
-
|
|
3873
|
-
//** call from interactive mixin **//
|
|
3874
|
-
//(this as any).focus();
|
|
3875
|
-
//
|
|
3876
|
-
this.onOpened.emit({
|
|
3877
|
-
component: this,
|
|
3878
|
-
htmlElement: this._getHostElement()
|
|
3879
|
-
});
|
|
3880
|
-
};
|
|
3881
|
-
AXBaseDropDownComponent.prototype._emitOnClosedEvent = function () {
|
|
3882
|
-
this.onClosed.emit({
|
|
3883
|
-
component: this,
|
|
3884
|
-
htmlElement: this._getHostElement()
|
|
3885
|
-
});
|
|
3886
|
-
};
|
|
3887
|
-
AXBaseDropDownComponent.prototype.onViewInit = function () {
|
|
3888
|
-
var _this = this;
|
|
3889
|
-
if (this.dropdownWidth == null) {
|
|
3890
|
-
if (this.fitParent === true) {
|
|
3891
|
-
this.dropdownWidth = this._getInnerElement().offsetWidth;
|
|
3892
|
-
}
|
|
3893
|
-
}
|
|
3894
|
-
// wait for documentElement
|
|
3895
|
-
setTimeout(function () {
|
|
3896
|
-
var _a;
|
|
3897
|
-
if (_this.position.length == 0) {
|
|
3898
|
-
var offset = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
|
|
3899
|
-
var list = [
|
|
3900
|
-
{
|
|
3901
|
-
originX: 'start',
|
|
3902
|
-
originY: 'bottom',
|
|
3903
|
-
overlayX: 'start',
|
|
3904
|
-
overlayY: 'top',
|
|
3905
|
-
offsetY: offset
|
|
3906
|
-
},
|
|
3907
|
-
{
|
|
3908
|
-
originX: 'start',
|
|
3909
|
-
originY: 'top',
|
|
3910
|
-
overlayX: 'start',
|
|
3911
|
-
overlayY: 'bottom',
|
|
3912
|
-
offsetY: -offset
|
|
3913
|
-
}
|
|
3914
|
-
];
|
|
3915
|
-
(_a = _this.position).push.apply(_a, __spreadArray([], __read(list)));
|
|
3916
|
-
}
|
|
3917
|
-
}, 500);
|
|
3918
|
-
};
|
|
3919
|
-
AXBaseDropDownComponent.prototype.toggle = function () {
|
|
3920
|
-
if (this.disabled !== true) {
|
|
3921
|
-
this.popover.toggle();
|
|
3922
|
-
}
|
|
3923
|
-
};
|
|
3924
|
-
AXBaseDropDownComponent.prototype.close = function () {
|
|
3925
|
-
if (!this.isOpen || this.disabled) {
|
|
3926
|
-
return;
|
|
3927
|
-
}
|
|
3928
|
-
this.popover.close();
|
|
3929
|
-
this._emitOnClosedEvent();
|
|
3930
|
-
};
|
|
3931
|
-
AXBaseDropDownComponent.prototype.open = function () {
|
|
3932
|
-
if (this.isOpen || this.disabled) {
|
|
3933
|
-
return;
|
|
3934
|
-
}
|
|
3935
|
-
this.popover.open();
|
|
3936
|
-
this._emitOnOpenedEvent();
|
|
3937
|
-
};
|
|
3938
|
-
Object.defineProperty(AXBaseDropDownComponent.prototype, "isOpen", {
|
|
4110
|
+
Object.defineProperty(AXInputMaskComponent.prototype, "prefix", {
|
|
3939
4111
|
get: function () {
|
|
3940
|
-
return this.
|
|
4112
|
+
return this._prefix || '';
|
|
4113
|
+
},
|
|
4114
|
+
set: function (v) {
|
|
4115
|
+
this._prefix = v;
|
|
3941
4116
|
},
|
|
3942
4117
|
enumerable: false,
|
|
3943
4118
|
configurable: true
|
|
3944
4119
|
});
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
}
|
|
4120
|
+
Object.defineProperty(AXInputMaskComponent.prototype, "suffix", {
|
|
4121
|
+
get: function () {
|
|
4122
|
+
return this._suffix || '';
|
|
4123
|
+
},
|
|
4124
|
+
set: function (v) {
|
|
4125
|
+
this._suffix = v;
|
|
4126
|
+
},
|
|
4127
|
+
enumerable: false,
|
|
4128
|
+
configurable: true
|
|
4129
|
+
});
|
|
4130
|
+
return AXInputMaskComponent;
|
|
4131
|
+
}());
|
|
4132
|
+
AXInputMaskComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXInputMaskComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4133
|
+
AXInputMaskComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXInputMaskComponent, selector: "ax-input-mask", inputs: { prefix: "prefix", suffix: "suffix", showMaskTyped: "showMaskTyped", clearIfNotMatch: "clearIfNotMatch", mask: "mask" }, ngImport: i0__namespace, template: '', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4134
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXInputMaskComponent, decorators: [{
|
|
4135
|
+
type: i0.Component,
|
|
4136
|
+
args: [{
|
|
4137
|
+
selector: 'ax-input-mask',
|
|
4138
|
+
template: '',
|
|
4139
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4140
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
4141
|
+
}]
|
|
4142
|
+
}], propDecorators: { prefix: [{
|
|
3952
4143
|
type: i0.Input
|
|
3953
|
-
}],
|
|
4144
|
+
}], suffix: [{
|
|
3954
4145
|
type: i0.Input
|
|
3955
|
-
}],
|
|
3956
|
-
type: i0.
|
|
3957
|
-
}],
|
|
3958
|
-
type: i0.
|
|
3959
|
-
}],
|
|
4146
|
+
}], showMaskTyped: [{
|
|
4147
|
+
type: i0.Input
|
|
4148
|
+
}], clearIfNotMatch: [{
|
|
4149
|
+
type: i0.Input
|
|
4150
|
+
}], mask: [{
|
|
3960
4151
|
type: i0.Input
|
|
3961
4152
|
}] } });
|
|
3962
4153
|
|
|
3963
|
-
var
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
_this._target = _this;
|
|
3968
|
-
return _this;
|
|
4154
|
+
var COMPONENT$e = [AXInputMaskComponent];
|
|
4155
|
+
var MODULES$e = [i1.CommonModule, i1$3.NgxMaskModule.forRoot()];
|
|
4156
|
+
var AXInputMaskModule = /** @class */ (function () {
|
|
4157
|
+
function AXInputMaskModule() {
|
|
3969
4158
|
}
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownComponent, decorators: [{
|
|
3978
|
-
type: i0.Component,
|
|
4159
|
+
return AXInputMaskModule;
|
|
4160
|
+
}());
|
|
4161
|
+
AXInputMaskModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXInputMaskModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4162
|
+
AXInputMaskModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [i1.CommonModule, i1__namespace$2.NgxMaskModule], exports: [AXInputMaskComponent] });
|
|
4163
|
+
AXInputMaskModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXInputMaskModule, providers: [], imports: [__spreadArray([], __read(MODULES$e))] });
|
|
4164
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXInputMaskModule, decorators: [{
|
|
4165
|
+
type: i0.NgModule,
|
|
3979
4166
|
args: [{
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4167
|
+
declarations: __spreadArray([], __read(COMPONENT$e)),
|
|
4168
|
+
imports: __spreadArray([], __read(MODULES$e)),
|
|
4169
|
+
exports: __spreadArray([], __read(COMPONENT$e)),
|
|
4170
|
+
providers: [],
|
|
3985
4171
|
}]
|
|
3986
|
-
}]
|
|
3987
|
-
type: i0.ViewChild,
|
|
3988
|
-
args: [AXPopoverComponent]
|
|
3989
|
-
}] } });
|
|
4172
|
+
}] });
|
|
3990
4173
|
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
'June',
|
|
4004
|
-
'July',
|
|
4005
|
-
'August',
|
|
4006
|
-
'September',
|
|
4007
|
-
'October',
|
|
4008
|
-
'November',
|
|
4009
|
-
'December',
|
|
4010
|
-
];
|
|
4011
|
-
_this._showDays = true;
|
|
4012
|
-
_this._showsMonths = false;
|
|
4013
|
-
_this._showYears = false;
|
|
4014
|
-
_this.createYears();
|
|
4015
|
-
return _this;
|
|
4174
|
+
/**
|
|
4175
|
+
* The Textbox is a component which detects user interaction and triggers a corresponding event
|
|
4176
|
+
*
|
|
4177
|
+
* @category Components
|
|
4178
|
+
*/
|
|
4179
|
+
var AXTextBoxComponent = /** @class */ (function (_super) {
|
|
4180
|
+
__extends(AXTextBoxComponent, _super);
|
|
4181
|
+
/**
|
|
4182
|
+
* @ignore
|
|
4183
|
+
*/
|
|
4184
|
+
function AXTextBoxComponent(elementRef, cdr) {
|
|
4185
|
+
return _super.call(this, elementRef, cdr) || this;
|
|
4016
4186
|
}
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
};
|
|
4027
|
-
AXDatepickerComponent.prototype.showDays = function () {
|
|
4028
|
-
this._showYears = false;
|
|
4029
|
-
this._showsMonths = false;
|
|
4030
|
-
this._showDays = true;
|
|
4031
|
-
};
|
|
4032
|
-
AXDatepickerComponent.prototype.createYears = function () {
|
|
4033
|
-
var number = 1990;
|
|
4034
|
-
for (var i = 0; i < 40; i++) {
|
|
4035
|
-
number = number + 1;
|
|
4036
|
-
this.yearItems.push(number);
|
|
4037
|
-
}
|
|
4038
|
-
};
|
|
4039
|
-
return AXDatepickerComponent;
|
|
4187
|
+
Object.defineProperty(AXTextBoxComponent.prototype, "hostClass", {
|
|
4188
|
+
//TODO: prefix suffix text
|
|
4189
|
+
get: function () {
|
|
4190
|
+
return this.cssClass + " ax-" + this.size;
|
|
4191
|
+
},
|
|
4192
|
+
enumerable: false,
|
|
4193
|
+
configurable: true
|
|
4194
|
+
});
|
|
4195
|
+
return AXTextBoxComponent;
|
|
4040
4196
|
}(AXBaseTextBoxMixin));
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type:
|
|
4197
|
+
AXTextBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4198
|
+
AXTextBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTextBoxComponent, selector: "ax-text-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", value: "value", name: "name" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-text-box ax-editor-container" }, queries: [{ propertyName: "_contentMask", first: true, predicate: AXInputMaskComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" type=\"text\" [mask]=\"_contentMask?.mask\" [prefix]=\"_contentMask?.prefix\"\r\n [suffix]=\"_contentMask?.suffix\" [showMaskTyped]=\"_contentMask?.showMaskTyped\" [attr.placeholder]=\"placeholder\"\r\n [attr.maxlength]=\"maxLength\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete ? 'on': 'off'\">\r\n<ax-button color=\"light\" look=\"blank\" [size]=\"size\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n </ax-prefix>\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<ng-content select=\"ax-input-mask\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1__namespace$2.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { type: i3__namespace.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: i3__namespace.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4199
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxComponent, decorators: [{
|
|
4044
4200
|
type: i0.Component,
|
|
4045
4201
|
args: [{
|
|
4046
|
-
selector: 'ax-
|
|
4047
|
-
templateUrl: '
|
|
4202
|
+
selector: 'ax-text-box',
|
|
4203
|
+
templateUrl: 'textbox.component.html',
|
|
4048
4204
|
inputs: __spreadArray([
|
|
4049
4205
|
'disabled',
|
|
4050
4206
|
'readonly',
|
|
@@ -4058,128 +4214,88 @@
|
|
|
4058
4214
|
'onBlur',
|
|
4059
4215
|
'onFocus'
|
|
4060
4216
|
], __read(TEXTBOX_OUTPUT)),
|
|
4061
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4062
4217
|
encapsulation: i0.ViewEncapsulation.None,
|
|
4063
|
-
}]
|
|
4064
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; } });
|
|
4065
|
-
|
|
4066
|
-
var AXDropdownPanelComponent = /** @class */ (function (_super) {
|
|
4067
|
-
__extends(AXDropdownPanelComponent, _super);
|
|
4068
|
-
function AXDropdownPanelComponent(elementRef, cdr, _parent) {
|
|
4069
|
-
var _this = _super.call(this, elementRef, cdr) || this;
|
|
4070
|
-
_this._parent = _parent;
|
|
4071
|
-
_this.onItemClick = new i0.EventEmitter();
|
|
4072
|
-
_this._needBorder = false;
|
|
4073
|
-
_this._subs = [];
|
|
4074
|
-
_this._target = _this._parent._getHostElement();
|
|
4075
|
-
return _this;
|
|
4076
|
-
}
|
|
4077
|
-
Object.defineProperty(AXDropdownPanelComponent.prototype, "items", {
|
|
4078
|
-
get: function () {
|
|
4079
|
-
return this._items || [];
|
|
4080
|
-
},
|
|
4081
|
-
set: function (v) {
|
|
4082
|
-
this._items = v;
|
|
4083
|
-
this._cdr.markForCheck();
|
|
4084
|
-
},
|
|
4085
|
-
enumerable: false,
|
|
4086
|
-
configurable: true
|
|
4087
|
-
});
|
|
4088
|
-
AXDropdownPanelComponent.prototype._getAllButtons = function () {
|
|
4089
|
-
return __spreadArray(__spreadArray([], __read(Array.from(this._viewButtons))), __read(Array.from(this._contentButtons)));
|
|
4090
|
-
};
|
|
4091
|
-
AXDropdownPanelComponent.prototype.onViewInit = function () {
|
|
4092
|
-
var _this = this;
|
|
4093
|
-
_super.prototype.onViewInit.call(this);
|
|
4094
|
-
this._getAllButtons().forEach(function (c) {
|
|
4095
|
-
_this._needBorder = true;
|
|
4096
|
-
_this._subs.push(c.onClick.subscribe(_this._handleOnItemClick.bind(_this)));
|
|
4097
|
-
_this._cdr.markForCheck();
|
|
4098
|
-
});
|
|
4099
|
-
};
|
|
4100
|
-
AXDropdownPanelComponent.prototype.onDestroy = function () {
|
|
4101
|
-
this._subs.forEach(function (s) {
|
|
4102
|
-
s === null || s === void 0 ? void 0 : s.unsubscribe();
|
|
4103
|
-
});
|
|
4104
|
-
};
|
|
4105
|
-
AXDropdownPanelComponent.prototype._emitOnItemClickEvent = function (e, item) {
|
|
4106
|
-
this.onItemClick.emit({
|
|
4107
|
-
component: this,
|
|
4108
|
-
htmlElement: this._getHostElement(),
|
|
4109
|
-
nativeEvent: e.nativeEvent,
|
|
4110
|
-
name: item.name,
|
|
4111
|
-
data: item.data,
|
|
4112
|
-
});
|
|
4113
|
-
};
|
|
4114
|
-
AXDropdownPanelComponent.prototype._handleOnItemClick = function (e) {
|
|
4115
|
-
this.close();
|
|
4116
|
-
this._emitOnItemClickEvent(e, e.component);
|
|
4117
|
-
};
|
|
4118
|
-
return AXDropdownPanelComponent;
|
|
4119
|
-
}(AXBaseDropDownComponent));
|
|
4120
|
-
AXDropdownPanelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownPanelComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: AXButtonComponent, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4121
|
-
AXDropdownPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { items: "items" }, outputs: { onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", components: [{ type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4122
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownPanelComponent, decorators: [{
|
|
4123
|
-
type: i0.Component,
|
|
4124
|
-
args: [{
|
|
4125
|
-
selector: 'ax-dropdown-panel',
|
|
4126
|
-
templateUrl: './dropdown-panel.component.html',
|
|
4127
4218
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4128
|
-
|
|
4219
|
+
host: { class: 'ax-text-box ax-editor-container' },
|
|
4129
4220
|
}]
|
|
4130
|
-
}], ctorParameters: function () {
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
args: [AXButtonItemComponent]
|
|
4137
|
-
}], _viewButtons: [{
|
|
4138
|
-
type: i0.ViewChildren,
|
|
4139
|
-
args: [AXButtonItemComponent]
|
|
4140
|
-
}], onItemClick: [{
|
|
4141
|
-
type: i0.Output
|
|
4142
|
-
}], popover: [{
|
|
4143
|
-
type: i0.ViewChild,
|
|
4144
|
-
args: [AXPopoverComponent]
|
|
4145
|
-
}], items: [{
|
|
4146
|
-
type: i0.Input
|
|
4221
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { _contentMask: [{
|
|
4222
|
+
type: i0.ContentChild,
|
|
4223
|
+
args: [AXInputMaskComponent]
|
|
4224
|
+
}], hostClass: [{
|
|
4225
|
+
type: i0.HostBinding,
|
|
4226
|
+
args: ['class']
|
|
4147
4227
|
}] } });
|
|
4148
4228
|
|
|
4149
|
-
var
|
|
4150
|
-
function
|
|
4229
|
+
var AXTextBoxModule = /** @class */ (function () {
|
|
4230
|
+
function AXTextBoxModule() {
|
|
4151
4231
|
}
|
|
4152
|
-
return
|
|
4232
|
+
return AXTextBoxModule;
|
|
4153
4233
|
}());
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4234
|
+
AXTextBoxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4235
|
+
AXTextBoxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [i1.CommonModule,
|
|
4236
|
+
i3.FormsModule,
|
|
4237
|
+
AXButtonModule,
|
|
4238
|
+
AXEditorDecoratorModule,
|
|
4239
|
+
AXIconModule, i1__namespace$2.NgxMaskModule], exports: [AXTextBoxComponent] });
|
|
4240
|
+
AXTextBoxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, providers: [], imports: [[
|
|
4241
|
+
i1.CommonModule,
|
|
4242
|
+
i3.FormsModule,
|
|
4243
|
+
AXButtonModule,
|
|
4244
|
+
AXEditorDecoratorModule,
|
|
4245
|
+
AXIconModule,
|
|
4246
|
+
i1$3.NgxMaskModule.forChild()
|
|
4247
|
+
]] });
|
|
4248
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, decorators: [{
|
|
4158
4249
|
type: i0.NgModule,
|
|
4159
4250
|
args: [{
|
|
4160
|
-
imports: [
|
|
4161
|
-
|
|
4162
|
-
|
|
4251
|
+
imports: [
|
|
4252
|
+
i1.CommonModule,
|
|
4253
|
+
i3.FormsModule,
|
|
4254
|
+
AXButtonModule,
|
|
4255
|
+
AXEditorDecoratorModule,
|
|
4256
|
+
AXIconModule,
|
|
4257
|
+
i1$3.NgxMaskModule.forChild()
|
|
4258
|
+
],
|
|
4259
|
+
exports: [AXTextBoxComponent],
|
|
4260
|
+
declarations: [AXTextBoxComponent],
|
|
4163
4261
|
providers: [],
|
|
4164
4262
|
}]
|
|
4165
4263
|
}] });
|
|
4166
4264
|
|
|
4167
|
-
var COMPONENT$
|
|
4168
|
-
var MODULES$
|
|
4265
|
+
var COMPONENT$d = [AXDatePickerComponent];
|
|
4266
|
+
var MODULES$d = [
|
|
4267
|
+
i1.CommonModule,
|
|
4268
|
+
AXCalendarModule,
|
|
4269
|
+
AXTextBoxModule,
|
|
4270
|
+
AXButtonModule,
|
|
4271
|
+
AXPopoverModule,
|
|
4272
|
+
AXEditorDecoratorModule,
|
|
4273
|
+
AXIconModule,
|
|
4274
|
+
i2.AXDateTimeModule,
|
|
4275
|
+
i3.FormsModule
|
|
4276
|
+
];
|
|
4169
4277
|
var AXDatepickerModule = /** @class */ (function () {
|
|
4170
4278
|
function AXDatepickerModule() {
|
|
4171
4279
|
}
|
|
4172
4280
|
return AXDatepickerModule;
|
|
4173
4281
|
}());
|
|
4174
4282
|
AXDatepickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDatepickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4175
|
-
AXDatepickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDatepickerModule, declarations: [
|
|
4176
|
-
|
|
4283
|
+
AXDatepickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDatepickerModule, declarations: [AXDatePickerComponent], imports: [i1.CommonModule,
|
|
4284
|
+
AXCalendarModule,
|
|
4285
|
+
AXTextBoxModule,
|
|
4286
|
+
AXButtonModule,
|
|
4287
|
+
AXPopoverModule,
|
|
4288
|
+
AXEditorDecoratorModule,
|
|
4289
|
+
AXIconModule,
|
|
4290
|
+
i2.AXDateTimeModule,
|
|
4291
|
+
i3.FormsModule], exports: [AXDatePickerComponent] });
|
|
4292
|
+
AXDatepickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDatepickerModule, providers: [], imports: [__spreadArray([], __read(MODULES$d))] });
|
|
4177
4293
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDatepickerModule, decorators: [{
|
|
4178
4294
|
type: i0.NgModule,
|
|
4179
4295
|
args: [{
|
|
4180
|
-
declarations: __spreadArray([], __read(COMPONENT$
|
|
4181
|
-
imports: __spreadArray([], __read(MODULES$
|
|
4182
|
-
exports: __spreadArray([], __read(COMPONENT$
|
|
4296
|
+
declarations: __spreadArray([], __read(COMPONENT$d)),
|
|
4297
|
+
imports: __spreadArray([], __read(MODULES$d)),
|
|
4298
|
+
exports: __spreadArray([], __read(COMPONENT$d)),
|
|
4183
4299
|
providers: [],
|
|
4184
4300
|
}]
|
|
4185
4301
|
}] });
|
|
@@ -4403,7 +4519,7 @@
|
|
|
4403
4519
|
return AXLoadingComponent;
|
|
4404
4520
|
}(AXBaseComponentMixin));
|
|
4405
4521
|
AXLoadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXLoadingComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4406
|
-
AXLoadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type" }, outputs: { visibleChange: "visibleChange" }, host: { classAttribute: "ax-loading" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" ></ng-template>\n ", isInline: true, directives: [{ type: i1__namespace$
|
|
4522
|
+
AXLoadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type" }, outputs: { visibleChange: "visibleChange" }, host: { classAttribute: "ax-loading" }, usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" ></ng-template>\n ", isInline: true, directives: [{ type: i1__namespace$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
4407
4523
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXLoadingComponent, decorators: [{
|
|
4408
4524
|
type: i0.Component,
|
|
4409
4525
|
args: [{
|
|
@@ -4501,8 +4617,8 @@
|
|
|
4501
4617
|
args: ['axIsLoading']
|
|
4502
4618
|
}] } });
|
|
4503
4619
|
|
|
4504
|
-
var COMPONENT$
|
|
4505
|
-
var MODULES$
|
|
4620
|
+
var COMPONENT$c = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
4621
|
+
var MODULES$c = [i1.CommonModule, i1$2.OverlayModule, i1$1.PortalModule];
|
|
4506
4622
|
var AXLoadingModule = /** @class */ (function () {
|
|
4507
4623
|
function AXLoadingModule() {
|
|
4508
4624
|
i2.AXConfig.set({
|
|
@@ -4517,13 +4633,13 @@
|
|
|
4517
4633
|
}());
|
|
4518
4634
|
AXLoadingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXLoadingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4519
4635
|
AXLoadingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [i1.CommonModule, i1$2.OverlayModule, i1$1.PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
4520
|
-
AXLoadingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXLoadingModule, providers: [], imports: [__spreadArray([], __read(MODULES$
|
|
4636
|
+
AXLoadingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXLoadingModule, providers: [], imports: [__spreadArray([], __read(MODULES$c))] });
|
|
4521
4637
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXLoadingModule, decorators: [{
|
|
4522
4638
|
type: i0.NgModule,
|
|
4523
4639
|
args: [{
|
|
4524
|
-
declarations: __spreadArray([], __read(COMPONENT$
|
|
4525
|
-
imports: __spreadArray([], __read(MODULES$
|
|
4526
|
-
exports: __spreadArray([], __read(COMPONENT$
|
|
4640
|
+
declarations: __spreadArray([], __read(COMPONENT$c)),
|
|
4641
|
+
imports: __spreadArray([], __read(MODULES$c)),
|
|
4642
|
+
exports: __spreadArray([], __read(COMPONENT$c)),
|
|
4527
4643
|
providers: [],
|
|
4528
4644
|
}]
|
|
4529
4645
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4916,7 +5032,7 @@
|
|
|
4916
5032
|
return this._isLoading;
|
|
4917
5033
|
},
|
|
4918
5034
|
set: function (v) {
|
|
4919
|
-
|
|
5035
|
+
;
|
|
4920
5036
|
this._isLoading = v;
|
|
4921
5037
|
if (this.pageContainer) {
|
|
4922
5038
|
this.pageContainer.isLoading = this.isLoading;
|
|
@@ -4968,8 +5084,8 @@
|
|
|
4968
5084
|
}]
|
|
4969
5085
|
}] });
|
|
4970
5086
|
|
|
4971
|
-
var COMPONENT$
|
|
4972
|
-
var MODULES$
|
|
5087
|
+
var COMPONENT$b = [AXDialogComponent];
|
|
5088
|
+
var MODULES$b = [i1.CommonModule, i3$1.DragDropModule, i2$1.A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
|
|
4973
5089
|
var AXDialogModule = /** @class */ (function () {
|
|
4974
5090
|
function AXDialogModule() {
|
|
4975
5091
|
}
|
|
@@ -4977,13 +5093,13 @@
|
|
|
4977
5093
|
}());
|
|
4978
5094
|
AXDialogModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDialogModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
4979
5095
|
AXDialogModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDialogModule, declarations: [AXDialogComponent], imports: [i1.CommonModule, i3$1.DragDropModule, i2$1.A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule], exports: [AXDialogComponent] });
|
|
4980
|
-
AXDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDialogModule, providers: [], imports: [__spreadArray([], __read(MODULES$
|
|
5096
|
+
AXDialogModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDialogModule, providers: [], imports: [__spreadArray([], __read(MODULES$b))] });
|
|
4981
5097
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDialogModule, decorators: [{
|
|
4982
5098
|
type: i0.NgModule,
|
|
4983
5099
|
args: [{
|
|
4984
|
-
declarations: __spreadArray([], __read(COMPONENT$
|
|
4985
|
-
imports: __spreadArray([], __read(MODULES$
|
|
4986
|
-
exports: __spreadArray([], __read(COMPONENT$
|
|
5100
|
+
declarations: __spreadArray([], __read(COMPONENT$b)),
|
|
5101
|
+
imports: __spreadArray([], __read(MODULES$b)),
|
|
5102
|
+
exports: __spreadArray([], __read(COMPONENT$b)),
|
|
4987
5103
|
providers: [],
|
|
4988
5104
|
}]
|
|
4989
5105
|
}] });
|
|
@@ -5213,8 +5329,8 @@
|
|
|
5213
5329
|
}]
|
|
5214
5330
|
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; } });
|
|
5215
5331
|
|
|
5216
|
-
var COMPONENT$
|
|
5217
|
-
var MODULES$
|
|
5332
|
+
var COMPONENT$a = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
|
|
5333
|
+
var MODULES$a = [i1.CommonModule];
|
|
5218
5334
|
var AXDrawerModule = /** @class */ (function () {
|
|
5219
5335
|
function AXDrawerModule() {
|
|
5220
5336
|
}
|
|
@@ -5222,82 +5338,145 @@
|
|
|
5222
5338
|
}());
|
|
5223
5339
|
AXDrawerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDrawerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5224
5340
|
AXDrawerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent], imports: [i1.CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent] });
|
|
5225
|
-
AXDrawerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDrawerModule, providers: [], imports: [__spreadArray([], __read(MODULES$
|
|
5341
|
+
AXDrawerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDrawerModule, providers: [], imports: [__spreadArray([], __read(MODULES$a))] });
|
|
5226
5342
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDrawerModule, decorators: [{
|
|
5227
5343
|
type: i0.NgModule,
|
|
5228
5344
|
args: [{
|
|
5229
|
-
declarations: __spreadArray([], __read(COMPONENT$
|
|
5230
|
-
imports: __spreadArray([], __read(MODULES$
|
|
5231
|
-
exports: __spreadArray([], __read(COMPONENT$
|
|
5345
|
+
declarations: __spreadArray([], __read(COMPONENT$a)),
|
|
5346
|
+
imports: __spreadArray([], __read(MODULES$a)),
|
|
5347
|
+
exports: __spreadArray([], __read(COMPONENT$a)),
|
|
5232
5348
|
providers: [],
|
|
5233
5349
|
}]
|
|
5234
5350
|
}] });
|
|
5235
5351
|
|
|
5236
|
-
var
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5352
|
+
var AXDropdownComponent = /** @class */ (function (_super) {
|
|
5353
|
+
__extends(AXDropdownComponent, _super);
|
|
5354
|
+
function AXDropdownComponent(_elementRef, _cdr) {
|
|
5355
|
+
var _this = _super.call(this, _elementRef, _cdr) || this;
|
|
5356
|
+
_this._target = _this;
|
|
5357
|
+
return _this;
|
|
5240
5358
|
}
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5359
|
+
AXDropdownComponent.prototype._handleArrowClickEvent = function () {
|
|
5360
|
+
this.toggle();
|
|
5361
|
+
};
|
|
5362
|
+
return AXDropdownComponent;
|
|
5363
|
+
}(AXBaseDropdownMixin));
|
|
5364
|
+
AXDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5365
|
+
AXDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownComponent, selector: "ax-drop-down", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"ax-editor-container\" [class.ax-state-disabled]=\"disabled\">\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-dropdown-content\" style=\"display: inline-flex;\" (click)=\"_handleArrowClickEvent()\">\r\n <ng-content select=\"[input]\">\r\n </ng-content>\r\n </div>\r\n <ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" [size]=\"size\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent()\">\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</div>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [style.min-width.px]=\"dropdownWidth\">\r\n <ng-content select=\"[panel]\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "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"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5366
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownComponent, decorators: [{
|
|
5367
|
+
type: i0.Component,
|
|
5368
|
+
args: [{
|
|
5369
|
+
selector: 'ax-drop-down',
|
|
5370
|
+
templateUrl: './dropdown.component.html',
|
|
5371
|
+
inputs: __spreadArray(__spreadArray([], __read(DROPDOWN_INPUTS)), __read(INTERACTIVE_INPUTS)),
|
|
5372
|
+
outputs: __spreadArray(__spreadArray([], __read(DROPDOWN_OUTPUT)), __read(INTERACTIVE_OUTPUT)),
|
|
5373
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
5374
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5375
|
+
}]
|
|
5376
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
5377
|
+
type: i0.ViewChild,
|
|
5378
|
+
args: [AXPopoverComponent]
|
|
5379
|
+
}] } });
|
|
5380
|
+
|
|
5381
|
+
var AXDropdownPanelComponent = /** @class */ (function (_super) {
|
|
5382
|
+
__extends(AXDropdownPanelComponent, _super);
|
|
5383
|
+
function AXDropdownPanelComponent(elementRef, cdr, _parent) {
|
|
5384
|
+
var _this = _super.call(this, elementRef, cdr) || this;
|
|
5385
|
+
_this._parent = _parent;
|
|
5386
|
+
_this.onItemClick = new i0.EventEmitter();
|
|
5387
|
+
_this._needBorder = false;
|
|
5388
|
+
_this._subs = [];
|
|
5389
|
+
_this._target = _this._parent._getHostElement();
|
|
5390
|
+
return _this;
|
|
5391
|
+
}
|
|
5392
|
+
Object.defineProperty(AXDropdownPanelComponent.prototype, "items", {
|
|
5252
5393
|
get: function () {
|
|
5253
|
-
return this.
|
|
5394
|
+
return this._items || [];
|
|
5254
5395
|
},
|
|
5255
5396
|
set: function (v) {
|
|
5256
|
-
this.
|
|
5397
|
+
this._items = v;
|
|
5398
|
+
this._cdr.markForCheck();
|
|
5257
5399
|
},
|
|
5258
5400
|
enumerable: false,
|
|
5259
5401
|
configurable: true
|
|
5260
5402
|
});
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5403
|
+
AXDropdownPanelComponent.prototype._getAllButtons = function () {
|
|
5404
|
+
return __spreadArray(__spreadArray([], __read(Array.from(this._viewButtons))), __read(Array.from(this._contentButtons)));
|
|
5405
|
+
};
|
|
5406
|
+
AXDropdownPanelComponent.prototype.onViewInit = function () {
|
|
5407
|
+
var _this = this;
|
|
5408
|
+
_super.prototype.onViewInit.call(this);
|
|
5409
|
+
this._getAllButtons().forEach(function (c) {
|
|
5410
|
+
_this._needBorder = true;
|
|
5411
|
+
_this._subs.push(c.onClick.subscribe(_this._handleOnItemClick.bind(_this)));
|
|
5412
|
+
_this._cdr.markForCheck();
|
|
5413
|
+
});
|
|
5414
|
+
};
|
|
5415
|
+
AXDropdownPanelComponent.prototype.onDestroy = function () {
|
|
5416
|
+
this._subs.forEach(function (s) {
|
|
5417
|
+
s === null || s === void 0 ? void 0 : s.unsubscribe();
|
|
5418
|
+
});
|
|
5419
|
+
};
|
|
5420
|
+
AXDropdownPanelComponent.prototype._emitOnItemClickEvent = function (e, item) {
|
|
5421
|
+
this.onItemClick.emit({
|
|
5422
|
+
component: this,
|
|
5423
|
+
htmlElement: this._getHostElement(),
|
|
5424
|
+
nativeEvent: e.nativeEvent,
|
|
5425
|
+
name: item.name,
|
|
5426
|
+
data: item.data,
|
|
5427
|
+
});
|
|
5428
|
+
};
|
|
5429
|
+
AXDropdownPanelComponent.prototype._handleOnItemClick = function (e) {
|
|
5430
|
+
this.close();
|
|
5431
|
+
this._emitOnItemClickEvent(e, e.component);
|
|
5432
|
+
};
|
|
5433
|
+
return AXDropdownPanelComponent;
|
|
5434
|
+
}(AXBaseDropdownMixin));
|
|
5435
|
+
AXDropdownPanelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownPanelComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: AXButtonComponent, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5436
|
+
AXDropdownPanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", items: "items" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", components: [{ type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5437
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownPanelComponent, decorators: [{
|
|
5266
5438
|
type: i0.Component,
|
|
5267
5439
|
args: [{
|
|
5268
|
-
selector: 'ax-
|
|
5269
|
-
|
|
5440
|
+
selector: 'ax-dropdown-panel',
|
|
5441
|
+
templateUrl: './dropdown-panel.component.html',
|
|
5270
5442
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5271
5443
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5444
|
+
inputs: __spreadArray([], __read(DROPDOWN_INPUTS)),
|
|
5445
|
+
outputs: __spreadArray([], __read(DROPDOWN_OUTPUT)),
|
|
5272
5446
|
}]
|
|
5273
|
-
}],
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
type: i0.
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5447
|
+
}], ctorParameters: function () {
|
|
5448
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: AXButtonComponent, decorators: [{
|
|
5449
|
+
type: i0.Optional
|
|
5450
|
+
}] }];
|
|
5451
|
+
}, propDecorators: { _contentButtons: [{
|
|
5452
|
+
type: i0.ContentChildren,
|
|
5453
|
+
args: [AXButtonItemComponent]
|
|
5454
|
+
}], _viewButtons: [{
|
|
5455
|
+
type: i0.ViewChildren,
|
|
5456
|
+
args: [AXButtonItemComponent]
|
|
5457
|
+
}], onItemClick: [{
|
|
5458
|
+
type: i0.Output
|
|
5459
|
+
}], popover: [{
|
|
5460
|
+
type: i0.ViewChild,
|
|
5461
|
+
args: [AXPopoverComponent]
|
|
5462
|
+
}], items: [{
|
|
5282
5463
|
type: i0.Input
|
|
5283
5464
|
}] } });
|
|
5284
5465
|
|
|
5285
|
-
var
|
|
5286
|
-
|
|
5287
|
-
var AXInputMaskModule = /** @class */ (function () {
|
|
5288
|
-
function AXInputMaskModule() {
|
|
5466
|
+
var AXDropdownModule = /** @class */ (function () {
|
|
5467
|
+
function AXDropdownModule() {
|
|
5289
5468
|
}
|
|
5290
|
-
return
|
|
5469
|
+
return AXDropdownModule;
|
|
5291
5470
|
}());
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type:
|
|
5471
|
+
AXDropdownModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5472
|
+
AXDropdownModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownModule, declarations: [AXDropdownComponent, AXDropdownPanelComponent], imports: [i1.CommonModule, AXButtonModule, i1$2.OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule], exports: [AXDropdownComponent, AXDropdownPanelComponent] });
|
|
5473
|
+
AXDropdownModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownModule, providers: [], imports: [[i1.CommonModule, AXButtonModule, i1$2.OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule]] });
|
|
5474
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXDropdownModule, decorators: [{
|
|
5296
5475
|
type: i0.NgModule,
|
|
5297
5476
|
args: [{
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5477
|
+
imports: [i1.CommonModule, AXButtonModule, i1$2.OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule],
|
|
5478
|
+
exports: [AXDropdownComponent, AXDropdownPanelComponent],
|
|
5479
|
+
declarations: [AXDropdownComponent, AXDropdownPanelComponent],
|
|
5301
5480
|
providers: [],
|
|
5302
5481
|
}]
|
|
5303
5482
|
}] });
|
|
@@ -5551,7 +5730,7 @@
|
|
|
5551
5730
|
};
|
|
5552
5731
|
return AXNumberBoxComponent;
|
|
5553
5732
|
}(AXBaseTextBoxMixin));
|
|
5554
|
-
AXNumberBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXNumberBoxComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$
|
|
5733
|
+
AXNumberBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXNumberBoxComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$2.MaskApplierService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5555
5734
|
AXNumberBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", name: "name", separator: "separator", thousandSeparator: "thousandSeparator", step: "step", scale: "scale", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue", displayText: "displayText" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", displayTextChange: "displayTextChange" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-number-box ax-editor-container" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" [attr.pattern]=\"'[\\d\\.]*'\" [attr.placeholder]=\"placeholder\" [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_handleOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\"\r\n autocomplete=\"off\">\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <i class=\"ax-icon-x icon\"></i>\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>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i3__namespace.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: i3__namespace.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5556
5735
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXNumberBoxComponent, decorators: [{
|
|
5557
5736
|
type: i0.Component,
|
|
@@ -5575,7 +5754,7 @@
|
|
|
5575
5754
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5576
5755
|
host: { class: 'ax-number-box ax-editor-container' },
|
|
5577
5756
|
}]
|
|
5578
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$
|
|
5757
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$2.MaskApplierService }]; }, propDecorators: { __hostClass: [{
|
|
5579
5758
|
type: i0.HostBinding,
|
|
5580
5759
|
args: ['class']
|
|
5581
5760
|
}], separator: [{
|
|
@@ -5615,7 +5794,7 @@
|
|
|
5615
5794
|
AXNumberBoxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXNumberBoxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
5616
5795
|
AXNumberBoxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [i1.CommonModule,
|
|
5617
5796
|
i3.FormsModule,
|
|
5618
|
-
AXButtonModule, i1__namespace$
|
|
5797
|
+
AXButtonModule, i1__namespace$2.NgxMaskModule], exports: [AXNumberBoxComponent] });
|
|
5619
5798
|
AXNumberBoxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXNumberBoxModule, providers: [], imports: [__spreadArray([], __read(MODULES$9))] });
|
|
5620
5799
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXNumberBoxModule, decorators: [{
|
|
5621
5800
|
type: i0.NgModule,
|
|
@@ -5813,7 +5992,7 @@
|
|
|
5813
5992
|
return AXPopupComponent;
|
|
5814
5993
|
}(AXBaseComponentMixin));
|
|
5815
5994
|
AXPopupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXPopupComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }, { token: i0__namespace.ViewContainerRef }, { token: AXLoadingService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5816
|
-
AXPopupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-popup ax-{{size}}\" tabindex=\"0\" cdkDrag>\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n </div>\r\n</div>", directives: [{ type: i2__namespace$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3__namespace$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1__namespace$
|
|
5995
|
+
AXPopupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-popup ax-{{size}}\" tabindex=\"0\" cdkDrag>\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n </div>\r\n</div>", directives: [{ type: i2__namespace$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3__namespace$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1__namespace$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5817
5996
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXPopupComponent, decorators: [{
|
|
5818
5997
|
type: i0.Component,
|
|
5819
5998
|
args: [{
|
|
@@ -6202,7 +6381,7 @@
|
|
|
6202
6381
|
return AXSelectBoxComponent;
|
|
6203
6382
|
}(AXBaseSelectionDropdownMixin));
|
|
6204
6383
|
AXSelectBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXSelectBoxComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6205
|
-
AXSelectBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", fitParent: "fitParent", value: "value", items: "items", multiple: "multiple", allowNull: "allowNull", valueField: "valueField", textField: "textField" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { listeners: { "document:keydown": "_handleKeydown($event)" }, classAttribute: "ax-select-box" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: AXDropdownComponent, descendants: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ax-drop-down (onOpened)=\"_emitOnOpenedEvent()\" (onClosed)=\"_emitOnClosedEvent()\">\r\n <ng-container input>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close\" (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n <!-- <div class=\"ax-selectbox-input\">\r\n <input type=\"text\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleKeydown($event)\">\r\n </div> -->\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </div>\r\n </ng-container>\r\n <div class=\"ax-list ax-list-container\" panel>\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"!multiple; then singleTemplate; else multipleTemplate\"></ng-container>\r\n <ng-template #singleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\" [attr.tabindex]=\"i\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\r\n <ng-template #multipleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\" [attr.tabindex]=\"i\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ax-check-box [value]=\"isItemSelected(item)\">\r\n </ax-check-box>\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n\r\n </div>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ax-drop-down>", components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["disabled", "tabIndex", "
|
|
6384
|
+
AXSelectBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", fitParent: "fitParent", value: "value", items: "items", multiple: "multiple", allowNull: "allowNull", valueField: "valueField", textField: "textField" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { listeners: { "document:keydown": "_handleKeydown($event)" }, classAttribute: "ax-select-box" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: AXDropdownComponent, descendants: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ax-drop-down (onOpened)=\"_emitOnOpenedEvent()\" (onClosed)=\"_emitOnClosedEvent()\">\r\n <ng-container input>\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close\" (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n <!-- <div class=\"ax-selectbox-input\">\r\n <input type=\"text\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleKeydown($event)\">\r\n </div> -->\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </div>\r\n </ng-container>\r\n <div class=\"ax-list ax-list-container\" panel>\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"!multiple; then singleTemplate; else multipleTemplate\"></ng-container>\r\n <ng-template #singleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\" [attr.tabindex]=\"i\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\r\n <ng-template #multipleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\" [attr.tabindex]=\"i\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ax-check-box [value]=\"isItemSelected(item)\">\r\n </ax-check-box>\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n\r\n </div>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </div>\r\n </div>\r\n</ax-drop-down>", components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "disabled", "tabIndex"], outputs: ["onOpened", "onClosed", "onBlur", "onFocus"] }, { type: AXBadgeComponent, selector: "ax-badge", inputs: ["text", "color"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6206
6385
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXSelectBoxComponent, decorators: [{
|
|
6207
6386
|
type: i0.Component,
|
|
6208
6387
|
args: [{
|
|
@@ -6262,7 +6441,7 @@
|
|
|
6262
6441
|
return AXSelectionListComponent;
|
|
6263
6442
|
}(AXBaseSelectionValueMixin));
|
|
6264
6443
|
AXSelectionListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXSelectionListComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6265
|
-
AXSelectionListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", valueField: "valueField", textField: "textField", multiple: "multiple", items: "items", selectionMode: "selectionMode", cssClass: "cssClass", direction: "direction" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"ax-selection-list ax-{{direction}}\">\r\n <ng-container *ngIf=\"multiple; then checkboxList; else radioButtonList\"></ng-container>\r\n <ng-template #checkboxList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-checkbox-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id+'-'+i\" class=\"ax-checkbox\" type=\"checkbox\" (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"id+'-'+i\" class=\"ax-font-medium ax-text-light-700\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-light-500\"> {{item.hint ? item.hint : item[hintField]}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #radioButtonList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-radio-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id+'-'+i\" class=\"ax-radio\" type=\"radio\" [attr.name]=\"id\" (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"id+'-'+i\" class=\"ax-font-medium ax-text-light-700\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-light-500\"> {{item.hint ? item.hint : item[hintField]}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-content select=\"ax-validation-rule\">\r\n </ng-content>\r\n</div>", directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6444
|
+
AXSelectionListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", valueField: "valueField", textField: "textField", multiple: "multiple", items: "items", selectionMode: "selectionMode", cssClass: "cssClass", direction: "direction" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"ax-selection-list ax-{{direction}}\">\r\n <ng-container *ngIf=\"multiple; then checkboxList; else radioButtonList\"></ng-container>\r\n <ng-template #checkboxList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-checkbox-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id+'-'+i\" class=\"ax-checkbox\" type=\"checkbox\" (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"id+'-'+i\" class=\"ax-font-medium ax-text-light-700 dark:ax-text-light-100\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-light-500\"> {{item.hint ? item.hint : item[hintField]}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #radioButtonList>\r\n <ng-container *ngFor=\"let item of displayItems;let i = index\">\r\n <div class=\"ax-flex ax-items-start ax-radio-container ax-mb-2\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id+'-'+i\" class=\"ax-radio\" type=\"radio\" [attr.name]=\"id\" (change)=\"_handleOnItemValueChange(item, $event)\" [checked]=\"isItemSelected(item)\" [disabled]=\"disabled || item.disabled\" [readonly]=\"readonly || item.readonly\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <label [for]=\"id+'-'+i\" class=\"ax-font-medium ax-text-light-700 dark:ax-text-light-100\"> {{item[textField]}}</label>\r\n <p class=\"ax-text-light-500\"> {{item.hint ? item.hint : item[hintField]}}</p>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-template>\r\n <ng-content select=\"ax-validation-rule\">\r\n </ng-content>\r\n</div>", directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6266
6445
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXSelectionListComponent, decorators: [{
|
|
6267
6446
|
type: i0.Component,
|
|
6268
6447
|
args: [{
|
|
@@ -6586,7 +6765,7 @@
|
|
|
6586
6765
|
});
|
|
6587
6766
|
// @HostBinding('class')
|
|
6588
6767
|
// private get __hostClass(): string {
|
|
6589
|
-
//
|
|
6768
|
+
// ;
|
|
6590
6769
|
// const classes: any = {
|
|
6591
6770
|
// 'ax-state-active': this.active
|
|
6592
6771
|
// }
|
|
@@ -6704,7 +6883,7 @@
|
|
|
6704
6883
|
return this._portal;
|
|
6705
6884
|
},
|
|
6706
6885
|
set: function (v) {
|
|
6707
|
-
|
|
6886
|
+
//;
|
|
6708
6887
|
if (v) {
|
|
6709
6888
|
this._portal = v;
|
|
6710
6889
|
this._viewContainerRef.clear();
|
|
@@ -6863,7 +7042,7 @@
|
|
|
6863
7042
|
};
|
|
6864
7043
|
return AXTimeBoxComponent;
|
|
6865
7044
|
}(AXBaseTextBoxMixin));
|
|
6866
|
-
AXTimeBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTimeBoxComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$
|
|
7045
|
+
AXTimeBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTimeBoxComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$2.MaskApplierService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6867
7046
|
AXTimeBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTimeBoxComponent, selector: "ax-time-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", name: "name", minValue: "minValue", maxValue: "maxValue", format: "format", displayText: "displayText" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", displayTextChange: "displayTextChange" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-time-box ax-editor-container" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" [attr.pattern]=\"'[\\d\\.]*'\" [attr.placeholder]=\"placeholder\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (keydown)=\"_handleOnKeydownEvent($event)\">\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <i class=\"ax-icon-x icon\"></i>\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>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i3__namespace.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: i3__namespace.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
6868
7047
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTimeBoxComponent, decorators: [{
|
|
6869
7048
|
type: i0.Component,
|
|
@@ -6876,7 +7055,7 @@
|
|
|
6876
7055
|
encapsulation: i0.ViewEncapsulation.None,
|
|
6877
7056
|
host: { class: 'ax-time-box ax-editor-container' },
|
|
6878
7057
|
}]
|
|
6879
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$
|
|
7058
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$2.MaskApplierService }]; }, propDecorators: { hostClass: [{
|
|
6880
7059
|
type: i0.HostBinding,
|
|
6881
7060
|
args: ['class']
|
|
6882
7061
|
}], minValue: [{
|
|
@@ -6906,7 +7085,7 @@
|
|
|
6906
7085
|
AXTimeBoxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTimeBoxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
6907
7086
|
AXTimeBoxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTimeBoxModule, declarations: [AXTimeBoxComponent], imports: [i1.CommonModule,
|
|
6908
7087
|
i3.FormsModule,
|
|
6909
|
-
AXButtonModule, i1__namespace$
|
|
7088
|
+
AXButtonModule, i1__namespace$2.NgxMaskModule], exports: [AXTimeBoxComponent] });
|
|
6910
7089
|
AXTimeBoxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTimeBoxModule, providers: [], imports: [__spreadArray([], __read(MODULES$2))] });
|
|
6911
7090
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTimeBoxModule, decorators: [{
|
|
6912
7091
|
type: i0.NgModule,
|
|
@@ -7245,97 +7424,6 @@
|
|
|
7245
7424
|
}]
|
|
7246
7425
|
}] });
|
|
7247
7426
|
|
|
7248
|
-
/**
|
|
7249
|
-
* The Textbox is a component which detects user interaction and triggers a corresponding event
|
|
7250
|
-
*
|
|
7251
|
-
* @category Components
|
|
7252
|
-
*/
|
|
7253
|
-
var AXTextBoxComponent = /** @class */ (function (_super) {
|
|
7254
|
-
__extends(AXTextBoxComponent, _super);
|
|
7255
|
-
/**
|
|
7256
|
-
* @ignore
|
|
7257
|
-
*/
|
|
7258
|
-
function AXTextBoxComponent(elementRef, cdr) {
|
|
7259
|
-
return _super.call(this, elementRef, cdr) || this;
|
|
7260
|
-
}
|
|
7261
|
-
Object.defineProperty(AXTextBoxComponent.prototype, "hostClass", {
|
|
7262
|
-
//TODO: prefix suffix text
|
|
7263
|
-
get: function () {
|
|
7264
|
-
return this.cssClass + " ax-" + this.size;
|
|
7265
|
-
},
|
|
7266
|
-
enumerable: false,
|
|
7267
|
-
configurable: true
|
|
7268
|
-
});
|
|
7269
|
-
return AXTextBoxComponent;
|
|
7270
|
-
}(AXBaseTextBoxMixin));
|
|
7271
|
-
AXTextBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7272
|
-
AXTextBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXTextBoxComponent, selector: "ax-text-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", value: "value", name: "name" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { properties: { "class": "this.hostClass" }, classAttribute: "ax-text-box ax-editor-container" }, queries: [{ propertyName: "_contentMask", first: true, predicate: AXInputMaskComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" type=\"text\" [mask]=\"_contentMask?.mask\" [prefix]=\"_contentMask?.prefix\"\r\n [suffix]=\"_contentMask?.suffix\" [showMaskTyped]=\"_contentMask?.showMaskTyped\" [attr.placeholder]=\"placeholder\"\r\n [attr.maxlength]=\"maxLength\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete ? 'on': 'off'\">\r\n<ax-button color=\"light\" look=\"blank\" [size]=\"size\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && allowNull && !(disabled || readonly)\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n </ax-prefix>\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<ng-content select=\"ax-input-mask\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1__namespace$3.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { type: i3__namespace.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: i3__namespace.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i3__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
7273
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxComponent, decorators: [{
|
|
7274
|
-
type: i0.Component,
|
|
7275
|
-
args: [{
|
|
7276
|
-
selector: 'ax-text-box',
|
|
7277
|
-
templateUrl: 'textbox.component.html',
|
|
7278
|
-
inputs: __spreadArray([
|
|
7279
|
-
'disabled',
|
|
7280
|
-
'readonly',
|
|
7281
|
-
'tabIndex',
|
|
7282
|
-
'cssClass',
|
|
7283
|
-
'size'
|
|
7284
|
-
], __read(TEXTBOX_INPUTS)),
|
|
7285
|
-
outputs: __spreadArray([
|
|
7286
|
-
'valueChange',
|
|
7287
|
-
'onValueChanged',
|
|
7288
|
-
'onBlur',
|
|
7289
|
-
'onFocus'
|
|
7290
|
-
], __read(TEXTBOX_OUTPUT)),
|
|
7291
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
7292
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7293
|
-
host: { class: 'ax-text-box ax-editor-container' },
|
|
7294
|
-
}]
|
|
7295
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { _contentMask: [{
|
|
7296
|
-
type: i0.ContentChild,
|
|
7297
|
-
args: [AXInputMaskComponent]
|
|
7298
|
-
}], hostClass: [{
|
|
7299
|
-
type: i0.HostBinding,
|
|
7300
|
-
args: ['class']
|
|
7301
|
-
}] } });
|
|
7302
|
-
|
|
7303
|
-
var AXTextBoxModule = /** @class */ (function () {
|
|
7304
|
-
function AXTextBoxModule() {
|
|
7305
|
-
}
|
|
7306
|
-
return AXTextBoxModule;
|
|
7307
|
-
}());
|
|
7308
|
-
AXTextBoxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
7309
|
-
AXTextBoxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [i1.CommonModule,
|
|
7310
|
-
i3.FormsModule,
|
|
7311
|
-
AXButtonModule,
|
|
7312
|
-
AXEditorDecoratorModule,
|
|
7313
|
-
AXIconModule, i1__namespace$3.NgxMaskModule], exports: [AXTextBoxComponent] });
|
|
7314
|
-
AXTextBoxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, providers: [], imports: [[
|
|
7315
|
-
i1.CommonModule,
|
|
7316
|
-
i3.FormsModule,
|
|
7317
|
-
AXButtonModule,
|
|
7318
|
-
AXEditorDecoratorModule,
|
|
7319
|
-
AXIconModule,
|
|
7320
|
-
i1$3.NgxMaskModule.forChild()
|
|
7321
|
-
]] });
|
|
7322
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: AXTextBoxModule, decorators: [{
|
|
7323
|
-
type: i0.NgModule,
|
|
7324
|
-
args: [{
|
|
7325
|
-
imports: [
|
|
7326
|
-
i1.CommonModule,
|
|
7327
|
-
i3.FormsModule,
|
|
7328
|
-
AXButtonModule,
|
|
7329
|
-
AXEditorDecoratorModule,
|
|
7330
|
-
AXIconModule,
|
|
7331
|
-
i1$3.NgxMaskModule.forChild()
|
|
7332
|
-
],
|
|
7333
|
-
exports: [AXTextBoxComponent],
|
|
7334
|
-
declarations: [AXTextBoxComponent],
|
|
7335
|
-
providers: [],
|
|
7336
|
-
}]
|
|
7337
|
-
}] });
|
|
7338
|
-
|
|
7339
7427
|
// @dynamic
|
|
7340
7428
|
var AXValidationRules = /** @class */ (function () {
|
|
7341
7429
|
function AXValidationRules() {
|
|
@@ -7504,6 +7592,8 @@
|
|
|
7504
7592
|
exports.AXBaseClickableMixin = AXBaseClickableMixin;
|
|
7505
7593
|
exports.AXBaseComponent = AXBaseComponent;
|
|
7506
7594
|
exports.AXBaseComponentMixin = AXBaseComponentMixin;
|
|
7595
|
+
exports.AXBaseDatePickerMixin = AXBaseDatePickerMixin;
|
|
7596
|
+
exports.AXBaseDropdownMixin = AXBaseDropdownMixin;
|
|
7507
7597
|
exports.AXBaseItemButtonMixin = AXBaseItemButtonMixin;
|
|
7508
7598
|
exports.AXBasePageComponent = AXBasePageComponent;
|
|
7509
7599
|
exports.AXBaseSelectionDropdownMixin = AXBaseSelectionDropdownMixin;
|
|
@@ -7531,7 +7621,7 @@
|
|
|
7531
7621
|
exports.AXCommonModule = AXCommonModule;
|
|
7532
7622
|
exports.AXDataListComponent = AXDataListComponent;
|
|
7533
7623
|
exports.AXDataListModule = AXDataListModule;
|
|
7534
|
-
exports.
|
|
7624
|
+
exports.AXDatePickerComponent = AXDatePickerComponent;
|
|
7535
7625
|
exports.AXDatepickerModule = AXDatepickerModule;
|
|
7536
7626
|
exports.AXDecoratorContentComponent = AXDecoratorContentComponent;
|
|
7537
7627
|
exports.AXDecoratorPrefixComponent = AXDecoratorPrefixComponent;
|