@acorex/components 3.0.50 → 3.0.54
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/acorex-components.metadata.json +1 -1
- package/bundles/acorex-components.umd.js +93 -36
- package/bundles/acorex-components.umd.js.map +1 -1
- package/bundles/acorex-components.umd.min.js +1 -1
- package/bundles/acorex-components.umd.min.js.map +1 -1
- package/esm2015/lib/calendar/calendar-box/calendar-box.component.js +13 -2
- package/esm2015/lib/date-picker/date-picker.component.js +13 -3
- package/esm2015/lib/dropdown/dropdown.component.js +7 -2
- package/esm2015/lib/menu/menu2.component.js +1 -1
- package/esm2015/lib/query-builder/query-builder-rule.component.js +5 -1
- package/esm2015/lib/query-builder/query-builder.service.js +4 -4
- package/esm2015/lib/selectbox/selectbox.component.js +56 -29
- package/esm5/lib/calendar/calendar-box/calendar-box.component.js +13 -2
- package/esm5/lib/date-picker/date-picker.component.js +13 -3
- package/esm5/lib/dropdown/dropdown.component.js +7 -2
- package/esm5/lib/menu/menu2.component.js +1 -1
- package/esm5/lib/query-builder/query-builder-rule.component.js +5 -1
- package/esm5/lib/query-builder/query-builder.service.js +4 -4
- package/esm5/lib/selectbox/selectbox.component.js +56 -29
- package/fesm2015/acorex-components.js +93 -36
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +93 -36
- package/fesm5/acorex-components.js.map +1 -1
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +1 -0
- package/lib/date-picker/date-picker.component.d.ts +1 -0
- package/lib/dropdown/dropdown.component.d.ts +1 -0
- package/lib/selectbox/selectbox.component.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1290,6 +1290,7 @@
|
|
|
1290
1290
|
this.size = 'md';
|
|
1291
1291
|
this.selectableHoliday = true;
|
|
1292
1292
|
this.dayStyle = [];
|
|
1293
|
+
this.dayMinMaxResoan = '';
|
|
1293
1294
|
this.showTodayButton = false;
|
|
1294
1295
|
this.matrix = [];
|
|
1295
1296
|
this.rotated = false;
|
|
@@ -1397,7 +1398,13 @@
|
|
|
1397
1398
|
return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).text;
|
|
1398
1399
|
}
|
|
1399
1400
|
else {
|
|
1400
|
-
|
|
1401
|
+
if ((this.min && this.max && date.compaireNew(new core$1.AXDateTime(this.min, this.type), 'YMD', this.type) === -1) ||
|
|
1402
|
+
date.compaireNew(new core$1.AXDateTime(this.max, this.type), 'YMD', this.type) === 1) {
|
|
1403
|
+
return this.dayMinMaxResoan;
|
|
1404
|
+
}
|
|
1405
|
+
else {
|
|
1406
|
+
return '';
|
|
1407
|
+
}
|
|
1401
1408
|
}
|
|
1402
1409
|
};
|
|
1403
1410
|
AXCalendarBoxComponent.prototype.ngOnInit = function () {
|
|
@@ -1684,6 +1691,10 @@
|
|
|
1684
1691
|
core.Input(),
|
|
1685
1692
|
__metadata("design:type", Object)
|
|
1686
1693
|
], AXCalendarBoxComponent.prototype, "dayStyle", void 0);
|
|
1694
|
+
__decorate([
|
|
1695
|
+
core.Input(),
|
|
1696
|
+
__metadata("design:type", Object)
|
|
1697
|
+
], AXCalendarBoxComponent.prototype, "dayMinMaxResoan", void 0);
|
|
1687
1698
|
__decorate([
|
|
1688
1699
|
core.Input('showTodayButton'),
|
|
1689
1700
|
__metadata("design:type", Boolean)
|
|
@@ -3448,7 +3459,7 @@
|
|
|
3448
3459
|
selector: 'ax-menu2',
|
|
3449
3460
|
template: "\n <div class=\"ax ax-menu ax-menu-vertical\" [attr.data-level]=\"level\">\n <ax-menu-item\n *ngFor=\"let item of items\"\n [level]=\"level\"\n [item]=\"item\"\n (showSubMenu)=\"showSubmenu($event)\">\n </ax-menu-item>\n </div>\n ",
|
|
3450
3461
|
encapsulation: core.ViewEncapsulation.None,
|
|
3451
|
-
styles: [".ax.ax-menu{display:flex}.ax.ax-menu.ax-menu-vertical[data-level=\"0\"]{display:flex;flex-direction:row}.ax.ax-menu.ax-menu-vertical:not([data-level=\"0\"]){display:flex;transition:opacity .3s;min-width:12em;box-shadow:0 1px 7px 0 var(--ax-border-color);background:#fff;flex-direction:column}.ax.ax-menu.ax-menu-vertical .ax-menu-item{display:flex;white-space:nowrap;cursor:pointer;padding:0 10px;font-weight:400;font-size:1rem;line-height:40px;text-decoration:none;align-items:center}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:first-child{-webkit-margin-end:var(--ax-size-md);margin-inline-end:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:last-child{-webkit-margin-start:var(--ax-size-md);margin-inline-start:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item span{flex:1}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled{
|
|
3462
|
+
styles: [".ax.ax-menu{display:flex}.ax.ax-menu.ax-menu-vertical[data-level=\"0\"]{display:flex;flex-direction:row}.ax.ax-menu.ax-menu-vertical:not([data-level=\"0\"]){display:flex;transition:opacity .3s;min-width:12em;box-shadow:0 1px 7px 0 var(--ax-border-color);background:#fff;flex-direction:column}.ax.ax-menu.ax-menu-vertical .ax-menu-item{display:flex;white-space:nowrap;cursor:pointer;padding:0 10px;font-weight:400;font-size:1rem;line-height:40px;text-decoration:none;align-items:center}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:first-child{-webkit-margin-end:var(--ax-size-md);margin-inline-end:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:last-child{-webkit-margin-start:var(--ax-size-md);margin-inline-start:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item span{flex:1}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled{opacity:.6;cursor:not-allowed!important}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled .icon{color:var(--ax-gray-dark-color)!important}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled:hover{cursor:not-allowed!important}"]
|
|
3452
3463
|
}),
|
|
3453
3464
|
__metadata("design:paramtypes", [overlay.Overlay,
|
|
3454
3465
|
core.ViewContainerRef,
|
|
@@ -5521,7 +5532,8 @@
|
|
|
5521
5532
|
var _this = this;
|
|
5522
5533
|
if (!this.overlayRef) {
|
|
5523
5534
|
var targetEl = document.querySelector('#' + this.uid);
|
|
5524
|
-
var positionStrategy = this.overlay
|
|
5535
|
+
var positionStrategy = this.overlay
|
|
5536
|
+
.position()
|
|
5525
5537
|
.flexibleConnectedTo(targetEl)
|
|
5526
5538
|
.withPositions([
|
|
5527
5539
|
{
|
|
@@ -5573,6 +5585,10 @@
|
|
|
5573
5585
|
enumerable: true,
|
|
5574
5586
|
configurable: true
|
|
5575
5587
|
});
|
|
5588
|
+
AXDropdownComponent.prototype.updatePosition = function () {
|
|
5589
|
+
var _a;
|
|
5590
|
+
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
|
|
5591
|
+
};
|
|
5576
5592
|
AXDropdownComponent.prototype.focus = function () { };
|
|
5577
5593
|
AXDropdownComponent.ctorParameters = function () { return [
|
|
5578
5594
|
{ type: core.ChangeDetectorRef },
|
|
@@ -5653,6 +5669,7 @@
|
|
|
5653
5669
|
_this.ref = ref;
|
|
5654
5670
|
_this.cdr = cdr;
|
|
5655
5671
|
_this.dayStyle = [];
|
|
5672
|
+
_this.dayMinMaxResoan = '';
|
|
5656
5673
|
// mmddyyyy: any = [/[0-1]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
|
|
5657
5674
|
_this.yyyyMMdd = [/[1-2]/, /[0-9]/, /[0-9]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-3]/, /[0-9]/];
|
|
5658
5675
|
_this.ddMMyyyy = [/[0-3]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[1-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
|
|
@@ -5711,7 +5728,8 @@
|
|
|
5711
5728
|
this.value = new Date();
|
|
5712
5729
|
};
|
|
5713
5730
|
AXDatePickerComponent.prototype.focus = function () {
|
|
5714
|
-
this.dropdown.focus();
|
|
5731
|
+
// this.dropdown.focus();
|
|
5732
|
+
this.input.focus();
|
|
5715
5733
|
};
|
|
5716
5734
|
AXDatePickerComponent.prototype.convertMaskToDate = function (text) {
|
|
5717
5735
|
if (this.type == 'jalali') {
|
|
@@ -5745,6 +5763,7 @@
|
|
|
5745
5763
|
return { year: y, monnth: m, day: d };
|
|
5746
5764
|
};
|
|
5747
5765
|
AXDatePickerComponent.prototype.textChange = function (e) {
|
|
5766
|
+
debugger;
|
|
5748
5767
|
this.text = e.value;
|
|
5749
5768
|
if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10) {
|
|
5750
5769
|
this.userChange = e.isUserChange;
|
|
@@ -5812,6 +5831,9 @@
|
|
|
5812
5831
|
}, 100);
|
|
5813
5832
|
}
|
|
5814
5833
|
}
|
|
5834
|
+
else {
|
|
5835
|
+
this.text = '';
|
|
5836
|
+
}
|
|
5815
5837
|
this.userChange = false;
|
|
5816
5838
|
},
|
|
5817
5839
|
enumerable: true,
|
|
@@ -6307,6 +6329,10 @@
|
|
|
6307
6329
|
core.Input(),
|
|
6308
6330
|
__metadata("design:type", Object)
|
|
6309
6331
|
], AXDatePickerComponent.prototype, "dayStyle", void 0);
|
|
6332
|
+
__decorate([
|
|
6333
|
+
core.Input(),
|
|
6334
|
+
__metadata("design:type", Object)
|
|
6335
|
+
], AXDatePickerComponent.prototype, "dayMinMaxResoan", void 0);
|
|
6310
6336
|
__decorate([
|
|
6311
6337
|
core.ContentChild(AXValidation, { static: true }),
|
|
6312
6338
|
__metadata("design:type", AXValidation)
|
|
@@ -6393,7 +6419,7 @@
|
|
|
6393
6419
|
AXDatePickerComponent = AXDatePickerComponent_1 = __decorate([
|
|
6394
6420
|
core.Component({
|
|
6395
6421
|
selector: 'ax-date-picker',
|
|
6396
|
-
template: "<ax-drop-down [readonly]=\"readonly\" [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\"
|
|
6422
|
+
template: "<ax-drop-down [readonly]=\"readonly\" [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\"\r\n icon=\"far fa-calendar-alt\" #dropdown maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <ax-text-box #input [textAlign]=\"textAlign\" [(value)]=\"text\" [readonly]=\"false\" [textMask]=\"dateType\"\r\n [disabled]=\"disabled\" [placeholder]=\"placeholder\" [size]=\"size\" (onkey)=\"handleKeyPress($event)\"\r\n (onFocus)=\"handleInputFocus()\" (click)=\"handleClick()\" (onBlur)=\"handleInputBlur()\"\r\n (onValueChanged)=\"textChange($event)\"></ax-text-box>\r\n </ng-container>\r\n <ng-container panel>\r\n <ax-calendar-box *ngIf=\"_renderPicker\" [showTodayButton]=\"showTodayButton\"\r\n [selectableHoliday]=\"selectableHoliday\" [min]=\"min\" [max]=\"max\" [size]=\"size\" (onClick)=\"onClick($event)\"\r\n (onValueChanged)=\"onDateChange($event)\" [type]=\"type\" [(value)]=\"value\" [dayStyle]=\"dayStyle\"\r\n [dayMinMaxResoan]=\"dayMinMaxResoan\">\r\n </ax-calendar-box>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end *ngIf=\"allowClear && value\" [disabled]=\"disabled\" icon=\"far fa-times icon\" type=\"blank danger\"\r\n (click)=\"clear()\" [size]=\"size\" [tabIndex]=\"-1\">\r\n </ax-button>\r\n <ax-button end icon=\"far fa-calendar-alt icon\" type=\"light blank\" (click)=\"handleButtonClick()\"\r\n [disabled]=\"disabled\" [size]=\"size\" [tabIndex]=\"-1\"></ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n\r\n</ax-drop-down>",
|
|
6397
6423
|
encapsulation: core.ViewEncapsulation.None,
|
|
6398
6424
|
providers: [{ provide: AXValidatableComponent, useExisting: AXDatePickerComponent_1 }],
|
|
6399
6425
|
host: { style: 'width: 100%' },
|
|
@@ -8632,6 +8658,7 @@
|
|
|
8632
8658
|
_this.allowSearch = true;
|
|
8633
8659
|
_this.textField = 'text';
|
|
8634
8660
|
_this.valueField = 'value';
|
|
8661
|
+
_this.disabledField = 'disabled';
|
|
8635
8662
|
_this.mode = 'single';
|
|
8636
8663
|
_this.itemRemove = false;
|
|
8637
8664
|
_this.itemsChange = new core.EventEmitter();
|
|
@@ -8803,6 +8830,17 @@
|
|
|
8803
8830
|
}
|
|
8804
8831
|
}
|
|
8805
8832
|
};
|
|
8833
|
+
AXSelectBoxComponent.prototype.isItemDisabled = function (item) {
|
|
8834
|
+
if (item[this.disabledField] == true) {
|
|
8835
|
+
return true;
|
|
8836
|
+
}
|
|
8837
|
+
else if (this.disabledCallback) {
|
|
8838
|
+
return this.disabledCallback({ item: item, index: -1 });
|
|
8839
|
+
}
|
|
8840
|
+
else {
|
|
8841
|
+
return false;
|
|
8842
|
+
}
|
|
8843
|
+
};
|
|
8806
8844
|
AXSelectBoxComponent.prototype.onButtonClick = function (e) {
|
|
8807
8845
|
console.log('onButtonClick', e);
|
|
8808
8846
|
};
|
|
@@ -8850,6 +8888,7 @@
|
|
|
8850
8888
|
Object.defineProperty(AXSelectBoxComponent.prototype, "selectedValues", {
|
|
8851
8889
|
get: function () {
|
|
8852
8890
|
var _this = this;
|
|
8891
|
+
debugger;
|
|
8853
8892
|
if (this.mode === 'single') {
|
|
8854
8893
|
return this._selectedItems.map(function (c) { return c[_this.valueField]; })[0];
|
|
8855
8894
|
}
|
|
@@ -8936,6 +8975,8 @@
|
|
|
8936
8975
|
}
|
|
8937
8976
|
};
|
|
8938
8977
|
AXSelectBoxComponent.prototype.emitSelectionChangedEvent = function () {
|
|
8978
|
+
debugger;
|
|
8979
|
+
this.selectedValuesChange.emit(this.selectedValues);
|
|
8939
8980
|
this.selectionChanged.emit(new AXSelectBoxSelectionChangedEvent(this, this.selectedItems, this.selectedValues));
|
|
8940
8981
|
};
|
|
8941
8982
|
AXSelectBoxComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -9053,6 +9094,7 @@
|
|
|
9053
9094
|
}
|
|
9054
9095
|
this.cdr.markForCheck();
|
|
9055
9096
|
this.cdr.detectChanges();
|
|
9097
|
+
this.dropdown.updatePosition();
|
|
9056
9098
|
};
|
|
9057
9099
|
// private params: AXDataSourceReadParams = {};
|
|
9058
9100
|
AXSelectBoxComponent.prototype.fetch = function (params) {
|
|
@@ -9111,37 +9153,39 @@
|
|
|
9111
9153
|
};
|
|
9112
9154
|
AXSelectBoxComponent.prototype.handleItemClick = function (e, item) {
|
|
9113
9155
|
var _this = this;
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
else {
|
|
9120
|
-
var exists = this.selectedValues.slice(0);
|
|
9121
|
-
if (exists.includes(value)) {
|
|
9122
|
-
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
|
9123
|
-
this.handleItemRemoveClick(item);
|
|
9124
|
-
}
|
|
9156
|
+
if (this.isItemDisabled(item) == false) {
|
|
9157
|
+
var value = item[this.valueField];
|
|
9158
|
+
if (this.mode === 'single') {
|
|
9159
|
+
// this.selectedValues = value;
|
|
9160
|
+
this.setSelectedValues(value, true);
|
|
9125
9161
|
}
|
|
9126
9162
|
else {
|
|
9127
|
-
exists.
|
|
9128
|
-
|
|
9129
|
-
|
|
9163
|
+
var exists = this.selectedValues.slice(0);
|
|
9164
|
+
if (exists.includes(value)) {
|
|
9165
|
+
if (this.allowNull == true || (this.allowNull == false && this.selectedItems.length > 1)) {
|
|
9166
|
+
this.handleItemRemoveClick(item);
|
|
9167
|
+
}
|
|
9168
|
+
}
|
|
9169
|
+
else {
|
|
9170
|
+
exists.push(value);
|
|
9171
|
+
// this.selectedValues = exists;
|
|
9172
|
+
this.setSelectedValues(exists, true);
|
|
9173
|
+
}
|
|
9130
9174
|
}
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
this.cdr.markForCheck();
|
|
9136
|
-
}
|
|
9137
|
-
// if (e.stopPropagation() == undefined) {
|
|
9138
|
-
// e.stopPropagation();
|
|
9139
|
-
// }
|
|
9140
|
-
setTimeout(function () {
|
|
9141
|
-
if (_this.serchBox) {
|
|
9142
|
-
_this.serchBox.focus();
|
|
9175
|
+
if (this.mode == 'single') {
|
|
9176
|
+
this.text = '';
|
|
9177
|
+
this.dropdown.close();
|
|
9178
|
+
this.cdr.markForCheck();
|
|
9143
9179
|
}
|
|
9144
|
-
|
|
9180
|
+
// if (e.stopPropagation() == undefined) {
|
|
9181
|
+
// e.stopPropagation();
|
|
9182
|
+
// }
|
|
9183
|
+
setTimeout(function () {
|
|
9184
|
+
if (_this.serchBox) {
|
|
9185
|
+
_this.serchBox.focus();
|
|
9186
|
+
}
|
|
9187
|
+
}, 0);
|
|
9188
|
+
}
|
|
9145
9189
|
e.stopPropagation();
|
|
9146
9190
|
};
|
|
9147
9191
|
AXSelectBoxComponent.prototype.handleKeyEventSearch = function (e) {
|
|
@@ -9310,6 +9354,7 @@
|
|
|
9310
9354
|
if (e.key === 'Backspace' &&
|
|
9311
9355
|
e.type === 'keydown' &&
|
|
9312
9356
|
((this.allowNull === true && this.selectedItems.length > 0) || (this.allowNull === false && this.selectedItems.length > 1))) {
|
|
9357
|
+
debugger;
|
|
9313
9358
|
this.selectedItems.pop();
|
|
9314
9359
|
this.emitSelectionChangedEvent();
|
|
9315
9360
|
}
|
|
@@ -9571,6 +9616,10 @@
|
|
|
9571
9616
|
core.ViewChild('d', { static: true }),
|
|
9572
9617
|
__metadata("design:type", AXDropdownComponent)
|
|
9573
9618
|
], AXSelectBoxComponent.prototype, "dropdown", void 0);
|
|
9619
|
+
__decorate([
|
|
9620
|
+
core.Input(),
|
|
9621
|
+
__metadata("design:type", Function)
|
|
9622
|
+
], AXSelectBoxComponent.prototype, "disabledCallback", void 0);
|
|
9574
9623
|
__decorate([
|
|
9575
9624
|
core.Input(),
|
|
9576
9625
|
__metadata("design:type", Boolean)
|
|
@@ -9583,6 +9632,10 @@
|
|
|
9583
9632
|
core.Input(),
|
|
9584
9633
|
__metadata("design:type", String)
|
|
9585
9634
|
], AXSelectBoxComponent.prototype, "valueField", void 0);
|
|
9635
|
+
__decorate([
|
|
9636
|
+
core.Input(),
|
|
9637
|
+
__metadata("design:type", String)
|
|
9638
|
+
], AXSelectBoxComponent.prototype, "disabledField", void 0);
|
|
9586
9639
|
__decorate([
|
|
9587
9640
|
core.Input(),
|
|
9588
9641
|
__metadata("design:type", String)
|
|
@@ -9629,7 +9682,7 @@
|
|
|
9629
9682
|
AXSelectBoxComponent = AXSelectBoxComponent_1 = __decorate([
|
|
9630
9683
|
core.Component({
|
|
9631
9684
|
selector: 'ax-select-box',
|
|
9632
|
-
template: "<ax-drop-down [size]=\"size\" [rtl]=\"rtl\" [showDropDownButton]=\"showDropDownButton\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" #d (dropdownToggle)=\"dropdownToggleSelecBox($event)\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\" [horizontalScroll]=\"40\">\r\n <div class=\"chips\" [class.chips-blank]=\"mode === 'single'\" [title]=\"item[textField]\"\r\n *ngFor=\"let item of selectedItems\">\r\n <span class=\"chips-text\">\r\n {{item[textField]}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\"\r\n *ngIf=\"(readonly!=true || itemRemove ==true)&& disabled!=true && (allowNull==true || (selectedItems.length > 1))\">\r\n <i class=\"far fa-times-circle close\"></i>\r\n </span>\r\n </div>\r\n <div class=\"search-wrapper\" (click)=\"onTextBoxClick($event)\">\r\n <ax-text-box #textBoxSelectBox [textAlign]=\"textAlign\"\r\n [placeholder]=\"selectedItems.length == 0 ? placeholder : ''\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" (onkey)=\"handleKeyEvent($event)\" [size]=\"size\"\r\n (onFocus)=\"onFocusTextBox($event)\">\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n\r\n <ng-container panel>\r\n <div *ngIf=\"allowSearch\" class=\"search-wrapper\" style=\"padding: 0.7em;\">\r\n <ax-search-box #serchBox [(value)]=\"text\" (onkey)=\"handleKeyEventSearch($event)\"\r\n (textChanged)=\"textChanged($event)\" (onButtonClick)=\"textChanged($event)\">\r\n </ax-search-box>\r\n </div>\r\n <div class=\"ax list-container\">\r\n <div #listContainer style=\"max-height: 300px;overflow-y: auto;width: 100%;\" (scroll)=\"scrolled($event)\">\r\n <ng-container *ngIf=\"getItems().length>0; then thenTemplate; else elseTemplate\"></ng-container>\r\n <ng-template #thenTemplate>\r\n <div class=\"list-item\"
|
|
9685
|
+
template: "<ax-drop-down [size]=\"size\" [rtl]=\"rtl\" [showDropDownButton]=\"showDropDownButton\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" #d (dropdownToggle)=\"dropdownToggleSelecBox($event)\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\" [horizontalScroll]=\"40\">\r\n <div class=\"chips\" [class.chips-blank]=\"mode === 'single'\" [title]=\"item[textField]\"\r\n *ngFor=\"let item of selectedItems\">\r\n <span class=\"chips-text\">\r\n {{item[textField]}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\"\r\n *ngIf=\"(readonly!=true || itemRemove ==true)&& disabled!=true && (allowNull==true || (selectedItems.length > 1))\">\r\n <i class=\"far fa-times-circle close\"></i>\r\n </span>\r\n </div>\r\n <div class=\"search-wrapper\" (click)=\"onTextBoxClick($event)\">\r\n <ax-text-box #textBoxSelectBox [textAlign]=\"textAlign\"\r\n [placeholder]=\"selectedItems.length == 0 ? placeholder : ''\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" (onkey)=\"handleKeyEvent($event)\" [size]=\"size\"\r\n (onFocus)=\"onFocusTextBox($event)\">\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </ng-container>\r\n\r\n <ng-container panel>\r\n <div *ngIf=\"allowSearch\" class=\"search-wrapper\" style=\"padding: 0.7em;\">\r\n <ax-search-box #serchBox [(value)]=\"text\" (onkey)=\"handleKeyEventSearch($event)\"\r\n (textChanged)=\"textChanged($event)\" (onButtonClick)=\"textChanged($event)\">\r\n </ax-search-box>\r\n </div>\r\n <div class=\"ax list-container\">\r\n <div #listContainer style=\"max-height: 300px;overflow-y: auto;width: 100%;\" (scroll)=\"scrolled($event)\">\r\n <ng-container *ngIf=\"getItems().length>0; then thenTemplate; else elseTemplate\"></ng-container>\r\n <ng-template #thenTemplate>\r\n <div [class.ax-state-disabled]=\"isItemDisabled(item)\" class=\"list-item\"\r\n *ngFor=\"let item of getItems();let i = index\" [class.focused]=\"i==currentfocusedIndex\"\r\n [class.selected]=\"isItemSelected(item)\" (click)=\"handleItemClick($event,item)\">\r\n <div style=\"display: flex;\">\r\n <ax-check-box *ngIf=\"showCheckBox\" [size]=\"size\" [value]=\"isItemSelected(item)\"\r\n [disabled]=\"(!allowNull && selectedItems.length === 1 && isItemSelected(item)) || isItemDisabled(item)\"\r\n (onClick)=\"handleItemClick($event,item)\">\r\n </ax-check-box>\r\n <ng-container *ngIf=\"rowTemplate; else elseTemplate\">\r\n <div style=\"white-space: nowrap;text-overflow: ellipsis;overflow: hidden;\"\r\n [title]=\"item[textField]\"\r\n [ngStyle]=\"(showCheckBox) ? {'padding-inline-start': '0.5rem'}:''\">\r\n <ng-container *ngTemplateOutlet=\"rowTemplate; context:{ $implicit: item }\">\r\n </ng-container>\r\n </div>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div style=\"white-space: nowrap;text-overflow: ellipsis;overflow: hidden;\"\r\n [title]=\"item[textField]\"\r\n [ngStyle]=\"(showCheckBox) ? {'padding-inline-start': '0.5rem'}:''\">\r\n {{ item[textField] }}\r\n </div>\r\n </ng-template>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </ng-template>\r\n <div *ngIf=\"showLoading\" class=\"ax-pad-sm\" style=\"text-align: center;\">\r\n <i class=\"far fa-spinner-third fa-pulse fa-2x\" style=\"color: var(--ax-primary-color);\"></i>\r\n\r\n </div>\r\n <!-- <ax-loading-indicator ></ax-loading-indicator> -->\r\n <ng-template #elseTemplate>\r\n <ng-container *ngIf=\"showLoading == true; then searchTemplate else noDataTemplate\"></ng-container>\r\n <ng-template #searchTemplate>\r\n <div class=\"list-item\">\r\n {{'common.searching' | trans}}\r\n </div>\r\n </ng-template>\r\n <ng-template #noDataTemplate>\r\n <div class=\"list-item\">\r\n {{'common.noDataFound' | trans}}\r\n </div>\r\n </ng-template>\r\n\r\n </ng-template>\r\n\r\n </div>\r\n\r\n </div>\r\n </ng-container>\r\n\r\n</ax-drop-down>",
|
|
9633
9686
|
encapsulation: core.ViewEncapsulation.None,
|
|
9634
9687
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
9635
9688
|
host: { style: 'width: 100%' },
|
|
@@ -9680,6 +9733,10 @@
|
|
|
9680
9733
|
value: 'not-contains',
|
|
9681
9734
|
text: core$1.AXTranslator.get('queryBuilder.not-contains')
|
|
9682
9735
|
},
|
|
9736
|
+
{
|
|
9737
|
+
value: 'contains-all',
|
|
9738
|
+
text: core$1.AXTranslator.get('queryBuilder.contains-all')
|
|
9739
|
+
},
|
|
9683
9740
|
{
|
|
9684
9741
|
value: 'null',
|
|
9685
9742
|
text: core$1.AXTranslator.get('queryBuilder.null')
|
|
@@ -10239,7 +10296,6 @@
|
|
|
10239
10296
|
return __generator(this, function (_d) {
|
|
10240
10297
|
switch (_d.label) {
|
|
10241
10298
|
case 0:
|
|
10242
|
-
;
|
|
10243
10299
|
if (group.items.length > 0) {
|
|
10244
10300
|
query = ' ( ';
|
|
10245
10301
|
}
|
|
@@ -10297,8 +10353,10 @@
|
|
|
10297
10353
|
case 'end-with':
|
|
10298
10354
|
codeOperator = item.operator;
|
|
10299
10355
|
break;
|
|
10356
|
+
default:
|
|
10357
|
+
codeOperator = item.operator;
|
|
10358
|
+
break;
|
|
10300
10359
|
}
|
|
10301
|
-
;
|
|
10302
10360
|
query = query + ' ' + item.caption + ' ' + codeOperator + ' ' + item.text;
|
|
10303
10361
|
_d.label = 6;
|
|
10304
10362
|
case 6:
|
|
@@ -10341,7 +10399,6 @@
|
|
|
10341
10399
|
var query = '';
|
|
10342
10400
|
switch (type) {
|
|
10343
10401
|
case 'simple':
|
|
10344
|
-
;
|
|
10345
10402
|
if (group.items.length > 0) {
|
|
10346
10403
|
query = ' ( ';
|
|
10347
10404
|
}
|