cmat 0.0.113 → 0.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-color-picker.mjs +4 -3
- package/fesm2022/cmat-components-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly-quill-docx-exporter-BwwGX2Ie.mjs +294 -0
- package/fesm2022/cmat-components-custom-formly-quill-docx-exporter-BwwGX2Ie.mjs.map +1 -0
- package/fesm2022/cmat-components-custom-formly.mjs +3 -289
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-data-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs.map +1 -1
- package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
- package/fesm2022/cmat-components-qrcode.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -1
- package/fesm2022/cmat-lib-mock-api.mjs +4 -3
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
- package/fesm2022/cmat-quill-docx-exporter-D9Eo73Wq.mjs +294 -0
- package/fesm2022/cmat-quill-docx-exporter-D9Eo73Wq.mjs.map +1 -0
- package/fesm2022/cmat-reports.mjs +8 -5
- package/fesm2022/cmat-reports.mjs.map +1 -1
- package/fesm2022/cmat.mjs +5 -290
- package/fesm2022/cmat.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cmat-components-cascade.d.ts +2 -2
- package/types/cmat-components-chip-input.d.ts +1 -1
- package/types/cmat-components-color-picker.d.ts +5 -1
- package/types/cmat-components-custom-formly.d.ts +4 -14
- package/types/cmat-components-data-picker.d.ts +16 -16
- package/types/cmat-components-knob-input.d.ts +1 -1
- package/types/cmat-components-opt-input.d.ts +2 -2
- package/types/cmat-components-select-tree.d.ts +1 -1
- package/types/cmat-directives-equal-validator.d.ts +2 -2
- package/types/cmat-lib-mock-api.d.ts +4 -4
- package/types/cmat-reports.d.ts +27 -27
- package/types/cmat.d.ts +35 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmat-components-custom-formly.mjs","names":["i1","i1","i1","i1","i2","i3","FieldType","i1","FieldType","i1","FieldType","i1","i2","i3","FieldType","i1","FieldType","FieldType","i1","FieldType","i1","FieldType","i1","i2","i3","FieldType","i1","i2","FieldType","i1","i2","FieldType","i1","FieldType","observe","i1","i2","i3","i1","i2","i3","FieldType","i1","i2","FieldType","i1","FieldType","i1","i1","i2","i3","i4","i1","i2","i3","i4","i1","i2","i4","i5","FieldType","i1","i2","FieldType","i1","i2","i3","FieldType","i1","i2","FieldType","FieldType","i1","FieldType","i1","FieldType","i2"],"sources":["../../../projects/cmat/components/custom-formly/services/domain-data.service.ts","../../../projects/cmat/components/custom-formly/extension/addons.extension.ts","../../../projects/cmat/components/custom-formly/wrappers/addons/addons.component.ts","../../../projects/cmat/components/custom-formly/wrappers/card/card.component.ts","../../../projects/cmat/components/custom-formly/wrappers/card/card.component.html","../../../projects/cmat/components/custom-formly/wrappers/expansion/expansion.component.ts","../../../projects/cmat/components/custom-formly/wrappers/expansion/expansion.component.html","../../../projects/cmat/components/custom-formly/wrappers/panel/panel.component.ts","../../../projects/cmat/components/custom-formly/wrappers/panel/panel.component.html","../../../projects/cmat/components/custom-formly/wrappers/form-field/form-field.component.ts","../../../projects/cmat/components/custom-formly/wrappers/form-field/form-field.component.html","../../../projects/cmat/components/custom-formly/types/button/button.component.ts","../../../projects/cmat/components/custom-formly/types/button/button.component.html","../../../projects/cmat/components/custom-formly/types/cascade/cascade.component.ts","../../../projects/cmat/components/custom-formly/types/cascade/cascade.component.html","../../../projects/cmat/components/custom-formly/types/checklist/checklist.component.ts","../../../projects/cmat/components/custom-formly/types/checklist/checklist.component.html","../../../projects/cmat/components/custom-formly/types/chips/chips.component.ts","../../../projects/cmat/components/custom-formly/types/chips/chips.component.html","../../../projects/cmat/components/custom-formly/types/color-picker/color-picker.component.ts","../../../projects/cmat/components/custom-formly/types/color-picker/color-picker.component.html","../../../projects/cmat/components/custom-formly/types/data-picker/data-picker.component.ts","../../../projects/cmat/components/custom-formly/types/data-picker/data-picker.component.html","../../../projects/cmat/components/custom-formly/types/date-range/date-range.component.ts","../../../projects/cmat/components/custom-formly/types/date-range/date-range.component.html","../../../projects/cmat/components/custom-formly/types/datepicker/datepicker.component.ts","../../../projects/cmat/components/custom-formly/types/datepicker/datepicker.component.html","../../../projects/cmat/components/custom-formly/types/multicheckbox/multicheckbox.component.ts","../../../projects/cmat/components/custom-formly/types/multicheckbox/multicheckbox.component.html","../../../projects/cmat/components/custom-formly/types/number/number.component.ts","../../../projects/cmat/components/custom-formly/types/number/number.component.html","../../../projects/cmat/components/custom-formly/types/rating/rating.component.ts","../../../projects/cmat/components/custom-formly/types/rating/rating.component.html","../../../projects/cmat/components/custom-formly/types/radio/radio.component.ts","../../../projects/cmat/components/custom-formly/types/radio/radio.component.html","../../../projects/cmat/components/custom-formly/types/repeat/repeat.component.ts","../../../projects/cmat/components/custom-formly/types/repeat/repeat.component.html","../../../projects/cmat/components/custom-formly/types/select/select.component.ts","../../../projects/cmat/components/custom-formly/types/select/select.component.html","../../../projects/cmat/components/custom-formly/types/select-tree/select-tree.component.ts","../../../projects/cmat/components/custom-formly/types/select-tree/select-tree.component.html","../../../projects/cmat/components/custom-formly/types/select-table/select-table.component.ts","../../../projects/cmat/components/custom-formly/types/select-table/select-table.component.html","../../../projects/cmat/components/custom-formly/types/stepper/horizontal/stepper.component.ts","../../../projects/cmat/components/custom-formly/types/stepper/horizontal/stepper.component.html","../../../projects/cmat/components/custom-formly/types/stepper/vertical/stepper.component.ts","../../../projects/cmat/components/custom-formly/types/stepper/vertical/stepper.component.html","../../../projects/cmat/components/custom-formly/types/table/table.component.ts","../../../projects/cmat/components/custom-formly/types/table/table.component.html","../../../projects/cmat/components/custom-formly/types/tabs/tab.component.ts","../../../projects/cmat/components/custom-formly/types/tabs/tab.component.html","../../../projects/cmat/components/custom-formly/types/tags/tags.component.ts","../../../projects/cmat/components/custom-formly/types/tags/tags.component.html","../../../projects/cmat/components/custom-formly/types/textarea/textarea.component.ts","../../../projects/cmat/components/custom-formly/types/textarea/textarea.component.html","../../../projects/cmat/components/custom-formly/types/upload/upload.component.ts","../../../projects/cmat/components/custom-formly/types/upload/upload.component.html","../../../projects/cmat/components/custom-formly/types/quill/quill.component.ts","../../../projects/cmat/components/custom-formly/types/quill/quill.component.html","../../../projects/cmat/components/custom-formly/types/knob/knob.component.ts","../../../projects/cmat/components/custom-formly/types/knob/knob.component.html","../../../projects/cmat/components/custom-formly/types/slider/slider.component.ts","../../../projects/cmat/components/custom-formly/types/slider/slider.component.html"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { inject, Injectable, DestroyRef } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { catchError, of } from 'rxjs';\nimport { ApiItem, DomainConfig, OptionData } from '../types/common-types';\n\n/**\n * Domain 数据加载选项\n */\nexport interface LoadDomainDataOptions<T = OptionData> {\n /** 可选的数据转换函数,将原始 API 数据转换为组件需要的格式 */\n transform?: (rawData: unknown[]) => T[];\n /** 成功回调,接收转换后的数据 */\n onSuccess?: (data: T[]) => void;\n /** 错误回调,接收错误对象 */\n onError?: (error: unknown) => void;\n /** 组件名称,用于日志输出 */\n componentName?: string;\n}\n\n/**\n * Domain 数据加载服务\n * \n * 提供统一的远程数据加载能力,支持 GET/POST 请求、数据提取、转换和错误处理。\n * 所有使用 domain 配置的 Formly 组件都应使用此服务,避免重复实现。\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class DomainDataService {\n private readonly _http = inject(HttpClient);\n\n /**\n * 从 domain 配置加载数据\n * \n * @param domain - 数据域配置对象\n * @param destroyRef - Angular 销毁引用,用于自动取消订阅\n * @param options - 加载选项(转换函数、回调等)\n * \n * @example\n * ```typescript\n * // 简单用法\n * this.domainDataService.load(this.props.domain, this._destroyRef, {\n * onSuccess: (data) => this.urlData.set(data)\n * });\n * \n * // 自定义转换\n * this.domainDataService.load(this.props.domain, this._destroyRef, {\n * transform: (raw) => raw.map(item => ({ label: item.name, value: item.id })),\n * onSuccess: (data) => this.optionsData.set(data),\n * componentName: 'MyComponent'\n * });\n * ```\n */\n load<T = OptionData>(\n domain: DomainConfig | undefined,\n destroyRef: DestroyRef,\n options: LoadDomainDataOptions<T> = {}\n ): void {\n const { transform, onSuccess, onError, componentName = 'Unknown' } = options;\n\n // 验证 domain 配置\n if (!domain?.url || !domain?.key || !domain?.code || !domain?.value) {\n onSuccess?.([]);\n return;\n }\n\n const method = domain.method ?? 'GET';\n // eslint-disable-next-line @typescript-eslint/naming-convention\n const headers = { 'Content-Type': 'application/json' };\n\n let request$;\n\n if (method === 'POST') {\n // POST 请求处理\n const requestBodyType = domain.requestBodyType ?? 'json';\n let body: unknown;\n\n if (requestBodyType === 'json') {\n // JSON 格式\n try {\n body = domain.requestBody ? JSON.parse(domain.requestBody) : {};\n } catch (e) {\n console.error(`[${componentName}] Invalid JSON request body:`, e);\n onSuccess?.([]);\n return;\n }\n } else {\n // FormData 格式(简单键值对)\n const formData = new URLSearchParams();\n if (domain.requestBody) {\n domain.requestBody.split('\\n').forEach((line: string) => {\n const trimmed = line.trim();\n if (trimmed?.includes('=')) {\n const [key, ...valueParts] = trimmed.split('=');\n formData.append(key.trim(), valueParts.join('=').trim());\n }\n });\n }\n body = formData.toString();\n headers['Content-Type'] = 'application/x-www-form-urlencoded';\n }\n\n request$ = this._http.post<ApiItem[]>(domain.url, body, { headers }).pipe(\n takeUntilDestroyed(destroyRef),\n catchError((error) => {\n console.error(`[${componentName}] Failed to load data (POST):`, error);\n onError?.(error);\n onSuccess?.([]);\n return of([]);\n })\n );\n } else {\n // GET 请求处理\n request$ = this._http.get<ApiItem[]>(domain.url).pipe(\n takeUntilDestroyed(destroyRef),\n catchError((error) => {\n console.error(`[${componentName}] Failed to load data (GET):`, error);\n onError?.(error);\n onSuccess?.([]);\n return of([]);\n })\n );\n }\n\n request$.subscribe((data) => {\n if (!Array.isArray(data) || data.length === 0) {\n onSuccess?.([]);\n return;\n }\n\n try {\n const { key, code, value } = domain;\n\n // 查找匹配的主对象\n const matchedItem = data.find((item): item is ApiItem =>\n typeof item === 'object' && item !== null && item[key!] === code\n );\n\n if (matchedItem?.[value!]) {\n const extractedData = matchedItem[value!];\n\n // 确保提取的是数组\n if (Array.isArray(extractedData)) {\n // 如果提供了自定义转换函数,使用它;否则使用默认转换\n const result = transform\n ? transform(extractedData)\n : this._defaultTransform(extractedData);\n\n onSuccess?.(result as T[]);\n } else {\n console.warn(`[${componentName}] Extracted data is not an array:`, extractedData);\n onSuccess?.([]);\n }\n } else {\n console.warn(`[${componentName}] No matching item found for code:`, code);\n onSuccess?.([]);\n }\n } catch (e) {\n console.error(`[${componentName}] Error processing data:`, e);\n onError?.(e);\n onSuccess?.([]);\n }\n });\n }\n\n /**\n * 默认数据转换函数\n * \n * 将原始 API 数据转换为标准的 OptionData 格式。\n * 智能映射常见字段名:\n * - value: value / id / code\n * - label: label / name / text\n * \n * @param rawData - 原始数据数组\n * @returns 转换后的 OptionData 数组\n */\n private _defaultTransform(rawData: unknown[]): OptionData[] {\n return rawData.map((item): OptionData => {\n // 处理非对象情况(如字符串数组、数字数组)\n if (typeof item !== 'object' || item === null) {\n return {\n value: item,\n label: String(item)\n };\n }\n\n const obj = item as Record<string, unknown>;\n\n // 智能映射 value 字段\n const finalValue = obj.value ?? obj.id ?? obj.code;\n \n // 智能映射 label 字段\n let finalLabel: string;\n if (obj.label) {\n finalLabel = obj.label as unknown as string;\n } else if (obj.name) {\n finalLabel = obj.name as unknown as string;\n } else if (obj.text) {\n finalLabel = obj.text as unknown as string;\n } else if (finalValue != null) {\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n finalLabel = String(finalValue);\n } else {\n finalLabel = '';\n }\n\n return {\n value: finalValue,\n label: finalLabel,\n disabled: !!obj.disabled,\n ...obj // 保留原始对象的其他属性\n };\n });\n }\n}\n","import { FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { isNil } from 'lodash-es';\r\n\r\ninterface AddonField {\r\n icon?: string | null;\r\n text?: string | null;\r\n}\r\n\r\ninterface AddonProps {\r\n addonLeft?: AddonField;\r\n addonRight?: AddonField;\r\n prefix?: unknown;\r\n suffix?: unknown;\r\n}\r\n\r\nfunction hasAddonContent(addon?: AddonField): boolean {\r\n return !!addon\r\n && ((!isNil(addon.icon) && addon.icon !== '')\r\n || (!isNil(addon.text) && addon.text !== ''));\r\n}\r\n\r\nexport function addonsExtension(field: FormlyFieldConfig): void {\r\n const props = field.props as AddonProps | undefined;\r\n\r\n if (!props) {\r\n return;\r\n }\r\n\r\n if (hasAddonContent(props.addonLeft) || hasAddonContent(props.addonRight)) {\r\n if (!field.wrappers?.includes('addons')) {\r\n field.wrappers = [...(field.wrappers ?? []), 'addons'];\r\n }\r\n return;\r\n }\r\n\r\n // 无 addon 内容:移除上次 build 原地注入的 addons wrapper,并清理 wrapper\r\n // 写回的残留 TemplateRef(prefix/suffix)。否则 form-field 检测到它们仍会渲染\r\n // matPrefix/matSuffix 容器,Material 附加 leading-icon 内边距,清空前后缀后\r\n // 输入框产生位移且不恢复原始位置。\r\n if (field.wrappers?.includes('addons')) {\r\n field.wrappers = field.wrappers.filter(wrapper => wrapper !== 'addons');\r\n }\r\n\r\n if (props.prefix !== undefined) {\r\n delete props.prefix;\r\n }\r\n\r\n if (props.suffix !== undefined) {\r\n delete props.suffix;\r\n }\r\n}\r\n","import { Component, TemplateRef, AfterViewInit, viewChild } from '@angular/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\nimport { FormlyMaterialModule } from '@ngx-formly/material';\r\n\r\n@Component({\r\n selector: 'cmat-addons-wrapper',\r\n template: `\r\n <ng-template #matPrefix>\r\n @if(props.addonLeft){\r\n <span>\r\n @if(props.addonLeft.icon){\r\n <mat-icon [svgIcon]=\"props.addonLeft.icon\"></mat-icon>\r\n }\r\n @if(props.addonLeft.text){\r\n <span>{{ props.addonLeft.text }}</span>\r\n } \r\n \r\n </span>\r\n } \r\n </ng-template>\r\n\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-template #matSuffix>\r\n @if(props.addonRight){\r\n <span>\r\n @if(props.addonRight.icon){\r\n <mat-icon [svgIcon]=\"props.addonRight.icon\"></mat-icon>\r\n }\r\n @if(props.addonRight.text) {\r\n <span>{{ props.addonRight.text }}</span>\r\n }\r\n </span>\r\n }\r\n </ng-template>\r\n `,\r\n imports: [MatIconModule, FormlyMaterialModule]\r\n})\r\nexport class CmatAddonsWrapperComponent extends FieldWrapper implements AfterViewInit {\r\n private readonly matPrefix=viewChild<TemplateRef<unknown>>('matPrefix');\r\n private readonly matSuffix=viewChild<TemplateRef<unknown>>('matSuffix');\r\n\r\n ngAfterViewInit(): void {\r\n // 仅在实际配置了 addon 内容时才写入对应 TemplateRef,否则置为 undefined:\r\n // form-field 只要检测到 props.prefix/props.suffix 存在就会渲染 matPrefix/matSuffix\r\n // 容器,Material 会因此附加 leading-icon 类的内边距,清空后残留会导致输入框位移。\r\n // 注意必须赋值 undefined 而非 delete:props 上的 observe 钩子通过 setter 触发\r\n // detectChanges,而 form-field 是 OnPush,delete 不会触发其重新求值\r\n if (this.props.addonLeft && this.matPrefix()) {\r\n this.props.prefix = this.matPrefix();\r\n } else if (this.props.prefix !== undefined) {\r\n this.props.prefix = undefined;\r\n }\r\n\r\n if (this.props.addonRight && this.matSuffix()) {\r\n this.props.suffix = this.matSuffix();\r\n } else if (this.props.suffix !== undefined) {\r\n this.props.suffix = undefined;\r\n }\r\n }\r\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n@Component({\r\n selector: 'cmat-card-wrapper',\r\n templateUrl: './card.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCardModule]\r\n})\r\nexport class CmatCardWrapperComponent extends FieldWrapper {}\r\n","<mat-card class=\"dark:bg-white/5\">\r\n @if(props.label){\r\n <mat-card-title class=\"p-4\">{{ props.label }}</mat-card-title>\r\n }\r\n \r\n <mat-card-content>\r\n <ng-container #fieldComponent></ng-container>\r\n </mat-card-content> \r\n</mat-card>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatExpansionModule } from '@angular/material/expansion';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n@Component({\r\n selector: 'cmat-expansion-wrapper',\r\n templateUrl: './expansion.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatExpansionModule]\r\n})\r\nexport class CmatExpansionWrapperComponent extends FieldWrapper {}\r\n","<mat-expansion-panel [expanded]=\"true\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ to.label }}\r\n </mat-panel-title>\r\n <mat-panel-description>\r\n {{ to.description }}\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <ng-template #fieldComponent matExpansionPanelContent></ng-template>\r\n</mat-expansion-panel>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n@Component({\r\n selector: 'cmat-panel-wrapper',\r\n templateUrl: './panel.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: []\r\n})\r\nexport class CmatPanelWrapperComponent extends FieldWrapper {}\r\n","<h3 class=\"px-2\">{{ props.label }}</h3>\r\n<div>\r\n <ng-container #fieldComponent></ng-container>\r\n</div>","import { FocusMonitor } from '@angular/cdk/a11y';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n OnDestroy,\r\n OnInit,\r\n Renderer2,\r\n ViewEncapsulation,\r\n inject,\r\n viewChild,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatFormField, MatFormFieldModule } from '@angular/material/form-field';\r\nimport { FieldWrapper, FormlyFieldConfig, FormlyModule, ɵdefineHiddenProp as defineHiddenProp } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from '@ngx-formly/material/form-field';\r\n\r\ninterface MatFormlyFieldConfig extends FormlyFieldConfig<CustomFormFieldProps> {\r\n _formField?: CmatFormFieldWrapperComponent;\r\n}\r\n\r\nexport interface CustomFormFieldProps extends FormlyFieldProps {\r\n showValidationMessage?: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-form-field-wrapper',\r\n templateUrl: './form-field.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n styleUrls: ['./form-field.wrapper.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n imports: [MatFormFieldModule, ReactiveFormsModule, CommonModule, FormlyModule]\r\n})\r\nexport class CmatFormFieldWrapperComponent extends FieldWrapper<MatFormlyFieldConfig>\r\n implements OnInit, OnDestroy, AfterViewInit {\r\n private readonly formField = viewChild.required<MatFormField & { _elementRef: ElementRef<HTMLElement> }>(MatFormField);\r\n\r\n private _renderer = inject(Renderer2);\r\n private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\r\n private _focusMonitor = inject(FocusMonitor);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n defineHiddenProp(this.field, '_formField', this.formField());\r\n this._focusMonitor.monitor(this._elementRef, true).subscribe((origin) => {\r\n if (!origin && this.field.focus) {\r\n this.field.focus = false;\r\n }\r\n });\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n if (this.formField().appearance !== 'outline' && this.props.hideFieldUnderline === true) {\r\n const underlineElement = (this.formField()._elementRef.nativeElement as HTMLElement).querySelector('.mat-form-field-underline');\r\n \r\n if (underlineElement?.parentNode) {\r\n this._renderer.removeChild(underlineElement.parentNode, underlineElement);\r\n }\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n delete this.field._formField;\r\n this._focusMonitor.stopMonitoring(this._elementRef);\r\n }\r\n}\r\n\r\n","<mat-form-field [hideRequiredMarker]=\"true\" [floatLabel]=\"$any(props.floatLabel)\" [appearance]=\"$any(props.appearance)\"\r\n [subscriptSizing]=\"$any(props.subscriptSizing)\" [color]=\"props.color ?? 'primary'\">\r\n <ng-container #fieldComponent></ng-container>\r\n @if(props.label && props.hideLabel !== true){\r\n <mat-label>\r\n {{ props.label }}\r\n @if(props.required && props.hideRequiredMarker !== true){\r\n <span aria-hidden=\"true\" class=\"mat-form-field-required-marker mat-mdc-form-field-required-marker\">*</span>\r\n }\r\n </mat-label>\r\n }\r\n\r\n @if(props.textPrefix){\r\n <ng-container matTextPrefix>\r\n <ng-container [ngTemplateOutlet]=\"props.textPrefix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.prefix){\r\n <ng-container matPrefix>\r\n <ng-container [ngTemplateOutlet]=\"props.prefix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.textSuffix){\r\n <ng-container matTextSuffix>\r\n <ng-container [ngTemplateOutlet]=\"props.textSuffix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.suffix){\r\n <ng-container matSuffix>\r\n <ng-container [ngTemplateOutlet]=\"props.suffix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.showValidationMessage){\r\n <mat-error>\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n </mat-error>\r\n }\r\n\r\n @if(props.description || props.hintStart){\r\n <mat-hint>\r\n <ng-container [ngTemplateOutlet]=\"stringOrTemplate\" [ngTemplateOutletContext]=\"{ content: props.description || props.hintStart }\">\r\n </ng-container>\r\n </mat-hint>\r\n }\r\n\r\n @if(props.hintEnd){\r\n <mat-hint align=\"end\">\r\n <ng-container [ngTemplateOutlet]=\"stringOrTemplate\" [ngTemplateOutletContext]=\"{ content: props.hintEnd }\">\r\n </ng-container>\r\n </mat-hint>\r\n }\r\n</mat-form-field>\r\n\r\n<ng-template #stringOrTemplate let-content=\"content\">\r\n @if(!content.createEmbeddedView){\r\n <ng-container>{{ content }}</ng-container>\r\n }@else {\r\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n }\r\n</ng-template>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isString } from 'lodash-es';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ntype SafeClickHandler = (event: Event) => void;\r\n\r\nconst DANGEROUS_PATTERNS = [\r\n /\\bdocument\\s*\\./i,\r\n /\\bwindow\\s*\\./i,\r\n /\\beval\\s*\\(/i,\r\n /\\bfetch\\s*\\(/i,\r\n /\\bXMLHttpRequest\\b/i,\r\n /\\bimport\\s*\\(/i,\r\n /\\b__proto__\\b/i,\r\n /\\bconstructor\\s*\\(/i,\r\n /\\bprototype\\b/i\r\n];\r\n\r\ninterface ButtonProps extends CustomFormFieldProps {\r\n color?: 'primary' | 'accent' | 'warn';\r\n onClick?: SafeClickHandler | string;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-button-type',\r\n templateUrl: './button.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatButtonModule]\r\n})\r\nexport class CmatButtonTypeComponent extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n override defaultOptions = {\r\n props: {\r\n color: 'primary' as const,\r\n type: 'button'\r\n }\r\n };\r\n\r\n onClick($event: Event): void {\r\n $event.preventDefault();\r\n\r\n if (this.props.onClick) {\r\n if (isString(this.props.onClick)) {\r\n this._executeFunctionFromString(this.props.onClick, $event, { props: this.props });\r\n }\r\n else {\r\n this.props.onClick($event);\r\n }\r\n }\r\n }\r\n\r\n private _isDangerousCode(code: string): boolean {\r\n return DANGEROUS_PATTERNS.some((pattern): boolean => pattern.test(code));\r\n }\r\n\r\n private _executeFunctionFromString(funcString: string, event: Event, context?: Record<string, unknown>): void {\r\n if (this._isDangerousCode(funcString)) {\r\n console.error('Button onClick contains potentially dangerous code and was blocked:', funcString);\r\n return;\r\n }\r\n\r\n try {\r\n // eslint-disable-next-line @typescript-eslint/no-implied-eval\r\n const func = new Function('event', 'context', `with (context) { ${funcString} }`) as (event: Event, context?: Record<string, unknown>) => void;\r\n\r\n func(event, context);\r\n\r\n } catch (error) {\r\n console.error('Error executing function from string:', error);\r\n }\r\n }\r\n}","<button class=\"print:hidden\" matButton=\"filled\" [type]=\"props.type\" [color]=\"props.color\" [disabled]=\"disabled\" (click)=\"onClick($event)\">\r\n {{ props.label }}\r\n</button>","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n computed,\r\n DestroyRef,\r\n DoCheck,\r\n effect,\r\n inject,\r\n OnInit,\r\n signal,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatCascadeListComponent, CmatCascadeOptionsInterface } from 'cmat/components/cascade';\r\nimport { CmatMediaWatcherService } from 'cmat/services/media-watcher';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface ChipsCascadeProps extends CustomFormFieldProps {\r\n clearable: boolean;\r\n fullLevels: boolean;\r\n changeOnSelect: boolean;\r\n domain?: DomainConfig\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-cascade-type',\r\n templateUrl: './cascade.component.html',\r\n styleUrls: ['./cascade.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatCascadeListComponent]\r\n})\r\nexport class CmatCascadeTypeComponent extends FieldType<FieldTypeConfig<ChipsCascadeProps>> implements OnInit,DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n clearable: false,\r\n fullLevels: true,\r\n changeOnSelect: false\r\n },\r\n };\r\n readonly urlData = signal<CmatCascadeOptionsInterface[]>([]);\r\n\r\n private _cmatMediaWatcherService = inject(CmatMediaWatcherService);\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly isHandSet = computed(() => {\r\n return !this._cmatMediaWatcherService.mediaChange().matchingAliases.includes('lg')\r\n });\r\n\r\n private _lastDomain: ChipsCascadeProps['domain'] = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n\r\n effect(() => {\r\n const disabled = this.props.disabled;\r\n if (disabled && !this.formControl.disabled) {\r\n this.formControl.disable({ emitEvent: false });\r\n } else if (!disabled && this.formControl.disabled) {\r\n this.formControl.enable({ emitEvent: false });\r\n }\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CmatCascadeOptionsInterface>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatCascadeTypeComponent'\r\n });\r\n }\r\n\r\n}\r\n\r\n","<cmat-cascade-list [formControl]=\"formControl\" [clearable]=\"props.clearable\" [fullLevels]=\"props.fullLevels\"\r\n [changeOnSelect]=\"props.changeOnSelect\" [placeholder]=\"placeholder\" [options]=\"urlData()\" [tabIndex]=\"props.tabindex\"\r\n [required]=\"required\" [touchUi]=\"isHandSet()\"></cmat-cascade-list>\r\n","import { NgClass } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n OnInit,\r\n ViewEncapsulation,\r\n inject,\r\n signal,\r\n computed,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatRippleModule } from '@angular/material/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatEmptyStateComponent } from 'cmat/components/empty-state';\r\nimport { isArray, isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface CheckListItem extends Record<string, unknown> {\r\n id?: unknown;\r\n value?: unknown;\r\n label?: unknown;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface CheckListProps extends CustomFormFieldProps {\r\n showAllCheck: boolean;\r\n controlMaxHeight: boolean;\r\n domain?: DomainConfig\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-checklist-type',\r\n templateUrl: './checklist.component.html',\r\n styleUrls: ['./checklist.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCheckboxModule, MatIconModule, NgClass, MatRippleModule,CmatEmptyStateComponent]\r\n})\r\nexport class CmatCheckListTypeComponent extends FieldType<FieldTypeConfig<CheckListProps>> implements OnInit,DoCheck {\r\n readonly isIndeterminate = signal<boolean>(false);\r\n readonly isChecked = signal<boolean>(false);\r\n\r\n readonly urlData = signal<CheckListItem[]>([]);\r\n readonly optionsData = signal<CheckListItem[]>([]);\r\n readonly checklist = signal<CheckListItem[]>([]);\r\n\r\n readonly filteredItems = signal<CheckListItem[] | null>(null);\r\n\r\n // 响应式数据源\r\n readonly datas = computed(() => {\r\n if (this.urlData().length > 0) {\r\n return this.urlData();\r\n }\r\n\r\n return this.optionsData() || [];\r\n });\r\n\r\n // 响应式过滤数据\r\n readonly filteredData = computed(() => {\r\n const currentDatas = this.datas();\r\n const query = this._filterQuery();\r\n\r\n if (!query) {\r\n return currentDatas;\r\n }\r\n\r\n return currentDatas.filter((data: CheckListItem) =>\r\n this._toSearchText(data.value).toLowerCase().includes(query.toLowerCase()) ||\r\n this._toSearchText(data.label).toLowerCase().includes(query.toLowerCase())\r\n );\r\n });\r\n\r\n private _lastDomain: CheckListProps['domain'] = undefined;\r\n private _lastOptions: any = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n private readonly _filterQuery = signal<string>('');\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n\r\n this._refreshData();\r\n\r\n this._refreshFilteredData();\r\n\r\n this.formControl.valueChanges.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(\r\n (value) => {\r\n const newVal = (value ?? []) as CheckListItem[];\r\n\r\n this.checklist.set(newVal);\r\n this._getAllCheckCountState();\r\n }\r\n );\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 2. 检查 options 变化 (仅当 domain 未配置时,options 才生效,但为了稳妥,只要变了就更新)\r\n // 注意:如果 domain 存在,urlData 优先级更高,但更新 optionsData 也无妨,因为 allOptions computed 会优先取 urlData\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n trackByFn(index: number, item: CheckListItem): unknown {\r\n return item.id ?? item.value ?? index;\r\n }\r\n\r\n filterByQuery(event: string | Event): void {\r\n const query = typeof event === 'string' ? event : (event.target as HTMLInputElement | null)?.value ?? '';\r\n\r\n this._filterQuery.set(query.toLowerCase());\r\n this._refreshFilteredData();\r\n }\r\n\r\n toggleCheckList(data: CheckListItem, event: Event): void {\r\n event.preventDefault();\r\n\r\n if (data.disabled || this.props.disabled)\r\n return;\r\n\r\n this.checklist.update((currentList) => {\r\n const index = currentList.findIndex(item => item.value === data.value);\r\n let newList;\r\n if (index > -1) {\r\n newList = currentList.filter(item => item.value !== data.value);\r\n } else {\r\n newList = [...currentList, data];\r\n }\r\n\r\n\r\n return newList;\r\n });\r\n\r\n // 同步表单值\r\n this.formControl.setValue(this.checklist());\r\n this._getAllCheckCountState();\r\n }\r\n\r\n allCheckChange(check: boolean): void {\r\n const itemsToAdd = this.filteredData().filter((t) => {\r\n const index = this.checklist().findIndex(item => item.value === t.value);\r\n return index < 0 && !t.disabled;\r\n });\r\n\r\n if (check) {\r\n this.checklist.set([...this.checklist(), ...itemsToAdd]);\r\n } else {\r\n this.checklist.set(this.checklist().filter((item) => {\r\n const existsInFiltered = this.filteredData().some(t => t.value === item.value);\r\n const shouldRemove = existsInFiltered && this.filteredData().find(t => t.value === item.value)?.disabled === false;\r\n return !shouldRemove;\r\n }));\r\n }\r\n\r\n this.formControl.setValue(this.checklist());\r\n this._getAllCheckCountState();\r\n }\r\n\r\n isCheck(data: CheckListItem): boolean {\r\n const selected = this.checklist();\r\n return selected.some((i: CheckListItem) => i.value === data.value);\r\n }\r\n\r\n private _refreshFilteredData(): void {\r\n this.filteredItems.set(this.filteredData());\r\n this._getAllCheckCountState();\r\n }\r\n\r\n private _getAllCheckCountState(): void {\r\n if (!this.props.showAllCheck || this.props.disabled) return;\r\n\r\n const currentChecklist = this.checklist();\r\n const currentFiltered = this.filteredData();\r\n\r\n const enabledFilteredItems = currentFiltered.filter(i => !i.disabled);\r\n const totalEnabled = enabledFilteredItems.length;\r\n\r\n if (totalEnabled === 0) {\r\n this.isChecked.set(false);\r\n this.isIndeterminate.set(false);\r\n return;\r\n }\r\n\r\n const allCheckCount = enabledFilteredItems.filter(t =>\r\n currentChecklist.some(item => item.value === t.value)\r\n ).length;\r\n\r\n if (allCheckCount === 0) {\r\n this.isChecked.set(false);\r\n this.isIndeterminate.set(false);\r\n } else if (allCheckCount === totalEnabled) {\r\n this.isChecked.set(true);\r\n this.isIndeterminate.set(false);\r\n } else {\r\n this.isChecked.set(false);\r\n this.isIndeterminate.set(true);\r\n }\r\n }\r\n\r\n private _toSearchText(value: unknown): string {\r\n return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' ? String(value) : '';\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CheckListItem>(domain, this._destroyRef, {\r\n onSuccess: (data) => {\r\n this.urlData.set(data);\r\n this._refreshFilteredData();\r\n },\r\n componentName: 'CmatCheckListTypeComponent'\r\n });\r\n\r\n // 处理静态 options\r\n if (!domain?.url && this.field.props?.options && isArray(this.field.props?.options)) {\r\n this.optionsData.set(this.field.props.options as CheckListItem[] || []);\r\n } else if (!domain?.url) {\r\n this.optionsData.set([]);\r\n }\r\n }\r\n}","<div class=\"flex flex-col\">\r\n <div class=\"p-2\">\r\n @if(props.label){\r\n <legend class=\"text-lg\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n </legend>\r\n }\r\n @if(props.description){\r\n <p>{{ props.description }}</p>\r\n }\r\n </div>\r\n\r\n <div class=\"w-full h-full rounded-xl border border-slate-200 dark:border-slate-700 bg-card dark:bg-transparent\" [tabIndex]=\"props.tabindex\">\r\n <div class=\"flex items-center m-1 mr-2 min-h-12 print:hidden\">\r\n @if (props.showAllCheck&&!props.disabled) {\r\n <div>\r\n <mat-checkbox class=\"flex items-center h-10 min-h-10 m-1\" [color]=\"'primary'\" [checked]=\"isChecked()\"\r\n [indeterminate]=\"isIndeterminate()\" (change)=\"allCheckChange($event.checked)\">\r\n </mat-checkbox>\r\n </div>\r\n }\r\n <div class=\"flex items-center w-full\">\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:magnifying-glass'\"></mat-icon>\r\n <div class=\"ml-2\">\r\n <input #query class=\"w-full min-w-0 py-1 border-none\" type=\"text\" placeholder=\"输入过滤信息\"\r\n [disabled]=\"props.disabled\"\r\n (input)=\"filterByQuery(query.value)\">\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col border-t overflow-y-auto scrollbar-custom\"\r\n [ngClass]=\"props.controlMaxHeight?'max-h-64 sm:max-h-128 lg:max-h-64 py-4':'flex-auto'\">\r\n @if (filteredItems()) {\r\n @if(filteredItems()!.length>0){\r\n @for (data of filteredItems(); track trackByFn($index, data)) {\r\n <div role=\"presentation\" class=\"flex items-center pl-2 pr-4 py-2 h-15 w-full\" matRipple [matRippleDisabled]=\"disabled\"\r\n [ngClass]=\"{'cursor-pointer hover:bg-hover': !disabled}\" (click)=\"toggleCheckList(data,$event)\">\r\n <mat-checkbox class=\"flex items-center h-10 min-h-10 pointer-events-none\" disableRipple [color]=\"'primary'\"\r\n [checked]=\"isCheck(data)\" [disabled]=\"data.disabled||props.disabled\">\r\n <div class=\"flex flex-col flex-auto\">\r\n <div class=\"font-medium leading-5 truncate\">{{data.label}}</div>\r\n </div>\r\n </mat-checkbox>\r\n </div>\r\n }\r\n } @else {\r\n <cmat-empty-state\r\n [bordered]=\"false\"\r\n [icon]=\"'mat_outline:inbox'\"\r\n [title]=\"'暂无数据'\"\r\n [ctaLabel]=\"''\"\r\n ></cmat-empty-state> \r\n }\r\n }\r\n </div>\r\n </div>\r\n</div>","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n DoCheck,\r\n OnInit,\r\n computed,\r\n inject,\r\n signal,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatChipInputComponent } from 'cmat/components/chip-input';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface ChipsInputProps extends CustomFormFieldProps {\r\n hasAutocomplete?: boolean;\r\n autocompleteText?: string;\r\n domain?: DomainConfig\r\n}\r\n\r\n\r\n@Component({\r\n selector: 'cmat-chips-input-type',\r\n templateUrl: './chips.component.html',\r\n styleUrls: ['./chips.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatChipInputComponent]\r\n})\r\nexport class CmatChipsInputTypeComponent extends FieldType<FieldTypeConfig<ChipsInputProps>> implements OnInit, DoCheck {\r\n readonly urlData = signal<unknown[]>([]);\r\n readonly autocompleteOptions = computed(() => {\r\n const data = this.urlData();\r\n\r\n if (data && data.length > 0) {\r\n return data.filter((item): item is string => typeof item === 'string');\r\n }\r\n\r\n const staticText = this.props?.autocompleteText;\r\n if (staticText) {\r\n return staticText.split(',').map(s => s.trim()).filter(s => s.length > 0);\r\n }\r\n\r\n return [];\r\n });\r\n\r\n private _lastDomain: ChipsInputProps['domain'] = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<unknown>(domain, this._destroyRef, {\r\n transform: (rawData) => {\r\n // Chips 特殊处理:支持字符串数组或逗号分隔的字符串\r\n if (rawData.length > 0 && typeof rawData[0] === 'string') {\r\n return rawData;\r\n } else if (rawData.length > 0 && typeof rawData[0] === 'object' && rawData[0] !== null) {\r\n // 如果是对象数组,尝试提取 label/name/text 字段\r\n return rawData.map((item) => {\r\n const obj = item as Record<string, unknown>;\r\n return (obj.label ?? obj.name ?? obj.text ?? obj.value ?? item);\r\n });\r\n }\r\n return rawData;\r\n },\r\n onSuccess: (data) => {\r\n // 如果提取的是字符串,转换为数组\r\n if (data.length === 1 && typeof data[0] === 'string') {\r\n this.urlData.set((data[0]).split(',').map(s => s.trim()));\r\n } else {\r\n this.urlData.set(data);\r\n }\r\n },\r\n componentName: 'CmatChipsInputTypeComponent'\r\n });\r\n }\r\n}\r\n\r\n","<cmat-chip-input \r\n [hasAutocomplete]=\"props.hasAutocomplete ?? false\" \r\n [formControl]=\"formControl\"\r\n [selectableOptions]=\"autocompleteOptions()\" \r\n [tabIndex]=\"props.tabindex\" \r\n [required]=\"required\">\r\n</cmat-chip-input>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CmatColorPickerButtonComponent } from 'cmat/components/color-picker';\r\n\r\n@Component({\r\n selector: 'cmat-color-picker-type',\r\n templateUrl: './color-picker.component.html',\r\n styleUrls: ['./color-picker.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatColorPickerButtonComponent]\r\n})\r\nexport class CmatColorPickerTypeComponent extends FieldType<FieldTypeConfig> {\r\n}","<cmat-color-picker-button [value]=\"value\" [label]=\"props.label??''\" [placeholder]=\"props.placeholder??''\" [tabindex]=\"props.tabindex\" [disabled]=\"props.disabled??false\" (valueChanged)=\"value=$event\"></cmat-color-picker-button>","import { HttpClient } from '@angular/common/http';\r\nimport { ChangeDetectionStrategy, Component, DestroyRef, inject, OnInit, signal, DoCheck } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport {\r\n CmatDataPickerComponent,\r\n DataSourceConfig,\r\n DataPickerColumn,\r\n DataPickerProvider,\r\n DataPickerQuery,\r\n PagedResult,\r\n} from 'cmat/components/data-picker';\r\nimport { isEqual } from 'lodash-es';\r\nimport { catchError, Observable, of } from 'rxjs';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface DomainConfig {\r\n url?: string;\r\n code?: string;\r\n key?: string;\r\n value?: string;\r\n}\r\n\r\ninterface DataPickerProps extends CustomFormFieldProps {\r\n // 数据源配置\r\n dataSource?: DataSourceConfig;\r\n apiUrl?: string;\r\n\r\n // 列配置\r\n columns?: DataPickerColumn[];\r\n keyField?: string;\r\n labelField?: string;\r\n\r\n // 行为配置\r\n multiple?: boolean;\r\n searchable?: boolean;\r\n pageSize?: number;\r\n\r\n // UI 配置\r\n uiMode?: 'auto' | 'drawer' | 'dialog' | 'bottom-sheet';\r\n drawerPosition?: 'start' | 'end';\r\n drawerWidth?: string;\r\n dialogWidth?: string;\r\n dialogMaxHeight?: string;\r\n\r\n // 显示配置\r\n displayTemplate?: string;\r\n displayLabelFn?: (item: any) => string;\r\n\r\n // 数据提供者(可选,如果提供则优先使用)\r\n dataProvider?: DataPickerProvider<any>;\r\n\r\n // 域配置(用于动态加载数据)\r\n domain?: DomainConfig;\r\n}\r\n\r\ntype ApiItem = Record<string, unknown>;\r\n\r\n@Component({\r\n selector: 'cmat-data-picker-type',\r\n templateUrl: './data-picker.component.html',\r\n styleUrls: ['./data-picker.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatDataPickerComponent]\r\n})\r\nexport class CmatDataPickerTypeComponent extends FieldType<FieldTypeConfig<DataPickerProps>> implements OnInit, DoCheck {\r\n readonly dataProviderSignal = signal<DataPickerProvider<any> | undefined>(undefined);\r\n\r\n private _http = inject(HttpClient);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n // 用于记录上一次的配置快照\r\n private _lastDomain: DataPickerProps['domain'] = undefined;\r\n private _lastApiUrl: string | undefined = undefined;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n // 初始化快照\r\n this._lastDomain = this.props.domain;\r\n this._lastApiUrl = this.props.apiUrl;\r\n\r\n // 执行初始创建逻辑\r\n this._createDataProvider();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentApiUrl = this.props.apiUrl;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 检查 apiUrl 变化\r\n if (currentApiUrl !== this._lastApiUrl) {\r\n this._lastApiUrl = currentApiUrl;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._createDataProvider();\r\n }\r\n }\r\n\r\n /**\r\n * 统一创建 dataProvider 的方法\r\n */\r\n private _createDataProvider(): void {\r\n const domain = this.props.domain;\r\n const apiUrl = this.props.apiUrl;\r\n\r\n if (domain?.url && domain?.key && domain?.code && domain?.value) {\r\n this._createDataProviderFromDomain(domain);\r\n } else if (apiUrl) {\r\n // 如果提供了 apiUrl,创建简单的 HTTP provider\r\n this._createDataProviderFromUrl(apiUrl);\r\n } else {\r\n // 没有配置,清空 provider\r\n this.dataProviderSignal.set(undefined);\r\n }\r\n }\r\n\r\n /**\r\n * 从 domain 配置创建 dataProvider\r\n */\r\n private _createDataProviderFromDomain(domain: NonNullable<DataPickerProps['domain']>): void {\r\n if (!domain.url || !domain.key || !domain.code || !domain.value) return;\r\n\r\n const provider: DataPickerProvider<any> = {\r\n loadPage: (query: DataPickerQuery): Observable<PagedResult<any>> => {\r\n const params: Record<string, unknown> = {\r\n page: query.page,\r\n size: query.size,\r\n };\r\n\r\n if (query.search) {\r\n params[domain.key!] = domain.code;\r\n params['search'] = query.search;\r\n }\r\n\r\n if (query.orderBy) {\r\n params['orderBy'] = query.orderBy;\r\n params['desc'] = query.desc ?? false;\r\n }\r\n\r\n return this._http.post<ApiItem>(domain.url!, params).pipe(\r\n takeUntilDestroyed(this._destroyRef),\r\n catchError((error) => {\r\n console.error('Failed to load data picker data:', error);\r\n return of({ data: [], total: 0 } as PagedResult<any>);\r\n })\r\n ) as Observable<PagedResult<any>>;\r\n },\r\n };\r\n\r\n this.dataProviderSignal.set(provider);\r\n }\r\n\r\n /**\r\n * 从 URL 创建简单的 dataProvider\r\n */\r\n private _createDataProviderFromUrl(url: string): void {\r\n const provider: DataPickerProvider<any> = {\r\n loadPage: (query: DataPickerQuery): Observable<PagedResult<any>> => {\r\n const params: Record<string, unknown> = {\r\n page: query.page,\r\n size: query.size,\r\n };\r\n\r\n if (query.search) {\r\n params['search'] = query.search;\r\n }\r\n\r\n if (query.orderBy) {\r\n params['orderBy'] = query.orderBy;\r\n params['desc'] = query.desc ?? false;\r\n }\r\n\r\n return this._http.post<PagedResult<any>>(url, params).pipe(\r\n takeUntilDestroyed(this._destroyRef),\r\n catchError((error) => {\r\n console.error('Failed to load data picker data:', error);\r\n return of({ data: [], total: 0 } as PagedResult<any>);\r\n })\r\n );\r\n },\r\n };\r\n\r\n this.dataProviderSignal.set(provider);\r\n }\r\n}\r\n","<cmat-data-picker\r\n [formControl]=\"formControl\"\r\n [dataProvider]=\"dataProviderSignal()\"\r\n [columns]=\"props.columns ?? []\"\r\n [keyField]=\"props.keyField ?? 'id'\"\r\n [labelField]=\"props.labelField ?? 'name'\"\r\n [multiple]=\"props.multiple ?? false\"\r\n [searchable]=\"props.searchable ?? true\"\r\n [pageSize]=\"props.pageSize ?? 20\"\r\n [uiMode]=\"props.uiMode ?? 'auto'\"\r\n [drawerPosition]=\"props.drawerPosition ?? 'end'\"\r\n [drawerWidth]=\"props.drawerWidth ?? '600px'\"\r\n [dialogWidth]=\"props.dialogWidth ?? '800px'\"\r\n [dialogMaxHeight]=\"props.dialogMaxHeight ?? '80vh'\"\r\n [displayTemplate]=\"props.displayTemplate\"\r\n [placeholder]=\"placeholder\"\r\n [required]=\"required\">\r\n</cmat-data-picker>\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatDateRangeComponent } from 'cmat/components/date-range';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface DateRangeProps extends CustomFormFieldProps {\r\n dateFormat: string;\r\n timeFormat: string;\r\n timeRange: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-date-range-type',\r\n templateUrl: './date-range.component.html',\r\n styleUrls: ['./date-range.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatDateRangeComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatDateRangeTypeComponent extends FieldType<FieldTypeConfig<DateRangeProps>>{\r\n override defaultOptions = {\r\n props: {\r\n dateFormat: 'YYYY/MM/DD',\r\n timeFormat: '24',\r\n timeRange: true\r\n },\r\n };\r\n}","<cmat-date-range [dateFormat]=\"props.dateFormat\" [timeFormat]=\"props.timeFormat\" [timeRange]=\"props.timeRange\" \r\n[formControl]=\"formControl\" [tabindex]=\"props.tabindex\" [readonly]=\"disabled\">\r\n</cmat-date-range>","import { ChangeDetectionStrategy, Component, computed, effect, inject } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatCalendarView, CmatDatetimepickerComponent, CmatDatetimepickerInputDirective, CmatDatetimepickerMode, CmatDatetimepickerToggleComponent, CmatDatetimepickerType } from 'cmat/components/material-datetimepicker';\r\nimport { CmatMediaWatcherService } from 'cmat/services/media-watcher';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface DatepickerProps extends CustomFormFieldProps {\r\n startView: CmatCalendarView;\r\n mode: CmatDatetimepickerMode;\r\n togglePosition: 'left' | 'right';\r\n timeInterval: number;\r\n type: CmatDatetimepickerType;\r\n multiYearSelector: boolean;\r\n twelvehour: boolean;\r\n timeInput: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-datepicker-type',\r\n templateUrl: './datepicker.component.html',\r\n styleUrls: ['./datepicker.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatDatetimepickerToggleComponent, CmatDatetimepickerInputDirective, CmatDatetimepickerComponent, MatInputModule, FormsModule, ReactiveFormsModule]\r\n})\r\nexport class CmatDatepickerTypeComponent extends FieldType<FieldTypeConfig<DatepickerProps>> {\r\n override defaultOptions = {\r\n props: {\r\n startView: 'month' as const,\r\n mode: 'auto' as const,\r\n togglePosition: 'left' as const,\r\n timeInterval: 5,\r\n type: 'datetime' as const,\r\n multiYearSelector: false,\r\n disabled: false,\r\n timeInput: true,\r\n twelvehour: false\r\n }\r\n };\r\n\r\n private _cmatMediaWatcherService = inject(CmatMediaWatcherService);\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly isHandSet = computed(() => {\r\n return !this._cmatMediaWatcherService.mediaChange().matchingAliases.includes('lg')\r\n });\r\n\r\n constructor() {\r\n super();\r\n\r\n effect(() => {\r\n const disabled = this.props.disabled;\r\n if (disabled && !this.formControl.disabled) {\r\n this.formControl.disable({ emitEvent: false });\r\n } else if (!disabled && this.formControl.disabled) {\r\n this.formControl.enable({ emitEvent: false });\r\n }\r\n });\r\n }\r\n}\r\n","@if(props.togglePosition==='left'){\r\n<cmat-datetimepicker-toggle matPrefix [for]=\"datetimePicker\" [disabled]=\"disabled\"></cmat-datetimepicker-toggle>\r\n}\r\n\r\n<cmat-datetimepicker #datetimePicker openOnFocus=\"true\" [startView]=\"props.startView\" [mode]=\"props.mode\"\r\n [timeInterval]=\"props.timeInterval\" [twelvehour]=\"props.twelvehour\" [type]=\"props.type\"\r\n [multiYearSelector]=\"props.multiYearSelector\" [timeInput]=\"props.timeInput\" [touchUi]=\"isHandSet()\"\r\n [disabled]=\"disabled\"></cmat-datetimepicker>\r\n\r\n<input autocomplete=\"false\" matInput [cmatDatetimepicker]=\"datetimePicker\" [required]=\"required\"\r\n [formControl]=\"formControl\" [placeholder]=\"placeholder\" />\r\n\r\n@if(props.togglePosition==='right'){\r\n<cmat-datetimepicker-toggle matSuffix [for]=\"datetimePicker\" [disabled]=\"disabled\"></cmat-datetimepicker-toggle>\r\n}","import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, DestroyRef, Type, inject, DoCheck, OnInit } from '@angular/core';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlySelectModule, FormlySelectOption } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig, OptionData } from '../common-types';\r\n\r\ninterface MultiCheckboxOption extends OptionData {\r\n value?: string | number;\r\n label?: string;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface MultiCheckboxProps extends CustomFormFieldProps {\r\n labelPosition: 'before' | 'after';\r\n type?: 'array' | 'object';\r\n domain?: DomainConfig;\r\n}\r\n\r\nexport interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {\r\n type: 'multicheckbox' | Type<CmatMultiCheckboxTypeComponent>;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-multicheckbox-type',\r\n templateUrl: './multicheckbox.component.html',\r\n styleUrls: ['./multicheckbox.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCheckboxModule, AsyncPipe, FormlySelectModule]\r\n})\r\nexport class CmatMultiCheckboxTypeComponent extends FieldType<FieldTypeConfig<MultiCheckboxProps>> implements OnInit, DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n hideFieldUnderline: true,\r\n floatLabel: 'always' as const,\r\n color: 'accent' as const,\r\n labelPosition: 'after' as const\r\n },\r\n };\r\n\r\n urlData: MultiCheckboxOption[] = [];\r\n\r\n private _lastDomain: MultiCheckboxProps['domain'] = undefined;\r\n private _lastOptions: any = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 2. 检查 options 变化\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n onChange(optionValue: string | number | undefined, checked: boolean): void {\r\n if (optionValue === undefined || optionValue === null) return;\r\n\r\n this.formControl.markAsDirty();\r\n\r\n if (this.props.type === 'array') {\r\n const currentValue = (this.formControl.value ?? []) as (string | number)[];\r\n\r\n this.formControl.patchValue(\r\n checked\r\n ? [...currentValue, optionValue]\r\n : currentValue.filter(o => o !== optionValue),\r\n );\r\n } else {\r\n const currentObj = (this.formControl.value as Record<string, boolean>) ?? {};\r\n this.formControl.patchValue({\r\n ...currentObj,\r\n [optionValue]: checked\r\n });\r\n }\r\n this.formControl.markAsTouched();\r\n }\r\n\r\n isChecked(option: MultiCheckboxOption | FormlySelectOption): boolean {\r\n const formValue = this.formControl.value as string[] | Record<string, boolean> | null;\r\n let optionValue: string | number | undefined;\r\n\r\n if ((option as MultiCheckboxOption).value !== undefined) {\r\n optionValue = (option as MultiCheckboxOption).value;\r\n } else if ((option as FormlySelectOption).value !== undefined) {\r\n optionValue = (option as FormlySelectOption).value as string | number;\r\n }\r\n\r\n if (optionValue === undefined || optionValue === null) {\r\n return false;\r\n }\r\n\r\n\r\n if (!formValue) {\r\n return false;\r\n }\r\n\r\n const safeOptionValue = String(optionValue);\r\n\r\n if (this.props.type === 'array') {\r\n if (Array.isArray(formValue)) {\r\n return formValue.some(v => String(v) === safeOptionValue);\r\n }\r\n return false;\r\n } else {\r\n if (typeof formValue === 'object' && formValue !== null) {\r\n return !!(formValue as Record<string, boolean>)[safeOptionValue];\r\n }\r\n return false;\r\n }\r\n }\r\n\r\n trackByFn(index: number, option: MultiCheckboxOption | FormlySelectOption): string | number {\r\n return (option.value as string | number) ?? index;\r\n }\r\n\r\n getData(): MultiCheckboxOption[] {\r\n return this.urlData;\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<MultiCheckboxOption>(domain, this._destroyRef, {\r\n onSuccess: (data) => {\r\n this.urlData = data;\r\n },\r\n componentName: 'CmatMultiCheckboxTypeComponent'\r\n });\r\n\r\n // 处理静态 options(当没有 domain 时)\r\n if (!domain?.url && this.field.props?.options) {\r\n const options = this.field.props.options as MultiCheckboxOption[];\r\n if (Array.isArray(options)) {\r\n this.urlData = options;\r\n }\r\n }\r\n }\r\n\r\n}\r\n","@if (urlData) {\r\n\r\n @let options = props.domain ? getData() : (props.options | formlySelectOptions : field | async);\r\n \r\n @for (option of options; track trackByFn($index, option)) {\r\n <mat-checkbox \r\n [tabIndex]=\"props.tabindex\" \r\n [color]=\"props.color\" \r\n [labelPosition]=\"props.labelPosition\"\r\n [checked]=\"isChecked(option)\" \r\n [disabled]=\"formControl.disabled || option.disabled\"\r\n (change)=\"onChange(option.value, $event.checked)\">\r\n {{ option.label }}\r\n </mat-checkbox>\r\n }\r\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatDigitOnlyDirective } from 'cmat/directives/digit-only';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface NumberProps extends CustomFormFieldProps {\r\n decimal: boolean;\r\n min: number;\r\n max: number;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-number-type',\r\n templateUrl: './number.component.html',\r\n styleUrls: ['./number.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatDigitOnlyDirective, MatInputModule, ReactiveFormsModule]\r\n})\r\nexport class CmatNumberTypeComponent extends FieldType<FieldTypeConfig<NumberProps>>{\r\n override defaultOptions = {\r\n props: {\r\n decimal: false,\r\n min: -Infinity,\r\n max: Infinity\r\n },\r\n };\r\n}","<input matInput cmatDigitOnly [formControl]=\"formControl\" [readonly]=\"props.readonly\" [placeholder]=\"placeholder\" [tabIndex]=\"props.tabindex\" [required]=\"required\" [decimal]=\"props.decimal\" [allowNegatives]=\"true\" [allowPaste]=\"true\"\r\n [min]=\"props.min\" [max]=\"props.max\" [errorStateMatcher]=\"errorStateMatcher\">\r\n\r\n","import { NgStyle } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatRatingComponent } from 'cmat/components/rating';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface RatingProps extends CustomFormFieldProps {\r\n stars: number;\r\n readonly: boolean;\r\n hover: boolean;\r\n half: boolean;\r\n customColor?: string;\r\n showMode: 'horizontal' | 'vertical';\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-rating-type',\r\n templateUrl: './rating.component.html',\r\n styleUrls: ['./rating.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatRatingComponent, ReactiveFormsModule, NgStyle]\r\n})\r\nexport class CmatRatingTypeComponent extends FieldType<FieldTypeConfig<RatingProps>>{\r\n override defaultOptions: Partial<FieldTypeConfig<RatingProps>> = {\r\n props: {\r\n stars: 5,\r\n readonly: false,\r\n hover: true,\r\n half: true,\r\n showMode: 'horizontal'\r\n },\r\n };\r\n\r\n get isReadonly(): boolean {\r\n return this.props.readonly || !!this.props.disabled;\r\n }\r\n\r\n get isHover(): boolean {\r\n return !this.props.disabled && !!this.props.hover;\r\n }\r\n}","@if(props.customColor&&props.customColor.indexOf('#')>-1){\r\n<div [ngStyle]=\"{'color': props.customColor}\">\r\n <cmat-rating [formControl]=\"formControl\" [tabIndex]=\"props.tabindex\" [stars]=\"props.stars\"\r\n [readonly]=\"isReadonly\" [hover]=\"isHover\" [half]=\"props.half\" [showMode]=\"props.showMode\"></cmat-rating>\r\n</div>\r\n}@else{\r\n<cmat-rating [formControl]=\"formControl\" [tabIndex]=\"props.tabindex\" [stars]=\"props.stars\" [readonly]=\"isReadonly\"\r\n [hover]=\"isHover\" [half]=\"props.half\" [color]=\"props.customColor\" [showMode]=\"props.showMode\"></cmat-rating>\r\n}","import { AsyncPipe } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n AfterViewInit,\r\n Type,\r\n inject,\r\n signal,\r\n viewChild,\r\n OnInit,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatRadioGroup, MatRadioModule } from '@angular/material/radio';\r\nimport { FieldTypeConfig, FormlyFieldConfig, ɵobserve as observe } from '@ngx-formly/core';\r\nimport { FormlySelectModule, FormlySelectOption } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface RadioOption {\r\n label: string;\r\n value?: string | number;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface RadioProps extends CustomFormFieldProps {\r\n labelPosition: 'before' | 'after';\r\n domain?: DomainConfig\r\n}\r\n\r\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\r\n type: 'radio' | Type<CmatRadioTypeComponent>;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-radio-type',\r\n templateUrl: './radio.component.html',\r\n styleUrls: ['./radio.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatRadioModule, AsyncPipe, FormlySelectModule, ReactiveFormsModule]\r\n})\r\nexport class CmatRadioTypeComponent extends FieldType<FieldTypeConfig<RadioProps>> implements OnInit, AfterViewInit,DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n hideFieldUnderline: true,\r\n floatLabel: 'always' as const,\r\n tabindex: -1,\r\n labelPosition: 'after' as const\r\n },\r\n };\r\n\r\n readonly urlData = signal<RadioOption[]>([]);\r\n\r\n private readonly radioGroup = viewChild(MatRadioGroup);\r\n\r\n private focusObserver!: ReturnType<typeof observe>;\r\n\r\n private _lastDomain: RadioProps['domain'] = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.focusObserver = observe(this.field, ['focus'], ({ currentValue }) => {\r\n if (this.radioGroup()) {\r\n if (this.props.tabindex === -1 && currentValue && this.radioGroup()!._radios.length > 0) {\r\n setTimeout(() => {\r\n const radio = this.radioGroup()!.selected ?? this.radioGroup()!._radios.first;\r\n radio?.focus();\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n override ngOnDestroy(): void {\r\n super.ngOnDestroy();\r\n this.focusObserver?.unsubscribe();\r\n }\r\n\r\n trackByFn(index: number, option: RadioOption | FormlySelectOption): string | number {\r\n return (option.value as string | number) ?? index;\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<RadioOption>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatRadioTypeComponent'\r\n });\r\n }\r\n}","<mat-radio-group [formControl]=\"formControl\" [required]=\"required\" [tabindex]=\"props.tabindex\">\r\n @if (urlData()) {\r\n @for (option of (urlData().length > 0 ? urlData() : (props.options | formlySelectOptions : field | async)); track\r\n trackByFn($index, option)) {\r\n <mat-radio-button [color]=\"props.color\" [labelPosition]=\"props.labelPosition\" [disabled]=\"option.disabled\"\r\n [value]=\"option.value\">\r\n {{ option.label }}\r\n </mat-radio-button>\r\n }\r\n }\r\n</mat-radio-group>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldArrayType, FieldTypeConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface RepeatProps extends CustomFormFieldProps {\r\n addText: string;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-repeat-type',\r\n templateUrl: './repeat.component.html',\r\n styleUrls: ['./repeat.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [FormlyModule, MatIconModule, MatButtonModule]\r\n})\r\nexport class CmatRepeatTypeComponent extends FieldArrayType<FieldTypeConfig<RepeatProps>> {\r\n override defaultOptions = {\r\n props: {\r\n addText: '新增'\r\n },\r\n };\r\n}\r\n","<div class=\"mb-2\" [tabIndex]=\"props.tabindex\">\r\n @if(props.label){\r\n <legend class=\"text-lg\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n </legend>\r\n }\r\n\r\n @if(props.description){\r\n <p>{{ props.description }}</p>\r\n }\r\n\r\n <div class=\"mb-2 h-1 border-solid border-b-2\"></div>\r\n <div class=\"flex flex-col repeat-body\">\r\n @for (field of field.fieldGroup; track $index) {\r\n <div class=\"flex flex-row items-center gap-2 repeat-item\">\r\n <formly-field class=\"repeat-field\" [field]=\"field\"></formly-field>\r\n @if(!props.disabled){\r\n <div class=\"flex items-center pl-2 print:hidden\">\r\n <button matIconButton color=\"warn\" matTooltip=\"删除\" (click)=\"remove($index)\">\r\n <mat-icon color=\"warn\" [svgIcon]=\"'heroicons_outline:trash'\"></mat-icon>\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n\r\n @if(!props.disabled){\r\n <div class=\"mt-2 print:hidden\">\r\n <button matButton=\"filled\" color=\"primary\" (click)=\"add()\">{{ props.addText}}</button>\r\n </div>\r\n }\r\n\r\n</div>","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n OnInit,\r\n inject,\r\n signal,\r\n computed,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatSelectSearchComponent } from 'cmat/components/select-search';\r\nimport { isArray, isEqual, isUndefined } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig, OptionData } from '../common-types';\r\n\r\ninterface SelectProps extends CustomFormFieldProps, FormlyFieldSelectProps {\r\n multiple?: boolean;\r\n disableOptionCentering?: boolean;\r\n typeaheadDebounceInterval?: number;\r\n search: boolean;\r\n canNull: boolean;\r\n showToggleAllCheckbox: boolean;\r\n domain?: DomainConfig;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-select-search-type',\r\n templateUrl: './select.component.html',\r\n styleUrls: ['./select.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCheckboxModule, MatSelectModule, CmatSelectSearchComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatSelectTypeComponent extends FieldType<FieldTypeConfig<SelectProps>> implements OnInit, DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n search: true,\r\n canNull: false,\r\n showToggleAllCheckbox: false\r\n },\r\n };\r\n\r\n readonly searchControl = new FormControl<string | null>('');\r\n\r\n readonly urlData = signal<OptionData[]>([]);\r\n readonly optionsData = signal<OptionData[]>([]);\r\n\r\n readonly filteredOptions = computed(() => {\r\n const allData = this.allOptions();\r\n const search = this._searchText();\r\n\r\n if (!search) {\r\n return allData;\r\n }\r\n\r\n return allData.filter((item) => {\r\n const labelMatch = item.label?.toString().toLowerCase().includes(search);\r\n const valueMatch = item.value?.toString().toLowerCase().includes(search);\r\n return labelMatch ?? valueMatch;\r\n });\r\n });\r\n\r\n\r\n readonly isIndeterminate = computed(() => {\r\n if (!this.props.multiple || !this.props.search) return false;\r\n\r\n const visibleOptions = this.filteredOptions().filter(o => !o.disabled);\r\n if (visibleOptions.length === 0) return false;\r\n\r\n const currentValue = this.formControl.value as OptionData[] | undefined;\r\n if (!isArray(currentValue)) return false;\r\n\r\n const selectedVisibleCount = visibleOptions.filter(opt =>\r\n currentValue.some(sel => this._isSameSelectValue(sel, opt))\r\n ).length;\r\n\r\n return selectedVisibleCount > 0 && selectedVisibleCount < visibleOptions.length;\r\n });\r\n\r\n readonly isChecked = computed(() => {\r\n if (!this.props.multiple || !this.props.search) return false;\r\n\r\n const visibleOptions = this.filteredOptions().filter(o => !o.disabled);\r\n if (visibleOptions.length === 0) return false;\r\n\r\n const currentValue = this.formControl.value as OptionData[] | undefined;\r\n if (!isArray(currentValue)) return false;\r\n\r\n const selectedVisibleCount = visibleOptions.filter(opt =>\r\n currentValue.some(sel => this._isSameSelectValue(sel, opt))\r\n ).length;\r\n\r\n return selectedVisibleCount > 0 && selectedVisibleCount === visibleOptions.length;\r\n });\r\n\r\n\r\n readonly allOptions = computed(() => {\r\n if (this.urlData().length > 0) {\r\n return this.urlData();\r\n }\r\n\r\n return this.optionsData() || [];\r\n });\r\n\r\n private readonly _searchText = signal<string>('');\r\n\r\n private _lastDomain: SelectProps['domain'] = undefined;\r\n private _lastOptions: any = undefined;\r\n\r\n private _domainDataService = inject(DomainDataService);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n\r\n this._refreshData();\r\n\r\n if (!isUndefined(this.formControl.value) && !isArray(this.formControl.value) && this.props.multiple) {\r\n this.formControl.setValue([this.formControl.value]);\r\n }\r\n\r\n\r\n this.searchControl.valueChanges\r\n .pipe(takeUntilDestroyed(this._destroyRef))\r\n .subscribe((value) => {\r\n this._searchText.set(value ?? '');\r\n });\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 2. 检查 options 变化 (仅当 domain 未配置时,options 才生效,但为了稳妥,只要变了就更新)\r\n // 注意:如果 domain 存在,urlData 优先级更高,但更新 optionsData 也无妨,因为 allOptions computed 会优先取 urlData\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n toggleSelectAll(selectAllValue: boolean): void {\r\n const visibleOptions = this.filteredOptions().filter(o => !o.disabled);\r\n\r\n if (selectAllValue) {\r\n this.formControl.setValue([...visibleOptions]);\r\n } else {\r\n this.formControl.setValue([]);\r\n }\r\n this.formControl.markAsDirty();\r\n }\r\n\r\n getAriaLabelledby(): string {\r\n if (this.props.attributes?.['aria-labelledby']) {\r\n return this.props.attributes['aria-labelledby'] as string;\r\n }\r\n return this.formField?._labelId;\r\n }\r\n\r\n getAriaLabel(): string {\r\n return this.props.attributes?.['aria-label'] as string;\r\n }\r\n\r\n compareWithFn(o1: OptionData | null | undefined, o2: OptionData | null | undefined): boolean {\r\n if (!o1 || !o2) {\r\n return o1 === o2;\r\n }\r\n return o1.label === o2.label && o1.value === o2.value;\r\n }\r\n\r\n\r\n private _isSameSelectValue(left: OptionData, right: OptionData): boolean {\r\n return left.value === right.value && left.label === right.label;\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n \r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<OptionData>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatSelectTypeComponent'\r\n });\r\n\r\n // 处理静态 options(当没有 domain 时)\r\n if (!domain?.url && this.field.props?.options && isArray(this.field.props?.options)) {\r\n this.optionsData.set(this.field.props.options as OptionData[] || []);\r\n } else if (!domain?.url) {\r\n this.optionsData.set([]);\r\n }\r\n }\r\n}\r\n","@if(props.multiple){\r\n<mat-select #multiSelect multiple [id]=\"id\" [formControl]=\"formControl\" [placeholder]=\"props.placeholder??''\"\r\n [required]=\"required\" [tabIndex]=\"props.tabindex\" [compareWith]=\"compareWithFn\"\r\n [errorStateMatcher]=\"errorStateMatcher\" [aria-label]=\"getAriaLabel()\" [aria-labelledby]=\"getAriaLabelledby()\"\r\n [disableOptionCentering]=\"props.disableOptionCentering\"\r\n [typeaheadDebounceInterval]=\"props.typeaheadDebounceInterval\">\r\n \r\n @if (props.search) {\r\n <mat-option>\r\n <cmat-select-search [formControl]=\"searchControl\" [showToggleAllCheckbox]=\"props.showToggleAllCheckbox\"\r\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate()\" [toggleAllCheckboxChecked]=\"isChecked()\"\r\n (toggleAll)=\"toggleSelectAll($event)\">\r\n </cmat-select-search>\r\n </mat-option>\r\n }\r\n\r\n @if (allOptions().length !== 0 && props.canNull && !props.multiple) {\r\n <mat-option value=\"\">空</mat-option>\r\n }\r\n\r\n @for (i of filteredOptions(); track i.value || $index) {\r\n @if(i.label){\r\n @if(i.group){\r\n <mat-optgroup [label]=\"i.label\">\r\n @for (child of i.group; track child.value || $index) {\r\n <mat-option [value]=\"child\" [disabled]=\"child.disabled\">\r\n {{ child.label }}\r\n </mat-option>\r\n }\r\n </mat-optgroup>\r\n }@else {\r\n <mat-option [value]=\"i\" [disabled]=\"i.disabled\">{{i.label}}</mat-option>\r\n }\r\n }@else {\r\n <mat-option [value]=\"i\">{{i}}</mat-option>\r\n }\r\n }\r\n</mat-select>\r\n}@else {\r\n<mat-select #multiSelect [id]=\"id\" [formControl]=\"formControl\" [placeholder]=\"props.placeholder??''\"\r\n [required]=\"required\" [tabIndex]=\"props.tabindex\" [compareWith]=\"compareWithFn\"\r\n [errorStateMatcher]=\"errorStateMatcher\" [aria-label]=\"getAriaLabel()\" [aria-labelledby]=\"getAriaLabelledby()\"\r\n [disableOptionCentering]=\"props.disableOptionCentering\"\r\n [typeaheadDebounceInterval]=\"props.typeaheadDebounceInterval\">\r\n \r\n @if (props.search) {\r\n <mat-option>\r\n <cmat-select-search [formControl]=\"searchControl\" [showToggleAllCheckbox]=\"props.showToggleAllCheckbox\"\r\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate()\" [toggleAllCheckboxChecked]=\"isChecked()\"\r\n (toggleAll)=\"toggleSelectAll($event)\">\r\n </cmat-select-search>\r\n </mat-option>\r\n }\r\n\r\n @if (allOptions().length !== 0 && props.canNull && !props.multiple) {\r\n <mat-option value=\"\">空</mat-option>\r\n }\r\n\r\n\r\n @for (i of filteredOptions(); track i.value || $index) {\r\n @if(i.label){\r\n @if(i.group){\r\n <mat-optgroup [label]=\"i.label\">\r\n @for (child of i.group; track child.value || $index) {\r\n <mat-option [value]=\"child\" [disabled]=\"child.disabled\">\r\n {{ child.label }}\r\n </mat-option>\r\n }\r\n </mat-optgroup>\r\n }@else {\r\n <mat-option [value]=\"i\" [disabled]=\"i.disabled\">{{i.label}}</mat-option>\r\n }\r\n }@else {\r\n <mat-option [value]=\"i\">{{i}}</mat-option>\r\n }\r\n }\r\n</mat-select>\r\n}","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n inject,\r\n signal,\r\n OnInit,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CmatSelectTreeComponent, CmatSelectTreeNode } from 'cmat/components/select-tree';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface SelectTreeProps extends CustomFormFieldProps, FormlyFieldSelectProps {\r\n multiple: boolean;\r\n search: boolean;\r\n canNull: boolean;\r\n showToggleAllCheckbox: boolean;\r\n expandable: boolean;\r\n customTriggerLabelTemplate: string;\r\n domain?: DomainConfig\r\n}\r\n\r\n\r\n@Component({\r\n selector: 'cmat-select-tree-type',\r\n templateUrl: './select-tree.component.html',\r\n styleUrls: ['./select-tree.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatSelectTreeComponent]\r\n})\r\nexport class CmatSelectTreeTypeComponent extends FieldType<FieldTypeConfig<SelectTreeProps>> implements OnInit, DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n multiple: false,\r\n search: true,\r\n canNull: false,\r\n showToggleAllCheckbox: false,\r\n expandable: true,\r\n customTriggerLabelTemplate: '${name}'\r\n },\r\n };\r\n\r\n readonly urlData = signal<CmatSelectTreeNode[]>([]);\r\n\r\n private _lastDomain: SelectTreeProps['domain'] = undefined;\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CmatSelectTreeNode>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatSelectTreeTypeComponent'\r\n });\r\n }\r\n\r\n\r\n\r\n}\r\n\r\n","<cmat-select-tree \r\n [formControl]=\"formControl\" \r\n [dataSource]=\"urlData()\" \r\n [customTriggerLabelTemplate]=\"'${name}'\"\r\n [multiple]=\"props.multiple\" \r\n [overallSearchEnabled]=\"props.search\" \r\n [canNull]=\"props.canNull\"\r\n [showToggleAllCheckbox]=\"props.showToggleAllCheckbox\" \r\n [expandable]=\"props.expandable\" \r\n [placeholder]=\"placeholder\"\r\n [tabIndex]=\"props.tabindex\" \r\n [required]=\"required\">\r\n</cmat-select-tree>","import { ChangeDetectionStrategy, Component, DestroyRef, inject, signal, OnInit, DoCheck } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CmatSelectTableComponent, CmatSelectTableDataSource, CmatSelectTableRow } from 'cmat/components/select-table';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface SelectTableProps extends CustomFormFieldProps, FormlyFieldSelectProps {\r\n multiple: boolean;\r\n search: boolean;\r\n canNull: boolean;\r\n customTriggerLabelTemplate: string;\r\n domain?: DomainConfig\r\n}\r\n\r\n\r\n@Component({\r\n selector: 'cmat-select-table-type',\r\n templateUrl: './select-table.component.html',\r\n styleUrls: ['./select-table.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatSelectTableComponent]\r\n})\r\nexport class CmatSelectTableTypeComponent extends FieldType<FieldTypeConfig<SelectTableProps>> implements OnInit,DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n multiple: false,\r\n search: true,\r\n canNull: false,\r\n customTriggerLabelTemplate: '${name}'\r\n },\r\n };\r\n\r\n readonly urlData = signal<CmatSelectTableDataSource<CmatSelectTableRow>>({ columns: [], data: [] });\r\n\r\n private _lastDomain: SelectTableProps['domain'] = undefined;\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CmatSelectTableDataSource<CmatSelectTableRow>>(domain, this._destroyRef, {\r\n transform: (rawData) => {\r\n // Select-Table 需要特殊验证数据结构\r\n if (this._isValidDataSource(rawData)) {\r\n return rawData as unknown as CmatSelectTableDataSource<CmatSelectTableRow>[];\r\n }\r\n console.warn('Invalid select-table data structure');\r\n return [];\r\n },\r\n onSuccess: (data) => {\r\n if (data.length > 0) {\r\n this.urlData.set(data[0]);\r\n } else {\r\n this.urlData.set({ columns: [], data: [] });\r\n }\r\n },\r\n componentName: 'CmatSelectTableTypeComponent'\r\n });\r\n }\r\n\r\n\r\n\r\n private _isValidDataSource(data: unknown): data is CmatSelectTableDataSource<CmatSelectTableRow> {\r\n return (\r\n typeof data === 'object' &&\r\n data !== null &&\r\n 'columns' in data &&\r\n 'data' in data &&\r\n Array.isArray(data.columns) &&\r\n Array.isArray(data.data)\r\n );\r\n }\r\n}\r\n\r\n","<cmat-select-table \r\n [formControl]=\"formControl\" \r\n [dataSource]=\"urlData()\" \r\n [customTriggerLabelTemplate]=\"'${name}'\"\r\n [multiple]=\"props.multiple\" \r\n [overallSearchEnabled]=\"props.search\" \r\n [canNull]=\"props.canNull\"\r\n [placeholder]=\"placeholder\" \r\n [tabIndex]=\"props.tabindex\" \r\n [required]=\"required\">\r\n</cmat-select-table>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatStepperModule } from '@angular/material/stepper';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { StepperProps } from '../stepper.type';\r\n\r\n@Component({\r\n selector: 'cmat-stepper-horizontal-type',\r\n templateUrl: './stepper.component.html',\r\n styleUrls: ['./stepper.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [FormlyModule, MatStepperModule, MatButtonModule, ReactiveFormsModule, MatIconModule]\r\n})\r\nexport class CmatStepperHorizontalTypeComponent extends FieldType<FieldTypeConfig<StepperProps>> {\r\n isValid(field: FormlyFieldConfig): boolean {\r\n if (field.key) {\r\n if (field.formControl)\r\n return field.formControl.valid;\r\n\r\n return true;\r\n }\r\n\r\n return field.fieldGroup ? field.fieldGroup.every(f => this.isValid(f)) : true;\r\n }\r\n}\r\n","<mat-horizontal-stepper [linear]=\"props.isLinear\" [tabIndex]=\"props.tabindex\">\r\n\r\n <ng-template matStepperIcon=\"edit\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_solid:pencil'\"></mat-icon>\r\n </ng-template>\r\n <ng-template matStepperIcon=\"done\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n </ng-template>\r\n\r\n @for (step of field.fieldGroup; track $index) {\r\n <mat-step [stepControl]=\"step.formControl!\" [editable]=\"step.props?.isEditable||$last\" [optional]=\"step.props?.isOptional\">\r\n <ng-template matStepLabel>{{ step.props?.label||'' }}</ng-template>\r\n <div class=\"py-2\">\r\n <formly-field [field]=\"step\"></formly-field>\r\n </div>\r\n <div class=\"mt-2 flex flex-row gap-2\">\r\n @if($index !== 0){\r\n <button matStepperPrevious matButton=\"filled\" color=\"primary\" type=\"button\">上一步</button>\r\n }\r\n\r\n @if(!$last){\r\n <button matStepperNext matButton=\"filled\" color=\"primary\" type=\"button\" [disabled]=\"!isValid(step)\">\r\n 下一步\r\n </button>\r\n }\r\n </div>\r\n </mat-step>\r\n }\r\n\r\n</mat-horizontal-stepper>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatStepperModule } from '@angular/material/stepper';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { StepperProps } from '../stepper.type';\r\n\r\n@Component({\r\n selector: 'cmat-stepper-vertical-type',\r\n templateUrl: './stepper.component.html',\r\n styleUrls: ['./stepper.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [FormlyModule, MatStepperModule, MatButtonModule, ReactiveFormsModule, MatIconModule]\r\n})\r\nexport class CmatStepperVerticalTypeComponent extends FieldType<FieldTypeConfig<StepperProps>> {\r\n isValid(field: FormlyFieldConfig): boolean {\r\n if (field.key) {\r\n if (field.formControl)\r\n return field.formControl.valid;\r\n\r\n return true;\r\n }\r\n\r\n return field.fieldGroup ? field.fieldGroup.every(f => this.isValid(f)) : true;\r\n }\r\n}\r\n","<mat-vertical-stepper [linear]=\"props.isLinear\" [tabIndex]=\"props.tabindex\">\r\n <ng-template matStepperIcon=\"edit\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_solid:pencil'\"></mat-icon>\r\n </ng-template>\r\n <ng-template matStepperIcon=\"done\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n </ng-template>\r\n\r\n @for (step of field.fieldGroup; track $index) {\r\n <mat-step [stepControl]=\"step.formControl!\" [editable]=\"step.props?.isEditable||$last\" [optional]=\"step.props?.isOptional\">\r\n <ng-template matStepLabel>{{ step.props?.label||'' }}</ng-template>\r\n <div class=\"py-2\">\r\n <formly-field [field]=\"step\"></formly-field>\r\n </div>\r\n\r\n <div class=\"mt-2 flex flex-row gap-2\">\r\n @if($index!==0){\r\n <button matStepperPrevious matButton=\"filled\" color=\"primary\" type=\"button\">上一步</button>\r\n }\r\n\r\n @if(!$last){\r\n <button matStepperNext matButton=\"filled\" color=\"primary\" type=\"button\" [disabled]=\"!isValid(step)\">\r\n 下一步\r\n </button>\r\n }\r\n </div>\r\n </mat-step>\r\n }\r\n</mat-vertical-stepper>","import { CdkDrag } from '@angular/cdk/drag-drop';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\nimport {\r\n Component,\r\n ChangeDetectionStrategy,\r\n ViewContainerRef,\r\n inject,\r\n signal,\r\n viewChild,\r\n TemplateRef,\r\n computed,\r\n effect,\r\n} from '@angular/core';\r\nimport { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatTable, MatTableModule } from '@angular/material/table';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { FieldArrayType, FieldTypeConfig, FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface TableProps extends CustomFormFieldProps {\r\n addText: string;\r\n showColumn?: boolean;\r\n}\r\n\r\ntype TableRowModel = Record<string, unknown>;\r\n\r\ninterface TableFieldModel {\r\n fieldArray?: {\r\n fieldGroup?: FormlyFieldConfig[];\r\n };\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-table-type',\r\n templateUrl: 'table.component.html',\r\n styleUrls: ['./table.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatButtonModule, MatIconModule, MatTableModule, FormsModule, FormlyModule, CdkDrag,\r\n ReactiveFormsModule, MatDialogModule, NgTemplateOutlet, MatTooltipModule]\r\n})\r\nexport class CmatTableTypeComponent extends FieldArrayType<FieldTypeConfig<TableProps>> {\r\n inlineform = new FormGroup({});\r\n\r\n readonly columns = computed(() => {\r\n const fieldGroup = this._fieldModel.fieldArray?.fieldGroup?.[0]?.fieldGroup ?? [];\r\n return fieldGroup\r\n .filter(field => field.props?.showColumn)\r\n .map(field => ({\r\n key: String(field.key ?? ''),\r\n label: field.props?.label ?? '',\r\n }));\r\n });\r\n\r\n readonly displayedColumns = signal<string[]>([]);\r\n\r\n readonly refreshVersion = signal(0);\r\n\r\n readonly currentMode = signal<Record<string, unknown>>({});\r\n readonly currentIndex = signal<number>(-1);\r\n readonly dialogType = signal<'add' | 'edit' | ''>('');\r\n\r\n override defaultOptions = {\r\n props: {\r\n addText: '新增'\r\n },\r\n };\r\n\r\n private readonly dialogRef = viewChild<TemplateRef<unknown>>('dialogRef');\r\n private readonly table = viewChild<MatTable<TableRowModel>>('table');\r\n\r\n private readonly _dialog = inject(MatDialog);\r\n private readonly _viewContainerRef = inject(ViewContainerRef);\r\n private _dialogRef!: MatDialogRef<unknown>;\r\n\r\n constructor() {\r\n super();\r\n\r\n effect(() => {\r\n const cols = this.columns().map(c => c.key);\r\n if (this.props.disabled) {\r\n this.displayedColumns.set(cols);\r\n } else {\r\n this.displayedColumns.set([...cols, 'operate']);\r\n }\r\n });\r\n }\r\n\r\n get fieldArray(): FormlyFieldConfig[] {\r\n return this._fieldModel.fieldArray?.fieldGroup ?? [];\r\n }\r\n\r\n get key(): string {\r\n return this._fieldModel.fieldArray?.fieldGroup?.[0]?.key as string ?? 'data';\r\n }\r\n\r\n private get _tableProps(): TableProps {\r\n return this.props;\r\n }\r\n\r\n private get _fieldModel(): TableFieldModel {\r\n return this.field as TableFieldModel;\r\n }\r\n\r\n addRow(): void {\r\n this.dialogType.set('add');\r\n this.currentMode.set({});\r\n this.inlineform.reset();\r\n\r\n this._openDialog();\r\n }\r\n\r\n editRow(item: TableRowModel, index: number): void {\r\n this.currentIndex.set(index);\r\n this.dialogType.set('edit');\r\n\r\n this.currentMode.set({\r\n [this.key]: { ...item } // 浅拷贝以防止直接修改原数据直到确认\r\n });\r\n\r\n this._openDialog();\r\n }\r\n\r\n deleteRow(index: number): void {\r\n this.remove(index);\r\n // 触发变更检测以更新表格视图\r\n this.refreshVersion.update(v => v + 1);\r\n }\r\n\r\n confirm(): void {\r\n if (this.inlineform.invalid) {\r\n this.inlineform.markAllAsTouched();\r\n return;\r\n }\r\n\r\n const model = this.model as TableRowModel[] | undefined;\r\n // 获取表单中编辑/新增的实际数据对象\r\n const currentValue = this.currentMode()[this.key] as TableRowModel;\r\n\r\n if (!currentValue) {\r\n this._dialogRef.close();\r\n return;\r\n }\r\n\r\n if (this.dialogType() === 'add') {\r\n this.add(model?.length ?? 0, currentValue);\r\n } else if (this.dialogType() === 'edit') {\r\n const index = this.currentIndex();\r\n if (index > -1 && model) {\r\n model[index] = currentValue;\r\n this.formControl.patchValue([...model]);\r\n }\r\n }\r\n\r\n this.refreshVersion.update(v => v + 1);\r\n this.table()?.renderRows();\r\n\r\n this._dialogRef.close();\r\n }\r\n\r\n private _openDialog(): void {\r\n const template = this.dialogRef();\r\n if (!template) return;\r\n\r\n this._dialogRef = this._dialog.open(template, {\r\n panelClass: ['cmat-table-dialog-container'],\r\n viewContainerRef: this._viewContainerRef\r\n });\r\n\r\n this._dialogRef.afterClosed().subscribe(() => {\r\n this.dialogType.set('');\r\n this.currentIndex.set(-1);\r\n });\r\n }\r\n}","<div class=\"relative flex flex-row flex-none items-center justify-between p-2 border-b\">\r\n <div>\r\n @if(props.label){\r\n <legend class=\"text-lg\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n </legend>\r\n }\r\n @if(props.description){\r\n <p>{{ props.description }}</p>\r\n }\r\n </div>\r\n\r\n <div class=\"cmat-table-type\" [attr.data-refresh]=\"refreshVersion()\">\r\n @if(!props.disabled){\r\n <div class=\"flex shrink-0 items-center ml-0 md:ml-4 print:hidden\">\r\n <button matButton=\"filled\" [color]=\"'primary'\" (click)=\"addRow()\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:plus'\"></mat-icon>\r\n <span class=\"ml-2\">{{props.addText}}</span>\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n\r\n<table #table mat-table class=\"w-full\" [dataSource]=\"model||[]\" [tabIndex]=\"props.tabindex\">\r\n @for (column of columns(); track $index) {\r\n <ng-container [matColumnDef]=\"column.key\">\r\n <th *matHeaderCellDef mat-header-cell> {{ column.label }} </th>\r\n <td *matCellDef=\"let element; let i = index\" mat-cell>\r\n <div class=\" has-label-on-mobile\" [attr.data-label]=\"column.label +':'\">\r\n {{element[column.key]}}\r\n </div>\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <ng-container matColumnDef=\"operate\" stickyEnd>\r\n <th *matHeaderCellDef mat-header-cell class=\"print:hidden\">@if(!props.disabled){操作}</th>\r\n <td *matCellDef=\"let element; let i = index\" mat-cell class=\"w-24 print:hidden\">\r\n @if(!props.disabled){\r\n <div class=\"flex flex-col lg:w-full\">\r\n <div class=\"relative flex flex-row gap-2 lg:m-2 justify-center\">\r\n <button type=\"button\" class=\"w-8 min-h-8 h-8 max-w-8 lg:opacity-0 lg:group-hover:opacity-100\"\r\n matIconButton [matTooltip]=\"'编辑'\" (click)=\"editRow(element,i)\">\r\n <mat-icon class=\"icon-size-5\" color=\"primary\" [svgIcon]=\"'heroicons_solid:pencil-square'\">\r\n </mat-icon>\r\n </button>\r\n\r\n <button type=\"button\" class=\"w-8 min-h-8 h-8 max-w-8 lg:opacity-0 lg:group-hover:opacity-100\"\r\n matIconButton [matTooltip]=\"'移除'\" (click)=\"deleteRow(i)\">\r\n <mat-icon class=\"icon-size-5\" color=\"warn\" [svgIcon]=\"'heroicons_solid:trash'\"></mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </td>\r\n </ng-container>\r\n\r\n <tr *matHeaderRowDef=\"displayedColumns()\" mat-header-row></tr>\r\n <tr *matRowDef=\"let row; columns: displayedColumns();\" mat-row class=\"group border\"></tr>\r\n</table>\r\n\r\n<ng-template #inlineTable>\r\n <div class=\"overflow-y-auto scrollbar-custom w-full\">\r\n <form [formGroup]=\"inlineform\">\r\n <formly-form [fields]=\"fieldArray\" [model]=\"currentMode()\" [form]=\"inlineform\"></formly-form>\r\n </form>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #dialogRef>\r\n <div mat-dialog-title cdkDrag class=\"-mt-6\" cdkDragRootElement=\".cdk-overlay-pane\" cdkDragHandle>\r\n <h2 class=\"pointer-events-none text-xl\">{{ props.label +'详细页'}}</h2>\r\n </div>\r\n\r\n <mat-dialog-content>\r\n <ng-container *ngTemplateOutlet=\"inlineTable\"></ng-container>\r\n </mat-dialog-content>\r\n\r\n <mat-dialog-actions>\r\n <div class=\"w-full flex justify-end items-center\">\r\n <button matButton=\"filled\" color=\"primary\" cdkFocusInitial (click)=\"confirm()\">\r\n 确定\r\n </button>\r\n <button matButton=\"outlined\" mat-dialog-close>\r\n 取消\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-template>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatTabsModule } from '@angular/material/tabs';\r\nimport { FieldTypeConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\n\r\n@Component({\r\n selector: 'cmat-tab-type',\r\n templateUrl: './tab.component.html',\r\n styleUrls: ['./tab.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatTabsModule, FormlyModule]\r\n})\r\nexport class CmatTabTypeComponent extends FieldType<FieldTypeConfig> {\r\n\r\n\r\n}\r\n","<mat-tab-group [tabIndex]=\"props.tabindex\">\r\n @for (tab of field.fieldGroup; track $index) {\r\n <mat-tab [label]=\"tab.props?.label||''\" [disabled]=\"tab.props?.disabled\">\r\n <div class=\"py-2\">\r\n <formly-field [field]=\"tab\"></formly-field>\r\n </div>\r\n </mat-tab>\r\n }\r\n</mat-tab-group>","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\r\nimport { TemplatePortal } from '@angular/cdk/portal';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n TemplateRef,\r\n ViewContainerRef,\r\n inject,\r\n signal,\r\n viewChild,\r\n computed,\r\n OnInit,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatRippleModule } from '@angular/material/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isArray, isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface TagItem extends Record<string, unknown> {\r\n value?: unknown;\r\n label?: unknown;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface TagsProps extends CustomFormFieldProps {\r\n domain?: DomainConfig\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-tags-type',\r\n templateUrl: './tags.component.html',\r\n styleUrls: ['./tags.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatIconModule, MatCheckboxModule,MatRippleModule]\r\n})\r\nexport class CmatTagsTypeComponent extends FieldType<FieldTypeConfig<TagsProps>> implements OnInit,DoCheck {\r\n readonly allTags = computed(() => {\r\n const domainData = this._urlDataSignal();\r\n if (domainData.length > 0) {\r\n return domainData;\r\n }\r\n return this._staticOptionsSignal();\r\n });\r\n\r\n readonly filteredItems = signal<TagItem[]>([]);\r\n\r\n readonly refreshVersion = signal(0);\r\n\r\n private _urlDataSignal = signal<TagItem[]>([]);\r\n private _staticOptionsSignal = signal<TagItem[]>([]);\r\n\r\n private readonly _tagsPanelOrigin = viewChild<ElementRef<HTMLElement>>('tagsPanelOrigin');\r\n private readonly _tagsPanel = viewChild<TemplateRef<unknown>>('tagsPanel');\r\n\r\n private _lastDomain: TagsProps['domain'] = undefined;\r\n private _lastOptions: any = undefined;\r\n\r\n private _overlay = inject(Overlay);\r\n private _viewContainerRef = inject(ViewContainerRef);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n private _tagsPanelOverlayRef!: OverlayRef;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n\r\n this._refreshDomainData();\r\n\r\n this._refreshOptionData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n this._refreshDomainData();\r\n }\r\n\r\n // 2. 检查 options 变化 (仅当 domain 未配置时,options 才生效,但为了稳妥,只要变了就更新)\r\n // 注意:如果 domain 存在,urlData 优先级更高,但更新 optionsData 也无妨,因为 allOptions computed 会优先取 urlData\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n this._refreshOptionData();\r\n }\r\n }\r\n\r\n // --- 业务逻辑方法 ---\r\n\r\n openTagsPanel(): void {\r\n // 每次打开时,重置过滤列表为所有可用标签\r\n this._syncFilteredItems();\r\n\r\n const origin = this._tagsPanelOrigin();\r\n const template = this._tagsPanel();\r\n\r\n if (!origin || !template) return;\r\n\r\n // 如果已经打开,先关闭\r\n if (this._tagsPanelOverlayRef?.hasAttached()) {\r\n this._tagsPanelOverlayRef.detach();\r\n }\r\n\r\n this._tagsPanelOverlayRef = this._overlay.create({\r\n backdropClass: '',\r\n hasBackdrop: true,\r\n scrollStrategy: this._overlay.scrollStrategies.block(),\r\n positionStrategy: this._overlay.position()\r\n .flexibleConnectedTo(origin.nativeElement)\r\n .withFlexibleDimensions(true)\r\n .withViewportMargin(64)\r\n .withLockedPosition(true)\r\n .withPositions([\r\n {\r\n originX: 'start',\r\n originY: 'bottom',\r\n overlayX: 'start',\r\n overlayY: 'top'\r\n }\r\n ])\r\n });\r\n\r\n const templatePortal = new TemplatePortal(template, this._viewContainerRef);\r\n this._tagsPanelOverlayRef.attach(templatePortal);\r\n\r\n // 聚焦输入框\r\n setTimeout(() => {\r\n this._tagsPanelOverlayRef.overlayElement.querySelector('input')?.focus();\r\n }, 0);\r\n\r\n this._tagsPanelOverlayRef.backdropClick().subscribe(() => {\r\n this.closeTagsPanel();\r\n });\r\n }\r\n\r\n closeTagsPanel(): void {\r\n if (this._tagsPanelOverlayRef?.hasAttached()) {\r\n this._tagsPanelOverlayRef.detach();\r\n this._tagsPanelOverlayRef.dispose();\r\n }\r\n }\r\n\r\n filterTags(event: Event): void {\r\n const value = ((event.target as HTMLInputElement | null)?.value ?? '').toLowerCase();\r\n const all = this.allTags();\r\n\r\n if (!value) {\r\n this.filteredItems.set(all);\r\n return;\r\n }\r\n\r\n const filtered = all.filter((tag: TagItem) =>\r\n this._toSearchText(tag.label).toLowerCase().includes(value) ||\r\n this._toSearchText(tag.value).toLowerCase().includes(value)\r\n );\r\n this.filteredItems.set(filtered);\r\n }\r\n\r\n toggleTag(tag: TagItem): void {\r\n if (tag.disabled) return;\r\n\r\n const currentVal = (this.formControl.value as TagItem[] | null) ?? [];\r\n // 使用不可变方式更新数组\r\n const existsIndex = currentVal.findIndex((i: TagItem) => i.value === tag.value);\r\n\r\n let newVal: TagItem[];\r\n if (existsIndex > -1) {\r\n newVal = currentVal.filter((_, index) => index !== existsIndex);\r\n } else {\r\n newVal = [tag, ...currentVal];\r\n }\r\n\r\n this.formControl.setValue(newVal);\r\n\r\n this.refreshVersion.update(v => v + 1);\r\n }\r\n\r\n isCheck(tag: TagItem): boolean {\r\n const currentVal = this.formControl.value as TagItem[] | null;\r\n if (!currentVal) return false;\r\n return currentVal.some((i: TagItem) => i.value === tag.value);\r\n }\r\n\r\n private _syncFilteredItems(): void {\r\n this.filteredItems.set(this.allTags());\r\n }\r\n\r\n private _toSearchText(value: unknown): string {\r\n return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' ? String(value) : '';\r\n }\r\n\r\n private _refreshDomainData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<TagItem>(domain, this._destroyRef, {\r\n onSuccess: (data) => {\r\n this._urlDataSignal.set(data);\r\n this._syncFilteredItems();\r\n },\r\n componentName: 'CmatTagsTypeComponent'\r\n });\r\n }\r\n\r\n private _refreshOptionData(): void {\r\n if (isArray(this.field.props?.options)) {\r\n this._staticOptionsSignal.set(this.field.props?.options as TagItem[]);\r\n this._syncFilteredItems();\r\n } else if (this.field.props?.options && !isArray(this.field.props?.options)) {\r\n // 处理 Observable options\r\n this.field.props.options.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(\r\n (data: TagItem[]) => {\r\n this._staticOptionsSignal.set(data || []);\r\n this._syncFilteredItems();\r\n }\r\n );\r\n }\r\n }\r\n}\r\n","<div class=\"text-lg mb-2\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n</div>\r\n<div class=\"flex flex-wrap items-center -m-2\" [attr.data-refresh]=\"refreshVersion()\" [tabIndex]=\"props.tabindex\">\r\n <ng-container>\r\n @for (selectedItem of formControl.value; track selectedItem.value || $index) {\r\n <div\r\n class=\"flex items-center justify-center px-4 m-1.5 rounded-full leading-9 text-gray-500 bg-slate-100 dark:text-gray-300 dark:bg-slate-700\">\r\n <span class=\"text-md font-medium whitespace-nowrap\">{{selectedItem.label}}</span>\r\n </div>\r\n }\r\n\r\n <div #tagsPanelOrigin\r\n class=\"flex items-center justify-center px-4 m-1.5 rounded-full leading-9 cursor-pointer text-gray-500 bg-slate-100 dark:text-gray-300 dark:bg-slate-700 print:hidden\" \r\n role=\"presentation\" \r\n (click)=\"openTagsPanel()\">\r\n\r\n @if(formControl.value?.length && !disabled){\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:pencil-square'\"></mat-icon>\r\n <span class=\"ml-1.5 text-md font-medium whitespace-nowrap\">编辑</span>\r\n }\r\n\r\n @if(!formControl.value?.length && !disabled){\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:plus-circle'\"></mat-icon>\r\n <span class=\"ml-1.5 text-md font-medium whitespace-nowrap\">新增</span>\r\n }\r\n\r\n <ng-template #tagsPanel>\r\n <div class=\"w-60 rounded-sm border shadow-md bg-card\">\r\n <div class=\"flex items-center m-3 mr-2\">\r\n <div class=\"flex items-center\">\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:magnifying-glass'\">\r\n </mat-icon>\r\n <div class=\"ml-2\">\r\n <input class=\"w-full min-w-0 py-1 border-none\" type=\"text\" placeholder=\"输入标签名\"\r\n [maxLength]=\"30\" (input)=\"filterTags($event)\">\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col max-h-64 py-2 border-t overflow-y-auto scrollbar-custom\">\r\n @if (filteredItems().length > 0) {\r\n @for (tag of filteredItems(); track tag.value || $index) {\r\n <div role=\"presentation\"\r\n class=\"flex items-center h-10 min-h-10 pl-1 pr-4 cursor-pointer hover:bg-hover\"\r\n matRipple [matRippleDisabled]=\"disabled\" (click)=\"toggleTag(tag)\">\r\n <mat-checkbox class=\"flex items-center h-10 min-h-10\" [color]=\"'primary'\"\r\n [disabled]=\"tag.disabled\" [checked]=\"isCheck(tag)\">\r\n {{tag.label}}\r\n </mat-checkbox>\r\n </div>\r\n }\r\n } @else {\r\n <div class=\"flex flex-auto flex-col justify-center px-4 h-10 min-h-10\">\r\n 无结果\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n</div>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\n\r\n@Component({\r\n selector: 'cmat-textarea-type',\r\n templateUrl: './textarea.component.html',\r\n styleUrls: ['./textarea.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatInputModule, ReactiveFormsModule]\r\n})\r\nexport class CmatTextareaTypeComponent extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n cols: 1,\r\n rows: 3,\r\n },\r\n };\r\n}","<textarea matInput [placeholder]=\"placeholder\" \r\n [readonly]=\"props.readonly\" [errorStateMatcher]=\"errorStateMatcher\"\r\n [cols]=\"props.cols\"\r\n [rows]=\"props.rows\"\r\n [tabindex]=\"props.tabindex\"\r\n [formControl]=\"formControl\" [required]=\"required\">\r\n</textarea>","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';\r\nimport { FormControl, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\r\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatUploadQueueComponent } from 'cmat/components/upload';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface UploadFileItem {\r\n [key: string]: unknown;\r\n id: string;\r\n name: string;\r\n type: string;\r\n size: number;\r\n}\r\n\r\ninterface UploadProps extends CustomFormFieldProps {\r\n fileAlias: string;\r\n filePath: string;\r\n fileCategory: string;\r\n multiple: boolean;\r\n accept: string;\r\n editMode: boolean;\r\n autoUpload: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-upload-type',\r\n templateUrl: './upload.component.html',\r\n styleUrls: ['./upload.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatUploadQueueComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatUploadTypeComponent extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n fileAlias: 'fileData',\r\n filePath: 'path',\r\n fileCategory: '分类',\r\n multiple: true,\r\n accept: '',\r\n editMode: true,\r\n autoUpload: true\r\n }\r\n };\r\n\r\n private _rootGroup: UntypedFormGroup | null = null;\r\n\r\n ngOnInit(): void {\r\n this._rootGroup = this._getRootGroup(this.field);\r\n\r\n if (this._rootGroup) {\r\n if (!this._rootGroup.contains('uploadId')) {\r\n this._rootGroup.addControl('uploadId', new FormControl<string[]>([]));\r\n }\r\n if (!this._rootGroup.contains('removeId')) {\r\n this._rootGroup.addControl('removeId', new FormControl<string[]>([]));\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 处理上传成功事件\r\n * @param id 新上传文件的 ID\r\n */\r\n upload(id: string): void {\r\n if (!id || !this._rootGroup) return;\r\n\r\n const control = this._rootGroup.get('uploadId');\r\n if (control) {\r\n const currentIds = control.value as string[] || [];\r\n // 避免重复添加\r\n if (!currentIds.includes(id)) {\r\n control.setValue([id, ...currentIds]);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 处理移除事件\r\n * @param id 被移除文件的 ID\r\n */\r\n remove(id: string): void {\r\n if (!id || !this._rootGroup) return;\r\n\r\n const control = this._rootGroup.get('removeId');\r\n if (control) {\r\n const currentIds = control.value as string[] || [];\r\n // 避免重复添加\r\n if (!currentIds.includes(id)) {\r\n control.setValue([id, ...currentIds]);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 处理文件列表更新事件\r\n * @param data 文件数据数组或单个对象\r\n */\r\n updateData(data: unknown): void {\r\n const items = Array.isArray(data) ? data : [data];\r\n\r\n const standardizedFiles = items.map(item => this._standardizeFileItem(item));\r\n\r\n // 过滤掉无效项\r\n const validFiles = standardizedFiles.filter((item): item is UploadFileItem => item !== null);\r\n\r\n this.formControl.setValue(validFiles);\r\n }\r\n\r\n /**\r\n * 递归查找根 FormGroup\r\n * @param field 当前 Formly 字段\r\n * @returns 根 FormGroup\r\n */\r\n private _getRootGroup(field: FieldTypeConfig<UploadProps>): UntypedFormGroup | null {\r\n // Formly 字段通常有 parent 属性指向父字段,直到根字段\r\n // 根字段的 form 属性通常是根 FormGroup\r\n let currentField: FormlyFieldConfig = field;\r\n while (currentField.parent) {\r\n currentField = currentField.parent;\r\n }\r\n\r\n // 尝试从根字段获取 form,或者直接使用 field.form 如果它是根\r\n // 注意:在某些 Formly 配置中,field.form 可能始终指向根表单\r\n if (currentField.form && currentField.form instanceof UntypedFormGroup) {\r\n return currentField.form;\r\n }\r\n\r\n // fallback: 如果找不到,返回 null,调用者需处理\r\n return null;\r\n }\r\n\r\n /**\r\n * 标准化文件对象,确保包含必要的字段\r\n * @param item 原始文件数据\r\n * @returns 标准化的文件对象或 null(如果无效)\r\n */\r\n private _standardizeFileItem(item: unknown): UploadFileItem | null {\r\n if (typeof item !== 'object' || item === null) {\r\n return null;\r\n }\r\n\r\n const obj = item as Record<string, unknown>;\r\n\r\n if (typeof obj.id !== 'string') {\r\n return null;\r\n }\r\n\r\n return {\r\n id: obj.id,\r\n name: typeof obj.name === 'string' ? obj.name : '',\r\n type: typeof obj.type === 'string' ? obj.type : '',\r\n size: typeof obj.size === 'number' ? obj.size : 0,\r\n // 保留其他额外属性\r\n ...obj\r\n };\r\n }\r\n}","<cmat-upload-queue \r\n [tabindex]=\"props.tabindex\" \r\n [fileAlias]=\"props.fileAlias\"\r\n [filePath]=\"props.filePath\" \r\n [required]=\"required\" \r\n [fileCategory]=\"props.fileCategory\" \r\n [multiple]=\"props.multiple\"\r\n [accept]=\"props.accept\" \r\n [title]=\"props.label ?? '附件'\" \r\n [editMode]=\"props.editMode && !disabled\" \r\n [filesData]=\"formControl.value\"\r\n [autoUpload]=\"props.autoUpload\" \r\n (outputUploadIdEvent)=\"upload($event)\" \r\n (outputRemoveIdEvent)=\"remove($event)\" \r\n (outputFilesDataEvent)=\"updateData($event)\">\r\n</cmat-upload-queue>","import { HttpEvent, HttpEventType } from '@angular/common/http';\r\nimport {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n OnDestroy,\r\n inject,\r\n signal,\r\n viewChild,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { AbstractControl, FormControl, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\r\nimport BlotFormatter from '@enzedonline/quill-blot-formatter2';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatFilesUtilService, FileModel } from 'cmat/components/upload';\r\nimport { CmatUrlStateConfigService } from 'cmat/services/config';\r\nimport { CmatUtilsService } from 'cmat/services/utils';\r\nimport dayjs from 'dayjs';\r\nimport {\r\n Document,\r\n Packer,\r\n Paragraph,\r\n TextRun,\r\n ImageRun,\r\n HeadingLevel,\r\n AlignmentType,\r\n BorderStyle,\r\n HighlightColor,\r\n IParagraphOptions\r\n} from 'docx';\r\nimport * as FileSaver from 'file-saver-es';\r\nimport { isNil } from 'lodash-es';\r\nimport { QuillModule, QuillModules } from 'ngx-quill';\r\nimport Quill from 'quill';\r\nimport QuillImageDropAndPaste from 'quill-image-drop-and-paste';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\nQuill.register('modules/blotFormatter', BlotFormatter);\r\nQuill.register('modules/imageDropAndPaste', QuillImageDropAndPaste);\r\n\r\ninterface QuillProps extends CustomFormFieldProps {\r\n fileAlias: string;\r\n filePath: string;\r\n}\r\n\r\ninterface QuillDeltaOp {\r\n insert?: string | { image?: string; video?: string };\r\n attributes?: QuillAttributes;\r\n}\r\n\r\ninterface QuillDelta {\r\n ops: QuillDeltaOp[];\r\n}\r\n\r\ninterface QuillAttributes {\r\n bold?: boolean;\r\n italic?: boolean;\r\n underline?: boolean;\r\n size?: string;\r\n font?: string;\r\n color?: string;\r\n background?: string;\r\n align?: string;\r\n header?: string | number;\r\n list?: string;\r\n}\r\n\r\ninterface QuillRange {\r\n index: number;\r\n length: number;\r\n}\r\n\r\ninterface QuillEditor {\r\n container: { innerHTML: string };\r\n getSelection(focus?: boolean): QuillRange | null;\r\n setSelection(index: number): void;\r\n insertEmbed(index: number, type: string, value: string): void;\r\n getContents(): QuillDelta;\r\n getLength(): number;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-quill-type',\r\n templateUrl: './quill.component.html',\r\n styleUrls: ['./quill.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, QuillModule]\r\n})\r\nexport class CmatQuillTypeComponent extends FieldType<FieldTypeConfig<QuillProps>> implements OnDestroy, AfterViewInit {\r\n quillModules: QuillModules = {\r\n toolbar: {\r\n container: [\r\n ['bold', 'italic', 'underline'],\r\n [{ 'size': ['small', false, 'large', 'huge'] }],\r\n [{ 'header': [1, 2, 3, 4, 5, 6, false] }],\r\n [{ 'color': [] }, { 'background': [] }],\r\n [{ 'font': [] }],\r\n [{ 'align': [] }, 'clean'],\r\n ['link', 'image', 'video', 'word']\r\n ],\r\n handlers: {\r\n image: this._imgFileHandler.bind(this),\r\n video: this._videoFileHandler.bind(this),\r\n word: (): void => {\r\n this._wordFileHandler().catch((err): void => console.error('Word 导出失败:', err));\r\n },\r\n },\r\n },\r\n clipboard: {\r\n matchVisual: false,\r\n },\r\n blotFormatter: {\r\n\r\n },\r\n imageDropAndPaste: {\r\n handler: this._dropFileHandler.bind(this)\r\n }\r\n };\r\n\r\n override defaultOptions = {\r\n props: {\r\n fileAlias: 'fileData',\r\n filePath: 'path'\r\n }\r\n };\r\n\r\n baseGroup: UntypedFormGroup;\r\n\r\n readonly isExporting = signal(false);\r\n private readonly imgInput = viewChild<ElementRef<HTMLElement>>('imgInput');\r\n private readonly videoInput = viewChild<ElementRef<HTMLElement>>('videoInput');\r\n private readonly _editorInstance = signal<QuillEditor | null>(null);\r\n private readonly _imgIds = signal<string[]>([]);\r\n\r\n private _fileService = inject(CmatFilesUtilService);\r\n private _urlStateConfigService = inject(CmatUrlStateConfigService);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n private readonly _config = this._urlStateConfigService.config;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n const icons = Quill.import('ui/icons') as Record<string, unknown>;\r\n icons['word'] = `\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" width=\"20px\"><path fill=\"#2196F3\" d=\"M41,10H25v28h16c0.553,0,1-0.447,1-1V11C42,10.447,41.553,10,41,10z\"/><path fill=\"#FFF\" d=\"M25 15.001H39V17H25zM25 19H39V21H25zM25 23.001H39V25.001H25zM25 27.001H39V29H25zM25 31H39V33.001H25z\"/><path fill=\"#0D47A1\" d=\"M27 42L6 38 6 10 27 6z\"/><path fill=\"#FFF\" d=\"M21.167,31.012H18.45l-1.802-8.988c-0.098-0.477-0.155-0.996-0.174-1.576h-0.032c-0.043,0.637-0.11,1.162-0.197,1.576l-1.85,8.988h-2.827l-2.86-14.014h2.675l1.536,9.328c0.062,0.404,0.111,0.938,0.143,1.607h0.042c0.019-0.498,0.098-1.051,0.223-1.645l1.97-9.291h2.622l1.785,9.404c0.062,0.348,0.119,0.846,0.17,1.511h0.031c0.02-0.515,0.073-1.035,0.16-1.563l1.503-9.352h2.468L21.167,31.012z\"/></svg>\r\n `;\r\n\r\n if (!this.baseGroup)\r\n this.baseGroup = this._getRootControl(this.formControl);\r\n\r\n if (!this.baseGroup.contains('uploadId')) {\r\n this.baseGroup.addControl('uploadId', new FormControl([]));\r\n this.baseGroup.addControl('removeId', new FormControl([]));\r\n }\r\n }\r\n\r\n fileChangeEvent(file?: File): void {\r\n if (!file) {\r\n return;\r\n }\r\n const fileModel = {\r\n id: null,\r\n fileName: file.name,\r\n length: file.size,\r\n isPublic: false,\r\n fileCategory: 'Quill',\r\n filePath: this.props.filePath,\r\n fileType: CmatUtilsService.getFileType(file.type),\r\n data: file\r\n } as FileModel;\r\n\r\n const formData = new FormData();\r\n\r\n formData.set('fileData', file, file.name);\r\n formData.append('fileInfo', JSON.stringify(fileModel));\r\n\r\n this._fileService.uploadFile(formData).pipe(\r\n takeUntilDestroyed(this._destroyRef)\r\n ).subscribe((event: HttpEvent<Record<string, unknown>>): void => {\r\n if (event.type === HttpEventType.Response) {\r\n const fileId = typeof event.body?.id === 'string' ? event.body.id : undefined;\r\n if (typeof fileId !== 'string') {\r\n return;\r\n }\r\n\r\n const editor = this._editorInstance();\r\n const config = this._config(); // 获取配置\r\n\r\n if (editor && config?.fileUrl) { // 同时检查编辑器和服务配置\r\n const selection = editor.getSelection(true);\r\n const index = selection ? selection.index : editor.getLength();\r\n\r\n editor.insertEmbed(index, this._getMediaType(file.type), `${config.fileUrl}/download/quill/${fileId}`);\r\n editor.setSelection(index + 1);\r\n this.formControl.setValue(editor.container.innerHTML);\r\n } else {\r\n console.warn('无法插入图片:编辑器或文件服务配置未就绪');\r\n }\r\n this._upload(fileId);\r\n }\r\n });\r\n }\r\n\r\n editorCreated(editorInstance: QuillEditor): void {\r\n this._editorInstance.set(editorInstance);\r\n\r\n // 1. 获取当前编辑器中的所有文件 ID\r\n const currentIds = this._extractFileIdsFromDelta(editorInstance.getContents());\r\n this._imgIds.set(currentIds);\r\n\r\n // 2. 同步清理 removeId,确保“已存在”的图片不在“待删除”列表中\r\n const removeControl = this.baseGroup.get('removeId');\r\n if (removeControl) {\r\n const existingRemoveIds = (removeControl.value as string[]) || [];\r\n // 过滤掉那些当前实际存在于编辑器中的 ID\r\n const cleanedRemoveIds = existingRemoveIds.filter(id => !currentIds.includes(id));\r\n\r\n // 只有当数组内容真正改变时才更新表单,避免无限循环或无效变更检测\r\n if (cleanedRemoveIds.length !== existingRemoveIds.length) {\r\n removeControl.setValue(cleanedRemoveIds);\r\n }\r\n }\r\n }\r\n\r\n contentChanged(contentChange: { editor: QuillEditor }): void {\r\n const delta = contentChange.editor.getContents();\r\n const currentIds = this._extractFileIdsFromDelta(delta);\r\n\r\n const previousIds = this._imgIds();\r\n const removedIds = previousIds.filter(id => !currentIds.includes(id));\r\n\r\n if (removedIds.length > 0) {\r\n const removeControl = this.baseGroup.get('removeId');\r\n const currentRemoveList = (removeControl?.value as string[]) || [];\r\n\r\n const restoredIds = currentRemoveList.filter(id => currentIds.includes(id));\r\n let finalRemoveList = currentRemoveList.filter(id => !restoredIds.includes(id));\r\n\r\n // 添加新删除的\r\n finalRemoveList = [...new Set([...finalRemoveList, ...removedIds])];\r\n\r\n removeControl?.setValue(finalRemoveList);\r\n }\r\n\r\n this._imgIds.set(currentIds);\r\n }\r\n\r\n private _imgFileHandler(): void {\r\n if (this.imgInput()) {\r\n this.imgInput()!.nativeElement.click();\r\n }\r\n }\r\n\r\n private _videoFileHandler(): void {\r\n if (this.videoInput()) {\r\n this.videoInput()!.nativeElement.click();\r\n }\r\n }\r\n\r\n private async _wordFileHandler(): Promise<void> {\r\n const editor = this._editorInstance();\r\n if (!editor) return;\r\n\r\n this.isExporting.set(true);\r\n try {\r\n const delta = editor.getContents();\r\n const children = await this._convertDeltaToDocxChildren(delta);\r\n const doc = new Document({\r\n sections: [{ properties: {}, children: children }]\r\n });\r\n const blob = await Packer.toBlob(doc);\r\n FileSaver.saveAs(blob, `${this.placeholder ?? '文档'}_${dayjs().format('YYYYMMDD_HHmmss')}.docx`);\r\n } catch (error) {\r\n console.error('Word 导出失败:', error);\r\n } finally {\r\n this.isExporting.set(false);\r\n }\r\n }\r\n\r\n private async _convertDeltaToDocxChildren(delta: QuillDelta): Promise<Paragraph[]> {\r\n const children: Paragraph[] = [];\r\n\r\n // 1. 预加载所有图片数据 (并行)\r\n const imageCache = new Map<string, { buffer: Uint8Array; width: number; height: number; type: string }>();\r\n const imageOps = delta.ops.filter(op => typeof op.insert !== 'string' && op.insert?.image);\r\n\r\n await Promise.all(imageOps.map(async (op) => {\r\n if (typeof op.insert === 'object' && op.insert !== null && 'image' in op.insert && typeof op.insert.image === 'string') {\r\n const url = op.insert.image;\r\n if (!imageCache.has(url)) {\r\n const buffer = await this._getImageBuffer(url);\r\n const dims = await this._getImageDimensions(url);\r\n let type = 'png';\r\n if (url.toLowerCase().endsWith('.jpg') || url.toLowerCase().endsWith('.jpeg')) type = 'jpg';\r\n else if (url.toLowerCase().endsWith('.gif')) type = 'gif';\r\n else if (url.toLowerCase().endsWith('.svg')) type = 'svg';\r\n\r\n imageCache.set(url, { buffer, width: dims.width, height: dims.height, type });\r\n }\r\n }\r\n }));\r\n\r\n // 2. 构建文档结构 (同步)\r\n let currentRun: TextRun[] = [];\r\n let currentListLevel = 0;\r\n let isList = false;\r\n\r\n for (const op of delta.ops) {\r\n if (typeof op.insert !== 'string' && op.insert?.image) {\r\n if (currentRun.length > 0) {\r\n children.push(new Paragraph({ children: currentRun }));\r\n currentRun = [];\r\n }\r\n\r\n const imgData = imageCache.get(op.insert.image);\r\n if (imgData) {\r\n const imageRun = this._createImageRunFromData(imgData); // 提取一个新方法\r\n children.push(new Paragraph({\r\n children: [imageRun],\r\n alignment: AlignmentType.CENTER\r\n }));\r\n }\r\n }\r\n else if (typeof op.insert === 'string') {\r\n const text = op.insert;\r\n if (text === '\\n') {\r\n if (currentRun.length > 0) {\r\n children.push(this._createParagraph(currentRun, op.attributes, isList, currentListLevel));\r\n currentRun = [];\r\n } else {\r\n children.push(new Paragraph({ children: [new TextRun({ text: '' })] }));\r\n }\r\n if (!op.attributes?.list) {\r\n isList = false;\r\n currentListLevel = 0;\r\n }\r\n }\r\n else {\r\n const textRun = this._createTextRun(text, op.attributes);\r\n currentRun.push(textRun);\r\n if (op.attributes?.list) {\r\n isList = true;\r\n currentListLevel = op.attributes.list === 'bullet' ? 0 :\r\n op.attributes.list === 'order' ? 0 : currentListLevel;\r\n }\r\n }\r\n }\r\n }\r\n if (currentRun.length > 0) {\r\n children.push(this._createParagraph(currentRun, undefined, isList, currentListLevel));\r\n }\r\n\r\n return children;\r\n }\r\n\r\n private _createImageRunFromData(data: { buffer: Uint8Array; width: number; height: number; type: string }): ImageRun {\r\n const maxWidth = 500;\r\n const maxHeight = 400;\r\n const scale = Math.min(maxWidth / data.width, maxHeight / data.height, 1);\r\n const imageType = data.type as 'jpg' | 'png' | 'gif' | 'bmp' | 'svg';\r\n\r\n return new ImageRun({\r\n data: data.buffer,\r\n transformation: {\r\n width: Math.round(data.width * scale),\r\n height: Math.round(data.height * scale)\r\n },\r\n type: imageType,\r\n fallback: {\r\n type: imageType !== 'svg' ? imageType : 'png',\r\n data: data.buffer\r\n }\r\n });\r\n }\r\n\r\n private _createTextRun(text: string, attributes?: QuillAttributes): TextRun {\r\n return new TextRun({\r\n text: text,\r\n /* eslint-disable @typescript-eslint/no-deprecated -- bold/italics 与已废弃的 String.prototype 方法同名,此处为 docx IRunOptions 属性,非废弃用法 */\r\n bold: attributes?.bold ?? false,\r\n italics: attributes?.italic ?? false,\r\n /* eslint-enable @typescript-eslint/no-deprecated */\r\n underline: attributes?.underline ? { type: BorderStyle.SINGLE } : undefined,\r\n size: this._mapFontSize(attributes?.size),\r\n font: attributes?.font ?? undefined,\r\n color: attributes?.color ? this._parseColor(attributes.color) : undefined,\r\n highlight: attributes?.background ? this._mapHighlightColor(attributes.background) : undefined\r\n });\r\n }\r\n\r\n private _createParagraph(runs: TextRun[], attributes?: QuillAttributes, isList?: boolean, listLevel?: number): Paragraph {\r\n const headerLevel = attributes?.header ? (typeof attributes.header === 'number' ? attributes.header : parseInt(attributes.header)) : undefined;\r\n const paragraphOptions = {\r\n children: runs,\r\n alignment: this._mapAlignment(attributes?.align),\r\n ...(headerLevel && headerLevel >= 1 && headerLevel <= 6 ? {\r\n heading: HeadingLevel[`HEADING_${headerLevel}` as keyof typeof HeadingLevel]\r\n } : {}),\r\n ...(isList && attributes?.list ? {\r\n bullet: {\r\n level: listLevel ?? 0\r\n }\r\n } : {})\r\n } as IParagraphOptions;\r\n\r\n return new Paragraph(paragraphOptions);\r\n }\r\n\r\n private async _getImageBuffer(imageUrl: string): Promise<Uint8Array> {\r\n if (imageUrl.startsWith('data:image')) {\r\n const base64 = imageUrl.split(',')[1];\r\n return this._base64ToUint8Array(base64);\r\n }\r\n\r\n const controller = new AbortController();\r\n const timeoutId = setTimeout(() => controller.abort(), 10000); // 10秒超时\r\n\r\n try {\r\n const response = await fetch(imageUrl, {\r\n method: 'GET',\r\n mode: 'cors',\r\n credentials: 'omit',\r\n signal: controller.signal\r\n });\r\n clearTimeout(timeoutId);\r\n\r\n if (!response.ok) {\r\n throw new Error(`图片获取失败: ${imageUrl}`);\r\n }\r\n\r\n const arrayBuffer = await response.arrayBuffer();\r\n return new Uint8Array(arrayBuffer);\r\n } catch (error) {\r\n clearTimeout(timeoutId);\r\n console.error('图片加载失败:', imageUrl, error);\r\n return new Uint8Array(0);\r\n }\r\n }\r\n private async _getImageDimensions(imageUrl: string): Promise<{ width: number; height: number }> {\r\n return new Promise((resolve): void => {\r\n const img = new Image();\r\n const timeout = setTimeout(() => {\r\n img.onload = null;\r\n img.onerror = null;\r\n // 超时也返回默认值,保证导出流程不中断\r\n resolve({ width: 400, height: 300 });\r\n }, 5000);\r\n\r\n img.onload = (): void => {\r\n clearTimeout(timeout);\r\n resolve({ width: img.width, height: img.height });\r\n };\r\n img.onerror = (): void => {\r\n clearTimeout(timeout);\r\n resolve({ width: 400, height: 300 });\r\n };\r\n img.src = imageUrl;\r\n });\r\n }\r\n private _base64ToUint8Array(base64: string): Uint8Array {\r\n const binaryString = atob(base64);\r\n const bytes = new Uint8Array(binaryString.length);\r\n for (let i = 0; i < binaryString.length; i++) {\r\n bytes[i] = binaryString.charCodeAt(i);\r\n }\r\n return bytes;\r\n }\r\n\r\n private _mapFontSize(size?: string): number | undefined {\r\n if (!size) return undefined;\r\n\r\n const sizeMap: Record<string, number> = {\r\n 'small': 12,\r\n 'normal': 14,\r\n 'large': 18,\r\n 'huge': 24\r\n };\r\n\r\n return sizeMap[size] || 14;\r\n }\r\n\r\n private _mapAlignment(align?: string): (typeof AlignmentType)[keyof typeof AlignmentType] {\r\n switch (align) {\r\n case 'center':\r\n return AlignmentType.CENTER;\r\n case 'right':\r\n return AlignmentType.RIGHT;\r\n case 'justify':\r\n return AlignmentType.JUSTIFIED;\r\n default:\r\n return AlignmentType.LEFT;\r\n }\r\n }\r\n\r\n private _parseColor(color: string): string | undefined {\r\n if (!color) return undefined;\r\n if (color.startsWith('#')) {\r\n return color.substring(1).toUpperCase();\r\n }\r\n const rgbMatch = /rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)/.exec(color);\r\n if (rgbMatch) {\r\n const r = parseInt(rgbMatch[1]).toString(16).padStart(2, '0');\r\n const g = parseInt(rgbMatch[2]).toString(16).padStart(2, '0');\r\n const b = parseInt(rgbMatch[3]).toString(16).padStart(2, '0');\r\n return `${r}${g}${b}`.toUpperCase();\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n\r\n private _mapHighlightColor(color: string): (typeof HighlightColor)[keyof typeof HighlightColor] {\r\n const hex = this._parseColor(color);\r\n if (!hex) return HighlightColor.NONE;\r\n const r = parseInt(hex.substring(0, 2), 16);\r\n const g = parseInt(hex.substring(2, 4), 16);\r\n const b = parseInt(hex.substring(4, 6), 16);\r\n const colorMap: Record<string, [number, number, number]> = {\r\n [HighlightColor.YELLOW]: [255, 255, 0],\r\n [HighlightColor.GREEN]: [0, 128, 0],\r\n [HighlightColor.CYAN]: [0, 255, 255],\r\n [HighlightColor.RED]: [255, 0, 0],\r\n [HighlightColor.BLUE]: [0, 0, 255],\r\n [HighlightColor.MAGENTA]: [255, 0, 255],\r\n [HighlightColor.DARK_BLUE]: [0, 0, 139],\r\n [HighlightColor.DARK_CYAN]: [0, 139, 139],\r\n [HighlightColor.DARK_GREEN]: [0, 100, 0],\r\n [HighlightColor.DARK_MAGENTA]: [139, 0, 139],\r\n [HighlightColor.DARK_RED]: [139, 0, 0],\r\n [HighlightColor.DARK_YELLOW]: [128, 128, 0],\r\n [HighlightColor.DARK_GRAY]: [169, 169, 169],\r\n [HighlightColor.LIGHT_GRAY]: [211, 211, 211],\r\n [HighlightColor.BLACK]: [0, 0, 0],\r\n [HighlightColor.WHITE]: [255, 255, 255],\r\n };\r\n let closestColor: (typeof HighlightColor)[keyof typeof HighlightColor] = HighlightColor.NONE;\r\n let minDistance = Infinity;\r\n for (const [name, [cr, cg, cb]] of Object.entries(colorMap)) {\r\n const distance = (r - cr) ** 2 + (g - cg) ** 2 + (b - cb) ** 2;\r\n if (distance < minDistance) {\r\n minDistance = distance;\r\n closestColor = name as (typeof HighlightColor)[keyof typeof HighlightColor];\r\n }\r\n }\r\n return closestColor;\r\n }\r\n\r\n private _dropFileHandler(_dataUrl: string, _type: string, fileData: { toFile: () => File }): void {\r\n this.fileChangeEvent(fileData.toFile());\r\n }\r\n\r\n private _upload(id: string): void {\r\n if (isNil(id)) return;\r\n\r\n const uploadControl = this.baseGroup.get('uploadId');\r\n if (!uploadControl) return;\r\n\r\n const currentIds = (uploadControl.value as string[]) || [];\r\n // 如果 ID 已存在,则不重复添加\r\n if (!currentIds.includes(id)) {\r\n uploadControl.setValue([id, ...currentIds]);\r\n }\r\n }\r\n\r\n private _getMediaType(accept: string): 'file' | 'image' | 'video' {\r\n let fileType = 'file';\r\n switch (accept) {\r\n case 'image/jpeg':\r\n case 'image/jpg':\r\n case 'image/png':\r\n case 'image/gif':\r\n fileType = 'image';\r\n break;\r\n case 'video/mpeg':\r\n case 'video/mp4':\r\n case 'audio/mp4':\r\n fileType = 'video';\r\n break;\r\n }\r\n\r\n return fileType as 'file' | 'image' | 'video';\r\n }\r\n\r\n private _getRootControl(baseControl: AbstractControl): UntypedFormGroup {\r\n if (baseControl.parent) {\r\n return this._getRootControl(baseControl.parent);\r\n }\r\n\r\n return baseControl as UntypedFormGroup;\r\n }\r\n\r\n private _extractFileIdsFromDelta(delta: QuillDelta): string[] {\r\n const config = this._config();\r\n if (!config?.fileUrl) return [];\r\n\r\n // 构建标准前缀,确保以 / 结尾\r\n const baseUrl = `${config.fileUrl.replace(/\\/$/, '')}/download/quill/`;\r\n const ids = new Set<string>(); // 使用 Set 自动去重\r\n\r\n delta.ops.forEach((op) => {\r\n if (op.insert && typeof op.insert === 'object') {\r\n const url = op.insert.image ?? op.insert.video;\r\n if (url && typeof url === 'string' && url.startsWith(baseUrl)) {\r\n // 提取 baseUrl 之后的部分,并去除查询参数\r\n const relativePath = url.substring(baseUrl.length);\r\n const id = relativePath.split('?')[0].split('#')[0];\r\n if (id) {\r\n ids.add(id);\r\n }\r\n }\r\n }\r\n });\r\n return Array.from(ids);\r\n }\r\n}","<div class=\"relative w-full\">\r\n <quill-editor \r\n class=\"w-full\" \r\n defaultEmptyValue=\"\" \r\n [formControl]=\"formControl\" \r\n [required]=\"required\" \r\n [placeholder]=\"placeholder\" \r\n [tabindex]=\"props.tabindex\"\r\n [readOnly]=\"disabled\" \r\n [modules]=\"quillModules\" \r\n (onEditorCreated)=\"editorCreated($event)\"\r\n (onContentChanged)=\"contentChanged($event)\">\r\n \r\n <input #imgInput type=\"file\" accept=\"image/png,image/jpeg,image/jpg,image/gif\" class=\"hidden\" (change)=\"fileChangeEvent(imgInput.files?.[0] ?? undefined)\" />\r\n <input #videoInput type=\"file\" accept=\"video/mpeg,video/mp4,audio/mp4\" class=\"hidden\" (change)=\"fileChangeEvent(videoInput.files?.[0] ?? undefined)\" />\r\n </quill-editor>\r\n\r\n @if (isExporting()) {\r\n <div class=\"absolute inset-0 flex items-center justify-center rounded-2xl border border-dashed border-default bg-card/80 px-4 py-6 text-sm text-secondary shadow-sm z-50 backdrop-blur-sm\">\r\n <span class=\"animate-pulse\">正在生成 Word 文档...</span>\r\n </div>\r\n }\r\n</div>\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatKnobInputComponent } from 'cmat/components/knob-input';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface KnobProps extends CustomFormFieldProps {\r\n valueColor: string;\r\n rangeColor: string;\r\n textColor: string;\r\n valueTemplate: string;\r\n name?: string;\r\n size: number;\r\n step: number;\r\n min: number;\r\n max: number;\r\n strokeWidth: number;\r\n showValue: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-knob-type',\r\n templateUrl: './knob.component.html',\r\n styleUrls: ['./knob.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatKnobInputComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatKnobTypeComponent extends FieldType<FieldTypeConfig<KnobProps>> {\r\n override defaultOptions = {\r\n props: {\r\n valueColor: 'var(--cmat-primary)',\r\n rangeColor: 'var(--cmat-border)',\r\n textColor: 'var(--text-secondary)',\r\n valueTemplate: '{value}',\r\n size: 100,\r\n step: 1,\r\n min: 0,\r\n max: 100,\r\n strokeWidth: 14,\r\n showValue: true\r\n },\r\n };\r\n}","<cmat-knob-input [formControl]=\"formControl\" [tabIndex]=\"props.tabindex\" [valueColor]=\"props.valueColor\"\r\n [rangeColor]=\"props.rangeColor\" [textColor]=\"props.textColor\" [valueTemplate]=\"props.valueTemplate\"\r\n [name]=\"props.name\" [size]=\"props.size\" [step]=\"props.step\" [min]=\"props.min\" [max]=\"props.max\"\r\n [strokeWidth]=\"props.strokeWidth\" [showValue]=\"props.showValue\">\r\n</cmat-knob-input>","import { ChangeDetectionStrategy, Component, Type } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { ThemePalette } from '@angular/material/core';\r\nimport { MatSliderModule } from '@angular/material/slider';\r\nimport { FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface SliderProps extends CustomFormFieldProps {\r\n displayWith?: (value: number) => string;\r\n discrete?: boolean;\r\n showTickMarks?: boolean;\r\n color?: ThemePalette;\r\n\r\n input?: (field: FormlyFieldConfig<SliderProps>, $event: Event) => void;\r\n change?: (field: FormlyFieldConfig<SliderProps>, $event: Event) => void;\r\n}\r\n\r\nexport interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {\r\n type: 'slider' | Type<CmatSliderTypeComponent>;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-slider-type',\r\n templateUrl: './slider.component.html',\r\n styleUrls: ['./slider.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatSliderModule, ReactiveFormsModule]\r\n})\r\nexport class CmatSliderTypeComponent extends FieldType<FieldTypeConfig<SliderProps>> {\r\n override defaultOptions = {\r\n props: {\r\n hideFieldUnderline: true,\r\n floatLabel: 'always' as const,\r\n displayWith: (value: number):string => `${value}`\r\n }\r\n };\r\n}","<mat-slider class=\"w-full\" [id]=\"id\" [tabIndex]=\"props.tabindex\" [color]=\"props.color\"\r\n [displayWith]=\"props.displayWith!\" [max]=\"props.max\" [min]=\"props.min\" [step]=\"props.step\" [discrete]=\"props.discrete\"\r\n [showTickMarks]=\"props.showTickMarks\" (input)=\"props.input && props.input(field, $event)\"\r\n (change)=\"props.change && props.change(field, $event)\">\r\n <input matSliderThumb [formControl]=\"formControl\" />\r\n</mat-slider>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,IAAa,oBAAb,MAAa,kBAAiB;CAH9B,cAAA;EAImB,KAAA,QAAQ,OAAO,UAAU;CAyL3C;CAjKC,KACE,QACA,YACA,UAAoC,CAAA,GAAE;EAEtC,MAAM,EAAE,WAAW,WAAW,SAAS,gBAAgB,cAAc;EAGrE,IAAI,CAAC,QAAQ,OAAO,CAAC,QAAQ,OAAO,CAAC,QAAQ,QAAQ,CAAC,QAAQ,OAAO;GACnE,YAAY,CAAA,CAAE;GACd;EACF;EAEA,MAAM,SAAS,OAAO,UAAU;EAEhC,MAAM,UAAU,EAAE,gBAAgB,mBAAkB;EAEpD,IAAI;EAEJ,IAAI,WAAW,QAAQ;GAErB,MAAM,kBAAkB,OAAO,mBAAmB;GAClD,IAAI;GAEJ,IAAI,oBAAoB,QAEtB,IAAI;IACF,OAAO,OAAO,cAAc,KAAK,MAAM,OAAO,WAAW,IAAI,CAAA;GAC/D,SAAS,GAAG;IACV,QAAQ,MAAM,IAAI,cAAa,+BAAgC,CAAC;IAChE,YAAY,CAAA,CAAE;IACd;GACF;QACK;IAEL,MAAM,WAAW,IAAI,gBAAe;IACpC,IAAI,OAAO,aACT,OAAO,YAAY,MAAM,IAAI,CAAC,CAAC,SAAS,SAAgB;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components-custom-formly.mjs","names":["i1","i1","i1","i1","i2","i3","FieldType","i1","FieldType","i1","FieldType","i1","i2","i3","FieldType","i1","FieldType","FieldType","i1","FieldType","i1","FieldType","i1","i2","i3","FieldType","i1","i2","FieldType","i1","i2","FieldType","i1","FieldType","observe","i1","i2","i3","i1","i2","i3","FieldType","i1","i2","FieldType","i1","FieldType","i1","i1","i2","i3","i4","i1","i2","i3","i4","i1","i2","i4","i5","FieldType","i1","i2","FieldType","i1","i2","i3","FieldType","i1","i2","FieldType","FieldType","i1","FieldType","i1","FieldType","i2"],"sources":["../../../projects/cmat/components/custom-formly/services/domain-data.service.ts","../../../projects/cmat/components/custom-formly/extension/addons.extension.ts","../../../projects/cmat/components/custom-formly/wrappers/addons/addons.component.ts","../../../projects/cmat/components/custom-formly/wrappers/card/card.component.ts","../../../projects/cmat/components/custom-formly/wrappers/card/card.component.html","../../../projects/cmat/components/custom-formly/wrappers/expansion/expansion.component.ts","../../../projects/cmat/components/custom-formly/wrappers/expansion/expansion.component.html","../../../projects/cmat/components/custom-formly/wrappers/panel/panel.component.ts","../../../projects/cmat/components/custom-formly/wrappers/panel/panel.component.html","../../../projects/cmat/components/custom-formly/wrappers/form-field/form-field.component.ts","../../../projects/cmat/components/custom-formly/wrappers/form-field/form-field.component.html","../../../projects/cmat/components/custom-formly/types/button/button.component.ts","../../../projects/cmat/components/custom-formly/types/button/button.component.html","../../../projects/cmat/components/custom-formly/types/cascade/cascade.component.ts","../../../projects/cmat/components/custom-formly/types/cascade/cascade.component.html","../../../projects/cmat/components/custom-formly/types/checklist/checklist.component.ts","../../../projects/cmat/components/custom-formly/types/checklist/checklist.component.html","../../../projects/cmat/components/custom-formly/types/chips/chips.component.ts","../../../projects/cmat/components/custom-formly/types/chips/chips.component.html","../../../projects/cmat/components/custom-formly/types/color-picker/color-picker.component.ts","../../../projects/cmat/components/custom-formly/types/color-picker/color-picker.component.html","../../../projects/cmat/components/custom-formly/types/data-picker/data-picker.component.ts","../../../projects/cmat/components/custom-formly/types/data-picker/data-picker.component.html","../../../projects/cmat/components/custom-formly/types/date-range/date-range.component.ts","../../../projects/cmat/components/custom-formly/types/date-range/date-range.component.html","../../../projects/cmat/components/custom-formly/types/datepicker/datepicker.component.ts","../../../projects/cmat/components/custom-formly/types/datepicker/datepicker.component.html","../../../projects/cmat/components/custom-formly/types/multicheckbox/multicheckbox.component.ts","../../../projects/cmat/components/custom-formly/types/multicheckbox/multicheckbox.component.html","../../../projects/cmat/components/custom-formly/types/number/number.component.ts","../../../projects/cmat/components/custom-formly/types/number/number.component.html","../../../projects/cmat/components/custom-formly/types/rating/rating.component.ts","../../../projects/cmat/components/custom-formly/types/rating/rating.component.html","../../../projects/cmat/components/custom-formly/types/radio/radio.component.ts","../../../projects/cmat/components/custom-formly/types/radio/radio.component.html","../../../projects/cmat/components/custom-formly/types/repeat/repeat.component.ts","../../../projects/cmat/components/custom-formly/types/repeat/repeat.component.html","../../../projects/cmat/components/custom-formly/types/select/select.component.ts","../../../projects/cmat/components/custom-formly/types/select/select.component.html","../../../projects/cmat/components/custom-formly/types/select-tree/select-tree.component.ts","../../../projects/cmat/components/custom-formly/types/select-tree/select-tree.component.html","../../../projects/cmat/components/custom-formly/types/select-table/select-table.component.ts","../../../projects/cmat/components/custom-formly/types/select-table/select-table.component.html","../../../projects/cmat/components/custom-formly/types/stepper/horizontal/stepper.component.ts","../../../projects/cmat/components/custom-formly/types/stepper/horizontal/stepper.component.html","../../../projects/cmat/components/custom-formly/types/stepper/vertical/stepper.component.ts","../../../projects/cmat/components/custom-formly/types/stepper/vertical/stepper.component.html","../../../projects/cmat/components/custom-formly/types/table/table.component.ts","../../../projects/cmat/components/custom-formly/types/table/table.component.html","../../../projects/cmat/components/custom-formly/types/tabs/tab.component.ts","../../../projects/cmat/components/custom-formly/types/tabs/tab.component.html","../../../projects/cmat/components/custom-formly/types/tags/tags.component.ts","../../../projects/cmat/components/custom-formly/types/tags/tags.component.html","../../../projects/cmat/components/custom-formly/types/textarea/textarea.component.ts","../../../projects/cmat/components/custom-formly/types/textarea/textarea.component.html","../../../projects/cmat/components/custom-formly/types/upload/upload.component.ts","../../../projects/cmat/components/custom-formly/types/upload/upload.component.html","../../../projects/cmat/components/custom-formly/types/quill/quill.component.ts","../../../projects/cmat/components/custom-formly/types/quill/quill.component.html","../../../projects/cmat/components/custom-formly/types/knob/knob.component.ts","../../../projects/cmat/components/custom-formly/types/knob/knob.component.html","../../../projects/cmat/components/custom-formly/types/slider/slider.component.ts","../../../projects/cmat/components/custom-formly/types/slider/slider.component.html"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { inject, Injectable, DestroyRef } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { catchError, of } from 'rxjs';\nimport { ApiItem, DomainConfig, OptionData } from '../types/common-types';\n\n/**\n * Domain 数据加载选项\n */\nexport interface LoadDomainDataOptions<T = OptionData> {\n /** 可选的数据转换函数,将原始 API 数据转换为组件需要的格式 */\n transform?: (rawData: unknown[]) => T[];\n /** 成功回调,接收转换后的数据 */\n onSuccess?: (data: T[]) => void;\n /** 错误回调,接收错误对象 */\n onError?: (error: unknown) => void;\n /** 组件名称,用于日志输出 */\n componentName?: string;\n}\n\n/**\n * Domain 数据加载服务\n * \n * 提供统一的远程数据加载能力,支持 GET/POST 请求、数据提取、转换和错误处理。\n * 所有使用 domain 配置的 Formly 组件都应使用此服务,避免重复实现。\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class DomainDataService {\n private readonly _http = inject(HttpClient);\n\n /**\n * 从 domain 配置加载数据\n * \n * @param domain - 数据域配置对象\n * @param destroyRef - Angular 销毁引用,用于自动取消订阅\n * @param options - 加载选项(转换函数、回调等)\n * \n * @example\n * ```typescript\n * // 简单用法\n * this.domainDataService.load(this.props.domain, this._destroyRef, {\n * onSuccess: (data) => this.urlData.set(data)\n * });\n * \n * // 自定义转换\n * this.domainDataService.load(this.props.domain, this._destroyRef, {\n * transform: (raw) => raw.map(item => ({ label: item.name, value: item.id })),\n * onSuccess: (data) => this.optionsData.set(data),\n * componentName: 'MyComponent'\n * });\n * ```\n */\n load<T = OptionData>(\n domain: DomainConfig | undefined,\n destroyRef: DestroyRef,\n options: LoadDomainDataOptions<T> = {}\n ): void {\n const { transform, onSuccess, onError, componentName = 'Unknown' } = options;\n\n // 验证 domain 配置\n if (!domain?.url || !domain?.key || !domain?.code || !domain?.value) {\n onSuccess?.([]);\n return;\n }\n\n const method = domain.method ?? 'GET';\n // eslint-disable-next-line @typescript-eslint/naming-convention\n const headers = { 'Content-Type': 'application/json' };\n\n let request$;\n\n if (method === 'POST') {\n // POST 请求处理\n const requestBodyType = domain.requestBodyType ?? 'json';\n let body: unknown;\n\n if (requestBodyType === 'json') {\n // JSON 格式\n try {\n body = domain.requestBody ? JSON.parse(domain.requestBody) : {};\n } catch (e) {\n console.error(`[${componentName}] Invalid JSON request body:`, e);\n onSuccess?.([]);\n return;\n }\n } else {\n // FormData 格式(简单键值对)\n const formData = new URLSearchParams();\n if (domain.requestBody) {\n domain.requestBody.split('\\n').forEach((line: string) => {\n const trimmed = line.trim();\n if (trimmed?.includes('=')) {\n const [key, ...valueParts] = trimmed.split('=');\n formData.append(key.trim(), valueParts.join('=').trim());\n }\n });\n }\n body = formData.toString();\n headers['Content-Type'] = 'application/x-www-form-urlencoded';\n }\n\n request$ = this._http.post<ApiItem[]>(domain.url, body, { headers }).pipe(\n takeUntilDestroyed(destroyRef),\n catchError((error) => {\n console.error(`[${componentName}] Failed to load data (POST):`, error);\n onError?.(error);\n onSuccess?.([]);\n return of([]);\n })\n );\n } else {\n // GET 请求处理\n request$ = this._http.get<ApiItem[]>(domain.url).pipe(\n takeUntilDestroyed(destroyRef),\n catchError((error) => {\n console.error(`[${componentName}] Failed to load data (GET):`, error);\n onError?.(error);\n onSuccess?.([]);\n return of([]);\n })\n );\n }\n\n request$.subscribe((data) => {\n if (!Array.isArray(data) || data.length === 0) {\n onSuccess?.([]);\n return;\n }\n\n try {\n const { key, code, value } = domain;\n\n // 查找匹配的主对象\n const matchedItem = data.find((item): item is ApiItem =>\n typeof item === 'object' && item !== null && item[key!] === code\n );\n\n if (matchedItem?.[value!]) {\n const extractedData = matchedItem[value!];\n\n // 确保提取的是数组\n if (Array.isArray(extractedData)) {\n // 如果提供了自定义转换函数,使用它;否则使用默认转换\n const result = transform\n ? transform(extractedData)\n : this._defaultTransform(extractedData);\n\n onSuccess?.(result as T[]);\n } else {\n console.warn(`[${componentName}] Extracted data is not an array:`, extractedData);\n onSuccess?.([]);\n }\n } else {\n console.warn(`[${componentName}] No matching item found for code:`, code);\n onSuccess?.([]);\n }\n } catch (e) {\n console.error(`[${componentName}] Error processing data:`, e);\n onError?.(e);\n onSuccess?.([]);\n }\n });\n }\n\n /**\n * 默认数据转换函数\n * \n * 将原始 API 数据转换为标准的 OptionData 格式。\n * 智能映射常见字段名:\n * - value: value / id / code\n * - label: label / name / text\n * \n * @param rawData - 原始数据数组\n * @returns 转换后的 OptionData 数组\n */\n private _defaultTransform(rawData: unknown[]): OptionData[] {\n return rawData.map((item): OptionData => {\n // 处理非对象情况(如字符串数组、数字数组)\n if (typeof item !== 'object' || item === null) {\n return {\n value: item,\n label: String(item)\n };\n }\n\n const obj = item as Record<string, unknown>;\n\n // 智能映射 value 字段\n const finalValue = obj.value ?? obj.id ?? obj.code;\n \n // 智能映射 label 字段\n let finalLabel: string;\n if (obj.label) {\n finalLabel = obj.label as unknown as string;\n } else if (obj.name) {\n finalLabel = obj.name as unknown as string;\n } else if (obj.text) {\n finalLabel = obj.text as unknown as string;\n } else if (finalValue != null) {\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n finalLabel = String(finalValue);\n } else {\n finalLabel = '';\n }\n\n return {\n value: finalValue,\n label: finalLabel,\n disabled: !!obj.disabled,\n ...obj // 保留原始对象的其他属性\n };\n });\n }\n}\n","import { FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { isNil } from 'lodash-es';\r\n\r\ninterface AddonField {\r\n icon?: string | null;\r\n text?: string | null;\r\n}\r\n\r\ninterface AddonProps {\r\n addonLeft?: AddonField;\r\n addonRight?: AddonField;\r\n prefix?: unknown;\r\n suffix?: unknown;\r\n}\r\n\r\nfunction hasAddonContent(addon?: AddonField): boolean {\r\n return !!addon\r\n && ((!isNil(addon.icon) && addon.icon !== '')\r\n || (!isNil(addon.text) && addon.text !== ''));\r\n}\r\n\r\nexport function addonsExtension(field: FormlyFieldConfig): void {\r\n const props = field.props as AddonProps | undefined;\r\n\r\n if (!props) {\r\n return;\r\n }\r\n\r\n if (hasAddonContent(props.addonLeft) || hasAddonContent(props.addonRight)) {\r\n if (!field.wrappers?.includes('addons')) {\r\n field.wrappers = [...(field.wrappers ?? []), 'addons'];\r\n }\r\n return;\r\n }\r\n\r\n // 无 addon 内容:移除上次 build 原地注入的 addons wrapper,并清理 wrapper\r\n // 写回的残留 TemplateRef(prefix/suffix)。否则 form-field 检测到它们仍会渲染\r\n // matPrefix/matSuffix 容器,Material 附加 leading-icon 内边距,清空前后缀后\r\n // 输入框产生位移且不恢复原始位置。\r\n if (field.wrappers?.includes('addons')) {\r\n field.wrappers = field.wrappers.filter(wrapper => wrapper !== 'addons');\r\n }\r\n\r\n if (props.prefix !== undefined) {\r\n delete props.prefix;\r\n }\r\n\r\n if (props.suffix !== undefined) {\r\n delete props.suffix;\r\n }\r\n}\r\n","import { Component, TemplateRef, AfterViewInit, viewChild } from '@angular/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\nimport { FormlyMaterialModule } from '@ngx-formly/material';\r\n\r\n@Component({\r\n selector: 'cmat-addons-wrapper',\r\n template: `\r\n <ng-template #matPrefix>\r\n @if(props.addonLeft){\r\n <span>\r\n @if(props.addonLeft.icon){\r\n <mat-icon [svgIcon]=\"props.addonLeft.icon\"></mat-icon>\r\n }\r\n @if(props.addonLeft.text){\r\n <span>{{ props.addonLeft.text }}</span>\r\n } \r\n \r\n </span>\r\n } \r\n </ng-template>\r\n\r\n <ng-container #fieldComponent></ng-container>\r\n\r\n <ng-template #matSuffix>\r\n @if(props.addonRight){\r\n <span>\r\n @if(props.addonRight.icon){\r\n <mat-icon [svgIcon]=\"props.addonRight.icon\"></mat-icon>\r\n }\r\n @if(props.addonRight.text) {\r\n <span>{{ props.addonRight.text }}</span>\r\n }\r\n </span>\r\n }\r\n </ng-template>\r\n `,\r\n imports: [MatIconModule, FormlyMaterialModule]\r\n})\r\nexport class CmatAddonsWrapperComponent extends FieldWrapper implements AfterViewInit {\r\n private readonly matPrefix=viewChild<TemplateRef<unknown>>('matPrefix');\r\n private readonly matSuffix=viewChild<TemplateRef<unknown>>('matSuffix');\r\n\r\n ngAfterViewInit(): void {\r\n // 仅在实际配置了 addon 内容时才写入对应 TemplateRef,否则置为 undefined:\r\n // form-field 只要检测到 props.prefix/props.suffix 存在就会渲染 matPrefix/matSuffix\r\n // 容器,Material 会因此附加 leading-icon 类的内边距,清空后残留会导致输入框位移。\r\n // 注意必须赋值 undefined 而非 delete:props 上的 observe 钩子通过 setter 触发\r\n // detectChanges,而 form-field 是 OnPush,delete 不会触发其重新求值\r\n if (this.props.addonLeft && this.matPrefix()) {\r\n this.props.prefix = this.matPrefix();\r\n } else if (this.props.prefix !== undefined) {\r\n this.props.prefix = undefined;\r\n }\r\n\r\n if (this.props.addonRight && this.matSuffix()) {\r\n this.props.suffix = this.matSuffix();\r\n } else if (this.props.suffix !== undefined) {\r\n this.props.suffix = undefined;\r\n }\r\n }\r\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n@Component({\r\n selector: 'cmat-card-wrapper',\r\n templateUrl: './card.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCardModule]\r\n})\r\nexport class CmatCardWrapperComponent extends FieldWrapper {}\r\n","<mat-card class=\"dark:bg-white/5\">\r\n @if(props.label){\r\n <mat-card-title class=\"p-4\">{{ props.label }}</mat-card-title>\r\n }\r\n \r\n <mat-card-content>\r\n <ng-container #fieldComponent></ng-container>\r\n </mat-card-content> \r\n</mat-card>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatExpansionModule } from '@angular/material/expansion';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n@Component({\r\n selector: 'cmat-expansion-wrapper',\r\n templateUrl: './expansion.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatExpansionModule]\r\n})\r\nexport class CmatExpansionWrapperComponent extends FieldWrapper {}\r\n","<mat-expansion-panel [expanded]=\"true\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ to.label }}\r\n </mat-panel-title>\r\n <mat-panel-description>\r\n {{ to.description }}\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <ng-template #fieldComponent matExpansionPanelContent></ng-template>\r\n</mat-expansion-panel>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { FieldWrapper } from '@ngx-formly/core';\r\n\r\n@Component({\r\n selector: 'cmat-panel-wrapper',\r\n templateUrl: './panel.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: []\r\n})\r\nexport class CmatPanelWrapperComponent extends FieldWrapper {}\r\n","<h3 class=\"px-2\">{{ props.label }}</h3>\r\n<div>\r\n <ng-container #fieldComponent></ng-container>\r\n</div>","import { FocusMonitor } from '@angular/cdk/a11y';\r\nimport { CommonModule } from '@angular/common';\r\nimport {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n OnDestroy,\r\n OnInit,\r\n Renderer2,\r\n ViewEncapsulation,\r\n inject,\r\n viewChild,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatFormField, MatFormFieldModule } from '@angular/material/form-field';\r\nimport { FieldWrapper, FormlyFieldConfig, FormlyModule, ɵdefineHiddenProp as defineHiddenProp } from '@ngx-formly/core';\r\nimport { FormlyFieldProps } from '@ngx-formly/material/form-field';\r\n\r\ninterface MatFormlyFieldConfig extends FormlyFieldConfig<CustomFormFieldProps> {\r\n _formField?: CmatFormFieldWrapperComponent;\r\n}\r\n\r\nexport interface CustomFormFieldProps extends FormlyFieldProps {\r\n showValidationMessage?: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-form-field-wrapper',\r\n templateUrl: './form-field.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n styleUrls: ['./form-field.wrapper.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n imports: [MatFormFieldModule, ReactiveFormsModule, CommonModule, FormlyModule]\r\n})\r\nexport class CmatFormFieldWrapperComponent extends FieldWrapper<MatFormlyFieldConfig>\r\n implements OnInit, OnDestroy, AfterViewInit {\r\n private readonly formField = viewChild.required<MatFormField & { _elementRef: ElementRef<HTMLElement> }>(MatFormField);\r\n\r\n private _renderer = inject(Renderer2);\r\n private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\r\n private _focusMonitor = inject(FocusMonitor);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n defineHiddenProp(this.field, '_formField', this.formField());\r\n this._focusMonitor.monitor(this._elementRef, true).subscribe((origin) => {\r\n if (!origin && this.field.focus) {\r\n this.field.focus = false;\r\n }\r\n });\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n if (this.formField().appearance !== 'outline' && this.props.hideFieldUnderline === true) {\r\n const underlineElement = (this.formField()._elementRef.nativeElement as HTMLElement).querySelector('.mat-form-field-underline');\r\n \r\n if (underlineElement?.parentNode) {\r\n this._renderer.removeChild(underlineElement.parentNode, underlineElement);\r\n }\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n delete this.field._formField;\r\n this._focusMonitor.stopMonitoring(this._elementRef);\r\n }\r\n}\r\n\r\n","<mat-form-field [hideRequiredMarker]=\"true\" [floatLabel]=\"$any(props.floatLabel)\" [appearance]=\"$any(props.appearance)\"\r\n [subscriptSizing]=\"$any(props.subscriptSizing)\" [color]=\"props.color ?? 'primary'\">\r\n <ng-container #fieldComponent></ng-container>\r\n @if(props.label && props.hideLabel !== true){\r\n <mat-label>\r\n {{ props.label }}\r\n @if(props.required && props.hideRequiredMarker !== true){\r\n <span aria-hidden=\"true\" class=\"mat-form-field-required-marker mat-mdc-form-field-required-marker\">*</span>\r\n }\r\n </mat-label>\r\n }\r\n\r\n @if(props.textPrefix){\r\n <ng-container matTextPrefix>\r\n <ng-container [ngTemplateOutlet]=\"props.textPrefix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.prefix){\r\n <ng-container matPrefix>\r\n <ng-container [ngTemplateOutlet]=\"props.prefix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.textSuffix){\r\n <ng-container matTextSuffix>\r\n <ng-container [ngTemplateOutlet]=\"props.textSuffix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.suffix){\r\n <ng-container matSuffix>\r\n <ng-container [ngTemplateOutlet]=\"props.suffix\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n </ng-container>\r\n }\r\n\r\n @if(props.showValidationMessage){\r\n <mat-error>\r\n <formly-validation-message [field]=\"field\"></formly-validation-message>\r\n </mat-error>\r\n }\r\n\r\n @if(props.description || props.hintStart){\r\n <mat-hint>\r\n <ng-container [ngTemplateOutlet]=\"stringOrTemplate\" [ngTemplateOutletContext]=\"{ content: props.description || props.hintStart }\">\r\n </ng-container>\r\n </mat-hint>\r\n }\r\n\r\n @if(props.hintEnd){\r\n <mat-hint align=\"end\">\r\n <ng-container [ngTemplateOutlet]=\"stringOrTemplate\" [ngTemplateOutletContext]=\"{ content: props.hintEnd }\">\r\n </ng-container>\r\n </mat-hint>\r\n }\r\n</mat-form-field>\r\n\r\n<ng-template #stringOrTemplate let-content=\"content\">\r\n @if(!content.createEmbeddedView){\r\n <ng-container>{{ content }}</ng-container>\r\n }@else {\r\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ field: field }\"></ng-container>\r\n }\r\n</ng-template>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isString } from 'lodash-es';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ntype SafeClickHandler = (event: Event) => void;\r\n\r\nconst DANGEROUS_PATTERNS = [\r\n /\\bdocument\\s*\\./i,\r\n /\\bwindow\\s*\\./i,\r\n /\\beval\\s*\\(/i,\r\n /\\bfetch\\s*\\(/i,\r\n /\\bXMLHttpRequest\\b/i,\r\n /\\bimport\\s*\\(/i,\r\n /\\b__proto__\\b/i,\r\n /\\bconstructor\\s*\\(/i,\r\n /\\bprototype\\b/i\r\n];\r\n\r\ninterface ButtonProps extends CustomFormFieldProps {\r\n color?: 'primary' | 'accent' | 'warn';\r\n onClick?: SafeClickHandler | string;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-button-type',\r\n templateUrl: './button.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatButtonModule]\r\n})\r\nexport class CmatButtonTypeComponent extends FieldType<FieldTypeConfig<ButtonProps>> {\r\n override defaultOptions = {\r\n props: {\r\n color: 'primary' as const,\r\n type: 'button'\r\n }\r\n };\r\n\r\n onClick($event: Event): void {\r\n $event.preventDefault();\r\n\r\n if (this.props.onClick) {\r\n if (isString(this.props.onClick)) {\r\n this._executeFunctionFromString(this.props.onClick, $event, { props: this.props });\r\n }\r\n else {\r\n this.props.onClick($event);\r\n }\r\n }\r\n }\r\n\r\n private _isDangerousCode(code: string): boolean {\r\n return DANGEROUS_PATTERNS.some((pattern): boolean => pattern.test(code));\r\n }\r\n\r\n private _executeFunctionFromString(funcString: string, event: Event, context?: Record<string, unknown>): void {\r\n if (this._isDangerousCode(funcString)) {\r\n console.error('Button onClick contains potentially dangerous code and was blocked:', funcString);\r\n return;\r\n }\r\n\r\n try {\r\n // eslint-disable-next-line @typescript-eslint/no-implied-eval\r\n const func = new Function('event', 'context', `with (context) { ${funcString} }`) as (event: Event, context?: Record<string, unknown>) => void;\r\n\r\n func(event, context);\r\n\r\n } catch (error) {\r\n console.error('Error executing function from string:', error);\r\n }\r\n }\r\n}","<button class=\"print:hidden\" matButton=\"filled\" [type]=\"props.type\" [color]=\"props.color\" [disabled]=\"disabled\" (click)=\"onClick($event)\">\r\n {{ props.label }}\r\n</button>","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n computed,\r\n DestroyRef,\r\n DoCheck,\r\n effect,\r\n inject,\r\n OnInit,\r\n signal,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatCascadeListComponent, CmatCascadeOptionsInterface } from 'cmat/components/cascade';\r\nimport { CmatMediaWatcherService } from 'cmat/services/media-watcher';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface ChipsCascadeProps extends CustomFormFieldProps {\r\n clearable: boolean;\r\n fullLevels: boolean;\r\n changeOnSelect: boolean;\r\n domain?: DomainConfig\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-cascade-type',\r\n templateUrl: './cascade.component.html',\r\n styleUrls: ['./cascade.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatCascadeListComponent]\r\n})\r\nexport class CmatCascadeTypeComponent extends FieldType<FieldTypeConfig<ChipsCascadeProps>> implements OnInit,DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n clearable: false,\r\n fullLevels: true,\r\n changeOnSelect: false\r\n },\r\n };\r\n readonly urlData = signal<CmatCascadeOptionsInterface[]>([]);\r\n\r\n private _cmatMediaWatcherService = inject(CmatMediaWatcherService);\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly isHandSet = computed(() => {\r\n return !this._cmatMediaWatcherService.mediaChange().matchingAliases.includes('lg')\r\n });\r\n\r\n private _lastDomain: ChipsCascadeProps['domain'] = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n\r\n effect(() => {\r\n const disabled = this.props.disabled;\r\n if (disabled && !this.formControl.disabled) {\r\n this.formControl.disable({ emitEvent: false });\r\n } else if (!disabled && this.formControl.disabled) {\r\n this.formControl.enable({ emitEvent: false });\r\n }\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CmatCascadeOptionsInterface>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatCascadeTypeComponent'\r\n });\r\n }\r\n\r\n}\r\n\r\n","<cmat-cascade-list [formControl]=\"formControl\" [clearable]=\"props.clearable\" [fullLevels]=\"props.fullLevels\"\r\n [changeOnSelect]=\"props.changeOnSelect\" [placeholder]=\"placeholder\" [options]=\"urlData()\" [tabIndex]=\"props.tabindex\"\r\n [required]=\"required\" [touchUi]=\"isHandSet()\"></cmat-cascade-list>\r\n","import { NgClass } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n OnInit,\r\n ViewEncapsulation,\r\n inject,\r\n signal,\r\n computed,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatRippleModule } from '@angular/material/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatEmptyStateComponent } from 'cmat/components/empty-state';\r\nimport { isArray, isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface CheckListItem extends Record<string, unknown> {\r\n id?: unknown;\r\n value?: unknown;\r\n label?: unknown;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface CheckListProps extends CustomFormFieldProps {\r\n showAllCheck: boolean;\r\n controlMaxHeight: boolean;\r\n domain?: DomainConfig\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-checklist-type',\r\n templateUrl: './checklist.component.html',\r\n styleUrls: ['./checklist.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCheckboxModule, MatIconModule, NgClass, MatRippleModule,CmatEmptyStateComponent]\r\n})\r\nexport class CmatCheckListTypeComponent extends FieldType<FieldTypeConfig<CheckListProps>> implements OnInit,DoCheck {\r\n readonly isIndeterminate = signal<boolean>(false);\r\n readonly isChecked = signal<boolean>(false);\r\n\r\n readonly urlData = signal<CheckListItem[]>([]);\r\n readonly optionsData = signal<CheckListItem[]>([]);\r\n readonly checklist = signal<CheckListItem[]>([]);\r\n\r\n readonly filteredItems = signal<CheckListItem[] | null>(null);\r\n\r\n // 响应式数据源\r\n readonly datas = computed(() => {\r\n if (this.urlData().length > 0) {\r\n return this.urlData();\r\n }\r\n\r\n return this.optionsData() || [];\r\n });\r\n\r\n // 响应式过滤数据\r\n readonly filteredData = computed(() => {\r\n const currentDatas = this.datas();\r\n const query = this._filterQuery();\r\n\r\n if (!query) {\r\n return currentDatas;\r\n }\r\n\r\n return currentDatas.filter((data: CheckListItem) =>\r\n this._toSearchText(data.value).toLowerCase().includes(query.toLowerCase()) ||\r\n this._toSearchText(data.label).toLowerCase().includes(query.toLowerCase())\r\n );\r\n });\r\n\r\n private _lastDomain: CheckListProps['domain'] = undefined;\r\n private _lastOptions: unknown = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n private readonly _filterQuery = signal<string>('');\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n\r\n this._refreshData();\r\n\r\n this._refreshFilteredData();\r\n\r\n this.formControl.valueChanges.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(\r\n (value) => {\r\n const newVal = (value ?? []) as CheckListItem[];\r\n\r\n this.checklist.set(newVal);\r\n this._getAllCheckCountState();\r\n }\r\n );\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 2. 检查 options 变化 (仅当 domain 未配置时,options 才生效,但为了稳妥,只要变了就更新)\r\n // 注意:如果 domain 存在,urlData 优先级更高,但更新 optionsData 也无妨,因为 allOptions computed 会优先取 urlData\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n trackByFn(index: number, item: CheckListItem): unknown {\r\n return item.id ?? item.value ?? index;\r\n }\r\n\r\n filterByQuery(event: string | Event): void {\r\n const query = typeof event === 'string' ? event : (event.target as HTMLInputElement | null)?.value ?? '';\r\n\r\n this._filterQuery.set(query.toLowerCase());\r\n this._refreshFilteredData();\r\n }\r\n\r\n toggleCheckList(data: CheckListItem, event: Event): void {\r\n event.preventDefault();\r\n\r\n if (data.disabled || this.props.disabled)\r\n return;\r\n\r\n this.checklist.update((currentList) => {\r\n const index = currentList.findIndex(item => item.value === data.value);\r\n let newList;\r\n if (index > -1) {\r\n newList = currentList.filter(item => item.value !== data.value);\r\n } else {\r\n newList = [...currentList, data];\r\n }\r\n\r\n\r\n return newList;\r\n });\r\n\r\n // 同步表单值\r\n this.formControl.setValue(this.checklist());\r\n this._getAllCheckCountState();\r\n }\r\n\r\n allCheckChange(check: boolean): void {\r\n const itemsToAdd = this.filteredData().filter((t) => {\r\n const index = this.checklist().findIndex(item => item.value === t.value);\r\n return index < 0 && !t.disabled;\r\n });\r\n\r\n if (check) {\r\n this.checklist.set([...this.checklist(), ...itemsToAdd]);\r\n } else {\r\n this.checklist.set(this.checklist().filter((item) => {\r\n const existsInFiltered = this.filteredData().some(t => t.value === item.value);\r\n const shouldRemove = existsInFiltered && this.filteredData().find(t => t.value === item.value)?.disabled === false;\r\n return !shouldRemove;\r\n }));\r\n }\r\n\r\n this.formControl.setValue(this.checklist());\r\n this._getAllCheckCountState();\r\n }\r\n\r\n isCheck(data: CheckListItem): boolean {\r\n const selected = this.checklist();\r\n return selected.some((i: CheckListItem) => i.value === data.value);\r\n }\r\n\r\n private _refreshFilteredData(): void {\r\n this.filteredItems.set(this.filteredData());\r\n this._getAllCheckCountState();\r\n }\r\n\r\n private _getAllCheckCountState(): void {\r\n if (!this.props.showAllCheck || this.props.disabled) return;\r\n\r\n const currentChecklist = this.checklist();\r\n const currentFiltered = this.filteredData();\r\n\r\n const enabledFilteredItems = currentFiltered.filter(i => !i.disabled);\r\n const totalEnabled = enabledFilteredItems.length;\r\n\r\n if (totalEnabled === 0) {\r\n this.isChecked.set(false);\r\n this.isIndeterminate.set(false);\r\n return;\r\n }\r\n\r\n const allCheckCount = enabledFilteredItems.filter(t =>\r\n currentChecklist.some(item => item.value === t.value)\r\n ).length;\r\n\r\n if (allCheckCount === 0) {\r\n this.isChecked.set(false);\r\n this.isIndeterminate.set(false);\r\n } else if (allCheckCount === totalEnabled) {\r\n this.isChecked.set(true);\r\n this.isIndeterminate.set(false);\r\n } else {\r\n this.isChecked.set(false);\r\n this.isIndeterminate.set(true);\r\n }\r\n }\r\n\r\n private _toSearchText(value: unknown): string {\r\n return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' ? String(value) : '';\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CheckListItem>(domain, this._destroyRef, {\r\n onSuccess: (data) => {\r\n this.urlData.set(data);\r\n this._refreshFilteredData();\r\n },\r\n componentName: 'CmatCheckListTypeComponent'\r\n });\r\n\r\n // 处理静态 options\r\n if (!domain?.url && this.field.props?.options && isArray(this.field.props?.options)) {\r\n this.optionsData.set(this.field.props.options as CheckListItem[] || []);\r\n } else if (!domain?.url) {\r\n this.optionsData.set([]);\r\n }\r\n }\r\n}","<div class=\"flex flex-col\">\r\n <div class=\"p-2\">\r\n @if(props.label){\r\n <legend class=\"text-lg\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n </legend>\r\n }\r\n @if(props.description){\r\n <p>{{ props.description }}</p>\r\n }\r\n </div>\r\n\r\n <div class=\"w-full h-full rounded-xl border border-slate-200 dark:border-slate-700 bg-card dark:bg-transparent\" [tabIndex]=\"props.tabindex\">\r\n <div class=\"flex items-center m-1 mr-2 min-h-12 print:hidden\">\r\n @if (props.showAllCheck&&!props.disabled) {\r\n <div>\r\n <mat-checkbox class=\"flex items-center h-10 min-h-10 m-1\" [color]=\"'primary'\" [checked]=\"isChecked()\"\r\n [indeterminate]=\"isIndeterminate()\" (change)=\"allCheckChange($event.checked)\">\r\n </mat-checkbox>\r\n </div>\r\n }\r\n <div class=\"flex items-center w-full\">\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:magnifying-glass'\"></mat-icon>\r\n <div class=\"ml-2\">\r\n <input #query class=\"w-full min-w-0 py-1 border-none\" type=\"text\" placeholder=\"输入过滤信息\"\r\n [disabled]=\"props.disabled\"\r\n (input)=\"filterByQuery(query.value)\">\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col border-t overflow-y-auto scrollbar-custom\"\r\n [ngClass]=\"props.controlMaxHeight?'max-h-64 sm:max-h-128 lg:max-h-64 py-4':'flex-auto'\">\r\n @if (filteredItems()) {\r\n @if(filteredItems()!.length>0){\r\n @for (data of filteredItems(); track trackByFn($index, data)) {\r\n <div role=\"presentation\" class=\"flex items-center pl-2 pr-4 py-2 h-15 w-full\" matRipple [matRippleDisabled]=\"disabled\"\r\n [ngClass]=\"{'cursor-pointer hover:bg-hover': !disabled}\" (click)=\"toggleCheckList(data,$event)\">\r\n <mat-checkbox class=\"flex items-center h-10 min-h-10 pointer-events-none\" disableRipple [color]=\"'primary'\"\r\n [checked]=\"isCheck(data)\" [disabled]=\"data.disabled||props.disabled\">\r\n <div class=\"flex flex-col flex-auto\">\r\n <div class=\"font-medium leading-5 truncate\">{{data.label}}</div>\r\n </div>\r\n </mat-checkbox>\r\n </div>\r\n }\r\n } @else {\r\n <cmat-empty-state\r\n [bordered]=\"false\"\r\n [icon]=\"'mat_outline:inbox'\"\r\n [title]=\"'暂无数据'\"\r\n [ctaLabel]=\"''\"\r\n ></cmat-empty-state> \r\n }\r\n }\r\n </div>\r\n </div>\r\n</div>","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n DoCheck,\r\n OnInit,\r\n computed,\r\n inject,\r\n signal,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatChipInputComponent } from 'cmat/components/chip-input';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface ChipsInputProps extends CustomFormFieldProps {\r\n hasAutocomplete?: boolean;\r\n autocompleteText?: string;\r\n domain?: DomainConfig\r\n}\r\n\r\n\r\n@Component({\r\n selector: 'cmat-chips-input-type',\r\n templateUrl: './chips.component.html',\r\n styleUrls: ['./chips.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatChipInputComponent]\r\n})\r\nexport class CmatChipsInputTypeComponent extends FieldType<FieldTypeConfig<ChipsInputProps>> implements OnInit, DoCheck {\r\n readonly urlData = signal<unknown[]>([]);\r\n readonly autocompleteOptions = computed(() => {\r\n const data = this.urlData();\r\n\r\n if (data && data.length > 0) {\r\n return data.filter((item): item is string => typeof item === 'string');\r\n }\r\n\r\n const staticText = this.props?.autocompleteText;\r\n if (staticText) {\r\n return staticText.split(',').map(s => s.trim()).filter(s => s.length > 0);\r\n }\r\n\r\n return [];\r\n });\r\n\r\n private _lastDomain: ChipsInputProps['domain'] = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<unknown>(domain, this._destroyRef, {\r\n transform: (rawData) => {\r\n // Chips 特殊处理:支持字符串数组或逗号分隔的字符串\r\n if (rawData.length > 0 && typeof rawData[0] === 'string') {\r\n return rawData;\r\n } else if (rawData.length > 0 && typeof rawData[0] === 'object' && rawData[0] !== null) {\r\n // 如果是对象数组,尝试提取 label/name/text 字段\r\n return rawData.map((item) => {\r\n const obj = item as Record<string, unknown>;\r\n return (obj.label ?? obj.name ?? obj.text ?? obj.value ?? item);\r\n });\r\n }\r\n return rawData;\r\n },\r\n onSuccess: (data) => {\r\n // 如果提取的是字符串,转换为数组\r\n if (data.length === 1 && typeof data[0] === 'string') {\r\n this.urlData.set((data[0]).split(',').map(s => s.trim()));\r\n } else {\r\n this.urlData.set(data);\r\n }\r\n },\r\n componentName: 'CmatChipsInputTypeComponent'\r\n });\r\n }\r\n}\r\n\r\n","<cmat-chip-input \r\n [hasAutocomplete]=\"props.hasAutocomplete ?? false\" \r\n [formControl]=\"formControl\"\r\n [selectableOptions]=\"autocompleteOptions()\" \r\n [tabIndex]=\"props.tabindex\" \r\n [required]=\"required\">\r\n</cmat-chip-input>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CmatColorPickerButtonComponent } from 'cmat/components/color-picker';\r\n\r\n@Component({\r\n selector: 'cmat-color-picker-type',\r\n templateUrl: './color-picker.component.html',\r\n styleUrls: ['./color-picker.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatColorPickerButtonComponent]\r\n})\r\nexport class CmatColorPickerTypeComponent extends FieldType<FieldTypeConfig> {\r\n}","<cmat-color-picker-button [value]=\"value\" [label]=\"props.label??''\" [placeholder]=\"props.placeholder??''\" [tabindex]=\"props.tabindex\" [disabled]=\"props.disabled??false\" (valueChanged)=\"value=$event\"></cmat-color-picker-button>","import { HttpClient } from '@angular/common/http';\r\nimport { ChangeDetectionStrategy, Component, DestroyRef, inject, OnInit, signal, DoCheck } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport {\r\n CmatDataPickerComponent,\r\n DataSourceConfig,\r\n DataPickerColumn,\r\n DataPickerProvider,\r\n DataPickerQuery,\r\n PagedResult,\r\n} from 'cmat/components/data-picker';\r\nimport { isEqual } from 'lodash-es';\r\nimport { catchError, Observable, of } from 'rxjs';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface DomainConfig {\r\n url?: string;\r\n code?: string;\r\n key?: string;\r\n value?: string;\r\n}\r\n\r\ninterface DataPickerProps extends CustomFormFieldProps {\r\n // 数据源配置\r\n dataSource?: DataSourceConfig;\r\n apiUrl?: string;\r\n\r\n // 列配置\r\n columns?: DataPickerColumn[];\r\n keyField?: string;\r\n labelField?: string;\r\n\r\n // 行为配置\r\n multiple?: boolean;\r\n searchable?: boolean;\r\n pageSize?: number;\r\n\r\n // UI 配置\r\n uiMode?: 'auto' | 'drawer' | 'dialog' | 'bottom-sheet';\r\n drawerPosition?: 'start' | 'end';\r\n drawerWidth?: string;\r\n dialogWidth?: string;\r\n dialogMaxHeight?: string;\r\n\r\n // 显示配置\r\n displayTemplate?: string;\r\n displayLabelFn?: (item: ApiItem) => string;\r\n\r\n // 数据提供者(可选,如果提供则优先使用)\r\n dataProvider?: DataPickerProvider<ApiItem>;\r\n\r\n // 域配置(用于动态加载数据)\r\n domain?: DomainConfig;\r\n}\r\n\r\ntype ApiItem = Record<string, unknown>;\r\n\r\n@Component({\r\n selector: 'cmat-data-picker-type',\r\n templateUrl: './data-picker.component.html',\r\n styleUrls: ['./data-picker.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatDataPickerComponent]\r\n})\r\nexport class CmatDataPickerTypeComponent extends FieldType<FieldTypeConfig<DataPickerProps>> implements OnInit, DoCheck {\r\n readonly dataProviderSignal = signal<DataPickerProvider<ApiItem> | undefined>(undefined);\r\n\r\n private _http = inject(HttpClient);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n // 用于记录上一次的配置快照\r\n private _lastDomain: DataPickerProps['domain'] = undefined;\r\n private _lastApiUrl: string | undefined = undefined;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n // 初始化快照\r\n this._lastDomain = this.props.domain;\r\n this._lastApiUrl = this.props.apiUrl;\r\n\r\n // 执行初始创建逻辑\r\n this._createDataProvider();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentApiUrl = this.props.apiUrl;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 检查 apiUrl 变化\r\n if (currentApiUrl !== this._lastApiUrl) {\r\n this._lastApiUrl = currentApiUrl;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._createDataProvider();\r\n }\r\n }\r\n\r\n /**\r\n * 统一创建 dataProvider 的方法\r\n */\r\n private _createDataProvider(): void {\r\n const domain = this.props.domain;\r\n const apiUrl = this.props.apiUrl;\r\n\r\n if (domain?.url && domain?.key && domain?.code && domain?.value) {\r\n this._createDataProviderFromDomain(domain);\r\n } else if (apiUrl) {\r\n // 如果提供了 apiUrl,创建简单的 HTTP provider\r\n this._createDataProviderFromUrl(apiUrl);\r\n } else {\r\n // 没有配置,清空 provider\r\n this.dataProviderSignal.set(undefined);\r\n }\r\n }\r\n\r\n /**\r\n * 从 domain 配置创建 dataProvider\r\n */\r\n private _createDataProviderFromDomain(domain: NonNullable<DataPickerProps['domain']>): void {\r\n if (!domain.url || !domain.key || !domain.code || !domain.value) return;\r\n\r\n const provider: DataPickerProvider<ApiItem> = {\r\n loadPage: (query: DataPickerQuery): Observable<PagedResult<ApiItem>> => {\r\n const params: Record<string, unknown> = {\r\n page: query.page,\r\n size: query.size,\r\n };\r\n\r\n if (query.search) {\r\n params[domain.key!] = domain.code;\r\n params['search'] = query.search;\r\n }\r\n\r\n if (query.orderBy) {\r\n params['orderBy'] = query.orderBy;\r\n params['desc'] = query.desc ?? false;\r\n }\r\n\r\n return this._http.post<ApiItem>(domain.url!, params).pipe(\r\n takeUntilDestroyed(this._destroyRef),\r\n catchError((error) => {\r\n console.error('Failed to load data picker data:', error);\r\n return of({ data: [], total: 0 } as PagedResult<ApiItem>);\r\n })\r\n ) as Observable<PagedResult<ApiItem>>;\r\n },\r\n };\r\n\r\n this.dataProviderSignal.set(provider);\r\n }\r\n\r\n /**\r\n * 从 URL 创建简单的 dataProvider\r\n */\r\n private _createDataProviderFromUrl(url: string): void {\r\n const provider: DataPickerProvider<ApiItem> = {\r\n loadPage: (query: DataPickerQuery): Observable<PagedResult<ApiItem>> => {\r\n const params: Record<string, unknown> = {\r\n page: query.page,\r\n size: query.size,\r\n };\r\n\r\n if (query.search) {\r\n params['search'] = query.search;\r\n }\r\n\r\n if (query.orderBy) {\r\n params['orderBy'] = query.orderBy;\r\n params['desc'] = query.desc ?? false;\r\n }\r\n\r\n return this._http.post<PagedResult<ApiItem>>(url, params).pipe(\r\n takeUntilDestroyed(this._destroyRef),\r\n catchError((error) => {\r\n console.error('Failed to load data picker data:', error);\r\n return of({ data: [], total: 0 } as PagedResult<ApiItem>);\r\n })\r\n );\r\n },\r\n };\r\n\r\n this.dataProviderSignal.set(provider);\r\n }\r\n}\r\n","<cmat-data-picker\r\n [formControl]=\"formControl\"\r\n [dataProvider]=\"dataProviderSignal()\"\r\n [columns]=\"props.columns ?? []\"\r\n [keyField]=\"props.keyField ?? 'id'\"\r\n [labelField]=\"props.labelField ?? 'name'\"\r\n [multiple]=\"props.multiple ?? false\"\r\n [searchable]=\"props.searchable ?? true\"\r\n [pageSize]=\"props.pageSize ?? 20\"\r\n [uiMode]=\"props.uiMode ?? 'auto'\"\r\n [drawerPosition]=\"props.drawerPosition ?? 'end'\"\r\n [drawerWidth]=\"props.drawerWidth ?? '600px'\"\r\n [dialogWidth]=\"props.dialogWidth ?? '800px'\"\r\n [dialogMaxHeight]=\"props.dialogMaxHeight ?? '80vh'\"\r\n [displayTemplate]=\"props.displayTemplate\"\r\n [placeholder]=\"placeholder\"\r\n [required]=\"required\">\r\n</cmat-data-picker>\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatDateRangeComponent } from 'cmat/components/date-range';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface DateRangeProps extends CustomFormFieldProps {\r\n dateFormat: string;\r\n timeFormat: string;\r\n timeRange: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-date-range-type',\r\n templateUrl: './date-range.component.html',\r\n styleUrls: ['./date-range.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatDateRangeComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatDateRangeTypeComponent extends FieldType<FieldTypeConfig<DateRangeProps>>{\r\n override defaultOptions = {\r\n props: {\r\n dateFormat: 'YYYY/MM/DD',\r\n timeFormat: '24',\r\n timeRange: true\r\n },\r\n };\r\n}","<cmat-date-range [dateFormat]=\"props.dateFormat\" [timeFormat]=\"props.timeFormat\" [timeRange]=\"props.timeRange\" \r\n[formControl]=\"formControl\" [tabindex]=\"props.tabindex\" [readonly]=\"disabled\">\r\n</cmat-date-range>","import { ChangeDetectionStrategy, Component, computed, effect, inject } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatCalendarView, CmatDatetimepickerComponent, CmatDatetimepickerInputDirective, CmatDatetimepickerMode, CmatDatetimepickerToggleComponent, CmatDatetimepickerType } from 'cmat/components/material-datetimepicker';\r\nimport { CmatMediaWatcherService } from 'cmat/services/media-watcher';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface DatepickerProps extends CustomFormFieldProps {\r\n startView: CmatCalendarView;\r\n mode: CmatDatetimepickerMode;\r\n togglePosition: 'left' | 'right';\r\n timeInterval: number;\r\n type: CmatDatetimepickerType;\r\n multiYearSelector: boolean;\r\n twelvehour: boolean;\r\n timeInput: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-datepicker-type',\r\n templateUrl: './datepicker.component.html',\r\n styleUrls: ['./datepicker.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatDatetimepickerToggleComponent, CmatDatetimepickerInputDirective, CmatDatetimepickerComponent, MatInputModule, FormsModule, ReactiveFormsModule]\r\n})\r\nexport class CmatDatepickerTypeComponent extends FieldType<FieldTypeConfig<DatepickerProps>> {\r\n override defaultOptions = {\r\n props: {\r\n startView: 'month' as const,\r\n mode: 'auto' as const,\r\n togglePosition: 'left' as const,\r\n timeInterval: 5,\r\n type: 'datetime' as const,\r\n multiYearSelector: false,\r\n disabled: false,\r\n timeInput: true,\r\n twelvehour: false\r\n }\r\n };\r\n\r\n private _cmatMediaWatcherService = inject(CmatMediaWatcherService);\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n readonly isHandSet = computed(() => {\r\n return !this._cmatMediaWatcherService.mediaChange().matchingAliases.includes('lg')\r\n });\r\n\r\n constructor() {\r\n super();\r\n\r\n effect(() => {\r\n const disabled = this.props.disabled;\r\n if (disabled && !this.formControl.disabled) {\r\n this.formControl.disable({ emitEvent: false });\r\n } else if (!disabled && this.formControl.disabled) {\r\n this.formControl.enable({ emitEvent: false });\r\n }\r\n });\r\n }\r\n}\r\n","@if(props.togglePosition==='left'){\r\n<cmat-datetimepicker-toggle matPrefix [for]=\"datetimePicker\" [disabled]=\"disabled\"></cmat-datetimepicker-toggle>\r\n}\r\n\r\n<cmat-datetimepicker #datetimePicker openOnFocus=\"true\" [startView]=\"props.startView\" [mode]=\"props.mode\"\r\n [timeInterval]=\"props.timeInterval\" [twelvehour]=\"props.twelvehour\" [type]=\"props.type\"\r\n [multiYearSelector]=\"props.multiYearSelector\" [timeInput]=\"props.timeInput\" [touchUi]=\"isHandSet()\"\r\n [disabled]=\"disabled\"></cmat-datetimepicker>\r\n\r\n<input autocomplete=\"false\" matInput [cmatDatetimepicker]=\"datetimePicker\" [required]=\"required\"\r\n [formControl]=\"formControl\" [placeholder]=\"placeholder\" />\r\n\r\n@if(props.togglePosition==='right'){\r\n<cmat-datetimepicker-toggle matSuffix [for]=\"datetimePicker\" [disabled]=\"disabled\"></cmat-datetimepicker-toggle>\r\n}","import { AsyncPipe } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, DestroyRef, Type, inject, DoCheck, OnInit } from '@angular/core';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FormlySelectModule, FormlySelectOption } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig, OptionData } from '../common-types';\r\n\r\ninterface MultiCheckboxOption extends OptionData {\r\n value?: string | number;\r\n label?: string;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface MultiCheckboxProps extends CustomFormFieldProps {\r\n labelPosition: 'before' | 'after';\r\n type?: 'array' | 'object';\r\n domain?: DomainConfig;\r\n}\r\n\r\nexport interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {\r\n type: 'multicheckbox' | Type<CmatMultiCheckboxTypeComponent>;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-multicheckbox-type',\r\n templateUrl: './multicheckbox.component.html',\r\n styleUrls: ['./multicheckbox.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCheckboxModule, AsyncPipe, FormlySelectModule]\r\n})\r\nexport class CmatMultiCheckboxTypeComponent extends FieldType<FieldTypeConfig<MultiCheckboxProps>> implements OnInit, DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n hideFieldUnderline: true,\r\n floatLabel: 'always' as const,\r\n color: 'accent' as const,\r\n labelPosition: 'after' as const\r\n },\r\n };\r\n\r\n urlData: MultiCheckboxOption[] = [];\r\n\r\n private _lastDomain: MultiCheckboxProps['domain'] = undefined;\r\n private _lastOptions: unknown = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 2. 检查 options 变化\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n onChange(optionValue: string | number | undefined, checked: boolean): void {\r\n if (optionValue === undefined || optionValue === null) return;\r\n\r\n this.formControl.markAsDirty();\r\n\r\n if (this.props.type === 'array') {\r\n const currentValue = (this.formControl.value ?? []) as (string | number)[];\r\n\r\n this.formControl.patchValue(\r\n checked\r\n ? [...currentValue, optionValue]\r\n : currentValue.filter(o => o !== optionValue),\r\n );\r\n } else {\r\n const currentObj = (this.formControl.value as Record<string, boolean>) ?? {};\r\n this.formControl.patchValue({\r\n ...currentObj,\r\n [optionValue]: checked\r\n });\r\n }\r\n this.formControl.markAsTouched();\r\n }\r\n\r\n isChecked(option: MultiCheckboxOption | FormlySelectOption): boolean {\r\n const formValue = this.formControl.value as string[] | Record<string, boolean> | null;\r\n let optionValue: string | number | undefined;\r\n\r\n if ((option as MultiCheckboxOption).value !== undefined) {\r\n optionValue = (option as MultiCheckboxOption).value;\r\n } else if ((option as FormlySelectOption).value !== undefined) {\r\n optionValue = (option as FormlySelectOption).value as string | number;\r\n }\r\n\r\n if (optionValue === undefined || optionValue === null) {\r\n return false;\r\n }\r\n\r\n\r\n if (!formValue) {\r\n return false;\r\n }\r\n\r\n const safeOptionValue = String(optionValue);\r\n\r\n if (this.props.type === 'array') {\r\n if (Array.isArray(formValue)) {\r\n return formValue.some(v => String(v) === safeOptionValue);\r\n }\r\n return false;\r\n } else {\r\n if (typeof formValue === 'object' && formValue !== null) {\r\n return !!(formValue as Record<string, boolean>)[safeOptionValue];\r\n }\r\n return false;\r\n }\r\n }\r\n\r\n trackByFn(index: number, option: MultiCheckboxOption | FormlySelectOption): string | number {\r\n return (option.value as string | number) ?? index;\r\n }\r\n\r\n getData(): MultiCheckboxOption[] {\r\n return this.urlData;\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<MultiCheckboxOption>(domain, this._destroyRef, {\r\n onSuccess: (data) => {\r\n this.urlData = data;\r\n },\r\n componentName: 'CmatMultiCheckboxTypeComponent'\r\n });\r\n\r\n // 处理静态 options(当没有 domain 时)\r\n if (!domain?.url && this.field.props?.options) {\r\n const options = this.field.props.options as MultiCheckboxOption[];\r\n if (Array.isArray(options)) {\r\n this.urlData = options;\r\n }\r\n }\r\n }\r\n\r\n}\r\n","@if (urlData) {\r\n\r\n @let options = props.domain ? getData() : (props.options | formlySelectOptions : field | async);\r\n \r\n @for (option of options; track trackByFn($index, option)) {\r\n <mat-checkbox \r\n [tabIndex]=\"props.tabindex\" \r\n [color]=\"props.color\" \r\n [labelPosition]=\"props.labelPosition\"\r\n [checked]=\"isChecked(option)\" \r\n [disabled]=\"formControl.disabled || option.disabled\"\r\n (change)=\"onChange(option.value, $event.checked)\">\r\n {{ option.label }}\r\n </mat-checkbox>\r\n }\r\n}","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatDigitOnlyDirective } from 'cmat/directives/digit-only';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface NumberProps extends CustomFormFieldProps {\r\n decimal: boolean;\r\n min: number;\r\n max: number;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-number-type',\r\n templateUrl: './number.component.html',\r\n styleUrls: ['./number.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatDigitOnlyDirective, MatInputModule, ReactiveFormsModule]\r\n})\r\nexport class CmatNumberTypeComponent extends FieldType<FieldTypeConfig<NumberProps>>{\r\n override defaultOptions = {\r\n props: {\r\n decimal: false,\r\n min: -Infinity,\r\n max: Infinity\r\n },\r\n };\r\n}","<input matInput cmatDigitOnly [formControl]=\"formControl\" [readonly]=\"props.readonly\" [placeholder]=\"placeholder\" [tabIndex]=\"props.tabindex\" [required]=\"required\" [decimal]=\"props.decimal\" [allowNegatives]=\"true\" [allowPaste]=\"true\"\r\n [min]=\"props.min\" [max]=\"props.max\" [errorStateMatcher]=\"errorStateMatcher\">\r\n\r\n","import { NgStyle } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatRatingComponent } from 'cmat/components/rating';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface RatingProps extends CustomFormFieldProps {\r\n stars: number;\r\n readonly: boolean;\r\n hover: boolean;\r\n half: boolean;\r\n customColor?: string;\r\n showMode: 'horizontal' | 'vertical';\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-rating-type',\r\n templateUrl: './rating.component.html',\r\n styleUrls: ['./rating.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatRatingComponent, ReactiveFormsModule, NgStyle]\r\n})\r\nexport class CmatRatingTypeComponent extends FieldType<FieldTypeConfig<RatingProps>>{\r\n override defaultOptions: Partial<FieldTypeConfig<RatingProps>> = {\r\n props: {\r\n stars: 5,\r\n readonly: false,\r\n hover: true,\r\n half: true,\r\n showMode: 'horizontal'\r\n },\r\n };\r\n\r\n get isReadonly(): boolean {\r\n return this.props.readonly || !!this.props.disabled;\r\n }\r\n\r\n get isHover(): boolean {\r\n return !this.props.disabled && !!this.props.hover;\r\n }\r\n}","@if(props.customColor&&props.customColor.indexOf('#')>-1){\r\n<div [ngStyle]=\"{'color': props.customColor}\">\r\n <cmat-rating [formControl]=\"formControl\" [tabIndex]=\"props.tabindex\" [stars]=\"props.stars\"\r\n [readonly]=\"isReadonly\" [hover]=\"isHover\" [half]=\"props.half\" [showMode]=\"props.showMode\"></cmat-rating>\r\n</div>\r\n}@else{\r\n<cmat-rating [formControl]=\"formControl\" [tabIndex]=\"props.tabindex\" [stars]=\"props.stars\" [readonly]=\"isReadonly\"\r\n [hover]=\"isHover\" [half]=\"props.half\" [color]=\"props.customColor\" [showMode]=\"props.showMode\"></cmat-rating>\r\n}","import { AsyncPipe } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n AfterViewInit,\r\n Type,\r\n inject,\r\n signal,\r\n viewChild,\r\n OnInit,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatRadioGroup, MatRadioModule } from '@angular/material/radio';\r\nimport { FieldTypeConfig, FormlyFieldConfig, ɵobserve as observe } from '@ngx-formly/core';\r\nimport { FormlySelectModule, FormlySelectOption } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface RadioOption {\r\n label: string;\r\n value?: string | number;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface RadioProps extends CustomFormFieldProps {\r\n labelPosition: 'before' | 'after';\r\n domain?: DomainConfig\r\n}\r\n\r\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\r\n type: 'radio' | Type<CmatRadioTypeComponent>;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-radio-type',\r\n templateUrl: './radio.component.html',\r\n styleUrls: ['./radio.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatRadioModule, AsyncPipe, FormlySelectModule, ReactiveFormsModule]\r\n})\r\nexport class CmatRadioTypeComponent extends FieldType<FieldTypeConfig<RadioProps>> implements OnInit, AfterViewInit,DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n hideFieldUnderline: true,\r\n floatLabel: 'always' as const,\r\n tabindex: -1,\r\n labelPosition: 'after' as const\r\n },\r\n };\r\n\r\n readonly urlData = signal<RadioOption[]>([]);\r\n\r\n private readonly radioGroup = viewChild(MatRadioGroup);\r\n\r\n private focusObserver!: ReturnType<typeof observe>;\r\n\r\n private _lastDomain: RadioProps['domain'] = undefined;\r\n\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.focusObserver = observe(this.field, ['focus'], ({ currentValue }) => {\r\n if (this.radioGroup()) {\r\n if (this.props.tabindex === -1 && currentValue && this.radioGroup()!._radios.length > 0) {\r\n setTimeout(() => {\r\n const radio = this.radioGroup()!.selected ?? this.radioGroup()!._radios.first;\r\n radio?.focus();\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n override ngOnDestroy(): void {\r\n super.ngOnDestroy();\r\n this.focusObserver?.unsubscribe();\r\n }\r\n\r\n trackByFn(index: number, option: RadioOption | FormlySelectOption): string | number {\r\n return (option.value as string | number) ?? index;\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<RadioOption>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatRadioTypeComponent'\r\n });\r\n }\r\n}","<mat-radio-group [formControl]=\"formControl\" [required]=\"required\" [tabindex]=\"props.tabindex\">\r\n @if (urlData()) {\r\n @for (option of (urlData().length > 0 ? urlData() : (props.options | formlySelectOptions : field | async)); track\r\n trackByFn($index, option)) {\r\n <mat-radio-button [color]=\"props.color\" [labelPosition]=\"props.labelPosition\" [disabled]=\"option.disabled\"\r\n [value]=\"option.value\">\r\n {{ option.label }}\r\n </mat-radio-button>\r\n }\r\n }\r\n</mat-radio-group>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldArrayType, FieldTypeConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface RepeatProps extends CustomFormFieldProps {\r\n addText: string;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-repeat-type',\r\n templateUrl: './repeat.component.html',\r\n styleUrls: ['./repeat.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [FormlyModule, MatIconModule, MatButtonModule]\r\n})\r\nexport class CmatRepeatTypeComponent extends FieldArrayType<FieldTypeConfig<RepeatProps>> {\r\n override defaultOptions = {\r\n props: {\r\n addText: '新增'\r\n },\r\n };\r\n}\r\n","<div class=\"mb-2\" [tabIndex]=\"props.tabindex\">\r\n @if(props.label){\r\n <legend class=\"text-lg\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n </legend>\r\n }\r\n\r\n @if(props.description){\r\n <p>{{ props.description }}</p>\r\n }\r\n\r\n <div class=\"mb-2 h-1 border-solid border-b-2\"></div>\r\n <div class=\"flex flex-col repeat-body\">\r\n @for (field of field.fieldGroup; track $index) {\r\n <div class=\"flex flex-row items-center gap-2 repeat-item\">\r\n <formly-field class=\"repeat-field\" [field]=\"field\"></formly-field>\r\n @if(!props.disabled){\r\n <div class=\"flex items-center pl-2 print:hidden\">\r\n <button matIconButton color=\"warn\" matTooltip=\"删除\" (click)=\"remove($index)\">\r\n <mat-icon color=\"warn\" [svgIcon]=\"'heroicons_outline:trash'\"></mat-icon>\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n\r\n @if(!props.disabled){\r\n <div class=\"mt-2 print:hidden\">\r\n <button matButton=\"filled\" color=\"primary\" (click)=\"add()\">{{ props.addText}}</button>\r\n </div>\r\n }\r\n\r\n</div>","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n OnInit,\r\n inject,\r\n signal,\r\n computed,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatSelectSearchComponent } from 'cmat/components/select-search';\r\nimport { isArray, isEqual, isUndefined } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig, OptionData } from '../common-types';\r\n\r\ninterface SelectProps extends CustomFormFieldProps, FormlyFieldSelectProps {\r\n multiple?: boolean;\r\n disableOptionCentering?: boolean;\r\n typeaheadDebounceInterval?: number;\r\n search: boolean;\r\n canNull: boolean;\r\n showToggleAllCheckbox: boolean;\r\n domain?: DomainConfig;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-select-search-type',\r\n templateUrl: './select.component.html',\r\n styleUrls: ['./select.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatCheckboxModule, MatSelectModule, CmatSelectSearchComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatSelectTypeComponent extends FieldType<FieldTypeConfig<SelectProps>> implements OnInit, DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n search: true,\r\n canNull: false,\r\n showToggleAllCheckbox: false\r\n },\r\n };\r\n\r\n readonly searchControl = new FormControl<string | null>('');\r\n\r\n readonly urlData = signal<OptionData[]>([]);\r\n readonly optionsData = signal<OptionData[]>([]);\r\n\r\n readonly filteredOptions = computed(() => {\r\n const allData = this.allOptions();\r\n const search = this._searchText();\r\n\r\n if (!search) {\r\n return allData;\r\n }\r\n\r\n return allData.filter((item) => {\r\n const labelMatch = item.label?.toString().toLowerCase().includes(search);\r\n const valueMatch = item.value?.toString().toLowerCase().includes(search);\r\n return labelMatch ?? valueMatch;\r\n });\r\n });\r\n\r\n\r\n readonly isIndeterminate = computed(() => {\r\n if (!this.props.multiple || !this.props.search) return false;\r\n\r\n const visibleOptions = this.filteredOptions().filter(o => !o.disabled);\r\n if (visibleOptions.length === 0) return false;\r\n\r\n const currentValue = this.formControl.value as OptionData[] | undefined;\r\n if (!isArray(currentValue)) return false;\r\n\r\n const selectedVisibleCount = visibleOptions.filter(opt =>\r\n currentValue.some(sel => this._isSameSelectValue(sel, opt))\r\n ).length;\r\n\r\n return selectedVisibleCount > 0 && selectedVisibleCount < visibleOptions.length;\r\n });\r\n\r\n readonly isChecked = computed(() => {\r\n if (!this.props.multiple || !this.props.search) return false;\r\n\r\n const visibleOptions = this.filteredOptions().filter(o => !o.disabled);\r\n if (visibleOptions.length === 0) return false;\r\n\r\n const currentValue = this.formControl.value as OptionData[] | undefined;\r\n if (!isArray(currentValue)) return false;\r\n\r\n const selectedVisibleCount = visibleOptions.filter(opt =>\r\n currentValue.some(sel => this._isSameSelectValue(sel, opt))\r\n ).length;\r\n\r\n return selectedVisibleCount > 0 && selectedVisibleCount === visibleOptions.length;\r\n });\r\n\r\n\r\n readonly allOptions = computed(() => {\r\n if (this.urlData().length > 0) {\r\n return this.urlData();\r\n }\r\n\r\n return this.optionsData() || [];\r\n });\r\n\r\n private readonly _searchText = signal<string>('');\r\n\r\n private _lastDomain: SelectProps['domain'] = undefined;\r\n private _lastOptions: unknown = undefined;\r\n\r\n private _domainDataService = inject(DomainDataService);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n\r\n this._refreshData();\r\n\r\n if (!isUndefined(this.formControl.value) && !isArray(this.formControl.value) && this.props.multiple) {\r\n this.formControl.setValue([this.formControl.value]);\r\n }\r\n\r\n\r\n this.searchControl.valueChanges\r\n .pipe(takeUntilDestroyed(this._destroyRef))\r\n .subscribe((value) => {\r\n this._searchText.set(value ?? '');\r\n });\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n // 2. 检查 options 变化 (仅当 domain 未配置时,options 才生效,但为了稳妥,只要变了就更新)\r\n // 注意:如果 domain 存在,urlData 优先级更高,但更新 optionsData 也无妨,因为 allOptions computed 会优先取 urlData\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n toggleSelectAll(selectAllValue: boolean): void {\r\n const visibleOptions = this.filteredOptions().filter(o => !o.disabled);\r\n\r\n if (selectAllValue) {\r\n this.formControl.setValue([...visibleOptions]);\r\n } else {\r\n this.formControl.setValue([]);\r\n }\r\n this.formControl.markAsDirty();\r\n }\r\n\r\n getAriaLabelledby(): string {\r\n if (this.props.attributes?.['aria-labelledby']) {\r\n return this.props.attributes['aria-labelledby'] as string;\r\n }\r\n return this.formField?._labelId;\r\n }\r\n\r\n getAriaLabel(): string {\r\n return this.props.attributes?.['aria-label'] as string;\r\n }\r\n\r\n compareWithFn(o1: OptionData | null | undefined, o2: OptionData | null | undefined): boolean {\r\n if (!o1 || !o2) {\r\n return o1 === o2;\r\n }\r\n return o1.label === o2.label && o1.value === o2.value;\r\n }\r\n\r\n\r\n private _isSameSelectValue(left: OptionData, right: OptionData): boolean {\r\n return left.value === right.value && left.label === right.label;\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n \r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<OptionData>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatSelectTypeComponent'\r\n });\r\n\r\n // 处理静态 options(当没有 domain 时)\r\n if (!domain?.url && this.field.props?.options && isArray(this.field.props?.options)) {\r\n this.optionsData.set(this.field.props.options as OptionData[] || []);\r\n } else if (!domain?.url) {\r\n this.optionsData.set([]);\r\n }\r\n }\r\n}\r\n","@if(props.multiple){\r\n<mat-select #multiSelect multiple [id]=\"id\" [formControl]=\"formControl\" [placeholder]=\"props.placeholder??''\"\r\n [required]=\"required\" [tabIndex]=\"props.tabindex\" [compareWith]=\"compareWithFn\"\r\n [errorStateMatcher]=\"errorStateMatcher\" [aria-label]=\"getAriaLabel()\" [aria-labelledby]=\"getAriaLabelledby()\"\r\n [disableOptionCentering]=\"props.disableOptionCentering\"\r\n [typeaheadDebounceInterval]=\"props.typeaheadDebounceInterval\">\r\n \r\n @if (props.search) {\r\n <mat-option>\r\n <cmat-select-search [formControl]=\"searchControl\" [showToggleAllCheckbox]=\"props.showToggleAllCheckbox\"\r\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate()\" [toggleAllCheckboxChecked]=\"isChecked()\"\r\n (toggleAll)=\"toggleSelectAll($event)\">\r\n </cmat-select-search>\r\n </mat-option>\r\n }\r\n\r\n @if (allOptions().length !== 0 && props.canNull && !props.multiple) {\r\n <mat-option value=\"\">空</mat-option>\r\n }\r\n\r\n @for (i of filteredOptions(); track i.value || $index) {\r\n @if(i.label){\r\n @if(i.group){\r\n <mat-optgroup [label]=\"i.label\">\r\n @for (child of i.group; track child.value || $index) {\r\n <mat-option [value]=\"child\" [disabled]=\"child.disabled\">\r\n {{ child.label }}\r\n </mat-option>\r\n }\r\n </mat-optgroup>\r\n }@else {\r\n <mat-option [value]=\"i\" [disabled]=\"i.disabled\">{{i.label}}</mat-option>\r\n }\r\n }@else {\r\n <mat-option [value]=\"i\">{{i}}</mat-option>\r\n }\r\n }\r\n</mat-select>\r\n}@else {\r\n<mat-select #multiSelect [id]=\"id\" [formControl]=\"formControl\" [placeholder]=\"props.placeholder??''\"\r\n [required]=\"required\" [tabIndex]=\"props.tabindex\" [compareWith]=\"compareWithFn\"\r\n [errorStateMatcher]=\"errorStateMatcher\" [aria-label]=\"getAriaLabel()\" [aria-labelledby]=\"getAriaLabelledby()\"\r\n [disableOptionCentering]=\"props.disableOptionCentering\"\r\n [typeaheadDebounceInterval]=\"props.typeaheadDebounceInterval\">\r\n \r\n @if (props.search) {\r\n <mat-option>\r\n <cmat-select-search [formControl]=\"searchControl\" [showToggleAllCheckbox]=\"props.showToggleAllCheckbox\"\r\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate()\" [toggleAllCheckboxChecked]=\"isChecked()\"\r\n (toggleAll)=\"toggleSelectAll($event)\">\r\n </cmat-select-search>\r\n </mat-option>\r\n }\r\n\r\n @if (allOptions().length !== 0 && props.canNull && !props.multiple) {\r\n <mat-option value=\"\">空</mat-option>\r\n }\r\n\r\n\r\n @for (i of filteredOptions(); track i.value || $index) {\r\n @if(i.label){\r\n @if(i.group){\r\n <mat-optgroup [label]=\"i.label\">\r\n @for (child of i.group; track child.value || $index) {\r\n <mat-option [value]=\"child\" [disabled]=\"child.disabled\">\r\n {{ child.label }}\r\n </mat-option>\r\n }\r\n </mat-optgroup>\r\n }@else {\r\n <mat-option [value]=\"i\" [disabled]=\"i.disabled\">{{i.label}}</mat-option>\r\n }\r\n }@else {\r\n <mat-option [value]=\"i\">{{i}}</mat-option>\r\n }\r\n }\r\n</mat-select>\r\n}","import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n inject,\r\n signal,\r\n OnInit,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CmatSelectTreeComponent, CmatSelectTreeNode } from 'cmat/components/select-tree';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface SelectTreeProps extends CustomFormFieldProps, FormlyFieldSelectProps {\r\n multiple: boolean;\r\n search: boolean;\r\n canNull: boolean;\r\n showToggleAllCheckbox: boolean;\r\n expandable: boolean;\r\n customTriggerLabelTemplate: string;\r\n domain?: DomainConfig\r\n}\r\n\r\n\r\n@Component({\r\n selector: 'cmat-select-tree-type',\r\n templateUrl: './select-tree.component.html',\r\n styleUrls: ['./select-tree.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatSelectTreeComponent]\r\n})\r\nexport class CmatSelectTreeTypeComponent extends FieldType<FieldTypeConfig<SelectTreeProps>> implements OnInit, DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n multiple: false,\r\n search: true,\r\n canNull: false,\r\n showToggleAllCheckbox: false,\r\n expandable: true,\r\n customTriggerLabelTemplate: '${name}'\r\n },\r\n };\r\n\r\n readonly urlData = signal<CmatSelectTreeNode[]>([]);\r\n\r\n private _lastDomain: SelectTreeProps['domain'] = undefined;\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CmatSelectTreeNode>(domain, this._destroyRef, {\r\n onSuccess: data => this.urlData.set(data),\r\n componentName: 'CmatSelectTreeTypeComponent'\r\n });\r\n }\r\n\r\n\r\n\r\n}\r\n\r\n","<cmat-select-tree \r\n [formControl]=\"formControl\" \r\n [dataSource]=\"urlData()\" \r\n [customTriggerLabelTemplate]=\"'${name}'\"\r\n [multiple]=\"props.multiple\" \r\n [overallSearchEnabled]=\"props.search\" \r\n [canNull]=\"props.canNull\"\r\n [showToggleAllCheckbox]=\"props.showToggleAllCheckbox\" \r\n [expandable]=\"props.expandable\" \r\n [placeholder]=\"placeholder\"\r\n [tabIndex]=\"props.tabindex\" \r\n [required]=\"required\">\r\n</cmat-select-tree>","import { ChangeDetectionStrategy, Component, DestroyRef, inject, signal, OnInit, DoCheck } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CmatSelectTableComponent, CmatSelectTableDataSource, CmatSelectTableRow } from 'cmat/components/select-table';\r\nimport { isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface SelectTableProps extends CustomFormFieldProps, FormlyFieldSelectProps {\r\n multiple: boolean;\r\n search: boolean;\r\n canNull: boolean;\r\n customTriggerLabelTemplate: string;\r\n domain?: DomainConfig\r\n}\r\n\r\n\r\n@Component({\r\n selector: 'cmat-select-table-type',\r\n templateUrl: './select-table.component.html',\r\n styleUrls: ['./select-table.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, CmatSelectTableComponent]\r\n})\r\nexport class CmatSelectTableTypeComponent extends FieldType<FieldTypeConfig<SelectTableProps>> implements OnInit,DoCheck {\r\n override defaultOptions = {\r\n props: {\r\n multiple: false,\r\n search: true,\r\n canNull: false,\r\n customTriggerLabelTemplate: '${name}'\r\n },\r\n };\r\n\r\n readonly urlData = signal<CmatSelectTableDataSource<CmatSelectTableRow>>({ columns: [], data: [] });\r\n\r\n private _lastDomain: SelectTableProps['domain'] = undefined;\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n\r\n this._refreshData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n\r\n let shouldRefresh = false;\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n shouldRefresh = true;\r\n }\r\n\r\n if (shouldRefresh) {\r\n this._refreshData();\r\n }\r\n }\r\n\r\n private _refreshData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<CmatSelectTableDataSource<CmatSelectTableRow>>(domain, this._destroyRef, {\r\n transform: (rawData) => {\r\n // Select-Table 需要特殊验证数据结构\r\n if (this._isValidDataSource(rawData)) {\r\n return rawData as unknown as CmatSelectTableDataSource<CmatSelectTableRow>[];\r\n }\r\n console.warn('Invalid select-table data structure');\r\n return [];\r\n },\r\n onSuccess: (data) => {\r\n if (data.length > 0) {\r\n this.urlData.set(data[0]);\r\n } else {\r\n this.urlData.set({ columns: [], data: [] });\r\n }\r\n },\r\n componentName: 'CmatSelectTableTypeComponent'\r\n });\r\n }\r\n\r\n\r\n\r\n private _isValidDataSource(data: unknown): data is CmatSelectTableDataSource<CmatSelectTableRow> {\r\n return (\r\n typeof data === 'object' &&\r\n data !== null &&\r\n 'columns' in data &&\r\n 'data' in data &&\r\n Array.isArray(data.columns) &&\r\n Array.isArray(data.data)\r\n );\r\n }\r\n}\r\n\r\n","<cmat-select-table \r\n [formControl]=\"formControl\" \r\n [dataSource]=\"urlData()\" \r\n [customTriggerLabelTemplate]=\"'${name}'\"\r\n [multiple]=\"props.multiple\" \r\n [overallSearchEnabled]=\"props.search\" \r\n [canNull]=\"props.canNull\"\r\n [placeholder]=\"placeholder\" \r\n [tabIndex]=\"props.tabindex\" \r\n [required]=\"required\">\r\n</cmat-select-table>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatStepperModule } from '@angular/material/stepper';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { StepperProps } from '../stepper.type';\r\n\r\n@Component({\r\n selector: 'cmat-stepper-horizontal-type',\r\n templateUrl: './stepper.component.html',\r\n styleUrls: ['./stepper.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [FormlyModule, MatStepperModule, MatButtonModule, ReactiveFormsModule, MatIconModule]\r\n})\r\nexport class CmatStepperHorizontalTypeComponent extends FieldType<FieldTypeConfig<StepperProps>> {\r\n isValid(field: FormlyFieldConfig): boolean {\r\n if (field.key) {\r\n if (field.formControl)\r\n return field.formControl.valid;\r\n\r\n return true;\r\n }\r\n\r\n return field.fieldGroup ? field.fieldGroup.every(f => this.isValid(f)) : true;\r\n }\r\n}\r\n","<mat-horizontal-stepper [linear]=\"props.isLinear\" [tabIndex]=\"props.tabindex\">\r\n\r\n <ng-template matStepperIcon=\"edit\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_solid:pencil'\"></mat-icon>\r\n </ng-template>\r\n <ng-template matStepperIcon=\"done\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n </ng-template>\r\n\r\n @for (step of field.fieldGroup; track $index) {\r\n <mat-step [stepControl]=\"step.formControl!\" [editable]=\"step.props?.isEditable||$last\" [optional]=\"step.props?.isOptional\">\r\n <ng-template matStepLabel>{{ step.props?.label||'' }}</ng-template>\r\n <div class=\"py-2\">\r\n <formly-field [field]=\"step\"></formly-field>\r\n </div>\r\n <div class=\"mt-2 flex flex-row gap-2\">\r\n @if($index !== 0){\r\n <button matStepperPrevious matButton=\"filled\" color=\"primary\" type=\"button\">上一步</button>\r\n }\r\n\r\n @if(!$last){\r\n <button matStepperNext matButton=\"filled\" color=\"primary\" type=\"button\" [disabled]=\"!isValid(step)\">\r\n 下一步\r\n </button>\r\n }\r\n </div>\r\n </mat-step>\r\n }\r\n\r\n</mat-horizontal-stepper>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatStepperModule } from '@angular/material/stepper';\r\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { StepperProps } from '../stepper.type';\r\n\r\n@Component({\r\n selector: 'cmat-stepper-vertical-type',\r\n templateUrl: './stepper.component.html',\r\n styleUrls: ['./stepper.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [FormlyModule, MatStepperModule, MatButtonModule, ReactiveFormsModule, MatIconModule]\r\n})\r\nexport class CmatStepperVerticalTypeComponent extends FieldType<FieldTypeConfig<StepperProps>> {\r\n isValid(field: FormlyFieldConfig): boolean {\r\n if (field.key) {\r\n if (field.formControl)\r\n return field.formControl.valid;\r\n\r\n return true;\r\n }\r\n\r\n return field.fieldGroup ? field.fieldGroup.every(f => this.isValid(f)) : true;\r\n }\r\n}\r\n","<mat-vertical-stepper [linear]=\"props.isLinear\" [tabIndex]=\"props.tabindex\">\r\n <ng-template matStepperIcon=\"edit\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_solid:pencil'\"></mat-icon>\r\n </ng-template>\r\n <ng-template matStepperIcon=\"done\">\r\n <mat-icon class=\"icon-size-4\" [svgIcon]=\"'heroicons_outline:check'\"></mat-icon>\r\n </ng-template>\r\n\r\n @for (step of field.fieldGroup; track $index) {\r\n <mat-step [stepControl]=\"step.formControl!\" [editable]=\"step.props?.isEditable||$last\" [optional]=\"step.props?.isOptional\">\r\n <ng-template matStepLabel>{{ step.props?.label||'' }}</ng-template>\r\n <div class=\"py-2\">\r\n <formly-field [field]=\"step\"></formly-field>\r\n </div>\r\n\r\n <div class=\"mt-2 flex flex-row gap-2\">\r\n @if($index!==0){\r\n <button matStepperPrevious matButton=\"filled\" color=\"primary\" type=\"button\">上一步</button>\r\n }\r\n\r\n @if(!$last){\r\n <button matStepperNext matButton=\"filled\" color=\"primary\" type=\"button\" [disabled]=\"!isValid(step)\">\r\n 下一步\r\n </button>\r\n }\r\n </div>\r\n </mat-step>\r\n }\r\n</mat-vertical-stepper>","import { CdkDrag } from '@angular/cdk/drag-drop';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\nimport {\r\n Component,\r\n ChangeDetectionStrategy,\r\n ViewContainerRef,\r\n inject,\r\n signal,\r\n viewChild,\r\n TemplateRef,\r\n computed,\r\n effect,\r\n} from '@angular/core';\r\nimport { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatTable, MatTableModule } from '@angular/material/table';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { FieldArrayType, FieldTypeConfig, FormlyFieldConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface TableProps extends CustomFormFieldProps {\r\n addText: string;\r\n showColumn?: boolean;\r\n}\r\n\r\ntype TableRowModel = Record<string, unknown>;\r\n\r\ninterface TableFieldModel {\r\n fieldArray?: {\r\n fieldGroup?: FormlyFieldConfig[];\r\n };\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-table-type',\r\n templateUrl: 'table.component.html',\r\n styleUrls: ['./table.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatButtonModule, MatIconModule, MatTableModule, FormsModule, FormlyModule, CdkDrag,\r\n ReactiveFormsModule, MatDialogModule, NgTemplateOutlet, MatTooltipModule]\r\n})\r\nexport class CmatTableTypeComponent extends FieldArrayType<FieldTypeConfig<TableProps>> {\r\n inlineform = new FormGroup({});\r\n\r\n readonly columns = computed(() => {\r\n const fieldGroup = this._fieldModel.fieldArray?.fieldGroup?.[0]?.fieldGroup ?? [];\r\n return fieldGroup\r\n .filter(field => field.props?.showColumn)\r\n .map(field => ({\r\n key: String(field.key ?? ''),\r\n label: field.props?.label ?? '',\r\n }));\r\n });\r\n\r\n readonly displayedColumns = signal<string[]>([]);\r\n\r\n readonly refreshVersion = signal(0);\r\n\r\n readonly currentMode = signal<Record<string, unknown>>({});\r\n readonly currentIndex = signal<number>(-1);\r\n readonly dialogType = signal<'add' | 'edit' | ''>('');\r\n\r\n override defaultOptions = {\r\n props: {\r\n addText: '新增'\r\n },\r\n };\r\n\r\n private readonly dialogRef = viewChild<TemplateRef<unknown>>('dialogRef');\r\n private readonly table = viewChild<MatTable<TableRowModel>>('table');\r\n\r\n private readonly _dialog = inject(MatDialog);\r\n private readonly _viewContainerRef = inject(ViewContainerRef);\r\n private _dialogRef!: MatDialogRef<unknown>;\r\n\r\n constructor() {\r\n super();\r\n\r\n effect(() => {\r\n const cols = this.columns().map(c => c.key);\r\n if (this.props.disabled) {\r\n this.displayedColumns.set(cols);\r\n } else {\r\n this.displayedColumns.set([...cols, 'operate']);\r\n }\r\n });\r\n }\r\n\r\n get fieldArray(): FormlyFieldConfig[] {\r\n return this._fieldModel.fieldArray?.fieldGroup ?? [];\r\n }\r\n\r\n get key(): string {\r\n return this._fieldModel.fieldArray?.fieldGroup?.[0]?.key as string ?? 'data';\r\n }\r\n\r\n private get _tableProps(): TableProps {\r\n return this.props;\r\n }\r\n\r\n private get _fieldModel(): TableFieldModel {\r\n return this.field as TableFieldModel;\r\n }\r\n\r\n addRow(): void {\r\n this.dialogType.set('add');\r\n this.currentMode.set({});\r\n this.inlineform.reset();\r\n\r\n this._openDialog();\r\n }\r\n\r\n editRow(item: TableRowModel, index: number): void {\r\n this.currentIndex.set(index);\r\n this.dialogType.set('edit');\r\n\r\n this.currentMode.set({\r\n [this.key]: { ...item } // 浅拷贝以防止直接修改原数据直到确认\r\n });\r\n\r\n this._openDialog();\r\n }\r\n\r\n deleteRow(index: number): void {\r\n this.remove(index);\r\n // 触发变更检测以更新表格视图\r\n this.refreshVersion.update(v => v + 1);\r\n }\r\n\r\n confirm(): void {\r\n if (this.inlineform.invalid) {\r\n this.inlineform.markAllAsTouched();\r\n return;\r\n }\r\n\r\n const model = this.model as TableRowModel[] | undefined;\r\n // 获取表单中编辑/新增的实际数据对象\r\n const currentValue = this.currentMode()[this.key] as TableRowModel;\r\n\r\n if (!currentValue) {\r\n this._dialogRef.close();\r\n return;\r\n }\r\n\r\n if (this.dialogType() === 'add') {\r\n this.add(model?.length ?? 0, currentValue);\r\n } else if (this.dialogType() === 'edit') {\r\n const index = this.currentIndex();\r\n if (index > -1 && model) {\r\n model[index] = currentValue;\r\n this.formControl.patchValue([...model]);\r\n }\r\n }\r\n\r\n this.refreshVersion.update(v => v + 1);\r\n this.table()?.renderRows();\r\n\r\n this._dialogRef.close();\r\n }\r\n\r\n private _openDialog(): void {\r\n const template = this.dialogRef();\r\n if (!template) return;\r\n\r\n this._dialogRef = this._dialog.open(template, {\r\n panelClass: ['cmat-table-dialog-container'],\r\n viewContainerRef: this._viewContainerRef\r\n });\r\n\r\n this._dialogRef.afterClosed().subscribe(() => {\r\n this.dialogType.set('');\r\n this.currentIndex.set(-1);\r\n });\r\n }\r\n}","<div class=\"relative flex flex-row flex-none items-center justify-between p-2 border-b\">\r\n <div>\r\n @if(props.label){\r\n <legend class=\"text-lg\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n </legend>\r\n }\r\n @if(props.description){\r\n <p>{{ props.description }}</p>\r\n }\r\n </div>\r\n\r\n <div class=\"cmat-table-type\" [attr.data-refresh]=\"refreshVersion()\">\r\n @if(!props.disabled){\r\n <div class=\"flex shrink-0 items-center ml-0 md:ml-4 print:hidden\">\r\n <button matButton=\"filled\" [color]=\"'primary'\" (click)=\"addRow()\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:plus'\"></mat-icon>\r\n <span class=\"ml-2\">{{props.addText}}</span>\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n\r\n<table #table mat-table class=\"w-full\" [dataSource]=\"model||[]\" [tabIndex]=\"props.tabindex\">\r\n @for (column of columns(); track $index) {\r\n <ng-container [matColumnDef]=\"column.key\">\r\n <th *matHeaderCellDef mat-header-cell> {{ column.label }} </th>\r\n <td *matCellDef=\"let element; let i = index\" mat-cell>\r\n <div class=\" has-label-on-mobile\" [attr.data-label]=\"column.label +':'\">\r\n {{element[column.key]}}\r\n </div>\r\n </td>\r\n </ng-container>\r\n }\r\n\r\n <ng-container matColumnDef=\"operate\" stickyEnd>\r\n <th *matHeaderCellDef mat-header-cell class=\"print:hidden\">@if(!props.disabled){操作}</th>\r\n <td *matCellDef=\"let element; let i = index\" mat-cell class=\"w-24 print:hidden\">\r\n @if(!props.disabled){\r\n <div class=\"flex flex-col lg:w-full\">\r\n <div class=\"relative flex flex-row gap-2 lg:m-2 justify-center\">\r\n <button type=\"button\" class=\"w-8 min-h-8 h-8 max-w-8 lg:opacity-0 lg:group-hover:opacity-100\"\r\n matIconButton [matTooltip]=\"'编辑'\" (click)=\"editRow(element,i)\">\r\n <mat-icon class=\"icon-size-5\" color=\"primary\" [svgIcon]=\"'heroicons_solid:pencil-square'\">\r\n </mat-icon>\r\n </button>\r\n\r\n <button type=\"button\" class=\"w-8 min-h-8 h-8 max-w-8 lg:opacity-0 lg:group-hover:opacity-100\"\r\n matIconButton [matTooltip]=\"'移除'\" (click)=\"deleteRow(i)\">\r\n <mat-icon class=\"icon-size-5\" color=\"warn\" [svgIcon]=\"'heroicons_solid:trash'\"></mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </td>\r\n </ng-container>\r\n\r\n <tr *matHeaderRowDef=\"displayedColumns()\" mat-header-row></tr>\r\n <tr *matRowDef=\"let row; columns: displayedColumns();\" mat-row class=\"group border\"></tr>\r\n</table>\r\n\r\n<ng-template #inlineTable>\r\n <div class=\"overflow-y-auto scrollbar-custom w-full\">\r\n <form [formGroup]=\"inlineform\">\r\n <formly-form [fields]=\"fieldArray\" [model]=\"currentMode()\" [form]=\"inlineform\"></formly-form>\r\n </form>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #dialogRef>\r\n <div mat-dialog-title cdkDrag class=\"-mt-6\" cdkDragRootElement=\".cdk-overlay-pane\" cdkDragHandle>\r\n <h2 class=\"pointer-events-none text-xl\">{{ props.label +'详细页'}}</h2>\r\n </div>\r\n\r\n <mat-dialog-content>\r\n <ng-container *ngTemplateOutlet=\"inlineTable\"></ng-container>\r\n </mat-dialog-content>\r\n\r\n <mat-dialog-actions>\r\n <div class=\"w-full flex justify-end items-center\">\r\n <button matButton=\"filled\" color=\"primary\" cdkFocusInitial (click)=\"confirm()\">\r\n 确定\r\n </button>\r\n <button matButton=\"outlined\" mat-dialog-close>\r\n 取消\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-template>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { MatTabsModule } from '@angular/material/tabs';\r\nimport { FieldTypeConfig, FormlyModule } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\n\r\n@Component({\r\n selector: 'cmat-tab-type',\r\n templateUrl: './tab.component.html',\r\n styleUrls: ['./tab.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatTabsModule, FormlyModule]\r\n})\r\nexport class CmatTabTypeComponent extends FieldType<FieldTypeConfig> {\r\n\r\n\r\n}\r\n","<mat-tab-group [tabIndex]=\"props.tabindex\">\r\n @for (tab of field.fieldGroup; track $index) {\r\n <mat-tab [label]=\"tab.props?.label||''\" [disabled]=\"tab.props?.disabled\">\r\n <div class=\"py-2\">\r\n <formly-field [field]=\"tab\"></formly-field>\r\n </div>\r\n </mat-tab>\r\n }\r\n</mat-tab-group>","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\r\nimport { TemplatePortal } from '@angular/cdk/portal';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n TemplateRef,\r\n ViewContainerRef,\r\n inject,\r\n signal,\r\n viewChild,\r\n computed,\r\n OnInit,\r\n DoCheck,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatRippleModule } from '@angular/material/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { isArray, isEqual } from 'lodash-es';\r\nimport { DomainDataService } from '../../services/domain-data.service';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\nimport { DomainConfig } from '../common-types';\r\n\r\ninterface TagItem extends Record<string, unknown> {\r\n value?: unknown;\r\n label?: unknown;\r\n disabled?: boolean;\r\n}\r\n\r\ninterface TagsProps extends CustomFormFieldProps {\r\n domain?: DomainConfig\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-tags-type',\r\n templateUrl: './tags.component.html',\r\n styleUrls: ['./tags.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatIconModule, MatCheckboxModule,MatRippleModule]\r\n})\r\nexport class CmatTagsTypeComponent extends FieldType<FieldTypeConfig<TagsProps>> implements OnInit,DoCheck {\r\n readonly allTags = computed(() => {\r\n const domainData = this._urlDataSignal();\r\n if (domainData.length > 0) {\r\n return domainData;\r\n }\r\n return this._staticOptionsSignal();\r\n });\r\n\r\n readonly filteredItems = signal<TagItem[]>([]);\r\n\r\n readonly refreshVersion = signal(0);\r\n\r\n private _urlDataSignal = signal<TagItem[]>([]);\r\n private _staticOptionsSignal = signal<TagItem[]>([]);\r\n\r\n private readonly _tagsPanelOrigin = viewChild<ElementRef<HTMLElement>>('tagsPanelOrigin');\r\n private readonly _tagsPanel = viewChild<TemplateRef<unknown>>('tagsPanel');\r\n\r\n private _lastDomain: TagsProps['domain'] = undefined;\r\n private _lastOptions: unknown = undefined;\r\n\r\n private _overlay = inject(Overlay);\r\n private _viewContainerRef = inject(ViewContainerRef);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n private _domainDataService = inject(DomainDataService);\r\n\r\n private _tagsPanelOverlayRef!: OverlayRef;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._lastDomain = this.props.domain;\r\n this._lastOptions = this.field.props?.options;\r\n\r\n this._refreshDomainData();\r\n\r\n this._refreshOptionData();\r\n }\r\n\r\n ngDoCheck(): void {\r\n const currentDomain = this.props.domain;\r\n const currentOptions = this.field.props?.options;\r\n\r\n\r\n // 1. 检查 domain 变化\r\n if (!isEqual(currentDomain, this._lastDomain)) {\r\n this._lastDomain = currentDomain;\r\n this._refreshDomainData();\r\n }\r\n\r\n // 2. 检查 options 变化 (仅当 domain 未配置时,options 才生效,但为了稳妥,只要变了就更新)\r\n // 注意:如果 domain 存在,urlData 优先级更高,但更新 optionsData 也无妨,因为 allOptions computed 会优先取 urlData\r\n if (!isEqual(currentOptions, this._lastOptions)) {\r\n this._lastOptions = currentOptions;\r\n this._refreshOptionData();\r\n }\r\n }\r\n\r\n // --- 业务逻辑方法 ---\r\n\r\n openTagsPanel(): void {\r\n // 每次打开时,重置过滤列表为所有可用标签\r\n this._syncFilteredItems();\r\n\r\n const origin = this._tagsPanelOrigin();\r\n const template = this._tagsPanel();\r\n\r\n if (!origin || !template) return;\r\n\r\n // 如果已经打开,先关闭\r\n if (this._tagsPanelOverlayRef?.hasAttached()) {\r\n this._tagsPanelOverlayRef.detach();\r\n }\r\n\r\n this._tagsPanelOverlayRef = this._overlay.create({\r\n backdropClass: '',\r\n hasBackdrop: true,\r\n scrollStrategy: this._overlay.scrollStrategies.block(),\r\n positionStrategy: this._overlay.position()\r\n .flexibleConnectedTo(origin.nativeElement)\r\n .withFlexibleDimensions(true)\r\n .withViewportMargin(64)\r\n .withLockedPosition(true)\r\n .withPositions([\r\n {\r\n originX: 'start',\r\n originY: 'bottom',\r\n overlayX: 'start',\r\n overlayY: 'top'\r\n }\r\n ])\r\n });\r\n\r\n const templatePortal = new TemplatePortal(template, this._viewContainerRef);\r\n this._tagsPanelOverlayRef.attach(templatePortal);\r\n\r\n // 聚焦输入框\r\n setTimeout(() => {\r\n this._tagsPanelOverlayRef.overlayElement.querySelector('input')?.focus();\r\n }, 0);\r\n\r\n this._tagsPanelOverlayRef.backdropClick().subscribe(() => {\r\n this.closeTagsPanel();\r\n });\r\n }\r\n\r\n closeTagsPanel(): void {\r\n if (this._tagsPanelOverlayRef?.hasAttached()) {\r\n this._tagsPanelOverlayRef.detach();\r\n this._tagsPanelOverlayRef.dispose();\r\n }\r\n }\r\n\r\n filterTags(event: Event): void {\r\n const value = ((event.target as HTMLInputElement | null)?.value ?? '').toLowerCase();\r\n const all = this.allTags();\r\n\r\n if (!value) {\r\n this.filteredItems.set(all);\r\n return;\r\n }\r\n\r\n const filtered = all.filter((tag: TagItem) =>\r\n this._toSearchText(tag.label).toLowerCase().includes(value) ||\r\n this._toSearchText(tag.value).toLowerCase().includes(value)\r\n );\r\n this.filteredItems.set(filtered);\r\n }\r\n\r\n toggleTag(tag: TagItem): void {\r\n if (tag.disabled) return;\r\n\r\n const currentVal = (this.formControl.value as TagItem[] | null) ?? [];\r\n // 使用不可变方式更新数组\r\n const existsIndex = currentVal.findIndex((i: TagItem) => i.value === tag.value);\r\n\r\n let newVal: TagItem[];\r\n if (existsIndex > -1) {\r\n newVal = currentVal.filter((_, index) => index !== existsIndex);\r\n } else {\r\n newVal = [tag, ...currentVal];\r\n }\r\n\r\n this.formControl.setValue(newVal);\r\n\r\n this.refreshVersion.update(v => v + 1);\r\n }\r\n\r\n isCheck(tag: TagItem): boolean {\r\n const currentVal = this.formControl.value as TagItem[] | null;\r\n if (!currentVal) return false;\r\n return currentVal.some((i: TagItem) => i.value === tag.value);\r\n }\r\n\r\n private _syncFilteredItems(): void {\r\n this.filteredItems.set(this.allTags());\r\n }\r\n\r\n private _toSearchText(value: unknown): string {\r\n return typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean' ? String(value) : '';\r\n }\r\n\r\n private _refreshDomainData(): void {\r\n const domain = this.props.domain;\r\n\r\n // 使用 DomainDataService 加载远程数据\r\n this._domainDataService.load<TagItem>(domain, this._destroyRef, {\r\n onSuccess: (data) => {\r\n this._urlDataSignal.set(data);\r\n this._syncFilteredItems();\r\n },\r\n componentName: 'CmatTagsTypeComponent'\r\n });\r\n }\r\n\r\n private _refreshOptionData(): void {\r\n if (isArray(this.field.props?.options)) {\r\n this._staticOptionsSignal.set(this.field.props?.options as TagItem[]);\r\n this._syncFilteredItems();\r\n } else if (this.field.props?.options && !isArray(this.field.props?.options)) {\r\n // 处理 Observable options\r\n this.field.props.options.pipe(takeUntilDestroyed(this._destroyRef)).subscribe(\r\n (data: TagItem[]) => {\r\n this._staticOptionsSignal.set(data || []);\r\n this._syncFilteredItems();\r\n }\r\n );\r\n }\r\n }\r\n}\r\n","<div class=\"text-lg mb-2\">\r\n {{ props.label }}\r\n @if(props.required){\r\n <span>*</span>\r\n }\r\n</div>\r\n<div class=\"flex flex-wrap items-center -m-2\" [attr.data-refresh]=\"refreshVersion()\" [tabIndex]=\"props.tabindex\">\r\n <ng-container>\r\n @for (selectedItem of formControl.value; track selectedItem.value || $index) {\r\n <div\r\n class=\"flex items-center justify-center px-4 m-1.5 rounded-full leading-9 text-gray-500 bg-slate-100 dark:text-gray-300 dark:bg-slate-700\">\r\n <span class=\"text-md font-medium whitespace-nowrap\">{{selectedItem.label}}</span>\r\n </div>\r\n }\r\n\r\n <div #tagsPanelOrigin\r\n class=\"flex items-center justify-center px-4 m-1.5 rounded-full leading-9 cursor-pointer text-gray-500 bg-slate-100 dark:text-gray-300 dark:bg-slate-700 print:hidden\" \r\n role=\"presentation\" \r\n (click)=\"openTagsPanel()\">\r\n\r\n @if(formControl.value?.length && !disabled){\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:pencil-square'\"></mat-icon>\r\n <span class=\"ml-1.5 text-md font-medium whitespace-nowrap\">编辑</span>\r\n }\r\n\r\n @if(!formControl.value?.length && !disabled){\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:plus-circle'\"></mat-icon>\r\n <span class=\"ml-1.5 text-md font-medium whitespace-nowrap\">新增</span>\r\n }\r\n\r\n <ng-template #tagsPanel>\r\n <div class=\"w-60 rounded-sm border shadow-md bg-card\">\r\n <div class=\"flex items-center m-3 mr-2\">\r\n <div class=\"flex items-center\">\r\n <mat-icon class=\"icon-size-5\" [svgIcon]=\"'heroicons_solid:magnifying-glass'\">\r\n </mat-icon>\r\n <div class=\"ml-2\">\r\n <input class=\"w-full min-w-0 py-1 border-none\" type=\"text\" placeholder=\"输入标签名\"\r\n [maxLength]=\"30\" (input)=\"filterTags($event)\">\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"flex flex-col max-h-64 py-2 border-t overflow-y-auto scrollbar-custom\">\r\n @if (filteredItems().length > 0) {\r\n @for (tag of filteredItems(); track tag.value || $index) {\r\n <div role=\"presentation\"\r\n class=\"flex items-center h-10 min-h-10 pl-1 pr-4 cursor-pointer hover:bg-hover\"\r\n matRipple [matRippleDisabled]=\"disabled\" (click)=\"toggleTag(tag)\">\r\n <mat-checkbox class=\"flex items-center h-10 min-h-10\" [color]=\"'primary'\"\r\n [disabled]=\"tag.disabled\" [checked]=\"isCheck(tag)\">\r\n {{tag.label}}\r\n </mat-checkbox>\r\n </div>\r\n }\r\n } @else {\r\n <div class=\"flex flex-auto flex-col justify-center px-4 h-10 min-h-10\">\r\n 无结果\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n</div>","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\n\r\n@Component({\r\n selector: 'cmat-textarea-type',\r\n templateUrl: './textarea.component.html',\r\n styleUrls: ['./textarea.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatInputModule, ReactiveFormsModule]\r\n})\r\nexport class CmatTextareaTypeComponent extends FieldType<FieldTypeConfig> {\r\n override defaultOptions = {\r\n props: {\r\n cols: 1,\r\n rows: 3,\r\n },\r\n };\r\n}","<textarea matInput [placeholder]=\"placeholder\" \r\n [readonly]=\"props.readonly\" [errorStateMatcher]=\"errorStateMatcher\"\r\n [cols]=\"props.cols\"\r\n [rows]=\"props.rows\"\r\n [tabindex]=\"props.tabindex\"\r\n [formControl]=\"formControl\" [required]=\"required\">\r\n</textarea>","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';\r\nimport { FormControl, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\r\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatUploadQueueComponent } from 'cmat/components/upload';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface UploadFileItem {\r\n [key: string]: unknown;\r\n id: string;\r\n name: string;\r\n type: string;\r\n size: number;\r\n}\r\n\r\ninterface UploadProps extends CustomFormFieldProps {\r\n fileAlias: string;\r\n filePath: string;\r\n fileCategory: string;\r\n multiple: boolean;\r\n accept: string;\r\n editMode: boolean;\r\n autoUpload: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-upload-type',\r\n templateUrl: './upload.component.html',\r\n styleUrls: ['./upload.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatUploadQueueComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatUploadTypeComponent extends FieldType<FieldTypeConfig<UploadProps>> implements OnInit {\r\n override defaultOptions = {\r\n props: {\r\n fileAlias: 'fileData',\r\n filePath: 'path',\r\n fileCategory: '分类',\r\n multiple: true,\r\n accept: '',\r\n editMode: true,\r\n autoUpload: true\r\n }\r\n };\r\n\r\n private _rootGroup: UntypedFormGroup | null = null;\r\n\r\n ngOnInit(): void {\r\n this._rootGroup = this._getRootGroup(this.field);\r\n\r\n if (this._rootGroup) {\r\n if (!this._rootGroup.contains('uploadId')) {\r\n this._rootGroup.addControl('uploadId', new FormControl<string[]>([]));\r\n }\r\n if (!this._rootGroup.contains('removeId')) {\r\n this._rootGroup.addControl('removeId', new FormControl<string[]>([]));\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 处理上传成功事件\r\n * @param id 新上传文件的 ID\r\n */\r\n upload(id: string): void {\r\n if (!id || !this._rootGroup) return;\r\n\r\n const control = this._rootGroup.get('uploadId');\r\n if (control) {\r\n const currentIds = control.value as string[] || [];\r\n // 避免重复添加\r\n if (!currentIds.includes(id)) {\r\n control.setValue([id, ...currentIds]);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 处理移除事件\r\n * @param id 被移除文件的 ID\r\n */\r\n remove(id: string): void {\r\n if (!id || !this._rootGroup) return;\r\n\r\n const control = this._rootGroup.get('removeId');\r\n if (control) {\r\n const currentIds = control.value as string[] || [];\r\n // 避免重复添加\r\n if (!currentIds.includes(id)) {\r\n control.setValue([id, ...currentIds]);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * 处理文件列表更新事件\r\n * @param data 文件数据数组或单个对象\r\n */\r\n updateData(data: unknown): void {\r\n const items = Array.isArray(data) ? data : [data];\r\n\r\n const standardizedFiles = items.map(item => this._standardizeFileItem(item));\r\n\r\n // 过滤掉无效项\r\n const validFiles = standardizedFiles.filter((item): item is UploadFileItem => item !== null);\r\n\r\n this.formControl.setValue(validFiles);\r\n }\r\n\r\n /**\r\n * 递归查找根 FormGroup\r\n * @param field 当前 Formly 字段\r\n * @returns 根 FormGroup\r\n */\r\n private _getRootGroup(field: FieldTypeConfig<UploadProps>): UntypedFormGroup | null {\r\n // Formly 字段通常有 parent 属性指向父字段,直到根字段\r\n // 根字段的 form 属性通常是根 FormGroup\r\n let currentField: FormlyFieldConfig = field;\r\n while (currentField.parent) {\r\n currentField = currentField.parent;\r\n }\r\n\r\n // 尝试从根字段获取 form,或者直接使用 field.form 如果它是根\r\n // 注意:在某些 Formly 配置中,field.form 可能始终指向根表单\r\n if (currentField.form && currentField.form instanceof UntypedFormGroup) {\r\n return currentField.form;\r\n }\r\n\r\n // fallback: 如果找不到,返回 null,调用者需处理\r\n return null;\r\n }\r\n\r\n /**\r\n * 标准化文件对象,确保包含必要的字段\r\n * @param item 原始文件数据\r\n * @returns 标准化的文件对象或 null(如果无效)\r\n */\r\n private _standardizeFileItem(item: unknown): UploadFileItem | null {\r\n if (typeof item !== 'object' || item === null) {\r\n return null;\r\n }\r\n\r\n const obj = item as Record<string, unknown>;\r\n\r\n if (typeof obj.id !== 'string') {\r\n return null;\r\n }\r\n\r\n return {\r\n id: obj.id,\r\n name: typeof obj.name === 'string' ? obj.name : '',\r\n type: typeof obj.type === 'string' ? obj.type : '',\r\n size: typeof obj.size === 'number' ? obj.size : 0,\r\n // 保留其他额外属性\r\n ...obj\r\n };\r\n }\r\n}","<cmat-upload-queue \r\n [tabindex]=\"props.tabindex\" \r\n [fileAlias]=\"props.fileAlias\"\r\n [filePath]=\"props.filePath\" \r\n [required]=\"required\" \r\n [fileCategory]=\"props.fileCategory\" \r\n [multiple]=\"props.multiple\"\r\n [accept]=\"props.accept\" \r\n [title]=\"props.label ?? '附件'\" \r\n [editMode]=\"props.editMode && !disabled\" \r\n [filesData]=\"formControl.value\"\r\n [autoUpload]=\"props.autoUpload\" \r\n (outputUploadIdEvent)=\"upload($event)\" \r\n (outputRemoveIdEvent)=\"remove($event)\" \r\n (outputFilesDataEvent)=\"updateData($event)\">\r\n</cmat-upload-queue>","import { HttpEvent, HttpEventType } from '@angular/common/http';\r\nimport {\r\n AfterViewInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n OnDestroy,\r\n inject,\r\n signal,\r\n viewChild,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { AbstractControl, FormControl, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\r\nimport BlotFormatter from '@enzedonline/quill-blot-formatter2';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatFilesUtilService, FileModel } from 'cmat/components/upload';\r\nimport { CmatUrlStateConfigService } from 'cmat/services/config';\r\nimport { CmatUtilsService } from 'cmat/services/utils';\r\nimport dayjs from 'dayjs';\r\nimport { isNil } from 'lodash-es';\r\nimport { QuillModule, QuillModules } from 'ngx-quill';\r\nimport Quill from 'quill';\r\nimport QuillImageDropAndPaste from 'quill-image-drop-and-paste';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\nQuill.register('modules/blotFormatter', BlotFormatter);\r\nQuill.register('modules/imageDropAndPaste', QuillImageDropAndPaste);\r\n\r\ninterface QuillProps extends CustomFormFieldProps {\r\n fileAlias: string;\r\n filePath: string;\r\n}\r\n\r\ninterface QuillDeltaOp {\r\n insert?: string | { image?: string; video?: string };\r\n attributes?: QuillAttributes;\r\n}\r\n\r\ninterface QuillDelta {\r\n ops: QuillDeltaOp[];\r\n}\r\n\r\ninterface QuillAttributes {\r\n bold?: boolean;\r\n italic?: boolean;\r\n underline?: boolean;\r\n size?: string;\r\n font?: string;\r\n color?: string;\r\n background?: string;\r\n align?: string;\r\n header?: string | number;\r\n list?: string;\r\n}\r\n\r\ninterface QuillRange {\r\n index: number;\r\n length: number;\r\n}\r\n\r\ninterface QuillEditor {\r\n container: { innerHTML: string };\r\n getSelection(focus?: boolean): QuillRange | null;\r\n setSelection(index: number): void;\r\n insertEmbed(index: number, type: string, value: string): void;\r\n getContents(): QuillDelta;\r\n getLength(): number;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-quill-type',\r\n templateUrl: './quill.component.html',\r\n styleUrls: ['./quill.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [ReactiveFormsModule, QuillModule]\r\n})\r\nexport class CmatQuillTypeComponent extends FieldType<FieldTypeConfig<QuillProps>> implements OnDestroy, AfterViewInit {\r\n quillModules: QuillModules = {\r\n toolbar: {\r\n container: [\r\n ['bold', 'italic', 'underline'],\r\n [{ 'size': ['small', false, 'large', 'huge'] }],\r\n [{ 'header': [1, 2, 3, 4, 5, 6, false] }],\r\n [{ 'color': [] }, { 'background': [] }],\r\n [{ 'font': [] }],\r\n [{ 'align': [] }, 'clean'],\r\n ['link', 'image', 'video', 'word']\r\n ],\r\n handlers: {\r\n image: this._imgFileHandler.bind(this),\r\n video: this._videoFileHandler.bind(this),\r\n word: (): void => {\r\n this._wordFileHandler().catch((err): void => console.error('Word 导出失败:', err));\r\n },\r\n },\r\n },\r\n clipboard: {\r\n matchVisual: false,\r\n },\r\n blotFormatter: {\r\n\r\n },\r\n imageDropAndPaste: {\r\n handler: this._dropFileHandler.bind(this)\r\n }\r\n };\r\n\r\n override defaultOptions = {\r\n props: {\r\n fileAlias: 'fileData',\r\n filePath: 'path'\r\n }\r\n };\r\n\r\n baseGroup: UntypedFormGroup;\r\n\r\n readonly isExporting = signal(false);\r\n private readonly imgInput = viewChild<ElementRef<HTMLElement>>('imgInput');\r\n private readonly videoInput = viewChild<ElementRef<HTMLElement>>('videoInput');\r\n private readonly _editorInstance = signal<QuillEditor | null>(null);\r\n private readonly _imgIds = signal<string[]>([]);\r\n\r\n private _fileService = inject(CmatFilesUtilService);\r\n private _urlStateConfigService = inject(CmatUrlStateConfigService);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n private readonly _config = this._urlStateConfigService.config;\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n const icons = Quill.import('ui/icons') as Record<string, unknown>;\r\n icons['word'] = `\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" width=\"20px\"><path fill=\"#2196F3\" d=\"M41,10H25v28h16c0.553,0,1-0.447,1-1V11C42,10.447,41.553,10,41,10z\"/><path fill=\"#FFF\" d=\"M25 15.001H39V17H25zM25 19H39V21H25zM25 23.001H39V25.001H25zM25 27.001H39V29H25zM25 31H39V33.001H25z\"/><path fill=\"#0D47A1\" d=\"M27 42L6 38 6 10 27 6z\"/><path fill=\"#FFF\" d=\"M21.167,31.012H18.45l-1.802-8.988c-0.098-0.477-0.155-0.996-0.174-1.576h-0.032c-0.043,0.637-0.11,1.162-0.197,1.576l-1.85,8.988h-2.827l-2.86-14.014h2.675l1.536,9.328c0.062,0.404,0.111,0.938,0.143,1.607h0.042c0.019-0.498,0.098-1.051,0.223-1.645l1.97-9.291h2.622l1.785,9.404c0.062,0.348,0.119,0.846,0.17,1.511h0.031c0.02-0.515,0.073-1.035,0.16-1.563l1.503-9.352h2.468L21.167,31.012z\"/></svg>\r\n `;\r\n\r\n if (!this.baseGroup)\r\n this.baseGroup = this._getRootControl(this.formControl);\r\n\r\n if (!this.baseGroup.contains('uploadId')) {\r\n this.baseGroup.addControl('uploadId', new FormControl([]));\r\n this.baseGroup.addControl('removeId', new FormControl([]));\r\n }\r\n }\r\n\r\n fileChangeEvent(file?: File): void {\r\n if (!file) {\r\n return;\r\n }\r\n const fileModel = {\r\n id: null,\r\n fileName: file.name,\r\n length: file.size,\r\n isPublic: false,\r\n fileCategory: 'Quill',\r\n filePath: this.props.filePath,\r\n fileType: CmatUtilsService.getFileType(file.type),\r\n data: file\r\n } as FileModel;\r\n\r\n const formData = new FormData();\r\n\r\n formData.set('fileData', file, file.name);\r\n formData.append('fileInfo', JSON.stringify(fileModel));\r\n\r\n this._fileService.uploadFile(formData).pipe(\r\n takeUntilDestroyed(this._destroyRef)\r\n ).subscribe((event: HttpEvent<Record<string, unknown>>): void => {\r\n if (event.type === HttpEventType.Response) {\r\n const fileId = typeof event.body?.id === 'string' ? event.body.id : undefined;\r\n if (typeof fileId !== 'string') {\r\n return;\r\n }\r\n\r\n const editor = this._editorInstance();\r\n const config = this._config(); // 获取配置\r\n\r\n if (editor && config?.fileUrl) { // 同时检查编辑器和服务配置\r\n const selection = editor.getSelection(true);\r\n const index = selection ? selection.index : editor.getLength();\r\n\r\n editor.insertEmbed(index, this._getMediaType(file.type), `${config.fileUrl}/download/quill/${fileId}`);\r\n editor.setSelection(index + 1);\r\n this.formControl.setValue(editor.container.innerHTML);\r\n } else {\r\n console.warn('无法插入图片:编辑器或文件服务配置未就绪');\r\n }\r\n this._upload(fileId);\r\n }\r\n });\r\n }\r\n\r\n editorCreated(editorInstance: QuillEditor): void {\r\n this._editorInstance.set(editorInstance);\r\n\r\n // 1. 获取当前编辑器中的所有文件 ID\r\n const currentIds = this._extractFileIdsFromDelta(editorInstance.getContents());\r\n this._imgIds.set(currentIds);\r\n\r\n // 2. 同步清理 removeId,确保“已存在”的图片不在“待删除”列表中\r\n const removeControl = this.baseGroup.get('removeId');\r\n if (removeControl) {\r\n const existingRemoveIds = (removeControl.value as string[]) || [];\r\n // 过滤掉那些当前实际存在于编辑器中的 ID\r\n const cleanedRemoveIds = existingRemoveIds.filter(id => !currentIds.includes(id));\r\n\r\n // 只有当数组内容真正改变时才更新表单,避免无限循环或无效变更检测\r\n if (cleanedRemoveIds.length !== existingRemoveIds.length) {\r\n removeControl.setValue(cleanedRemoveIds);\r\n }\r\n }\r\n }\r\n\r\n contentChanged(contentChange: { editor: QuillEditor }): void {\r\n const delta = contentChange.editor.getContents();\r\n const currentIds = this._extractFileIdsFromDelta(delta);\r\n\r\n const previousIds = this._imgIds();\r\n const removedIds = previousIds.filter(id => !currentIds.includes(id));\r\n\r\n if (removedIds.length > 0) {\r\n const removeControl = this.baseGroup.get('removeId');\r\n const currentRemoveList = (removeControl?.value as string[]) || [];\r\n\r\n const restoredIds = currentRemoveList.filter(id => currentIds.includes(id));\r\n let finalRemoveList = currentRemoveList.filter(id => !restoredIds.includes(id));\r\n\r\n // 添加新删除的\r\n finalRemoveList = [...new Set([...finalRemoveList, ...removedIds])];\r\n\r\n removeControl?.setValue(finalRemoveList);\r\n }\r\n\r\n this._imgIds.set(currentIds);\r\n }\r\n\r\n private _imgFileHandler(): void {\r\n if (this.imgInput()) {\r\n this.imgInput()!.nativeElement.click();\r\n }\r\n }\r\n\r\n private _videoFileHandler(): void {\r\n if (this.videoInput()) {\r\n this.videoInput()!.nativeElement.click();\r\n }\r\n }\r\n\r\n private async _wordFileHandler(): Promise<void> {\r\n const editor = this._editorInstance();\r\n if (!editor) return;\r\n\r\n this.isExporting.set(true);\r\n try {\r\n const delta = editor.getContents();\r\n const filename = `${this.placeholder ?? '文档'}_${dayjs().format('YYYYMMDD_HHmmss')}.docx`;\r\n const { exportDeltaToDocx } = await import('./quill-docx-exporter');\r\n await exportDeltaToDocx(delta, filename);\r\n } catch (error) {\r\n console.error('Word 导出失败:', error);\r\n } finally {\r\n this.isExporting.set(false);\r\n }\r\n }\r\n\r\n private _dropFileHandler(_dataUrl: string, _type: string, fileData: { toFile: () => File }): void {\r\n this.fileChangeEvent(fileData.toFile());\r\n }\r\n\r\n private _upload(id: string): void {\r\n if (isNil(id)) return;\r\n\r\n const uploadControl = this.baseGroup.get('uploadId');\r\n if (!uploadControl) return;\r\n\r\n const currentIds = (uploadControl.value as string[]) || [];\r\n // 如果 ID 已存在,则不重复添加\r\n if (!currentIds.includes(id)) {\r\n uploadControl.setValue([id, ...currentIds]);\r\n }\r\n }\r\n\r\n private _getMediaType(accept: string): 'file' | 'image' | 'video' {\r\n let fileType = 'file';\r\n switch (accept) {\r\n case 'image/jpeg':\r\n case 'image/jpg':\r\n case 'image/png':\r\n case 'image/gif':\r\n fileType = 'image';\r\n break;\r\n case 'video/mpeg':\r\n case 'video/mp4':\r\n case 'audio/mp4':\r\n fileType = 'video';\r\n break;\r\n }\r\n\r\n return fileType as 'file' | 'image' | 'video';\r\n }\r\n\r\n private _getRootControl(baseControl: AbstractControl): UntypedFormGroup {\r\n if (baseControl.parent) {\r\n return this._getRootControl(baseControl.parent);\r\n }\r\n\r\n return baseControl as UntypedFormGroup;\r\n }\r\n\r\n private _extractFileIdsFromDelta(delta: QuillDelta): string[] {\r\n const config = this._config();\r\n if (!config?.fileUrl) return [];\r\n\r\n // 构建标准前缀,确保以 / 结尾\r\n const baseUrl = `${config.fileUrl.replace(/\\/$/, '')}/download/quill/`;\r\n const ids = new Set<string>(); // 使用 Set 自动去重\r\n\r\n delta.ops.forEach((op) => {\r\n if (op.insert && typeof op.insert === 'object') {\r\n const url = op.insert.image ?? op.insert.video;\r\n if (url && typeof url === 'string' && url.startsWith(baseUrl)) {\r\n // 提取 baseUrl 之后的部分,并去除查询参数\r\n const relativePath = url.substring(baseUrl.length);\r\n const id = relativePath.split('?')[0].split('#')[0];\r\n if (id) {\r\n ids.add(id);\r\n }\r\n }\r\n }\r\n });\r\n return Array.from(ids);\r\n }\r\n}","<div class=\"relative w-full\">\r\n <quill-editor \r\n class=\"w-full\" \r\n defaultEmptyValue=\"\" \r\n [formControl]=\"formControl\" \r\n [required]=\"required\" \r\n [placeholder]=\"placeholder\" \r\n [tabindex]=\"props.tabindex\"\r\n [readOnly]=\"disabled\" \r\n [modules]=\"quillModules\" \r\n (onEditorCreated)=\"editorCreated($event)\"\r\n (onContentChanged)=\"contentChanged($event)\">\r\n \r\n <input #imgInput type=\"file\" accept=\"image/png,image/jpeg,image/jpg,image/gif\" class=\"hidden\" (change)=\"fileChangeEvent(imgInput.files?.[0] ?? undefined)\" />\r\n <input #videoInput type=\"file\" accept=\"video/mpeg,video/mp4,audio/mp4\" class=\"hidden\" (change)=\"fileChangeEvent(videoInput.files?.[0] ?? undefined)\" />\r\n </quill-editor>\r\n\r\n @if (isExporting()) {\r\n <div class=\"absolute inset-0 flex items-center justify-center rounded-2xl border border-dashed border-default bg-card/80 px-4 py-6 text-sm text-secondary shadow-sm z-50 backdrop-blur-sm\">\r\n <span class=\"animate-pulse\">正在生成 Word 文档...</span>\r\n </div>\r\n }\r\n</div>\r\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material/form-field';\r\nimport { CmatKnobInputComponent } from 'cmat/components/knob-input';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface KnobProps extends CustomFormFieldProps {\r\n valueColor: string;\r\n rangeColor: string;\r\n textColor: string;\r\n valueTemplate: string;\r\n name?: string;\r\n size: number;\r\n step: number;\r\n min: number;\r\n max: number;\r\n strokeWidth: number;\r\n showValue: boolean;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-knob-type',\r\n templateUrl: './knob.component.html',\r\n styleUrls: ['./knob.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CmatKnobInputComponent, ReactiveFormsModule]\r\n})\r\nexport class CmatKnobTypeComponent extends FieldType<FieldTypeConfig<KnobProps>> {\r\n override defaultOptions = {\r\n props: {\r\n valueColor: 'var(--cmat-primary)',\r\n rangeColor: 'var(--cmat-border)',\r\n textColor: 'var(--text-secondary)',\r\n valueTemplate: '{value}',\r\n size: 100,\r\n step: 1,\r\n min: 0,\r\n max: 100,\r\n strokeWidth: 14,\r\n showValue: true\r\n },\r\n };\r\n}","<cmat-knob-input [formControl]=\"formControl\" [tabIndex]=\"props.tabindex\" [valueColor]=\"props.valueColor\"\r\n [rangeColor]=\"props.rangeColor\" [textColor]=\"props.textColor\" [valueTemplate]=\"props.valueTemplate\"\r\n [name]=\"props.name\" [size]=\"props.size\" [step]=\"props.step\" [min]=\"props.min\" [max]=\"props.max\"\r\n [strokeWidth]=\"props.strokeWidth\" [showValue]=\"props.showValue\">\r\n</cmat-knob-input>","import { ChangeDetectionStrategy, Component, Type } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { ThemePalette } from '@angular/material/core';\r\nimport { MatSliderModule } from '@angular/material/slider';\r\nimport { FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\r\nimport { FieldType } from '@ngx-formly/material';\r\nimport { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';\r\n\r\ninterface SliderProps extends CustomFormFieldProps {\r\n displayWith?: (value: number) => string;\r\n discrete?: boolean;\r\n showTickMarks?: boolean;\r\n color?: ThemePalette;\r\n\r\n input?: (field: FormlyFieldConfig<SliderProps>, $event: Event) => void;\r\n change?: (field: FormlyFieldConfig<SliderProps>, $event: Event) => void;\r\n}\r\n\r\nexport interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {\r\n type: 'slider' | Type<CmatSliderTypeComponent>;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-slider-type',\r\n templateUrl: './slider.component.html',\r\n styleUrls: ['./slider.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [MatSliderModule, ReactiveFormsModule]\r\n})\r\nexport class CmatSliderTypeComponent extends FieldType<FieldTypeConfig<SliderProps>> {\r\n override defaultOptions = {\r\n props: {\r\n hideFieldUnderline: true,\r\n floatLabel: 'always' as const,\r\n displayWith: (value: number):string => `${value}`\r\n }\r\n };\r\n}","<mat-slider class=\"w-full\" [id]=\"id\" [tabIndex]=\"props.tabindex\" [color]=\"props.color\"\r\n [displayWith]=\"props.displayWith!\" [max]=\"props.max\" [min]=\"props.min\" [step]=\"props.step\" [discrete]=\"props.discrete\"\r\n [showTickMarks]=\"props.showTickMarks\" (input)=\"props.input && props.input(field, $event)\"\r\n (change)=\"props.change && props.change(field, $event)\">\r\n <input matSliderThumb [formControl]=\"formControl\" />\r\n</mat-slider>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,IAAa,oBAAb,MAAa,kBAAiB;CAH9B,cAAA;EAImB,KAAA,QAAQ,OAAO,UAAU;CAyL3C;CAjKC,KACE,QACA,YACA,UAAoC,CAAA,GAAE;EAEtC,MAAM,EAAE,WAAW,WAAW,SAAS,gBAAgB,cAAc;EAGrE,IAAI,CAAC,QAAQ,OAAO,CAAC,QAAQ,OAAO,CAAC,QAAQ,QAAQ,CAAC,QAAQ,OAAO;GACnE,YAAY,CAAA,CAAE;GACd;EACF;EAEA,MAAM,SAAS,OAAO,UAAU;EAEhC,MAAM,UAAU,EAAE,gBAAgB,mBAAkB;EAEpD,IAAI;EAEJ,IAAI,WAAW,QAAQ;GAErB,MAAM,kBAAkB,OAAO,mBAAmB;GAClD,IAAI;GAEJ,IAAI,oBAAoB,QAEtB,IAAI;IACF,OAAO,OAAO,cAAc,KAAK,MAAM,OAAO,WAAW,IAAI,CAAA;GAC/D,SAAS,GAAG;IACV,QAAQ,MAAM,IAAI,cAAa,+BAAgC,CAAC;IA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