@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,706 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, InjectionToken, EventEmitter, inject, Type, Injector, TemplateRef, booleanAttribute, ContentChild, ViewChild, Output, Input, ChangeDetectionStrategy, Component, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import { ESCAPE } from '@angular/cdk/keycodes';
|
|
4
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
5
|
+
import { OverlayConfig, CdkScrollable } from '@angular/cdk/overlay';
|
|
6
|
+
import * as i7 from '@angular/cdk/portal';
|
|
7
|
+
import { ComponentPortal, TemplatePortal, PortalModule, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
8
|
+
import { DOCUMENT, NgTemplateOutlet } from '@angular/common';
|
|
9
|
+
import { Subject } from 'rxjs';
|
|
10
|
+
import { takeUntil } from 'rxjs/operators';
|
|
11
|
+
import { drawerMaskMotion } from 'ng-zorro-antd/core/animation';
|
|
12
|
+
import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation';
|
|
13
|
+
import * as i5 from 'ng-zorro-antd/core/outlet';
|
|
14
|
+
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
|
15
|
+
import { overlayZIndexSetter } from 'ng-zorro-antd/core/overlay';
|
|
16
|
+
import { isTemplateRef, toCssPixel } from 'ng-zorro-antd/core/util';
|
|
17
|
+
import * as i6 from 'ng-zorro-antd/icon';
|
|
18
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
19
|
+
import * as i1 from 'ng-zorro-antd/core/config';
|
|
20
|
+
import * as i3 from '@angular/cdk/a11y';
|
|
21
|
+
import * as i4 from '@angular/cdk/bidi';
|
|
22
|
+
|
|
23
|
+
class NzDrawerContentDirective {
|
|
24
|
+
templateRef;
|
|
25
|
+
constructor(templateRef) {
|
|
26
|
+
this.templateRef = templateRef;
|
|
27
|
+
}
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerContentDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: NzDrawerContentDirective, isStandalone: true, selector: "[nzDrawerContent]", exportAs: ["nzDrawerContent"], ngImport: i0 });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerContentDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: '[nzDrawerContent]',
|
|
35
|
+
exportAs: 'nzDrawerContent'
|
|
36
|
+
}]
|
|
37
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
38
|
+
|
|
39
|
+
const DRAWER_DEFAULT_SIZE = 378;
|
|
40
|
+
const DRAWER_LARGE_SIZE = 736;
|
|
41
|
+
const NZ_DRAWER_DATA = new InjectionToken('NZ_DRAWER_DATA');
|
|
42
|
+
|
|
43
|
+
class NzDrawerRef {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const DRAWER_ANIMATE_DURATION = 300;
|
|
47
|
+
const NZ_CONFIG_MODULE_NAME = 'drawer';
|
|
48
|
+
class NzDrawerComponent extends NzDrawerRef {
|
|
49
|
+
cdr;
|
|
50
|
+
nzConfigService;
|
|
51
|
+
renderer;
|
|
52
|
+
overlay;
|
|
53
|
+
injector;
|
|
54
|
+
changeDetectorRef;
|
|
55
|
+
focusTrapFactory;
|
|
56
|
+
viewContainerRef;
|
|
57
|
+
overlayKeyboardDispatcher;
|
|
58
|
+
directionality;
|
|
59
|
+
_nzModuleName = NZ_CONFIG_MODULE_NAME;
|
|
60
|
+
nzContent;
|
|
61
|
+
nzCloseIcon = 'close';
|
|
62
|
+
nzClosable = true;
|
|
63
|
+
//@WithConfig()
|
|
64
|
+
nzMaskClosable = true;
|
|
65
|
+
//@WithConfig()
|
|
66
|
+
nzMask = true;
|
|
67
|
+
//@WithConfig()
|
|
68
|
+
nzCloseOnNavigation = true;
|
|
69
|
+
nzNoAnimation = false;
|
|
70
|
+
nzKeyboard = true;
|
|
71
|
+
nzTitle;
|
|
72
|
+
nzExtra;
|
|
73
|
+
nzFooter;
|
|
74
|
+
nzPlacement = 'right';
|
|
75
|
+
nzSize = 'default';
|
|
76
|
+
nzMaskStyle = {};
|
|
77
|
+
nzBodyStyle = {};
|
|
78
|
+
nzWrapClassName;
|
|
79
|
+
nzWidth;
|
|
80
|
+
nzHeight;
|
|
81
|
+
nzZIndex = 1000;
|
|
82
|
+
nzOffsetX = 0;
|
|
83
|
+
nzOffsetY = 0;
|
|
84
|
+
componentInstance = null;
|
|
85
|
+
componentRef = null;
|
|
86
|
+
set nzVisible(value) {
|
|
87
|
+
this.isOpen = value;
|
|
88
|
+
}
|
|
89
|
+
get nzVisible() {
|
|
90
|
+
return this.isOpen;
|
|
91
|
+
}
|
|
92
|
+
nzOnViewInit = new EventEmitter();
|
|
93
|
+
nzOnClose = new EventEmitter();
|
|
94
|
+
nzVisibleChange = new EventEmitter();
|
|
95
|
+
drawerTemplate;
|
|
96
|
+
bodyPortalOutlet;
|
|
97
|
+
contentFromContentChild;
|
|
98
|
+
destroy$ = new Subject();
|
|
99
|
+
previouslyFocusedElement;
|
|
100
|
+
placementChanging = false;
|
|
101
|
+
placementChangeTimeoutId;
|
|
102
|
+
nzContentParams; // only service
|
|
103
|
+
nzData;
|
|
104
|
+
overlayRef;
|
|
105
|
+
portal;
|
|
106
|
+
focusTrap;
|
|
107
|
+
isOpen = false;
|
|
108
|
+
inAnimation = false;
|
|
109
|
+
templateContext = {
|
|
110
|
+
$implicit: undefined,
|
|
111
|
+
drawerRef: this
|
|
112
|
+
};
|
|
113
|
+
isTemplateRef = isTemplateRef;
|
|
114
|
+
get offsetTransform() {
|
|
115
|
+
if (!this.isOpen || this.nzOffsetX + this.nzOffsetY === 0) {
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
switch (this.nzPlacement) {
|
|
119
|
+
case 'left':
|
|
120
|
+
return `translateX(${this.nzOffsetX}px)`;
|
|
121
|
+
case 'right':
|
|
122
|
+
return `translateX(-${this.nzOffsetX}px)`;
|
|
123
|
+
case 'top':
|
|
124
|
+
return `translateY(${this.nzOffsetY}px)`;
|
|
125
|
+
case 'bottom':
|
|
126
|
+
return `translateY(-${this.nzOffsetY}px)`;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
get transform() {
|
|
130
|
+
if (this.isOpen) {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
switch (this.nzPlacement) {
|
|
134
|
+
case 'left':
|
|
135
|
+
return `translateX(-100%)`;
|
|
136
|
+
case 'right':
|
|
137
|
+
return `translateX(100%)`;
|
|
138
|
+
case 'top':
|
|
139
|
+
return `translateY(-100%)`;
|
|
140
|
+
case 'bottom':
|
|
141
|
+
return `translateY(100%)`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
get width() {
|
|
145
|
+
if (this.isLeftOrRight) {
|
|
146
|
+
const defaultWidth = this.nzSize === 'large' ? DRAWER_LARGE_SIZE : DRAWER_DEFAULT_SIZE;
|
|
147
|
+
return this.nzWidth === undefined ? toCssPixel(defaultWidth) : toCssPixel(this.nzWidth);
|
|
148
|
+
}
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
get height() {
|
|
152
|
+
if (!this.isLeftOrRight) {
|
|
153
|
+
const defaultHeight = this.nzSize === 'large' ? DRAWER_LARGE_SIZE : DRAWER_DEFAULT_SIZE;
|
|
154
|
+
return this.nzHeight === undefined ? toCssPixel(defaultHeight) : toCssPixel(this.nzHeight);
|
|
155
|
+
}
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
get isLeftOrRight() {
|
|
159
|
+
return this.nzPlacement === 'left' || this.nzPlacement === 'right';
|
|
160
|
+
}
|
|
161
|
+
nzAfterOpen = new Subject();
|
|
162
|
+
nzAfterClose = new Subject();
|
|
163
|
+
get afterOpen() {
|
|
164
|
+
return this.nzAfterOpen.asObservable();
|
|
165
|
+
}
|
|
166
|
+
get afterClose() {
|
|
167
|
+
return this.nzAfterClose.asObservable();
|
|
168
|
+
}
|
|
169
|
+
get isNzContentTemplateRef() {
|
|
170
|
+
return isTemplateRef(this.nzContent);
|
|
171
|
+
}
|
|
172
|
+
// from service config
|
|
173
|
+
//@WithConfig()
|
|
174
|
+
nzDirection = undefined;
|
|
175
|
+
dir = 'ltr';
|
|
176
|
+
document = inject(DOCUMENT);
|
|
177
|
+
constructor(cdr, nzConfigService, renderer, overlay, injector, changeDetectorRef, focusTrapFactory, viewContainerRef, overlayKeyboardDispatcher, directionality) {
|
|
178
|
+
super();
|
|
179
|
+
this.cdr = cdr;
|
|
180
|
+
this.nzConfigService = nzConfigService;
|
|
181
|
+
this.renderer = renderer;
|
|
182
|
+
this.overlay = overlay;
|
|
183
|
+
this.injector = injector;
|
|
184
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
185
|
+
this.focusTrapFactory = focusTrapFactory;
|
|
186
|
+
this.viewContainerRef = viewContainerRef;
|
|
187
|
+
this.overlayKeyboardDispatcher = overlayKeyboardDispatcher;
|
|
188
|
+
this.directionality = directionality;
|
|
189
|
+
}
|
|
190
|
+
ngOnInit() {
|
|
191
|
+
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
|
|
192
|
+
this.dir = direction;
|
|
193
|
+
this.cdr.detectChanges();
|
|
194
|
+
});
|
|
195
|
+
this.dir = this.nzDirection || this.directionality.value;
|
|
196
|
+
this.attachOverlay();
|
|
197
|
+
this.updateOverlayStyle();
|
|
198
|
+
this.updateBodyOverflow();
|
|
199
|
+
this.templateContext = { $implicit: this.nzData || this.nzContentParams, drawerRef: this };
|
|
200
|
+
this.changeDetectorRef.detectChanges();
|
|
201
|
+
}
|
|
202
|
+
ngAfterViewInit() {
|
|
203
|
+
this.attachBodyContent();
|
|
204
|
+
// The `setTimeout` triggers change detection. There's no sense to schedule the DOM timer if anyone is
|
|
205
|
+
// listening to the `nzOnViewInit` event inside the template, for instance `<nz-drawer (nzOnViewInit)="...">`.
|
|
206
|
+
if (this.nzOnViewInit.observers.length) {
|
|
207
|
+
setTimeout(() => {
|
|
208
|
+
this.nzOnViewInit.emit();
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
ngOnChanges(changes) {
|
|
213
|
+
const { nzPlacement, nzVisible } = changes;
|
|
214
|
+
if (nzVisible) {
|
|
215
|
+
const value = changes["nzVisible"].currentValue;
|
|
216
|
+
if (value) {
|
|
217
|
+
this.open();
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
this.close();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (nzPlacement && !nzPlacement.isFirstChange()) {
|
|
224
|
+
this.triggerPlacementChangeCycleOnce();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
ngOnDestroy() {
|
|
228
|
+
this.destroy$.next();
|
|
229
|
+
this.destroy$.complete();
|
|
230
|
+
clearTimeout(this.placementChangeTimeoutId);
|
|
231
|
+
this.disposeOverlay();
|
|
232
|
+
}
|
|
233
|
+
getAnimationDuration() {
|
|
234
|
+
return this.nzNoAnimation ? 0 : DRAWER_ANIMATE_DURATION;
|
|
235
|
+
}
|
|
236
|
+
// Disable the transition animation temporarily when the placement changing
|
|
237
|
+
triggerPlacementChangeCycleOnce() {
|
|
238
|
+
if (!this.nzNoAnimation) {
|
|
239
|
+
this.placementChanging = true;
|
|
240
|
+
this.changeDetectorRef.markForCheck();
|
|
241
|
+
clearTimeout(this.placementChangeTimeoutId);
|
|
242
|
+
this.placementChangeTimeoutId = setTimeout(() => {
|
|
243
|
+
this.placementChanging = false;
|
|
244
|
+
this.changeDetectorRef.markForCheck();
|
|
245
|
+
}, this.getAnimationDuration());
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
close(result) {
|
|
249
|
+
this.isOpen = false;
|
|
250
|
+
this.inAnimation = true;
|
|
251
|
+
this.nzVisibleChange.emit(false);
|
|
252
|
+
this.updateOverlayStyle();
|
|
253
|
+
this.overlayKeyboardDispatcher.remove(this.overlayRef);
|
|
254
|
+
this.changeDetectorRef.detectChanges();
|
|
255
|
+
setTimeout(() => {
|
|
256
|
+
this.updateBodyOverflow();
|
|
257
|
+
this.restoreFocus();
|
|
258
|
+
this.inAnimation = false;
|
|
259
|
+
this.nzAfterClose.next(result);
|
|
260
|
+
this.nzAfterClose.complete();
|
|
261
|
+
this.componentInstance = null;
|
|
262
|
+
this.componentRef = null;
|
|
263
|
+
}, this.getAnimationDuration());
|
|
264
|
+
}
|
|
265
|
+
open() {
|
|
266
|
+
this.attachOverlay();
|
|
267
|
+
this.isOpen = true;
|
|
268
|
+
this.inAnimation = true;
|
|
269
|
+
this.nzVisibleChange.emit(true);
|
|
270
|
+
this.overlayKeyboardDispatcher.add(this.overlayRef);
|
|
271
|
+
this.updateOverlayStyle();
|
|
272
|
+
this.updateBodyOverflow();
|
|
273
|
+
this.savePreviouslyFocusedElement();
|
|
274
|
+
this.trapFocus();
|
|
275
|
+
this.changeDetectorRef.detectChanges();
|
|
276
|
+
setTimeout(() => {
|
|
277
|
+
this.inAnimation = false;
|
|
278
|
+
this.changeDetectorRef.detectChanges();
|
|
279
|
+
this.nzAfterOpen.next();
|
|
280
|
+
}, this.getAnimationDuration());
|
|
281
|
+
}
|
|
282
|
+
getContentComponent() {
|
|
283
|
+
return this.componentInstance;
|
|
284
|
+
}
|
|
285
|
+
getContentComponentRef() {
|
|
286
|
+
return this.componentRef;
|
|
287
|
+
}
|
|
288
|
+
closeClick() {
|
|
289
|
+
this.nzOnClose.emit();
|
|
290
|
+
}
|
|
291
|
+
maskClick() {
|
|
292
|
+
if (this.nzMaskClosable && this.nzMask) {
|
|
293
|
+
this.nzOnClose.emit();
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
attachBodyContent() {
|
|
297
|
+
this.bodyPortalOutlet.dispose();
|
|
298
|
+
if (this.nzContent instanceof Type) {
|
|
299
|
+
const childInjector = Injector.create({
|
|
300
|
+
parent: this.injector,
|
|
301
|
+
providers: [
|
|
302
|
+
{ provide: NzDrawerRef, useValue: this },
|
|
303
|
+
{ provide: NZ_DRAWER_DATA, useValue: this.nzData }
|
|
304
|
+
]
|
|
305
|
+
});
|
|
306
|
+
const componentPortal = new ComponentPortal(this.nzContent, null, childInjector);
|
|
307
|
+
this.componentRef = this.bodyPortalOutlet.attachComponentPortal(componentPortal);
|
|
308
|
+
this.componentInstance = this.componentRef.instance;
|
|
309
|
+
/**TODO
|
|
310
|
+
* When nzContentParam will be remove in the next major version, we have to remove the following line
|
|
311
|
+
* **/
|
|
312
|
+
Object.assign(this.componentRef.instance, this.nzData || this.nzContentParams);
|
|
313
|
+
this.componentRef.changeDetectorRef.detectChanges();
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
attachOverlay() {
|
|
317
|
+
if (!this.overlayRef) {
|
|
318
|
+
this.portal = new TemplatePortal(this.drawerTemplate, this.viewContainerRef);
|
|
319
|
+
this.overlayRef = this.overlay.create(this.getOverlayConfig());
|
|
320
|
+
overlayZIndexSetter(this.overlayRef, this.nzZIndex);
|
|
321
|
+
}
|
|
322
|
+
if (this.overlayRef && !this.overlayRef.hasAttached()) {
|
|
323
|
+
this.overlayRef.attach(this.portal);
|
|
324
|
+
this.overlayRef.keydownEvents()
|
|
325
|
+
.pipe(takeUntil(this.destroy$))
|
|
326
|
+
.subscribe((event) => {
|
|
327
|
+
if (event.keyCode === ESCAPE && this.isOpen && this.nzKeyboard) {
|
|
328
|
+
this.nzOnClose.emit();
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
this.overlayRef
|
|
332
|
+
.detachments()
|
|
333
|
+
.pipe(takeUntil(this.destroy$))
|
|
334
|
+
.subscribe(() => {
|
|
335
|
+
this.close();
|
|
336
|
+
this.disposeOverlay();
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
disposeOverlay() {
|
|
341
|
+
this.overlayRef?.dispose();
|
|
342
|
+
this.overlayRef = null;
|
|
343
|
+
}
|
|
344
|
+
getOverlayConfig() {
|
|
345
|
+
return new OverlayConfig({
|
|
346
|
+
disposeOnNavigation: this.nzCloseOnNavigation,
|
|
347
|
+
positionStrategy: this.overlay.position().global(),
|
|
348
|
+
scrollStrategy: this.overlay.scrollStrategies.block()
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
updateOverlayStyle() {
|
|
352
|
+
if (this.overlayRef && this.overlayRef.overlayElement) {
|
|
353
|
+
this.renderer.setStyle(this.overlayRef.overlayElement, 'pointer-events', this.isOpen ? 'auto' : 'none');
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
updateBodyOverflow() {
|
|
357
|
+
if (this.overlayRef) {
|
|
358
|
+
if (this.isOpen) {
|
|
359
|
+
this.overlayRef.getConfig().scrollStrategy.enable();
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
this.overlayRef.getConfig().scrollStrategy.disable();
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
savePreviouslyFocusedElement() {
|
|
367
|
+
if (this.document && !this.previouslyFocusedElement) {
|
|
368
|
+
this.previouslyFocusedElement = this.document.activeElement;
|
|
369
|
+
// We need the extra check, because IE's svg element has no blur method.
|
|
370
|
+
if (this.previouslyFocusedElement && typeof this.previouslyFocusedElement.blur === 'function') {
|
|
371
|
+
this.previouslyFocusedElement.blur();
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
trapFocus() {
|
|
376
|
+
if (!this.focusTrap && this.overlayRef && this.overlayRef.overlayElement) {
|
|
377
|
+
this.focusTrap = this.focusTrapFactory.create(this.overlayRef.overlayElement);
|
|
378
|
+
this.focusTrap.focusInitialElement();
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
restoreFocus() {
|
|
382
|
+
// We need the extra check, because IE can set the `activeElement` to null in some cases.
|
|
383
|
+
if (this.previouslyFocusedElement && typeof this.previouslyFocusedElement.focus === 'function') {
|
|
384
|
+
this.previouslyFocusedElement.focus();
|
|
385
|
+
this.previouslyFocusedElement = undefined;
|
|
386
|
+
}
|
|
387
|
+
if (this.focusTrap) {
|
|
388
|
+
this.focusTrap.destroy();
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.NzConfigService }, { token: i0.Renderer2 }, { token: i2.Overlay }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i3.FocusTrapFactory }, { token: i0.ViewContainerRef }, { token: i2.OverlayKeyboardDispatcher }, { token: i4.Directionality }], target: i0.ɵɵFactoryTarget.Component });
|
|
392
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: NzDrawerComponent, isStandalone: true, selector: "nz-drawer", inputs: { nzContent: "nzContent", nzCloseIcon: "nzCloseIcon", nzClosable: ["nzClosable", "nzClosable", booleanAttribute], nzMaskClosable: ["nzMaskClosable", "nzMaskClosable", booleanAttribute], nzMask: ["nzMask", "nzMask", booleanAttribute], nzCloseOnNavigation: ["nzCloseOnNavigation", "nzCloseOnNavigation", booleanAttribute], nzNoAnimation: ["nzNoAnimation", "nzNoAnimation", booleanAttribute], nzKeyboard: ["nzKeyboard", "nzKeyboard", booleanAttribute], nzTitle: "nzTitle", nzExtra: "nzExtra", nzFooter: "nzFooter", nzPlacement: "nzPlacement", nzSize: "nzSize", nzMaskStyle: "nzMaskStyle", nzBodyStyle: "nzBodyStyle", nzWrapClassName: "nzWrapClassName", nzWidth: "nzWidth", nzHeight: "nzHeight", nzZIndex: "nzZIndex", nzOffsetX: "nzOffsetX", nzOffsetY: "nzOffsetY", nzVisible: ["nzVisible", "nzVisible", booleanAttribute] }, outputs: { nzOnViewInit: "nzOnViewInit", nzOnClose: "nzOnClose", nzVisibleChange: "nzVisibleChange" }, queries: [{ propertyName: "contentFromContentChild", first: true, predicate: NzDrawerContentDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "drawerTemplate", first: true, predicate: ["drawerTemplate"], descendants: true, static: true }, { propertyName: "bodyPortalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true }], exportAs: ["nzDrawer"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
393
|
+
<ng-template #drawerTemplate>
|
|
394
|
+
<div
|
|
395
|
+
class="ant-drawer"
|
|
396
|
+
[nzNoAnimation]="nzNoAnimation"
|
|
397
|
+
[class.ant-drawer-rtl]="dir === 'rtl'"
|
|
398
|
+
[class.ant-drawer-open]="isOpen"
|
|
399
|
+
[class.no-mask]="!nzMask"
|
|
400
|
+
[class.ant-drawer-top]="nzPlacement === 'top'"
|
|
401
|
+
[class.ant-drawer-bottom]="nzPlacement === 'bottom'"
|
|
402
|
+
[class.ant-drawer-right]="nzPlacement === 'right'"
|
|
403
|
+
[class.ant-drawer-left]="nzPlacement === 'left'"
|
|
404
|
+
[style.transform]="offsetTransform"
|
|
405
|
+
[style.transition]="placementChanging ? 'none' : null"
|
|
406
|
+
[style.zIndex]="nzZIndex"
|
|
407
|
+
>
|
|
408
|
+
@if (nzMask && isOpen) {
|
|
409
|
+
<div @drawerMaskMotion class="ant-drawer-mask" (click)="maskClick()" [style]="nzMaskStyle"></div>
|
|
410
|
+
}
|
|
411
|
+
<div
|
|
412
|
+
class="ant-drawer-content-wrapper {{ nzWrapClassName }}"
|
|
413
|
+
[style.width]="width"
|
|
414
|
+
[style.height]="height"
|
|
415
|
+
[style.transform]="transform"
|
|
416
|
+
[style.transition]="placementChanging ? 'none' : null"
|
|
417
|
+
>
|
|
418
|
+
<div class="ant-drawer-content">
|
|
419
|
+
<div class="ant-drawer-wrapper-body" [style.height]="isLeftOrRight ? '100%' : null">
|
|
420
|
+
@if (nzTitle || nzClosable) {
|
|
421
|
+
<div class="ant-drawer-header" [class.ant-drawer-header-close-only]="!nzTitle">
|
|
422
|
+
<div class="ant-drawer-header-title">
|
|
423
|
+
@if (nzClosable) {
|
|
424
|
+
<button (click)="closeClick()" aria-label="Close" class="ant-drawer-close">
|
|
425
|
+
<ng-container *nzStringTemplateOutlet="nzCloseIcon; let closeIcon">
|
|
426
|
+
<nz-icon [nzType]="closeIcon" />
|
|
427
|
+
</ng-container>
|
|
428
|
+
</button>
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@if (nzTitle) {
|
|
432
|
+
<div class="ant-drawer-title">
|
|
433
|
+
<ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>
|
|
434
|
+
</div>
|
|
435
|
+
}
|
|
436
|
+
</div>
|
|
437
|
+
@if (nzExtra) {
|
|
438
|
+
<div class="ant-drawer-extra">
|
|
439
|
+
<ng-container *nzStringTemplateOutlet="nzExtra">{{ nzExtra }}</ng-container>
|
|
440
|
+
</div>
|
|
441
|
+
}
|
|
442
|
+
</div>
|
|
443
|
+
}
|
|
444
|
+
<div class="ant-drawer-body" [style]="nzBodyStyle" cdkScrollable>
|
|
445
|
+
<ng-template cdkPortalOutlet />
|
|
446
|
+
@if (nzContent) {
|
|
447
|
+
@if (isTemplateRef(nzContent)) {
|
|
448
|
+
<ng-container *ngTemplateOutlet="nzContent; context: templateContext" />
|
|
449
|
+
}
|
|
450
|
+
} @else {
|
|
451
|
+
@if (contentFromContentChild && (isOpen || inAnimation)) {
|
|
452
|
+
<ng-template [ngTemplateOutlet]="contentFromContentChild" />
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
</div>
|
|
456
|
+
@if (nzFooter) {
|
|
457
|
+
<div class="ant-drawer-footer">
|
|
458
|
+
<ng-container *nzStringTemplateOutlet="nzFooter">{{ nzFooter }}</ng-container>
|
|
459
|
+
</div>
|
|
460
|
+
}
|
|
461
|
+
</div>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
465
|
+
</ng-template>
|
|
466
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NzNoAnimationDirective, selector: "[nzNoAnimation]", inputs: ["nzNoAnimation"], exportAs: ["nzNoAnimation"] }, { kind: "ngmodule", type: NzOutletModule }, { kind: "directive", type: i5.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i6.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i7.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }], animations: [drawerMaskMotion], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
467
|
+
}
|
|
468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerComponent, decorators: [{
|
|
469
|
+
type: Component,
|
|
470
|
+
args: [{
|
|
471
|
+
selector: 'nz-drawer',
|
|
472
|
+
exportAs: 'nzDrawer',
|
|
473
|
+
template: `
|
|
474
|
+
<ng-template #drawerTemplate>
|
|
475
|
+
<div
|
|
476
|
+
class="ant-drawer"
|
|
477
|
+
[nzNoAnimation]="nzNoAnimation"
|
|
478
|
+
[class.ant-drawer-rtl]="dir === 'rtl'"
|
|
479
|
+
[class.ant-drawer-open]="isOpen"
|
|
480
|
+
[class.no-mask]="!nzMask"
|
|
481
|
+
[class.ant-drawer-top]="nzPlacement === 'top'"
|
|
482
|
+
[class.ant-drawer-bottom]="nzPlacement === 'bottom'"
|
|
483
|
+
[class.ant-drawer-right]="nzPlacement === 'right'"
|
|
484
|
+
[class.ant-drawer-left]="nzPlacement === 'left'"
|
|
485
|
+
[style.transform]="offsetTransform"
|
|
486
|
+
[style.transition]="placementChanging ? 'none' : null"
|
|
487
|
+
[style.zIndex]="nzZIndex"
|
|
488
|
+
>
|
|
489
|
+
@if (nzMask && isOpen) {
|
|
490
|
+
<div @drawerMaskMotion class="ant-drawer-mask" (click)="maskClick()" [style]="nzMaskStyle"></div>
|
|
491
|
+
}
|
|
492
|
+
<div
|
|
493
|
+
class="ant-drawer-content-wrapper {{ nzWrapClassName }}"
|
|
494
|
+
[style.width]="width"
|
|
495
|
+
[style.height]="height"
|
|
496
|
+
[style.transform]="transform"
|
|
497
|
+
[style.transition]="placementChanging ? 'none' : null"
|
|
498
|
+
>
|
|
499
|
+
<div class="ant-drawer-content">
|
|
500
|
+
<div class="ant-drawer-wrapper-body" [style.height]="isLeftOrRight ? '100%' : null">
|
|
501
|
+
@if (nzTitle || nzClosable) {
|
|
502
|
+
<div class="ant-drawer-header" [class.ant-drawer-header-close-only]="!nzTitle">
|
|
503
|
+
<div class="ant-drawer-header-title">
|
|
504
|
+
@if (nzClosable) {
|
|
505
|
+
<button (click)="closeClick()" aria-label="Close" class="ant-drawer-close">
|
|
506
|
+
<ng-container *nzStringTemplateOutlet="nzCloseIcon; let closeIcon">
|
|
507
|
+
<nz-icon [nzType]="closeIcon" />
|
|
508
|
+
</ng-container>
|
|
509
|
+
</button>
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@if (nzTitle) {
|
|
513
|
+
<div class="ant-drawer-title">
|
|
514
|
+
<ng-container *nzStringTemplateOutlet="nzTitle">{{ nzTitle }}</ng-container>
|
|
515
|
+
</div>
|
|
516
|
+
}
|
|
517
|
+
</div>
|
|
518
|
+
@if (nzExtra) {
|
|
519
|
+
<div class="ant-drawer-extra">
|
|
520
|
+
<ng-container *nzStringTemplateOutlet="nzExtra">{{ nzExtra }}</ng-container>
|
|
521
|
+
</div>
|
|
522
|
+
}
|
|
523
|
+
</div>
|
|
524
|
+
}
|
|
525
|
+
<div class="ant-drawer-body" [style]="nzBodyStyle" cdkScrollable>
|
|
526
|
+
<ng-template cdkPortalOutlet />
|
|
527
|
+
@if (nzContent) {
|
|
528
|
+
@if (isTemplateRef(nzContent)) {
|
|
529
|
+
<ng-container *ngTemplateOutlet="nzContent; context: templateContext" />
|
|
530
|
+
}
|
|
531
|
+
} @else {
|
|
532
|
+
@if (contentFromContentChild && (isOpen || inAnimation)) {
|
|
533
|
+
<ng-template [ngTemplateOutlet]="contentFromContentChild" />
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
</div>
|
|
537
|
+
@if (nzFooter) {
|
|
538
|
+
<div class="ant-drawer-footer">
|
|
539
|
+
<ng-container *nzStringTemplateOutlet="nzFooter">{{ nzFooter }}</ng-container>
|
|
540
|
+
</div>
|
|
541
|
+
}
|
|
542
|
+
</div>
|
|
543
|
+
</div>
|
|
544
|
+
</div>
|
|
545
|
+
</div>
|
|
546
|
+
</ng-template>
|
|
547
|
+
`,
|
|
548
|
+
preserveWhitespaces: false,
|
|
549
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
550
|
+
animations: [drawerMaskMotion],
|
|
551
|
+
imports: [NzNoAnimationDirective, NzOutletModule, NzIconModule, PortalModule, NgTemplateOutlet, CdkScrollable]
|
|
552
|
+
}]
|
|
553
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.NzConfigService }, { type: i0.Renderer2 }, { type: i2.Overlay }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i3.FocusTrapFactory }, { type: i0.ViewContainerRef }, { type: i2.OverlayKeyboardDispatcher }, { type: i4.Directionality }], propDecorators: { nzContent: [{
|
|
554
|
+
type: Input
|
|
555
|
+
}], nzCloseIcon: [{
|
|
556
|
+
type: Input
|
|
557
|
+
}], nzClosable: [{
|
|
558
|
+
type: Input,
|
|
559
|
+
args: [{ transform: booleanAttribute }]
|
|
560
|
+
}],
|
|
561
|
+
//@WithConfig()
|
|
562
|
+
nzMaskClosable: [{
|
|
563
|
+
type: Input,
|
|
564
|
+
args: [{ transform: booleanAttribute }]
|
|
565
|
+
}],
|
|
566
|
+
//@WithConfig()
|
|
567
|
+
nzMask: [{
|
|
568
|
+
type: Input,
|
|
569
|
+
args: [{ transform: booleanAttribute }]
|
|
570
|
+
}],
|
|
571
|
+
//@WithConfig()
|
|
572
|
+
nzCloseOnNavigation: [{
|
|
573
|
+
type: Input,
|
|
574
|
+
args: [{ transform: booleanAttribute }]
|
|
575
|
+
}], nzNoAnimation: [{
|
|
576
|
+
type: Input,
|
|
577
|
+
args: [{ transform: booleanAttribute }]
|
|
578
|
+
}], nzKeyboard: [{
|
|
579
|
+
type: Input,
|
|
580
|
+
args: [{ transform: booleanAttribute }]
|
|
581
|
+
}], nzTitle: [{
|
|
582
|
+
type: Input
|
|
583
|
+
}], nzExtra: [{
|
|
584
|
+
type: Input
|
|
585
|
+
}], nzFooter: [{
|
|
586
|
+
type: Input
|
|
587
|
+
}], nzPlacement: [{
|
|
588
|
+
type: Input
|
|
589
|
+
}], nzSize: [{
|
|
590
|
+
type: Input
|
|
591
|
+
}], nzMaskStyle: [{
|
|
592
|
+
type: Input
|
|
593
|
+
}], nzBodyStyle: [{
|
|
594
|
+
type: Input
|
|
595
|
+
}], nzWrapClassName: [{
|
|
596
|
+
type: Input
|
|
597
|
+
}], nzWidth: [{
|
|
598
|
+
type: Input
|
|
599
|
+
}], nzHeight: [{
|
|
600
|
+
type: Input
|
|
601
|
+
}], nzZIndex: [{
|
|
602
|
+
type: Input
|
|
603
|
+
}], nzOffsetX: [{
|
|
604
|
+
type: Input
|
|
605
|
+
}], nzOffsetY: [{
|
|
606
|
+
type: Input
|
|
607
|
+
}], nzVisible: [{
|
|
608
|
+
type: Input,
|
|
609
|
+
args: [{ transform: booleanAttribute }]
|
|
610
|
+
}], nzOnViewInit: [{
|
|
611
|
+
type: Output
|
|
612
|
+
}], nzOnClose: [{
|
|
613
|
+
type: Output
|
|
614
|
+
}], nzVisibleChange: [{
|
|
615
|
+
type: Output
|
|
616
|
+
}], drawerTemplate: [{
|
|
617
|
+
type: ViewChild,
|
|
618
|
+
args: ['drawerTemplate', { static: true }]
|
|
619
|
+
}], bodyPortalOutlet: [{
|
|
620
|
+
type: ViewChild,
|
|
621
|
+
args: [CdkPortalOutlet, { static: false }]
|
|
622
|
+
}], contentFromContentChild: [{
|
|
623
|
+
type: ContentChild,
|
|
624
|
+
args: [NzDrawerContentDirective, { static: true, read: TemplateRef }]
|
|
625
|
+
}] } });
|
|
626
|
+
|
|
627
|
+
class DrawerBuilderForService {
|
|
628
|
+
overlay;
|
|
629
|
+
options;
|
|
630
|
+
drawerRef;
|
|
631
|
+
overlayRef;
|
|
632
|
+
unsubscribe$ = new Subject();
|
|
633
|
+
constructor(overlay, options) {
|
|
634
|
+
this.overlay = overlay;
|
|
635
|
+
this.options = options;
|
|
636
|
+
/** pick {@link NzDrawerOptions.nzOnCancel} and omit this option */
|
|
637
|
+
const { nzOnCancel, ...componentOption } = this.options;
|
|
638
|
+
this.overlayRef = this.overlay.create();
|
|
639
|
+
this.drawerRef = this.overlayRef.attach(new ComponentPortal(NzDrawerComponent)).instance;
|
|
640
|
+
this.updateOptions(componentOption);
|
|
641
|
+
// Prevent repeatedly open drawer when tap focus element.
|
|
642
|
+
this.drawerRef.savePreviouslyFocusedElement();
|
|
643
|
+
this.drawerRef.nzOnViewInit.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
644
|
+
this.drawerRef.open();
|
|
645
|
+
});
|
|
646
|
+
this.drawerRef.nzOnClose.subscribe(() => {
|
|
647
|
+
if (nzOnCancel) {
|
|
648
|
+
nzOnCancel().then(canClose => {
|
|
649
|
+
if (canClose !== false) {
|
|
650
|
+
this.drawerRef.close();
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
else {
|
|
655
|
+
this.drawerRef.close();
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
this.drawerRef.afterClose.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
659
|
+
this.overlayRef.dispose();
|
|
660
|
+
this.drawerRef = null;
|
|
661
|
+
this.unsubscribe$.next();
|
|
662
|
+
this.unsubscribe$.complete();
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
getInstance() {
|
|
666
|
+
return this.drawerRef;
|
|
667
|
+
}
|
|
668
|
+
updateOptions(options) {
|
|
669
|
+
Object.assign(this.drawerRef, options);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
class NzDrawerService {
|
|
673
|
+
overlay;
|
|
674
|
+
constructor(overlay) {
|
|
675
|
+
this.overlay = overlay;
|
|
676
|
+
}
|
|
677
|
+
create(options) {
|
|
678
|
+
return new DrawerBuilderForService(this.overlay, options).getInstance();
|
|
679
|
+
}
|
|
680
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerService, deps: [{ token: i2.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
681
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerService });
|
|
682
|
+
}
|
|
683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerService, decorators: [{
|
|
684
|
+
type: Injectable
|
|
685
|
+
}], ctorParameters: () => [{ type: i2.Overlay }] });
|
|
686
|
+
|
|
687
|
+
class NzDrawerModule {
|
|
688
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
689
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerModule, imports: [NzDrawerComponent, NzDrawerContentDirective], exports: [NzDrawerComponent, NzDrawerContentDirective] });
|
|
690
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerModule, providers: [NzDrawerService], imports: [NzDrawerComponent] });
|
|
691
|
+
}
|
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NzDrawerModule, decorators: [{
|
|
693
|
+
type: NgModule,
|
|
694
|
+
args: [{
|
|
695
|
+
imports: [NzDrawerComponent, NzDrawerContentDirective],
|
|
696
|
+
providers: [NzDrawerService],
|
|
697
|
+
exports: [NzDrawerComponent, NzDrawerContentDirective]
|
|
698
|
+
}]
|
|
699
|
+
}] });
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Generated bundle index. Do not edit.
|
|
703
|
+
*/
|
|
704
|
+
|
|
705
|
+
export { DRAWER_ANIMATE_DURATION, DRAWER_DEFAULT_SIZE, DRAWER_LARGE_SIZE, DrawerBuilderForService, NZ_DRAWER_DATA, NzDrawerComponent, NzDrawerContentDirective, NzDrawerModule, NzDrawerRef, NzDrawerService };
|
|
706
|
+
//# sourceMappingURL=components.drawer.mjs.map
|