ngx-axis-appforge 0.0.37 → 0.0.39
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/axis-components/cytoscape/design/index.d.ts +5 -0
- package/axis-components/cytoscape/index.d.ts +20 -0
- package/axis-components/table/index.d.ts +2 -1
- package/axis-components/tree-selector/index.d.ts +1 -0
- package/axis-components-covers/cytoscape.svg +17 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +63 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +54 -0
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs.map +1 -0
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +17 -7
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +14 -3
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +3 -0
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +18 -10
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +23 -17
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components.mjs +66 -0
- package/fesm2022/ngx-axis-appforge-axis-components.mjs.map +1 -1
- package/package.json +103 -94
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-table.mjs","sources":["../../../axis-components/table/table.options.ts","../../../axis-components/table/select.ts","../../../axis-components/table/expand.ts","../../../axis-components/table/table-setter/table-setter.ts","../../../axis-components/table/table-setter/table-setter.html","../../../axis-components/table/table.ts","../../../axis-components/table/table.html","../../../axis-components/table/ngx-axis-appforge-axis-components-table.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class TableOptions extends DataOptions {\n readonly keyField = signal(\"\");\n readonly showExpand = signal(false);\n readonly expandMode = signal<\"custom\" | \"tree\">(\"custom\");\n readonly treeChildrenFun = signal(\"\");\n readonly showTableTitleSet = signal(false);\n readonly tableSetCacheKey = signal(\"\");\n readonly size = signal<'middle' | 'small' | 'default'>(\"middle\");\n readonly showOrder = signal(true);\n readonly heightExpanded = signal(false);\n readonly showDataSize = signal(true);\n readonly bordered = signal(false);\n readonly outerBordered = signal(false);\n readonly width = signal<number | undefined>(undefined);\n readonly actionsFieldWidth = signal<number | null>(null);\n readonly showCheckbox = signal(false);\n readonly singleCheck = signal(false);\n readonly checkboxLinkageForExpand = signal(false);\n readonly disableCheckboxFn = signal<string | undefined>(undefined);\n readonly enableRowClick = signal(false);\n readonly defaultSelectFirstRow = signal(false);\n readonly showTotal = signal(false);\n readonly totalTitle = signal(\"合计\");\n readonly showSubTotal = signal(false);\n readonly subTotalTitle = signal(\"小计\");\n readonly subTotalGroupLevel = signal(1);\n readonly showPagination = signal(true);\n readonly virtualScroll = signal(false);\n readonly virtualItemSize = signal(32);\n readonly pageSize = signal(10);\n readonly showSizeChanger = signal(true);\n readonly pageSizeOptions = signal(\"10,20,50,100\");\n readonly useBackEndPaging = signal(false);\n readonly pageParamsDataSourceName = signal(\"pageParams\");\n readonly exportParamsDataSourceName = signal(\"exportParams\");\n readonly exportFileName = signal(\"数据导出\");\n readonly exportBookType = signal(\"xlsx\");\n readonly importLimitLength = signal<number | null>(null);\n readonly importStartLine = signal(2);\n readonly importTemplateFileName = signal(\"数据导入模版\");\n readonly importExampleData = signal<any>([]);\n readonly fields = signal<any[]>([]);\n readonly rowActions = signal<any[]>([]);\n readonly expandRow = signal<any>(undefined);\n}\n\nexport class TableFieldOptions {\n readonly inuse = signal(true);\n readonly field = signal(\"unknown\");\n readonly title = signal(\"未命名\");\n readonly export = signal(false);\n readonly exportFlowChild = signal(true);\n readonly exportFn = signal<string | undefined>(undefined);\n readonly import = signal(false);\n readonly importRequired = signal(false);\n readonly importCellType = signal<\"text\" | \"number\">(\"text\");\n readonly importHelp = signal<string | undefined>(undefined);\n readonly sortAble = signal(false);\n readonly sortOrder = signal<\"descend\" | \"ascend\" | null>(null);\n readonly sortPriority = signal<number | null>(null);\n readonly filterAble = signal(false);\n readonly filterMultiple = signal(false);\n readonly filterDisplayFn = signal(\"\");\n readonly width = signal<number | null>(null);\n readonly align = signal<'left' | 'right' | 'center'>(\"left\");\n readonly freezeMode = signal<'none' | 'left' | 'right'>(\"none\");\n readonly groupLevel = signal<number | null>(null);\n readonly totalAble = signal(false);\n readonly totalFn = signal<string | undefined>(undefined);\n readonly titleGroup = signal<string | undefined>(undefined);\n readonly child = signal<any>(undefined);\n}","import { computed, Signal, signal } from \"@angular/core\";\nimport { TableOptions } from \"./table.options\";\nimport { fn, ScopeDirective } from 'ngx-axis-appforge/core';\n\nexport class Select {\n\n constructor(private options: TableOptions, private displayData: Signal<any[] | null>, private scope: ScopeDirective | null, private onSelectedChange: () => void) { }\n\n readonly headerChecked = signal<\"checked\" | \"indeterminate\" | \"none\">(\"none\");\n setOfCheckedId = new Set();\n setOfIndeterminateId = new Set();\n setOfDisabledId = computed(() => this.buildDisabledId());\n\n private buildDisabledId(): Set<any> {\n if (this.options.disableCheckboxFn()) {\n const args = this.scope?.snapshotAll() ?? {};\n return new Set(this.displayData()?.filter(row => this.scope?.runFnWithSnapshot(this.options.disableCheckboxFn()!, Object.assign({}, args, { row })))\n .map(row => row[this.options.keyField()]));\n }\n return new Set<any>();\n }\n\n onAllChecked(checked: boolean) {\n this.displayData()?.filter(row => !this.setOfDisabledId().has(row[this.options.keyField()]))?.forEach(row => this.updateCheckedSet(row, checked));\n this.refreshCheckedStatus();\n }\n\n toggleChecked(row: any) {\n if (this.options.showCheckbox() && !this.setOfDisabledId().has(row[this.options.keyField()])) {\n this.onItemChecked(row, !this.setOfCheckedId.has(row[this.options.keyField()]));\n }\n }\n\n onItemChecked(row: any, checked: boolean): void {\n this.updateCheckedSet(row, checked);\n this.refreshCheckedStatus();\n }\n\n updateCheckedSet(row: any, checked: boolean): void {\n const key = row[this.options.keyField()];\n if (checked && !this.setOfCheckedId.has(key)) {\n if (this.options.singleCheck()) {\n this.setOfCheckedId.clear();\n }\n this.setOfCheckedId.add(key);\n } else if (!checked && this.setOfCheckedId.has(key)) {\n this.setOfCheckedId.delete(key);\n }\n }\n\n refreshCheckedStatus(): void {\n const listOfEnabledData = this.displayData()?.filter(row => !this.setOfDisabledId().has(row[this.options.keyField()])) ?? [];\n const checked = listOfEnabledData.length > 0 && listOfEnabledData.every(row => this.setOfCheckedId.has(row[this.options.keyField()]) && !this.setOfIndeterminateId.has(row[this.options.keyField()]));\n if (checked) {\n this.headerChecked.set(\"checked\");\n } else {\n const indeterminate = listOfEnabledData.some(row => this.setOfCheckedId.has(row[this.options.keyField()]) || this.setOfIndeterminateId.has(row[this.options.keyField()])) && !checked;\n this.headerChecked.set(indeterminate ? \"indeterminate\" : \"none\");\n }\n this.onSelectedChange?.();\n }\n\n getSelectedData(): any[] | undefined {\n return this.displayData()?.filter(row => this.setOfCheckedId.has(row[this.options.keyField()]));\n }\n}","import { fn, ScopeDirective } from \"ngx-axis-appforge/core\";\nimport { TableOptions } from \"./table.options\";\nimport { computed } from \"@angular/core\";\n\nexport class Expand {\n\n constructor(private options: TableOptions, private scope: ScopeDirective | null) {\n }\n\n readonly expandedSet = new Set();\n readonly nodeMap = computed(() => this.buildNodeMap());\n\n buildNodeMap(): Map<string, { level: number, node: any, children?: any[] }> {\n const nodeMap = new Map<string, any>();\n if (this.options.showExpand() && this.options.expandMode() == \"tree\") {\n this.options.data()?.forEach((row: any) => {\n this.buildNodeMapForRow(row, nodeMap);\n });\n }\n return nodeMap;\n }\n\n onExpandChange(key: any, checked: boolean): void {\n if (checked) {\n this.expandedSet.add(key);\n } else {\n this.expandedSet.delete(key);\n }\n }\n\n buildNodeMapForRow(row: any, nodeMap: Map<string, any>, parentLevel = 0) {\n const node: any = {\n level: parentLevel + 1,\n node: row,\n children: []\n };\n nodeMap.set(row[this.options.keyField()], node)\n if (this.options.showExpand() && this.options.expandMode() == \"tree\") {\n let children: any[];\n if (this.options.treeChildrenFun()) {\n children = this.scope?.runFnWithSnapshot(this.options.treeChildrenFun(), { row })\n } else {\n children = row.children;\n }\n if (children?.length) {\n node.children = children;\n children.forEach(child => {\n this.buildNodeMapForRow(child, nodeMap, node.level);\n });\n }\n }\n }\n\n getListForExpanded(row: any): any[] {\n const key = row[this.options.keyField()];\n let res = [row];\n if (this.options.showExpand() && this.options.expandMode() == \"tree\" && this.nodeMap().get(key)?.children?.length && this.expandedSet.has(key)) {\n res = res.concat(this.nodeMap().get(key)!.children)\n }\n return res;\n }\n}","import { ChangeDetectionStrategy, Component, effect, input, model, OnDestroy, output, signal } from '@angular/core';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\nimport { CdkDrag, CdkDragDrop, CdkDropList, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\nimport { TableFieldOptions } from '../table.options';\nimport { NzResizeEvent } from 'ng-zorro-antd/resizable';\nimport { debounceTime, Subject, Subscription } from 'rxjs';\n\n\n@Component({\n selector: 'axis-table-setter',\n imports: [NzIconModule, NzButtonModule, NzModalModule, NzGridModule, CdkDrag, CdkDropList],\n templateUrl: './table-setter.html',\n styleUrl: './table-setter.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TableSetter implements OnDestroy {\n\n constructor() {\n effect(() => this.buildFixAndNotFixColumn());\n effect(() => this.onChange.emit(this.fix()));\n this.sub = this.saveCacheSubject.pipe(debounceTime(200)).subscribe(v => this.saveCache());\n }\n\n readonly fields = input.required<TableFieldOptions[]>();\n readonly cacheKey = input<string>();\n readonly onChange = output<TableFieldOptions[]>();\n\n readonly modalVisible = model(false);\n readonly fix = signal<TableFieldOptions[]>([]);\n readonly notFix = signal<TableFieldOptions[]>([]);\n\n saveCacheSubject = new Subject<void>();\n cache: { fix: string[], notFix: string[], widths: { [field: string]: number } } = { fix: [], notFix: [], widths: {} };\n sub?: Subscription;\n\n private buildFixAndNotFixColumn(): void {\n this.loadCache();\n if (this.cache) {\n const fieldMap = new Map<string, TableFieldOptions>();\n for (const f of this.fields()) {\n fieldMap.set(f.field(), f);\n if (this.cache.widths.hasOwnProperty(f.field())) {\n f.width.set(this.cache.widths[f.field()]);\n }\n }\n this.fix.set(this.cache.fix.filter(f => fieldMap.has(f)).map(f => fieldMap.get(f)!)\n .concat(this.fields().filter(f => !this.cache!.fix.includes(f.field()) && !this.cache!.notFix.includes(f.field()))));\n this.notFix.set(this.cache.notFix.filter(f => fieldMap.has(f)).map(f => fieldMap.get(f)!));\n } else {\n this.fix.set(this.fields());\n }\n }\n\n private loadCache() {\n if (this.cacheKey()) {\n const cacheStr = localStorage.getItem(this.cacheKey()!);\n if (cacheStr) {\n try {\n this.cache = JSON.parse(cacheStr);\n } catch (_) { }\n }\n }\n }\n\n private saveCache() {\n if (this.cacheKey()) {\n localStorage.setItem(this.cacheKey()!, JSON.stringify(this.cache));\n }\n }\n\n private updateFix(): void {\n this.fix.set([...this.fix()]);\n this.notFix.set([...this.notFix()]);\n if (this.cacheKey()) {\n this.cache.fix = this.fix().map(f => f.field());\n this.cache.notFix = this.notFix().map(f => f.field());\n this.saveCache();\n }\n }\n\n drop(event: CdkDragDrop<TableFieldOptions[], any, any>): void {\n if (event.previousContainer === event.container) {\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\n } else {\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\n }\n this.updateFix();\n }\n\n deleteCustom(index: number): void {\n transferArrayItem(this.fix(), this.notFix(), index, this.notFix().length);\n this.updateFix();\n }\n\n addCustom(index: number): void {\n transferArrayItem(this.notFix(), this.fix(), index, this.fix().length);\n this.updateFix();\n }\n\n onResize(field: TableFieldOptions, event: NzResizeEvent) {\n field.width.set(event.width ?? null);\n this.cache.widths[field.field()] = event.width!;\n this.saveCacheSubject.next();\n }\n\n resetDefault() {\n this.fix.set(this.fields());\n this.notFix.set([]);\n if (this.cacheKey()) {\n localStorage.removeItem(this.cacheKey()!);\n }\n }\n\n ngOnDestroy(): void {\n this.sub?.unsubscribe();\n this.saveCacheSubject.unsubscribe();\n }\n}","<a nz-button nzType=\"link\" nzSize=\"small\" (click)=\"modalVisible.set(true)\" style=\"margin: 2px;\">\n <nz-icon nzType=\"setting\" nzTheme=\"outline\" />\n</a>\n<nz-modal [(nzVisible)]=\"modalVisible\" nzTitle=\"表头设置\" nzDraggable [nzOkText]=\"null\" nzCancelText=\"关闭\"\n (nzOnCancel)=\"modalVisible.set(false)\">\n <ng-container *nzModalContent>\n <div nz-row [nzGutter]=\"24\">\n <div nz-col class=\"gutter-row\" [nzSpan]=\"12\">\n <div class=\"container\">\n <p>展示字段<a nz-button nzType=\"link\" (click)=\"resetDefault()\">恢复默认</a></p>\n <div cdkDropList #todoList=\"cdkDropList\" [cdkDropListData]=\"fix()\"\n [cdkDropListConnectedTo]=\"[doneList]\" class=\"list\" (cdkDropListDropped)=\"drop($event)\">\n @for (item of fix(); track item; let i = $index) {\n <div class=\"box\" cdkDrag>\n {{ item.title() }}\n <nz-icon nzType=\"minus-circle\" nzTheme=\"outline\" (click)=\"deleteCustom(i)\" />\n </div>\n }\n </div>\n </div>\n </div>\n <div nz-col class=\"gutter-row\" [nzSpan]=\"12\">\n <div class=\"container\">\n <p>隐藏字段</p>\n <div cdkDropList #doneList=\"cdkDropList\" [cdkDropListData]=\"notFix()\"\n [cdkDropListConnectedTo]=\"[todoList]\" class=\"list\" (cdkDropListDropped)=\"drop($event)\">\n @for (item of notFix(); track item; let i = $index) {\n <div class=\"box\" cdkDrag>\n {{ item.title() }}\n <nz-icon nzType=\"plus-circle\" nzTheme=\"outline\" (click)=\"addCustom(i)\" />\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</nz-modal>","import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, model, signal, ViewChild } from '@angular/core';\nimport { TableFieldOptions, TableOptions } from './table.options';\nimport { Base, DynamicDirective, ScopeDirective } from 'ngx-axis-appforge/core';\nimport { NzTableFilterList, NzTableModule } from 'ng-zorro-antd/table';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { Select } from './select';\nimport { Expand } from './expand';\nimport { TableSetter } from './table-setter/table-setter';\nimport { NzResizableModule } from 'ng-zorro-antd/resizable';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\n\n\n@Component({\n selector: 'axis-table',\n imports: [NzTableModule, ScopeDirective, DynamicDirective, FormsModule, CommonModule, TableSetter, NzResizableModule, NzFlexModule],\n templateUrl: './table.html',\n styleUrl: './table.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Table extends Base<TableOptions> {\n\n constructor(private elementRef: ElementRef) {\n super();\n effect(() => {\n this.fields().forEach((f, i) => {\n this.bindWithConfig(this.options.fields()[i], { options: f, tag: `bindField.${i}` });\n });\n });\n effect(() => {\n clearInterval(this.timer);\n this.refreshScoll();\n if (this.options.heightExpanded()) {\n this.timer = setInterval(() => {\n this.refreshScoll();\n }, 500);\n }\n });\n }\n\n override options: TableOptions = new TableOptions();\n\n readonly displayData = computed(() => this.buildDisplayData());\n select = new Select(this.options, this.displayData, this.getScope(), () => this.onSelectedChange());\n expand = new Expand(this.options, this.getScope());\n readonly pageSizeOptions = computed(() => this.options.pageSizeOptions().split(\",\").map(size => +size));\n readonly scroll = signal<{ x: string, y: string }>({ x: \"\", y: \"\" });\n readonly fields = computed(() => this.buildFields());\n readonly displayFields = computed(() => this.buildDisplayFields());\n readonly rowtotal = signal<number>(0);\n readonly pageIndex = model<number>(1);\n readonly fieldsControlsMap = computed(() => this.buildFieldControls());\n readonly rowActions = computed(() => this.actionsFieldWidth() > 0 ? this.options.rowActions() : []);\n readonly leaderFieldWidth = computed(() => this.buildLeaderFieldWidth());\n readonly actionsFieldWidth = computed(() => this.buildActionsFieldWidth());\n readonly fixFields = signal<TableFieldOptions[]>([]);\n timer?: number;\n\n resizeHandleOffsetX(field: TableFieldOptions): number {\n if (field.sortAble() && field.filterAble()) {\n return 42;\n } else if (field.sortAble()) {\n return 22;\n } else if (field.filterAble()) {\n return 28;\n }\n return 0;\n }\n\n @ViewChild(TableSetter)\n tableSetter?: TableSetter;\n\n trackByKeyField = (i: number, data: any): any => {\n return data[this.options.keyField()];\n }\n\n private buildDisplayData(): any[] | null {\n return this.options.data();\n }\n\n private buildFields(): TableFieldOptions[] {\n return this.options.fields().map(opt => new TableFieldOptions());\n }\n\n private buildDisplayFields(): TableFieldOptions[] {\n return (this.options.showTableTitleSet() ? this.fixFields() : this.fields()).filter(f => f.inuse());\n }\n\n private buildFieldControls(): { [field: string]: { sortFn?: any, filterItems?: NzTableFilterList, filterFn?: any } | undefined } {\n const res: { [field: string]: { sortFn?: any, filterItems?: NzTableFilterList, filterFn?: any } } = {};\n for (const field of this.displayFields()) {\n res[field.field()] = {};\n if (field.filterAble()) {\n const valueMap = new Map<any, any>();\n for (const row of this.displayData() ?? []) {\n valueMap.set(row[field.field()], row);\n }\n res[field.field()].filterItems = Array.from(valueMap.entries()).map(en => {\n let text = en[0];\n if (field.filterDisplayFn()) {\n text = this.getScope()?.runFnWithSnapshot(field.filterDisplayFn(), { value: en[0], row: en[1] });\n }\n return { text, value: en[0] };\n });\n res[field.field()].filterFn = (fd: any[] | any, row: any) => {\n if (fd instanceof Array) {\n return fd.includes(row[field.field()]);\n } else {\n return fd == row[field.field()];\n }\n };\n }\n if (field.sortAble()) {\n if (this.options.data()?.some((r: any) => r[field.field()] != undefined && typeof (r[field.field()]) == \"number\")) {\n res[field.field()].sortFn = (a: any, b: any) => a[field.field()] - b[field.field()];\n } else {\n res[field.field()].sortFn = (a: any, b: any) => {\n return ((a[field.field()] || \"\") + \"\").localeCompare(b[field.field()])\n };\n }\n }\n }\n return res;\n }\n\n private buildLeaderFieldWidth(): number {\n switch (this.options.size()) {\n case \"small\":\n return 45;\n case \"middle\":\n return 50;\n default:\n return 65;\n }\n }\n\n private buildActionsFieldWidth(): number {\n if (this.options.actionsFieldWidth() == 0 || this.options.rowActions().length == 0) {\n return 0;\n }\n return this.options.actionsFieldWidth() ?? this.options.rowActions().length * 45 + 16;\n }\n\n private refreshScoll() {\n let x = this.options.width() ?? 0;\n if (this.options.width() == undefined) {\n if (this.options.showCheckbox()) {\n x += this.leaderFieldWidth();\n }\n if (this.options.showExpand()) {\n x += this.leaderFieldWidth();\n }\n if (this.options.showOrder()) {\n x += this.leaderFieldWidth();\n }\n this.displayFields().forEach(f => {\n if (f.width()) {\n x += f.width()!;\n } else {\n x += 120;\n }\n });\n x += this.actionsFieldWidth();\n }\n let y = \"\";\n if (this.options.heightExpanded()) {\n const element = this.elementRef.nativeElement as HTMLElement;\n const table = element.querySelector(\"nz-table\");\n const head = element.querySelector(\"table[nz-table-content]>thead.ant-table-thead\");\n const headRect = head?.getBoundingClientRect();\n const innerTableRect = head?.parentElement?.parentElement?.parentElement?.getBoundingClientRect();\n const outterTableRect = table?.getBoundingClientRect();\n if (headRect) {\n // y = 视口高度(window.innerHeight) - 表头底部位置(headRect.bottom) - 表尾部高度(outterTableRect.bottom - innerTableRect.bottom)\n y = `${window.innerHeight - (headRect?.bottom ?? 0) - (outterTableRect?.bottom ?? 0) + (innerTableRect?.bottom ?? 0)}px`;\n }\n }\n this.scroll.set({ x: x + \"px\", y: y });\n }\n\n currentPageDataChange() { }\n\n onPageChange() {\n }\n\n filterChange(field: string, event: any) {\n\n }\n sortChange(field: string, event: any) {\n\n }\n\n rowspan(field: string, index: number): number {\n return 1;\n }\n\n onSelectedChange() {\n if (this.hasEventHandler(\"onSelectedChange\")) {\n this.triggeEvents(\"onSelectedChange\", { selectedRows: this.select.getSelectedData() }).subscribe();\n }\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n clearInterval(this.timer);\n }\n}\n","@if (options.showTableTitleSet()) {\n<axis-table-setter [fields]=\"fields()\" [cacheKey]=\"options.tableSetCacheKey()\"\n (onChange)=\"fixFields.set($event)\"></axis-table-setter>\n}\n<nz-table #table [nzSize]=\"options.size()\" [nzData]=\"displayData()??[]\" [nzLoading]=\"!displayData()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\"\n [nzFrontPagination]=\"options.showPagination() && !options.useBackEndPaging()\" [nzTotal]=\"rowtotal()\"\n [nzPageSize]=\"options.pageSize()\" [nzShowSizeChanger]=\"options.showSizeChanger()\"\n [nzPageSizeOptions]=\"pageSizeOptions()\" [nzShowTotal]=\"options.showDataSize()?totalRange:null\" [nzScroll]=\"scroll()\"\n (nzCurrentPageDataChange)=\"currentPageDataChange()\" (nzPageIndexChange)=\"onPageChange()\"\n (nzPageSizeChange)=\"onPageChange()\" [(nzPageIndex)]=\"pageIndex\" [nzVirtualItemSize]=\"options.virtualItemSize()\"\n [nzVirtualForTrackBy]=\"trackByKeyField\">\n <thead>\n <tr>\n @if (options.showCheckbox()) {\n @if (!options.checkboxLinkageForExpand() && !options.singleCheck()) {\n <th nzLeft [nzChecked]=\"select.headerChecked()!='none'\"\n [nzIndeterminate]=\"select.headerChecked()=='indeterminate'\"\n (nzCheckedChange)=\"select.onAllChecked($event)\" nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()-10+'px'\">\n </th>\n }@else {\n <th nzLeft [nzWidth]=\"leaderFieldWidth()-10+'px'\"></th>\n }\n }\n @if (options.showExpand()) {\n <th nzLeft nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()-15+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()+'px'\">序号</th>\n }\n @for (f of displayFields(); track f.field()) {\n <th [attr.data-field]=\"f.field()\" nz-resizable nzBounds=\"window\"\n [nzDisabled]=\"!options.showTableTitleSet() || !f.width()\"\n [nzWidth]=\"f.width() == null ?null:f.width()+'px'\" (nzResize)=\"tableSetter?.onResize(f,$event)\"\n [nzShowSort]=\"f.sortAble()\" [nzSortFn]=\"fieldsControlsMap()[f.field()]?.sortFn\"\n [nzSortOrder]=\"f.sortOrder()\" [nzSortPriority]=\"f.sortPriority()??false\"\n [nzShowFilter]=\"f.filterAble() && !options.useBackEndPaging()\"\n [nzFilters]=\"fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"filterChange(f.field(),$event)\" [nzFilterMultiple]=\"f.filterMultiple()\"\n [nzAlign]=\"f.align()\" [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\"\n (nzSortOrderChange)=\"sortChange(f.field(),$event)\">\n <span>\n {{f.title()}}\n @if(options.showTableTitleSet()){\n <nz-resize-handle [style.transform]=\"`translateX(${resizeHandleOffsetX(f)}px)`\" nzDirection=\"right\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n }\n </span>\n </th>\n }\n @if (rowActions().length)\n {\n <th nzRight nzAlign=\"center\" [nzWidth]=\"actionsFieldWidth()+'px'\" data-rowactions>操作</th>\n }\n </tr>\n </thead>\n <tbody>\n @if (!options.showPagination() && options.virtualScroll()) {\n <ng-template nz-virtual-scroll let-data let-i=\"index\">\n </ng-template>\n }@else {\n @for (trow of table.data; track $index;let i=$index) {\n @for (data of expand.getListForExpanded(trow); track $index) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"表格行\" [dataSources]=\"[{name:'row',type:'local',data:data}]\">\n @if (options.showCheckbox()) {\n <td nzLeft [nzChecked]=\"select.setOfCheckedId.has(data[options.keyField()])\"\n [nzIndeterminate]=\"select.setOfIndeterminateId.has(data[options.keyField()])\"\n [nzDisabled]=\"select.setOfDisabledId().has(data[options.keyField()])\"\n (nzCheckedChange)=\"select.onItemChecked(data, $event)\" nzAlign=\"center\"></td>\n }\n @if (options.showExpand()) {\n @if(options.expandMode() == \"tree\" && !expand.nodeMap().get(data[options.keyField()])?.children?.length){\n <td nzLeft></td>\n }@else{\n <td nzLeft [nzExpand]=\"expand.expandedSet.has(data[options.keyField()])\"\n (nzExpandChange)=\"expand.onExpandChange(data[options.keyField()],$event)\"></td>\n }\n }\n @if (options.showOrder()) {\n <td nzAlign=\"center\">{{(table.nzPageIndex-1) * table.nzPageSize + i+1}}</td>\n }\n @for (f of displayFields(); track f.field()) {\n @if (rowspan(f.field(),i)) {\n <td [attr.rowspan]=\"rowspan(f.field(),i)\" [nzLeft]=\"f.freezeMode()=='left'\" [attr.data-field]=\"f.field()\"\n [nzRight]=\"f.freezeMode()=='right'\" [nzAlign]=\"f.align()\">\n @if (f.child()) {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else {\n {{data[f.field()]}}\n }\n </td>\n }\n }\n @if (rowActions().length) {\n <td nzRight>\n <div nz-flex nzJustify=\"space-evenly\" data-rowactions>\n @for (a of rowActions(); track a.id) {\n <ng-container [axisDynamic]=\"a\"></ng-container>\n }\n </div>\n </td>\n }\n </tr>\n }\n @if (options.showExpand() && options.expandMode() == \"custom\") {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"表格行\" [dataSources]=\"[{name:'row',type:'local',data:trow}]\"\n [nzExpand]=\"expand.expandedSet.has(trow[options.keyField()])\" data-expandrow>\n <ng-container [axisDynamic]=\"options.expandRow()\"></ng-container>\n </tr>\n }\n <!-- @if (showSubTotal() && subTotalGroupField() && subTotalMap[i]) {\n <tr>\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n @if (options.showOrder()) {\n <td></td>\n }\n @for (f of displayFields(); track f.field()) {\n @if (f.groupLevel && f.groupLevel! == subTotalGroupField.groupLevel!) {\n <td nzAlign=\"right\" [nzLeft]=\"f.freezeMode=='left'\" [nzRight]=\"f.freezeMode=='right'\">\n <b>{{options.subTotalTitle() || \"小计\"}}</b>\n </td>\n }\n @if(!f.groupLevel || f.groupLevel! > subTotalGroupField.groupLevel!) {\n <td [nzLeft]=\"f.freezeMode=='left'\" [nzRight]=\"f.freezeMode=='right'\">\n @if (f.totalAble) {\n <div [class]=\"'td-box-'+(f.align || 'center')\">\n <b>\n @if (f.child()) {\n @if (f.injectBy() == \"data\") {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else{\n <ng-container [axisDynamic]=\"f.child()\" [ngModel]=\"subTotalMap[i][f.field]\"></ng-container>\n }\n }@else {\n {{subTotalMap[i][f.field]}}\n }\n </b>\n </div>\n }\n </td>\n }\n }\n <td *ngIf=\"rowActions?.length\" nzRight></td>\n </tr>\n } -->\n }\n }\n <!-- @if (showTotal && displayData?.length) {\n <tr class=\"total-row\">\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n <td nzAlign=\"right\" [nzLeft]=\"!options.showOrder() && displayFields[0].freezeMode=='left'\"\n [nzRight]=\"!options.showOrder() && displayFields[0].freezeMode=='right'\"><b>{{options.totalTitle() ||\n \"合计\"}}</b></td>\n @for (f of displayFields()|slice:(options.showOrder()?0:1); track f.field()) {\n <td [nzLeft]=\"f.freezeMode=='left'\" [nzRight]=\"f.freezeMode=='right'\">\n @if (f.totalAble()) {\n <div [class]=\"'td-box-'+(f.align || 'center')\">\n <b>\n @if (f.child()) {\n @if (f.injectBy() == \"data\") {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else{\n <ng-container [axisDynamic]=\"f.child()\" [ngModel]=\"totalMap[f.field]\"></ng-container>\n }\n }@else {\n {{totalMap[f.field]}}\n }\n </b>\n </div>\n }\n </td>\n }\n @if (rowActions()?.length) {\n <td nzRight></td>\n }\n </tr>\n } -->\n </tbody>\n <ng-template #totalRange let-range=\"range\" let-total>\n 共{{ total }}条数据,第{{ range[0] }}-{{ range[1] }}条\n </ng-template>\n</nz-table>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './table';\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAChC,IAAA,QAAQ,GAAG,MAAM,CAAC,EAAE,oDAAC;AACrB,IAAA,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC;AAC1B,IAAA,UAAU,GAAG,MAAM,CAAoB,QAAQ,sDAAC;AAChD,IAAA,eAAe,GAAG,MAAM,CAAC,EAAE,2DAAC;AAC5B,IAAA,iBAAiB,GAAG,MAAM,CAAC,KAAK,6DAAC;AACjC,IAAA,gBAAgB,GAAG,MAAM,CAAC,EAAE,4DAAC;AAC7B,IAAA,IAAI,GAAG,MAAM,CAAiC,QAAQ,gDAAC;AACvD,IAAA,SAAS,GAAG,MAAM,CAAC,IAAI,qDAAC;AACxB,IAAA,cAAc,GAAG,MAAM,CAAC,KAAK,0DAAC;AAC9B,IAAA,YAAY,GAAG,MAAM,CAAC,IAAI,wDAAC;AAC3B,IAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,oDAAC;AACxB,IAAA,aAAa,GAAG,MAAM,CAAC,KAAK,yDAAC;AAC7B,IAAA,KAAK,GAAG,MAAM,CAAqB,SAAS,iDAAC;AAC7C,IAAA,iBAAiB,GAAG,MAAM,CAAgB,IAAI,6DAAC;AAC/C,IAAA,YAAY,GAAG,MAAM,CAAC,KAAK,wDAAC;AAC5B,IAAA,WAAW,GAAG,MAAM,CAAC,KAAK,uDAAC;AAC3B,IAAA,wBAAwB,GAAG,MAAM,CAAC,KAAK,oEAAC;AACxC,IAAA,iBAAiB,GAAG,MAAM,CAAqB,SAAS,6DAAC;AACzD,IAAA,cAAc,GAAG,MA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AAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKvH,KAAK,EAAA,UAAA,EAAA,CAAA;kBAPjB,SAAS;+BACE,YAAY,EAAA,OAAA,EACb,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,CAAC,EAAA,eAAA,EAGlH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2tTAAA,EAAA,MAAA,EAAA,CAAA,0IAAA,CAAA,EAAA;+EAoD/C,WAAW,EAAA,CAAA;sBADV,SAAS;uBAAC,WAAW;;;AErExB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-table.mjs","sources":["../../../axis-components/table/table.options.ts","../../../axis-components/table/select.ts","../../../axis-components/table/expand.ts","../../../axis-components/table/table-setter/table-setter.ts","../../../axis-components/table/table-setter/table-setter.html","../../../axis-components/table/table.ts","../../../axis-components/table/table.html","../../../axis-components/table/ngx-axis-appforge-axis-components-table.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class TableOptions extends DataOptions {\n readonly keyField = signal(\"\");\n readonly showExpand = signal(false);\n readonly expandMode = signal<\"custom\" | \"tree\">(\"custom\");\n readonly treeChildrenFun = signal(\"\");\n readonly showTableTitleSet = signal(false);\n readonly tableSetCacheKey = signal(\"\");\n readonly size = signal<'middle' | 'small' | 'default'>(\"middle\");\n readonly showOrder = signal(true);\n readonly heightExpanded = signal(false);\n readonly showDataSize = signal(true);\n readonly bordered = signal(false);\n readonly outerBordered = signal(false);\n readonly width = signal<number | undefined>(undefined);\n readonly actionsFieldWidth = signal<number | null>(null);\n readonly showCheckbox = signal(false);\n readonly singleCheck = signal(false);\n readonly checkboxLinkageForExpand = signal(false);\n readonly disableCheckboxFn = signal<string | undefined>(undefined);\n readonly enableRowClick = signal(false);\n readonly defaultSelectFirstRow = signal(false);\n readonly showTotal = signal(false);\n readonly totalTitle = signal(\"合计\");\n readonly showSubTotal = signal(false);\n readonly subTotalTitle = signal(\"小计\");\n readonly subTotalGroupLevel = signal(1);\n readonly showPagination = signal(true);\n readonly virtualScroll = signal(false);\n readonly virtualItemSize = signal(32);\n readonly pageSize = signal(10);\n readonly showSizeChanger = signal(true);\n readonly pageSizeOptions = signal(\"10,20,50,100\");\n readonly useBackEndPaging = signal(false);\n readonly pageParamsDataSourceName = signal(\"pageParams\");\n readonly exportParamsDataSourceName = signal(\"exportParams\");\n readonly exportFileName = signal(\"数据导出\");\n readonly exportBookType = signal(\"xlsx\");\n readonly importLimitLength = signal<number | null>(null);\n readonly importStartLine = signal(2);\n readonly importTemplateFileName = signal(\"数据导入模版\");\n readonly importExampleData = signal<any>([]);\n readonly fields = signal<any[]>([]);\n readonly rowActions = signal<any[]>([]);\n readonly expandRow = signal<any>(undefined);\n}\n\nexport class TableFieldOptions {\n readonly inuse = signal(true);\n readonly field = signal(\"unknown\");\n readonly title = signal(\"未命名\");\n readonly export = signal(false);\n readonly exportFlowChild = signal(true);\n readonly exportFn = signal<string | undefined>(undefined);\n readonly import = signal(false);\n readonly importRequired = signal(false);\n readonly importCellType = signal<\"text\" | \"number\">(\"text\");\n readonly importHelp = signal<string | undefined>(undefined);\n readonly sortAble = signal(false);\n readonly sortOrder = signal<\"descend\" | \"ascend\" | null>(null);\n readonly sortPriority = signal<number | null>(null);\n readonly filterAble = signal(false);\n readonly filterMultiple = signal(false);\n readonly filterDisplayFn = signal(\"\");\n readonly width = signal<number | null>(null);\n readonly align = signal<'left' | 'right' | 'center'>(\"left\");\n readonly freezeMode = signal<'none' | 'left' | 'right'>(\"none\");\n readonly groupLevel = signal<number | null>(null);\n readonly totalAble = signal(false);\n readonly totalFn = signal<string | undefined>(undefined);\n readonly titleGroup = signal<string | undefined>(undefined);\n readonly child = signal<any>(undefined);\n}","import { computed, Signal, signal } from \"@angular/core\";\nimport { TableOptions } from \"./table.options\";\nimport { fn, ScopeDirective } from 'ngx-axis-appforge/core';\n\nexport class Select {\n\n constructor(private options: TableOptions, private displayData: Signal<any[] | null>, private scope: ScopeDirective | null, private onSelectedChange: () => void) { }\n\n readonly headerChecked = signal<\"checked\" | \"indeterminate\" | \"none\">(\"none\");\n setOfCheckedId = new Set();\n setOfIndeterminateId = new Set();\n setOfDisabledId = computed(() => this.buildDisabledId());\n\n private buildDisabledId(): Set<any> {\n if (this.options.disableCheckboxFn()) {\n const args = this.scope?.snapshotAll() ?? {};\n return new Set(this.displayData()?.filter(row => this.scope?.runFnWithSnapshot(this.options.disableCheckboxFn()!, Object.assign({}, args, { row })))\n .map(row => row[this.options.keyField()]));\n }\n return new Set<any>();\n }\n\n onAllChecked(checked: boolean) {\n this.displayData()?.filter(row => !this.setOfDisabledId().has(row[this.options.keyField()]))?.forEach(row => this.updateCheckedSet(row, checked));\n this.refreshCheckedStatus();\n }\n\n toggleChecked(row: any) {\n if (this.options.showCheckbox() && !this.setOfDisabledId().has(row[this.options.keyField()])) {\n this.onItemChecked(row, !this.setOfCheckedId.has(row[this.options.keyField()]));\n }\n }\n\n onItemChecked(row: any, checked: boolean): void {\n this.updateCheckedSet(row, checked);\n this.refreshCheckedStatus();\n }\n\n updateCheckedSet(row: any, checked: boolean): void {\n const key = row[this.options.keyField()];\n if (checked && !this.setOfCheckedId.has(key)) {\n if (this.options.singleCheck()) {\n this.setOfCheckedId.clear();\n }\n this.setOfCheckedId.add(key);\n } else if (!checked && this.setOfCheckedId.has(key)) {\n this.setOfCheckedId.delete(key);\n }\n }\n\n refreshCheckedStatus(): void {\n const listOfEnabledData = this.displayData()?.filter(row => !this.setOfDisabledId().has(row[this.options.keyField()])) ?? [];\n const checked = listOfEnabledData.length > 0 && listOfEnabledData.every(row => this.setOfCheckedId.has(row[this.options.keyField()]) && !this.setOfIndeterminateId.has(row[this.options.keyField()]));\n if (checked) {\n this.headerChecked.set(\"checked\");\n } else {\n const indeterminate = listOfEnabledData.some(row => this.setOfCheckedId.has(row[this.options.keyField()]) || this.setOfIndeterminateId.has(row[this.options.keyField()])) && !checked;\n this.headerChecked.set(indeterminate ? \"indeterminate\" : \"none\");\n }\n this.onSelectedChange?.();\n }\n\n getSelectedData(): any[] | undefined {\n return this.displayData()?.filter(row => this.setOfCheckedId.has(row[this.options.keyField()]));\n }\n}","import { fn, ScopeDirective } from \"ngx-axis-appforge/core\";\nimport { TableOptions } from \"./table.options\";\nimport { computed } from \"@angular/core\";\n\nexport class Expand {\n\n constructor(private options: TableOptions, private scope: ScopeDirective | null) {\n }\n\n readonly expandedSet = new Set();\n readonly nodeMap = computed(() => this.buildNodeMap());\n\n buildNodeMap(): Map<string, { level: number, node: any, children?: any[] }> {\n const nodeMap = new Map<string, any>();\n if (this.options.showExpand() && this.options.expandMode() == \"tree\") {\n this.options.data()?.forEach((row: any) => {\n this.buildNodeMapForRow(row, nodeMap);\n });\n }\n return nodeMap;\n }\n\n onExpandChange(key: any, checked: boolean): void {\n if (checked) {\n this.expandedSet.add(key);\n } else {\n this.expandedSet.delete(key);\n }\n }\n\n buildNodeMapForRow(row: any, nodeMap: Map<string, any>, parentLevel = 0) {\n const node: any = {\n level: parentLevel + 1,\n node: row,\n children: []\n };\n nodeMap.set(row[this.options.keyField()], node)\n if (this.options.showExpand() && this.options.expandMode() == \"tree\") {\n let children: any[];\n if (this.options.treeChildrenFun()) {\n children = this.scope?.runFnWithSnapshot(this.options.treeChildrenFun(), { row })\n } else {\n children = row.children;\n }\n if (children?.length) {\n node.children = children;\n children.forEach(child => {\n this.buildNodeMapForRow(child, nodeMap, node.level);\n });\n }\n }\n }\n\n getListForExpanded(row: any): any[] {\n const key = row[this.options.keyField()];\n let res = [row];\n if (this.options.showExpand() && this.options.expandMode() == \"tree\" && this.nodeMap().get(key)?.children?.length && this.expandedSet.has(key)) {\n res = res.concat(this.nodeMap().get(key)!.children)\n }\n return res;\n }\n}","import { ChangeDetectionStrategy, Component, effect, input, model, OnDestroy, output, signal } from '@angular/core';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzGridModule } from 'ng-zorro-antd/grid';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\nimport { CdkDrag, CdkDragDrop, CdkDropList, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\nimport { TableFieldOptions } from '../table.options';\nimport { NzResizeEvent } from 'ng-zorro-antd/resizable';\nimport { debounceTime, Subject, Subscription } from 'rxjs';\n\n\n@Component({\n selector: 'axis-table-setter',\n imports: [NzIconModule, NzButtonModule, NzModalModule, NzGridModule, CdkDrag, CdkDropList],\n templateUrl: './table-setter.html',\n styleUrl: './table-setter.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TableSetter implements OnDestroy {\n\n constructor() {\n effect(() => this.buildFixAndNotFixColumn());\n effect(() => this.onChange.emit(this.fix()));\n this.sub = this.saveCacheSubject.pipe(debounceTime(200)).subscribe(v => this.saveCache());\n }\n\n readonly fields = input.required<TableFieldOptions[]>();\n readonly cacheKey = input<string>();\n readonly onChange = output<TableFieldOptions[]>();\n\n readonly modalVisible = model(false);\n readonly fix = signal<TableFieldOptions[]>([]);\n readonly notFix = signal<TableFieldOptions[]>([]);\n\n saveCacheSubject = new Subject<void>();\n cache: { fix: string[], notFix: string[], widths: { [field: string]: number } } = { fix: [], notFix: [], widths: {} };\n sub?: Subscription;\n\n private buildFixAndNotFixColumn(): void {\n this.loadCache();\n if (this.cache) {\n const fieldMap = new Map<string, TableFieldOptions>();\n for (const f of this.fields()) {\n fieldMap.set(f.field(), f);\n if (this.cache.widths.hasOwnProperty(f.field())) {\n f.width.set(this.cache.widths[f.field()]);\n }\n }\n this.fix.set(this.cache.fix.filter(f => fieldMap.has(f)).map(f => fieldMap.get(f)!)\n .concat(this.fields().filter(f => !this.cache!.fix.includes(f.field()) && !this.cache!.notFix.includes(f.field()))));\n this.notFix.set(this.cache.notFix.filter(f => fieldMap.has(f)).map(f => fieldMap.get(f)!));\n } else {\n this.fix.set(this.fields());\n }\n }\n\n private loadCache() {\n if (this.cacheKey()) {\n const cacheStr = localStorage.getItem(this.cacheKey()!);\n if (cacheStr) {\n try {\n this.cache = JSON.parse(cacheStr);\n } catch (_) { }\n }\n }\n }\n\n private saveCache() {\n if (this.cacheKey()) {\n localStorage.setItem(this.cacheKey()!, JSON.stringify(this.cache));\n }\n }\n\n private updateFix(): void {\n this.fix.set([...this.fix()]);\n this.notFix.set([...this.notFix()]);\n if (this.cacheKey()) {\n this.cache.fix = this.fix().map(f => f.field());\n this.cache.notFix = this.notFix().map(f => f.field());\n this.saveCache();\n }\n }\n\n drop(event: CdkDragDrop<TableFieldOptions[], any, any>): void {\n if (event.previousContainer === event.container) {\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\n } else {\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\n }\n this.updateFix();\n }\n\n deleteCustom(index: number): void {\n transferArrayItem(this.fix(), this.notFix(), index, this.notFix().length);\n this.updateFix();\n }\n\n addCustom(index: number): void {\n transferArrayItem(this.notFix(), this.fix(), index, this.fix().length);\n this.updateFix();\n }\n\n onResize(field: TableFieldOptions, event: NzResizeEvent) {\n field.width.set(event.width ?? null);\n this.cache.widths[field.field()] = event.width!;\n this.saveCacheSubject.next();\n }\n\n resetDefault() {\n this.fix.set(this.fields());\n this.notFix.set([]);\n if (this.cacheKey()) {\n localStorage.removeItem(this.cacheKey()!);\n }\n }\n\n ngOnDestroy(): void {\n this.sub?.unsubscribe();\n this.saveCacheSubject.unsubscribe();\n }\n}","<a nz-button nzType=\"link\" nzSize=\"small\" (click)=\"modalVisible.set(true)\" style=\"margin: 2px;\">\n <nz-icon nzType=\"setting\" nzTheme=\"outline\" />\n</a>\n<nz-modal [(nzVisible)]=\"modalVisible\" nzTitle=\"表头设置\" nzDraggable [nzOkText]=\"null\" nzCancelText=\"关闭\"\n (nzOnCancel)=\"modalVisible.set(false)\">\n <ng-container *nzModalContent>\n <div nz-row [nzGutter]=\"24\">\n <div nz-col class=\"gutter-row\" [nzSpan]=\"12\">\n <div class=\"container\">\n <p>展示字段<a nz-button nzType=\"link\" (click)=\"resetDefault()\">恢复默认</a></p>\n <div cdkDropList #todoList=\"cdkDropList\" [cdkDropListData]=\"fix()\"\n [cdkDropListConnectedTo]=\"[doneList]\" class=\"list\" (cdkDropListDropped)=\"drop($event)\">\n @for (item of fix(); track item; let i = $index) {\n <div class=\"box\" cdkDrag>\n {{ item.title() }}\n <nz-icon nzType=\"minus-circle\" nzTheme=\"outline\" (click)=\"deleteCustom(i)\" />\n </div>\n }\n </div>\n </div>\n </div>\n <div nz-col class=\"gutter-row\" [nzSpan]=\"12\">\n <div class=\"container\">\n <p>隐藏字段</p>\n <div cdkDropList #doneList=\"cdkDropList\" [cdkDropListData]=\"notFix()\"\n [cdkDropListConnectedTo]=\"[todoList]\" class=\"list\" (cdkDropListDropped)=\"drop($event)\">\n @for (item of notFix(); track item; let i = $index) {\n <div class=\"box\" cdkDrag>\n {{ item.title() }}\n <nz-icon nzType=\"plus-circle\" nzTheme=\"outline\" (click)=\"addCustom(i)\" />\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n</nz-modal>","import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, model, signal, ViewChild } from '@angular/core';\nimport { TableFieldOptions, TableOptions } from './table.options';\nimport { Base, DynamicDirective, ScopeDirective } from 'ngx-axis-appforge/core';\nimport { NzTableFilterList, NzTableModule } from 'ng-zorro-antd/table';\nimport { FormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { Select } from './select';\nimport { Expand } from './expand';\nimport { TableSetter } from './table-setter/table-setter';\nimport { NzResizableModule } from 'ng-zorro-antd/resizable';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\n\n\n@Component({\n selector: 'axis-table',\n imports: [NzTableModule, ScopeDirective, DynamicDirective, FormsModule, CommonModule, TableSetter, NzResizableModule, NzFlexModule],\n templateUrl: './table.html',\n styleUrl: './table.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Table extends Base<TableOptions> {\n\n constructor(private elementRef: ElementRef) {\n super();\n effect(() => {\n this.fields().forEach((f, i) => {\n this.bindWithConfig(this.options.fields()[i], { options: f, tag: `bindField.${i}` });\n });\n });\n effect(() => {\n clearInterval(this.timer);\n this.refreshScoll();\n if (this.options.heightExpanded()) {\n this.timer = setInterval(() => {\n this.refreshScoll();\n }, 500);\n }\n });\n }\n\n override options: TableOptions = new TableOptions();\n\n readonly displayData = computed(() => this.buildDisplayData());\n select = new Select(this.options, this.displayData, this.getScope(), () => this.onSelectedChange());\n expand = new Expand(this.options, this.getScope());\n readonly pageSizeOptions = computed(() => this.options.pageSizeOptions().split(\",\").map(size => +size));\n readonly scroll = signal<{ x: string, y: string }>({ x: \"\", y: \"\" });\n readonly fields = computed(() => this.buildFields());\n readonly displayFields = computed(() => this.buildDisplayFields());\n readonly rowtotal = signal<number>(0);\n readonly pageIndex = model<number>(1);\n readonly fieldsControlsMap = computed(() => this.buildFieldControls());\n readonly filedsFilterItemsCache = new Map<string, Map<any, any>>();\n readonly rowActions = computed(() => this.actionsFieldWidth() > 0 ? this.options.rowActions() : []);\n readonly leaderFieldWidth = computed(() => this.buildLeaderFieldWidth());\n readonly actionsFieldWidth = computed(() => this.buildActionsFieldWidth());\n readonly fixFields = signal<TableFieldOptions[]>([]);\n timer?: number;\n\n resizeHandleOffsetX(field: TableFieldOptions): number {\n if (field.sortAble() && field.filterAble()) {\n return 42;\n } else if (field.sortAble()) {\n return 22;\n } else if (field.filterAble()) {\n return 28;\n }\n return 0;\n }\n\n @ViewChild(TableSetter)\n tableSetter?: TableSetter;\n\n trackByKeyField = (i: number, data: any): any => {\n return data[this.options.keyField()];\n }\n\n private buildDisplayData(): any[] | null {\n return this.options.data();\n }\n\n private buildFields(): TableFieldOptions[] {\n return this.options.fields().map(opt => new TableFieldOptions());\n }\n\n private buildDisplayFields(): TableFieldOptions[] {\n return (this.options.showTableTitleSet() ? this.fixFields() : this.fields()).filter(f => f.inuse());\n }\n\n private buildFieldControls(): { [field: string]: { sortFn?: any, filterItems?: NzTableFilterList, filterFn?: any } | undefined } {\n const res: { [field: string]: { sortFn?: any, filterItems?: NzTableFilterList, filterFn?: any } } = {};\n for (const field of this.displayFields()) {\n res[field.field()] = {};\n if (field.filterAble()) {\n if (!this.filedsFilterItemsCache.has(field.field())) {\n this.filedsFilterItemsCache.set(field.field(), new Map<any, any>());\n }\n const filterItemsCache = this.filedsFilterItemsCache.get(field.field())!;\n for (const row of this.displayData() ?? []) {\n const value = row[field.field()];\n if (!filterItemsCache.has(value)) {\n let text = value + \"\";\n if (field.filterDisplayFn()) {\n text = this.getScope()?.runFnWithSnapshot(field.filterDisplayFn(), { value: value, row: row });\n }\n filterItemsCache.set(value, { value, text })\n }\n }\n res[field.field()].filterItems = Array.from(filterItemsCache.values());\n res[field.field()].filterFn = (fd: any[] | any, row: any) => {\n if (fd instanceof Array) {\n return fd.includes(row[field.field()]);\n } else {\n return fd == row[field.field()];\n }\n };\n }\n if (field.sortAble()) {\n if (this.options.data()?.some((r: any) => r[field.field()] != undefined && typeof (r[field.field()]) == \"number\")) {\n res[field.field()].sortFn = (a: any, b: any) => a[field.field()] - b[field.field()];\n } else {\n res[field.field()].sortFn = (a: any, b: any) => {\n return ((a[field.field()] || \"\") + \"\").localeCompare(b[field.field()])\n };\n }\n }\n }\n return res;\n }\n\n private buildLeaderFieldWidth(): number {\n switch (this.options.size()) {\n case \"small\":\n return 45;\n case \"middle\":\n return 50;\n default:\n return 65;\n }\n }\n\n private buildActionsFieldWidth(): number {\n if (this.options.actionsFieldWidth() == 0 || this.options.rowActions().length == 0) {\n return 0;\n }\n return this.options.actionsFieldWidth() ?? this.options.rowActions().length * 45 + 16;\n }\n\n private refreshScoll() {\n let x = this.options.width() ?? 0;\n if (this.options.width() == undefined) {\n if (this.options.showCheckbox()) {\n x += this.leaderFieldWidth();\n }\n if (this.options.showExpand()) {\n x += this.leaderFieldWidth();\n }\n if (this.options.showOrder()) {\n x += this.leaderFieldWidth();\n }\n this.displayFields().forEach(f => {\n if (f.width()) {\n x += f.width()!;\n } else {\n x += 120;\n }\n });\n x += this.actionsFieldWidth();\n }\n let y = \"\";\n if (this.options.heightExpanded()) {\n const element = this.elementRef.nativeElement as HTMLElement;\n const table = element.querySelector(\"nz-table\");\n const head = element.querySelector(\"table[nz-table-content]>thead.ant-table-thead\");\n const headRect = head?.getBoundingClientRect();\n const innerTableRect = head?.parentElement?.parentElement?.parentElement?.getBoundingClientRect();\n const outterTableRect = table?.getBoundingClientRect();\n if (headRect) {\n // y = 视口高度(window.innerHeight) - 表头底部位置(headRect.bottom) - 表尾部高度(outterTableRect.bottom - innerTableRect.bottom)\n y = `${window.innerHeight - (headRect?.bottom ?? 0) - (outterTableRect?.bottom ?? 0) + (innerTableRect?.bottom ?? 0)}px`;\n }\n }\n this.scroll.set({ x: x + \"px\", y: y });\n }\n\n currentPageDataChange() { }\n\n onPageChange() {\n }\n\n filterChange(field: string, value: any) {\n for (const item of this.filedsFilterItemsCache.get(field)!.values()) {\n item.byDefault = value != null && (Array.isArray(value) ? value.includes(item.value) : item.value == value);\n }\n }\n sortChange(field: string, event: any) {\n\n }\n\n rowspan(field: string, index: number): number {\n return 1;\n }\n\n onSelectedChange() {\n if (this.hasEventHandler(\"onSelectedChange\")) {\n this.triggeEvents(\"onSelectedChange\", { selectedRows: this.select.getSelectedData() }).subscribe();\n }\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n clearInterval(this.timer);\n }\n}\n","@if (options.showTableTitleSet()) {\n<axis-table-setter [fields]=\"fields()\" [cacheKey]=\"options.tableSetCacheKey()\"\n (onChange)=\"fixFields.set($event)\"></axis-table-setter>\n}\n<nz-table #table [nzSize]=\"options.size()\" [nzData]=\"displayData()??[]\" [nzLoading]=\"!displayData()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\"\n [nzFrontPagination]=\"options.showPagination() && !options.useBackEndPaging()\" [nzTotal]=\"rowtotal()\"\n [nzPageSize]=\"options.pageSize()\" [nzShowSizeChanger]=\"options.showSizeChanger()\"\n [nzPageSizeOptions]=\"pageSizeOptions()\" [nzShowTotal]=\"options.showDataSize()?totalRange:null\" [nzScroll]=\"scroll()\"\n (nzCurrentPageDataChange)=\"currentPageDataChange()\" (nzPageIndexChange)=\"onPageChange()\"\n (nzPageSizeChange)=\"onPageChange()\" [(nzPageIndex)]=\"pageIndex\" [nzVirtualItemSize]=\"options.virtualItemSize()\"\n [nzVirtualForTrackBy]=\"trackByKeyField\">\n <thead>\n <tr>\n @if (options.showCheckbox()) {\n @if (!options.checkboxLinkageForExpand() && !options.singleCheck()) {\n <th nzLeft [nzChecked]=\"select.headerChecked()!='none'\"\n [nzIndeterminate]=\"select.headerChecked()=='indeterminate'\"\n (nzCheckedChange)=\"select.onAllChecked($event)\" nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()-10+'px'\">\n </th>\n }@else {\n <th nzLeft [nzWidth]=\"leaderFieldWidth()-10+'px'\"></th>\n }\n }\n @if (options.showExpand()) {\n <th nzLeft nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()-15+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()+'px'\">序号</th>\n }\n @for (f of displayFields(); track f.field()) {\n <th [attr.data-field]=\"f.field()\" nz-resizable nzBounds=\"window\"\n [nzDisabled]=\"!options.showTableTitleSet() || !f.width()\"\n [nzWidth]=\"f.width() == null ?null:f.width()+'px'\" (nzResize)=\"tableSetter?.onResize(f,$event)\"\n [nzShowSort]=\"f.sortAble()\" [nzSortFn]=\"fieldsControlsMap()[f.field()]?.sortFn\"\n [nzSortOrder]=\"f.sortOrder()\" [nzSortPriority]=\"f.sortPriority()??false\"\n [nzShowFilter]=\"f.filterAble() && !options.useBackEndPaging()\"\n [nzFilters]=\"fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"filterChange(f.field(),$event)\" [nzFilterMultiple]=\"f.filterMultiple()\"\n [nzAlign]=\"f.align()\" [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\"\n (nzSortOrderChange)=\"sortChange(f.field(),$event)\">\n <span>\n {{f.title()}}\n @if(options.showTableTitleSet()){\n <nz-resize-handle [style.transform]=\"`translateX(${resizeHandleOffsetX(f)}px)`\" nzDirection=\"right\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n }\n </span>\n </th>\n }\n @if (rowActions().length)\n {\n <th nzRight nzAlign=\"center\" [nzWidth]=\"actionsFieldWidth()+'px'\" data-rowactions>操作</th>\n }\n </tr>\n </thead>\n <tbody>\n @if (!options.showPagination() && options.virtualScroll()) {\n <ng-template nz-virtual-scroll let-data let-i=\"index\">\n </ng-template>\n }@else {\n @for (trow of table.data; track $index;let i=$index) {\n @for (data of expand.getListForExpanded(trow); track $index) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"表格行\" [dataSources]=\"[{name:'row',type:'local',data:data}]\">\n @if (options.showCheckbox()) {\n <td nzLeft [nzChecked]=\"select.setOfCheckedId.has(data[options.keyField()])\"\n [nzIndeterminate]=\"select.setOfIndeterminateId.has(data[options.keyField()])\"\n [nzDisabled]=\"select.setOfDisabledId().has(data[options.keyField()])\"\n (nzCheckedChange)=\"select.onItemChecked(data, $event)\" nzAlign=\"center\"></td>\n }\n @if (options.showExpand()) {\n @if(options.expandMode() == \"tree\" && !expand.nodeMap().get(data[options.keyField()])?.children?.length){\n <td nzLeft></td>\n }@else{\n <td nzLeft [nzExpand]=\"expand.expandedSet.has(data[options.keyField()])\"\n (nzExpandChange)=\"expand.onExpandChange(data[options.keyField()],$event)\"></td>\n }\n }\n @if (options.showOrder()) {\n <td nzAlign=\"center\">{{(table.nzPageIndex-1) * table.nzPageSize + i+1}}</td>\n }\n @for (f of displayFields(); track f.field()) {\n @if (rowspan(f.field(),i)) {\n <td [attr.rowspan]=\"rowspan(f.field(),i)\" [nzLeft]=\"f.freezeMode()=='left'\" [attr.data-field]=\"f.field()\"\n [nzRight]=\"f.freezeMode()=='right'\" [nzAlign]=\"f.align()\">\n @if (f.child()) {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else {\n {{data[f.field()]}}\n }\n </td>\n }\n }\n @if (rowActions().length) {\n <td nzRight>\n <div nz-flex nzJustify=\"space-evenly\" data-rowactions>\n @for (a of rowActions(); track a.id) {\n <ng-container [axisDynamic]=\"a\"></ng-container>\n }\n </div>\n </td>\n }\n </tr>\n }\n @if (options.showExpand() && options.expandMode() == \"custom\") {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"表格行\" [dataSources]=\"[{name:'row',type:'local',data:trow}]\"\n [nzExpand]=\"expand.expandedSet.has(trow[options.keyField()])\" data-expandrow>\n <ng-container [axisDynamic]=\"options.expandRow()\"></ng-container>\n </tr>\n }\n <!-- @if (showSubTotal() && subTotalGroupField() && subTotalMap[i]) {\n <tr>\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n @if (options.showOrder()) {\n <td></td>\n }\n @for (f of displayFields(); track f.field()) {\n @if (f.groupLevel && f.groupLevel! == subTotalGroupField.groupLevel!) {\n <td nzAlign=\"right\" [nzLeft]=\"f.freezeMode=='left'\" [nzRight]=\"f.freezeMode=='right'\">\n <b>{{options.subTotalTitle() || \"小计\"}}</b>\n </td>\n }\n @if(!f.groupLevel || f.groupLevel! > subTotalGroupField.groupLevel!) {\n <td [nzLeft]=\"f.freezeMode=='left'\" [nzRight]=\"f.freezeMode=='right'\">\n @if (f.totalAble) {\n <div [class]=\"'td-box-'+(f.align || 'center')\">\n <b>\n @if (f.child()) {\n @if (f.injectBy() == \"data\") {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else{\n <ng-container [axisDynamic]=\"f.child()\" [ngModel]=\"subTotalMap[i][f.field]\"></ng-container>\n }\n }@else {\n {{subTotalMap[i][f.field]}}\n }\n </b>\n </div>\n }\n </td>\n }\n }\n <td *ngIf=\"rowActions?.length\" nzRight></td>\n </tr>\n } -->\n }\n }\n <!-- @if (showTotal && displayData?.length) {\n <tr class=\"total-row\">\n @if (options.showCheckbox()) {\n <td nzLeft></td>\n }\n @if (options.showExpand()) {\n <td nzLeft></td>\n }\n <td nzAlign=\"right\" [nzLeft]=\"!options.showOrder() && displayFields[0].freezeMode=='left'\"\n [nzRight]=\"!options.showOrder() && displayFields[0].freezeMode=='right'\"><b>{{options.totalTitle() ||\n \"合计\"}}</b></td>\n @for (f of displayFields()|slice:(options.showOrder()?0:1); track f.field()) {\n <td [nzLeft]=\"f.freezeMode=='left'\" [nzRight]=\"f.freezeMode=='right'\">\n @if (f.totalAble()) {\n <div [class]=\"'td-box-'+(f.align || 'center')\">\n <b>\n @if (f.child()) {\n @if (f.injectBy() == \"data\") {\n <ng-container [axisDynamic]=\"f.child()\"></ng-container>\n }@else{\n <ng-container [axisDynamic]=\"f.child()\" [ngModel]=\"totalMap[f.field]\"></ng-container>\n }\n }@else {\n {{totalMap[f.field]}}\n }\n </b>\n </div>\n }\n </td>\n }\n @if (rowActions()?.length) {\n <td nzRight></td>\n }\n </tr>\n } -->\n </tbody>\n <ng-template #totalRange let-range=\"range\" let-total>\n 共{{ total }}条数据,第{{ range[0] }}-{{ range[1] }}条\n </ng-template>\n</nz-table>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './table';\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;AAChC,IAAA,QAAQ,GAAG,MAA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A,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,iBAAiB,qkBAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,WAAA,EAAA,SAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKvH,KAAK,EAAA,UAAA,EAAA,CAAA;kBAPjB,SAAS;+BACE,YAAY,EAAA,OAAA,EACb,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,CAAC,EAAA,eAAA,EAGlH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2tTAAA,EAAA,MAAA,EAAA,CAAA,0IAAA,CAAA,EAAA;+EAqD/C,WAAW,EAAA,CAAA;sBADV,SAAS;uBAAC,WAAW;;;AEtExB;;AAEG;;;;"}
|
|
@@ -66,23 +66,25 @@ class TreeSelector extends ValueAccess {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
super();
|
|
68
68
|
effect(() => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
let treeData = this.treeData();
|
|
70
|
+
untracked(() => {
|
|
71
|
+
if (this.options.defaultFirst()) {
|
|
72
|
+
let fullArray = [];
|
|
73
|
+
recursionArray(treeData, {
|
|
74
|
+
before: n => {
|
|
75
|
+
if (n.selectable) {
|
|
76
|
+
fullArray.push(n.data);
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return undefined;
|
|
76
80
|
}
|
|
77
|
-
|
|
81
|
+
});
|
|
82
|
+
const value = this.fullArrayToValue(fullArray);
|
|
83
|
+
if (value !== undefined) {
|
|
84
|
+
this.setInitValue(value);
|
|
78
85
|
}
|
|
79
|
-
});
|
|
80
|
-
const value = this.fullArrayToValue(fullArray);
|
|
81
|
-
if (value != null) {
|
|
82
|
-
this.setInitValue(value);
|
|
83
|
-
untracked(() => this.valueToComponentValue());
|
|
84
86
|
}
|
|
85
|
-
}
|
|
87
|
+
});
|
|
86
88
|
});
|
|
87
89
|
effect(() => {
|
|
88
90
|
if (this.treeNodeMap()) {
|
|
@@ -113,6 +115,10 @@ class TreeSelector extends ValueAccess {
|
|
|
113
115
|
changeOn = (option, level) => {
|
|
114
116
|
return option['selectable'];
|
|
115
117
|
};
|
|
118
|
+
setInitValue(value) {
|
|
119
|
+
super.setInitValue(value);
|
|
120
|
+
this.valueToComponentValue();
|
|
121
|
+
}
|
|
116
122
|
writeValue(value) {
|
|
117
123
|
super.writeValue(value);
|
|
118
124
|
this.valueToComponentValue();
|
|
@@ -174,7 +180,7 @@ class TreeSelector extends ValueAccess {
|
|
|
174
180
|
}
|
|
175
181
|
valueToComponentValue() {
|
|
176
182
|
let value = this.value();
|
|
177
|
-
if (value) {
|
|
183
|
+
if (value != null) {
|
|
178
184
|
if (!this.options.multiple()) {
|
|
179
185
|
value = [value];
|
|
180
186
|
}
|
|
@@ -294,11 +300,11 @@ class TreeSelector extends ValueAccess {
|
|
|
294
300
|
this.onChange?.(this.value());
|
|
295
301
|
}
|
|
296
302
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: TreeSelector, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
297
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: TreeSelector, isStandalone: true, selector: "axis-tree-selector", inputs: { searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null }, selectValue: { classPropertyName: "selectValue", publicName: "selectValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchValue: "searchValueChange", selectValue: "selectValueChange" }, viewQueries: [{ propertyName: "treeSelect", first: true, predicate: NzTreeSelectComponent, descendants: true }, { propertyName: "menu", first: true, predicate: NzDropdownMenuComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "@switch (options.type() ) {\n@case (\"tree\") {\n<div class=\"tree-box\">\n @if (options.title()) {\n <div class=\"title-container\">{{options.title()}}</div>\n }\n @if (options.showSearch()) {\n <div class=\"search-inp\">\n <input type=\"text\" nz-input placeholder=\"\u641C\u7D22\" [(ngModel)]=\"searchValue\" nzVariant=\"borderless\" nzSize=\"small\" />\n </div>\n }\n <div class=\"tree-body\">\n <nz-tree [nzSearchValue]=\"searchValue()??''\" [nzTreeTemplate]=\"optionItem\"\n [nzHideUnMatched]=\"options.hideUnMatched()\" [nzData]=\"treeData()\" nzBlockNode\n [nzSelectedKeys]=\"selectedKeys()\" [nzMultiple]=\"options.multiple()\" [nzShowLine]=\"options.showLine()\"\n (nzClick)=\"nodeClick($event)\" (nzContextMenu)=\"onContextMenu($event)\">\n </nz-tree>\n </div>\n</div>\n<nz-dropdown-menu>\n <ul nz-menu>\n @for (m of menus(); track $index) {\n @if (m.inuse()) {\n <li nz-menu-item [nzDisabled]=\"m.disabled()\" [nzDanger]=\"m.danger()\" (click)=\"menuClick(m)\">\n @if (m.icon()) {\n <ng-container [axisDynamic]=\"m.icon()\"></ng-container>\n }\n {{m.title()}}\n </li>\n }\n }\n </ul>\n</nz-dropdown-menu>\n}\n@case (\"input-tree\") {\n<nz-tree-select style=\"width: 100%;\" [nzNodes]=\"treeData()\" [nzAllowClear]=\"options.allowClear()\"\n [nzSize]=\"options.size()\" [nzVariant]=\"options.variant()\" [nzShowSearch]=\"options.showSearch()\"\n [nzShowLine]=\"options.showLine()\" [nzPlaceHolder]=\"options.placeHolder()\" [nzTreeTemplate]=\"optionItem\"\n [nzCheckable]=\"options.multiple()\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzHideUnMatched]=\"options.hideUnMatched()\"\n [nzDisabled]=\"options.disabled()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onInputTreeChange()\"></nz-tree-select>\n}\n@case (\"cascader\"){\n<nz-cascader style=\"width: 100%;\" [nzOptions]=\"treeData()\" [(ngModel)]=\"selectValue\"\n (ngModelChange)=\"onCascaderChange($event)\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzAllowClear]=\"options.allowClear()\" [nzChangeOn]=\"changeOn\"\n [nzDisabled]=\"options.disabled()\" nzLabelProperty=\"title\" [nzPlaceHolder]=\"options.placeHolder()\"\n [nzShowSearch]=\"options.showSearch()\" [nzSize]=\"options.size()\" nzValueProperty=\"key\"\n [nzVariant]=\"options.variant()\" [nzExpandTrigger]=\"options.expandTrigger()\"\n [nzOptionRender]=\"optionItem\"></nz-cascader>\n}\n}\n<ng-template #optionItem let-option>\n <div class=\"node-item\" nz-flex nzGap=\"4px\">\n @if (option.icon) {\n <ng-container [axisDynamic]=\"option.icon\"></ng-container>\n }\n <span [innerHTML]=\"option.title | nzHighlight: searchValue()??'' : 'i' : 'highlight'\"></span>\n @if (options.type() != 'cascader' && option.children.length) {\n <a class=\"expand-button\" nz-button nzType=\"text\" nzSize=\"small\" nzShape=\"circle\"\n (click)=\"$event.stopPropagation(); expand(option,!hasExpanded(option))\">\n <nz-icon [nzType]=\"hasExpanded(option)?'shrink':'arrows-alt'\"></nz-icon>\n </a>\n }\n </div>\n</ng-template>", styles: [":host{display:block;width:100%}.title-container{padding:20px;border-bottom:.5px solid rgba(128,128,128,.3);font-weight:500;font-size:16px}::ng-deep .highlight{color:#f50}.tree-box{height:100%;display:flex;flex-direction:column}.tree-body{flex:1;overflow:auto}.expand-button{opacity:0}.node-item{width:100%}.node-item:hover .expand-button{opacity:1}.node-item span{flex:1;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i2.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i3.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i3.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i6.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i7.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i8.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i9.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTreeSelectModule }, { kind: "component", type: i10.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzVariant", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckboxChange"], exportAs: ["nzTreeSelect"] }, { kind: "ngmodule", type: NzCascaderModule }, { kind: "component", type: i11.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelProperty", "nzLabelRender", "nzVariant", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseLeaveDelay", "nzMouseEnterDelay", "nzStatus", "nzMultiple", "nzMaxTagCount", "nzPlacement", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzDisplayWith", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzRemoved", "nzClear"], exportAs: ["nzCascader"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "pipe", type: NzHighlightPipe, name: "nzHighlight" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
303
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: TreeSelector, isStandalone: true, selector: "axis-tree-selector", inputs: { searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null }, selectValue: { classPropertyName: "selectValue", publicName: "selectValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchValue: "searchValueChange", selectValue: "selectValueChange" }, viewQueries: [{ propertyName: "treeSelect", first: true, predicate: NzTreeSelectComponent, descendants: true }, { propertyName: "menu", first: true, predicate: NzDropdownMenuComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "@switch (options.type() ) {\n@case (\"tree\") {\n<div class=\"tree-box\">\n @if (options.title()) {\n <div class=\"title-container\">{{options.title()}}</div>\n }\n @if (options.showSearch()) {\n <div class=\"search-inp\">\n <input type=\"text\" nz-input placeholder=\"\u641C\u7D22\" [(ngModel)]=\"searchValue\" nzVariant=\"borderless\" nzSize=\"small\" />\n </div>\n }\n <div class=\"tree-body\">\n {{selectedKeys()}}\n <nz-tree [nzSearchValue]=\"searchValue()??''\" [nzTreeTemplate]=\"optionItem\"\n [nzHideUnMatched]=\"options.hideUnMatched()\" [nzData]=\"treeData()\" nzBlockNode\n [nzSelectedKeys]=\"selectedKeys()\" [nzMultiple]=\"options.multiple()\" [nzShowLine]=\"options.showLine()\"\n (nzClick)=\"nodeClick($event)\" (nzContextMenu)=\"onContextMenu($event)\">\n </nz-tree>\n </div>\n</div>\n<nz-dropdown-menu>\n <ul nz-menu>\n @for (m of menus(); track $index) {\n @if (m.inuse()) {\n <li nz-menu-item [nzDisabled]=\"m.disabled()\" [nzDanger]=\"m.danger()\" (click)=\"menuClick(m)\">\n @if (m.icon()) {\n <ng-container [axisDynamic]=\"m.icon()\"></ng-container>\n }\n {{m.title()}}\n </li>\n }\n }\n </ul>\n</nz-dropdown-menu>\n}\n@case (\"input-tree\") {\n<nz-tree-select style=\"width: 100%;\" [nzNodes]=\"treeData()\" [nzAllowClear]=\"options.allowClear()\"\n [nzSize]=\"options.size()\" [nzVariant]=\"options.variant()\" [nzShowSearch]=\"options.showSearch()\"\n [nzShowLine]=\"options.showLine()\" [nzPlaceHolder]=\"options.placeHolder()\" [nzTreeTemplate]=\"optionItem\"\n [nzCheckable]=\"options.multiple()\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzHideUnMatched]=\"options.hideUnMatched()\"\n [nzDisabled]=\"options.disabled()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onInputTreeChange()\"></nz-tree-select>\n}\n@case (\"cascader\"){\n<nz-cascader style=\"width: 100%;\" [nzOptions]=\"treeData()\" [(ngModel)]=\"selectValue\"\n (ngModelChange)=\"onCascaderChange($event)\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzAllowClear]=\"options.allowClear()\" [nzChangeOn]=\"changeOn\"\n [nzDisabled]=\"options.disabled()\" nzLabelProperty=\"title\" [nzPlaceHolder]=\"options.placeHolder()\"\n [nzShowSearch]=\"options.showSearch()\" [nzSize]=\"options.size()\" nzValueProperty=\"key\"\n [nzVariant]=\"options.variant()\" [nzExpandTrigger]=\"options.expandTrigger()\"\n [nzOptionRender]=\"optionItem\"></nz-cascader>\n}\n}\n<ng-template #optionItem let-option>\n <div class=\"node-item\" nz-flex nzGap=\"4px\">\n @if (option.icon) {\n <ng-container [axisDynamic]=\"option.icon\"></ng-container>\n }\n <span [innerHTML]=\"option.title | nzHighlight: searchValue()??'' : 'i' : 'highlight'\"></span>\n @if (options.type() != 'cascader' && option.children.length) {\n <a class=\"expand-button\" nz-button nzType=\"text\" nzSize=\"small\" nzShape=\"circle\"\n (click)=\"$event.stopPropagation(); expand(option,!hasExpanded(option))\">\n <nz-icon [nzType]=\"hasExpanded(option)?'shrink':'arrows-alt'\"></nz-icon>\n </a>\n }\n </div>\n</ng-template>", styles: [":host{display:block;width:100%}.title-container{padding:20px;border-bottom:.5px solid rgba(128,128,128,.3);font-weight:500;font-size:16px}::ng-deep .highlight{color:#f50}.tree-box{height:100%;display:flex;flex-direction:column}.tree-body{flex:1;overflow:auto}.expand-button{opacity:0}.node-item{width:100%}.node-item:hover .expand-button{opacity:1}.node-item span{flex:1;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzVariant", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzTreeModule }, { kind: "component", type: i2.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckboxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i3.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i3.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i4.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i6.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i7.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i8.ɵNzTransitionPatchDirective, selector: "[nz-button], [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: NzFlexModule }, { kind: "directive", type: i9.NzFlexDirective, selector: "[nz-flex],nz-flex", inputs: ["nzVertical", "nzJustify", "nzAlign", "nzGap", "nzWrap", "nzFlex"], exportAs: ["nzFlex"] }, { kind: "ngmodule", type: NzTreeSelectModule }, { kind: "component", type: i10.NzTreeSelectComponent, selector: "nz-tree-select", inputs: ["nzId", "nzAllowClear", "nzShowExpand", "nzShowLine", "nzDropdownMatchSelectWidth", "nzCheckable", "nzHideUnMatched", "nzShowIcon", "nzShowSearch", "nzDisabled", "nzAsyncData", "nzMultiple", "nzDefaultExpandAll", "nzCheckStrictly", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzExpandedIcon", "nzNotFoundContent", "nzNodes", "nzOpen", "nzSize", "nzVariant", "nzPlaceHolder", "nzDropdownStyle", "nzDropdownClassName", "nzBackdrop", "nzStatus", "nzPlacement", "nzExpandedKeys", "nzDisplayWith", "nzMaxTagCount", "nzMaxTagPlaceholder", "nzTreeTemplate"], outputs: ["nzOpenChange", "nzCleared", "nzRemoved", "nzExpandChange", "nzTreeClick", "nzTreeCheckboxChange"], exportAs: ["nzTreeSelect"] }, { kind: "ngmodule", type: NzCascaderModule }, { kind: "component", type: i11.NzCascaderComponent, selector: "nz-cascader, [nz-cascader]", inputs: ["nzOptionRender", "nzShowInput", "nzShowArrow", "nzAllowClear", "nzAutoFocus", "nzChangeOnSelect", "nzDisabled", "nzColumnClassName", "nzExpandTrigger", "nzValueProperty", "nzLabelProperty", "nzLabelRender", "nzVariant", "nzNotFoundContent", "nzSize", "nzBackdrop", "nzShowSearch", "nzPlaceHolder", "nzMenuClassName", "nzMenuStyle", "nzMouseLeaveDelay", "nzMouseEnterDelay", "nzStatus", "nzMultiple", "nzMaxTagCount", "nzPlacement", "nzTriggerAction", "nzChangeOn", "nzLoadData", "nzDisplayWith", "nzSuffixIcon", "nzExpandIcon", "nzOptions"], outputs: ["nzVisibleChange", "nzSelectionChange", "nzRemoved", "nzClear"], exportAs: ["nzCascader"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "pipe", type: NzHighlightPipe, name: "nzHighlight" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
298
304
|
}
|
|
299
305
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: TreeSelector, decorators: [{
|
|
300
306
|
type: Component,
|
|
301
|
-
args: [{ selector: 'axis-tree-selector', imports: [NzInputModule, DynamicDirective, NzTreeModule, NzDropDownModule, FormsModule, NzHighlightPipe, NzIconModule, NzButtonModule, NzFlexModule, NzTreeSelectModule, NzCascaderModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@switch (options.type() ) {\n@case (\"tree\") {\n<div class=\"tree-box\">\n @if (options.title()) {\n <div class=\"title-container\">{{options.title()}}</div>\n }\n @if (options.showSearch()) {\n <div class=\"search-inp\">\n <input type=\"text\" nz-input placeholder=\"\u641C\u7D22\" [(ngModel)]=\"searchValue\" nzVariant=\"borderless\" nzSize=\"small\" />\n </div>\n }\n <div class=\"tree-body\">\n <nz-tree [nzSearchValue]=\"searchValue()??''\" [nzTreeTemplate]=\"optionItem\"\n [nzHideUnMatched]=\"options.hideUnMatched()\" [nzData]=\"treeData()\" nzBlockNode\n [nzSelectedKeys]=\"selectedKeys()\" [nzMultiple]=\"options.multiple()\" [nzShowLine]=\"options.showLine()\"\n (nzClick)=\"nodeClick($event)\" (nzContextMenu)=\"onContextMenu($event)\">\n </nz-tree>\n </div>\n</div>\n<nz-dropdown-menu>\n <ul nz-menu>\n @for (m of menus(); track $index) {\n @if (m.inuse()) {\n <li nz-menu-item [nzDisabled]=\"m.disabled()\" [nzDanger]=\"m.danger()\" (click)=\"menuClick(m)\">\n @if (m.icon()) {\n <ng-container [axisDynamic]=\"m.icon()\"></ng-container>\n }\n {{m.title()}}\n </li>\n }\n }\n </ul>\n</nz-dropdown-menu>\n}\n@case (\"input-tree\") {\n<nz-tree-select style=\"width: 100%;\" [nzNodes]=\"treeData()\" [nzAllowClear]=\"options.allowClear()\"\n [nzSize]=\"options.size()\" [nzVariant]=\"options.variant()\" [nzShowSearch]=\"options.showSearch()\"\n [nzShowLine]=\"options.showLine()\" [nzPlaceHolder]=\"options.placeHolder()\" [nzTreeTemplate]=\"optionItem\"\n [nzCheckable]=\"options.multiple()\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzHideUnMatched]=\"options.hideUnMatched()\"\n [nzDisabled]=\"options.disabled()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onInputTreeChange()\"></nz-tree-select>\n}\n@case (\"cascader\"){\n<nz-cascader style=\"width: 100%;\" [nzOptions]=\"treeData()\" [(ngModel)]=\"selectValue\"\n (ngModelChange)=\"onCascaderChange($event)\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzAllowClear]=\"options.allowClear()\" [nzChangeOn]=\"changeOn\"\n [nzDisabled]=\"options.disabled()\" nzLabelProperty=\"title\" [nzPlaceHolder]=\"options.placeHolder()\"\n [nzShowSearch]=\"options.showSearch()\" [nzSize]=\"options.size()\" nzValueProperty=\"key\"\n [nzVariant]=\"options.variant()\" [nzExpandTrigger]=\"options.expandTrigger()\"\n [nzOptionRender]=\"optionItem\"></nz-cascader>\n}\n}\n<ng-template #optionItem let-option>\n <div class=\"node-item\" nz-flex nzGap=\"4px\">\n @if (option.icon) {\n <ng-container [axisDynamic]=\"option.icon\"></ng-container>\n }\n <span [innerHTML]=\"option.title | nzHighlight: searchValue()??'' : 'i' : 'highlight'\"></span>\n @if (options.type() != 'cascader' && option.children.length) {\n <a class=\"expand-button\" nz-button nzType=\"text\" nzSize=\"small\" nzShape=\"circle\"\n (click)=\"$event.stopPropagation(); expand(option,!hasExpanded(option))\">\n <nz-icon [nzType]=\"hasExpanded(option)?'shrink':'arrows-alt'\"></nz-icon>\n </a>\n }\n </div>\n</ng-template>", styles: [":host{display:block;width:100%}.title-container{padding:20px;border-bottom:.5px solid rgba(128,128,128,.3);font-weight:500;font-size:16px}::ng-deep .highlight{color:#f50}.tree-box{height:100%;display:flex;flex-direction:column}.tree-body{flex:1;overflow:auto}.expand-button{opacity:0}.node-item{width:100%}.node-item:hover .expand-button{opacity:1}.node-item span{flex:1;white-space:nowrap}\n"] }]
|
|
307
|
+
args: [{ selector: 'axis-tree-selector', imports: [NzInputModule, DynamicDirective, NzTreeModule, NzDropDownModule, FormsModule, NzHighlightPipe, NzIconModule, NzButtonModule, NzFlexModule, NzTreeSelectModule, NzCascaderModule, NzModalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@switch (options.type() ) {\n@case (\"tree\") {\n<div class=\"tree-box\">\n @if (options.title()) {\n <div class=\"title-container\">{{options.title()}}</div>\n }\n @if (options.showSearch()) {\n <div class=\"search-inp\">\n <input type=\"text\" nz-input placeholder=\"\u641C\u7D22\" [(ngModel)]=\"searchValue\" nzVariant=\"borderless\" nzSize=\"small\" />\n </div>\n }\n <div class=\"tree-body\">\n {{selectedKeys()}}\n <nz-tree [nzSearchValue]=\"searchValue()??''\" [nzTreeTemplate]=\"optionItem\"\n [nzHideUnMatched]=\"options.hideUnMatched()\" [nzData]=\"treeData()\" nzBlockNode\n [nzSelectedKeys]=\"selectedKeys()\" [nzMultiple]=\"options.multiple()\" [nzShowLine]=\"options.showLine()\"\n (nzClick)=\"nodeClick($event)\" (nzContextMenu)=\"onContextMenu($event)\">\n </nz-tree>\n </div>\n</div>\n<nz-dropdown-menu>\n <ul nz-menu>\n @for (m of menus(); track $index) {\n @if (m.inuse()) {\n <li nz-menu-item [nzDisabled]=\"m.disabled()\" [nzDanger]=\"m.danger()\" (click)=\"menuClick(m)\">\n @if (m.icon()) {\n <ng-container [axisDynamic]=\"m.icon()\"></ng-container>\n }\n {{m.title()}}\n </li>\n }\n }\n </ul>\n</nz-dropdown-menu>\n}\n@case (\"input-tree\") {\n<nz-tree-select style=\"width: 100%;\" [nzNodes]=\"treeData()\" [nzAllowClear]=\"options.allowClear()\"\n [nzSize]=\"options.size()\" [nzVariant]=\"options.variant()\" [nzShowSearch]=\"options.showSearch()\"\n [nzShowLine]=\"options.showLine()\" [nzPlaceHolder]=\"options.placeHolder()\" [nzTreeTemplate]=\"optionItem\"\n [nzCheckable]=\"options.multiple()\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzHideUnMatched]=\"options.hideUnMatched()\"\n [nzDisabled]=\"options.disabled()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onInputTreeChange()\"></nz-tree-select>\n}\n@case (\"cascader\"){\n<nz-cascader style=\"width: 100%;\" [nzOptions]=\"treeData()\" [(ngModel)]=\"selectValue\"\n (ngModelChange)=\"onCascaderChange($event)\" [nzMultiple]=\"options.multiple()\"\n [nzMaxTagCount]=\"options.maxSelectCount()??9999999\" [nzAllowClear]=\"options.allowClear()\" [nzChangeOn]=\"changeOn\"\n [nzDisabled]=\"options.disabled()\" nzLabelProperty=\"title\" [nzPlaceHolder]=\"options.placeHolder()\"\n [nzShowSearch]=\"options.showSearch()\" [nzSize]=\"options.size()\" nzValueProperty=\"key\"\n [nzVariant]=\"options.variant()\" [nzExpandTrigger]=\"options.expandTrigger()\"\n [nzOptionRender]=\"optionItem\"></nz-cascader>\n}\n}\n<ng-template #optionItem let-option>\n <div class=\"node-item\" nz-flex nzGap=\"4px\">\n @if (option.icon) {\n <ng-container [axisDynamic]=\"option.icon\"></ng-container>\n }\n <span [innerHTML]=\"option.title | nzHighlight: searchValue()??'' : 'i' : 'highlight'\"></span>\n @if (options.type() != 'cascader' && option.children.length) {\n <a class=\"expand-button\" nz-button nzType=\"text\" nzSize=\"small\" nzShape=\"circle\"\n (click)=\"$event.stopPropagation(); expand(option,!hasExpanded(option))\">\n <nz-icon [nzType]=\"hasExpanded(option)?'shrink':'arrows-alt'\"></nz-icon>\n </a>\n }\n </div>\n</ng-template>", styles: [":host{display:block;width:100%}.title-container{padding:20px;border-bottom:.5px solid rgba(128,128,128,.3);font-weight:500;font-size:16px}::ng-deep .highlight{color:#f50}.tree-box{height:100%;display:flex;flex-direction:column}.tree-body{flex:1;overflow:auto}.expand-button{opacity:0}.node-item{width:100%}.node-item:hover .expand-button{opacity:1}.node-item span{flex:1;white-space:nowrap}\n"] }]
|
|
302
308
|
}], ctorParameters: () => [], propDecorators: { treeSelect: [{
|
|
303
309
|
type: ViewChild,
|
|
304
310
|
args: [NzTreeSelectComponent]
|