@farris/ui-list-filter 0.1.9 → 0.1.12
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/farris-ui-list-filter.umd.js +237 -23
- package/bundles/farris-ui-list-filter.umd.js.map +1 -1
- package/bundles/farris-ui-list-filter.umd.min.js +1 -1
- package/bundles/farris-ui-list-filter.umd.min.js.map +1 -1
- package/esm2015/farris-ui-list-filter.js +2 -1
- package/esm2015/lib/controlcomponent/checkboxcomponent/checkbox.component.js +25 -3
- package/esm2015/lib/controlcomponent/datecomponent/date.component.js +25 -3
- package/esm2015/lib/controlcomponent/daterangecomponent/daterange.component.js +30 -4
- package/esm2015/lib/controlcomponent/dropdowncomponent/dropdown.component.js +25 -3
- package/esm2015/lib/controlcomponent/helpcomponent.ts/help.component.js +32 -4
- package/esm2015/lib/controlcomponent/numbercomponent/number.component.js +29 -2
- package/esm2015/lib/controlcomponent/radiocomponent/radio.component.js +27 -3
- package/esm2015/lib/controlcomponent/searchcomponent/search.component.js +3 -2
- package/esm2015/lib/directives/clear-fields.directive.js +87 -0
- package/esm2015/lib/entity/conditionvalue/searchvalue.js +2 -2
- package/esm2015/lib/entity/controltype/dropdownlist/enumtype.js +1 -1
- package/esm2015/lib/entity/controltype/help/helpcontrol.js +6 -1
- package/esm2015/lib/list-filter.component.js +10 -2
- package/esm2015/lib/list-filter.module.js +4 -2
- package/esm2015/lib/service/list-filter.service.js +2 -1
- package/esm5/farris-ui-list-filter.js +2 -1
- package/esm5/lib/controlcomponent/checkboxcomponent/checkbox.component.js +27 -3
- package/esm5/lib/controlcomponent/datecomponent/date.component.js +27 -3
- package/esm5/lib/controlcomponent/daterangecomponent/daterange.component.js +32 -4
- package/esm5/lib/controlcomponent/dropdowncomponent/dropdown.component.js +27 -3
- package/esm5/lib/controlcomponent/helpcomponent.ts/help.component.js +34 -4
- package/esm5/lib/controlcomponent/numbercomponent/number.component.js +34 -2
- package/esm5/lib/controlcomponent/radiocomponent/radio.component.js +29 -3
- package/esm5/lib/controlcomponent/searchcomponent/search.component.js +4 -2
- package/esm5/lib/directives/clear-fields.directive.js +88 -0
- package/esm5/lib/entity/conditionvalue/searchvalue.js +2 -2
- package/esm5/lib/entity/controltype/dropdownlist/enumtype.js +1 -1
- package/esm5/lib/entity/controltype/help/helpcontrol.js +6 -1
- package/esm5/lib/list-filter.component.js +10 -2
- package/esm5/lib/list-filter.module.js +4 -2
- package/esm5/lib/service/list-filter.service.js +2 -1
- package/farris-ui-list-filter.d.ts +1 -0
- package/farris-ui-list-filter.metadata.json +1 -1
- package/fesm2015/farris-ui-list-filter.js +225 -22
- package/fesm2015/farris-ui-list-filter.js.map +1 -1
- package/fesm5/farris-ui-list-filter.js +244 -23
- package/fesm5/farris-ui-list-filter.js.map +1 -1
- package/lib/controlcomponent/checkboxcomponent/checkbox.component.d.ts +6 -2
- package/lib/controlcomponent/datecomponent/date.component.d.ts +6 -2
- package/lib/controlcomponent/daterangecomponent/daterange.component.d.ts +6 -2
- package/lib/controlcomponent/dropdowncomponent/dropdown.component.d.ts +6 -2
- package/lib/controlcomponent/helpcomponent.ts/help.component.d.ts +10 -2
- package/lib/controlcomponent/numbercomponent/number.component.d.ts +7 -2
- package/lib/controlcomponent/radiocomponent/radio.component.d.ts +6 -2
- package/lib/controlcomponent/searchcomponent/search.component.d.ts +2 -2
- package/lib/directives/clear-fields.directive.d.ts +11 -0
- package/lib/entity/controltype/help/helpcontrol.d.ts +4 -0
- package/lib/list-filter.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash-es'), require('rxjs'), require('@angular/common'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@farris/ui-list-filter', ['exports', 'lodash-es', 'rxjs', '@angular/common', '@
|
|
4
|
-
(factory((global.farris = global.farris || {}, global.farris['ui-list-filter'] = {}),global.lodashEs,global.rxjs,global.ng.common,global.
|
|
5
|
-
}(this, (function (exports,lodashEs,rxjs,common,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash-es'), require('rxjs'), require('@angular/common'), require('@farris/ui-input-group'), require('@farris/ui-datepicker'), require('@farris/ui-datalist'), require('@farris/ui-combo-list'), require('@farris/ui-lookup'), require('@farris/ui-forms'), require('@farris/ui-perfect-scrollbar'), require('@farris/ui-number-spinner'), require('@farris/ui-locale'), require('@angular/core'), require('@angular/forms')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@farris/ui-list-filter', ['exports', 'lodash-es', 'rxjs', '@angular/common', '@farris/ui-input-group', '@farris/ui-datepicker', '@farris/ui-datalist', '@farris/ui-combo-list', '@farris/ui-lookup', '@farris/ui-forms', '@farris/ui-perfect-scrollbar', '@farris/ui-number-spinner', '@farris/ui-locale', '@angular/core', '@angular/forms'], factory) :
|
|
4
|
+
(factory((global.farris = global.farris || {}, global.farris['ui-list-filter'] = {}),global.lodashEs,global.rxjs,global.ng.common,global.uiInputGroup,global.uiDatepicker,global.uiDatalist,global.uiComboList,global.uiLookup,global.uiForms,global.uiPerfectScrollbar,global.uiNumberSpinner,global.uiLocale,global.ng.core,global.ng.forms));
|
|
5
|
+
}(this, (function (exports,lodashEs,rxjs,common,uiInputGroup,uiDatepicker,uiDatalist,uiComboList,uiLookup,uiForms,uiPerfectScrollbar,uiNumberSpinner,uiLocale,i0,forms) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @fileoverview added by tsickle
|
|
@@ -758,7 +758,7 @@
|
|
|
758
758
|
* @return {?}
|
|
759
759
|
*/
|
|
760
760
|
function () {
|
|
761
|
-
this.value =
|
|
761
|
+
this.value = '';
|
|
762
762
|
this.clear$.emit();
|
|
763
763
|
};
|
|
764
764
|
/**
|
|
@@ -2318,6 +2318,7 @@
|
|
|
2318
2318
|
lookupEdit.showLabel = filedSchema.control.hasOwnProperty('showLabel') ? filedSchema.control.showLabel : true;
|
|
2319
2319
|
lookupEdit.required = filedSchema.control.hasOwnProperty('required') ? filedSchema.control.required : false;
|
|
2320
2320
|
lookupEdit.placeholder = filedSchema.control.placeholder ? filedSchema.control.placeholder : '';
|
|
2321
|
+
lookupEdit.clearFields = filedSchema.control.hasOwnProperty('clearFields') ? filedSchema.control.clearFields : '';
|
|
2321
2322
|
return lookupEdit;
|
|
2322
2323
|
};
|
|
2323
2324
|
/**
|
|
@@ -4230,6 +4231,7 @@
|
|
|
4230
4231
|
this.disabled = false;
|
|
4231
4232
|
this.filterPaddingNone = false;
|
|
4232
4233
|
this.query = new i0.EventEmitter();
|
|
4234
|
+
this.clear = new i0.EventEmitter();
|
|
4233
4235
|
this.searchChange = new i0.EventEmitter();
|
|
4234
4236
|
// filterWidth:number = 1000;
|
|
4235
4237
|
// 标记是否有滚动条
|
|
@@ -4286,6 +4288,7 @@
|
|
|
4286
4288
|
};
|
|
4287
4289
|
this.currentLocale = 'zh-CHS';
|
|
4288
4290
|
this.isControlInline = true;
|
|
4291
|
+
this.fieldCodeOfClearFields = [];
|
|
4289
4292
|
if (this.injector) {
|
|
4290
4293
|
this.currentLocale = this.injector.get(i0.LOCALE_ID);
|
|
4291
4294
|
this.listfilterHandler = this.injector.get(LISTFILTER_HANDLER_TOKEN, null, i0.InjectFlags.Optional);
|
|
@@ -4921,6 +4924,7 @@
|
|
|
4921
4924
|
this.requiredListInit();
|
|
4922
4925
|
// this.cd.markForCheck();
|
|
4923
4926
|
}
|
|
4927
|
+
this.clear.emit();
|
|
4924
4928
|
};
|
|
4925
4929
|
// 设置默认值
|
|
4926
4930
|
// 设置默认值
|
|
@@ -5104,7 +5108,7 @@
|
|
|
5104
5108
|
ListFilterComponent.decorators = [
|
|
5105
5109
|
{ type: i0.Component, args: [{
|
|
5106
5110
|
selector: 'farris-list-filter',
|
|
5107
|
-
template: "<app-filter-common></app-filter-common>\r\n<div class=\"f-list-filter position-relative\"\r\n [ngClass]=\"{'list-filter-padding': showMoreIcon,'list-filter-autoWidth': autoWidth,'list-filter-paddingnone': filterPaddingNone}\">\r\n <ng-container *ngIf=\"filterType === 'list';else filterLayout\">\r\n <div class=\"filter-inputs-main filter-inputs-main-list f-form-layout farris-form farris-form-controls-inline\">\r\n <ng-container *ngFor=\"let formItem of listFilterConditions;let last = last;\">\r\n <div class=\"col-12\"\r\n [ngClass]=\"{'filter-list-item': showFilterList && showFilterList.length && showFilterList[showFilterList.length-1]['id'] == formItem.id}\"\r\n *ngIf=\"!formItem.control.isExtend\">\r\n <div class=\"filter-input-list farris-group-wrap\"\r\n [ngClass]=\"{'filter-input-list-autolabel': autoLabel,'filter-input-list-checkbox': getControlType(formItem) === 'checkboxgroup'}\"\r\n [id]=\"'filter-'+formItem.id\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n <div class=\"filter-search-btn\"\r\n *ngIf=\"!liveSearch && showFilterList && showFilterList.length && showFilterList[showFilterList.length-1]['id'] == formItem.id\">\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\"\r\n (click)=\"filterClick()\">{{ 'listFilter.filter' | locale }}</button>\r\n <button class=\"btn btn-secondary filter-search-btn-reset\" *ngIf=\"!showMoreIcon\"\r\n (click)=\"resetSearch()\">\r\n <span class=\"f-icon f-icon-remove\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #filterLayout>\r\n <ng-container *ngIf=\"autoWidth;else gridLayout\">\r\n <div class=\"filter-inputs-main-basis-wrapper\" [ngClass]=\"{'list-filter-wrapper-show-btn': !liveSearch,'list-filter-wrapper-show-btn-remove': !liveSearch && !showMoreIcon}\">\r\n <div class=\"filter-inputs-main-basis-wrapper-inner\">\r\n <div class=\"filter-inputs-main filter-inputs-main-basis farris-form d-flex\"\r\n [ngClass]=\"{'justify-content-end': !alLeft,'farris-form-controls-inline':isControlInline}\"\r\n #filterMainBasis>\r\n <ng-container *ngFor=\"let formItem of listFilterConditions\">\r\n <div *ngIf=\"!formItem.control.isExtend\" class=\"filter-input-list farris-group-wrap\"\r\n [ngClass]=\"{'filter-input-list-autolabel': autoLabel,'filter-input-list-checkbox': getControlType(formItem) === 'checkboxgroup', 'filter-input-list-expand':formExpand,'filter-input-list-left': alLeft}\"\r\n [id]=\"'filter-'+formItem.id\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"filter-search-btn\" [ngClass]=\"{'filter-search-btn-remove': !showMoreIcon}\"\r\n *ngIf=\"!liveSearch\">\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\"\r\n (click)=\"filterClick()\">{{ 'listFilter.filter' | locale }}</button>\r\n <button class=\"btn btn-secondary filter-search-btn-reset\" *ngIf=\"!showMoreIcon\"\r\n (click)=\"resetSearch()\">\r\n <span class=\"f-icon f-icon-remove\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-template #gridLayout>\r\n <div class=\"filter-inputs-main f-form-layout farris-form\" [ngClass]=\"\r\n {'list-filter-type-1': getShowLength() === 1,\r\n 'list-filter-type-2': getShowLength() === 2,\r\n 'list-filter-type-3': getShowLength() === 3,\r\n 'list-filter-type-4': getShowLength() === 4,\r\n 'list-filter-type-5': getShowLength() === 5,\r\n 'list-filter-type-6': getShowLength() >= 6,\r\n 'list-filter-custom-type': this.filterClass,\r\n 'list-filter-show-reset': !showMoreIcon,\r\n 'list-filter-padding-none': liveSearch,\r\n 'farris-form-controls-inline':isControlInline}\">\r\n <ng-container *ngFor=\"let formItem of listFilterConditions\">\r\n <div [ngClass]=\"getStyle(formItem)\" *ngIf=\"!formItem.control.isExtend\">\r\n <div class=\"filter-input-list farris-group-wrap\"\r\n [ngClass]=\"{'filter-input-list-autolabel': autoLabel,'filter-input-list-checkbox': getControlType(formItem) === 'checkboxgroup'}\"\r\n [id]=\"'filter-'+formItem.id\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <div class=\"filter-search-btn\" [ngClass]=\"{\r\n 'filter-search-btn-type-1': getShowLength() === 1,\r\n 'filter-search-btn-type-2': getShowLength() === 2,\r\n 'filter-search-btn-type-3': getShowLength() === 3,\r\n 'filter-search-btn-type-4': getShowLength() === 4,\r\n 'filter-search-btn-type-5': getShowLength() === 5,\r\n 'filter-search-custom-type': this.filterClass,\r\n 'filter-search-btn-type-6': getShowLength() >= 6}\" *ngIf=\"!liveSearch\">\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\"\r\n (click)=\"filterClick()\">{{ 'listFilter.filter' | locale }}</button>\r\n <button class=\"btn btn-secondary filter-search-btn-reset\" *ngIf=\"!showMoreIcon\"\r\n (click)=\"resetSearch()\">\r\n <span class=\"f-icon f-icon-remove\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-template>\r\n <div class=\"filter-expand position-absolute\" [class.active]=\"showFilter\" (click)=\"showFilter = !showFilter\"\r\n *ngIf=\"showMoreIcon\">\r\n <span class=\"f-icon f-icon-filtrate\"></span>\r\n <span class=\"filter-expand-tag\" *ngIf=\"showExpandTag\"></span>\r\n </div>\r\n <div class=\"filter-inputs-extend position-absolute\" [hidden]=\"!showFilter\" *ngIf=\"showMoreIcon\">\r\n <div class=\"filter-typelist-arrow\"></div>\r\n <div class=\"farris-form farris-form-auto\" [ngClass]=\"{'farris-form-controls-inline':isControlInline}\">\r\n <fieldset class=\"f-section-formgroup\">\r\n <div class=\"f-section-formgroup-inputs\">\r\n <div class=\"col-12\">\r\n <ng-container *ngFor=\"let formItem of listFilterConditions\">\r\n <div class=\"filter-input-list farris-group-wrap\" *ngIf=\"formItem.control.isExtend\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </fieldset>\r\n <div class=\"filter-form-btns text-right\">\r\n <button class=\"btn btn-link filter-form-btn-reset\" (click)=\"resetSearch()\">{{ 'listFilter.reset' | locale }}</button>\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\" (click)=\"listSearch()\">{{ 'listFilter.confirm' | locale }}</button>\r\n <button class=\"btn btn-secondary\" (click)=\"listSearchCancel()\">{{ 'listFilter.cancel' | locale }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #filterInputTemplate let-item=\"item\">\r\n <ng-container [ngSwitch]=\"item | controlType\">\r\n <div class=\"filter-input-item filter-type-input\" *ngSwitchCase=\"'input'\">\r\n <app-filter-input [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-input>\r\n </div>\r\n <div class=\"filter-input-item filter-type-search\" *ngSwitchCase=\"'search'\">\r\n <app-filter-search [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-search>\r\n </div>\r\n <div class=\"filter-input-item filter-type-date\" *ngSwitchCase=\"'date'\">\r\n <app-filter-date [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-date>\r\n </div>\r\n <div class=\"filter-input-item filter-type-year\" *ngSwitchCase=\"'year'\">\r\n <app-filter-date [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\" [showType]=\"'3'\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-date>\r\n </div>\r\n <div class=\"filter-input-item filter-type-month\" *ngSwitchCase=\"'month'\">\r\n <app-filter-date [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\" [showType]=\"'2'\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-date>\r\n </div>\r\n <div class=\"filter-input-item filter-type-date\" *ngSwitchCase=\"'daterange'\">\r\n <app-filter-daterange [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-date\" *ngSwitchCase=\"'daterangetime'\">\r\n <app-filter-daterange [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\" [showTime]=\"true\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-monthrange\" *ngSwitchCase=\"'monthrange'\">\r\n <app-filter-daterange [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\" [showType]=\"'2'\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-yearrange\" *ngSwitchCase=\"'yearrange'\">\r\n <app-filter-daterange [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\" [showType]=\"'3'\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-dropdown\" *ngSwitchCase=\"'dropdown'\">\r\n <app-filter-dropdown [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-dropdown>\r\n </div>\r\n <div class=\"filter-input-item filter-type-number\" *ngSwitchCase=\"'number'\">\r\n <app-filter-number [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-number>\r\n </div>\r\n <div class=\"filter-input-item filter-type-help\" *ngSwitchCase=\"'help'\">\r\n <app-filter-help [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\" [hostRef]=\"this\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-help>\r\n </div>\r\n <div class=\"filter-input-item filter-type-checkboxgroup\" *ngSwitchCase=\"'checkboxgroup'\">\r\n <app-filter-checkbox [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"\r\n style=\"white-space: nowrap;\"></app-filter-checkbox>\r\n </div>\r\n <div class=\"filter-input-item filter-type-radio\" *ngSwitchCase=\"'radio'\">\r\n <app-filter-radio [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"\r\n style=\"white-space: nowrap;\"></app-filter-radio>\r\n </div>\r\n <div class=\"filter-input-item filter-type-input-group\" *ngSwitchCase=\"'input-group'\">\r\n <app-filter-inputgroup [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-inputgroup>\r\n </div>\r\n <div class=\"filter-input-item filter-type-default\" *ngSwitchDefault>\r\n <app-filter-input [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-input>\r\n </div>\r\n </ng-container>\r\n</ng-template>",
|
|
5111
|
+
template: "<app-filter-common></app-filter-common>\r\n<div class=\"f-list-filter position-relative\"\r\n [ngClass]=\"{'list-filter-padding': showMoreIcon,'list-filter-autoWidth': autoWidth,'list-filter-paddingnone': filterPaddingNone}\">\r\n <ng-container *ngIf=\"filterType === 'list';else filterLayout\">\r\n <div class=\"filter-inputs-main filter-inputs-main-list f-form-layout farris-form farris-form-controls-inline\">\r\n <ng-container *ngFor=\"let formItem of listFilterConditions;let last = last;\">\r\n <div class=\"col-12\"\r\n [ngClass]=\"{'filter-list-item': showFilterList && showFilterList.length && showFilterList[showFilterList.length-1]['id'] == formItem.id}\"\r\n *ngIf=\"!formItem.control.isExtend\">\r\n <div class=\"filter-input-list farris-group-wrap\"\r\n [ngClass]=\"{'filter-input-list-autolabel': autoLabel,'filter-input-list-checkbox': getControlType(formItem) === 'checkboxgroup'}\"\r\n [id]=\"'filter-'+formItem.id\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n <div class=\"filter-search-btn\"\r\n *ngIf=\"!liveSearch && showFilterList && showFilterList.length && showFilterList[showFilterList.length-1]['id'] == formItem.id\">\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\"\r\n (click)=\"filterClick()\">{{ 'listFilter.filter' | locale }}</button>\r\n <button class=\"btn btn-secondary filter-search-btn-reset\" *ngIf=\"!showMoreIcon\"\r\n (click)=\"resetSearch()\">\r\n <span class=\"f-icon f-icon-remove\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #filterLayout>\r\n <ng-container *ngIf=\"autoWidth;else gridLayout\">\r\n <div class=\"filter-inputs-main-basis-wrapper\"\r\n [ngClass]=\"{'list-filter-wrapper-show-btn': !liveSearch,'list-filter-wrapper-show-btn-remove': !liveSearch && !showMoreIcon}\">\r\n <div class=\"filter-inputs-main-basis-wrapper-inner\">\r\n <div class=\"filter-inputs-main filter-inputs-main-basis farris-form d-flex\"\r\n [ngClass]=\"{'justify-content-end': !alLeft,'farris-form-controls-inline':isControlInline}\"\r\n #filterMainBasis>\r\n <ng-container *ngFor=\"let formItem of listFilterConditions\">\r\n <div *ngIf=\"!formItem.control.isExtend\" class=\"filter-input-list farris-group-wrap\"\r\n [ngClass]=\"{'filter-input-list-autolabel': autoLabel,'filter-input-list-checkbox': getControlType(formItem) === 'checkboxgroup', 'filter-input-list-expand':formExpand,'filter-input-list-left': alLeft}\"\r\n [id]=\"'filter-'+formItem.id\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"filter-search-btn\" [ngClass]=\"{'filter-search-btn-remove': !showMoreIcon}\"\r\n *ngIf=\"!liveSearch\">\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\"\r\n (click)=\"filterClick()\">{{ 'listFilter.filter' | locale }}</button>\r\n <button class=\"btn btn-secondary filter-search-btn-reset\" *ngIf=\"!showMoreIcon\"\r\n (click)=\"resetSearch()\">\r\n <span class=\"f-icon f-icon-remove\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-template #gridLayout>\r\n <div class=\"filter-inputs-main f-form-layout farris-form\" [ngClass]=\"\r\n {'list-filter-type-1': getShowLength() === 1,\r\n 'list-filter-type-2': getShowLength() === 2,\r\n 'list-filter-type-3': getShowLength() === 3,\r\n 'list-filter-type-4': getShowLength() === 4,\r\n 'list-filter-type-5': getShowLength() === 5,\r\n 'list-filter-type-6': getShowLength() >= 6,\r\n 'list-filter-custom-type': this.filterClass,\r\n 'list-filter-show-reset': !showMoreIcon,\r\n 'list-filter-padding-none': liveSearch,\r\n 'farris-form-controls-inline':isControlInline}\">\r\n <ng-container *ngFor=\"let formItem of listFilterConditions\">\r\n <div [ngClass]=\"getStyle(formItem)\" *ngIf=\"!formItem.control.isExtend\">\r\n <div class=\"filter-input-list farris-group-wrap\"\r\n [ngClass]=\"{'filter-input-list-autolabel': autoLabel,'filter-input-list-checkbox': getControlType(formItem) === 'checkboxgroup'}\"\r\n [id]=\"'filter-'+formItem.id\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <div class=\"filter-search-btn\" [ngClass]=\"{\r\n 'filter-search-btn-type-1': getShowLength() === 1,\r\n 'filter-search-btn-type-2': getShowLength() === 2,\r\n 'filter-search-btn-type-3': getShowLength() === 3,\r\n 'filter-search-btn-type-4': getShowLength() === 4,\r\n 'filter-search-btn-type-5': getShowLength() === 5,\r\n 'filter-search-custom-type': this.filterClass,\r\n 'filter-search-btn-type-6': getShowLength() >= 6}\" *ngIf=\"!liveSearch\">\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\"\r\n (click)=\"filterClick()\">{{ 'listFilter.filter' | locale }}</button>\r\n <button class=\"btn btn-secondary filter-search-btn-reset\" *ngIf=\"!showMoreIcon\"\r\n (click)=\"resetSearch()\">\r\n <span class=\"f-icon f-icon-remove\"></span>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-template>\r\n <div class=\"filter-expand position-absolute\" [class.active]=\"showFilter\" (click)=\"showFilter = !showFilter\"\r\n *ngIf=\"showMoreIcon\">\r\n <span class=\"f-icon f-icon-filtrate\"></span>\r\n <span class=\"filter-expand-tag\" *ngIf=\"showExpandTag\"></span>\r\n </div>\r\n <div class=\"filter-inputs-extend position-absolute\" [hidden]=\"!showFilter\" *ngIf=\"showMoreIcon\">\r\n <div class=\"filter-typelist-arrow\"></div>\r\n <div class=\"farris-form farris-form-auto\" [ngClass]=\"{'farris-form-controls-inline':isControlInline}\">\r\n <fieldset class=\"f-section-formgroup\">\r\n <div class=\"f-section-formgroup-inputs\">\r\n <div class=\"col-12\">\r\n <ng-container *ngFor=\"let formItem of listFilterConditions\">\r\n <div class=\"filter-input-list farris-group-wrap\" *ngIf=\"formItem.control.isExtend\">\r\n <ng-container [ngTemplateOutlet]=\"filterInputTemplate\"\r\n [ngTemplateOutletContext]=\"{ item: formItem }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </fieldset>\r\n <div class=\"filter-form-btns text-right\">\r\n <button class=\"btn btn-link filter-form-btn-reset\"\r\n (click)=\"resetSearch()\">{{ 'listFilter.reset' | locale }}</button>\r\n <button class=\"btn btn-primary\" [ngClass]=\"{'disabled': disabled || !canSubmit}\"\r\n (click)=\"listSearch()\">{{ 'listFilter.confirm' | locale }}</button>\r\n <button class=\"btn btn-secondary\"\r\n (click)=\"listSearchCancel()\">{{ 'listFilter.cancel' | locale }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #filterInputTemplate let-item=\"item\">\r\n <ng-container [ngSwitch]=\"item | controlType\">\r\n <div class=\"filter-input-item filter-type-input\" *ngSwitchCase=\"'input'\">\r\n <app-filter-input [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-input>\r\n </div>\r\n <div class=\"filter-input-item filter-type-search\" *ngSwitchCase=\"'search'\">\r\n <app-filter-search [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-search>\r\n </div>\r\n <div class=\"filter-input-item filter-type-date\" *ngSwitchCase=\"'date'\">\r\n <app-filter-date [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\">\r\n </app-filter-date>\r\n </div>\r\n <div class=\"filter-input-item filter-type-year\" *ngSwitchCase=\"'year'\">\r\n <app-filter-date [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" [showType]=\"'3'\" (searchHandle)=\"onSearch($event,item)\"\r\n class=\"form-group farris-form-group\"></app-filter-date>\r\n </div>\r\n <div class=\"filter-input-item filter-type-month\" *ngSwitchCase=\"'month'\">\r\n <app-filter-date [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" [showType]=\"'2'\" (searchHandle)=\"onSearch($event,item)\"\r\n class=\"form-group farris-form-group\"></app-filter-date>\r\n </div>\r\n <div class=\"filter-input-item filter-type-date\" *ngSwitchCase=\"'daterange'\">\r\n <app-filter-daterange [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\">\r\n </app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-date\" *ngSwitchCase=\"'daterangetime'\">\r\n <app-filter-daterange [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" [showTime]=\"true\" (searchHandle)=\"onSearch($event,item)\"\r\n class=\"form-group farris-form-group\"></app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-monthrange\" *ngSwitchCase=\"'monthrange'\">\r\n <app-filter-daterange [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" [showType]=\"'2'\" (searchHandle)=\"onSearch($event,item)\"\r\n class=\"form-group farris-form-group\"></app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-yearrange\" *ngSwitchCase=\"'yearrange'\">\r\n <app-filter-daterange [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" [showType]=\"'3'\" (searchHandle)=\"onSearch($event,item)\"\r\n class=\"form-group farris-form-group\"></app-filter-daterange>\r\n </div>\r\n <div class=\"filter-input-item filter-type-dropdown\" *ngSwitchCase=\"'dropdown'\">\r\n <app-filter-dropdown [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\">\r\n </app-filter-dropdown>\r\n </div>\r\n <div class=\"filter-input-item filter-type-number\" *ngSwitchCase=\"'number'\">\r\n <app-filter-number [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\">\r\n </app-filter-number>\r\n </div>\r\n <div class=\"filter-input-item filter-type-help\" *ngSwitchCase=\"'help'\">\r\n <app-filter-help [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" [hostRef]=\"this\" (searchHandle)=\"onSearch($event,item)\"\r\n class=\"form-group farris-form-group\"></app-filter-help>\r\n </div>\r\n <div class=\"filter-input-item filter-type-checkboxgroup\" *ngSwitchCase=\"'checkboxgroup'\">\r\n <app-filter-checkbox [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"\r\n style=\"white-space: nowrap;\"></app-filter-checkbox>\r\n </div>\r\n <div class=\"filter-input-item filter-type-radio\" *ngSwitchCase=\"'radio'\">\r\n <app-filter-radio [changeFields]=\"fieldCodeOfClearFields\" [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"\r\n style=\"white-space: nowrap;\"></app-filter-radio>\r\n </div>\r\n <div class=\"filter-input-item filter-type-input-group\" *ngSwitchCase=\"'input-group'\">\r\n <app-filter-inputgroup [item]=\"item\" [autoLabel]=\"autoLabel\"\r\n [disabled]=\"disabled\" (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\">\r\n </app-filter-inputgroup>\r\n </div>\r\n <div class=\"filter-input-item filter-type-default\" *ngSwitchDefault>\r\n <app-filter-input [item]=\"item\" [autoLabel]=\"autoLabel\" [disabled]=\"disabled\"\r\n (searchHandle)=\"onSearch($event,item)\" class=\"form-group farris-form-group\"></app-filter-input>\r\n </div>\r\n </ng-container>\r\n</ng-template>",
|
|
5108
5112
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5109
5113
|
styles: ["::-webkit-scrollbar{width:6px;height:6px;background-color:#eee}::-webkit-scrollbar-track{border-radius:0}::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.15);-webkit-transition:.2s;transition:.2s;border-radius:6px}::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.45)}.filter-search-btn-col{flex-basis:0;-webkit-box-flex:1;flex-grow:1;max-width:100%}.filter-search-btn-absoulte{position:absolute;right:0;top:0}.f-list-filter .filter-inputs-main-basis-wrapper{width:100%;overflow:hidden}.f-list-filter .filter-inputs-main-basis-wrapper.list-filter-wrapper-show-btn{position:relative;padding-right:84px}.f-list-filter .filter-inputs-main-basis-wrapper.list-filter-wrapper-show-btn.list-filter-wrapper-show-btn-remove{padding-right:124px}.f-list-filter .filter-inputs-main-basis-wrapper.list-filter-wrapper-show-btn .filter-search-btn{position:absolute;right:0;top:0}.f-list-filter .filter-inputs-main-basis-wrapper.list-filter-wrapper-show-btn .filter-search-btn .btn{margin-left:6px}.f-list-filter .filter-inputs-main-basis-wrapper.list-filter-wrapper-show-btn .filter-search-btn .btn:first-child{margin-left:0}.f-list-filter .filter-inputs-main-basis-wrapper .filter-inputs-main-basis-wrapper-inner{width:100%;overflow:auto}.f-list-filter .filter-inputs-main-basis-wrapper .filter-inputs-main-basis-wrapper-inner .filter-inputs-main-basis.justify-content-end{margin-left:auto}.f-list-filter.list-filter-padding{padding-right:45px}.f-list-filter.list-filter-autoWidth{padding-bottom:8px}.f-list-filter.list-filter-autoWidth.list-filter-paddingnone{padding-bottom:0}@media (min-width:768px){.f-list-filter .list-filter-type-1{position:static;padding-right:0}.f-list-filter .list-filter-type-2,.f-list-filter .list-filter-type-3{position:relative;padding-right:70px}}@media (max-width:767px){.f-list-filter .list-filter-type-1{position:relative;padding-right:70px}.f-list-filter .list-filter-type-1.list-filter-show-reset{padding-right:110px}.f-list-filter .list-filter-type-2,.f-list-filter .list-filter-type-3{position:relative;padding-right:70px}.f-list-filter .list-filter-type-2.list-filter-show-reset,.f-list-filter .list-filter-type-3.list-filter-show-reset{position:relative;padding-right:110px}}@media (min-width:1200px){.f-list-filter .list-filter-type-2,.f-list-filter .list-filter-type-3{position:static;padding-right:0}.f-list-filter .list-filter-type-4,.f-list-filter .list-filter-type-5{position:relative;padding-right:70px}}@media (max-width:767px){.f-list-filter .list-filter-type-4,.f-list-filter .list-filter-type-5{position:relative;padding-right:70px}.f-list-filter .list-filter-type-4.list-filter-show-reset,.f-list-filter .list-filter-type-5.list-filter-show-reset{position:relative;padding-right:110px}}@media (min-width:768px){.f-list-filter .list-filter-type-2.list-filter-show-reset,.f-list-filter .list-filter-type-3.list-filter-show-reset{position:relative;padding-right:110px}.f-list-filter .list-filter-type-4,.f-list-filter .list-filter-type-5{position:relative;padding-right:70px}.f-list-filter .list-filter-type-4.list-filter-show-reset,.f-list-filter .list-filter-type-5.list-filter-show-reset{position:relative;padding-right:110px}}@media (min-width:1690px){.f-list-filter .list-filter-type-4,.f-list-filter .list-filter-type-5{position:static;padding-right:0}}@media (min-width:1200px){.f-list-filter .list-filter-type-4.list-filter-show-reset,.f-list-filter .list-filter-type-5.list-filter-show-reset{position:relative;padding-right:110px}}.f-list-filter .list-filter-custom-type,.f-list-filter .list-filter-type-6{position:relative;padding-right:70px}.f-list-filter .list-filter-custom-type.list-filter-show-reset,.f-list-filter .list-filter-type-6.list-filter-show-reset{padding-right:110px}.f-list-filter .list-filter-padding-none{padding-right:0}.f-list-filter .filter-inputs-main{width:100%;overflow:hidden}.f-list-filter .filter-inputs-main .col-12{padding-left:0}.f-list-filter .filter-inputs-main.filter-inputs-main-padding{padding-right:70px;position:relative}.f-list-filter .filter-inputs-main .filter-input-list.filter-input-list-autolabel{padding-right:14px}.f-list-filter .filter-inputs-main .filter-input-list.filter-input-list-autolabel:last-child{padding-right:0}.f-list-filter .filter-inputs-main .filter-input-list.filter-input-list-checkbox{max-width:none;-webkit-box-flex:inherit;flex:inherit}@media (max-width:767px){.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-1{position:absolute;right:0;top:0}}@media (min-width:768px){.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-1{flex-basis:0;-webkit-box-flex:1;flex-grow:1;max-width:100%;position:static}.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-2,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-3{position:absolute;right:0;top:0}}@media (max-width:767px){.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-2,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-3{position:absolute;right:0;top:0}}@media (min-width:1200px){.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-2,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-3{flex-basis:0;-webkit-box-flex:1;flex-grow:1;max-width:100%;position:static}.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-4,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-5{position:absolute;right:0;top:0}}@media (max-width:767px){.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-4,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-5{position:absolute;right:0;top:0}}@media (min-width:768px){.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-4,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-5{position:absolute;right:0;top:0}}@media (min-width:1690px){.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-4,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-5{flex-basis:0;-webkit-box-flex:1;flex-grow:1;max-width:100%;position:static}}.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-btn-type-6,.f-list-filter .filter-inputs-main .filter-search-btn.filter-search-custom-type{position:absolute;right:0;top:0}.f-list-filter .filter-inputs-main .filter-search-btn .btn{margin-left:6px}.f-list-filter .filter-inputs-main .filter-search-btn .btn:first-child{margin-left:0}.f-list-filter .filter-inputs-main.filter-inputs-main-basis .filter-input-list{min-width:200px}.f-list-filter .filter-inputs-main.filter-inputs-main-basis .filter-input-list .filter-input-item .form-group{margin-bottom:0}.f-list-filter .filter-inputs-main.filter-inputs-main-basis .filter-input-list.filter-input-list-left{-webkit-box-flex:1;flex:1 1 auto}.f-list-filter .filter-inputs-main.filter-inputs-main-basis .filter-input-list.filter-input-list-expand{max-width:none}.f-list-filter .filter-inputs-main.filter-inputs-main-basis.justify-content-end .filter-input-list:not(.filter-input-list-checkbox){-webkit-box-flex:1;flex:auto}.f-list-filter .filter-expand{right:0;top:0;width:24px;margin-left:21px;height:24px;line-height:24px;cursor:pointer}.f-list-filter .filter-expand.active{border-radius:2px}.f-list-filter .filter-expand .f-icon{display:block;line-height:24px;margin:0 auto;font-size:18px}.f-list-filter .filter-expand .filter-expand-tag{position:absolute;right:0;top:0;display:block;width:6px;height:6px;border-radius:50%}.f-list-filter .filter-inputs-extend{width:429px;right:0;top:34px;background-color:#fff;box-shadow:0 2px 3px 0 rgba(0,0,0,.15);z-index:900;padding:20px 0}.f-list-filter .filter-inputs-extend .filter-typelist-arrow{display:block;position:absolute;right:7px;top:-4px;width:8.48528137px;height:8.48528137px;background:0 0;border-style:solid;border-width:4.24264069px;box-shadow:-2px -2px 5px rgba(0,0,0,.08);-webkit-transform:translateX(-50%) rotate(45deg);transform:translateX(-50%) rotate(45deg);border-color:#fff transparent transparent #fff}.f-list-filter .filter-inputs-extend .filter-form-btns{margin-top:6px;padding:0 14px}.f-list-filter .filter-inputs-extend .filter-form-btns .btn{margin-left:6px}.f-list-filter .filter-inputs-extend .filter-form-btns .filter-form-btn-reset{position:relative;padding-right:10px;margin-right:4px}.f-list-filter .filter-inputs-extend .filter-form-btns .filter-form-btn-reset::after{content:'';position:absolute;right:0;top:50%;width:1px;height:16px;margin-top:-8px;background:#d9d9d9}.f-list-filter .filter-search-btn-reset{padding-left:4px;padding-right:4px;color:rgba(0,0,0,.65)}.f-list-filter .filter-input-list .form-group{display:block}.f-list-filter .farris-form-controls-inline .filter-input-list .form-group{display:-webkit-box;display:flex}.f-list-filter .filter-inputs-main-list .filter-input-item .farris-form-group{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.f-list-filter .filter-inputs-main-list .filter-list-item{padding-right:100px}.f-list-filter .filter-inputs-main-list .filter-list-item .filter-input-list{position:relative}.f-list-filter .filter-inputs-main-list .filter-list-item .filter-search-btn{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;position:absolute;top:50%;left:calc(100% + 20px);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.filter-expand-simulate{opacity:0;display:inline-block;width:24px;height:24px;padding-left:21px}.filter-expand-simulate .f-icon{font-size:24px}"]
|
|
5110
5114
|
}] }
|
|
@@ -5132,6 +5136,7 @@
|
|
|
5132
5136
|
filterType: [{ type: i0.Input }],
|
|
5133
5137
|
defaultValue: [{ type: i0.Input }],
|
|
5134
5138
|
query: [{ type: i0.Output }],
|
|
5139
|
+
clear: [{ type: i0.Output }],
|
|
5135
5140
|
searchChange: [{ type: i0.Output }],
|
|
5136
5141
|
filterList: [{ type: i0.Input }]
|
|
5137
5142
|
};
|
|
@@ -5450,12 +5455,14 @@
|
|
|
5450
5455
|
this.solutionService.addFilterEditorInstance(this.item.fieldCode, this);
|
|
5451
5456
|
};
|
|
5452
5457
|
/**
|
|
5458
|
+
* @param {?} changes
|
|
5453
5459
|
* @return {?}
|
|
5454
5460
|
*/
|
|
5455
5461
|
SearchComponent.prototype.ngOnChanges = /**
|
|
5462
|
+
* @param {?} changes
|
|
5456
5463
|
* @return {?}
|
|
5457
5464
|
*/
|
|
5458
|
-
function () {
|
|
5465
|
+
function (changes) {
|
|
5459
5466
|
};
|
|
5460
5467
|
// getConditionItemStyle(field: QueryCondition, controlType: any) {
|
|
5461
5468
|
// return this.solutionService.getConditionItemStyle(field,controlType);
|
|
@@ -5532,6 +5539,10 @@
|
|
|
5532
5539
|
* 判断是否显示label
|
|
5533
5540
|
*/
|
|
5534
5541
|
this.showlabel = true;
|
|
5542
|
+
/**
|
|
5543
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
5544
|
+
*/
|
|
5545
|
+
this.changeFields = [];
|
|
5535
5546
|
this.onSearch = ( /**
|
|
5536
5547
|
* @return {?}
|
|
5537
5548
|
*/function () {
|
|
@@ -5595,13 +5606,26 @@
|
|
|
5595
5606
|
}));
|
|
5596
5607
|
};
|
|
5597
5608
|
/**
|
|
5609
|
+
* @param {?} changes
|
|
5598
5610
|
* @return {?}
|
|
5599
5611
|
*/
|
|
5600
5612
|
HelpComponent.prototype.ngOnChanges = /**
|
|
5613
|
+
* @param {?} changes
|
|
5601
5614
|
* @return {?}
|
|
5602
5615
|
*/
|
|
5603
|
-
function () {
|
|
5616
|
+
function (changes) {
|
|
5617
|
+
var _this = this;
|
|
5604
5618
|
this.getHelpBindingInfo();
|
|
5619
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
5620
|
+
/** @type {?} */
|
|
5621
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
5622
|
+
* @param {?} field
|
|
5623
|
+
* @return {?}
|
|
5624
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
5625
|
+
if (isChange) {
|
|
5626
|
+
this.textValue = (( /** @type {?} */(this.item.value))).textValue;
|
|
5627
|
+
}
|
|
5628
|
+
}
|
|
5605
5629
|
};
|
|
5606
5630
|
/**
|
|
5607
5631
|
* @param {?} selectedItem
|
|
@@ -5688,6 +5712,7 @@
|
|
|
5688
5712
|
this.title = helpList_1.title;
|
|
5689
5713
|
/** @type {?} */
|
|
5690
5714
|
var helpValue = (( /** @type {?} */(this.item.value)));
|
|
5715
|
+
this.clearFields = helpList_1.clearFields;
|
|
5691
5716
|
// if (helpValue && helpValue.value) {
|
|
5692
5717
|
// // this.textValue = (this.item.value as HelpValue).value[this.textField];
|
|
5693
5718
|
// this.textValue = HelpValue.getPropValue(helpValue.value, this.textField.split('.'));
|
|
@@ -5737,7 +5762,7 @@
|
|
|
5737
5762
|
HelpComponent.decorators = [
|
|
5738
5763
|
{ type: i0.Component, args: [{
|
|
5739
5764
|
selector: 'app-filter-help',
|
|
5740
|
-
template: "<label class=\"col-form-label\" *ngIf=\"item && showlabel\" title=\"{{getConditionItemTitle(item)}}\">\r\n <span class=\"farris-label-info text-danger\" *ngIf=\"item.control.required\">*</span>\r\n <span class=\"farris-label-text\">{{item.fieldName}}</span>\r\n</label>\r\n<div class=\"farris-input-wrap\" *ngIf=\"item\">\r\n <farris-lookup-grid \r\n [uri]=\"uri\"\r\n [title]=\"title\"\r\n [idField]=\"idField\" \r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [(ngModel)]=\"textValue\"\r\n [displayType]=\"displayType\"\r\n [editable]=\"false\"\r\n [readonly]=\"disabled\"\r\n (clear)=\"clearData($event)\"\r\n (selectedData)=\"selectedDataHandler($event)\"\r\n [placeholder]=\"placeholder\"\r\n [mapFields]=\"mapFields\"\r\n [dictPicking]=\"preEventCmd\"\r\n [dictPicked]=\"postEventCmd\"\r\n [context]=\"context\"\r\n [enableFullTree]=\"enableFullTree\"\r\n [loadTreeDataType]=\"loadTreeDataType\"\r\n [singleSelect]=\"singleSelect\"\r\n [expandLevel]=\"expandLevel\"\r\n [enableCascade]=\"enableCascade\"\r\n >\r\n </farris-lookup-grid>\r\n\r\n <!-- [dictPicked]=\"onSearch\" -->\r\n <!-- (selectedData)=\"selectedDataHandler($event)\" -->\r\n</div>"
|
|
5765
|
+
template: "<label class=\"col-form-label\" *ngIf=\"item && showlabel\" title=\"{{getConditionItemTitle(item)}}\">\r\n <span class=\"farris-label-info text-danger\" *ngIf=\"item.control.required\">*</span>\r\n <span class=\"farris-label-text\">{{item.fieldName}}</span>\r\n</label>\r\n<div class=\"farris-input-wrap\" *ngIf=\"item\">\r\n <farris-lookup-grid \r\n [uri]=\"uri\"\r\n [title]=\"title\"\r\n [idField]=\"idField\" \r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [(ngModel)]=\"textValue\"\r\n [displayType]=\"displayType\"\r\n [editable]=\"false\"\r\n [readonly]=\"disabled\"\r\n (clear)=\"clearData($event)\"\r\n (selectedData)=\"selectedDataHandler($event)\"\r\n [placeholder]=\"placeholder\"\r\n [mapFields]=\"mapFields\"\r\n [dictPicking]=\"preEventCmd\"\r\n [dictPicked]=\"postEventCmd\"\r\n [context]=\"context\"\r\n [enableFullTree]=\"enableFullTree\"\r\n [loadTreeDataType]=\"loadTreeDataType\"\r\n [singleSelect]=\"singleSelect\"\r\n [expandLevel]=\"expandLevel\"\r\n [enableCascade]=\"enableCascade\"\r\n [clear-fields]=\"clearFields\"\r\n >\r\n </farris-lookup-grid>\r\n\r\n <!-- [dictPicked]=\"onSearch\" -->\r\n <!-- (selectedData)=\"selectedDataHandler($event)\" -->\r\n</div>"
|
|
5741
5766
|
// providers: [{ provide: ServerSideToken, useClass: LookupHttpBeQueryService }]
|
|
5742
5767
|
}] }
|
|
5743
5768
|
];
|
|
@@ -5754,7 +5779,8 @@
|
|
|
5754
5779
|
hostRef: [{ type: i0.Input }],
|
|
5755
5780
|
searchHandle: [{ type: i0.Output }],
|
|
5756
5781
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
5757
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
5782
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
5783
|
+
changeFields: [{ type: i0.Input }]
|
|
5758
5784
|
};
|
|
5759
5785
|
return HelpComponent;
|
|
5760
5786
|
}());
|
|
@@ -5775,6 +5801,10 @@
|
|
|
5775
5801
|
* 判断是否显示label
|
|
5776
5802
|
*/
|
|
5777
5803
|
this.showlabel = true;
|
|
5804
|
+
/**
|
|
5805
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
5806
|
+
*/
|
|
5807
|
+
this.changeFields = [];
|
|
5778
5808
|
}
|
|
5779
5809
|
Object.defineProperty(DateComponent.prototype, "isExtend", {
|
|
5780
5810
|
get: /**
|
|
@@ -5830,13 +5860,26 @@
|
|
|
5830
5860
|
}));
|
|
5831
5861
|
};
|
|
5832
5862
|
/**
|
|
5863
|
+
* @param {?} changes
|
|
5833
5864
|
* @return {?}
|
|
5834
5865
|
*/
|
|
5835
5866
|
DateComponent.prototype.ngOnChanges = /**
|
|
5867
|
+
* @param {?} changes
|
|
5836
5868
|
* @return {?}
|
|
5837
5869
|
*/
|
|
5838
|
-
function () {
|
|
5870
|
+
function (changes) {
|
|
5871
|
+
var _this = this;
|
|
5839
5872
|
this.initDate();
|
|
5873
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
5874
|
+
/** @type {?} */
|
|
5875
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
5876
|
+
* @param {?} field
|
|
5877
|
+
* @return {?}
|
|
5878
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
5879
|
+
if (isChange) {
|
|
5880
|
+
this.date = this.item.value.getOriginalValue();
|
|
5881
|
+
}
|
|
5882
|
+
}
|
|
5840
5883
|
};
|
|
5841
5884
|
/**
|
|
5842
5885
|
* @return {?}
|
|
@@ -5943,7 +5986,8 @@
|
|
|
5943
5986
|
showType: [{ type: i0.Input }],
|
|
5944
5987
|
searchHandle: [{ type: i0.Output }],
|
|
5945
5988
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
5946
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
5989
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
5990
|
+
changeFields: [{ type: i0.Input }]
|
|
5947
5991
|
};
|
|
5948
5992
|
return DateComponent;
|
|
5949
5993
|
}());
|
|
@@ -5965,6 +6009,10 @@
|
|
|
5965
6009
|
* 判断是否显示label
|
|
5966
6010
|
*/
|
|
5967
6011
|
this.showlabel = true;
|
|
6012
|
+
/**
|
|
6013
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6014
|
+
*/
|
|
6015
|
+
this.changeFields = [];
|
|
5968
6016
|
}
|
|
5969
6017
|
Object.defineProperty(DropDownComponent.prototype, "isExtend", {
|
|
5970
6018
|
get: /**
|
|
@@ -6026,13 +6074,26 @@
|
|
|
6026
6074
|
// this.testId = this.solutionService.getGuid();
|
|
6027
6075
|
};
|
|
6028
6076
|
/**
|
|
6077
|
+
* @param {?} changes
|
|
6029
6078
|
* @return {?}
|
|
6030
6079
|
*/
|
|
6031
6080
|
DropDownComponent.prototype.ngOnChanges = /**
|
|
6081
|
+
* @param {?} changes
|
|
6032
6082
|
* @return {?}
|
|
6033
6083
|
*/
|
|
6034
|
-
function () {
|
|
6084
|
+
function (changes) {
|
|
6085
|
+
var _this = this;
|
|
6035
6086
|
this.getDataSource();
|
|
6087
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6088
|
+
/** @type {?} */
|
|
6089
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6090
|
+
* @param {?} field
|
|
6091
|
+
* @return {?}
|
|
6092
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6093
|
+
if (isChange) {
|
|
6094
|
+
this.selectedItemId = (( /** @type {?} */(this.item.value))).value;
|
|
6095
|
+
}
|
|
6096
|
+
}
|
|
6036
6097
|
//console.log(this.dropDownListDataSource);
|
|
6037
6098
|
};
|
|
6038
6099
|
/**
|
|
@@ -6153,7 +6214,8 @@
|
|
|
6153
6214
|
disabled: [{ type: i0.Input }],
|
|
6154
6215
|
searchHandle: [{ type: i0.Output, args: ['searchHandle',] }],
|
|
6155
6216
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6156
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
6217
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6218
|
+
changeFields: [{ type: i0.Input }]
|
|
6157
6219
|
};
|
|
6158
6220
|
return DropDownComponent;
|
|
6159
6221
|
}());
|
|
@@ -6177,6 +6239,10 @@
|
|
|
6177
6239
|
*/
|
|
6178
6240
|
this.showlabel = true;
|
|
6179
6241
|
this.canNull = true;
|
|
6242
|
+
/**
|
|
6243
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6244
|
+
*/
|
|
6245
|
+
this.changeFields = [];
|
|
6180
6246
|
}
|
|
6181
6247
|
Object.defineProperty(NumberComponent.prototype, "isExtend", {
|
|
6182
6248
|
get: /**
|
|
@@ -6268,6 +6334,27 @@
|
|
|
6268
6334
|
}));
|
|
6269
6335
|
this.solutionService.addFilterEditorInstance(this.item.fieldCode, this);
|
|
6270
6336
|
};
|
|
6337
|
+
/**
|
|
6338
|
+
* @param {?} changes
|
|
6339
|
+
* @return {?}
|
|
6340
|
+
*/
|
|
6341
|
+
NumberComponent.prototype.ngOnChanges = /**
|
|
6342
|
+
* @param {?} changes
|
|
6343
|
+
* @return {?}
|
|
6344
|
+
*/
|
|
6345
|
+
function (changes) {
|
|
6346
|
+
var _this = this;
|
|
6347
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6348
|
+
/** @type {?} */
|
|
6349
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6350
|
+
* @param {?} field
|
|
6351
|
+
* @return {?}
|
|
6352
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6353
|
+
if (isChange) {
|
|
6354
|
+
this.constructMultiFieldNumberRange(( /** @type {?} */(this.item.value)));
|
|
6355
|
+
}
|
|
6356
|
+
}
|
|
6357
|
+
};
|
|
6271
6358
|
/**
|
|
6272
6359
|
* @return {?}
|
|
6273
6360
|
*/
|
|
@@ -6398,7 +6485,8 @@
|
|
|
6398
6485
|
searchHandle: [{ type: i0.Output, args: ['searchHandle',] }],
|
|
6399
6486
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6400
6487
|
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6401
|
-
item: [{ type: i0.Input }]
|
|
6488
|
+
item: [{ type: i0.Input }],
|
|
6489
|
+
changeFields: [{ type: i0.Input }]
|
|
6402
6490
|
};
|
|
6403
6491
|
return NumberComponent;
|
|
6404
6492
|
}());
|
|
@@ -6455,6 +6543,10 @@
|
|
|
6455
6543
|
this.selectCheck = [];
|
|
6456
6544
|
this.cla = true;
|
|
6457
6545
|
this.checkboxDataSource = new Array();
|
|
6546
|
+
/**
|
|
6547
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6548
|
+
*/
|
|
6549
|
+
this.changeFields = [];
|
|
6458
6550
|
}
|
|
6459
6551
|
Object.defineProperty(FilterCheckboxComponent.prototype, "isExtend", {
|
|
6460
6552
|
get: /**
|
|
@@ -6507,13 +6599,26 @@
|
|
|
6507
6599
|
}));
|
|
6508
6600
|
};
|
|
6509
6601
|
/**
|
|
6602
|
+
* @param {?} changes
|
|
6510
6603
|
* @return {?}
|
|
6511
6604
|
*/
|
|
6512
6605
|
FilterCheckboxComponent.prototype.ngOnChanges = /**
|
|
6606
|
+
* @param {?} changes
|
|
6513
6607
|
* @return {?}
|
|
6514
6608
|
*/
|
|
6515
|
-
function () {
|
|
6609
|
+
function (changes) {
|
|
6610
|
+
var _this = this;
|
|
6516
6611
|
this.getDataSource();
|
|
6612
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6613
|
+
/** @type {?} */
|
|
6614
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6615
|
+
* @param {?} field
|
|
6616
|
+
* @return {?}
|
|
6617
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6618
|
+
if (isChange) {
|
|
6619
|
+
this.checkValue = (( /** @type {?} */(this.item.value))).getOriginalValue();
|
|
6620
|
+
}
|
|
6621
|
+
}
|
|
6517
6622
|
};
|
|
6518
6623
|
/**
|
|
6519
6624
|
* @return {?}
|
|
@@ -6610,7 +6715,8 @@
|
|
|
6610
6715
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6611
6716
|
isCheckExtend: [{ type: i0.HostBinding, args: ['class.filter-item-checbox-wrap',] }],
|
|
6612
6717
|
cla: [{ type: i0.HostBinding, args: ['class.filter-item-checkboxgroup',] }],
|
|
6613
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
6718
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6719
|
+
changeFields: [{ type: i0.Input }]
|
|
6614
6720
|
};
|
|
6615
6721
|
return FilterCheckboxComponent;
|
|
6616
6722
|
}());
|
|
@@ -6638,6 +6744,10 @@
|
|
|
6638
6744
|
* 判断是否显示label
|
|
6639
6745
|
*/
|
|
6640
6746
|
this.showlabel = true;
|
|
6747
|
+
/**
|
|
6748
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6749
|
+
*/
|
|
6750
|
+
this.changeFields = [];
|
|
6641
6751
|
}
|
|
6642
6752
|
Object.defineProperty(DateRangeComponent.prototype, "isExtend", {
|
|
6643
6753
|
// showType:string;
|
|
@@ -6718,13 +6828,30 @@
|
|
|
6718
6828
|
this.cdr.detectChanges();
|
|
6719
6829
|
};
|
|
6720
6830
|
/**
|
|
6831
|
+
* @param {?} changes
|
|
6721
6832
|
* @return {?}
|
|
6722
6833
|
*/
|
|
6723
6834
|
DateRangeComponent.prototype.ngOnChanges = /**
|
|
6835
|
+
* @param {?} changes
|
|
6724
6836
|
* @return {?}
|
|
6725
6837
|
*/
|
|
6726
|
-
function () {
|
|
6838
|
+
function (changes) {
|
|
6839
|
+
var _this = this;
|
|
6727
6840
|
this.initDate();
|
|
6841
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6842
|
+
/** @type {?} */
|
|
6843
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6844
|
+
* @param {?} field
|
|
6845
|
+
* @return {?}
|
|
6846
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6847
|
+
if (isChange) {
|
|
6848
|
+
/** @type {?} */
|
|
6849
|
+
var beginValue = this.item.value && this.item.value.startTime ? this.item.value.startTime.toString().trim() : '';
|
|
6850
|
+
/** @type {?} */
|
|
6851
|
+
var endValue = this.item.value && this.item.value.endTime ? this.item.value.endTime.toString().trim() : '';
|
|
6852
|
+
this.rangeDate = beginValue + "~" + endValue;
|
|
6853
|
+
}
|
|
6854
|
+
}
|
|
6728
6855
|
};
|
|
6729
6856
|
/**
|
|
6730
6857
|
* @return {?}
|
|
@@ -6805,7 +6932,7 @@
|
|
|
6805
6932
|
DateRangeComponent.decorators = [
|
|
6806
6933
|
{ type: i0.Component, args: [{
|
|
6807
6934
|
selector: 'app-filter-daterange',
|
|
6808
|
-
template: "<label class=\"col-form-label\" *ngIf=\"item && showlabel\" title=\"{{getConditionItemTitle(item)}}\">\r\n <span class=\"farris-label-info text-danger\" *ngIf=\"item.control.required\">*</span>\r\n <span class=\"farris-label-text\">{{item.fieldName}}</span>\r\n</label>\r\n<div class=\"farris-input-wrap\" *ngIf=\"item\">\r\n <ng-container *ngIf=\"showTime;else defaultdate\">\r\n <farris-datepicker [(ngModel)]=\"rangeDate\" [dateRange]=\"true\" [readonly]=\"disabled\"
|
|
6935
|
+
template: "<label class=\"col-form-label\" *ngIf=\"item && showlabel\" title=\"{{getConditionItemTitle(item)}}\">\r\n <span class=\"farris-label-info text-danger\" *ngIf=\"item.control.required\">*</span>\r\n <span class=\"farris-label-text\">{{item.fieldName}}</span>\r\n</label>\r\n<div class=\"farris-input-wrap\" *ngIf=\"item\">\r\n <ng-container *ngIf=\"showTime;else defaultdate\">\r\n <farris-datepicker [(ngModel)]=\"rangeDate\" [dateRange]=\"true\" [readonly]=\"disabled\"\r\n [editable]=\"false\" [returnFormat]=\"showTime ? 'yyyy-MM-dd HH:mm:ss' : 'yyyy-MM-dd'\"\r\n [dateFormat]=\"dateFormat\" (valueChange)=\"onDateChange($event)\" [beginPlaceholder]=\"beginPlaceHolder\"\r\n [endPlaceholder]=\"endPlaceHolder\" [placeholder]=\"placeholder\" [showTime]=\"showTime\"></farris-datepicker>\r\n </ng-container>\r\n <ng-template #defaultdate>\r\n <farris-datepicker [(ngModel)]=\"rangeDate\" [dateRange]=\"true\" [readonly]=\"disabled\"\r\n [editable]=\"false\" [returnFormat]=\"showTime ? 'yyyy-MM-dd HH:mm:ss': (showType == '2'? 'yyyy-MM': (showType == '3'? 'yyyy':'yyyy-MM-dd'))\"\r\n [dateFormat]=\"dateFormat\" (valueChange)=\"onDateChange($event)\" [beginPlaceholder]=\"beginPlaceHolder\" [endPlaceholder]=\"endPlaceHolder\" [placeholder]=\"placeholder\" [showType]=\"showType\"></farris-datepicker>\r\n </ng-template>\r\n \r\n\r\n <!-- <farris-datepicker [ngModel]=\"rangeDate\" [dateRange]=\"true\" [returnFormat]=\"'yyyy-MM-dd'\" [dateFormat]=\"item.control.format\" (ngModelChange)=\"onDateChange($event)\"></farris-datepicker> -->\r\n</div>\r\n<!-- [(ngModel)]=\"rangeDate\" -->"
|
|
6809
6936
|
}] }
|
|
6810
6937
|
];
|
|
6811
6938
|
/** @nocollapse */
|
|
@@ -6824,7 +6951,8 @@
|
|
|
6824
6951
|
showType: [{ type: i0.Input }],
|
|
6825
6952
|
searchHandle: [{ type: i0.Output, args: ['searchHandle',] }],
|
|
6826
6953
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6827
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
6954
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6955
|
+
changeFields: [{ type: i0.Input }]
|
|
6828
6956
|
};
|
|
6829
6957
|
return DateRangeComponent;
|
|
6830
6958
|
}());
|
|
@@ -6975,6 +7103,10 @@
|
|
|
6975
7103
|
this.selectCheck = [];
|
|
6976
7104
|
this.cla = true;
|
|
6977
7105
|
this.radioDataSource = new Array();
|
|
7106
|
+
/**
|
|
7107
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
7108
|
+
*/
|
|
7109
|
+
this.changeFields = [];
|
|
6978
7110
|
}
|
|
6979
7111
|
Object.defineProperty(FilterRadioComponent.prototype, "isExtend", {
|
|
6980
7112
|
get: /**
|
|
@@ -7027,13 +7159,28 @@
|
|
|
7027
7159
|
}));
|
|
7028
7160
|
};
|
|
7029
7161
|
/**
|
|
7162
|
+
* @param {?} changes
|
|
7030
7163
|
* @return {?}
|
|
7031
7164
|
*/
|
|
7032
7165
|
FilterRadioComponent.prototype.ngOnChanges = /**
|
|
7166
|
+
* @param {?} changes
|
|
7033
7167
|
* @return {?}
|
|
7034
7168
|
*/
|
|
7035
|
-
function () {
|
|
7169
|
+
function (changes) {
|
|
7170
|
+
var _this = this;
|
|
7036
7171
|
this.getDataSource();
|
|
7172
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
7173
|
+
/** @type {?} */
|
|
7174
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
7175
|
+
* @param {?} field
|
|
7176
|
+
* @return {?}
|
|
7177
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
7178
|
+
if (isChange) {
|
|
7179
|
+
/** @type {?} */
|
|
7180
|
+
var orginalValue = this.item.value.getOriginalValue();
|
|
7181
|
+
this.radioValue = orginalValue == undefined ? [] : orginalValue;
|
|
7182
|
+
}
|
|
7183
|
+
}
|
|
7037
7184
|
};
|
|
7038
7185
|
/**
|
|
7039
7186
|
* @return {?}
|
|
@@ -7122,7 +7269,8 @@
|
|
|
7122
7269
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
7123
7270
|
isCheckExtend: [{ type: i0.HostBinding, args: ['class.filter-item-checbox-wrap',] }],
|
|
7124
7271
|
cla: [{ type: i0.HostBinding, args: ['class.filter-item-radio',] }],
|
|
7125
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
7272
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
7273
|
+
changeFields: [{ type: i0.Input }]
|
|
7126
7274
|
};
|
|
7127
7275
|
return FilterRadioComponent;
|
|
7128
7276
|
}());
|
|
@@ -7383,6 +7531,70 @@
|
|
|
7383
7531
|
return FilterInputGroupComponent;
|
|
7384
7532
|
}());
|
|
7385
7533
|
|
|
7534
|
+
/**
|
|
7535
|
+
* @fileoverview added by tsickle
|
|
7536
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7537
|
+
*/
|
|
7538
|
+
var ClearFieldsDirective = /** @class */ (function () {
|
|
7539
|
+
function ClearFieldsDirective(ngCtrl, listFilterCmp, inject) {
|
|
7540
|
+
this.ngCtrl = ngCtrl;
|
|
7541
|
+
this.listFilterCmp = listFilterCmp;
|
|
7542
|
+
this.inject = inject;
|
|
7543
|
+
this.clearFields = '';
|
|
7544
|
+
}
|
|
7545
|
+
/**
|
|
7546
|
+
* @return {?}
|
|
7547
|
+
*/
|
|
7548
|
+
ClearFieldsDirective.prototype.ngOnInit = /**
|
|
7549
|
+
* @return {?}
|
|
7550
|
+
*/
|
|
7551
|
+
function () {
|
|
7552
|
+
var _this = this;
|
|
7553
|
+
if (this.clearFields && this.ngCtrl) {
|
|
7554
|
+
this.ngCtrl.valueChanges.subscribe(( /**
|
|
7555
|
+
* @param {?} v
|
|
7556
|
+
* @return {?}
|
|
7557
|
+
*/function (v) {
|
|
7558
|
+
_this.listFilterCmp.fieldCodeOfClearFields = [];
|
|
7559
|
+
_this.clearFields.split(',').forEach(( /**
|
|
7560
|
+
* @param {?} n
|
|
7561
|
+
* @return {?}
|
|
7562
|
+
*/function (n) {
|
|
7563
|
+
// 字段编号
|
|
7564
|
+
/** @type {?} */
|
|
7565
|
+
var conditionItem = _this.listFilterCmp.listFilterConditions.find(( /**
|
|
7566
|
+
* @param {?} c
|
|
7567
|
+
* @return {?}
|
|
7568
|
+
*/function (c) { return c.fieldCode === n; }));
|
|
7569
|
+
if (conditionItem) {
|
|
7570
|
+
// 触发清空字段列表变更,特殊控件类型的清空,不能只是清空值
|
|
7571
|
+
_this.listFilterCmp.fieldCodeOfClearFields.push(n);
|
|
7572
|
+
// 清空字段
|
|
7573
|
+
conditionItem.value.clearValue();
|
|
7574
|
+
}
|
|
7575
|
+
}));
|
|
7576
|
+
}));
|
|
7577
|
+
}
|
|
7578
|
+
};
|
|
7579
|
+
ClearFieldsDirective.decorators = [
|
|
7580
|
+
{ type: i0.Directive, args: [{
|
|
7581
|
+
selector: '[clear-fields]'
|
|
7582
|
+
},] }
|
|
7583
|
+
];
|
|
7584
|
+
/** @nocollapse */
|
|
7585
|
+
ClearFieldsDirective.ctorParameters = function () {
|
|
7586
|
+
return [
|
|
7587
|
+
{ type: forms.NgControl, decorators: [{ type: i0.Optional }, { type: i0.Self }] },
|
|
7588
|
+
{ type: ListFilterComponent },
|
|
7589
|
+
{ type: i0.Injector }
|
|
7590
|
+
];
|
|
7591
|
+
};
|
|
7592
|
+
ClearFieldsDirective.propDecorators = {
|
|
7593
|
+
clearFields: [{ type: i0.Input, args: ['clear-fields',] }]
|
|
7594
|
+
};
|
|
7595
|
+
return ClearFieldsDirective;
|
|
7596
|
+
}());
|
|
7597
|
+
|
|
7386
7598
|
/**
|
|
7387
7599
|
* @fileoverview added by tsickle
|
|
7388
7600
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -7405,7 +7617,8 @@
|
|
|
7405
7617
|
ListFilterCommonComponent,
|
|
7406
7618
|
FilterRadioComponent,
|
|
7407
7619
|
FilterInputGroupComponent,
|
|
7408
|
-
ControlTypeXPipe
|
|
7620
|
+
ControlTypeXPipe,
|
|
7621
|
+
ClearFieldsDirective
|
|
7409
7622
|
],
|
|
7410
7623
|
imports: [
|
|
7411
7624
|
common.CommonModule,
|
|
@@ -7782,6 +7995,7 @@
|
|
|
7782
7995
|
exports.YearRangeHandler = YearRangeHandler;
|
|
7783
7996
|
exports.InputGroupHandler = InputGroupHandler;
|
|
7784
7997
|
exports.LISTFILTER_HANDLER_TOKEN = LISTFILTER_HANDLER_TOKEN;
|
|
7998
|
+
exports.ɵa = ClearFieldsDirective;
|
|
7785
7999
|
|
|
7786
8000
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7787
8001
|
|