@ebuilding/base 2.0.0
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/LICENSE +0 -0
- package/README.md +0 -0
- package/components/drawer/index.d.ts +1 -0
- package/components/drawer/src/drawer-content.directive.d.ts +9 -0
- package/components/drawer/src/drawer-options.d.ts +41 -0
- package/components/drawer/src/drawer-ref.d.ts +27 -0
- package/components/drawer/src/drawer.component.d.ts +120 -0
- package/components/drawer/src/drawer.module.d.ts +8 -0
- package/components/drawer/src/drawer.service.d.ts +22 -0
- package/components/drawer/src/public_api.d.ts +6 -0
- package/components/empty/index.d.ts +1 -0
- package/components/empty/src/default/index.d.ts +13 -0
- package/components/empty/src/index.module.d.ts +7 -0
- package/components/empty/src/public_api.d.ts +2 -0
- package/components/index.d.ts +2 -0
- package/fesm2022/components.drawer.mjs +706 -0
- package/fesm2022/components.drawer.mjs.map +1 -0
- package/fesm2022/components.empty.mjs +54 -0
- package/fesm2022/components.empty.mjs.map +1 -0
- package/fesm2022/components.mjs +750 -0
- package/fesm2022/components.mjs.map +1 -0
- package/fesm2022/config.content.mjs +4464 -0
- package/fesm2022/config.content.mjs.map +1 -0
- package/fesm2022/config.form.mjs +2190 -0
- package/fesm2022/config.form.mjs.map +1 -0
- package/fesm2022/config.header.mjs +2736 -0
- package/fesm2022/config.header.mjs.map +1 -0
- package/fesm2022/config.list.mjs +7192 -0
- package/fesm2022/config.list.mjs.map +1 -0
- package/fesm2022/config.page-dialog.mjs +639 -0
- package/fesm2022/config.page-dialog.mjs.map +1 -0
- package/fesm2022/config.page.mjs +53 -0
- package/fesm2022/config.page.mjs.map +1 -0
- package/fesm2022/ebuilding-base.mjs +11 -0
- package/fesm2022/ebuilding-base.mjs.map +1 -0
- package/fesm2022/pipe.builtin.mjs +36 -0
- package/fesm2022/pipe.builtin.mjs.map +1 -0
- package/fesm2022/pipe.category.mjs +43 -0
- package/fesm2022/pipe.category.mjs.map +1 -0
- package/fesm2022/pipe.datatype.mjs +38 -0
- package/fesm2022/pipe.datatype.mjs.map +1 -0
- package/fesm2022/pipe.date.format.mjs +46 -0
- package/fesm2022/pipe.date.format.mjs.map +1 -0
- package/fesm2022/pipe.disabled.mjs +38 -0
- package/fesm2022/pipe.disabled.mjs.map +1 -0
- package/fesm2022/pipe.email.state.mjs +36 -0
- package/fesm2022/pipe.email.state.mjs.map +1 -0
- package/fesm2022/pipe.empty.mjs +35 -0
- package/fesm2022/pipe.empty.mjs.map +1 -0
- package/fesm2022/pipe.eval.mjs +43 -0
- package/fesm2022/pipe.eval.mjs.map +1 -0
- package/fesm2022/pipe.flow.eval.mjs +36 -0
- package/fesm2022/pipe.flow.eval.mjs.map +1 -0
- package/fesm2022/pipe.flow.mjs +45 -0
- package/fesm2022/pipe.flow.mjs.map +1 -0
- package/fesm2022/pipe.flow.node.mjs +28 -0
- package/fesm2022/pipe.flow.node.mjs.map +1 -0
- package/fesm2022/pipe.flow.operation.mjs +52 -0
- package/fesm2022/pipe.flow.operation.mjs.map +1 -0
- package/fesm2022/pipe.flow.state.mjs +36 -0
- package/fesm2022/pipe.flow.state.mjs.map +1 -0
- package/fesm2022/pipe.flow.type.mjs +36 -0
- package/fesm2022/pipe.flow.type.mjs.map +1 -0
- package/fesm2022/pipe.formType.mjs +35 -0
- package/fesm2022/pipe.formType.mjs.map +1 -0
- package/fesm2022/pipe.grade.type.mjs +38 -0
- package/fesm2022/pipe.grade.type.mjs.map +1 -0
- package/fesm2022/pipe.indicator.mjs +43 -0
- package/fesm2022/pipe.indicator.mjs.map +1 -0
- package/fesm2022/pipe.item.mjs +38 -0
- package/fesm2022/pipe.item.mjs.map +1 -0
- package/fesm2022/pipe.moment.mjs +37 -0
- package/fesm2022/pipe.moment.mjs.map +1 -0
- package/fesm2022/pipe.msg.type.mjs +55 -0
- package/fesm2022/pipe.msg.type.mjs.map +1 -0
- package/fesm2022/pipe.number.mjs +34 -0
- package/fesm2022/pipe.number.mjs.map +1 -0
- package/fesm2022/pipe.objtype.mjs +37 -0
- package/fesm2022/pipe.objtype.mjs.map +1 -0
- package/fesm2022/pipe.okr.plan.mjs +46 -0
- package/fesm2022/pipe.okr.plan.mjs.map +1 -0
- package/fesm2022/pipe.okr.unit.mjs +38 -0
- package/fesm2022/pipe.okr.unit.mjs.map +1 -0
- package/fesm2022/pipe.operation.mjs +41 -0
- package/fesm2022/pipe.operation.mjs.map +1 -0
- package/fesm2022/pipe.period.emp.mjs +43 -0
- package/fesm2022/pipe.period.emp.mjs.map +1 -0
- package/fesm2022/pipe.period.state.mjs +43 -0
- package/fesm2022/pipe.period.state.mjs.map +1 -0
- package/fesm2022/pipe.plan.state.mjs +46 -0
- package/fesm2022/pipe.plan.state.mjs.map +1 -0
- package/fesm2022/pipe.range.mjs +25 -0
- package/fesm2022/pipe.range.mjs.map +1 -0
- package/fesm2022/pipe.removehtml.mjs +26 -0
- package/fesm2022/pipe.removehtml.mjs.map +1 -0
- package/fesm2022/pipe.result.mjs +56 -0
- package/fesm2022/pipe.result.mjs.map +1 -0
- package/fesm2022/pipe.safehtml.mjs +34 -0
- package/fesm2022/pipe.safehtml.mjs.map +1 -0
- package/fesm2022/pipe.state.mjs +55 -0
- package/fesm2022/pipe.state.mjs.map +1 -0
- package/fesm2022/pipe.table.type.mjs +38 -0
- package/fesm2022/pipe.table.type.mjs.map +1 -0
- package/fesm2022/pipe.task.state.mjs +43 -0
- package/fesm2022/pipe.task.state.mjs.map +1 -0
- package/fesm2022/pipe.templatetype.mjs +35 -0
- package/fesm2022/pipe.templatetype.mjs.map +1 -0
- package/fesm2022/pipe.valid.mjs +36 -0
- package/fesm2022/pipe.valid.mjs.map +1 -0
- package/fesm2022/pipe.value.method.mjs +46 -0
- package/fesm2022/pipe.value.method.mjs.map +1 -0
- package/fesm2022/pipe.write.state.mjs +45 -0
- package/fesm2022/pipe.write.state.mjs.map +1 -0
- package/fesm2022/pipe.yesNo.mjs +52 -0
- package/fesm2022/pipe.yesNo.mjs.map +1 -0
- package/fesm2022/shared.config.mjs +2190 -0
- package/fesm2022/shared.config.mjs.map +1 -0
- package/fesm2022/shared.srv.mjs +2853 -0
- package/fesm2022/shared.srv.mjs.map +1 -0
- package/fesm2022/shared.util.mjs +4676 -0
- package/fesm2022/shared.util.mjs.map +1 -0
- package/fesm2022/shared.var.mjs +597 -0
- package/fesm2022/shared.var.mjs.map +1 -0
- package/fesm2022/sharedPipe.mjs +1387 -0
- package/fesm2022/sharedPipe.mjs.map +1 -0
- package/fesm2022/srv.base-dialog.service.mjs +272 -0
- package/fesm2022/srv.base-dialog.service.mjs.map +1 -0
- package/fesm2022/srv.base-list.service.mjs +124 -0
- package/fesm2022/srv.base-list.service.mjs.map +1 -0
- package/fesm2022/srv.base-table.service.mjs +271 -0
- package/fesm2022/srv.base-table.service.mjs.map +1 -0
- package/fesm2022/srv.base-title.service.mjs +52 -0
- package/fesm2022/srv.base-title.service.mjs.map +1 -0
- package/fesm2022/srv.base-tree.service.mjs +53 -0
- package/fesm2022/srv.base-tree.service.mjs.map +1 -0
- package/fesm2022/srv.basePage.mjs +71 -0
- package/fesm2022/srv.basePage.mjs.map +1 -0
- package/fesm2022/srv.commApi.service.mjs +626 -0
- package/fesm2022/srv.commApi.service.mjs.map +1 -0
- package/fesm2022/srv.deon.util.mjs +272 -0
- package/fesm2022/srv.deon.util.mjs.map +1 -0
- package/fesm2022/srv.deon2.util.mjs +190 -0
- package/fesm2022/srv.deon2.util.mjs.map +1 -0
- package/fesm2022/srv.dialog.token.mjs +10 -0
- package/fesm2022/srv.dialog.token.mjs.map +1 -0
- package/fesm2022/srv.field-source.service.mjs +454 -0
- package/fesm2022/srv.field-source.service.mjs.map +1 -0
- package/fesm2022/srv.field.init.mjs +697 -0
- package/fesm2022/srv.field.init.mjs.map +1 -0
- package/fesm2022/srv.global.event.mjs +50 -0
- package/fesm2022/srv.global.event.mjs.map +1 -0
- package/fesm2022/srv.layout-detail.service.mjs +60 -0
- package/fesm2022/srv.layout-detail.service.mjs.map +1 -0
- package/fesm2022/srv.layout.service.mjs +65 -0
- package/fesm2022/srv.layout.service.mjs.map +1 -0
- package/fesm2022/srv.listService.mjs +319 -0
- package/fesm2022/srv.listService.mjs.map +1 -0
- package/fesm2022/srv.window.service.mjs +34 -0
- package/fesm2022/srv.window.service.mjs.map +1 -0
- package/fesm2022/util.base64.mjs +85 -0
- package/fesm2022/util.base64.mjs.map +1 -0
- package/fesm2022/util.comm.attendance.mjs +207 -0
- package/fesm2022/util.comm.attendance.mjs.map +1 -0
- package/fesm2022/util.comm.ckeditor.mjs +32 -0
- package/fesm2022/util.comm.ckeditor.mjs.map +1 -0
- package/fesm2022/util.comm.colors.mjs +21 -0
- package/fesm2022/util.comm.colors.mjs.map +1 -0
- package/fesm2022/util.comm.eca.mjs +89 -0
- package/fesm2022/util.comm.eca.mjs.map +1 -0
- package/fesm2022/util.comm.fly.mjs +210 -0
- package/fesm2022/util.comm.fly.mjs.map +1 -0
- package/fesm2022/util.comm.kpi.mjs +118 -0
- package/fesm2022/util.comm.kpi.mjs.map +1 -0
- package/fesm2022/util.comm.leave.mjs +271 -0
- package/fesm2022/util.comm.leave.mjs.map +1 -0
- package/fesm2022/util.comm.menu.mjs +132 -0
- package/fesm2022/util.comm.menu.mjs.map +1 -0
- package/fesm2022/util.comm.okr.mjs +204 -0
- package/fesm2022/util.comm.okr.mjs.map +1 -0
- package/fesm2022/util.comm.overtime.mjs +69 -0
- package/fesm2022/util.comm.overtime.mjs.map +1 -0
- package/fesm2022/util.comm.setting.mjs +211 -0
- package/fesm2022/util.comm.setting.mjs.map +1 -0
- package/fesm2022/util.comm.shebao.mjs +57 -0
- package/fesm2022/util.comm.shebao.mjs.map +1 -0
- package/fesm2022/util.comm.workflow.mjs +178 -0
- package/fesm2022/util.comm.workflow.mjs.map +1 -0
- package/fesm2022/util.common.mjs +637 -0
- package/fesm2022/util.common.mjs.map +1 -0
- package/fesm2022/util.encryption.mjs +49 -0
- package/fesm2022/util.encryption.mjs.map +1 -0
- package/fesm2022/util.guid.mjs +57 -0
- package/fesm2022/util.guid.mjs.map +1 -0
- package/fesm2022/util.guid.number.mjs +68 -0
- package/fesm2022/util.guid.number.mjs.map +1 -0
- package/fesm2022/util.menus.mjs +33 -0
- package/fesm2022/util.menus.mjs.map +1 -0
- package/fesm2022/util.operation.mjs +193 -0
- package/fesm2022/util.operation.mjs.map +1 -0
- package/fesm2022/util.static.mjs +1542 -0
- package/fesm2022/util.static.mjs.map +1 -0
- package/fesm2022/util.tool.mjs +46 -0
- package/fesm2022/util.tool.mjs.map +1 -0
- package/fesm2022/util.validation.mjs +67 -0
- package/fesm2022/util.validation.mjs.map +1 -0
- package/fesm2022/util.workflow.mjs +128 -0
- package/fesm2022/util.workflow.mjs.map +1 -0
- package/fesm2022/util.yuan.mjs +18 -0
- package/fesm2022/util.yuan.mjs.map +1 -0
- package/fesm2022/var.comm.constant.mjs +37 -0
- package/fesm2022/var.comm.constant.mjs.map +1 -0
- package/fesm2022/var.shared.constant.mjs +237 -0
- package/fesm2022/var.shared.constant.mjs.map +1 -0
- package/fesm2022/var.shared.interface.mjs +51 -0
- package/fesm2022/var.shared.interface.mjs.map +1 -0
- package/fesm2022/var.shared.variable.mjs +168 -0
- package/fesm2022/var.shared.variable.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/package.json +420 -0
- package/shared.config/form/admin/attendance.d.ts +1 -0
- package/shared.config/form/admin/personnel.d.ts +1 -0
- package/shared.config/form/admin/system.d.ts +1 -0
- package/shared.config/form/gram/kpi.d.ts +1 -0
- package/shared.config/form/index.d.ts +2 -0
- package/shared.config/form/paas/module.d.ts +1 -0
- package/shared.config/form/payroll/shebao.d.ts +1 -0
- package/shared.config/index.d.ts +1 -0
- package/shared.config/list/content/admin/system.code.d.ts +1 -0
- package/shared.config/list/content/admin/system.log.d.ts +1 -0
- package/shared.config/list/content/admin/system.role.d.ts +1 -0
- package/shared.config/list/content/admin/system.source.d.ts +1 -0
- package/shared.config/list/content/admin/system.tenant.d.ts +1 -0
- package/shared.config/list/content/admin/system.user.d.ts +1 -0
- package/shared.config/list/content/fly/admin/device.d.ts +1 -0
- package/shared.config/list/content/fly/admin/dock.d.ts +1 -0
- package/shared.config/list/content/fly/admin/healthy.d.ts +1 -0
- package/shared.config/list/content/fly/admin/system.d.ts +1 -0
- package/shared.config/list/content/fly/admin/user.d.ts +1 -0
- package/shared.config/list/content/fly/work/ai.d.ts +1 -0
- package/shared.config/list/content/fly/work/history.d.ts +1 -0
- package/shared.config/list/content/fly/work/order.d.ts +1 -0
- package/shared.config/list/content/fly/work/product.d.ts +1 -0
- package/shared.config/list/content/fly/work/task.d.ts +1 -0
- package/shared.config/list/content/index.d.ts +38 -0
- package/shared.config/list/content/paas/card.d.ts +1 -0
- package/shared.config/list/content/paas/module.d.ts +1 -0
- package/shared.config/list/content/paas/permission.d.ts +1 -0
- package/shared.config/list/content/paas/rule.d.ts +1 -0
- package/shared.config/list/content/paas/setting.d.ts +1 -0
- package/shared.config/list/content/personnel/position.d.ts +1 -0
- package/shared.config/list/content/workflow/workflow.d.ts +1 -0
- package/shared.config/list/header/admin/system.d.ts +1 -0
- package/shared.config/list/header/dialog/default.d.ts +1 -0
- package/shared.config/list/header/fly/admin/device.d.ts +1 -0
- package/shared.config/list/header/fly/admin/dock.d.ts +1 -0
- package/shared.config/list/header/fly/admin/healthy.d.ts +1 -0
- package/shared.config/list/header/fly/admin/system.d.ts +1 -0
- package/shared.config/list/header/fly/admin/user.d.ts +1 -0
- package/shared.config/list/header/fly/work/ai.d.ts +1 -0
- package/shared.config/list/header/fly/work/history.d.ts +1 -0
- package/shared.config/list/header/fly/work/order.d.ts +1 -0
- package/shared.config/list/header/fly/work/product.d.ts +1 -0
- package/shared.config/list/header/fly/work/task.d.ts +1 -0
- package/shared.config/list/header/index.d.ts +1 -0
- package/shared.config/list/header/paas.d.ts +1 -0
- package/shared.config/list/header/personnel/position.d.ts +1 -0
- package/shared.config/list/header/wk/workflow.d.ts +1 -0
- package/shared.config/list/index.d.ts +2 -0
- package/shared.config/page/README.md +3 -0
- package/shared.config/page/admin/index.d.ts +1 -0
- package/shared.config/page/admin/system.source.d.ts +1 -0
- package/shared.config/page/index.d.ts +1 -0
- package/shared.config/page-dialog/admin/index.d.ts +1 -0
- package/shared.config/page-dialog/admin/system.d.ts +1 -0
- package/shared.config/page-dialog/index.d.ts +3 -0
- package/shared.config/page-dialog/paas/index.d.ts +1 -0
- package/shared.config/page-dialog/paas/module.d.ts +1 -0
- package/shared.config/page-dialog/payroll/index.d.ts +1 -0
- package/shared.config/page-dialog/payroll/main.d.ts +1 -0
- package/shared.pipe/builtin/builtin.pipe.d.ts +8 -0
- package/shared.pipe/builtin/index.d.ts +1 -0
- package/shared.pipe/category/category.pipe.d.ts +8 -0
- package/shared.pipe/category/index.d.ts +1 -0
- package/shared.pipe/datatype/datatype.pipe.d.ts +8 -0
- package/shared.pipe/datatype/index.d.ts +1 -0
- package/shared.pipe/date.format/date.pipe.d.ts +8 -0
- package/shared.pipe/date.format/index.d.ts +1 -0
- package/shared.pipe/disabled/disabled.pipe.d.ts +8 -0
- package/shared.pipe/disabled/index.d.ts +1 -0
- package/shared.pipe/email.state/email.pipe.d.ts +8 -0
- package/shared.pipe/email.state/index.d.ts +1 -0
- package/shared.pipe/empty/empty.pipe.d.ts +8 -0
- package/shared.pipe/empty/index.d.ts +1 -0
- package/shared.pipe/eval/eval.pipe.d.ts +8 -0
- package/shared.pipe/eval/index.d.ts +1 -0
- package/shared.pipe/flow/flow.pipe.d.ts +8 -0
- package/shared.pipe/flow/index.d.ts +1 -0
- package/shared.pipe/flow.eval/flow.pipe.d.ts +8 -0
- package/shared.pipe/flow.eval/index.d.ts +1 -0
- package/shared.pipe/flow.node/flow.pipe.d.ts +8 -0
- package/shared.pipe/flow.node/index.d.ts +1 -0
- package/shared.pipe/flow.operation/flow.pipe.d.ts +8 -0
- package/shared.pipe/flow.operation/index.d.ts +1 -0
- package/shared.pipe/flow.state/flow.pipe.d.ts +8 -0
- package/shared.pipe/flow.state/index.d.ts +1 -0
- package/shared.pipe/flow.type/flow.pipe.d.ts +8 -0
- package/shared.pipe/flow.type/index.d.ts +1 -0
- package/shared.pipe/formType/form.pipe.d.ts +8 -0
- package/shared.pipe/formType/index.d.ts +1 -0
- package/shared.pipe/grade.type/grade.pipe.d.ts +8 -0
- package/shared.pipe/grade.type/index.d.ts +1 -0
- package/shared.pipe/index.d.ts +41 -0
- package/shared.pipe/index.module.d.ts +47 -0
- package/shared.pipe/indicator/index.d.ts +1 -0
- package/shared.pipe/indicator/indicator.pipe.d.ts +8 -0
- package/shared.pipe/item/index.d.ts +1 -0
- package/shared.pipe/item/item.pipe.d.ts +8 -0
- package/shared.pipe/moment/index.d.ts +1 -0
- package/shared.pipe/moment/moment.pipe.d.ts +16 -0
- package/shared.pipe/msg.type/index.d.ts +1 -0
- package/shared.pipe/msg.type/msg.pipe.d.ts +8 -0
- package/shared.pipe/number/index.d.ts +1 -0
- package/shared.pipe/number/number.pipe.d.ts +8 -0
- package/shared.pipe/objtype/index.d.ts +1 -0
- package/shared.pipe/objtype/obj.pipe.d.ts +8 -0
- package/shared.pipe/okr.plan/index.d.ts +1 -0
- package/shared.pipe/okr.plan/okr.pipe.d.ts +8 -0
- package/shared.pipe/okr.unit/index.d.ts +1 -0
- package/shared.pipe/okr.unit/okr.pipe.d.ts +8 -0
- package/shared.pipe/operation/index.d.ts +1 -0
- package/shared.pipe/operation/operation.pipe.d.ts +8 -0
- package/shared.pipe/period.emp/index.d.ts +1 -0
- package/shared.pipe/period.emp/period.pipe.d.ts +8 -0
- package/shared.pipe/period.state/index.d.ts +1 -0
- package/shared.pipe/period.state/period.pipe.d.ts +8 -0
- package/shared.pipe/plan.state/index.d.ts +1 -0
- package/shared.pipe/plan.state/plan.pipe.d.ts +8 -0
- package/shared.pipe/range/index.d.ts +1 -0
- package/shared.pipe/range/range.pipe.d.ts +8 -0
- package/shared.pipe/removehtml/index.d.ts +1 -0
- package/shared.pipe/removehtml/removehtml.pipe.d.ts +8 -0
- package/shared.pipe/result/index.d.ts +1 -0
- package/shared.pipe/result/result.pipe.d.ts +8 -0
- package/shared.pipe/safehtml/index.d.ts +1 -0
- package/shared.pipe/safehtml/safehtml.pipe.d.ts +10 -0
- package/shared.pipe/state/index.d.ts +1 -0
- package/shared.pipe/state/state.pipe.d.ts +8 -0
- package/shared.pipe/table.type/index.d.ts +1 -0
- package/shared.pipe/table.type/table.pipe.d.ts +8 -0
- package/shared.pipe/task.state/index.d.ts +1 -0
- package/shared.pipe/task.state/task.pipe.d.ts +8 -0
- package/shared.pipe/templatetype/index.d.ts +1 -0
- package/shared.pipe/templatetype/template.pipe.d.ts +8 -0
- package/shared.pipe/valid/index.d.ts +1 -0
- package/shared.pipe/valid/valid.pipe.d.ts +8 -0
- package/shared.pipe/value.method/index.d.ts +1 -0
- package/shared.pipe/value.method/value.pipe.d.ts +8 -0
- package/shared.pipe/write.state/index.d.ts +1 -0
- package/shared.pipe/write.state/write.pipe.d.ts +9 -0
- package/shared.pipe/yesNo/index.d.ts +1 -0
- package/shared.pipe/yesNo/yesNo.pipe.d.ts +8 -0
- package/shared.srv/base-dialog.service/index.d.ts +39 -0
- package/shared.srv/base-list.service/index.d.ts +49 -0
- package/shared.srv/base-table.service/index.d.ts +77 -0
- package/shared.srv/base-title.service/index.d.ts +16 -0
- package/shared.srv/base-tree.service/index.d.ts +30 -0
- package/shared.srv/basePage/index.d.ts +33 -0
- package/shared.srv/commApi.service/index.d.ts +124 -0
- package/shared.srv/deon.util/index.d.ts +25 -0
- package/shared.srv/deon2.util/index.d.ts +14 -0
- package/shared.srv/dialog.token/index.d.ts +5 -0
- package/shared.srv/field-source.service/index.d.ts +67 -0
- package/shared.srv/field.init/index.d.ts +36 -0
- package/shared.srv/global.event/index.d.ts +13 -0
- package/shared.srv/index.d.ts +16 -0
- package/shared.srv/layout-detail.service/index.d.ts +23 -0
- package/shared.srv/layout.service/index.d.ts +28 -0
- package/shared.srv/listService/index.d.ts +38 -0
- package/shared.srv/window.service/index.d.ts +8 -0
- package/shared.util/base64/index.d.ts +6 -0
- package/shared.util/comm.attendance/index.d.ts +74 -0
- package/shared.util/comm.ckeditor/index.d.ts +9 -0
- package/shared.util/comm.colors/index.d.ts +1 -0
- package/shared.util/comm.eca/index.d.ts +16 -0
- package/shared.util/comm.fly/index.d.ts +60 -0
- package/shared.util/comm.kpi/index.d.ts +21 -0
- package/shared.util/comm.leave/index.d.ts +79 -0
- package/shared.util/comm.menu/index.d.ts +4 -0
- package/shared.util/comm.okr/index.d.ts +61 -0
- package/shared.util/comm.overtime/index.d.ts +25 -0
- package/shared.util/comm.setting/index.d.ts +54 -0
- package/shared.util/comm.shebao/index.d.ts +16 -0
- package/shared.util/comm.workflow/index.d.ts +24 -0
- package/shared.util/common/index.d.ts +60 -0
- package/shared.util/encryption/index.d.ts +12 -0
- package/shared.util/guid/index.d.ts +16 -0
- package/shared.util/guid.number/index.d.ts +16 -0
- package/shared.util/index.d.ts +25 -0
- package/shared.util/menus/index.d.ts +1 -0
- package/shared.util/operation/index.d.ts +13 -0
- package/shared.util/static/index.d.ts +284 -0
- package/shared.util/tool/index.d.ts +6 -0
- package/shared.util/validation/index.d.ts +40 -0
- package/shared.util/workflow/index.d.ts +12 -0
- package/shared.util/yuan/index.d.ts +6 -0
- package/shared.var/comm.constant/index.d.ts +24 -0
- package/shared.var/index.d.ts +4 -0
- package/shared.var/shared.constant/index.d.ts +151 -0
- package/shared.var/shared.interface/index.d.ts +58 -0
- package/shared.var/shared.variable/index.d.ts +116 -0
- package/style/variable.less +238 -0
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { Guid } from '@ebuilding/base/shared.util/guid';
|
|
4
|
+
import moment from 'moment';
|
|
5
|
+
|
|
6
|
+
class DeonDesignFieldInitService {
|
|
7
|
+
itemDataConvert(list) {
|
|
8
|
+
let result = [];
|
|
9
|
+
if (list && list.length > 0) {
|
|
10
|
+
list.forEach((e) => {
|
|
11
|
+
let item = {};
|
|
12
|
+
item.key = e.id;
|
|
13
|
+
item.label = e.name;
|
|
14
|
+
switch (e.dataType.toLocaleLowerCase()) {
|
|
15
|
+
case 'int': //int -> number
|
|
16
|
+
item.type = 'number';
|
|
17
|
+
break;
|
|
18
|
+
case 'float': //float -> number
|
|
19
|
+
item.precision = 2;
|
|
20
|
+
item.type = 'number';
|
|
21
|
+
break;
|
|
22
|
+
case 'time': //time -> datetime
|
|
23
|
+
item.type = 'datetime';
|
|
24
|
+
item.showType = 'time';
|
|
25
|
+
break;
|
|
26
|
+
case 'year': //year -> datetime
|
|
27
|
+
item.type = 'datetime';
|
|
28
|
+
item.showType = 'year';
|
|
29
|
+
break;
|
|
30
|
+
case 'yearmonth': //yearmonth -> datetime
|
|
31
|
+
item.type = 'datetime';
|
|
32
|
+
item.showType = 'month';
|
|
33
|
+
break;
|
|
34
|
+
case 'yearmonthday': //yearmonthday -> datetime
|
|
35
|
+
item.type = 'datetime';
|
|
36
|
+
item.showType = 'date';
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
item.type = e.dataType.toLocaleLowerCase();
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
result.push(item);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
itemListConvertField(sources, special = true, indicator = false) {
|
|
48
|
+
let list = [];
|
|
49
|
+
if (sources && Array.isArray(sources)) {
|
|
50
|
+
sources.forEach((item) => {
|
|
51
|
+
let data = {};
|
|
52
|
+
if (indicator == true) {
|
|
53
|
+
data = {
|
|
54
|
+
key: special == true ? '$' + item.id : item.id,
|
|
55
|
+
type: item.itemType.toLowerCase(),
|
|
56
|
+
label: item.itemName,
|
|
57
|
+
allowNull: item.required,
|
|
58
|
+
cols: 24,
|
|
59
|
+
rows: item.itemType.toLowerCase() == 'textarea' ? 4 : 1,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
data = {
|
|
64
|
+
key: special == true ? '$' + item.id : item.id,
|
|
65
|
+
type: item.dataType.toLowerCase(),
|
|
66
|
+
label: item.itemName ? item.itemName : item.name,
|
|
67
|
+
allowNull: item.required,
|
|
68
|
+
cols: item.dataType.toLowerCase() == 'textarea' ? 24 : 12,
|
|
69
|
+
rows: item.dataType.toLowerCase() == 'textarea' ? 3 : 1,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
list.push(this.getFiledInfoFunction(data));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return list;
|
|
76
|
+
}
|
|
77
|
+
okrItemListConvertField(sources) {
|
|
78
|
+
let list = [];
|
|
79
|
+
if (sources && Array.isArray(sources)) {
|
|
80
|
+
sources.forEach((item) => {
|
|
81
|
+
let data = {
|
|
82
|
+
key: '$' + item.id,
|
|
83
|
+
type: item.dataType.toLowerCase(),
|
|
84
|
+
label: item.itemName ? item.itemName : item.name,
|
|
85
|
+
allowNull: item.required,
|
|
86
|
+
cols: item.dataType.toLowerCase() == 'textarea' ? 24 : 12,
|
|
87
|
+
rows: item.dataType.toLowerCase() == 'textarea' ? 3 : 1,
|
|
88
|
+
className: 'cols',
|
|
89
|
+
};
|
|
90
|
+
list.push(this.getFiledInfoFunction(data));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
return list;
|
|
94
|
+
}
|
|
95
|
+
kpiItemListConvertField(sources, className = true) {
|
|
96
|
+
let list = [];
|
|
97
|
+
if (sources && Array.isArray(sources)) {
|
|
98
|
+
sources.forEach((item) => {
|
|
99
|
+
let data = {};
|
|
100
|
+
data = {
|
|
101
|
+
key: this.datetimeString(item.itemType.toLowerCase()),
|
|
102
|
+
type: item.itemType.toLowerCase(),
|
|
103
|
+
label: item.itemName,
|
|
104
|
+
allowNull: item?.required,
|
|
105
|
+
cols: 24,
|
|
106
|
+
className: className == true ? 'row' : null,
|
|
107
|
+
rows: item.itemType.toLowerCase() == 'textarea' ? 4 : 1,
|
|
108
|
+
};
|
|
109
|
+
let newField = this.getFiledInfoFunction(data);
|
|
110
|
+
if (newField.type == 'number') {
|
|
111
|
+
newField.props['precision'] = 2;
|
|
112
|
+
}
|
|
113
|
+
if (className == false) {
|
|
114
|
+
newField.props.className = null;
|
|
115
|
+
}
|
|
116
|
+
if (item?.defaultValue) {
|
|
117
|
+
newField.defaultValue = item?.defaultValue;
|
|
118
|
+
}
|
|
119
|
+
newField.props['source'] = {
|
|
120
|
+
sourceId: item.id,
|
|
121
|
+
sourceType: 'indicator_item',
|
|
122
|
+
};
|
|
123
|
+
list.push(newField);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return list;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* 跟进类型创建字段对象
|
|
130
|
+
* @param sourceField
|
|
131
|
+
*/
|
|
132
|
+
getFiledInfoFunction(sourceField) {
|
|
133
|
+
let field = {};
|
|
134
|
+
switch (sourceField.type) {
|
|
135
|
+
case 'text': //1
|
|
136
|
+
field = this.text(sourceField);
|
|
137
|
+
break;
|
|
138
|
+
case 'textarea': //2
|
|
139
|
+
field = this.textArea(sourceField);
|
|
140
|
+
break;
|
|
141
|
+
case 'number': //3
|
|
142
|
+
field = this.number(sourceField);
|
|
143
|
+
break;
|
|
144
|
+
case 'password': //4
|
|
145
|
+
field = this.passWord(sourceField);
|
|
146
|
+
break;
|
|
147
|
+
case 'texti18n': //5
|
|
148
|
+
field = this.textI18N(sourceField);
|
|
149
|
+
break;
|
|
150
|
+
case 'radio': //6
|
|
151
|
+
field = this.radio(sourceField);
|
|
152
|
+
break;
|
|
153
|
+
case 'radiogroup': //7
|
|
154
|
+
field = this.radioGroup(sourceField);
|
|
155
|
+
break;
|
|
156
|
+
case 'checkbox': //8
|
|
157
|
+
field = this.checkbox(sourceField);
|
|
158
|
+
break;
|
|
159
|
+
case 'checkboxgroup': //9
|
|
160
|
+
field = this.checkboxGroup(sourceField);
|
|
161
|
+
break;
|
|
162
|
+
case 'select': //10
|
|
163
|
+
field = this.select(sourceField);
|
|
164
|
+
break;
|
|
165
|
+
case 'datetime': //11
|
|
166
|
+
field = this.datetime(sourceField);
|
|
167
|
+
break;
|
|
168
|
+
case 'image': //12
|
|
169
|
+
field = this.image(sourceField);
|
|
170
|
+
break;
|
|
171
|
+
case 'line': //13
|
|
172
|
+
field = this.line(sourceField);
|
|
173
|
+
break;
|
|
174
|
+
case 'html': //14
|
|
175
|
+
field = this.line(sourceField);
|
|
176
|
+
break;
|
|
177
|
+
case 'repeat': //15
|
|
178
|
+
field = this.repeat(sourceField);
|
|
179
|
+
break;
|
|
180
|
+
case 'panel': //16
|
|
181
|
+
field = this.panel(sourceField);
|
|
182
|
+
break;
|
|
183
|
+
case 'label': //17
|
|
184
|
+
field = this.label(sourceField);
|
|
185
|
+
break;
|
|
186
|
+
case 'richtext': //18
|
|
187
|
+
field = this.richtext(sourceField);
|
|
188
|
+
break;
|
|
189
|
+
case 'employee':
|
|
190
|
+
case 'position':
|
|
191
|
+
case 'organizational':
|
|
192
|
+
case 'area':
|
|
193
|
+
field = this.lookup(sourceField);
|
|
194
|
+
break;
|
|
195
|
+
case 'int': //int -> number
|
|
196
|
+
sourceField.precision = 0;
|
|
197
|
+
field = this.number(sourceField);
|
|
198
|
+
break;
|
|
199
|
+
case 'float': //float -> number
|
|
200
|
+
sourceField.precision = 0;
|
|
201
|
+
field = this.number(sourceField);
|
|
202
|
+
break;
|
|
203
|
+
case 'time': //time -> datetime
|
|
204
|
+
sourceField.showType = 'time';
|
|
205
|
+
field = this.datetime(sourceField);
|
|
206
|
+
break;
|
|
207
|
+
case 'year': //year -> datetime
|
|
208
|
+
sourceField.showType = 'year';
|
|
209
|
+
field = this.datetime(sourceField);
|
|
210
|
+
break;
|
|
211
|
+
case 'yearmonth': //yearmonth -> datetime
|
|
212
|
+
sourceField.showType = 'month';
|
|
213
|
+
field = this.datetime(sourceField);
|
|
214
|
+
break;
|
|
215
|
+
case 'yearmonthday': //yearmonthday -> datetime
|
|
216
|
+
sourceField.showType = 'date';
|
|
217
|
+
field = this.datetime(sourceField);
|
|
218
|
+
break;
|
|
219
|
+
default:
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (field.defaultValue != undefined && field.defaultValue != null) {
|
|
223
|
+
field.defaultValue = field.defaultValue;
|
|
224
|
+
}
|
|
225
|
+
if (field.props) {
|
|
226
|
+
field.props.className = sourceField.className ? sourceField.className : 'row';
|
|
227
|
+
}
|
|
228
|
+
field.editor = true;
|
|
229
|
+
return field;
|
|
230
|
+
}
|
|
231
|
+
deleteFieldProperty(list) {
|
|
232
|
+
if (list && list.length > 0) {
|
|
233
|
+
list.forEach((field) => {
|
|
234
|
+
if (field.hasOwnProperty('status')) {
|
|
235
|
+
delete field.status;
|
|
236
|
+
}
|
|
237
|
+
if (field.hasOwnProperty('active')) {
|
|
238
|
+
delete field.active;
|
|
239
|
+
}
|
|
240
|
+
if (field.hasOwnProperty('guid')) {
|
|
241
|
+
delete field.guid;
|
|
242
|
+
}
|
|
243
|
+
if (field.hasOwnProperty('id')) {
|
|
244
|
+
delete field.id;
|
|
245
|
+
}
|
|
246
|
+
if (field.hasOwnProperty('wrappers')) {
|
|
247
|
+
delete field['wrappers'];
|
|
248
|
+
}
|
|
249
|
+
if (field.hasOwnProperty('_keyPath')) {
|
|
250
|
+
delete field['_keyPath'];
|
|
251
|
+
}
|
|
252
|
+
if (field.hasOwnProperty('modelOptions')) {
|
|
253
|
+
delete field['modelOptions'];
|
|
254
|
+
}
|
|
255
|
+
if (field.hasOwnProperty('checked')) {
|
|
256
|
+
delete field['checked'];
|
|
257
|
+
}
|
|
258
|
+
if (field.hasOwnProperty('resetOnHide')) {
|
|
259
|
+
delete field['resetOnHide'];
|
|
260
|
+
}
|
|
261
|
+
if (field.hasOwnProperty('props')) {
|
|
262
|
+
if (field.props.hasOwnProperty('focus')) {
|
|
263
|
+
delete field.props.focus;
|
|
264
|
+
}
|
|
265
|
+
if (field.props.hasOwnProperty('disabled')) {
|
|
266
|
+
delete field.props.disabled;
|
|
267
|
+
}
|
|
268
|
+
if (field.props.hasOwnProperty('readonly')) {
|
|
269
|
+
delete field.props.readonly;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (field.fieldGroup != undefined && field.fieldGroup != null && field.fieldGroup.length == 0) {
|
|
273
|
+
delete field.fieldGroup;
|
|
274
|
+
}
|
|
275
|
+
if (field.fieldArray) {
|
|
276
|
+
if (field.fieldArray.fieldGroup) {
|
|
277
|
+
if (field.fieldGroup) {
|
|
278
|
+
delete field.fieldGroup;
|
|
279
|
+
}
|
|
280
|
+
if (field.fieldArray.fieldGroup) {
|
|
281
|
+
this.deleteFieldProperty(field.fieldArray.fieldGroup);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
if (field.fieldGroup) {
|
|
286
|
+
this.deleteFieldProperty(field.fieldGroup);
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
deleteFieldActive(list) {
|
|
292
|
+
if (list && list.length > 0) {
|
|
293
|
+
list.forEach((field) => {
|
|
294
|
+
if (field.hasOwnProperty('active')) {
|
|
295
|
+
delete field.active;
|
|
296
|
+
}
|
|
297
|
+
if (field.fieldArray) {
|
|
298
|
+
if (field.fieldArray.fieldGroup) {
|
|
299
|
+
if (field.fieldArray.fieldGroup) {
|
|
300
|
+
this.deleteFieldActive(field.fieldArray.fieldGroup);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
if (field.fieldGroup) {
|
|
305
|
+
this.deleteFieldActive(field.fieldGroup);
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
datetimeString(type) {
|
|
311
|
+
// if (type !== undefined && type !== null) {
|
|
312
|
+
// return `${moment().format('YYYYMMDDHHmmssSSS')}_${type}`;
|
|
313
|
+
// } else {
|
|
314
|
+
// return `${moment().format('YYYYMMDDHHmmssSSS')}`;
|
|
315
|
+
// }
|
|
316
|
+
let rd = `${moment().format('YYYYMMDDHHmmss')}` + Math.round((Math.random() * 9 + 1) * 100000);
|
|
317
|
+
return type ? type + '_' + rd : rd;
|
|
318
|
+
}
|
|
319
|
+
//1、字符串
|
|
320
|
+
text(field) {
|
|
321
|
+
let config = {
|
|
322
|
+
type: 'text',
|
|
323
|
+
key: field.key ? field.key : this.datetimeString('text'),
|
|
324
|
+
props: {
|
|
325
|
+
label: field?.label,
|
|
326
|
+
required: field?.allowNull,
|
|
327
|
+
maxLength: field?.maxLength,
|
|
328
|
+
minLength: field?.minLength,
|
|
329
|
+
placeholder: field?.placeholder ? field?.placeholder : `请输入${field?.label}`,
|
|
330
|
+
isButintin: field?.isButintin,
|
|
331
|
+
tips: field?.tips,
|
|
332
|
+
pattern: field?.pattern,
|
|
333
|
+
cols: field.cols ? field.cols : 24,
|
|
334
|
+
},
|
|
335
|
+
};
|
|
336
|
+
return config;
|
|
337
|
+
}
|
|
338
|
+
//2、多行文本
|
|
339
|
+
textArea(field) {
|
|
340
|
+
let config = {
|
|
341
|
+
type: 'textarea',
|
|
342
|
+
key: field.key ? field.key : this.datetimeString('textarea'),
|
|
343
|
+
props: {
|
|
344
|
+
label: field?.label,
|
|
345
|
+
required: field?.allowNull,
|
|
346
|
+
maxLength: field?.maxLength,
|
|
347
|
+
minLength: field?.minLength,
|
|
348
|
+
placeholder: field?.placeholder ? field?.placeholder : `请输入${field?.label}`,
|
|
349
|
+
isButintin: field?.isButintin,
|
|
350
|
+
tips: field?.tips,
|
|
351
|
+
pattern: field?.pattern,
|
|
352
|
+
cols: field.cols ? field.cols : 24,
|
|
353
|
+
rows: field.rows ? field.rows : 1,
|
|
354
|
+
},
|
|
355
|
+
};
|
|
356
|
+
return config;
|
|
357
|
+
}
|
|
358
|
+
//3、数字
|
|
359
|
+
number(field) {
|
|
360
|
+
let config = {
|
|
361
|
+
type: 'number',
|
|
362
|
+
key: field.key ? field.key : this.datetimeString('number'),
|
|
363
|
+
props: {
|
|
364
|
+
label: field?.label,
|
|
365
|
+
required: field?.allowNull,
|
|
366
|
+
max: field.max,
|
|
367
|
+
min: field.min,
|
|
368
|
+
placeholder: field?.placeholder ? field?.placeholder : `请输入${field?.label}`,
|
|
369
|
+
isButintin: field?.isButintin,
|
|
370
|
+
tips: field?.tips,
|
|
371
|
+
pattern: field?.pattern,
|
|
372
|
+
precision: field.precision,
|
|
373
|
+
cols: field.cols ? field.cols : 24,
|
|
374
|
+
},
|
|
375
|
+
};
|
|
376
|
+
return config;
|
|
377
|
+
}
|
|
378
|
+
//4、密码
|
|
379
|
+
passWord(field) {
|
|
380
|
+
let config = {
|
|
381
|
+
type: 'password',
|
|
382
|
+
key: field.key ? field.key : this.datetimeString('password'),
|
|
383
|
+
props: {
|
|
384
|
+
label: field?.label,
|
|
385
|
+
required: field?.allowNull,
|
|
386
|
+
maxLength: field?.maxLength,
|
|
387
|
+
minLength: field?.minLength,
|
|
388
|
+
placeholder: field?.placeholder ? field?.placeholder : `请输入${field?.label}`,
|
|
389
|
+
isButintin: field?.isButintin,
|
|
390
|
+
tips: field?.tips,
|
|
391
|
+
pattern: field?.pattern,
|
|
392
|
+
cols: field.cols ? field.cols : 24,
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
return config;
|
|
396
|
+
}
|
|
397
|
+
//5、多语言
|
|
398
|
+
textI18N(field) {
|
|
399
|
+
let config = {
|
|
400
|
+
type: 'texti18n',
|
|
401
|
+
key: field.key ? field.key : this.datetimeString('texti18n'),
|
|
402
|
+
props: {
|
|
403
|
+
label: field?.label,
|
|
404
|
+
required: field?.allowNull,
|
|
405
|
+
maxLength: field?.maxLength,
|
|
406
|
+
minLength: field?.minLength,
|
|
407
|
+
placeholder: field?.placeholder ? field?.placeholder : `请输入${field?.label}`,
|
|
408
|
+
isButintin: field?.isButintin,
|
|
409
|
+
tips: field?.tips,
|
|
410
|
+
pattern: field?.pattern,
|
|
411
|
+
cols: field.cols ? field.cols : 24,
|
|
412
|
+
},
|
|
413
|
+
};
|
|
414
|
+
return config;
|
|
415
|
+
}
|
|
416
|
+
//6、单选
|
|
417
|
+
radio(field) {
|
|
418
|
+
let config = {
|
|
419
|
+
type: 'radio',
|
|
420
|
+
key: field.key ? field.key : this.datetimeString('radio'),
|
|
421
|
+
props: {
|
|
422
|
+
type: field.showType,
|
|
423
|
+
label: field?.label,
|
|
424
|
+
required: field?.allowNull,
|
|
425
|
+
isButintin: field?.isButintin,
|
|
426
|
+
tips: field?.tips,
|
|
427
|
+
pattern: field?.pattern,
|
|
428
|
+
cols: field.cols ? field.cols : 24,
|
|
429
|
+
},
|
|
430
|
+
};
|
|
431
|
+
return config;
|
|
432
|
+
}
|
|
433
|
+
//7、单选组
|
|
434
|
+
radioGroup(field) {
|
|
435
|
+
let config = {
|
|
436
|
+
type: 'radiogroup',
|
|
437
|
+
key: field.fieldCode ? field.fieldCode : this.datetimeString('radiogroup'),
|
|
438
|
+
props: {
|
|
439
|
+
type: field.showType,
|
|
440
|
+
label: field?.label,
|
|
441
|
+
options: [
|
|
442
|
+
{ label: '选项一', value: this.datetimeString() },
|
|
443
|
+
{ label: '选项二', value: this.datetimeString() },
|
|
444
|
+
{ label: '选项三', value: this.datetimeString() },
|
|
445
|
+
],
|
|
446
|
+
required: field?.allowNull,
|
|
447
|
+
isButintin: field?.isButintin,
|
|
448
|
+
tips: field?.tips,
|
|
449
|
+
pattern: field?.pattern,
|
|
450
|
+
cols: field.cols ? field.cols : 24,
|
|
451
|
+
},
|
|
452
|
+
};
|
|
453
|
+
return config;
|
|
454
|
+
}
|
|
455
|
+
//8、复选
|
|
456
|
+
checkbox(field) {
|
|
457
|
+
let config = {
|
|
458
|
+
type: 'checkbox',
|
|
459
|
+
key: field.key ? field.key : this.datetimeString('checkbox'),
|
|
460
|
+
props: {
|
|
461
|
+
type: field.showType,
|
|
462
|
+
label: field?.label,
|
|
463
|
+
required: field?.allowNull,
|
|
464
|
+
isButintin: field?.isButintin,
|
|
465
|
+
tips: field?.tips,
|
|
466
|
+
pattern: field?.pattern,
|
|
467
|
+
cols: field.cols ? field.cols : 24,
|
|
468
|
+
},
|
|
469
|
+
};
|
|
470
|
+
return config;
|
|
471
|
+
}
|
|
472
|
+
//9、复选组
|
|
473
|
+
checkboxGroup(field) {
|
|
474
|
+
let config = {
|
|
475
|
+
type: 'checkboxgroup',
|
|
476
|
+
key: field.fieldCode ? field.fieldCode : this.datetimeString('checkboxgroup'),
|
|
477
|
+
props: {
|
|
478
|
+
type: field.showType,
|
|
479
|
+
label: field?.label,
|
|
480
|
+
options: [
|
|
481
|
+
{ label: '选项一', value: this.datetimeString() },
|
|
482
|
+
{ label: '选项二', value: this.datetimeString() },
|
|
483
|
+
{ label: '选项三', value: this.datetimeString() },
|
|
484
|
+
],
|
|
485
|
+
required: field?.allowNull,
|
|
486
|
+
isButintin: field?.isButintin,
|
|
487
|
+
tips: field?.tips,
|
|
488
|
+
pattern: field?.pattern,
|
|
489
|
+
cols: field.cols ? field.cols : 24,
|
|
490
|
+
},
|
|
491
|
+
status: 1,
|
|
492
|
+
};
|
|
493
|
+
return config;
|
|
494
|
+
}
|
|
495
|
+
//10、下拉
|
|
496
|
+
select(field) {
|
|
497
|
+
let config = {
|
|
498
|
+
type: 'select',
|
|
499
|
+
key: field.key ? field.key : this.datetimeString('select'),
|
|
500
|
+
props: {
|
|
501
|
+
type: field.showType,
|
|
502
|
+
label: field?.label,
|
|
503
|
+
required: field?.allowNull,
|
|
504
|
+
selectType: field.selectType,
|
|
505
|
+
parameterId: field.parameterId,
|
|
506
|
+
options: field.parameterData,
|
|
507
|
+
placeholder: field?.placeholder ? field?.placeholder : `请输入${field?.label}`,
|
|
508
|
+
isButintin: field?.isButintin,
|
|
509
|
+
tips: field?.tips,
|
|
510
|
+
pattern: field?.pattern,
|
|
511
|
+
cols: field.cols ? field.cols : 24,
|
|
512
|
+
},
|
|
513
|
+
};
|
|
514
|
+
return config;
|
|
515
|
+
}
|
|
516
|
+
//11、日期
|
|
517
|
+
datetime(field) {
|
|
518
|
+
let config = {
|
|
519
|
+
type: 'datetime',
|
|
520
|
+
key: field.key ? field.key : this.datetimeString('datetime'),
|
|
521
|
+
props: {
|
|
522
|
+
type: field.showType,
|
|
523
|
+
label: field?.label,
|
|
524
|
+
required: field?.allowNull,
|
|
525
|
+
placeholder: field?.placeholder ? field?.placeholder : `请输入${field?.label}`,
|
|
526
|
+
isButintin: field?.isButintin,
|
|
527
|
+
tips: field?.tips,
|
|
528
|
+
pattern: field?.pattern,
|
|
529
|
+
format: field.format,
|
|
530
|
+
cols: field.cols ? field.cols : 24,
|
|
531
|
+
},
|
|
532
|
+
status: 1,
|
|
533
|
+
};
|
|
534
|
+
return config;
|
|
535
|
+
}
|
|
536
|
+
//12、图片
|
|
537
|
+
image(field) {
|
|
538
|
+
let config = {
|
|
539
|
+
type: 'image',
|
|
540
|
+
key: field.key ? field.key : this.datetimeString('image'),
|
|
541
|
+
props: {
|
|
542
|
+
label: field?.label,
|
|
543
|
+
required: field?.allowNull,
|
|
544
|
+
placeholder: field?.placeholder,
|
|
545
|
+
isButintin: field?.isButintin,
|
|
546
|
+
tips: field?.tips,
|
|
547
|
+
pattern: field?.pattern,
|
|
548
|
+
cols: field.cols ? field.cols : 24,
|
|
549
|
+
},
|
|
550
|
+
status: 1,
|
|
551
|
+
};
|
|
552
|
+
return config;
|
|
553
|
+
}
|
|
554
|
+
//13、分割线
|
|
555
|
+
line(field) {
|
|
556
|
+
let config = {
|
|
557
|
+
type: 'line',
|
|
558
|
+
key: field.key ? field.key : this.datetimeString('line'),
|
|
559
|
+
props: {
|
|
560
|
+
label: '分割线',
|
|
561
|
+
type: 'horizontal',
|
|
562
|
+
hideLabel: false,
|
|
563
|
+
line: 'dotted',
|
|
564
|
+
orientation: 'left',
|
|
565
|
+
cols: field.cols ? field.cols : 24,
|
|
566
|
+
},
|
|
567
|
+
};
|
|
568
|
+
return config;
|
|
569
|
+
}
|
|
570
|
+
//14、文本描述
|
|
571
|
+
html(field) {
|
|
572
|
+
let config = {
|
|
573
|
+
type: 'html',
|
|
574
|
+
key: field.key ? field.key : this.datetimeString('html'),
|
|
575
|
+
props: {
|
|
576
|
+
label: '文本描述',
|
|
577
|
+
hideLabel: true,
|
|
578
|
+
cols: field.cols ? field.cols : 24,
|
|
579
|
+
},
|
|
580
|
+
};
|
|
581
|
+
return config;
|
|
582
|
+
}
|
|
583
|
+
//15、repeat
|
|
584
|
+
repeat(field) {
|
|
585
|
+
let config = {
|
|
586
|
+
type: 'repeat',
|
|
587
|
+
key: field.key ? field.key : this.datetimeString('repeat'),
|
|
588
|
+
defaultText: field.defaultText,
|
|
589
|
+
props: {
|
|
590
|
+
type: field.showType ? field.showType : 'card',
|
|
591
|
+
label: field?.label,
|
|
592
|
+
required: field?.allowNull,
|
|
593
|
+
placeholder: field?.placeholder,
|
|
594
|
+
isButintin: field?.isButintin,
|
|
595
|
+
tips: field?.tips,
|
|
596
|
+
pattern: field?.pattern,
|
|
597
|
+
minLength: field?.minLength,
|
|
598
|
+
maxLength: field?.maxLength,
|
|
599
|
+
cols: field.cols ? field.cols : 24,
|
|
600
|
+
},
|
|
601
|
+
fieldArray: {
|
|
602
|
+
fieldGroup: [],
|
|
603
|
+
},
|
|
604
|
+
};
|
|
605
|
+
if (field.fields && field.fields.length > 0) {
|
|
606
|
+
field.fields.forEach((item) => {
|
|
607
|
+
config.fieldArray.fieldGroup.push(this.getFiledInfoFunction(item));
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
return config;
|
|
611
|
+
}
|
|
612
|
+
//16、panel
|
|
613
|
+
panel(field) {
|
|
614
|
+
let config = {
|
|
615
|
+
type: 'panel',
|
|
616
|
+
key: field.key ? field.key : this.datetimeString('panel'),
|
|
617
|
+
defaultText: field.defaultText,
|
|
618
|
+
props: {
|
|
619
|
+
label: field?.label,
|
|
620
|
+
required: field?.allowNull,
|
|
621
|
+
placeholder: field?.placeholder,
|
|
622
|
+
isButintin: field?.isButintin,
|
|
623
|
+
tips: field?.tips,
|
|
624
|
+
pattern: field?.pattern,
|
|
625
|
+
minLength: field?.minLength,
|
|
626
|
+
maxLength: field?.maxLength,
|
|
627
|
+
cols: field.cols ? field.cols : 24,
|
|
628
|
+
},
|
|
629
|
+
fieldGroup: [],
|
|
630
|
+
};
|
|
631
|
+
return config;
|
|
632
|
+
}
|
|
633
|
+
//17、label
|
|
634
|
+
label(field) {
|
|
635
|
+
let config = {
|
|
636
|
+
type: 'label',
|
|
637
|
+
key: field.key ? field.key : this.datetimeString('label'),
|
|
638
|
+
props: {
|
|
639
|
+
label: field?.label,
|
|
640
|
+
isButintin: field?.isButintin,
|
|
641
|
+
tips: field?.tips,
|
|
642
|
+
cols: field.cols ? field.cols : 24,
|
|
643
|
+
},
|
|
644
|
+
};
|
|
645
|
+
return config;
|
|
646
|
+
}
|
|
647
|
+
//18、richtext
|
|
648
|
+
richtext(field) {
|
|
649
|
+
let config = {
|
|
650
|
+
type: 'richtext',
|
|
651
|
+
key: field.key ? field.key : this.datetimeString('label'),
|
|
652
|
+
props: {
|
|
653
|
+
label: field?.label,
|
|
654
|
+
isButintin: field?.isButintin,
|
|
655
|
+
placeholder: field?.placeholder,
|
|
656
|
+
tips: field?.tips,
|
|
657
|
+
cols: field.cols ? field.cols : 24,
|
|
658
|
+
},
|
|
659
|
+
};
|
|
660
|
+
return config;
|
|
661
|
+
}
|
|
662
|
+
// 、人员employee | 职位position | 组织organizational | 地区area
|
|
663
|
+
lookup(field) {
|
|
664
|
+
let config = {
|
|
665
|
+
type: field.dataType,
|
|
666
|
+
key: field.key ? field.key : Guid.createId()['value'],
|
|
667
|
+
defaultText: field.defaultText,
|
|
668
|
+
props: {
|
|
669
|
+
type: field.showType,
|
|
670
|
+
label: field?.label,
|
|
671
|
+
required: field?.allowNull,
|
|
672
|
+
placeholder: field?.placeholder,
|
|
673
|
+
isButintin: field?.isButintin,
|
|
674
|
+
tips: field?.tips,
|
|
675
|
+
pattern: field?.pattern,
|
|
676
|
+
minLength: field?.minLength,
|
|
677
|
+
maxLength: field?.maxLength,
|
|
678
|
+
},
|
|
679
|
+
};
|
|
680
|
+
return config;
|
|
681
|
+
}
|
|
682
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonDesignFieldInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
683
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonDesignFieldInitService, providedIn: 'root' });
|
|
684
|
+
}
|
|
685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonDesignFieldInitService, decorators: [{
|
|
686
|
+
type: Injectable,
|
|
687
|
+
args: [{
|
|
688
|
+
providedIn: 'root',
|
|
689
|
+
}]
|
|
690
|
+
}] });
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Generated bundle index. Do not edit.
|
|
694
|
+
*/
|
|
695
|
+
|
|
696
|
+
export { DeonDesignFieldInitService };
|
|
697
|
+
//# sourceMappingURL=srv.field.init.mjs.map
|