ngx-axis-appforge 0.0.41 → 0.0.42

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.
@@ -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 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,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;AAC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KvH,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;;;;"}
1
+ {"version":3,"file":"ngx-axis-appforge-axis-components-table.mjs","sources":["../../../axis-components/table/table.options.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 { BaseTableFieldOptions, BaseTableOptions, DataOptions, ExpandableTableOptions, SelectableTableOptions } from \"ngx-axis-appforge/core\";\n\nexport class TableOptions extends DataOptions implements BaseTableOptions, SelectableTableOptions, ExpandableTableOptions {\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 implements BaseTableFieldOptions {\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 { 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, TableFieldDisplayService, TableService, SelectService, ExpandService } from 'ngx-axis-appforge/core';\nimport { NzTableModule } from 'ng-zorro-antd/table';\nimport { FormsModule } from '@angular/forms';\nimport { TableSetter } from './table-setter/table-setter';\nimport { NzResizableModule } from 'ng-zorro-antd/resizable';\nimport { NzFlexModule } from 'ng-zorro-antd/flex';\nimport { DatePipe, DecimalPipe, PercentPipe } from '@angular/common';\n\n\n@Component({\n selector: 'axis-table',\n imports: [NzTableModule, ScopeDirective, DynamicDirective, FormsModule, TableSetter, NzResizableModule, NzFlexModule],\n templateUrl: './table.html',\n styleUrl: './table.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [DatePipe, DecimalPipe, PercentPipe, TableFieldDisplayService, TableService, SelectService, ExpandService]\n})\nexport class Table extends Base<TableOptions> {\n\n constructor(private elementRef: ElementRef, public tableSvc: TableService<TableOptions, TableFieldOptions>, public select: SelectService, public expand: ExpandService) {\n super();\n effect(() => {\n this.tableSvc.init({ data: this.options.data, options: this.options, fields: this.fields });\n this.select.init({ options: this.options, keyField: this.options.keyField(), data: this.options.data, onSelectedChange: () => this.onSelectedChange() })\n this.expand.init({ options: this.options, keyField: this.options.keyField(), data: this.options.data });\n });\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 scroll = signal<{ x: string, y: string }>({ x: \"\", y: \"\" });\n readonly fields = computed(() => this.buildFields());\n readonly rowtotal = signal<number>(0);\n readonly pageIndex = model<number>(1);\n readonly rowActions = computed(() => this.actionsFieldWidth() > 0 ? this.options.rowActions() : []);\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 buildFields(): TableFieldOptions[] {\n return this.options.fields().map(opt => new TableFieldOptions());\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.tableSvc.leaderFieldWidth();\n }\n if (this.options.showExpand()) {\n x += this.tableSvc.leaderFieldWidth();\n }\n if (this.options.showOrder()) {\n x += this.tableSvc.leaderFieldWidth();\n }\n this.tableSvc.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 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]=\"options.data()??[]\" [nzLoading]=\"!options.data()\"\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]=\"tableSvc.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]=\"tableSvc.leaderFieldWidth()-10+'px'\">\n </th>\n }@else {\n <th nzLeft [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\"></th>\n }\n }\n @if (options.showExpand()) {\n <th nzLeft nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()-15+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()+'px'\">序号</th>\n }\n @for (f of tableSvc.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]=\"tableSvc.fieldsControlsMap()[f.field()]?.sortFn\"\n [nzSortOrder]=\"f.sortOrder()\" [nzSortPriority]=\"f.sortPriority()??false\"\n [nzShowFilter]=\"f.filterAble() && !options.useBackEndPaging()\"\n [nzFilters]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"tableSvc.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 tableSvc.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":["i1","i4"],"mappings":";;;;;;;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G,KAAK,EAAA,UAAA,EAAA,CAAA;kBARjB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,OAAA,EACb,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,CAAC,EAAA,eAAA,EAGpG,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,g0TAAA,EAAA,MAAA,EAAA,CAAA,0IAAA,CAAA,EAAA;wKAkDrH,WAAW,EAAA,CAAA;sBADV,SAAS;uBAAC,WAAW;;;AElExB;;AAEG;;;;"}
@@ -1,16 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { signal, effect, untracked, computed, model, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { ValueAccessOptions, ValueAccess, DynamicDirective, ScopeDirective } from 'ngx-axis-appforge/core';
4
- import * as i1 from '@angular/forms';
3
+ import * as i1 from 'ngx-axis-appforge/core';
4
+ import { ValueAccessOptions, ValueAccess, DynamicDirective, ScopeDirective, TableFieldDisplayService, TableService } from 'ngx-axis-appforge/core';
5
+ import * as i2 from '@angular/forms';
5
6
  import { FormsModule } from '@angular/forms';
6
- import * as i2 from 'ng-zorro-antd/transfer';
7
+ import * as i3 from 'ng-zorro-antd/transfer';
7
8
  import { NzTransferModule } from 'ng-zorro-antd/transfer';
8
- import * as i3 from 'ng-zorro-antd/table';
9
+ import * as i4 from 'ng-zorro-antd/table';
9
10
  import { NzTableModule } from 'ng-zorro-antd/table';
10
- import * as i4 from 'ng-zorro-antd/select';
11
+ import * as i5 from 'ng-zorro-antd/select';
11
12
  import { NzSelectModule } from 'ng-zorro-antd/select';
12
- import * as i5 from 'ng-zorro-antd/modal';
13
+ import * as i6 from 'ng-zorro-antd/modal';
13
14
  import { NzModalModule } from 'ng-zorro-antd/modal';
15
+ import { DatePipe, DecimalPipe, PercentPipe } from '@angular/common';
14
16
 
15
17
  class TransferOptions extends ValueAccessOptions {
16
18
  labelField = signal("title", ...(ngDevMode ? [{ debugName: "labelField" }] : []));
@@ -47,6 +49,30 @@ class TransferOptions extends ValueAccessOptions {
47
49
  header = signal(undefined, ...(ngDevMode ? [{ debugName: "header" }] : []));
48
50
  fields = signal([], ...(ngDevMode ? [{ debugName: "fields" }] : []));
49
51
  }
52
+ class TransferTableOptions {
53
+ constructor(transfer) {
54
+ this.size = transfer.tableSize;
55
+ this.showOrder = transfer.showOrder;
56
+ this.showDataSize = transfer.showDataSize;
57
+ this.bordered = transfer.bordered;
58
+ this.outerBordered = transfer.outerBordered;
59
+ this.width = transfer.tableWidth;
60
+ this.showPagination = transfer.showPagination;
61
+ this.pageSize = transfer.pageSize;
62
+ this.showSizeChanger = transfer.showSizeChanger;
63
+ this.pageSizeOptions = transfer.pageSizeOptions;
64
+ }
65
+ size;
66
+ showOrder;
67
+ showDataSize;
68
+ bordered;
69
+ outerBordered;
70
+ width;
71
+ showPagination;
72
+ pageSize;
73
+ showSizeChanger;
74
+ pageSizeOptions;
75
+ }
50
76
  class TransferTableFieldOptions {
51
77
  inuse = signal(true, ...(ngDevMode ? [{ debugName: "inuse" }] : []));
52
78
  field = signal("unknown", ...(ngDevMode ? [{ debugName: "field" }] : []));
@@ -64,8 +90,15 @@ class TransferTableFieldOptions {
64
90
  }
65
91
 
66
92
  class Transfer extends ValueAccess {
67
- constructor() {
93
+ tableSvc;
94
+ constructor(tableSvc) {
68
95
  super();
96
+ this.tableSvc = tableSvc;
97
+ effect(() => {
98
+ if (this.options.type() == "table") {
99
+ this.tableSvc.init({ data: this.data, options: new TransferTableOptions(this.options), fields: this.fields });
100
+ }
101
+ });
69
102
  effect(() => {
70
103
  if (this.options.type() == "table") {
71
104
  this.fields().forEach((f, i) => {
@@ -114,12 +147,7 @@ class Transfer extends ValueAccess {
114
147
  return arr[1] ?? arr[0];
115
148
  }, ...(ngDevMode ? [{ debugName: "itemsUnit" }] : []));
116
149
  fields = computed(() => this.buildFields(), ...(ngDevMode ? [{ debugName: "fields" }] : []));
117
- displayFields = computed(() => this.buildDisplayFields(), ...(ngDevMode ? [{ debugName: "displayFields" }] : []));
118
150
  scroll = computed(() => this.buildScroll(), ...(ngDevMode ? [{ debugName: "scroll" }] : []));
119
- pageSizeOptions = computed(() => this.options.pageSizeOptions().split(",").map(size => +size), ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : []));
120
- leaderFieldWidth = computed(() => this.buildLeaderFieldWidth(), ...(ngDevMode ? [{ debugName: "leaderFieldWidth" }] : []));
121
- fieldsControlsMap = computed(() => this.buildFieldControls(), ...(ngDevMode ? [{ debugName: "fieldsControlsMap" }] : []));
122
- filedsFilterItemsCache = new Map();
123
151
  writeValue(value) {
124
152
  super.writeValue(value);
125
153
  this.valueToTransferValue();
@@ -175,6 +203,11 @@ class Transfer extends ValueAccess {
175
203
  if (this.value() != undefined) {
176
204
  if (this.options.fullValue()) {
177
205
  this.selectValue.set(this.value().map((r) => r[this.options.valueField()]));
206
+ for (const v of this.value()) {
207
+ if (!this.dataMap.has(v[this.options.valueField()])) {
208
+ this.dataMap.set(v[this.options.valueField()], v);
209
+ }
210
+ }
178
211
  }
179
212
  else {
180
213
  this.selectValue.set(this.value());
@@ -211,26 +244,13 @@ class Transfer extends ValueAccess {
211
244
  buildFields() {
212
245
  return this.options.fields().map(opt => new TransferTableFieldOptions());
213
246
  }
214
- buildDisplayFields() {
215
- return this.fields().filter(f => f.inuse());
216
- }
217
- buildLeaderFieldWidth() {
218
- switch (this.options.tableSize()) {
219
- case "small":
220
- return 45;
221
- case "middle":
222
- return 50;
223
- default:
224
- return 65;
225
- }
226
- }
227
247
  buildScroll() {
228
248
  let x = this.options.tableWidth() ?? 0;
229
249
  if (this.options.tableWidth() == undefined) {
230
250
  if (this.options.showOrder()) {
231
- x += this.leaderFieldWidth();
251
+ x += this.tableSvc.leaderFieldWidth();
232
252
  }
233
- this.displayFields().forEach(f => {
253
+ this.tableSvc.displayFields().forEach(f => {
234
254
  if (f.width()) {
235
255
  x += f.width();
236
256
  }
@@ -241,60 +261,13 @@ class Transfer extends ValueAccess {
241
261
  }
242
262
  return { x: x + "px", y: "" };
243
263
  }
244
- filterChange(field, value) {
245
- for (const item of this.filedsFilterItemsCache.get(field).values()) {
246
- item.byDefault = value != null && (Array.isArray(value) ? value.includes(item.value) : item.value == value);
247
- }
248
- }
249
- buildFieldControls() {
250
- const res = {};
251
- for (const field of this.displayFields()) {
252
- res[field.field()] = {};
253
- if (field.filterAble()) {
254
- if (!this.filedsFilterItemsCache.has(field.field())) {
255
- this.filedsFilterItemsCache.set(field.field(), new Map());
256
- }
257
- const filterItemsCache = this.filedsFilterItemsCache.get(field.field());
258
- for (const row of this.data() ?? []) {
259
- const value = row[field.field()];
260
- if (!filterItemsCache.has(value)) {
261
- let text = value + "";
262
- if (field.filterDisplayFn()) {
263
- text = this.getScope()?.runFnWithSnapshot(field.filterDisplayFn(), { value: value, row: row });
264
- }
265
- filterItemsCache.set(value, { value, text });
266
- }
267
- }
268
- res[field.field()].filterItems = Array.from(filterItemsCache.values());
269
- res[field.field()].filterFn = (fd, row) => {
270
- if (fd instanceof Array) {
271
- return fd.includes(row[field.field()]);
272
- }
273
- else {
274
- return fd == row[field.field()];
275
- }
276
- };
277
- }
278
- if (field.sortAble()) {
279
- if (this.options.data()?.some((r) => r[field.field()] != undefined && typeof (r[field.field()]) == "number")) {
280
- res[field.field()].sortFn = (a, b) => a[field.field()] - b[field.field()];
281
- }
282
- else {
283
- res[field.field()].sortFn = (a, b) => {
284
- return ((a[field.field()] || "") + "").localeCompare(b[field.field()]);
285
- };
286
- }
287
- }
288
- }
289
- return res;
290
- }
291
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Transfer, deps: [], target: i0.ɵɵFactoryTarget.Component });
292
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: Transfer, isStandalone: true, selector: "axis-transfer", inputs: { selectValue: { classPropertyName: "selectValue", publicName: "selectValue", isSignal: true, isRequired: false, transformFunction: null }, transferValue: { classPropertyName: "transferValue", publicName: "transferValue", isSignal: true, isRequired: false, transformFunction: null }, modalVisible: { classPropertyName: "modalVisible", publicName: "modalVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectValue: "selectValueChange", transferValue: "transferValueChange", modalVisible: "modalVisibleChange" }, usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n{{displayValue()}}\n}@else {\n<nz-select nzMode=\"multiple\" [nzOptions]=\"selectOptions()\" [nzDisabled]=\"options.disabled()\"\n [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\" [nzAllowClear]=\"options.allowClear()\"\n [nzMaxTagCount]=\"options.maxTagCount()\" [nzPlaceHolder]=\"options.placeholder()\" [nzDropdownStyle]=\"{display:'none'}\"\n (click)=\"openModal()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onSelectChange($event)\"></nz-select>\n<nz-modal [(nzVisible)]=\"modalVisible\" [nzTitle]=\"options.modalTitle()\" nzWidth=\"fit-content\" nzDraggable\n (nzOnOk)=\"onModalOk()\" (nzOnCancel)=\"onModalCancel()\">\n <div *nzModalContent>\n <ng-container [axisDynamic]=\"options.header()\"></ng-container>\n <nz-transfer #transfer [nzDataSource]=\"transferData()\" [nzDisabled]=\"options.disabled()\" [nzTitles]=\"titles()\"\n [nzOperations]=\"operations()\" [nzItemUnit]=\"itemUnit()\" [nzItemsUnit]=\"itemsUnit()\"\n [nzShowSelectAll]=\"options.selectAll() && options.type() != 'table'\" [nzShowSearch]=\"options.showSearch()\"\n [nzSearchPlaceholder]=\"options.searchPlaceholder()\" [nzNotFoundContent]=\"options.notFoundContent()\"\n [nzOneWay]=\"options.oneWay() && options.type() != 'table'\"\n [nzRenderList]=\"options.type()=='table'? [tableList, tableList]:null\"\n (nzChange)=\"onTransferChange(transfer.rightDataSource)\">\n <ng-template #tableList let-items let-direction=\"direction\" let-stat=\"stat\" let-disabled=\"disabled\"\n let-onItemSelectAll=\"onItemSelectAll\" let-onItemSelect=\"onItemSelect\">\n <nz-table #table [nzSize]=\"options.tableSize()\" [nzData]=\"items\" [nzLoading]=\"!options.data()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\" [nzPageSize]=\"options.pageSize()\"\n [nzShowSizeChanger]=\"options.showSizeChanger()\" [nzPageSizeOptions]=\"pageSizeOptions()\"\n [nzShowTotal]=\"options.showDataSize()?totalRange:null\" [nzScroll]=\"scroll()\">\n <thead>\n <tr>\n @if(options.selectAll()){\n <th [nzDisabled]=\"disabled\" [nzChecked]=\"stat.checkAll\" [nzIndeterminate]=\"stat.checkHalf\"\n [nzWidth]=\"leaderFieldWidth()-10+'px'\" (nzCheckedChange)=\"onItemSelectAll($event)\"></th>\n }@else{\n <th [nzWidth]=\"leaderFieldWidth()-10+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()+'px'\">\u5E8F\u53F7</th>\n }\n @for (f of displayFields(); track f.field()) {\n <th [attr.data-field]=\"f.field()\" [nzWidth]=\"f.width() == null ?null:f.width()+'px'\"\n [nzShowSort]=\"f.sortAble()\" [nzSortFn]=\"fieldsControlsMap()[f.field()]?.sortFn\"\n [nzSortOrder]=\"f.sortOrder()\" [nzSortPriority]=\"f.sortPriority()??false\"\n [nzShowFilter]=\"f.filterAble()\"\n [nzFilters]=\"fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"filterChange(f.field(),$event)\"\n [nzFilterMultiple]=\"f.filterMultiple()\" [nzAlign]=\"f.align()\"\n [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\">\n <span>\n {{f.title()}}\n </span>\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @for (data of table.data; track data;let i=$index) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:data}]\" (click)=\"onItemSelect(data)\">\n <td [nzChecked]=\"!!data.checked\" [nzDisabled]=\"disabled || data.disabled\"\n (nzCheckedChange)=\"onItemSelect(data)\"></td>\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 <td [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 </tr>\n }\n </tbody>\n </nz-table>\n <ng-template #totalRange let-range=\"range\" let-total>\n \u5171{{ total }}\u6761\u6570\u636E\uFF0C\u7B2C{{ range[0] }}-{{ range[1] }}\u6761\n </ng-template>\n </ng-template>\n </nz-transfer>\n </div>\n</nz-modal>\n}", styles: [":host{display:block;width:100%}nz-select{width:100%}nz-transfer{width:100%;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzTransferModule }, { kind: "component", type: i2.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus", "nzOneWay"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i3.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i3.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i3.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i3.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i3.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i3.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i3.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i3.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i3.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "directive", type: i3.NzCellAlignDirective, selector: "th[nzAlign],td[nzAlign]", inputs: ["nzAlign"] }, { kind: "component", type: i3.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i4.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i5.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i5.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "directive", type: ScopeDirective, selector: "[axisScope]", inputs: ["axisScope", "scopeName", "isRoot", "dataSources"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
264
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Transfer, deps: [{ token: i1.TableService }], target: i0.ɵɵFactoryTarget.Component });
265
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: Transfer, isStandalone: true, selector: "axis-transfer", inputs: { selectValue: { classPropertyName: "selectValue", publicName: "selectValue", isSignal: true, isRequired: false, transformFunction: null }, transferValue: { classPropertyName: "transferValue", publicName: "transferValue", isSignal: true, isRequired: false, transformFunction: null }, modalVisible: { classPropertyName: "modalVisible", publicName: "modalVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectValue: "selectValueChange", transferValue: "transferValueChange", modalVisible: "modalVisibleChange" }, providers: [DatePipe, DecimalPipe, PercentPipe, TableFieldDisplayService, TableService], usesInheritance: true, ngImport: i0, template: "@if (options.readonly()) {\n{{displayValue()}}\n}@else {\n<nz-select nzMode=\"multiple\" [nzOptions]=\"selectOptions()\" [nzDisabled]=\"options.disabled()\"\n [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\" [nzAllowClear]=\"options.allowClear()\"\n [nzMaxTagCount]=\"options.maxTagCount()\" [nzPlaceHolder]=\"options.placeholder()\" [nzDropdownStyle]=\"{display:'none'}\"\n (click)=\"openModal()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onSelectChange($event)\"></nz-select>\n<nz-modal [(nzVisible)]=\"modalVisible\" [nzTitle]=\"options.modalTitle()\" nzWidth=\"fit-content\" nzDraggable\n (nzOnOk)=\"onModalOk()\" (nzOnCancel)=\"onModalCancel()\">\n <div *nzModalContent>\n <ng-container [axisDynamic]=\"options.header()\"></ng-container>\n <nz-transfer #transfer [nzDataSource]=\"transferData()\" [nzDisabled]=\"options.disabled()\" [nzTitles]=\"titles()\"\n [nzOperations]=\"operations()\" [nzItemUnit]=\"itemUnit()\" [nzItemsUnit]=\"itemsUnit()\"\n [nzShowSelectAll]=\"options.selectAll() && options.type() != 'table'\" [nzShowSearch]=\"options.showSearch()\"\n [nzSearchPlaceholder]=\"options.searchPlaceholder()\" [nzNotFoundContent]=\"options.notFoundContent()\"\n [nzOneWay]=\"options.oneWay() && options.type() != 'table'\"\n [nzRenderList]=\"options.type()=='table'? [tableList, tableList]:null\"\n (nzChange)=\"onTransferChange(transfer.rightDataSource)\">\n <ng-template #tableList let-items let-direction=\"direction\" let-stat=\"stat\" let-disabled=\"disabled\"\n let-onItemSelectAll=\"onItemSelectAll\" let-onItemSelect=\"onItemSelect\">\n <nz-table #table [nzSize]=\"options.tableSize()\" [nzData]=\"items\" [nzLoading]=\"!options.data()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\" [nzPageSize]=\"options.pageSize()\"\n [nzShowSizeChanger]=\"options.showSizeChanger()\" [nzPageSizeOptions]=\"tableSvc.pageSizeOptions()\"\n [nzShowTotal]=\"options.showDataSize()?totalRange:null\" [nzScroll]=\"scroll()\">\n <thead>\n <tr>\n @if(options.selectAll()){\n <th [nzDisabled]=\"disabled\" [nzChecked]=\"stat.checkAll\" [nzIndeterminate]=\"stat.checkHalf\"\n [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\" (nzCheckedChange)=\"onItemSelectAll($event)\"></th>\n }@else{\n <th [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()+'px'\">\u5E8F\u53F7</th>\n }\n @for (f of tableSvc.displayFields(); track f.field()) {\n <th [attr.data-field]=\"f.field()\" [nzWidth]=\"f.width() == null ?null:f.width()+'px'\"\n [nzShowSort]=\"f.sortAble()\" [nzSortFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.sortFn\"\n [nzSortOrder]=\"f.sortOrder()\" [nzSortPriority]=\"f.sortPriority()??false\"\n [nzShowFilter]=\"f.filterAble()\"\n [nzFilters]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"tableSvc.filterChange(f.field(),$event)\"\n [nzFilterMultiple]=\"f.filterMultiple()\" [nzAlign]=\"f.align()\"\n [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\">\n <span>\n {{f.title()}}\n </span>\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @for (data of table.data; track data;let i=$index) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:data}]\" (click)=\"onItemSelect(data)\">\n <td [nzChecked]=\"!!data.checked\" [nzDisabled]=\"disabled || data.disabled\"\n (nzCheckedChange)=\"onItemSelect(data)\"></td>\n @if (options.showOrder()) {\n <td nzAlign=\"center\">{{(table.nzPageIndex-1) * table.nzPageSize + i+1}}</td>\n }\n @for (f of tableSvc.displayFields(); track f.field()) {\n <td [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 </tr>\n }\n </tbody>\n </nz-table>\n <ng-template #totalRange let-range=\"range\" let-total>\n \u5171{{ total }}\u6761\u6570\u636E\uFF0C\u7B2C{{ range[0] }}-{{ range[1] }}\u6761\n </ng-template>\n </ng-template>\n </nz-transfer>\n </div>\n</nz-modal>\n}", styles: [":host{display:block;width:100%}nz-select{width:100%}nz-transfer{width:100%;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzTransferModule }, { kind: "component", type: i3.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus", "nzOneWay"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "ngmodule", type: NzTableModule }, { kind: "component", type: i4.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "component", type: i4.NzThAddOnComponent, selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { kind: "directive", type: i4.NzTableCellDirective, selector: "th:not(.nz-disable-th), td:not(.nz-disable-td)" }, { kind: "directive", type: i4.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i4.NzTdAddOnComponent, selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand", "nzExpandIcon"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { kind: "component", type: i4.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i4.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i4.NzTrDirective, selector: "tr:not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "directive", type: i4.NzCellFixedDirective, selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { kind: "directive", type: i4.NzCellAlignDirective, selector: "th[nzAlign],td[nzAlign]", inputs: ["nzAlign"] }, { kind: "component", type: i4.NzThSelectionComponent, selector: "th[nzSelections],th[nzChecked],th[nzShowCheckbox],th[nzShowRowSelection]", inputs: ["nzSelections", "nzChecked", "nzDisabled", "nzIndeterminate", "nzLabel", "nzShowCheckbox", "nzShowRowSelection"], outputs: ["nzCheckedChange"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i5.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzVariant", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus", "nzOnClear"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i6.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i6.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "directive", type: ScopeDirective, selector: "[axisScope]", inputs: ["axisScope", "scopeName", "isRoot", "dataSources"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
293
266
  }
294
267
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: Transfer, decorators: [{
295
268
  type: Component,
296
- args: [{ selector: 'axis-transfer', imports: [FormsModule, NzTransferModule, DynamicDirective, NzTableModule, NzSelectModule, NzModalModule, ScopeDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (options.readonly()) {\n{{displayValue()}}\n}@else {\n<nz-select nzMode=\"multiple\" [nzOptions]=\"selectOptions()\" [nzDisabled]=\"options.disabled()\"\n [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\" [nzAllowClear]=\"options.allowClear()\"\n [nzMaxTagCount]=\"options.maxTagCount()\" [nzPlaceHolder]=\"options.placeholder()\" [nzDropdownStyle]=\"{display:'none'}\"\n (click)=\"openModal()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onSelectChange($event)\"></nz-select>\n<nz-modal [(nzVisible)]=\"modalVisible\" [nzTitle]=\"options.modalTitle()\" nzWidth=\"fit-content\" nzDraggable\n (nzOnOk)=\"onModalOk()\" (nzOnCancel)=\"onModalCancel()\">\n <div *nzModalContent>\n <ng-container [axisDynamic]=\"options.header()\"></ng-container>\n <nz-transfer #transfer [nzDataSource]=\"transferData()\" [nzDisabled]=\"options.disabled()\" [nzTitles]=\"titles()\"\n [nzOperations]=\"operations()\" [nzItemUnit]=\"itemUnit()\" [nzItemsUnit]=\"itemsUnit()\"\n [nzShowSelectAll]=\"options.selectAll() && options.type() != 'table'\" [nzShowSearch]=\"options.showSearch()\"\n [nzSearchPlaceholder]=\"options.searchPlaceholder()\" [nzNotFoundContent]=\"options.notFoundContent()\"\n [nzOneWay]=\"options.oneWay() && options.type() != 'table'\"\n [nzRenderList]=\"options.type()=='table'? [tableList, tableList]:null\"\n (nzChange)=\"onTransferChange(transfer.rightDataSource)\">\n <ng-template #tableList let-items let-direction=\"direction\" let-stat=\"stat\" let-disabled=\"disabled\"\n let-onItemSelectAll=\"onItemSelectAll\" let-onItemSelect=\"onItemSelect\">\n <nz-table #table [nzSize]=\"options.tableSize()\" [nzData]=\"items\" [nzLoading]=\"!options.data()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\" [nzPageSize]=\"options.pageSize()\"\n [nzShowSizeChanger]=\"options.showSizeChanger()\" [nzPageSizeOptions]=\"pageSizeOptions()\"\n [nzShowTotal]=\"options.showDataSize()?totalRange:null\" [nzScroll]=\"scroll()\">\n <thead>\n <tr>\n @if(options.selectAll()){\n <th [nzDisabled]=\"disabled\" [nzChecked]=\"stat.checkAll\" [nzIndeterminate]=\"stat.checkHalf\"\n [nzWidth]=\"leaderFieldWidth()-10+'px'\" (nzCheckedChange)=\"onItemSelectAll($event)\"></th>\n }@else{\n <th [nzWidth]=\"leaderFieldWidth()-10+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"leaderFieldWidth()+'px'\">\u5E8F\u53F7</th>\n }\n @for (f of displayFields(); track f.field()) {\n <th [attr.data-field]=\"f.field()\" [nzWidth]=\"f.width() == null ?null:f.width()+'px'\"\n [nzShowSort]=\"f.sortAble()\" [nzSortFn]=\"fieldsControlsMap()[f.field()]?.sortFn\"\n [nzSortOrder]=\"f.sortOrder()\" [nzSortPriority]=\"f.sortPriority()??false\"\n [nzShowFilter]=\"f.filterAble()\"\n [nzFilters]=\"fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"filterChange(f.field(),$event)\"\n [nzFilterMultiple]=\"f.filterMultiple()\" [nzAlign]=\"f.align()\"\n [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\">\n <span>\n {{f.title()}}\n </span>\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @for (data of table.data; track data;let i=$index) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:data}]\" (click)=\"onItemSelect(data)\">\n <td [nzChecked]=\"!!data.checked\" [nzDisabled]=\"disabled || data.disabled\"\n (nzCheckedChange)=\"onItemSelect(data)\"></td>\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 <td [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 </tr>\n }\n </tbody>\n </nz-table>\n <ng-template #totalRange let-range=\"range\" let-total>\n \u5171{{ total }}\u6761\u6570\u636E\uFF0C\u7B2C{{ range[0] }}-{{ range[1] }}\u6761\n </ng-template>\n </ng-template>\n </nz-transfer>\n </div>\n</nz-modal>\n}", styles: [":host{display:block;width:100%}nz-select{width:100%}nz-transfer{width:100%;justify-content:center}\n"] }]
297
- }], ctorParameters: () => [] });
269
+ args: [{ selector: 'axis-transfer', imports: [FormsModule, NzTransferModule, DynamicDirective, NzTableModule, NzSelectModule, NzModalModule, ScopeDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [DatePipe, DecimalPipe, PercentPipe, TableFieldDisplayService, TableService], template: "@if (options.readonly()) {\n{{displayValue()}}\n}@else {\n<nz-select nzMode=\"multiple\" [nzOptions]=\"selectOptions()\" [nzDisabled]=\"options.disabled()\"\n [nzVariant]=\"options.variant()\" [nzSize]=\"options.size()\" [nzAllowClear]=\"options.allowClear()\"\n [nzMaxTagCount]=\"options.maxTagCount()\" [nzPlaceHolder]=\"options.placeholder()\" [nzDropdownStyle]=\"{display:'none'}\"\n (click)=\"openModal()\" [(ngModel)]=\"selectValue\" (ngModelChange)=\"onSelectChange($event)\"></nz-select>\n<nz-modal [(nzVisible)]=\"modalVisible\" [nzTitle]=\"options.modalTitle()\" nzWidth=\"fit-content\" nzDraggable\n (nzOnOk)=\"onModalOk()\" (nzOnCancel)=\"onModalCancel()\">\n <div *nzModalContent>\n <ng-container [axisDynamic]=\"options.header()\"></ng-container>\n <nz-transfer #transfer [nzDataSource]=\"transferData()\" [nzDisabled]=\"options.disabled()\" [nzTitles]=\"titles()\"\n [nzOperations]=\"operations()\" [nzItemUnit]=\"itemUnit()\" [nzItemsUnit]=\"itemsUnit()\"\n [nzShowSelectAll]=\"options.selectAll() && options.type() != 'table'\" [nzShowSearch]=\"options.showSearch()\"\n [nzSearchPlaceholder]=\"options.searchPlaceholder()\" [nzNotFoundContent]=\"options.notFoundContent()\"\n [nzOneWay]=\"options.oneWay() && options.type() != 'table'\"\n [nzRenderList]=\"options.type()=='table'? [tableList, tableList]:null\"\n (nzChange)=\"onTransferChange(transfer.rightDataSource)\">\n <ng-template #tableList let-items let-direction=\"direction\" let-stat=\"stat\" let-disabled=\"disabled\"\n let-onItemSelectAll=\"onItemSelectAll\" let-onItemSelect=\"onItemSelect\">\n <nz-table #table [nzSize]=\"options.tableSize()\" [nzData]=\"items\" [nzLoading]=\"!options.data()\"\n [nzBordered]=\"options.bordered()\" [nzOuterBordered]=\"options.outerBordered()\"\n [nzShowPagination]=\"options.showPagination()\" [nzPageSize]=\"options.pageSize()\"\n [nzShowSizeChanger]=\"options.showSizeChanger()\" [nzPageSizeOptions]=\"tableSvc.pageSizeOptions()\"\n [nzShowTotal]=\"options.showDataSize()?totalRange:null\" [nzScroll]=\"scroll()\">\n <thead>\n <tr>\n @if(options.selectAll()){\n <th [nzDisabled]=\"disabled\" [nzChecked]=\"stat.checkAll\" [nzIndeterminate]=\"stat.checkHalf\"\n [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\" (nzCheckedChange)=\"onItemSelectAll($event)\"></th>\n }@else{\n <th [nzWidth]=\"tableSvc.leaderFieldWidth()-10+'px'\"></th>\n }\n @if (options.showOrder()) {\n <th nzAlign=\"center\" [nzWidth]=\"tableSvc.leaderFieldWidth()+'px'\">\u5E8F\u53F7</th>\n }\n @for (f of tableSvc.displayFields(); track f.field()) {\n <th [attr.data-field]=\"f.field()\" [nzWidth]=\"f.width() == null ?null:f.width()+'px'\"\n [nzShowSort]=\"f.sortAble()\" [nzSortFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.sortFn\"\n [nzSortOrder]=\"f.sortOrder()\" [nzSortPriority]=\"f.sortPriority()??false\"\n [nzShowFilter]=\"f.filterAble()\"\n [nzFilters]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterItems ?? []\"\n [nzFilterFn]=\"tableSvc.fieldsControlsMap()[f.field()]?.filterFn\"\n (nzFilterChange)=\"tableSvc.filterChange(f.field(),$event)\"\n [nzFilterMultiple]=\"f.filterMultiple()\" [nzAlign]=\"f.align()\"\n [nzLeft]=\"f.freezeMode()=='left'\" [nzRight]=\"f.freezeMode()=='right'\">\n <span>\n {{f.title()}}\n </span>\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @for (data of table.data; track data;let i=$index) {\n <tr [axisScope]=\"options.id+'.row'\" scopeName=\"\u8868\u683C\u884C\"\n [dataSources]=\"[{name:'row',type:'local',data:data}]\" (click)=\"onItemSelect(data)\">\n <td [nzChecked]=\"!!data.checked\" [nzDisabled]=\"disabled || data.disabled\"\n (nzCheckedChange)=\"onItemSelect(data)\"></td>\n @if (options.showOrder()) {\n <td nzAlign=\"center\">{{(table.nzPageIndex-1) * table.nzPageSize + i+1}}</td>\n }\n @for (f of tableSvc.displayFields(); track f.field()) {\n <td [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 </tr>\n }\n </tbody>\n </nz-table>\n <ng-template #totalRange let-range=\"range\" let-total>\n \u5171{{ total }}\u6761\u6570\u636E\uFF0C\u7B2C{{ range[0] }}-{{ range[1] }}\u6761\n </ng-template>\n </ng-template>\n </nz-transfer>\n </div>\n</nz-modal>\n}", styles: [":host{display:block;width:100%}nz-select{width:100%}nz-transfer{width:100%;justify-content:center}\n"] }]
270
+ }], ctorParameters: () => [{ type: i1.TableService }] });
298
271
 
299
272
  /**
300
273
  * Generated bundle index. Do not edit.