@farris/ui-list-filter 0.1.9 → 0.1.10
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 +229 -21
- 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 +29 -3
- package/esm2015/lib/controlcomponent/dropdowncomponent/dropdown.component.js +25 -3
- package/esm2015/lib/controlcomponent/helpcomponent.ts/help.component.js +32 -7
- package/esm2015/lib/controlcomponent/numbercomponent/number.component.js +29 -2
- package/esm2015/lib/controlcomponent/radiocomponent/radio.component.js +27 -3
- package/esm2015/lib/directives/clear-fields.directive.js +87 -0
- package/esm2015/lib/entity/controltype/help/helpcontrol.js +6 -3
- package/esm2015/lib/list-filter.component.js +5 -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 +31 -3
- package/esm5/lib/controlcomponent/dropdowncomponent/dropdown.component.js +27 -3
- package/esm5/lib/controlcomponent/helpcomponent.ts/help.component.js +34 -7
- package/esm5/lib/controlcomponent/numbercomponent/number.component.js +34 -2
- package/esm5/lib/controlcomponent/radiocomponent/radio.component.js +29 -3
- package/esm5/lib/directives/clear-fields.directive.js +88 -0
- package/esm5/lib/entity/controltype/help/helpcontrol.js +6 -3
- package/esm5/lib/list-filter.component.js +5 -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 +218 -20
- package/fesm2015/farris-ui-list-filter.js.map +1 -1
- package/fesm5/farris-ui-list-filter.js +235 -20
- 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 -3
- package/lib/controlcomponent/numbercomponent/number.component.d.ts +7 -2
- package/lib/controlcomponent/radiocomponent/radio.component.d.ts +6 -2
- package/lib/directives/clear-fields.directive.d.ts +11 -0
- package/lib/entity/controltype/help/helpcontrol.d.ts +4 -1
- package/lib/list-filter.component.d.ts +1 -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
|
|
@@ -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
|
/**
|
|
@@ -4286,6 +4287,7 @@
|
|
|
4286
4287
|
};
|
|
4287
4288
|
this.currentLocale = 'zh-CHS';
|
|
4288
4289
|
this.isControlInline = true;
|
|
4290
|
+
this.fieldCodeOfClearFields = [];
|
|
4289
4291
|
if (this.injector) {
|
|
4290
4292
|
this.currentLocale = this.injector.get(i0.LOCALE_ID);
|
|
4291
4293
|
this.listfilterHandler = this.injector.get(LISTFILTER_HANDLER_TOKEN, null, i0.InjectFlags.Optional);
|
|
@@ -5104,7 +5106,7 @@
|
|
|
5104
5106
|
ListFilterComponent.decorators = [
|
|
5105
5107
|
{ type: i0.Component, args: [{
|
|
5106
5108
|
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>",
|
|
5109
|
+
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
5110
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5109
5111
|
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
5112
|
}] }
|
|
@@ -5532,6 +5534,10 @@
|
|
|
5532
5534
|
* 判断是否显示label
|
|
5533
5535
|
*/
|
|
5534
5536
|
this.showlabel = true;
|
|
5537
|
+
/**
|
|
5538
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
5539
|
+
*/
|
|
5540
|
+
this.changeFields = [];
|
|
5535
5541
|
this.onSearch = ( /**
|
|
5536
5542
|
* @return {?}
|
|
5537
5543
|
*/function () {
|
|
@@ -5595,13 +5601,26 @@
|
|
|
5595
5601
|
}));
|
|
5596
5602
|
};
|
|
5597
5603
|
/**
|
|
5604
|
+
* @param {?} changes
|
|
5598
5605
|
* @return {?}
|
|
5599
5606
|
*/
|
|
5600
5607
|
HelpComponent.prototype.ngOnChanges = /**
|
|
5608
|
+
* @param {?} changes
|
|
5601
5609
|
* @return {?}
|
|
5602
5610
|
*/
|
|
5603
|
-
function () {
|
|
5611
|
+
function (changes) {
|
|
5612
|
+
var _this = this;
|
|
5604
5613
|
this.getHelpBindingInfo();
|
|
5614
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
5615
|
+
/** @type {?} */
|
|
5616
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
5617
|
+
* @param {?} field
|
|
5618
|
+
* @return {?}
|
|
5619
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
5620
|
+
if (isChange) {
|
|
5621
|
+
this.textValue = (( /** @type {?} */(this.item.value))).textValue;
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
5605
5624
|
};
|
|
5606
5625
|
/**
|
|
5607
5626
|
* @param {?} selectedItem
|
|
@@ -5685,9 +5704,9 @@
|
|
|
5685
5704
|
this.expandLevel = helpList_1.expandLevel;
|
|
5686
5705
|
this.enableCascade = helpList_1.enableCascade;
|
|
5687
5706
|
this.helpId = helpList_1.helpId;
|
|
5688
|
-
this.title = helpList_1.title;
|
|
5689
5707
|
/** @type {?} */
|
|
5690
5708
|
var helpValue = (( /** @type {?} */(this.item.value)));
|
|
5709
|
+
this.clearFields = helpList_1.clearFields;
|
|
5691
5710
|
// if (helpValue && helpValue.value) {
|
|
5692
5711
|
// // this.textValue = (this.item.value as HelpValue).value[this.textField];
|
|
5693
5712
|
// this.textValue = HelpValue.getPropValue(helpValue.value, this.textField.split('.'));
|
|
@@ -5737,7 +5756,7 @@
|
|
|
5737
5756
|
HelpComponent.decorators = [
|
|
5738
5757
|
{ type: i0.Component, args: [{
|
|
5739
5758
|
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 [
|
|
5759
|
+
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 [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
5760
|
// providers: [{ provide: ServerSideToken, useClass: LookupHttpBeQueryService }]
|
|
5742
5761
|
}] }
|
|
5743
5762
|
];
|
|
@@ -5754,7 +5773,8 @@
|
|
|
5754
5773
|
hostRef: [{ type: i0.Input }],
|
|
5755
5774
|
searchHandle: [{ type: i0.Output }],
|
|
5756
5775
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
5757
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
5776
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
5777
|
+
changeFields: [{ type: i0.Input }]
|
|
5758
5778
|
};
|
|
5759
5779
|
return HelpComponent;
|
|
5760
5780
|
}());
|
|
@@ -5775,6 +5795,10 @@
|
|
|
5775
5795
|
* 判断是否显示label
|
|
5776
5796
|
*/
|
|
5777
5797
|
this.showlabel = true;
|
|
5798
|
+
/**
|
|
5799
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
5800
|
+
*/
|
|
5801
|
+
this.changeFields = [];
|
|
5778
5802
|
}
|
|
5779
5803
|
Object.defineProperty(DateComponent.prototype, "isExtend", {
|
|
5780
5804
|
get: /**
|
|
@@ -5830,13 +5854,26 @@
|
|
|
5830
5854
|
}));
|
|
5831
5855
|
};
|
|
5832
5856
|
/**
|
|
5857
|
+
* @param {?} changes
|
|
5833
5858
|
* @return {?}
|
|
5834
5859
|
*/
|
|
5835
5860
|
DateComponent.prototype.ngOnChanges = /**
|
|
5861
|
+
* @param {?} changes
|
|
5836
5862
|
* @return {?}
|
|
5837
5863
|
*/
|
|
5838
|
-
function () {
|
|
5864
|
+
function (changes) {
|
|
5865
|
+
var _this = this;
|
|
5839
5866
|
this.initDate();
|
|
5867
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
5868
|
+
/** @type {?} */
|
|
5869
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
5870
|
+
* @param {?} field
|
|
5871
|
+
* @return {?}
|
|
5872
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
5873
|
+
if (isChange) {
|
|
5874
|
+
this.date = this.item.value.getOriginalValue();
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5840
5877
|
};
|
|
5841
5878
|
/**
|
|
5842
5879
|
* @return {?}
|
|
@@ -5943,7 +5980,8 @@
|
|
|
5943
5980
|
showType: [{ type: i0.Input }],
|
|
5944
5981
|
searchHandle: [{ type: i0.Output }],
|
|
5945
5982
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
5946
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
5983
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
5984
|
+
changeFields: [{ type: i0.Input }]
|
|
5947
5985
|
};
|
|
5948
5986
|
return DateComponent;
|
|
5949
5987
|
}());
|
|
@@ -5965,6 +6003,10 @@
|
|
|
5965
6003
|
* 判断是否显示label
|
|
5966
6004
|
*/
|
|
5967
6005
|
this.showlabel = true;
|
|
6006
|
+
/**
|
|
6007
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6008
|
+
*/
|
|
6009
|
+
this.changeFields = [];
|
|
5968
6010
|
}
|
|
5969
6011
|
Object.defineProperty(DropDownComponent.prototype, "isExtend", {
|
|
5970
6012
|
get: /**
|
|
@@ -6026,13 +6068,26 @@
|
|
|
6026
6068
|
// this.testId = this.solutionService.getGuid();
|
|
6027
6069
|
};
|
|
6028
6070
|
/**
|
|
6071
|
+
* @param {?} changes
|
|
6029
6072
|
* @return {?}
|
|
6030
6073
|
*/
|
|
6031
6074
|
DropDownComponent.prototype.ngOnChanges = /**
|
|
6075
|
+
* @param {?} changes
|
|
6032
6076
|
* @return {?}
|
|
6033
6077
|
*/
|
|
6034
|
-
function () {
|
|
6078
|
+
function (changes) {
|
|
6079
|
+
var _this = this;
|
|
6035
6080
|
this.getDataSource();
|
|
6081
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6082
|
+
/** @type {?} */
|
|
6083
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6084
|
+
* @param {?} field
|
|
6085
|
+
* @return {?}
|
|
6086
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6087
|
+
if (isChange) {
|
|
6088
|
+
this.selectedItemId = (( /** @type {?} */(this.item.value))).value;
|
|
6089
|
+
}
|
|
6090
|
+
}
|
|
6036
6091
|
//console.log(this.dropDownListDataSource);
|
|
6037
6092
|
};
|
|
6038
6093
|
/**
|
|
@@ -6153,7 +6208,8 @@
|
|
|
6153
6208
|
disabled: [{ type: i0.Input }],
|
|
6154
6209
|
searchHandle: [{ type: i0.Output, args: ['searchHandle',] }],
|
|
6155
6210
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6156
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
6211
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6212
|
+
changeFields: [{ type: i0.Input }]
|
|
6157
6213
|
};
|
|
6158
6214
|
return DropDownComponent;
|
|
6159
6215
|
}());
|
|
@@ -6177,6 +6233,10 @@
|
|
|
6177
6233
|
*/
|
|
6178
6234
|
this.showlabel = true;
|
|
6179
6235
|
this.canNull = true;
|
|
6236
|
+
/**
|
|
6237
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6238
|
+
*/
|
|
6239
|
+
this.changeFields = [];
|
|
6180
6240
|
}
|
|
6181
6241
|
Object.defineProperty(NumberComponent.prototype, "isExtend", {
|
|
6182
6242
|
get: /**
|
|
@@ -6268,6 +6328,27 @@
|
|
|
6268
6328
|
}));
|
|
6269
6329
|
this.solutionService.addFilterEditorInstance(this.item.fieldCode, this);
|
|
6270
6330
|
};
|
|
6331
|
+
/**
|
|
6332
|
+
* @param {?} changes
|
|
6333
|
+
* @return {?}
|
|
6334
|
+
*/
|
|
6335
|
+
NumberComponent.prototype.ngOnChanges = /**
|
|
6336
|
+
* @param {?} changes
|
|
6337
|
+
* @return {?}
|
|
6338
|
+
*/
|
|
6339
|
+
function (changes) {
|
|
6340
|
+
var _this = this;
|
|
6341
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6342
|
+
/** @type {?} */
|
|
6343
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6344
|
+
* @param {?} field
|
|
6345
|
+
* @return {?}
|
|
6346
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6347
|
+
if (isChange) {
|
|
6348
|
+
this.constructMultiFieldNumberRange(( /** @type {?} */(this.item.value)));
|
|
6349
|
+
}
|
|
6350
|
+
}
|
|
6351
|
+
};
|
|
6271
6352
|
/**
|
|
6272
6353
|
* @return {?}
|
|
6273
6354
|
*/
|
|
@@ -6398,7 +6479,8 @@
|
|
|
6398
6479
|
searchHandle: [{ type: i0.Output, args: ['searchHandle',] }],
|
|
6399
6480
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6400
6481
|
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6401
|
-
item: [{ type: i0.Input }]
|
|
6482
|
+
item: [{ type: i0.Input }],
|
|
6483
|
+
changeFields: [{ type: i0.Input }]
|
|
6402
6484
|
};
|
|
6403
6485
|
return NumberComponent;
|
|
6404
6486
|
}());
|
|
@@ -6455,6 +6537,10 @@
|
|
|
6455
6537
|
this.selectCheck = [];
|
|
6456
6538
|
this.cla = true;
|
|
6457
6539
|
this.checkboxDataSource = new Array();
|
|
6540
|
+
/**
|
|
6541
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6542
|
+
*/
|
|
6543
|
+
this.changeFields = [];
|
|
6458
6544
|
}
|
|
6459
6545
|
Object.defineProperty(FilterCheckboxComponent.prototype, "isExtend", {
|
|
6460
6546
|
get: /**
|
|
@@ -6507,13 +6593,26 @@
|
|
|
6507
6593
|
}));
|
|
6508
6594
|
};
|
|
6509
6595
|
/**
|
|
6596
|
+
* @param {?} changes
|
|
6510
6597
|
* @return {?}
|
|
6511
6598
|
*/
|
|
6512
6599
|
FilterCheckboxComponent.prototype.ngOnChanges = /**
|
|
6600
|
+
* @param {?} changes
|
|
6513
6601
|
* @return {?}
|
|
6514
6602
|
*/
|
|
6515
|
-
function () {
|
|
6603
|
+
function (changes) {
|
|
6604
|
+
var _this = this;
|
|
6516
6605
|
this.getDataSource();
|
|
6606
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6607
|
+
/** @type {?} */
|
|
6608
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6609
|
+
* @param {?} field
|
|
6610
|
+
* @return {?}
|
|
6611
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6612
|
+
if (isChange) {
|
|
6613
|
+
this.checkValue = (( /** @type {?} */(this.item.value))).getOriginalValue();
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6517
6616
|
};
|
|
6518
6617
|
/**
|
|
6519
6618
|
* @return {?}
|
|
@@ -6610,7 +6709,8 @@
|
|
|
6610
6709
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6611
6710
|
isCheckExtend: [{ type: i0.HostBinding, args: ['class.filter-item-checbox-wrap',] }],
|
|
6612
6711
|
cla: [{ type: i0.HostBinding, args: ['class.filter-item-checkboxgroup',] }],
|
|
6613
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
6712
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6713
|
+
changeFields: [{ type: i0.Input }]
|
|
6614
6714
|
};
|
|
6615
6715
|
return FilterCheckboxComponent;
|
|
6616
6716
|
}());
|
|
@@ -6638,6 +6738,10 @@
|
|
|
6638
6738
|
* 判断是否显示label
|
|
6639
6739
|
*/
|
|
6640
6740
|
this.showlabel = true;
|
|
6741
|
+
/**
|
|
6742
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
6743
|
+
*/
|
|
6744
|
+
this.changeFields = [];
|
|
6641
6745
|
}
|
|
6642
6746
|
Object.defineProperty(DateRangeComponent.prototype, "isExtend", {
|
|
6643
6747
|
// showType:string;
|
|
@@ -6718,13 +6822,30 @@
|
|
|
6718
6822
|
this.cdr.detectChanges();
|
|
6719
6823
|
};
|
|
6720
6824
|
/**
|
|
6825
|
+
* @param {?} changes
|
|
6721
6826
|
* @return {?}
|
|
6722
6827
|
*/
|
|
6723
6828
|
DateRangeComponent.prototype.ngOnChanges = /**
|
|
6829
|
+
* @param {?} changes
|
|
6724
6830
|
* @return {?}
|
|
6725
6831
|
*/
|
|
6726
|
-
function () {
|
|
6832
|
+
function (changes) {
|
|
6833
|
+
var _this = this;
|
|
6727
6834
|
this.initDate();
|
|
6835
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
6836
|
+
/** @type {?} */
|
|
6837
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
6838
|
+
* @param {?} field
|
|
6839
|
+
* @return {?}
|
|
6840
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
6841
|
+
if (isChange) {
|
|
6842
|
+
/** @type {?} */
|
|
6843
|
+
var beginValue = this.item.value && this.item.value.startTime ? this.item.value.startTime.toString().trim() : '';
|
|
6844
|
+
/** @type {?} */
|
|
6845
|
+
var endValue = this.item.value && this.item.value.endTime ? this.item.value.endTime.toString().trim() : '';
|
|
6846
|
+
this.rangeDate = beginValue + "~" + endValue;
|
|
6847
|
+
}
|
|
6848
|
+
}
|
|
6728
6849
|
};
|
|
6729
6850
|
/**
|
|
6730
6851
|
* @return {?}
|
|
@@ -6824,7 +6945,8 @@
|
|
|
6824
6945
|
showType: [{ type: i0.Input }],
|
|
6825
6946
|
searchHandle: [{ type: i0.Output, args: ['searchHandle',] }],
|
|
6826
6947
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
6827
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
6948
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
6949
|
+
changeFields: [{ type: i0.Input }]
|
|
6828
6950
|
};
|
|
6829
6951
|
return DateRangeComponent;
|
|
6830
6952
|
}());
|
|
@@ -6975,6 +7097,10 @@
|
|
|
6975
7097
|
this.selectCheck = [];
|
|
6976
7098
|
this.cla = true;
|
|
6977
7099
|
this.radioDataSource = new Array();
|
|
7100
|
+
/**
|
|
7101
|
+
* 某个字段发生值变化事件时,需要同步清空的字段,可能不是当前字段
|
|
7102
|
+
*/
|
|
7103
|
+
this.changeFields = [];
|
|
6978
7104
|
}
|
|
6979
7105
|
Object.defineProperty(FilterRadioComponent.prototype, "isExtend", {
|
|
6980
7106
|
get: /**
|
|
@@ -7027,13 +7153,28 @@
|
|
|
7027
7153
|
}));
|
|
7028
7154
|
};
|
|
7029
7155
|
/**
|
|
7156
|
+
* @param {?} changes
|
|
7030
7157
|
* @return {?}
|
|
7031
7158
|
*/
|
|
7032
7159
|
FilterRadioComponent.prototype.ngOnChanges = /**
|
|
7160
|
+
* @param {?} changes
|
|
7033
7161
|
* @return {?}
|
|
7034
7162
|
*/
|
|
7035
|
-
function () {
|
|
7163
|
+
function (changes) {
|
|
7164
|
+
var _this = this;
|
|
7036
7165
|
this.getDataSource();
|
|
7166
|
+
if (changes['changeFields'] && changes['changeFields'].currentValue && !changes['changeFields'].firstChange) {
|
|
7167
|
+
/** @type {?} */
|
|
7168
|
+
var isChange = changes['changeFields'].currentValue.some(( /**
|
|
7169
|
+
* @param {?} field
|
|
7170
|
+
* @return {?}
|
|
7171
|
+
*/function (field) { return field == _this.item.fieldCode; }));
|
|
7172
|
+
if (isChange) {
|
|
7173
|
+
/** @type {?} */
|
|
7174
|
+
var orginalValue = this.item.value.getOriginalValue();
|
|
7175
|
+
this.radioValue = orginalValue == undefined ? [] : orginalValue;
|
|
7176
|
+
}
|
|
7177
|
+
}
|
|
7037
7178
|
};
|
|
7038
7179
|
/**
|
|
7039
7180
|
* @return {?}
|
|
@@ -7122,7 +7263,8 @@
|
|
|
7122
7263
|
isExtend: [{ type: i0.HostBinding, args: ['class.filter-item-wrap',] }],
|
|
7123
7264
|
isCheckExtend: [{ type: i0.HostBinding, args: ['class.filter-item-checbox-wrap',] }],
|
|
7124
7265
|
cla: [{ type: i0.HostBinding, args: ['class.filter-item-radio',] }],
|
|
7125
|
-
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }]
|
|
7266
|
+
hidenLabel: [{ type: i0.HostBinding, args: ['class.filter-item-hiddenlabel',] }],
|
|
7267
|
+
changeFields: [{ type: i0.Input }]
|
|
7126
7268
|
};
|
|
7127
7269
|
return FilterRadioComponent;
|
|
7128
7270
|
}());
|
|
@@ -7383,6 +7525,70 @@
|
|
|
7383
7525
|
return FilterInputGroupComponent;
|
|
7384
7526
|
}());
|
|
7385
7527
|
|
|
7528
|
+
/**
|
|
7529
|
+
* @fileoverview added by tsickle
|
|
7530
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7531
|
+
*/
|
|
7532
|
+
var ClearFieldsDirective = /** @class */ (function () {
|
|
7533
|
+
function ClearFieldsDirective(ngCtrl, listFilterCmp, inject) {
|
|
7534
|
+
this.ngCtrl = ngCtrl;
|
|
7535
|
+
this.listFilterCmp = listFilterCmp;
|
|
7536
|
+
this.inject = inject;
|
|
7537
|
+
this.clearFields = '';
|
|
7538
|
+
}
|
|
7539
|
+
/**
|
|
7540
|
+
* @return {?}
|
|
7541
|
+
*/
|
|
7542
|
+
ClearFieldsDirective.prototype.ngOnInit = /**
|
|
7543
|
+
* @return {?}
|
|
7544
|
+
*/
|
|
7545
|
+
function () {
|
|
7546
|
+
var _this = this;
|
|
7547
|
+
if (this.clearFields && this.ngCtrl) {
|
|
7548
|
+
this.ngCtrl.valueChanges.subscribe(( /**
|
|
7549
|
+
* @param {?} v
|
|
7550
|
+
* @return {?}
|
|
7551
|
+
*/function (v) {
|
|
7552
|
+
_this.listFilterCmp.fieldCodeOfClearFields = [];
|
|
7553
|
+
_this.clearFields.split(',').forEach(( /**
|
|
7554
|
+
* @param {?} n
|
|
7555
|
+
* @return {?}
|
|
7556
|
+
*/function (n) {
|
|
7557
|
+
// 字段编号
|
|
7558
|
+
/** @type {?} */
|
|
7559
|
+
var conditionItem = _this.listFilterCmp.listFilterConditions.find(( /**
|
|
7560
|
+
* @param {?} c
|
|
7561
|
+
* @return {?}
|
|
7562
|
+
*/function (c) { return c.fieldCode === n; }));
|
|
7563
|
+
if (conditionItem) {
|
|
7564
|
+
// 触发清空字段列表变更,特殊控件类型的清空,不能只是清空值
|
|
7565
|
+
_this.listFilterCmp.fieldCodeOfClearFields.push(n);
|
|
7566
|
+
// 清空字段
|
|
7567
|
+
conditionItem.value.clearValue();
|
|
7568
|
+
}
|
|
7569
|
+
}));
|
|
7570
|
+
}));
|
|
7571
|
+
}
|
|
7572
|
+
};
|
|
7573
|
+
ClearFieldsDirective.decorators = [
|
|
7574
|
+
{ type: i0.Directive, args: [{
|
|
7575
|
+
selector: '[clear-fields]'
|
|
7576
|
+
},] }
|
|
7577
|
+
];
|
|
7578
|
+
/** @nocollapse */
|
|
7579
|
+
ClearFieldsDirective.ctorParameters = function () {
|
|
7580
|
+
return [
|
|
7581
|
+
{ type: forms.NgControl, decorators: [{ type: i0.Optional }, { type: i0.Self }] },
|
|
7582
|
+
{ type: ListFilterComponent },
|
|
7583
|
+
{ type: i0.Injector }
|
|
7584
|
+
];
|
|
7585
|
+
};
|
|
7586
|
+
ClearFieldsDirective.propDecorators = {
|
|
7587
|
+
clearFields: [{ type: i0.Input, args: ['clear-fields',] }]
|
|
7588
|
+
};
|
|
7589
|
+
return ClearFieldsDirective;
|
|
7590
|
+
}());
|
|
7591
|
+
|
|
7386
7592
|
/**
|
|
7387
7593
|
* @fileoverview added by tsickle
|
|
7388
7594
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -7405,7 +7611,8 @@
|
|
|
7405
7611
|
ListFilterCommonComponent,
|
|
7406
7612
|
FilterRadioComponent,
|
|
7407
7613
|
FilterInputGroupComponent,
|
|
7408
|
-
ControlTypeXPipe
|
|
7614
|
+
ControlTypeXPipe,
|
|
7615
|
+
ClearFieldsDirective
|
|
7409
7616
|
],
|
|
7410
7617
|
imports: [
|
|
7411
7618
|
common.CommonModule,
|
|
@@ -7782,6 +7989,7 @@
|
|
|
7782
7989
|
exports.YearRangeHandler = YearRangeHandler;
|
|
7783
7990
|
exports.InputGroupHandler = InputGroupHandler;
|
|
7784
7991
|
exports.LISTFILTER_HANDLER_TOKEN = LISTFILTER_HANDLER_TOKEN;
|
|
7992
|
+
exports.ɵa = ClearFieldsDirective;
|
|
7785
7993
|
|
|
7786
7994
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7787
7995
|
|