@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.
Files changed (411) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/components/drawer/index.d.ts +1 -0
  4. package/components/drawer/src/drawer-content.directive.d.ts +9 -0
  5. package/components/drawer/src/drawer-options.d.ts +41 -0
  6. package/components/drawer/src/drawer-ref.d.ts +27 -0
  7. package/components/drawer/src/drawer.component.d.ts +120 -0
  8. package/components/drawer/src/drawer.module.d.ts +8 -0
  9. package/components/drawer/src/drawer.service.d.ts +22 -0
  10. package/components/drawer/src/public_api.d.ts +6 -0
  11. package/components/empty/index.d.ts +1 -0
  12. package/components/empty/src/default/index.d.ts +13 -0
  13. package/components/empty/src/index.module.d.ts +7 -0
  14. package/components/empty/src/public_api.d.ts +2 -0
  15. package/components/index.d.ts +2 -0
  16. package/fesm2022/components.drawer.mjs +706 -0
  17. package/fesm2022/components.drawer.mjs.map +1 -0
  18. package/fesm2022/components.empty.mjs +54 -0
  19. package/fesm2022/components.empty.mjs.map +1 -0
  20. package/fesm2022/components.mjs +750 -0
  21. package/fesm2022/components.mjs.map +1 -0
  22. package/fesm2022/config.content.mjs +4464 -0
  23. package/fesm2022/config.content.mjs.map +1 -0
  24. package/fesm2022/config.form.mjs +2190 -0
  25. package/fesm2022/config.form.mjs.map +1 -0
  26. package/fesm2022/config.header.mjs +2736 -0
  27. package/fesm2022/config.header.mjs.map +1 -0
  28. package/fesm2022/config.list.mjs +7192 -0
  29. package/fesm2022/config.list.mjs.map +1 -0
  30. package/fesm2022/config.page-dialog.mjs +639 -0
  31. package/fesm2022/config.page-dialog.mjs.map +1 -0
  32. package/fesm2022/config.page.mjs +53 -0
  33. package/fesm2022/config.page.mjs.map +1 -0
  34. package/fesm2022/ebuilding-base.mjs +11 -0
  35. package/fesm2022/ebuilding-base.mjs.map +1 -0
  36. package/fesm2022/pipe.builtin.mjs +36 -0
  37. package/fesm2022/pipe.builtin.mjs.map +1 -0
  38. package/fesm2022/pipe.category.mjs +43 -0
  39. package/fesm2022/pipe.category.mjs.map +1 -0
  40. package/fesm2022/pipe.datatype.mjs +38 -0
  41. package/fesm2022/pipe.datatype.mjs.map +1 -0
  42. package/fesm2022/pipe.date.format.mjs +46 -0
  43. package/fesm2022/pipe.date.format.mjs.map +1 -0
  44. package/fesm2022/pipe.disabled.mjs +38 -0
  45. package/fesm2022/pipe.disabled.mjs.map +1 -0
  46. package/fesm2022/pipe.email.state.mjs +36 -0
  47. package/fesm2022/pipe.email.state.mjs.map +1 -0
  48. package/fesm2022/pipe.empty.mjs +35 -0
  49. package/fesm2022/pipe.empty.mjs.map +1 -0
  50. package/fesm2022/pipe.eval.mjs +43 -0
  51. package/fesm2022/pipe.eval.mjs.map +1 -0
  52. package/fesm2022/pipe.flow.eval.mjs +36 -0
  53. package/fesm2022/pipe.flow.eval.mjs.map +1 -0
  54. package/fesm2022/pipe.flow.mjs +45 -0
  55. package/fesm2022/pipe.flow.mjs.map +1 -0
  56. package/fesm2022/pipe.flow.node.mjs +28 -0
  57. package/fesm2022/pipe.flow.node.mjs.map +1 -0
  58. package/fesm2022/pipe.flow.operation.mjs +52 -0
  59. package/fesm2022/pipe.flow.operation.mjs.map +1 -0
  60. package/fesm2022/pipe.flow.state.mjs +36 -0
  61. package/fesm2022/pipe.flow.state.mjs.map +1 -0
  62. package/fesm2022/pipe.flow.type.mjs +36 -0
  63. package/fesm2022/pipe.flow.type.mjs.map +1 -0
  64. package/fesm2022/pipe.formType.mjs +35 -0
  65. package/fesm2022/pipe.formType.mjs.map +1 -0
  66. package/fesm2022/pipe.grade.type.mjs +38 -0
  67. package/fesm2022/pipe.grade.type.mjs.map +1 -0
  68. package/fesm2022/pipe.indicator.mjs +43 -0
  69. package/fesm2022/pipe.indicator.mjs.map +1 -0
  70. package/fesm2022/pipe.item.mjs +38 -0
  71. package/fesm2022/pipe.item.mjs.map +1 -0
  72. package/fesm2022/pipe.moment.mjs +37 -0
  73. package/fesm2022/pipe.moment.mjs.map +1 -0
  74. package/fesm2022/pipe.msg.type.mjs +55 -0
  75. package/fesm2022/pipe.msg.type.mjs.map +1 -0
  76. package/fesm2022/pipe.number.mjs +34 -0
  77. package/fesm2022/pipe.number.mjs.map +1 -0
  78. package/fesm2022/pipe.objtype.mjs +37 -0
  79. package/fesm2022/pipe.objtype.mjs.map +1 -0
  80. package/fesm2022/pipe.okr.plan.mjs +46 -0
  81. package/fesm2022/pipe.okr.plan.mjs.map +1 -0
  82. package/fesm2022/pipe.okr.unit.mjs +38 -0
  83. package/fesm2022/pipe.okr.unit.mjs.map +1 -0
  84. package/fesm2022/pipe.operation.mjs +41 -0
  85. package/fesm2022/pipe.operation.mjs.map +1 -0
  86. package/fesm2022/pipe.period.emp.mjs +43 -0
  87. package/fesm2022/pipe.period.emp.mjs.map +1 -0
  88. package/fesm2022/pipe.period.state.mjs +43 -0
  89. package/fesm2022/pipe.period.state.mjs.map +1 -0
  90. package/fesm2022/pipe.plan.state.mjs +46 -0
  91. package/fesm2022/pipe.plan.state.mjs.map +1 -0
  92. package/fesm2022/pipe.range.mjs +25 -0
  93. package/fesm2022/pipe.range.mjs.map +1 -0
  94. package/fesm2022/pipe.removehtml.mjs +26 -0
  95. package/fesm2022/pipe.removehtml.mjs.map +1 -0
  96. package/fesm2022/pipe.result.mjs +56 -0
  97. package/fesm2022/pipe.result.mjs.map +1 -0
  98. package/fesm2022/pipe.safehtml.mjs +34 -0
  99. package/fesm2022/pipe.safehtml.mjs.map +1 -0
  100. package/fesm2022/pipe.state.mjs +55 -0
  101. package/fesm2022/pipe.state.mjs.map +1 -0
  102. package/fesm2022/pipe.table.type.mjs +38 -0
  103. package/fesm2022/pipe.table.type.mjs.map +1 -0
  104. package/fesm2022/pipe.task.state.mjs +43 -0
  105. package/fesm2022/pipe.task.state.mjs.map +1 -0
  106. package/fesm2022/pipe.templatetype.mjs +35 -0
  107. package/fesm2022/pipe.templatetype.mjs.map +1 -0
  108. package/fesm2022/pipe.valid.mjs +36 -0
  109. package/fesm2022/pipe.valid.mjs.map +1 -0
  110. package/fesm2022/pipe.value.method.mjs +46 -0
  111. package/fesm2022/pipe.value.method.mjs.map +1 -0
  112. package/fesm2022/pipe.write.state.mjs +45 -0
  113. package/fesm2022/pipe.write.state.mjs.map +1 -0
  114. package/fesm2022/pipe.yesNo.mjs +52 -0
  115. package/fesm2022/pipe.yesNo.mjs.map +1 -0
  116. package/fesm2022/shared.config.mjs +2190 -0
  117. package/fesm2022/shared.config.mjs.map +1 -0
  118. package/fesm2022/shared.srv.mjs +2853 -0
  119. package/fesm2022/shared.srv.mjs.map +1 -0
  120. package/fesm2022/shared.util.mjs +4676 -0
  121. package/fesm2022/shared.util.mjs.map +1 -0
  122. package/fesm2022/shared.var.mjs +597 -0
  123. package/fesm2022/shared.var.mjs.map +1 -0
  124. package/fesm2022/sharedPipe.mjs +1387 -0
  125. package/fesm2022/sharedPipe.mjs.map +1 -0
  126. package/fesm2022/srv.base-dialog.service.mjs +272 -0
  127. package/fesm2022/srv.base-dialog.service.mjs.map +1 -0
  128. package/fesm2022/srv.base-list.service.mjs +124 -0
  129. package/fesm2022/srv.base-list.service.mjs.map +1 -0
  130. package/fesm2022/srv.base-table.service.mjs +271 -0
  131. package/fesm2022/srv.base-table.service.mjs.map +1 -0
  132. package/fesm2022/srv.base-title.service.mjs +52 -0
  133. package/fesm2022/srv.base-title.service.mjs.map +1 -0
  134. package/fesm2022/srv.base-tree.service.mjs +53 -0
  135. package/fesm2022/srv.base-tree.service.mjs.map +1 -0
  136. package/fesm2022/srv.basePage.mjs +71 -0
  137. package/fesm2022/srv.basePage.mjs.map +1 -0
  138. package/fesm2022/srv.commApi.service.mjs +626 -0
  139. package/fesm2022/srv.commApi.service.mjs.map +1 -0
  140. package/fesm2022/srv.deon.util.mjs +272 -0
  141. package/fesm2022/srv.deon.util.mjs.map +1 -0
  142. package/fesm2022/srv.deon2.util.mjs +190 -0
  143. package/fesm2022/srv.deon2.util.mjs.map +1 -0
  144. package/fesm2022/srv.dialog.token.mjs +10 -0
  145. package/fesm2022/srv.dialog.token.mjs.map +1 -0
  146. package/fesm2022/srv.field-source.service.mjs +454 -0
  147. package/fesm2022/srv.field-source.service.mjs.map +1 -0
  148. package/fesm2022/srv.field.init.mjs +697 -0
  149. package/fesm2022/srv.field.init.mjs.map +1 -0
  150. package/fesm2022/srv.global.event.mjs +50 -0
  151. package/fesm2022/srv.global.event.mjs.map +1 -0
  152. package/fesm2022/srv.layout-detail.service.mjs +60 -0
  153. package/fesm2022/srv.layout-detail.service.mjs.map +1 -0
  154. package/fesm2022/srv.layout.service.mjs +65 -0
  155. package/fesm2022/srv.layout.service.mjs.map +1 -0
  156. package/fesm2022/srv.listService.mjs +319 -0
  157. package/fesm2022/srv.listService.mjs.map +1 -0
  158. package/fesm2022/srv.window.service.mjs +34 -0
  159. package/fesm2022/srv.window.service.mjs.map +1 -0
  160. package/fesm2022/util.base64.mjs +85 -0
  161. package/fesm2022/util.base64.mjs.map +1 -0
  162. package/fesm2022/util.comm.attendance.mjs +207 -0
  163. package/fesm2022/util.comm.attendance.mjs.map +1 -0
  164. package/fesm2022/util.comm.ckeditor.mjs +32 -0
  165. package/fesm2022/util.comm.ckeditor.mjs.map +1 -0
  166. package/fesm2022/util.comm.colors.mjs +21 -0
  167. package/fesm2022/util.comm.colors.mjs.map +1 -0
  168. package/fesm2022/util.comm.eca.mjs +89 -0
  169. package/fesm2022/util.comm.eca.mjs.map +1 -0
  170. package/fesm2022/util.comm.fly.mjs +210 -0
  171. package/fesm2022/util.comm.fly.mjs.map +1 -0
  172. package/fesm2022/util.comm.kpi.mjs +118 -0
  173. package/fesm2022/util.comm.kpi.mjs.map +1 -0
  174. package/fesm2022/util.comm.leave.mjs +271 -0
  175. package/fesm2022/util.comm.leave.mjs.map +1 -0
  176. package/fesm2022/util.comm.menu.mjs +132 -0
  177. package/fesm2022/util.comm.menu.mjs.map +1 -0
  178. package/fesm2022/util.comm.okr.mjs +204 -0
  179. package/fesm2022/util.comm.okr.mjs.map +1 -0
  180. package/fesm2022/util.comm.overtime.mjs +69 -0
  181. package/fesm2022/util.comm.overtime.mjs.map +1 -0
  182. package/fesm2022/util.comm.setting.mjs +211 -0
  183. package/fesm2022/util.comm.setting.mjs.map +1 -0
  184. package/fesm2022/util.comm.shebao.mjs +57 -0
  185. package/fesm2022/util.comm.shebao.mjs.map +1 -0
  186. package/fesm2022/util.comm.workflow.mjs +178 -0
  187. package/fesm2022/util.comm.workflow.mjs.map +1 -0
  188. package/fesm2022/util.common.mjs +637 -0
  189. package/fesm2022/util.common.mjs.map +1 -0
  190. package/fesm2022/util.encryption.mjs +49 -0
  191. package/fesm2022/util.encryption.mjs.map +1 -0
  192. package/fesm2022/util.guid.mjs +57 -0
  193. package/fesm2022/util.guid.mjs.map +1 -0
  194. package/fesm2022/util.guid.number.mjs +68 -0
  195. package/fesm2022/util.guid.number.mjs.map +1 -0
  196. package/fesm2022/util.menus.mjs +33 -0
  197. package/fesm2022/util.menus.mjs.map +1 -0
  198. package/fesm2022/util.operation.mjs +193 -0
  199. package/fesm2022/util.operation.mjs.map +1 -0
  200. package/fesm2022/util.static.mjs +1542 -0
  201. package/fesm2022/util.static.mjs.map +1 -0
  202. package/fesm2022/util.tool.mjs +46 -0
  203. package/fesm2022/util.tool.mjs.map +1 -0
  204. package/fesm2022/util.validation.mjs +67 -0
  205. package/fesm2022/util.validation.mjs.map +1 -0
  206. package/fesm2022/util.workflow.mjs +128 -0
  207. package/fesm2022/util.workflow.mjs.map +1 -0
  208. package/fesm2022/util.yuan.mjs +18 -0
  209. package/fesm2022/util.yuan.mjs.map +1 -0
  210. package/fesm2022/var.comm.constant.mjs +37 -0
  211. package/fesm2022/var.comm.constant.mjs.map +1 -0
  212. package/fesm2022/var.shared.constant.mjs +237 -0
  213. package/fesm2022/var.shared.constant.mjs.map +1 -0
  214. package/fesm2022/var.shared.interface.mjs +51 -0
  215. package/fesm2022/var.shared.interface.mjs.map +1 -0
  216. package/fesm2022/var.shared.variable.mjs +168 -0
  217. package/fesm2022/var.shared.variable.mjs.map +1 -0
  218. package/index.d.ts +6 -0
  219. package/package.json +420 -0
  220. package/shared.config/form/admin/attendance.d.ts +1 -0
  221. package/shared.config/form/admin/personnel.d.ts +1 -0
  222. package/shared.config/form/admin/system.d.ts +1 -0
  223. package/shared.config/form/gram/kpi.d.ts +1 -0
  224. package/shared.config/form/index.d.ts +2 -0
  225. package/shared.config/form/paas/module.d.ts +1 -0
  226. package/shared.config/form/payroll/shebao.d.ts +1 -0
  227. package/shared.config/index.d.ts +1 -0
  228. package/shared.config/list/content/admin/system.code.d.ts +1 -0
  229. package/shared.config/list/content/admin/system.log.d.ts +1 -0
  230. package/shared.config/list/content/admin/system.role.d.ts +1 -0
  231. package/shared.config/list/content/admin/system.source.d.ts +1 -0
  232. package/shared.config/list/content/admin/system.tenant.d.ts +1 -0
  233. package/shared.config/list/content/admin/system.user.d.ts +1 -0
  234. package/shared.config/list/content/fly/admin/device.d.ts +1 -0
  235. package/shared.config/list/content/fly/admin/dock.d.ts +1 -0
  236. package/shared.config/list/content/fly/admin/healthy.d.ts +1 -0
  237. package/shared.config/list/content/fly/admin/system.d.ts +1 -0
  238. package/shared.config/list/content/fly/admin/user.d.ts +1 -0
  239. package/shared.config/list/content/fly/work/ai.d.ts +1 -0
  240. package/shared.config/list/content/fly/work/history.d.ts +1 -0
  241. package/shared.config/list/content/fly/work/order.d.ts +1 -0
  242. package/shared.config/list/content/fly/work/product.d.ts +1 -0
  243. package/shared.config/list/content/fly/work/task.d.ts +1 -0
  244. package/shared.config/list/content/index.d.ts +38 -0
  245. package/shared.config/list/content/paas/card.d.ts +1 -0
  246. package/shared.config/list/content/paas/module.d.ts +1 -0
  247. package/shared.config/list/content/paas/permission.d.ts +1 -0
  248. package/shared.config/list/content/paas/rule.d.ts +1 -0
  249. package/shared.config/list/content/paas/setting.d.ts +1 -0
  250. package/shared.config/list/content/personnel/position.d.ts +1 -0
  251. package/shared.config/list/content/workflow/workflow.d.ts +1 -0
  252. package/shared.config/list/header/admin/system.d.ts +1 -0
  253. package/shared.config/list/header/dialog/default.d.ts +1 -0
  254. package/shared.config/list/header/fly/admin/device.d.ts +1 -0
  255. package/shared.config/list/header/fly/admin/dock.d.ts +1 -0
  256. package/shared.config/list/header/fly/admin/healthy.d.ts +1 -0
  257. package/shared.config/list/header/fly/admin/system.d.ts +1 -0
  258. package/shared.config/list/header/fly/admin/user.d.ts +1 -0
  259. package/shared.config/list/header/fly/work/ai.d.ts +1 -0
  260. package/shared.config/list/header/fly/work/history.d.ts +1 -0
  261. package/shared.config/list/header/fly/work/order.d.ts +1 -0
  262. package/shared.config/list/header/fly/work/product.d.ts +1 -0
  263. package/shared.config/list/header/fly/work/task.d.ts +1 -0
  264. package/shared.config/list/header/index.d.ts +1 -0
  265. package/shared.config/list/header/paas.d.ts +1 -0
  266. package/shared.config/list/header/personnel/position.d.ts +1 -0
  267. package/shared.config/list/header/wk/workflow.d.ts +1 -0
  268. package/shared.config/list/index.d.ts +2 -0
  269. package/shared.config/page/README.md +3 -0
  270. package/shared.config/page/admin/index.d.ts +1 -0
  271. package/shared.config/page/admin/system.source.d.ts +1 -0
  272. package/shared.config/page/index.d.ts +1 -0
  273. package/shared.config/page-dialog/admin/index.d.ts +1 -0
  274. package/shared.config/page-dialog/admin/system.d.ts +1 -0
  275. package/shared.config/page-dialog/index.d.ts +3 -0
  276. package/shared.config/page-dialog/paas/index.d.ts +1 -0
  277. package/shared.config/page-dialog/paas/module.d.ts +1 -0
  278. package/shared.config/page-dialog/payroll/index.d.ts +1 -0
  279. package/shared.config/page-dialog/payroll/main.d.ts +1 -0
  280. package/shared.pipe/builtin/builtin.pipe.d.ts +8 -0
  281. package/shared.pipe/builtin/index.d.ts +1 -0
  282. package/shared.pipe/category/category.pipe.d.ts +8 -0
  283. package/shared.pipe/category/index.d.ts +1 -0
  284. package/shared.pipe/datatype/datatype.pipe.d.ts +8 -0
  285. package/shared.pipe/datatype/index.d.ts +1 -0
  286. package/shared.pipe/date.format/date.pipe.d.ts +8 -0
  287. package/shared.pipe/date.format/index.d.ts +1 -0
  288. package/shared.pipe/disabled/disabled.pipe.d.ts +8 -0
  289. package/shared.pipe/disabled/index.d.ts +1 -0
  290. package/shared.pipe/email.state/email.pipe.d.ts +8 -0
  291. package/shared.pipe/email.state/index.d.ts +1 -0
  292. package/shared.pipe/empty/empty.pipe.d.ts +8 -0
  293. package/shared.pipe/empty/index.d.ts +1 -0
  294. package/shared.pipe/eval/eval.pipe.d.ts +8 -0
  295. package/shared.pipe/eval/index.d.ts +1 -0
  296. package/shared.pipe/flow/flow.pipe.d.ts +8 -0
  297. package/shared.pipe/flow/index.d.ts +1 -0
  298. package/shared.pipe/flow.eval/flow.pipe.d.ts +8 -0
  299. package/shared.pipe/flow.eval/index.d.ts +1 -0
  300. package/shared.pipe/flow.node/flow.pipe.d.ts +8 -0
  301. package/shared.pipe/flow.node/index.d.ts +1 -0
  302. package/shared.pipe/flow.operation/flow.pipe.d.ts +8 -0
  303. package/shared.pipe/flow.operation/index.d.ts +1 -0
  304. package/shared.pipe/flow.state/flow.pipe.d.ts +8 -0
  305. package/shared.pipe/flow.state/index.d.ts +1 -0
  306. package/shared.pipe/flow.type/flow.pipe.d.ts +8 -0
  307. package/shared.pipe/flow.type/index.d.ts +1 -0
  308. package/shared.pipe/formType/form.pipe.d.ts +8 -0
  309. package/shared.pipe/formType/index.d.ts +1 -0
  310. package/shared.pipe/grade.type/grade.pipe.d.ts +8 -0
  311. package/shared.pipe/grade.type/index.d.ts +1 -0
  312. package/shared.pipe/index.d.ts +41 -0
  313. package/shared.pipe/index.module.d.ts +47 -0
  314. package/shared.pipe/indicator/index.d.ts +1 -0
  315. package/shared.pipe/indicator/indicator.pipe.d.ts +8 -0
  316. package/shared.pipe/item/index.d.ts +1 -0
  317. package/shared.pipe/item/item.pipe.d.ts +8 -0
  318. package/shared.pipe/moment/index.d.ts +1 -0
  319. package/shared.pipe/moment/moment.pipe.d.ts +16 -0
  320. package/shared.pipe/msg.type/index.d.ts +1 -0
  321. package/shared.pipe/msg.type/msg.pipe.d.ts +8 -0
  322. package/shared.pipe/number/index.d.ts +1 -0
  323. package/shared.pipe/number/number.pipe.d.ts +8 -0
  324. package/shared.pipe/objtype/index.d.ts +1 -0
  325. package/shared.pipe/objtype/obj.pipe.d.ts +8 -0
  326. package/shared.pipe/okr.plan/index.d.ts +1 -0
  327. package/shared.pipe/okr.plan/okr.pipe.d.ts +8 -0
  328. package/shared.pipe/okr.unit/index.d.ts +1 -0
  329. package/shared.pipe/okr.unit/okr.pipe.d.ts +8 -0
  330. package/shared.pipe/operation/index.d.ts +1 -0
  331. package/shared.pipe/operation/operation.pipe.d.ts +8 -0
  332. package/shared.pipe/period.emp/index.d.ts +1 -0
  333. package/shared.pipe/period.emp/period.pipe.d.ts +8 -0
  334. package/shared.pipe/period.state/index.d.ts +1 -0
  335. package/shared.pipe/period.state/period.pipe.d.ts +8 -0
  336. package/shared.pipe/plan.state/index.d.ts +1 -0
  337. package/shared.pipe/plan.state/plan.pipe.d.ts +8 -0
  338. package/shared.pipe/range/index.d.ts +1 -0
  339. package/shared.pipe/range/range.pipe.d.ts +8 -0
  340. package/shared.pipe/removehtml/index.d.ts +1 -0
  341. package/shared.pipe/removehtml/removehtml.pipe.d.ts +8 -0
  342. package/shared.pipe/result/index.d.ts +1 -0
  343. package/shared.pipe/result/result.pipe.d.ts +8 -0
  344. package/shared.pipe/safehtml/index.d.ts +1 -0
  345. package/shared.pipe/safehtml/safehtml.pipe.d.ts +10 -0
  346. package/shared.pipe/state/index.d.ts +1 -0
  347. package/shared.pipe/state/state.pipe.d.ts +8 -0
  348. package/shared.pipe/table.type/index.d.ts +1 -0
  349. package/shared.pipe/table.type/table.pipe.d.ts +8 -0
  350. package/shared.pipe/task.state/index.d.ts +1 -0
  351. package/shared.pipe/task.state/task.pipe.d.ts +8 -0
  352. package/shared.pipe/templatetype/index.d.ts +1 -0
  353. package/shared.pipe/templatetype/template.pipe.d.ts +8 -0
  354. package/shared.pipe/valid/index.d.ts +1 -0
  355. package/shared.pipe/valid/valid.pipe.d.ts +8 -0
  356. package/shared.pipe/value.method/index.d.ts +1 -0
  357. package/shared.pipe/value.method/value.pipe.d.ts +8 -0
  358. package/shared.pipe/write.state/index.d.ts +1 -0
  359. package/shared.pipe/write.state/write.pipe.d.ts +9 -0
  360. package/shared.pipe/yesNo/index.d.ts +1 -0
  361. package/shared.pipe/yesNo/yesNo.pipe.d.ts +8 -0
  362. package/shared.srv/base-dialog.service/index.d.ts +39 -0
  363. package/shared.srv/base-list.service/index.d.ts +49 -0
  364. package/shared.srv/base-table.service/index.d.ts +77 -0
  365. package/shared.srv/base-title.service/index.d.ts +16 -0
  366. package/shared.srv/base-tree.service/index.d.ts +30 -0
  367. package/shared.srv/basePage/index.d.ts +33 -0
  368. package/shared.srv/commApi.service/index.d.ts +124 -0
  369. package/shared.srv/deon.util/index.d.ts +25 -0
  370. package/shared.srv/deon2.util/index.d.ts +14 -0
  371. package/shared.srv/dialog.token/index.d.ts +5 -0
  372. package/shared.srv/field-source.service/index.d.ts +67 -0
  373. package/shared.srv/field.init/index.d.ts +36 -0
  374. package/shared.srv/global.event/index.d.ts +13 -0
  375. package/shared.srv/index.d.ts +16 -0
  376. package/shared.srv/layout-detail.service/index.d.ts +23 -0
  377. package/shared.srv/layout.service/index.d.ts +28 -0
  378. package/shared.srv/listService/index.d.ts +38 -0
  379. package/shared.srv/window.service/index.d.ts +8 -0
  380. package/shared.util/base64/index.d.ts +6 -0
  381. package/shared.util/comm.attendance/index.d.ts +74 -0
  382. package/shared.util/comm.ckeditor/index.d.ts +9 -0
  383. package/shared.util/comm.colors/index.d.ts +1 -0
  384. package/shared.util/comm.eca/index.d.ts +16 -0
  385. package/shared.util/comm.fly/index.d.ts +60 -0
  386. package/shared.util/comm.kpi/index.d.ts +21 -0
  387. package/shared.util/comm.leave/index.d.ts +79 -0
  388. package/shared.util/comm.menu/index.d.ts +4 -0
  389. package/shared.util/comm.okr/index.d.ts +61 -0
  390. package/shared.util/comm.overtime/index.d.ts +25 -0
  391. package/shared.util/comm.setting/index.d.ts +54 -0
  392. package/shared.util/comm.shebao/index.d.ts +16 -0
  393. package/shared.util/comm.workflow/index.d.ts +24 -0
  394. package/shared.util/common/index.d.ts +60 -0
  395. package/shared.util/encryption/index.d.ts +12 -0
  396. package/shared.util/guid/index.d.ts +16 -0
  397. package/shared.util/guid.number/index.d.ts +16 -0
  398. package/shared.util/index.d.ts +25 -0
  399. package/shared.util/menus/index.d.ts +1 -0
  400. package/shared.util/operation/index.d.ts +13 -0
  401. package/shared.util/static/index.d.ts +284 -0
  402. package/shared.util/tool/index.d.ts +6 -0
  403. package/shared.util/validation/index.d.ts +40 -0
  404. package/shared.util/workflow/index.d.ts +12 -0
  405. package/shared.util/yuan/index.d.ts +6 -0
  406. package/shared.var/comm.constant/index.d.ts +24 -0
  407. package/shared.var/index.d.ts +4 -0
  408. package/shared.var/shared.constant/index.d.ts +151 -0
  409. package/shared.var/shared.interface/index.d.ts +58 -0
  410. package/shared.var/shared.variable/index.d.ts +116 -0
  411. package/style/variable.less +238 -0
@@ -0,0 +1,1387 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+ import { FieldType, EmailState, FormType, ResultRating, AttributeItem, UnitData, TableType } from '@ebuilding/base/shared.util/static';
4
+ import { WorkFlowState, EvalState, WorkFlowType } from '@ebuilding/base/shared.util/workflow';
5
+ import moment from 'moment';
6
+ import { getOperationText } from '@ebuilding/base/shared.util/operation';
7
+ import * as i1 from '@angular/platform-browser';
8
+ import { CommonModule } from '@angular/common';
9
+
10
+ class BuiltinPipe {
11
+ constructor() { }
12
+ transform(d, args) {
13
+ let res = '';
14
+ switch (d) {
15
+ case true:
16
+ case 'true':
17
+ res = '内置';
18
+ break;
19
+ case false:
20
+ case 'false':
21
+ res = '自定义';
22
+ break;
23
+ }
24
+ return res;
25
+ }
26
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BuiltinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
27
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: BuiltinPipe, isStandalone: true, name: "builtin" });
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BuiltinPipe, decorators: [{
30
+ type: Pipe,
31
+ args: [{
32
+ name: 'builtin',
33
+ standalone: true,
34
+ }]
35
+ }], ctorParameters: () => [] });
36
+
37
+ class CategoryPipe {
38
+ constructor() { }
39
+ transform(d, args) {
40
+ let res = '';
41
+ if (d == null || d == '') {
42
+ return res;
43
+ }
44
+ d = d.toLocaleLowerCase();
45
+ switch (d) {
46
+ case 'str':
47
+ res = '战略';
48
+ break;
49
+ case 'team':
50
+ res = '团队';
51
+ break;
52
+ case 'personal':
53
+ res = '个人';
54
+ break;
55
+ default:
56
+ break;
57
+ }
58
+ return res;
59
+ }
60
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CategoryPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
61
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: CategoryPipe, isStandalone: true, name: "category" });
62
+ }
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CategoryPipe, decorators: [{
64
+ type: Pipe,
65
+ args: [{
66
+ name: 'category',
67
+ standalone: true,
68
+ }]
69
+ }], ctorParameters: () => [] });
70
+
71
+ class DataTypePipe {
72
+ constructor() { }
73
+ transform(d, args) {
74
+ let res = '';
75
+ if (d) {
76
+ d = d.toLocaleLowerCase();
77
+ let list = FieldType().filter((item) => {
78
+ if (item.value.toLocaleLowerCase() == d) {
79
+ return item;
80
+ }
81
+ });
82
+ if (list != null && list.length > 0) {
83
+ res = list[0]['label'];
84
+ }
85
+ }
86
+ return res;
87
+ }
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DataTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
89
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DataTypePipe, isStandalone: true, name: "dateType" });
90
+ }
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DataTypePipe, decorators: [{
92
+ type: Pipe,
93
+ args: [{
94
+ name: 'dateType',
95
+ standalone: true,
96
+ }]
97
+ }], ctorParameters: () => [] });
98
+
99
+ class DateFormatPipe {
100
+ constructor() { }
101
+ transform(d, args) {
102
+ let res = '';
103
+ switch (d) {
104
+ case 'YYYY':
105
+ res = '年';
106
+ break;
107
+ case 'YYYYMM':
108
+ res = '年月';
109
+ break;
110
+ case 'YYYYMMDD':
111
+ res = '年月日';
112
+ break;
113
+ case 'YYYYMMDDHH':
114
+ res = '年月日时';
115
+ break;
116
+ case 'YYYYMMDDHHMM':
117
+ res = '年月日时分';
118
+ break;
119
+ case 'YYYYMMDDHHMMSS':
120
+ res = '年月日时分秒';
121
+ break;
122
+ }
123
+ return res;
124
+ }
125
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
126
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DateFormatPipe, isStandalone: true, name: "dateFormat" });
127
+ }
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DateFormatPipe, decorators: [{
129
+ type: Pipe,
130
+ args: [{
131
+ name: 'dateFormat',
132
+ standalone: true,
133
+ }]
134
+ }], ctorParameters: () => [] });
135
+
136
+ class DisabledPipe {
137
+ constructor() { }
138
+ transform(d, args) {
139
+ let res = '';
140
+ switch (d) {
141
+ case true:
142
+ case 1:
143
+ case "1":
144
+ res = '禁用';
145
+ break;
146
+ case false:
147
+ case 0:
148
+ case "0":
149
+ res = '启用';
150
+ break;
151
+ }
152
+ return res;
153
+ }
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
155
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: DisabledPipe, isStandalone: true, name: "disabled" });
156
+ }
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DisabledPipe, decorators: [{
158
+ type: Pipe,
159
+ args: [{
160
+ name: 'disabled',
161
+ standalone: true,
162
+ }]
163
+ }], ctorParameters: () => [] });
164
+
165
+ class EmailStatePipe {
166
+ constructor() { }
167
+ transform(d, args) {
168
+ let res = '';
169
+ if (d == null) {
170
+ return res;
171
+ }
172
+ let data = EmailState();
173
+ data.forEach((e) => {
174
+ if (e.value == d) {
175
+ res = e.label;
176
+ }
177
+ });
178
+ return res;
179
+ }
180
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EmailStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
181
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: EmailStatePipe, isStandalone: true, name: "email" });
182
+ }
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EmailStatePipe, decorators: [{
184
+ type: Pipe,
185
+ args: [{
186
+ name: 'email',
187
+ standalone: true,
188
+ }]
189
+ }], ctorParameters: () => [] });
190
+
191
+ class EmptyPipe {
192
+ constructor() { }
193
+ transform(d, args) {
194
+ if (d != undefined && d != null && d != '') {
195
+ return d;
196
+ }
197
+ else {
198
+ if (args) {
199
+ return args;
200
+ }
201
+ else {
202
+ return '/';
203
+ }
204
+ }
205
+ }
206
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
207
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: EmptyPipe, isStandalone: true, name: "empty" });
208
+ }
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EmptyPipe, decorators: [{
210
+ type: Pipe,
211
+ args: [{
212
+ name: 'empty',
213
+ standalone: true,
214
+ }]
215
+ }], ctorParameters: () => [] });
216
+
217
+ class EvalPipe {
218
+ constructor() { }
219
+ transform(d, args) {
220
+ let res = '';
221
+ if (d == null || d == '') {
222
+ return res;
223
+ }
224
+ switch (d) {
225
+ case 'SCORE':
226
+ res = '输入评估分数';
227
+ break;
228
+ case 'MATRIX':
229
+ res = '评估量表';
230
+ break;
231
+ case 'FORMULA':
232
+ res = '公式计算';
233
+ break;
234
+ default:
235
+ res = '--';
236
+ break;
237
+ }
238
+ return res;
239
+ }
240
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EvalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
241
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: EvalPipe, isStandalone: true, name: "eval" });
242
+ }
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EvalPipe, decorators: [{
244
+ type: Pipe,
245
+ args: [{
246
+ name: 'eval',
247
+ standalone: true,
248
+ }]
249
+ }], ctorParameters: () => [] });
250
+
251
+ class FlowPipe {
252
+ constructor() { }
253
+ transform(d, args) {
254
+ let res = '';
255
+ if (d == null) {
256
+ return res;
257
+ }
258
+ if (d.workflowDisabled == true) {
259
+ res = '--';
260
+ }
261
+ else {
262
+ let data = WorkFlowState();
263
+ data.unshift({
264
+ label: '未填写',
265
+ value: null,
266
+ });
267
+ data.forEach((e) => {
268
+ if (e.value == d.workflowState) {
269
+ res = e.label;
270
+ }
271
+ });
272
+ }
273
+ return res;
274
+ }
275
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
276
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FlowPipe, isStandalone: true, name: "flow" });
277
+ }
278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowPipe, decorators: [{
279
+ type: Pipe,
280
+ args: [{
281
+ name: 'flow',
282
+ standalone: true,
283
+ }]
284
+ }], ctorParameters: () => [] });
285
+
286
+ class FlowEvalPipe {
287
+ constructor() { }
288
+ transform(d, args) {
289
+ let res = '';
290
+ if (d == null || d == '') {
291
+ return '--';
292
+ }
293
+ d = d.toLocaleUpperCase();
294
+ EvalState().forEach((e) => {
295
+ if (e.value == d) {
296
+ res = `<label class="flow_${e.value}">${e.label}</label>`;
297
+ }
298
+ });
299
+ return res;
300
+ }
301
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowEvalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
302
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FlowEvalPipe, isStandalone: true, name: "flowEval" });
303
+ }
304
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowEvalPipe, decorators: [{
305
+ type: Pipe,
306
+ args: [{
307
+ name: 'flowEval',
308
+ standalone: true,
309
+ }]
310
+ }], ctorParameters: () => [] });
311
+
312
+ class FlowNodePipe {
313
+ constructor() { }
314
+ transform(d, args) {
315
+ if (d == true) {
316
+ return '已完成';
317
+ }
318
+ return '待处理';
319
+ }
320
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowNodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
321
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FlowNodePipe, isStandalone: true, name: "flowNode" });
322
+ }
323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowNodePipe, decorators: [{
324
+ type: Pipe,
325
+ args: [{
326
+ name: 'flowNode',
327
+ standalone: true,
328
+ }]
329
+ }], ctorParameters: () => [] });
330
+
331
+ class FlowOperationPipe {
332
+ constructor() { }
333
+ transform(d, args) {
334
+ let res = '';
335
+ if (d == null || d == '') {
336
+ return res;
337
+ }
338
+ d = d.toLocaleUpperCase();
339
+ switch (d) {
340
+ case 'SUBMIT':
341
+ res = '提交';
342
+ break;
343
+ case 'REVOKE':
344
+ res = '撤销';
345
+ break;
346
+ case 'RETURN':
347
+ res = '退回';
348
+ break;
349
+ case 'STOP':
350
+ res = '终止';
351
+ break;
352
+ case 'APPROVED':
353
+ res = '通过';
354
+ break;
355
+ case 'REJECTED':
356
+ res = '拒绝';
357
+ break;
358
+ default:
359
+ break;
360
+ }
361
+ return res;
362
+ }
363
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowOperationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
364
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FlowOperationPipe, isStandalone: true, name: "flowOperation" });
365
+ }
366
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowOperationPipe, decorators: [{
367
+ type: Pipe,
368
+ args: [{
369
+ name: 'flowOperation',
370
+ standalone: true,
371
+ }]
372
+ }], ctorParameters: () => [] });
373
+
374
+ class FlowStatePipe {
375
+ constructor() { }
376
+ transform(d, args) {
377
+ let res = '';
378
+ if (d == null || d == '') {
379
+ return '--';
380
+ }
381
+ d = d.toLocaleUpperCase();
382
+ WorkFlowState().forEach((e) => {
383
+ if (e.value == d) {
384
+ res = `<label class="flow_${e.value}">${e.label}</label>`;
385
+ }
386
+ });
387
+ return res;
388
+ }
389
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
390
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FlowStatePipe, isStandalone: true, name: "flowState" });
391
+ }
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowStatePipe, decorators: [{
393
+ type: Pipe,
394
+ args: [{
395
+ name: 'flowState',
396
+ standalone: true,
397
+ }]
398
+ }], ctorParameters: () => [] });
399
+
400
+ class FlowTypePipe {
401
+ constructor() { }
402
+ transform(d, args) {
403
+ let res = '';
404
+ if (d == null || d == '') {
405
+ return res;
406
+ }
407
+ d = d.toLocaleUpperCase();
408
+ WorkFlowType().forEach((e) => {
409
+ if (e.value == d) {
410
+ res = e.label;
411
+ }
412
+ });
413
+ return res;
414
+ }
415
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
416
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FlowTypePipe, isStandalone: true, name: "flowType" });
417
+ }
418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowTypePipe, decorators: [{
419
+ type: Pipe,
420
+ args: [{
421
+ name: 'flowType',
422
+ standalone: true,
423
+ }]
424
+ }], ctorParameters: () => [] });
425
+
426
+ class FormTypePipe {
427
+ constructor() { }
428
+ transform(d, args) {
429
+ let res = '';
430
+ if (d == null || d == '') {
431
+ return res;
432
+ }
433
+ FormType().forEach((e) => {
434
+ if (e.value == d) {
435
+ res = e.label;
436
+ }
437
+ });
438
+ return res;
439
+ }
440
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
441
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FormTypePipe, isStandalone: true, name: "formType" });
442
+ }
443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormTypePipe, decorators: [{
444
+ type: Pipe,
445
+ args: [{
446
+ name: 'formType',
447
+ standalone: true,
448
+ }]
449
+ }], ctorParameters: () => [] });
450
+
451
+ class GradeTypePipe {
452
+ constructor() { }
453
+ transform(d, args) {
454
+ let res = '';
455
+ if (d == null || d == '') {
456
+ return res;
457
+ }
458
+ let list = ResultRating();
459
+ if (list) {
460
+ list.forEach((item) => {
461
+ if (item.value == d) {
462
+ res = item.label;
463
+ }
464
+ });
465
+ }
466
+ return res;
467
+ }
468
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GradeTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
469
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GradeTypePipe, isStandalone: true, name: "gradeType" });
470
+ }
471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GradeTypePipe, decorators: [{
472
+ type: Pipe,
473
+ args: [{
474
+ name: 'gradeType',
475
+ standalone: true,
476
+ }]
477
+ }], ctorParameters: () => [] });
478
+
479
+ class IndicatorPipe {
480
+ constructor() { }
481
+ transform(d, args) {
482
+ let res = '';
483
+ if (d == null || d == '') {
484
+ return res;
485
+ }
486
+ switch (d) {
487
+ case 'KPI':
488
+ res = '考核指标';
489
+ break;
490
+ case 'BONUS':
491
+ res = '关键事项(加分)';
492
+ break;
493
+ case 'MINUS':
494
+ res = '关键事项(减分)';
495
+ break;
496
+ default:
497
+ res = '--';
498
+ break;
499
+ }
500
+ return res;
501
+ }
502
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IndicatorPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
503
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: IndicatorPipe, isStandalone: true, name: "indicator" });
504
+ }
505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: IndicatorPipe, decorators: [{
506
+ type: Pipe,
507
+ args: [{
508
+ name: 'indicator',
509
+ standalone: true,
510
+ }]
511
+ }], ctorParameters: () => [] });
512
+
513
+ class ItemPipe {
514
+ constructor() { }
515
+ transform(d, args) {
516
+ let res = '';
517
+ if (d) {
518
+ d = d.toLocaleUpperCase();
519
+ let list = AttributeItem().filter((item) => {
520
+ if (item.value.toLocaleUpperCase() == d) {
521
+ return item;
522
+ }
523
+ });
524
+ if (list != null && list.length > 0) {
525
+ res = list[0]['label'];
526
+ }
527
+ }
528
+ return res;
529
+ }
530
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
531
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ItemPipe, isStandalone: true, name: "item" });
532
+ }
533
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ItemPipe, decorators: [{
534
+ type: Pipe,
535
+ args: [{
536
+ name: 'item',
537
+ standalone: true,
538
+ }]
539
+ }], ctorParameters: () => [] });
540
+
541
+ /**
542
+ * 格式化日期
543
+ *
544
+ * {{ item.applyDate | moment: ['YYYY/MM/DD'] }}
545
+ * @export
546
+ * @class MomentPipe
547
+ * @implements {PipeTransform}
548
+ */
549
+ class MomentPipe {
550
+ transform(d, args) {
551
+ // utc add 8 hours into beijing
552
+ if (d == '' || d == null)
553
+ return '';
554
+ let rv = moment(d).format(args[0]);
555
+ return rv;
556
+ }
557
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MomentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
558
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: MomentPipe, isStandalone: true, name: "moment" });
559
+ }
560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MomentPipe, decorators: [{
561
+ type: Pipe,
562
+ args: [{
563
+ name: 'moment',
564
+ standalone: true
565
+ }]
566
+ }] });
567
+
568
+ class MsgTypePipe {
569
+ constructor() { }
570
+ transform(d, arg) {
571
+ let res = '';
572
+ let className = '';
573
+ d = d.toLocaleUpperCase();
574
+ switch (d) {
575
+ case 'OBJECTIVE_GIVE':
576
+ res = '点赞目标';
577
+ className = 'message_give';
578
+ break;
579
+ case 'OBJECTIVE_COMMENT':
580
+ res = '评论目标';
581
+ className = 'message_comment';
582
+ break;
583
+ case 'OBJECTIVE_FOLLOW':
584
+ res = '跟进目标提醒';
585
+ className = 'message_follow';
586
+ break;
587
+ case 'OBJECTIVE_PUSH':
588
+ res = '催办对齐目标';
589
+ className = 'message_push';
590
+ break;
591
+ case 'OBJECTIVE_OWNER':
592
+ res = '调整目标负责人';
593
+ className = 'message_owner';
594
+ break;
595
+ default:
596
+ break;
597
+ }
598
+ if (arg && arg == 'tag') {
599
+ res = `<div class="${className}">${res}</div>`;
600
+ }
601
+ return res;
602
+ }
603
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MsgTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
604
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: MsgTypePipe, isStandalone: true, name: "msgType" });
605
+ }
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MsgTypePipe, decorators: [{
607
+ type: Pipe,
608
+ args: [{
609
+ name: 'msgType',
610
+ standalone: true,
611
+ }]
612
+ }], ctorParameters: () => [] });
613
+
614
+ class NumberPipe {
615
+ constructor() { }
616
+ transform(d, args) {
617
+ let res = null;
618
+ if (d) {
619
+ if (d > 0) {
620
+ res = `<span class="number_plus">+${d}</span>`;
621
+ }
622
+ else {
623
+ res = `<span class="number_minus">${d}</span>`;
624
+ }
625
+ }
626
+ return res;
627
+ }
628
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
629
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: NumberPipe, isStandalone: true, name: "number" });
630
+ }
631
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: NumberPipe, decorators: [{
632
+ type: Pipe,
633
+ args: [{
634
+ name: 'number',
635
+ standalone: true,
636
+ }]
637
+ }], ctorParameters: () => [] });
638
+
639
+ class ObjectiveTypePipe {
640
+ constructor() { }
641
+ transform(d, args) {
642
+ let res = '';
643
+ if (d) {
644
+ d = d.toLocaleUpperCase();
645
+ switch (d) {
646
+ case 'QUANTITATIVE':
647
+ res = '定量目标';
648
+ break;
649
+ case 'QUALITATIVE':
650
+ res = '定性目标';
651
+ break;
652
+ }
653
+ }
654
+ return res;
655
+ }
656
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ObjectiveTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
657
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ObjectiveTypePipe, isStandalone: true, name: "objType" });
658
+ }
659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ObjectiveTypePipe, decorators: [{
660
+ type: Pipe,
661
+ args: [{
662
+ name: 'objType',
663
+ standalone: true,
664
+ }]
665
+ }], ctorParameters: () => [] });
666
+
667
+ class OkrPlanPipe {
668
+ constructor() { }
669
+ transform(d, args) {
670
+ let res = '';
671
+ if (d == null || d == '') {
672
+ return res;
673
+ }
674
+ d = d.toLocaleLowerCase();
675
+ switch (d) {
676
+ case 'draft':
677
+ res = '未启动';
678
+ break;
679
+ case 'running':
680
+ res = '进行中';
681
+ break;
682
+ case 'stop':
683
+ res = '已暂停';
684
+ break;
685
+ case 'finish':
686
+ res = '已完成';
687
+ break;
688
+ default:
689
+ break;
690
+ }
691
+ return res;
692
+ }
693
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: OkrPlanPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
694
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: OkrPlanPipe, isStandalone: true, name: "okr_plan" });
695
+ }
696
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: OkrPlanPipe, decorators: [{
697
+ type: Pipe,
698
+ args: [{
699
+ name: 'okr_plan',
700
+ standalone: true,
701
+ }]
702
+ }], ctorParameters: () => [] });
703
+
704
+ class OkrUnitPipe {
705
+ constructor() { }
706
+ transform(d, args) {
707
+ let res = '';
708
+ if (d) {
709
+ d = d.toLocaleUpperCase();
710
+ let list = UnitData().filter((item) => {
711
+ if (item.value.toLocaleUpperCase() == d) {
712
+ return item;
713
+ }
714
+ });
715
+ if (list != null && list.length > 0) {
716
+ res = list[0]['label'];
717
+ }
718
+ }
719
+ return res;
720
+ }
721
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: OkrUnitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
722
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: OkrUnitPipe, isStandalone: true, name: "okr_unit" });
723
+ }
724
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: OkrUnitPipe, decorators: [{
725
+ type: Pipe,
726
+ args: [{
727
+ name: 'okr_unit',
728
+ standalone: true,
729
+ }]
730
+ }], ctorParameters: () => [] });
731
+
732
+ class OperationPipe {
733
+ constructor() { }
734
+ transform(d, args) {
735
+ if (args) {
736
+ switch (args) {
737
+ case 'okr':
738
+ if (d == 'follow' || d == 'adjust' || d == 'owner') {
739
+ d = `${args}_${d}`;
740
+ }
741
+ break;
742
+ case 'task':
743
+ d = `${args}_${d}`;
744
+ break;
745
+ default:
746
+ break;
747
+ }
748
+ }
749
+ let res = getOperationText(d);
750
+ return res;
751
+ }
752
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: OperationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
753
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: OperationPipe, isStandalone: true, name: "operation" });
754
+ }
755
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: OperationPipe, decorators: [{
756
+ type: Pipe,
757
+ args: [{
758
+ name: 'operation',
759
+ standalone: true,
760
+ }]
761
+ }], ctorParameters: () => [] });
762
+
763
+ class PeriodEmpPipe {
764
+ constructor() { }
765
+ transform(d, args) {
766
+ let res = '';
767
+ if (d == null || d == '') {
768
+ return res;
769
+ }
770
+ d = d.toLocaleUpperCase();
771
+ switch (d) {
772
+ case 'DRAFT':
773
+ res = '未引用计划';
774
+ break;
775
+ case 'RUNNING':
776
+ res = '评估进行中';
777
+ break;
778
+ case 'FINISHED':
779
+ res = '评估已结束';
780
+ break;
781
+ default:
782
+ break;
783
+ }
784
+ return res;
785
+ }
786
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PeriodEmpPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
787
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: PeriodEmpPipe, isStandalone: true, name: "periodEmp" });
788
+ }
789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PeriodEmpPipe, decorators: [{
790
+ type: Pipe,
791
+ args: [{
792
+ name: 'periodEmp',
793
+ standalone: true,
794
+ }]
795
+ }], ctorParameters: () => [] });
796
+
797
+ class PeriodStatePipe {
798
+ constructor() { }
799
+ transform(d, args) {
800
+ let res = '';
801
+ if (d == null || d == '') {
802
+ return res;
803
+ }
804
+ d = d.toLocaleUpperCase();
805
+ switch (d) {
806
+ case 'DRAFT':
807
+ res = '未启动';
808
+ break;
809
+ case 'RUNNING':
810
+ res = '已启动';
811
+ break;
812
+ case 'FINISHED':
813
+ res = '已完成';
814
+ break;
815
+ default:
816
+ break;
817
+ }
818
+ return res;
819
+ }
820
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PeriodStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
821
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: PeriodStatePipe, isStandalone: true, name: "period" });
822
+ }
823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PeriodStatePipe, decorators: [{
824
+ type: Pipe,
825
+ args: [{
826
+ name: 'period',
827
+ standalone: true,
828
+ }]
829
+ }], ctorParameters: () => [] });
830
+
831
+ class PlanStatePipe {
832
+ constructor() { }
833
+ transform(d, args) {
834
+ let res = '';
835
+ if (d == null || d == '') {
836
+ return res;
837
+ }
838
+ d = d.toLocaleLowerCase();
839
+ switch (d) {
840
+ case 'draft':
841
+ res = '未启动';
842
+ break;
843
+ case 'running':
844
+ res = '进行中';
845
+ break;
846
+ case 'stop':
847
+ res = '已暂停';
848
+ break;
849
+ case 'finish':
850
+ res = '已完成';
851
+ break;
852
+ default:
853
+ break;
854
+ }
855
+ return res;
856
+ }
857
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PlanStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
858
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: PlanStatePipe, isStandalone: true, name: "planstate" });
859
+ }
860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PlanStatePipe, decorators: [{
861
+ type: Pipe,
862
+ args: [{
863
+ name: 'planstate',
864
+ standalone: true,
865
+ }]
866
+ }], ctorParameters: () => [] });
867
+
868
+ class RangePipe {
869
+ constructor() { }
870
+ transform(value) {
871
+ return Array.from({ length: value }, (_, i) => i + 1);
872
+ }
873
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
874
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: RangePipe, isStandalone: true, name: "range" });
875
+ }
876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RangePipe, decorators: [{
877
+ type: Pipe,
878
+ args: [{
879
+ name: 'range',
880
+ standalone: true,
881
+ }]
882
+ }], ctorParameters: () => [] });
883
+
884
+ class RemoveHtmlPipe {
885
+ constructor() { }
886
+ transform(value) {
887
+ if (value) {
888
+ value = value.replace(/<\/?[^>]*>/g, '');
889
+ value = value.replace(/[ | ]*\n/g, '\n');
890
+ }
891
+ return value;
892
+ }
893
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RemoveHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
894
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: RemoveHtmlPipe, isStandalone: true, name: "removeHtml" });
895
+ }
896
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: RemoveHtmlPipe, decorators: [{
897
+ type: Pipe,
898
+ args: [{ name: 'removeHtml' }]
899
+ }], ctorParameters: () => [] });
900
+
901
+ class ResultPipe {
902
+ constructor() { }
903
+ transform(d, args) {
904
+ let res = '';
905
+ if (args) {
906
+ if (args == 'success') {
907
+ switch (d) {
908
+ case '0':
909
+ case 0:
910
+ case true:
911
+ res = '<span class="yes_sucess">成功</span>';
912
+ break;
913
+ case '1':
914
+ case 1:
915
+ case false:
916
+ res = '<span class="yes_error">失败</span>';
917
+ break;
918
+ default:
919
+ break;
920
+ }
921
+ }
922
+ else if (args == 'ok') {
923
+ switch (d) {
924
+ case 0:
925
+ res = '<span class="yes_sucess">正常</span>';
926
+ break;
927
+ case 1:
928
+ res = '<span class="yes_error">暂停</span>';
929
+ break;
930
+ default:
931
+ break;
932
+ }
933
+ }
934
+ }
935
+ return res;
936
+ }
937
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ResultPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
938
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ResultPipe, isStandalone: true, name: "result" });
939
+ }
940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ResultPipe, decorators: [{
941
+ type: Pipe,
942
+ args: [{
943
+ name: 'result',
944
+ standalone: true,
945
+ }]
946
+ }], ctorParameters: () => [] });
947
+
948
+ class SafeHtmlPipe {
949
+ sanitized;
950
+ constructor(sanitized) {
951
+ this.sanitized = sanitized;
952
+ }
953
+ transform(value) {
954
+ if (value === undefined || value === null || value === '' || value === 'null') {
955
+ return '';
956
+ }
957
+ else if (value === 0 || value === '0') {
958
+ return value;
959
+ }
960
+ else {
961
+ return this.sanitized.bypassSecurityTrustHtml(value);
962
+ }
963
+ }
964
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
965
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "safeHtml" });
966
+ }
967
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SafeHtmlPipe, decorators: [{
968
+ type: Pipe,
969
+ args: [{ name: 'safeHtml' }]
970
+ }], ctorParameters: () => [{ type: i1.DomSanitizer }] });
971
+
972
+ class StatePipe {
973
+ constructor() { }
974
+ transform(d, args) {
975
+ let res = '';
976
+ if (d == null || d == '') {
977
+ return res;
978
+ }
979
+ d = d.toLocaleLowerCase();
980
+ switch (d) {
981
+ case 'draft':
982
+ res = '草稿';
983
+ break;
984
+ case 'start':
985
+ res = '已启动';
986
+ break;
987
+ case 'default':
988
+ res = '未开始';
989
+ break;
990
+ case 'inprogress':
991
+ res = '进行中';
992
+ break;
993
+ case 'running':
994
+ res = '进行中';
995
+ break;
996
+ case 'stop':
997
+ res = '已暂停';
998
+ break;
999
+ case 'finished':
1000
+ res = '已完成';
1001
+ break;
1002
+ default:
1003
+ break;
1004
+ }
1005
+ return res;
1006
+ }
1007
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: StatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1008
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: StatePipe, isStandalone: true, name: "state" });
1009
+ }
1010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: StatePipe, decorators: [{
1011
+ type: Pipe,
1012
+ args: [{
1013
+ name: 'state',
1014
+ standalone: true,
1015
+ }]
1016
+ }], ctorParameters: () => [] });
1017
+
1018
+ class TableTypePipe {
1019
+ constructor() { }
1020
+ transform(d, args) {
1021
+ let res = '';
1022
+ if (d) {
1023
+ d = d.toLocaleLowerCase();
1024
+ let list = TableType().filter((item) => {
1025
+ if (item.value.toLocaleLowerCase() == d) {
1026
+ return item;
1027
+ }
1028
+ });
1029
+ if (list != null && list.length > 0) {
1030
+ res = list[0]['label'];
1031
+ }
1032
+ }
1033
+ return res;
1034
+ }
1035
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TableTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1036
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TableTypePipe, isStandalone: true, name: "tableType" });
1037
+ }
1038
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TableTypePipe, decorators: [{
1039
+ type: Pipe,
1040
+ args: [{
1041
+ name: 'tableType',
1042
+ standalone: true,
1043
+ }]
1044
+ }], ctorParameters: () => [] });
1045
+
1046
+ class TaskStatePipe {
1047
+ constructor() { }
1048
+ transform(d, args) {
1049
+ let res = '';
1050
+ if (d == null || d == '') {
1051
+ return res;
1052
+ }
1053
+ d = d.toLocaleLowerCase();
1054
+ switch (d) {
1055
+ case 'draft':
1056
+ res = '未开始';
1057
+ break;
1058
+ case 'running':
1059
+ res = '进行中';
1060
+ break;
1061
+ case 'finish':
1062
+ res = '已完成';
1063
+ break;
1064
+ default:
1065
+ break;
1066
+ }
1067
+ return res;
1068
+ }
1069
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TaskStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1070
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TaskStatePipe, isStandalone: true, name: "task" });
1071
+ }
1072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TaskStatePipe, decorators: [{
1073
+ type: Pipe,
1074
+ args: [{
1075
+ name: 'task',
1076
+ standalone: true,
1077
+ }]
1078
+ }], ctorParameters: () => [] });
1079
+
1080
+ class TemplateTypePipe {
1081
+ constructor() { }
1082
+ transform(d, args) {
1083
+ let status = '';
1084
+ d = JSON.stringify(d).toLocaleLowerCase();
1085
+ switch (d) {
1086
+ case 'msg':
1087
+ status = '短信';
1088
+ break;
1089
+ case 'email':
1090
+ status = '邮件';
1091
+ break;
1092
+ }
1093
+ return status;
1094
+ }
1095
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TemplateTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1096
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TemplateTypePipe, isStandalone: true, name: "templateType" });
1097
+ }
1098
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TemplateTypePipe, decorators: [{
1099
+ type: Pipe,
1100
+ args: [{
1101
+ name: 'templateType',
1102
+ standalone: true,
1103
+ }]
1104
+ }], ctorParameters: () => [] });
1105
+
1106
+ class ValidPipe {
1107
+ constructor() { }
1108
+ transform(d, args) {
1109
+ let res = '';
1110
+ switch (d) {
1111
+ case true:
1112
+ case 'true':
1113
+ res = '<span class="valid_yes">有效</span>';
1114
+ break;
1115
+ case false:
1116
+ case 'false':
1117
+ res = '<span class="valid_no">无效</span>';
1118
+ break;
1119
+ }
1120
+ return res;
1121
+ }
1122
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ValidPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1123
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ValidPipe, isStandalone: true, name: "valid" });
1124
+ }
1125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ValidPipe, decorators: [{
1126
+ type: Pipe,
1127
+ args: [{
1128
+ name: 'valid',
1129
+ standalone: true,
1130
+ }]
1131
+ }], ctorParameters: () => [] });
1132
+
1133
+ class ValueMethodPipe {
1134
+ constructor() { }
1135
+ transform(d, args) {
1136
+ let res = '';
1137
+ switch (d) {
1138
+ case 'COUNT':
1139
+ res = '计数';
1140
+ break;
1141
+ case 'COUNT_DISTINCT':
1142
+ res = '去重计数';
1143
+ break;
1144
+ case 'SUM':
1145
+ res = '求和';
1146
+ break;
1147
+ case 'AVG':
1148
+ res = '平均值';
1149
+ break;
1150
+ case 'MAX':
1151
+ res = '最大值';
1152
+ break;
1153
+ case 'MIN':
1154
+ res = '最小值';
1155
+ break;
1156
+ }
1157
+ return res;
1158
+ }
1159
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ValueMethodPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1160
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ValueMethodPipe, isStandalone: true, name: "valueMethod" });
1161
+ }
1162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ValueMethodPipe, decorators: [{
1163
+ type: Pipe,
1164
+ args: [{
1165
+ name: 'valueMethod',
1166
+ standalone: true,
1167
+ }]
1168
+ }], ctorParameters: () => [] });
1169
+
1170
+ class WriteStatePipe {
1171
+ constructor() { }
1172
+ list = [
1173
+ {
1174
+ label: '未启动',
1175
+ value: 'DRAFT',
1176
+ },
1177
+ {
1178
+ label: '已启动',
1179
+ value: 'RUNNING',
1180
+ },
1181
+ ];
1182
+ transform(d, args) {
1183
+ let res = '';
1184
+ if (d == null || d == '') {
1185
+ return res;
1186
+ }
1187
+ d = d.toLocaleUpperCase();
1188
+ this.list.forEach((e) => {
1189
+ if (e.value == d) {
1190
+ res = e.label;
1191
+ }
1192
+ });
1193
+ return res;
1194
+ }
1195
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: WriteStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1196
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: WriteStatePipe, isStandalone: true, name: "writeState" });
1197
+ }
1198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: WriteStatePipe, decorators: [{
1199
+ type: Pipe,
1200
+ args: [{
1201
+ name: 'writeState',
1202
+ standalone: true,
1203
+ }]
1204
+ }], ctorParameters: () => [] });
1205
+
1206
+ class YesNoPipe {
1207
+ constructor() { }
1208
+ transform(d, display) {
1209
+ let res = '';
1210
+ if (display == undefined) {
1211
+ display = null;
1212
+ }
1213
+ switch (d) {
1214
+ case true:
1215
+ case 'true':
1216
+ if (display == 'icon') {
1217
+ res = `<span class="yes_right"><svg viewBox="64 64 896 896" focusable="false" fill="currentColor" width="1em" height="1em" data-icon="check" aria-hidden="true"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg></span>`;
1218
+ }
1219
+ else {
1220
+ res = `<span class="yes_ok">是</span>`;
1221
+ }
1222
+ break;
1223
+ case false:
1224
+ case 'false':
1225
+ case '':
1226
+ if (display == 'icon') {
1227
+ }
1228
+ else {
1229
+ res = `<span class="yes_no">否</span>`;
1230
+ }
1231
+ break;
1232
+ default:
1233
+ res = `<span class="yes_no">否</span>`;
1234
+ break;
1235
+ }
1236
+ return res;
1237
+ }
1238
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: YesNoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1239
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: YesNoPipe, isStandalone: true, name: "yesNo" });
1240
+ }
1241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: YesNoPipe, decorators: [{
1242
+ type: Pipe,
1243
+ args: [{
1244
+ name: 'yesNo',
1245
+ standalone: true,
1246
+ }]
1247
+ }], ctorParameters: () => [] });
1248
+
1249
+ const PIPES = [
1250
+ BuiltinPipe,
1251
+ CategoryPipe,
1252
+ DataTypePipe,
1253
+ DateFormatPipe,
1254
+ DisabledPipe,
1255
+ EmailStatePipe,
1256
+ EmptyPipe,
1257
+ EvalPipe,
1258
+ FlowPipe,
1259
+ FlowEvalPipe,
1260
+ FlowNodePipe,
1261
+ FlowOperationPipe,
1262
+ FlowStatePipe,
1263
+ FlowTypePipe,
1264
+ FormTypePipe,
1265
+ GradeTypePipe,
1266
+ IndicatorPipe,
1267
+ ItemPipe,
1268
+ MomentPipe,
1269
+ MsgTypePipe,
1270
+ NumberPipe,
1271
+ ObjectiveTypePipe,
1272
+ OkrPlanPipe,
1273
+ OkrUnitPipe,
1274
+ OperationPipe,
1275
+ PeriodEmpPipe,
1276
+ PeriodStatePipe,
1277
+ PlanStatePipe,
1278
+ RangePipe,
1279
+ RemoveHtmlPipe,
1280
+ ResultPipe,
1281
+ SafeHtmlPipe,
1282
+ StatePipe,
1283
+ TableTypePipe,
1284
+ TaskStatePipe,
1285
+ TemplateTypePipe,
1286
+ ValidPipe,
1287
+ ValueMethodPipe,
1288
+ WriteStatePipe,
1289
+ YesNoPipe
1290
+ ];
1291
+ class GramPipeModule {
1292
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1293
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramPipeModule, imports: [CommonModule, BuiltinPipe,
1294
+ CategoryPipe,
1295
+ DataTypePipe,
1296
+ DateFormatPipe,
1297
+ DisabledPipe,
1298
+ EmailStatePipe,
1299
+ EmptyPipe,
1300
+ EvalPipe,
1301
+ FlowPipe,
1302
+ FlowEvalPipe,
1303
+ FlowNodePipe,
1304
+ FlowOperationPipe,
1305
+ FlowStatePipe,
1306
+ FlowTypePipe,
1307
+ FormTypePipe,
1308
+ GradeTypePipe,
1309
+ IndicatorPipe,
1310
+ ItemPipe,
1311
+ MomentPipe,
1312
+ MsgTypePipe,
1313
+ NumberPipe,
1314
+ ObjectiveTypePipe,
1315
+ OkrPlanPipe,
1316
+ OkrUnitPipe,
1317
+ OperationPipe,
1318
+ PeriodEmpPipe,
1319
+ PeriodStatePipe,
1320
+ PlanStatePipe,
1321
+ RangePipe,
1322
+ RemoveHtmlPipe,
1323
+ ResultPipe,
1324
+ SafeHtmlPipe,
1325
+ StatePipe,
1326
+ TableTypePipe,
1327
+ TaskStatePipe,
1328
+ TemplateTypePipe,
1329
+ ValidPipe,
1330
+ ValueMethodPipe,
1331
+ WriteStatePipe,
1332
+ YesNoPipe], exports: [BuiltinPipe,
1333
+ CategoryPipe,
1334
+ DataTypePipe,
1335
+ DateFormatPipe,
1336
+ DisabledPipe,
1337
+ EmailStatePipe,
1338
+ EmptyPipe,
1339
+ EvalPipe,
1340
+ FlowPipe,
1341
+ FlowEvalPipe,
1342
+ FlowNodePipe,
1343
+ FlowOperationPipe,
1344
+ FlowStatePipe,
1345
+ FlowTypePipe,
1346
+ FormTypePipe,
1347
+ GradeTypePipe,
1348
+ IndicatorPipe,
1349
+ ItemPipe,
1350
+ MomentPipe,
1351
+ MsgTypePipe,
1352
+ NumberPipe,
1353
+ ObjectiveTypePipe,
1354
+ OkrPlanPipe,
1355
+ OkrUnitPipe,
1356
+ OperationPipe,
1357
+ PeriodEmpPipe,
1358
+ PeriodStatePipe,
1359
+ PlanStatePipe,
1360
+ RangePipe,
1361
+ RemoveHtmlPipe,
1362
+ ResultPipe,
1363
+ SafeHtmlPipe,
1364
+ StatePipe,
1365
+ TableTypePipe,
1366
+ TaskStatePipe,
1367
+ TemplateTypePipe,
1368
+ ValidPipe,
1369
+ ValueMethodPipe,
1370
+ WriteStatePipe,
1371
+ YesNoPipe] });
1372
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramPipeModule, imports: [CommonModule] });
1373
+ }
1374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramPipeModule, decorators: [{
1375
+ type: NgModule,
1376
+ args: [{
1377
+ imports: [CommonModule, ...PIPES],
1378
+ exports: PIPES
1379
+ }]
1380
+ }] });
1381
+
1382
+ /**
1383
+ * Generated bundle index. Do not edit.
1384
+ */
1385
+
1386
+ export { BuiltinPipe, CategoryPipe, DataTypePipe, DateFormatPipe, DisabledPipe, EmailStatePipe, EmptyPipe, EvalPipe, FlowEvalPipe, FlowNodePipe, FlowOperationPipe, FlowPipe, FlowStatePipe, FlowTypePipe, FormTypePipe, GradeTypePipe, GramPipeModule, IndicatorPipe, ItemPipe, MomentPipe, MsgTypePipe, NumberPipe, ObjectiveTypePipe, OkrPlanPipe, OkrUnitPipe, OperationPipe, PeriodEmpPipe, PeriodStatePipe, PlanStatePipe, RangePipe, RemoveHtmlPipe, ResultPipe, SafeHtmlPipe, StatePipe, TableTypePipe, TaskStatePipe, TemplateTypePipe, ValidPipe, ValueMethodPipe, WriteStatePipe, YesNoPipe };
1387
+ //# sourceMappingURL=sharedPipe.mjs.map