ngx-treeview
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "ngx-treeview", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"license": "MIT", | ||
@@ -52,44 +52,44 @@ "description": "An Angular treeview component with checkbox", | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "~0.6.8", | ||
"@angular/cli": "^6.0.8", | ||
"@angular/common": "^6.0.4", | ||
"@angular/compiler": "^6.0.4", | ||
"@angular/compiler-cli": "^6.0.4", | ||
"@angular/core": "^6.0.4", | ||
"@angular/forms": "^6.0.4", | ||
"@angular/http": "^6.0.4", | ||
"@angular/language-service": "^6.0.4", | ||
"@angular/platform-browser": "^6.0.4", | ||
"@angular/platform-browser-dynamic": "^6.0.4", | ||
"@angular/router": "^6.0.4", | ||
"@angular-devkit/build-angular": "~0.8.0", | ||
"@angular/cli": "~6.2.1", | ||
"@angular/common": "^6.1.7", | ||
"@angular/compiler": "^6.1.7", | ||
"@angular/compiler-cli": "^6.1.7", | ||
"@angular/core": "^6.1.7", | ||
"@angular/forms": "^6.1.7", | ||
"@angular/http": "^6.1.7", | ||
"@angular/language-service": "^6.1.7", | ||
"@angular/platform-browser": "^6.1.7", | ||
"@angular/platform-browser-dynamic": "^6.1.7", | ||
"@angular/router": "^6.1.7", | ||
"@fortawesome/fontawesome": "^1.1.8", | ||
"@types/jasmine": "^2.8.8", | ||
"@types/jasminewd2": "~2.0.3", | ||
"@types/node": "^8.10.19", | ||
"bootstrap": "^4.1.1", | ||
"codecov": "^3.0.2", | ||
"codelyzer": "^4.3.0", | ||
"copyfiles": "^2.0.0", | ||
"@types/node": "^8.10.29", | ||
"bootstrap": "^4.1.3", | ||
"codecov": "^3.1.0", | ||
"codelyzer": "^4.4.4", | ||
"copyfiles": "^2.1.0", | ||
"core-js": "^2.5.7", | ||
"font-awesome": "^4.7.0", | ||
"gh-pages": "^1.2.0", | ||
"gulp": "^3.9.1", | ||
"gulp-inline-ng2-template": "^4.1.0", | ||
"gulp": "^4.0.0", | ||
"gulp-inline-ng2-template": "^5.0.1", | ||
"jasmine-core": "~2.99.1", | ||
"jasmine-spec-reporter": "~4.2.1", | ||
"karma": "~1.7.1", | ||
"karma": "~3.0.0", | ||
"karma-chrome-launcher": "~2.2.0", | ||
"karma-coverage-istanbul-reporter": "^2.0.1", | ||
"karma-jasmine": "^1.1.2", | ||
"karma-coverage-istanbul-reporter": "~2.0.1", | ||
"karma-jasmine": "~1.1.2", | ||
"karma-jasmine-html-reporter": "^0.2.2", | ||
"lodash": "^4.17.10", | ||
"node-sass": "^4.9.0", | ||
"protractor": "^5.3.2", | ||
"node-sass": "^4.9.3", | ||
"protractor": "^5.4.0", | ||
"rimraf": "^2.6.2", | ||
"rxjs": "^6.2.0", | ||
"ts-node": "~5.0.1", | ||
"tslint": "~5.9.1", | ||
"typescript": "~2.7.2", | ||
"rxjs": "^6.3.2", | ||
"ts-node": "~7.0.0", | ||
"tslint": "~5.11.0", | ||
"typescript": "~2.9.2", | ||
"zone.js": "^0.8.26" | ||
} | ||
} |
import { DropdownDirective } from './dropdown.directive'; | ||
export declare class DropdownMenuDirective { | ||
private dropdown; | ||
dropdown: DropdownDirective; | ||
constructor(dropdown: DropdownDirective); | ||
} |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"DropdownMenuDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[ngxDropdownMenu]","host":{"[class.dropdown-menu]":"true","[class.show]":"dropdown.isOpen","$quoted$":["[class.dropdown-menu]","[class.show]"]}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./dropdown.directive","name":"DropdownDirective","line":13,"character":26}]}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"DropdownMenuDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[ngxDropdownMenu]","host":{"[class.dropdown-menu]":"true","[class.show]":"dropdown.isOpen","$quoted$":["[class.dropdown-menu]","[class.show]"]}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./dropdown.directive","name":"DropdownDirective","line":13,"character":25}]}]}}}}] |
import { ElementRef } from '@angular/core'; | ||
import { DropdownDirective } from './dropdown.directive'; | ||
export declare class DropdownToggleDirective { | ||
private dropdown; | ||
dropdown: DropdownDirective; | ||
constructor(dropdown: DropdownDirective, elementRef: ElementRef); | ||
} |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"DropdownToggleDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[ngxDropdownToggle]","host":{"class":"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen","(click)":"dropdown.toggle()","$quoted$":["class","aria-haspopup","[attr.aria-expanded]","(click)"]}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./dropdown.directive","name":"DropdownDirective","line":15,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":16,"character":20}]}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"DropdownToggleDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[ngxDropdownToggle]","host":{"class":"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen","(click)":"dropdown.toggle()","$quoted$":["class","aria-haspopup","[attr.aria-expanded]","(click)"]}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./dropdown.directive","name":"DropdownDirective","line":15,"character":25},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":16,"character":20}]}]}}}}] |
@@ -12,3 +12,3 @@ import { EventEmitter } from '@angular/core'; | ||
toggle(): void; | ||
private isEventFromToggle(event); | ||
private isEventFromToggle; | ||
} |
@@ -15,3 +15,3 @@ import { TreeviewItem } from './treeview-item'; | ||
getSelectedChange(component: TreeviewComponent): any[]; | ||
private getLinks(item, parent); | ||
private getLinks; | ||
} | ||
@@ -18,0 +18,0 @@ export declare class OrderDownlineTreeviewEventParser extends TreeviewEventParser { |
import { TreeviewItem } from './treeview-item'; | ||
export declare const TreeviewHelper: { | ||
findItem: (root: TreeviewItem, value: any) => TreeviewItem; | ||
findItemInList: (list: TreeviewItem[], value: any) => TreeviewItem; | ||
findParent: (root: TreeviewItem, item: TreeviewItem) => TreeviewItem; | ||
removeItem: (root: TreeviewItem, item: TreeviewItem) => boolean; | ||
concatSelection: (items: TreeviewItem[], checked: TreeviewItem[], unchecked: TreeviewItem[]) => { | ||
[k: string]: TreeviewItem[]; | ||
}; | ||
findItem: typeof findItem; | ||
findItemInList: typeof findItemInList; | ||
findParent: typeof findParent; | ||
removeItem: typeof removeItem; | ||
concatSelection: typeof concatSelection; | ||
}; | ||
declare function findItem(root: TreeviewItem, value: any): TreeviewItem; | ||
declare function findItemInList(list: TreeviewItem[], value: any): TreeviewItem; | ||
declare function findParent(root: TreeviewItem, item: TreeviewItem): TreeviewItem; | ||
declare function removeItem(root: TreeviewItem, item: TreeviewItem): boolean; | ||
declare function concatSelection(items: TreeviewItem[], checked: TreeviewItem[], unchecked: TreeviewItem[]): { | ||
[k: string]: TreeviewItem[]; | ||
}; | ||
export {}; |
@@ -30,3 +30,3 @@ export interface TreeviewSelection { | ||
correctChecked(): void; | ||
private getCorrectChecked(); | ||
private getCorrectChecked; | ||
} |
@@ -32,8 +32,8 @@ import { EventEmitter, SimpleChanges, OnChanges, TemplateRef } from '@angular/core'; | ||
raiseSelectedChange(): void; | ||
private createHeaderTemplateContext(); | ||
private generateSelection(); | ||
private updateFilterItems(); | ||
private filterItem(item, filterText); | ||
private updateCheckedOfAll(); | ||
private updateCollapsedOfAll(); | ||
private createHeaderTemplateContext; | ||
private generateSelection; | ||
private updateFilterItems; | ||
private filterItem; | ||
private updateCheckedOfAll; | ||
private updateCollapsedOfAll; | ||
} |
@@ -218,3 +218,3 @@ var __extends = (this && this.__extends) || (function () { | ||
selector: 'ngx-treeview', | ||
template: "\n <ng-template #defaultItemTemplate let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\" let-onCheckedChange=\"onCheckedChange\">\n <div class=\"form-inline row-item\">\n <i *ngIf=\"item.children\" (click)=\"onCollapseExpand()\" aria-hidden=\"true\" class=\"fa\" [class.fa-caret-right]=\"item.collapsed\"\n [class.fa-caret-down]=\"!item.collapsed\"></i>\n <div class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\" [disabled]=\"item.disabled\"\n [indeterminate]=\"item.indeterminate\" />\n <label class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{item.text}}\n </label>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultHeaderTemplate let-config=\"config\" let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\" let-onCheckedChange=\"onCheckedChange\"\n let-onFilterTextChange=\"onFilterTextChange\">\n <div *ngIf=\"config.hasFilter\" class=\"row row-filter\">\n <div class=\"col-12\">\n <input class=\"form-control\" type=\"text\" [placeholder]=\"i18n.getFilterPlaceholder()\" [(ngModel)]=\"filterText\" (ngModelChange)=\"onFilterTextChange($event)\"\n />\n </div>\n </div>\n <div *ngIf=\"hasFilterItems\">\n <div *ngIf=\"config.hasAllCheckBox || config.hasCollapseExpand\" class=\"row row-all\">\n <div class=\"col-12\">\n <div class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\" [indeterminate]=\"item.indeterminate\"\n />\n <label *ngIf=\"config.hasAllCheckBox\" class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{i18n.getAllCheckboxText()}}\n </label>\n <label *ngIf=\"config.hasCollapseExpand\" class=\"pull-right form-check-label\" (click)=\"onCollapseExpand()\">\n <i [title]=\"i18n.getTooltipCollapseExpandText(item.collapsed)\" aria-hidden=\"true\" class=\"fa\" [class.fa-expand]=\"item.collapsed\"\n [class.fa-compress]=\"!item.collapsed\"></i>\n </label>\n </div>\n </div>\n </div>\n <div *ngIf=\"config.hasDivider\" class=\"dropdown-divider\"></div>\n </div>\n </ng-template>\n <div class=\"treeview-header\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate || defaultHeaderTemplate\" [ngTemplateOutletContext]=\"headerTemplateContext\">\n </ng-template>\n </div>\n <div [ngSwitch]=\"hasFilterItems\">\n <div *ngSwitchCase=\"true\" class=\"treeview-container\" [style.max-height.px]=\"maxHeight\">\n <ngx-treeview-item *ngFor=\"let item of filterItems\" [config]=\"config\" [item]=\"item\" [template]=\"itemTemplate || defaultItemTemplate\"\n (checkedChange)=\"onItemCheckedChange(item, $event)\">\n </ngx-treeview-item>\n </div>\n <div *ngSwitchCase=\"false\" class=\"treeview-text\">\n {{i18n.getFilterNoItemsFoundText()}}\n </div>\n </div>\n ", | ||
template: "\n <ng-template #defaultItemTemplate let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\" let-onCheckedChange=\"onCheckedChange\">\n <div class=\"form-inline row-item\">\n <i *ngIf=\"item.children\" (click)=\"onCollapseExpand()\" aria-hidden=\"true\" class=\"fa\" [class.fa-caret-right]=\"item.collapsed\"\n [class.fa-caret-down]=\"!item.collapsed\"></i>\n <div class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\"\n [disabled]=\"item.disabled\" [indeterminate]=\"item.indeterminate\" />\n <label class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{item.text}}\n </label>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultHeaderTemplate let-config=\"config\" let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\"\n let-onCheckedChange=\"onCheckedChange\" let-onFilterTextChange=\"onFilterTextChange\">\n <div *ngIf=\"config.hasFilter\" class=\"row row-filter\">\n <div class=\"col-12\">\n <input class=\"form-control\" type=\"text\" [placeholder]=\"i18n.getFilterPlaceholder()\" [(ngModel)]=\"filterText\"\n (ngModelChange)=\"onFilterTextChange($event)\" />\n </div>\n </div>\n <div *ngIf=\"hasFilterItems\">\n <div *ngIf=\"config.hasAllCheckBox || config.hasCollapseExpand\" class=\"row row-all\">\n <div class=\"col-12\">\n <div class=\"form-check form-check-inline\" *ngIf=\"config.hasAllCheckBox\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\"\n [indeterminate]=\"item.indeterminate\" />\n <label class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{i18n.getAllCheckboxText()}}\n </label>\n </div>\n <label *ngIf=\"config.hasCollapseExpand\" class=\"pull-right form-check-label\" (click)=\"onCollapseExpand()\">\n <i [title]=\"i18n.getTooltipCollapseExpandText(item.collapsed)\" aria-hidden=\"true\" class=\"fa\"\n [class.fa-expand]=\"item.collapsed\" [class.fa-compress]=\"!item.collapsed\"></i>\n </label>\n </div>\n </div>\n <div *ngIf=\"config.hasDivider\" class=\"dropdown-divider\"></div>\n </div>\n </ng-template>\n <div class=\"treeview-header\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate || defaultHeaderTemplate\" [ngTemplateOutletContext]=\"headerTemplateContext\">\n </ng-template>\n </div>\n <div [ngSwitch]=\"hasFilterItems\">\n <div *ngSwitchCase=\"true\" class=\"treeview-container\" [style.max-height.px]=\"maxHeight\">\n <ngx-treeview-item *ngFor=\"let item of filterItems\" [config]=\"config\" [item]=\"item\" [template]=\"itemTemplate || defaultItemTemplate\"\n (checkedChange)=\"onItemCheckedChange(item, $event)\">\n </ngx-treeview-item>\n </div>\n <div *ngSwitchCase=\"false\" class=\"treeview-text\">\n {{i18n.getFilterNoItemsFoundText()}}\n </div>\n </div>\n ", | ||
styles: ["\n :host /deep/ .treeview-header .row-filter {\n margin-bottom: .5rem;\n }\n\n :host /deep/ .treeview-header .row-all .fa {\n cursor: pointer;\n }\n\n :host /deep/ .treeview-container .row-item {\n margin-bottom: .3rem;\n flex-wrap: nowrap;\n }\n\n :host /deep/ .treeview-container .row-item .fa {\n width: .8rem;\n cursor: pointer;\n margin-right: .3rem;\n }\n\n .treeview-container {\n overflow-y: auto;\n padding-right: .3rem;\n }\n\n .treeview-text {\n padding: .3rem 0;\n white-space: nowrap;\n }\n "] | ||
@@ -221,0 +221,0 @@ },] }, |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"TreeviewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":44,"character":1},"arguments":[{"selector":"ngx-treeview","template":"\n <ng-template #defaultItemTemplate let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\" let-onCheckedChange=\"onCheckedChange\">\n <div class=\"form-inline row-item\">\n <i *ngIf=\"item.children\" (click)=\"onCollapseExpand()\" aria-hidden=\"true\" class=\"fa\" [class.fa-caret-right]=\"item.collapsed\"\n [class.fa-caret-down]=\"!item.collapsed\"></i>\n <div class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\" [disabled]=\"item.disabled\"\n [indeterminate]=\"item.indeterminate\" />\n <label class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{item.text}}\n </label>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultHeaderTemplate let-config=\"config\" let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\" let-onCheckedChange=\"onCheckedChange\"\n let-onFilterTextChange=\"onFilterTextChange\">\n <div *ngIf=\"config.hasFilter\" class=\"row row-filter\">\n <div class=\"col-12\">\n <input class=\"form-control\" type=\"text\" [placeholder]=\"i18n.getFilterPlaceholder()\" [(ngModel)]=\"filterText\" (ngModelChange)=\"onFilterTextChange($event)\"\n />\n </div>\n </div>\n <div *ngIf=\"hasFilterItems\">\n <div *ngIf=\"config.hasAllCheckBox || config.hasCollapseExpand\" class=\"row row-all\">\n <div class=\"col-12\">\n <div class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\" [indeterminate]=\"item.indeterminate\"\n />\n <label *ngIf=\"config.hasAllCheckBox\" class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{i18n.getAllCheckboxText()}}\n </label>\n <label *ngIf=\"config.hasCollapseExpand\" class=\"pull-right form-check-label\" (click)=\"onCollapseExpand()\">\n <i [title]=\"i18n.getTooltipCollapseExpandText(item.collapsed)\" aria-hidden=\"true\" class=\"fa\" [class.fa-expand]=\"item.collapsed\"\n [class.fa-compress]=\"!item.collapsed\"></i>\n </label>\n </div>\n </div>\n </div>\n <div *ngIf=\"config.hasDivider\" class=\"dropdown-divider\"></div>\n </div>\n </ng-template>\n <div class=\"treeview-header\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate || defaultHeaderTemplate\" [ngTemplateOutletContext]=\"headerTemplateContext\">\n </ng-template>\n </div>\n <div [ngSwitch]=\"hasFilterItems\">\n <div *ngSwitchCase=\"true\" class=\"treeview-container\" [style.max-height.px]=\"maxHeight\">\n <ngx-treeview-item *ngFor=\"let item of filterItems\" [config]=\"config\" [item]=\"item\" [template]=\"itemTemplate || defaultItemTemplate\"\n (checkedChange)=\"onItemCheckedChange(item, $event)\">\n </ngx-treeview-item>\n </div>\n <div *ngSwitchCase=\"false\" class=\"treeview-text\">\n {{i18n.getFilterNoItemsFoundText()}}\n </div>\n </div>\n ","styles":["\n :host /deep/ .treeview-header .row-filter {\n margin-bottom: .5rem;\n }\n\n :host /deep/ .treeview-header .row-all .fa {\n cursor: pointer;\n }\n\n :host /deep/ .treeview-container .row-item {\n margin-bottom: .3rem;\n flex-wrap: nowrap;\n }\n\n :host /deep/ .treeview-container .row-item .fa {\n width: .8rem;\n cursor: pointer;\n margin-right: .3rem;\n }\n\n .treeview-container {\n overflow-y: auto;\n padding-right: .3rem;\n }\n\n .treeview-text {\n padding: .3rem 0;\n white-space: nowrap;\n }\n "]}]}],"members":{"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":134,"character":5}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":135,"character":5}}]}],"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":136,"character":5}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":137,"character":5}}]}],"selectedChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":138,"character":5}}]}],"filterChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":139,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./treeview-i18n","name":"TreeviewI18n","line":147,"character":21},{"__symbolic":"reference","module":"./treeview-config","name":"TreeviewConfig","line":148,"character":31},{"__symbolic":"reference","module":"./treeview-event-parser","name":"TreeviewEventParser","line":149,"character":29}]}],"ngOnChanges":[{"__symbolic":"method"}],"onAllCollapseExpand":[{"__symbolic":"method"}],"onFilterTextChange":[{"__symbolic":"method"}],"onAllCheckedChange":[{"__symbolic":"method"}],"onItemCheckedChange":[{"__symbolic":"method"}],"raiseSelectedChange":[{"__symbolic":"method"}],"createHeaderTemplateContext":[{"__symbolic":"method"}],"generateSelection":[{"__symbolic":"method"}],"updateFilterItems":[{"__symbolic":"method"}],"filterItem":[{"__symbolic":"method"}],"updateCheckedOfAll":[{"__symbolic":"method"}],"updateCollapsedOfAll":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"TreeviewComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":44,"character":1},"arguments":[{"selector":"ngx-treeview","template":"\n <ng-template #defaultItemTemplate let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\" let-onCheckedChange=\"onCheckedChange\">\n <div class=\"form-inline row-item\">\n <i *ngIf=\"item.children\" (click)=\"onCollapseExpand()\" aria-hidden=\"true\" class=\"fa\" [class.fa-caret-right]=\"item.collapsed\"\n [class.fa-caret-down]=\"!item.collapsed\"></i>\n <div class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\"\n [disabled]=\"item.disabled\" [indeterminate]=\"item.indeterminate\" />\n <label class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{item.text}}\n </label>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultHeaderTemplate let-config=\"config\" let-item=\"item\" let-onCollapseExpand=\"onCollapseExpand\"\n let-onCheckedChange=\"onCheckedChange\" let-onFilterTextChange=\"onFilterTextChange\">\n <div *ngIf=\"config.hasFilter\" class=\"row row-filter\">\n <div class=\"col-12\">\n <input class=\"form-control\" type=\"text\" [placeholder]=\"i18n.getFilterPlaceholder()\" [(ngModel)]=\"filterText\"\n (ngModelChange)=\"onFilterTextChange($event)\" />\n </div>\n </div>\n <div *ngIf=\"hasFilterItems\">\n <div *ngIf=\"config.hasAllCheckBox || config.hasCollapseExpand\" class=\"row row-all\">\n <div class=\"col-12\">\n <div class=\"form-check form-check-inline\" *ngIf=\"config.hasAllCheckBox\">\n <input type=\"checkbox\" class=\"form-check-input\" [(ngModel)]=\"item.checked\" (ngModelChange)=\"onCheckedChange()\"\n [indeterminate]=\"item.indeterminate\" />\n <label class=\"form-check-label\" (click)=\"item.checked = !item.checked; onCheckedChange()\">\n {{i18n.getAllCheckboxText()}}\n </label>\n </div>\n <label *ngIf=\"config.hasCollapseExpand\" class=\"pull-right form-check-label\" (click)=\"onCollapseExpand()\">\n <i [title]=\"i18n.getTooltipCollapseExpandText(item.collapsed)\" aria-hidden=\"true\" class=\"fa\"\n [class.fa-expand]=\"item.collapsed\" [class.fa-compress]=\"!item.collapsed\"></i>\n </label>\n </div>\n </div>\n <div *ngIf=\"config.hasDivider\" class=\"dropdown-divider\"></div>\n </div>\n </ng-template>\n <div class=\"treeview-header\">\n <ng-template [ngTemplateOutlet]=\"headerTemplate || defaultHeaderTemplate\" [ngTemplateOutletContext]=\"headerTemplateContext\">\n </ng-template>\n </div>\n <div [ngSwitch]=\"hasFilterItems\">\n <div *ngSwitchCase=\"true\" class=\"treeview-container\" [style.max-height.px]=\"maxHeight\">\n <ngx-treeview-item *ngFor=\"let item of filterItems\" [config]=\"config\" [item]=\"item\" [template]=\"itemTemplate || defaultItemTemplate\"\n (checkedChange)=\"onItemCheckedChange(item, $event)\">\n </ngx-treeview-item>\n </div>\n <div *ngSwitchCase=\"false\" class=\"treeview-text\">\n {{i18n.getFilterNoItemsFoundText()}}\n </div>\n </div>\n ","styles":["\n :host /deep/ .treeview-header .row-filter {\n margin-bottom: .5rem;\n }\n\n :host /deep/ .treeview-header .row-all .fa {\n cursor: pointer;\n }\n\n :host /deep/ .treeview-container .row-item {\n margin-bottom: .3rem;\n flex-wrap: nowrap;\n }\n\n :host /deep/ .treeview-container .row-item .fa {\n width: .8rem;\n cursor: pointer;\n margin-right: .3rem;\n }\n\n .treeview-container {\n overflow-y: auto;\n padding-right: .3rem;\n }\n\n .treeview-text {\n padding: .3rem 0;\n white-space: nowrap;\n }\n "]}]}],"members":{"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":134,"character":5}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":135,"character":5}}]}],"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":136,"character":5}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":137,"character":5}}]}],"selectedChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":138,"character":5}}]}],"filterChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":139,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./treeview-i18n","name":"TreeviewI18n","line":147,"character":21},{"__symbolic":"reference","module":"./treeview-config","name":"TreeviewConfig","line":148,"character":31},{"__symbolic":"reference","module":"./treeview-event-parser","name":"TreeviewEventParser","line":149,"character":29}]}],"ngOnChanges":[{"__symbolic":"method"}],"onAllCollapseExpand":[{"__symbolic":"method"}],"onFilterTextChange":[{"__symbolic":"method"}],"onAllCheckedChange":[{"__symbolic":"method"}],"onItemCheckedChange":[{"__symbolic":"method"}],"raiseSelectedChange":[{"__symbolic":"method"}],"createHeaderTemplateContext":[{"__symbolic":"method"}],"generateSelection":[{"__symbolic":"method"}],"updateFilterItems":[{"__symbolic":"method"}],"filterItem":[{"__symbolic":"method"}],"updateCheckedOfAll":[{"__symbolic":"method"}],"updateCollapsedOfAll":[{"__symbolic":"method"}]}}}}] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1269
110346