orion-design 0.1.31 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. package/README.md +5 -5
  2. package/dist/Throne/index.js +14 -30
  3. package/dist/Throne/index.js.map +1 -1
  4. package/dist/components/Button/index.js +33 -40
  5. package/dist/components/Button/index.js.map +1 -1
  6. package/dist/components/Flex/index.js +89 -122
  7. package/dist/components/Flex/index.js.map +1 -1
  8. package/dist/components/Form/Form.js +2 -2
  9. package/dist/components/Form/Form.js.map +1 -1
  10. package/dist/components/Form/LovInput/LovInput.js +2 -2
  11. package/dist/components/Form/LovInput/LovInput.js.map +1 -1
  12. package/dist/components/Form/LovInput/hooks/useLov.js +5 -5
  13. package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -1
  14. package/dist/components/Form/LovInput/index.js +4 -4
  15. package/dist/components/Form/hooks/FormItemValidateTrigger.js +2 -2
  16. package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -1
  17. package/dist/components/Form/hooks/index.js +68 -127
  18. package/dist/components/Form/hooks/index.js.map +1 -1
  19. package/dist/components/Form/index.js +656 -836
  20. package/dist/components/Form/index.js.map +1 -1
  21. package/dist/components/Form/utils/index.js +18 -30
  22. package/dist/components/Form/utils/index.js.map +1 -1
  23. package/dist/components/LovTable/LovPagetable.vue.d.ts +492 -0
  24. package/dist/components/LovTable/index.d.ts +246 -0
  25. package/dist/components/LovTable/index.js +106 -179
  26. package/dist/components/LovTable/index.js.map +1 -1
  27. package/dist/components/Modal/index.js +56 -111
  28. package/dist/components/Modal/index.js.map +1 -1
  29. package/dist/components/Modal/types.d.ts +1 -1
  30. package/dist/components/Modal/types.js +3 -4
  31. package/dist/components/Modal/types.js.map +1 -1
  32. package/dist/components/Modal/useModal.js +5 -5
  33. package/dist/components/Modal/useModal.js.map +1 -1
  34. package/dist/components/Pagetable/Pagetable.d.ts +92 -1
  35. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +13 -0
  36. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +13 -0
  37. package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +13 -0
  38. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +13 -0
  39. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +13 -0
  40. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +13 -0
  41. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +13 -0
  42. package/dist/components/Pagetable/hooks/useColumns.js +85 -88
  43. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
  44. package/dist/components/Pagetable/index.d.ts +155 -0
  45. package/dist/components/Pagetable/index.js +596 -683
  46. package/dist/components/Pagetable/index.js.map +1 -1
  47. package/dist/components/Pagetable/utils/index.js +54 -92
  48. package/dist/components/Pagetable/utils/index.js.map +1 -1
  49. package/dist/components/Querytable/hooks/useColumns.js +74 -82
  50. package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
  51. package/dist/components/Querytable/index.js +469 -579
  52. package/dist/components/Querytable/index.js.map +1 -1
  53. package/dist/components/Querytable/utils/index.js +54 -92
  54. package/dist/components/Querytable/utils/index.js.map +1 -1
  55. package/dist/components/RichTextEditor/index.js +74 -100
  56. package/dist/components/RichTextEditor/index.js.map +1 -1
  57. package/dist/components/Tabs/constants.js +2 -2
  58. package/dist/components/Tabs/constants.js.map +1 -1
  59. package/dist/components/Tabs/index.js +358 -603
  60. package/dist/components/Tabs/index.js.map +1 -1
  61. package/dist/components/Tabs/tab-bar.js +6 -6
  62. package/dist/components/Tabs/tab-bar.js.map +1 -1
  63. package/dist/components/Tabs/tab-pane.js +3 -3
  64. package/dist/components/Tabs/tab-pane.js.map +1 -1
  65. package/dist/components/_constants/aria.js +2 -2
  66. package/dist/components/_constants/aria.js.map +1 -1
  67. package/dist/components/_constants/event.js +4 -6
  68. package/dist/components/_constants/event.js.map +1 -1
  69. package/dist/components/_constants/index.js +6 -6
  70. package/dist/components/_hooks/index.js +7 -7
  71. package/dist/components/_hooks/use-namespace/index.js +39 -74
  72. package/dist/components/_hooks/use-namespace/index.js.map +1 -1
  73. package/dist/components/_hooks/use-ordered-children/index.js +19 -29
  74. package/dist/components/_hooks/use-ordered-children/index.js.map +1 -1
  75. package/dist/components/_util/arrays.js +5 -9
  76. package/dist/components/_util/arrays.js.map +1 -1
  77. package/dist/components/_util/browser.js +6 -6
  78. package/dist/components/_util/browser.js.map +1 -1
  79. package/dist/components/_util/classNames.js +17 -22
  80. package/dist/components/_util/classNames.js.map +1 -1
  81. package/dist/components/_util/dom/aria.js +39 -74
  82. package/dist/components/_util/dom/aria.js.map +1 -1
  83. package/dist/components/_util/dom/element.js +8 -9
  84. package/dist/components/_util/dom/element.js.map +1 -1
  85. package/dist/components/_util/dom/event.js +7 -14
  86. package/dist/components/_util/dom/event.js.map +1 -1
  87. package/dist/components/_util/dom/index.js +36 -36
  88. package/dist/components/_util/dom/position.js +25 -49
  89. package/dist/components/_util/dom/position.js.map +1 -1
  90. package/dist/components/_util/dom/scroll.js +61 -103
  91. package/dist/components/_util/dom/scroll.js.map +1 -1
  92. package/dist/components/_util/dom/style.js +50 -65
  93. package/dist/components/_util/dom/style.js.map +1 -1
  94. package/dist/components/_util/easings.js +4 -8
  95. package/dist/components/_util/easings.js.map +1 -1
  96. package/dist/components/_util/error.js +11 -12
  97. package/dist/components/_util/error.js.map +1 -1
  98. package/dist/components/_util/functions.js +3 -3
  99. package/dist/components/_util/i18n.js +2 -2
  100. package/dist/components/_util/i18n.js.map +1 -1
  101. package/dist/components/_util/index.js +137 -137
  102. package/dist/components/_util/isValid.js +2 -4
  103. package/dist/components/_util/isValid.js.map +1 -1
  104. package/dist/components/_util/objects.js +14 -18
  105. package/dist/components/_util/objects.js.map +1 -1
  106. package/dist/components/_util/props-util/index.js +20 -46
  107. package/dist/components/_util/props-util/index.js.map +1 -1
  108. package/dist/components/_util/props-util/initDefaultProps.js +10 -18
  109. package/dist/components/_util/props-util/initDefaultProps.js.map +1 -1
  110. package/dist/components/_util/raf.js +4 -5
  111. package/dist/components/_util/raf.js.map +1 -1
  112. package/dist/components/_util/rand.js +3 -4
  113. package/dist/components/_util/rand.js.map +1 -1
  114. package/dist/components/_util/strings.js +8 -9
  115. package/dist/components/_util/strings.js.map +1 -1
  116. package/dist/components/_util/throttleByRaf.js +10 -16
  117. package/dist/components/_util/throttleByRaf.js.map +1 -1
  118. package/dist/components/_util/type.js +38 -41
  119. package/dist/components/_util/type.js.map +1 -1
  120. package/dist/components/_util/types.js +22 -41
  121. package/dist/components/_util/types.js.map +1 -1
  122. package/dist/components/_util/typescript.js +2 -2
  123. package/dist/components/_util/typescript.js.map +1 -1
  124. package/dist/components/_util/util.js +43 -85
  125. package/dist/components/_util/util.js.map +1 -1
  126. package/dist/components/_util/vue/global-node.js +15 -27
  127. package/dist/components/_util/vue/global-node.js.map +1 -1
  128. package/dist/components/_util/vue/icon.js +25 -29
  129. package/dist/components/_util/vue/icon.js.map +1 -1
  130. package/dist/components/_util/vue/index.js +41 -41
  131. package/dist/components/_util/vue/install.js +18 -35
  132. package/dist/components/_util/vue/install.js.map +1 -1
  133. package/dist/components/_util/vue/props/index.js +6 -6
  134. package/dist/components/_util/vue/props/runtime.js +30 -46
  135. package/dist/components/_util/vue/props/runtime.js.map +1 -1
  136. package/dist/components/_util/vue/refs.js +6 -12
  137. package/dist/components/_util/vue/refs.js.map +1 -1
  138. package/dist/components/_util/vue/size.js +3 -5
  139. package/dist/components/_util/vue/size.js.map +1 -1
  140. package/dist/components/_util/vue/validator.js +4 -5
  141. package/dist/components/_util/vue/validator.js.map +1 -1
  142. package/dist/components/_util/vue/vnode.js +54 -100
  143. package/dist/components/_util/vue/vnode.js.map +1 -1
  144. package/dist/components/_util/vue-types/index.js +220 -231
  145. package/dist/components/_util/vue-types/index.js.map +1 -1
  146. package/dist/components/components.js +20 -20
  147. package/dist/components/index.js +35 -38
  148. package/dist/components/index.js.map +1 -1
  149. package/dist/error/OrionError.js +4 -8
  150. package/dist/error/OrionError.js.map +1 -1
  151. package/dist/index.css +1 -797
  152. package/dist/index.js +36 -36
  153. package/dist/print/LodopFuncs.js +43 -101
  154. package/dist/print/LodopFuncs.js.map +1 -1
  155. package/dist/print/index.js +108 -200
  156. package/dist/print/index.js.map +1 -1
  157. package/dist/request/ErrorHandlerChain.js +14 -17
  158. package/dist/request/ErrorHandlerChain.js.map +1 -1
  159. package/dist/request/RequestFilterChain.js +13 -16
  160. package/dist/request/RequestFilterChain.js.map +1 -1
  161. package/dist/request/ResponseParserChain.js +14 -17
  162. package/dist/request/ResponseParserChain.js.map +1 -1
  163. package/dist/request/disivion/DateSerializer.js +22 -47
  164. package/dist/request/disivion/DateSerializer.js.map +1 -1
  165. package/dist/request/disivion/DivisionErrorHandler.js +25 -40
  166. package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
  167. package/dist/request/disivion/DivisionResponseParser.js +10 -16
  168. package/dist/request/disivion/DivisionResponseParser.js.map +1 -1
  169. package/dist/request/disivion/index.js +201 -305
  170. package/dist/request/disivion/index.js.map +1 -1
  171. package/dist/request/error/BizExceptionResponseError.js +5 -11
  172. package/dist/request/error/BizExceptionResponseError.js.map +1 -1
  173. package/dist/request/error/ExceptionResponseError.js +5 -11
  174. package/dist/request/error/ExceptionResponseError.js.map +1 -1
  175. package/dist/request/error/ResponseError.js +4 -9
  176. package/dist/request/error/ResponseError.js.map +1 -1
  177. package/dist/request/error/SessionExceptionResponseError.js +5 -11
  178. package/dist/request/error/SessionExceptionResponseError.js.map +1 -1
  179. package/dist/request/index.js +11 -11
  180. package/dist/utils/DateUtil.js +33 -48
  181. package/dist/utils/DateUtil.js.map +1 -1
  182. package/dist/utils/NumberUtil.js +6 -6
  183. package/dist/utils/NumberUtil.js.map +1 -1
  184. package/dist/utils/cloneDeep.js +2 -2
  185. package/dist/utils/delay.js +3 -3
  186. package/dist/utils/delay.js.map +1 -1
  187. package/dist/utils/functions.js +3 -3
  188. package/dist/utils/index.js +12 -12
  189. package/dist/utils/md5.js +93 -191
  190. package/dist/utils/md5.js.map +1 -1
  191. package/dist/utils/uuid.js +25 -35
  192. package/dist/utils/uuid.js.map +1 -1
  193. package/dist/version/index.js +2 -2
  194. package/dist/version/version.d.ts +1 -1
  195. package/dist/version/version.js +2 -2
  196. package/dist/version/version.js.map +1 -1
  197. package/package.json +1 -1
  198. package/dist/_commonjsHelpers-DWwsNxpa.js +0 -9
  199. package/dist/_commonjsHelpers-DWwsNxpa.js.map +0 -1
  200. package/dist/components-B3d9m_tn.js +0 -27
  201. package/dist/components-B3d9m_tn.js.map +0 -1
  202. package/dist/functions-BeMkokbY.js +0 -63
  203. package/dist/functions-BeMkokbY.js.map +0 -1
  204. package/dist/index-BOKLZnqH.js +0 -54
  205. package/dist/index-BOKLZnqH.js.map +0 -1
  206. package/dist/index-D1m0KTpK.js +0 -69
  207. package/dist/index-D1m0KTpK.js.map +0 -1
  208. package/dist/index-DR5ZP7mD.js +0 -160
  209. package/dist/index-DR5ZP7mD.js.map +0 -1
  210. package/dist/index-DkwIULcN.js +0 -200
  211. package/dist/index-DkwIULcN.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/LovTable/LovQuerytable.vue","../../../src/components/LovTable/LovPagetable.vue","../../../src/components/LovTable/index.ts"],"sourcesContent":["<template>\r\n <querytable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode @current-row-change=\"handleCurrentRowChange\" size=\"small\">\r\n <slot></slot>\r\n </querytable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport Querytable from '../Querytable'\r\nimport { useLov } from '../Form'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovQuerytable', inheritAttrs: true })\r\n\r\nconst { data } = defineProps<{ data: any[] }>()\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()\r\nlov?.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value?.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","<template>\r\n <pagetable\r\n ref=\"table\"\r\n :data=\"data\"\r\n @row-click=\"onRowClick\"\r\n current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\"\r\n :pagination=\"pagination\"\r\n @update:pagination=\"onUpdatePagination\"\r\n size=\"small\"\r\n >\r\n <slot></slot>\r\n </pagetable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { useLov } from '../Form'\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovPagetable', inheritAttrs: true })\r\n\r\nconst { data, pagination } = defineProps<{\r\n data: any[]\r\n pagination: {\r\n currentPage?: number\r\n pageSize?: number\r\n total?: number\r\n }\r\n}>()\r\n\r\nconst emits = defineEmits(['update:pagination'])\r\nconst onUpdatePagination = (data: any) => {\r\n emits('update:pagination', data)\r\n}\r\n\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()\r\nlov?.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n } else if (code == 'ArrowLeft') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n if (currentPage > 1) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage - 1,\r\n })\r\n }\r\n } else if (code == 'ArrowRight') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n const totalPage = Math.ceil(total / pageSize)\r\n if (currentPage < totalPage) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage + 1,\r\n })\r\n }\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value?.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport LovQuerytable from './LovQuerytable.vue'\r\nimport LovPagetable from './LovPagetable.vue'\r\n\r\nexport default withInstall(\r\n {},\r\n {\r\n LovQuerytable,\r\n LovPagetable,\r\n }\r\n)\r\n"],"names":["index","LovQuerytable","LovPagetable"],"mappings":";;;;;;;;;;;;;;;AAcM,UAAA,WAAW,eAAe,OAAO;AACvC,UAAM,kBAAkB;AACxB,UAAM,iBAAiB;AAEvB,UAAM,MAAM;AACP,+BAAA,uBAAuB,CAAC,SAAS;AACpC,UAAI,QAAQ,WAAW;AACjB,YAAA;AACA,YAAA,gBAAgB,SAAS,GAAG;AAC9B,oBAAU,QAAI,KAAC,QAAI,KAAC,SAAS,CAAC;AAAA,QAAA,OACzB;AACL,oBAAU,aAAK,gBAAgB,QAAQ,CAAC;AAAA,QAC1C;AAES,iBAAA,MAAM,cAAc,OAAO;AACpC,oBAAY,gBAAgB,KAAK;AAAA,MAAA,WACxB,QAAQ,aAAa;AAC1B,YAAA;AACJ,YAAI,gBAAgB,SAAS,QAAI,KAAC,SAAS,GAAG;AAClC,oBAAA,aAAK,CAAC;AAAA,QAAA,OACX;AACL,oBAAU,aAAK,gBAAgB,QAAQ,CAAC;AAAA,QAC1C;AAES,iB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WAAK,uBAAuB;AAAA,IAAA;AAGxB,UAAA,aAAa,CAAC,QAAa;AAC/B,iCAAK,SAAS;AAAA,IAAG;AAGb,UAAA,yBAAyB,CAAC,QAAa;AAC3C,YAAMA,SAAQ,UAAU,QAAI,MAAE,GAAG;AACjC,UAAIA,UAAS,IAAI;AACf,wBAAgB,QAAQ;AACT,uBAAA,QAAQ,QAAA,KAAK,CAAC;AAAA,MAAA,OACxB;AACL,wBAAgB,QAAQA;AACxB,uBAAe,QAAQ;AAAA,MACzB;AAAA,IAAA;AAGF;AAAA,MACE,MAAM,QAAI;AAAA,MACV,MAAM;AACA,YAAA,QAAI,KAAC,SAAS,GAAG;AAEnB,mBAAS,MAAM,cAAc,QAAA,KAAK,CAAC,CAAC;AAAA,QACtC;AAAA,MACF;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;ACrHF,MAAA,QAAe;AAAA,EACb,CAAC;AAAA,EACD;AAAA,IAAA,eACEC;AAAAA,IAAA,cACAC;AAAAA,EACF;AACF;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/LovTable/LovQuerytable.vue","../../../src/components/LovTable/LovPagetable.vue","../../../src/components/LovTable/index.ts"],"sourcesContent":["<template>\r\n <querytable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" size=\"small\">\r\n <slot></slot>\r\n </querytable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport Querytable from '../Querytable'\r\nimport { useLov } from '../Form'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovQuerytable', inheritAttrs: true })\r\n\r\nconst { data } = defineProps<{ data: any[] }>()\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()\r\nlov?.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value?.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","<template>\r\n <pagetable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" :pagination=\"pagination\" @update:pagination=\"onUpdatePagination\"\r\n size=\"small\" :pagination-teleported=\"false\">\r\n <slot></slot>\r\n </pagetable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { useLov } from '../Form'\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovPagetable', inheritAttrs: true })\r\n\r\nconst { data, pagination } = defineProps<{\r\n data: any[]\r\n pagination: {\r\n currentPage?: number\r\n pageSize?: number\r\n total?: number\r\n }\r\n}>()\r\n\r\nconst emits = defineEmits(['update:pagination'])\r\nconst onUpdatePagination = (data: any) => {\r\n emits('update:pagination', data)\r\n}\r\n\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()\r\nlov?.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n } else if (code == 'ArrowLeft') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n if (currentPage > 1) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage - 1,\r\n })\r\n }\r\n } else if (code == 'ArrowRight') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n const totalPage = Math.ceil(total / pageSize)\r\n if (currentPage < totalPage) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage + 1,\r\n })\r\n }\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value?.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport LovQuerytable from './LovQuerytable.vue'\r\nimport LovPagetable from './LovPagetable.vue'\r\n\r\nexport default withInstall(\r\n {},\r\n {\r\n LovQuerytable,\r\n LovPagetable,\r\n }\r\n)\r\n"],"names":["tableRef","useTemplateRef","currentRowIndex","ref","currentRowData","lov","useLov","code","nextRow","__props","scrollToRow","index","_a","onRowClick","row","handleCurrentRowChange","findIndex","watch","emits","__emit","onUpdatePagination","data","currentPage","pageSize","_b","total","_c","_d","_e","_f","totalPage","withInstall","LovQuerytable","LovPagetable"],"mappings":";;;;;;;;;;;;;;;;AAeM,UAAAA,IAAWC,EAAe,OAAO,GACjCC,IAAkBC,KAClBC,IAAiBD,KAEjBE,IAAMC;AACP,IAAAD,KAAA,QAAAA,EAAA,uBAAuB,CAACE,MAAS;AACpC,UAAIA,KAAQ,WAAW;AACjB,YAAAC;AACA,QAAAN,EAAgB,SAAS,IAC3BM,IAAUC,EAAI,KAACA,EAAI,KAAC,SAAS,CAAC,IAE9BD,IAAUC,OAAKP,EAAgB,QAAQ,CAAC,GAGjCF,EAAA,MAAM,cAAcQ,CAAO,GACpCE,EAAYR,EAAgB,KAAK;AAAA,MAAA,WACxBK,KAAQ,aAAa;AAC1B,YAAAC;AACJ,QAAIN,EAAgB,SAASO,EAAI,KAAC,SAAS,IAC/BD,IAAAC,O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,EACvD,uBAAuB;AAAA,IAAA,GAGxBE,IAAa,CAACC,MAAa;AAC/B,MAAAT,KAAA,QAAAA,EAAK,SAASS;AAAA,IAAG,GAGbC,IAAyB,CAACD,MAAa;AAC3C,YAAMH,IAAQK,EAAUP,EAAI,MAAEK,CAAG;AACjC,MAAIH,KAAS,MACXT,EAAgB,QAAQ,GACTE,EAAA,QAAQK,EAAA,KAAK,CAAC,MAE7BP,EAAgB,QAAQS,GACxBP,EAAe,QAAQU;AAAA,IACzB;AAGF,WAAAG;AAAA,MACE,MAAMR,EAAI;AAAA,MACV,MAAM;AACA,QAAAA,EAAI,KAAC,SAAS,KAEhBT,EAAS,MAAM,cAAcS,EAAA,KAAK,CAAC,CAAC;AAAA,MAExC;AAAA,IAAA;;;;;;;;;;;;;;;;;IC9GFE,IAAeoB;AAAA,EACb,CAAC;AAAA,EACD;AAAA,IAAA,eACEC;AAAAA,IAAA,cACAC;AAAAA,EACF;AACF;"}
@@ -1,127 +1,72 @@
1
1
  import "lodash-es";
2
- import { defineComponent, inject, ref, shallowRef, provide, createVNode, Fragment, useTemplateRef, openBlock, createElementBlock, renderSlot } from "vue";
3
- import { withInstall } from "../_util/vue/install.js";
4
- import { ElDialog } from "element-plus";
5
- import { addUnit } from "../_util/dom/style.js";
6
- import { modalLocatorContextKey, modalContextKey } from "./types.js";
7
- const Modal = /* @__PURE__ */ defineComponent({
2
+ import { defineComponent as g, inject as L, ref as o, shallowRef as O, provide as M, createVNode as w, Fragment as P, useTemplateRef as k, openBlock as E, createElementBlock as T, renderSlot as b } from "vue";
3
+ import { withInstall as j } from "../_util/vue/install.js";
4
+ import { ElDialog as B } from "element-plus";
5
+ import { addUnit as I } from "../_util/dom/style.js";
6
+ import { modalLocatorContextKey as x, modalContextKey as K } from "./types.js";
7
+ const R = /* @__PURE__ */ g({
8
8
  name: "OModal",
9
- setup(props, {
10
- slots,
11
- attrs,
12
- emit,
13
- expose
9
+ setup(l, {
10
+ slots: a,
11
+ attrs: t,
12
+ emit: u,
13
+ expose: c
14
14
  }) {
15
- const modalLocator = inject(modalLocatorContextKey);
16
- const show = ref(false);
17
- const title = ref();
18
- const content = shallowRef();
19
- const contentProps = ref();
20
- const width = ref();
21
- const height = ref();
22
- const __resolve = ref();
23
- const showClose = ref(true);
24
- const appendTo = ref();
25
- const _open = async (options) => {
26
- show.value = true;
27
- title.value = options.title;
28
- content.value = options.content;
29
- if (options.contentProps) {
30
- contentProps.value = options.contentProps;
31
- } else {
32
- contentProps.value = {};
33
- }
34
- if (options.width) {
35
- width.value = options.width;
36
- }
37
- if (options.height) {
38
- height.value = addUnit(options.height);
39
- }
40
- if (options.showClose != void 0 && options.showClose == false) {
41
- showClose.value = false;
42
- }
43
- if (options.locator) {
44
- appendTo.value = options.locator;
45
- } else {
46
- if (modalLocator && modalLocator.locator.value) {
47
- appendTo.value = modalLocator.locator.value;
48
- }
49
- }
50
- const promise = new Promise((resolve, reject) => {
51
- __resolve.value = resolve;
52
- });
53
- return promise;
54
- };
55
- expose({
56
- open: _open
15
+ const d = L(x), n = o(!1), i = o(), v = O(), r = o(), f = o(), m = o(), h = o(), p = o(!0), s = o();
16
+ c({
17
+ open: async (e) => (n.value = !0, i.value = e.title, v.value = e.content, e.contentProps ? r.value = e.contentProps : r.value = {}, e.width && (f.value = e.width), e.height && (m.value = I(e.height)), e.showClose != null && e.showClose == !1 && (p.value = !1), e.locator ? s.value = e.locator : d && d.locator.value && (s.value = d.locator.value), new Promise((y, S) => {
18
+ h.value = y;
19
+ }))
57
20
  });
58
- const _close = (options) => {
59
- const resolve = __resolve.value;
60
- show.value = false;
61
- title.value = void 0;
62
- content.value = void 0;
63
- contentProps.value = void 0;
64
- width.value = void 0;
65
- height.value = void 0;
66
- __resolve.value = void 0;
67
- showClose.value = true;
68
- appendTo.value = void 0;
69
- resolve && resolve(options);
21
+ const C = (e) => {
22
+ const _ = h.value;
23
+ n.value = !1, i.value = void 0, v.value = void 0, r.value = void 0, f.value = void 0, m.value = void 0, h.value = void 0, p.value = !0, s.value = void 0, _ && _(e);
70
24
  };
71
- provide(modalContextKey, {
72
- close: _close
73
- });
74
- return () => {
75
- const Children = content.value;
76
- return show.value ? createVNode(ElDialog, {
77
- "title": title.value,
78
- "width": width.value,
79
- "modelValue": show.value,
80
- "beforeClose": _close,
81
- "draggable": true,
82
- "closeOnClickModal": false,
83
- "closeOnPressEscape": false,
84
- "showClose": showClose.value,
85
- "alignCenter": true,
86
- "style": {
87
- height: height.value
25
+ return M(K, {
26
+ close: C
27
+ }), () => {
28
+ const e = v.value;
29
+ return n.value ? w(B, {
30
+ title: i.value,
31
+ width: f.value,
32
+ modelValue: n.value,
33
+ beforeClose: C,
34
+ draggable: !0,
35
+ closeOnClickModal: !1,
36
+ closeOnPressEscape: !1,
37
+ showClose: p.value,
38
+ alignCenter: !0,
39
+ style: {
40
+ height: m.value
88
41
  },
89
- "appendTo": appendTo.value
42
+ appendTo: s.value
90
43
  }, {
91
- default: () => [createVNode(Children, contentProps.value, null)]
92
- }) : createVNode(Fragment, null, null);
44
+ default: () => [w(e, r.value, null)]
45
+ }) : w(P, null, null);
93
46
  };
94
47
  }
95
- });
96
- const _hoisted_1 = {
48
+ }), V = {
97
49
  ref: "modal-locator",
98
50
  class: "orion-modal-locator"
99
- };
100
- const _sfc_main = /* @__PURE__ */ defineComponent({
101
- ...{ name: "OModalLocator", inheritAttrs: true },
51
+ }, A = /* @__PURE__ */ g({
52
+ name: "OModalLocator",
53
+ inheritAttrs: !0,
102
54
  __name: "ModalLocator",
103
- setup(__props) {
104
- const locator = useTemplateRef("modal-locator");
105
- provide(modalLocatorContextKey, {
106
- locator
107
- });
108
- return (_ctx, _cache) => {
109
- return openBlock(), createElementBlock("div", _hoisted_1, [
110
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
111
- ], 512);
112
- };
113
- }
114
- });
115
- const _export_sfc = (sfc, props) => {
116
- const target = sfc.__vccOpts || sfc;
117
- for (const [key, val] of props) {
118
- target[key] = val;
55
+ setup(l) {
56
+ const a = k("modal-locator");
57
+ return M(x, {
58
+ locator: a
59
+ }), (t, u) => (E(), T("div", V, [
60
+ b(t.$slots, "default", {}, void 0, !0)
61
+ ], 512));
119
62
  }
120
- return target;
121
- };
122
- const ModalLocator = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0fd5a1a9"]]);
123
- const index = withInstall(Modal, { ModalLocator });
63
+ }), D = (l, a) => {
64
+ const t = l.__vccOpts || l;
65
+ for (const [u, c] of a)
66
+ t[u] = c;
67
+ return t;
68
+ }, F = /* @__PURE__ */ D(A, [["__scopeId", "data-v-0fd5a1a9"]]), J = j(R, { ModalLocator: F });
124
69
  export {
125
- index as default
70
+ J as default
126
71
  };
127
72
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Modal/Modal.tsx","../../../src/components/Modal/ModalLocator.vue","../../../src/components/Modal/index.ts"],"sourcesContent":["import { defineComponent, inject, provide, ref, shallowRef } from 'vue'\r\nimport { ElDialog } from 'element-plus'\r\nimport { addUnit } from '../_util'\r\nimport { modalContextKey, modalLocatorContextKey, ModalOptions } from './types'\r\n\r\nconst Modal = defineComponent({\r\n name: 'OModal',\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const modalLocator = inject(modalLocatorContextKey)\r\n\r\n const show = ref(false)\r\n const title = ref<string>()\r\n const content = shallowRef()\r\n const contentProps = ref<Record<string, any>>()\r\n const width = ref<number | string>()\r\n const height = ref<number | string>()\r\n const __resolve = ref<(value: Record<string, any> | PromiseLike<Record<string, any>>) => void>()\r\n const showClose = ref(true)\r\n const appendTo = ref<string | HTMLElement>()\r\n\r\n const _open: (options: ModalOptions) => Promise<Record<string, any>> = async (options) => {\r\n show.value = true\r\n title.value = options.title\r\n content.value = options.content\r\n if (options.contentProps) {\r\n contentProps.value = options.contentProps\r\n } else {\r\n contentProps.value = {}\r\n }\r\n if (options.width) {\r\n width.value = options.width\r\n }\r\n if (options.height) {\r\n height.value = addUnit(options.height)\r\n }\r\n if (options.showClose != undefined && options.showClose == false) {\r\n showClose.value = false\r\n }\r\n if (options.locator) {\r\n appendTo.value = options.locator\r\n } else {\r\n if (modalLocator && modalLocator.locator.value) {\r\n appendTo.value = modalLocator.locator.value\r\n }\r\n }\r\n\r\n const promise = new Promise<Record<string, any>>((resolve, reject) => {\r\n __resolve.value = resolve\r\n })\r\n\r\n return promise\r\n }\r\n expose({\r\n open: _open,\r\n })\r\n\r\n const _close: (options: Record<string, any>) => void = (options) => {\r\n const resolve = __resolve.value\r\n\r\n show.value = false\r\n title.value = undefined\r\n content.value = undefined\r\n contentProps.value = undefined\r\n width.value = undefined\r\n height.value = undefined\r\n __resolve.value = undefined\r\n showClose.value = true\r\n appendTo.value = undefined\r\n\r\n resolve && resolve(options)\r\n }\r\n provide(modalContextKey, { close: _close })\r\n\r\n return () => {\r\n const Children = content.value\r\n return show.value ? (\r\n <ElDialog\r\n title={title.value}\r\n width={width.value}\r\n modelValue={show.value}\r\n beforeClose={_close}\r\n draggable={true}\r\n closeOnClickModal={false}\r\n closeOnPressEscape={false}\r\n showClose={showClose.value}\r\n alignCenter={true}\r\n style={{ height: height.value }}\r\n appendTo={appendTo.value}\r\n >\r\n <Children {...contentProps.value}></Children>\r\n </ElDialog>\r\n ) : (\r\n <></>\r\n )\r\n }\r\n },\r\n})\r\n\r\nexport default Modal\r\n","<template>\r\n <div ref=\"modal-locator\" class=\"orion-modal-locator\"><slot></slot></div>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { provide, useTemplateRef } from 'vue'\r\nimport { modalLocatorContextKey } from './types'\r\n\r\ndefineOptions({ name: 'OModalLocator', inheritAttrs: true })\r\nconst locator = useTemplateRef('modal-locator')\r\n\r\nprovide(modalLocatorContextKey, {\r\n locator,\r\n})\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.orion-modal-locator {\r\n width: 100%;\r\n height: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n position: relative;\r\n\r\n :deep(> .el-overlay) {\r\n position: absolute;\r\n\r\n > .el-overlay-dialog {\r\n position: absolute;\r\n }\r\n }\r\n}\r\n</style>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Modal from './Modal'\r\nimport ModalLocator from './ModalLocator.vue'\r\n\r\nexport default withInstall<typeof Modal, { ModalLocator: typeof ModalLocator }>(Modal, { ModalLocator })\r\n"],"names":["Modal","defineComponent","name","setup","props","slots","attrs","emit","expose","modalLocator","inject","modalLocatorContextKey","show","ref","title","content","shallowRef","contentProps","width","height","__resolve","showClose","appendTo","_open","options","value","addUnit","undefined","locator","promise","Promise","resolve","reject","open","_close","provide","modalContextKey","close","Children","_createVNode","ElDialog","default","_Fragment"],"mappings":";;;;;;AAKA,MAAMA,QAAQC,gCAAgB;AAAA,EAC5BC,MAAM;AAAA,EACNC,MAAMC,OAAO;AAAA,IAAEC;AAAAA,IAAOC;AAAAA,IAAOC;AAAAA,IAAMC;AAAAA,EAAO,GAAG;AAC3C,UAAMC,eAAeC,OAAOC,sBAAsB;AAElD,UAAMC,OAAOC,IAAI,KAAK;AACtB,UAAMC,QAAQD;AACd,UAAME,UAAUC;AAChB,UAAMC,eAAeJ;AACrB,UAAMK,QAAQL;AACd,UAAMM,SAASN;AACf,UAAMO,YAAYP;AAClB,UAAMQ,YAAYR,IAAI,IAAI;AAC1B,UAAMS,WAAWT;AAEjB,UAAMU,QAAiE,OAAOC,YAAY;AACxFZ,WAAKa,QAAQ;AACbX,YAAMW,QAAQD,QAAQV;AACtBC,cAAQU,QAAQD,QAAQT;AACxB,UAAIS,QAAQP,cAAc;AACxBA,qBAAaQ,QAAQD,QAAQP;AAAAA,MAC/B,OAAO;AACLA,qBAAaQ,QAAQ;MACvB;AACA,UAAID,QAAQN,OAAO;AACjBA,cAAMO,QAAQD,QAAQN;AAAAA,MACxB;AACA,UAAIM,QAAQL,QAAQ;AAClBA,eAAOM,QAAQC,QAAQF,QAAQL,MAAM;AAAA,MACvC;AACA,UAAIK,QAAQ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;AAAA,MAAAc,CAAAA,IAAAA,YAAAG,UAInC,MAAA,IAAA;AAAA;EAEL;AACF,CAAC;;;;;;;;;ACxFK,UAAA,UAAU,eAAe,eAAe;AAE9C,YAAQ,wBAAwB;AAAA,MAC9B;AAAA,IAAA,CACD;;;;;;;;;;;;;;;;ACPD,MAAA,QAAe,YAAiE,OAAO,EAAE,cAAc;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Modal/Modal.tsx","../../../src/components/Modal/ModalLocator.vue","../../../src/components/Modal/index.ts"],"sourcesContent":["import { defineComponent, inject, provide, ref, shallowRef } from 'vue'\r\nimport { ElDialog } from 'element-plus'\r\nimport { addUnit } from '../_util'\r\nimport { modalContextKey, modalLocatorContextKey, ModalOptions } from './types'\r\n\r\nconst Modal = defineComponent({\r\n name: 'OModal',\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const modalLocator = inject(modalLocatorContextKey)\r\n\r\n const show = ref(false)\r\n const title = ref<string>()\r\n const content = shallowRef()\r\n const contentProps = ref<Record<string, any>>()\r\n const width = ref<number | string>()\r\n const height = ref<number | string>()\r\n const __resolve = ref<(value: Record<string, any> | PromiseLike<Record<string, any>>) => void>()\r\n const showClose = ref(true)\r\n const appendTo = ref<HTMLElement>()\r\n\r\n const _open: (options: ModalOptions) => Promise<Record<string, any>> = async (options) => {\r\n show.value = true\r\n title.value = options.title\r\n content.value = options.content\r\n if (options.contentProps) {\r\n contentProps.value = options.contentProps\r\n } else {\r\n contentProps.value = {}\r\n }\r\n if (options.width) {\r\n width.value = options.width\r\n }\r\n if (options.height) {\r\n height.value = addUnit(options.height)\r\n }\r\n if (options.showClose != undefined && options.showClose == false) {\r\n showClose.value = false\r\n }\r\n if (options.locator) {\r\n appendTo.value = options.locator\r\n } else {\r\n if (modalLocator && modalLocator.locator.value) {\r\n appendTo.value = modalLocator.locator.value\r\n }\r\n }\r\n\r\n const promise = new Promise<Record<string, any>>((resolve, reject) => {\r\n __resolve.value = resolve\r\n })\r\n\r\n return promise\r\n }\r\n expose({\r\n open: _open,\r\n })\r\n\r\n const _close: (options: Record<string, any>) => void = (options) => {\r\n const resolve = __resolve.value\r\n\r\n show.value = false\r\n title.value = undefined\r\n content.value = undefined\r\n contentProps.value = undefined\r\n width.value = undefined\r\n height.value = undefined\r\n __resolve.value = undefined\r\n showClose.value = true\r\n appendTo.value = undefined\r\n\r\n resolve && resolve(options)\r\n }\r\n provide(modalContextKey, { close: _close })\r\n\r\n return () => {\r\n const Children = content.value\r\n return show.value ? (\r\n <ElDialog\r\n title={title.value}\r\n width={width.value}\r\n modelValue={show.value}\r\n beforeClose={_close}\r\n draggable={true}\r\n closeOnClickModal={false}\r\n closeOnPressEscape={false}\r\n showClose={showClose.value}\r\n alignCenter={true}\r\n style={{ height: height.value }}\r\n appendTo={appendTo.value}\r\n >\r\n <Children {...contentProps.value}></Children>\r\n </ElDialog>\r\n ) : (\r\n <></>\r\n )\r\n }\r\n },\r\n})\r\n\r\nexport default Modal\r\n","<template>\r\n <div ref=\"modal-locator\" class=\"orion-modal-locator\"><slot></slot></div>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { provide, useTemplateRef } from 'vue'\r\nimport { modalLocatorContextKey } from './types'\r\n\r\ndefineOptions({ name: 'OModalLocator', inheritAttrs: true })\r\nconst locator = useTemplateRef('modal-locator')\r\n\r\nprovide(modalLocatorContextKey, {\r\n locator,\r\n})\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.orion-modal-locator {\r\n width: 100%;\r\n height: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n position: relative;\r\n\r\n :deep(> .el-overlay) {\r\n position: absolute;\r\n\r\n > .el-overlay-dialog {\r\n position: absolute;\r\n }\r\n }\r\n}\r\n</style>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Modal from './Modal'\r\nimport ModalLocator from './ModalLocator.vue'\r\n\r\nexport default withInstall<typeof Modal, { ModalLocator: typeof ModalLocator }>(Modal, { ModalLocator })\r\n"],"names":["Modal","defineComponent","name","setup","props","slots","attrs","emit","expose","modalLocator","inject","modalLocatorContextKey","show","ref","title","content","shallowRef","contentProps","width","height","__resolve","showClose","appendTo","open","options","value","addUnit","undefined","locator","Promise","resolve","reject","_close","provide","modalContextKey","close","Children","_createVNode","ElDialog","default","_Fragment","useTemplateRef","index","withInstall","ModalLocator"],"mappings":";;;;;;AAKA,MAAMA,IAAQC,gBAAAA,EAAgB;AAAA,EAC5BC,MAAM;AAAA,EACNC,MAAMC,GAAO;AAAA,IAAEC,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAeC,EAAOC,CAAsB,GAE5CC,IAAOC,EAAI,EAAK,GAChBC,IAAQD,KACRE,IAAUC,KACVC,IAAeJ,KACfK,IAAQL,KACRM,IAASN,KACTO,IAAYP,KACZQ,IAAYR,EAAI,EAAI,GACpBS,IAAWT;AAkCjBL,IAAAA,EAAO;AAAA,MACLe,MAjCqE,OAAOC,OAC5EZ,EAAKa,QAAQ,IACbX,EAAMW,QAAQD,EAAQV,OACtBC,EAAQU,QAAQD,EAAQT,SACpBS,EAAQP,eACVA,EAAaQ,QAAQD,EAAQP,eAE7BA,EAAaQ,QAAQ,IAEnBD,EAAQN,UACVA,EAAMO,QAAQD,EAAQN,QAEpBM,EAAQL,WACVA,EAAOM,QAAQC,EAAQF,EAAQL,MAAM,IAEnCK,EAAQH,aAAaM,QAAaH,EAAQH,aAAa,OACzDA,EAAUI,QAAQ,KAEhBD,EAAQI,UACVN,EAASG,QAAQD,EAAQI,UAErBnB,KAAgBA,EAAamB,QAAQH,UACvCH,EAASG,QAAQhB,EAAamB,QAAQH,QAI1B,IAAII,QAA6B,CAACC,GAASC,MAAW;AACpEX,QAAAA,EAAUK,QAAQK;AAAAA,MACpB,CAAC;AAAA,IAMH,CAAC;AAED,UAAME,IAAkDR,CAAAA,MAAY;AAClE,YAAMM,IAAUV,EAAUK;AAE1Bb,MAAAA,EAAKa,QAAQ,IACbX,EAAMW,QAAQE,QACdZ,EAAQU,QAAQE,QAChBV,EAAaQ,QAAQE,QACrBT,EAAMO,QAAQE,QACdR,EAAOM,QAAQE,QACfP,EAAUK,QAAQE,QAClBN,EAAUI,QAAQ,IAClBH,EAASG,QAAQE,QAEjBG,KAAWA,EAAQN,CAAO;AAAA;AAE5BS,WAAAA,EAAQC,GAAiB;AAAA,MAAEC,OAAOH;AAAAA,IAAO,CAAC,GAEnC,MAAM;AACX,YAAMI,IAAWrB,EAAQU;AACzB,aAAOb,EAAKa,QAAKY,EAAAC,GAAA;AAAA,QAAA,OAENxB,EAAMW;AAAAA,QAAK,OACXP,EAAMO;AAAAA,QAAK,YACNb,EAAKa;AAAAA,QAAK,aACTO;AAAAA,QAAM,WACR;AAAA,QAAI,mBACI;AAAA,QAAK,oBACJ;AAAA,QAAK,WACdX,EAAUI;AAAAA,QAAK,aACb;AAAA,QAAI,OACV;AAAA,UAAEN,QAAQA,EAAOM;AAAAA,QAAO;AAAA,QAAA,UACrBH,EAASG;AAAAA,MAAK,GAAA;AAAA,QAAAc,SAAAA,MAAAF,CAAAA,EAAAD,GAEVnB,EAAaQ,OAAK,IAAA,CAAA;AAAA,MAAAY,CAAAA,IAAAA,EAAAG,GAInC,MAAA,IAAA;AAAA;EAEL;AACF,CAAC;;;;;;;;ACxFK,UAAAZ,IAAUa,EAAe,eAAe;AAE9C,WAAAR,EAAQtB,GAAwB;AAAA,MAC9B,SAAAiB;AAAA,IAAA,CACD;;;;;;;;;iECPDc,IAAeC,EAAiE3C,GAAO,EAAE,cAAA4C,GAAc;"}
@@ -6,7 +6,7 @@ export interface ModalOptions {
6
6
  width?: number | string;
7
7
  height?: number | string;
8
8
  showClose?: boolean;
9
- locator?: string | HTMLElement;
9
+ locator?: HTMLElement;
10
10
  }
11
11
  export interface ModalContext {
12
12
  close: (options: Record<string, any>) => void;
@@ -1,7 +1,6 @@
1
- const modalContextKey = Symbol("modalContextKey");
2
- const modalLocatorContextKey = Symbol("modalLocatorContextKey");
1
+ const o = Symbol("modalContextKey"), t = Symbol("modalLocatorContextKey");
3
2
  export {
4
- modalContextKey,
5
- modalLocatorContextKey
3
+ o as modalContextKey,
4
+ t as modalLocatorContextKey
6
5
  };
7
6
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../../src/components/Modal/types.ts"],"sourcesContent":["import { InjectionKey, ShallowRef, VNode } from 'vue'\r\n\r\nexport interface ModalOptions {\r\n title: string\r\n content: VNode\r\n contentProps?: Record<string, any>\r\n width?: number | string\r\n height?: number | string\r\n showClose?: boolean\r\n locator?: string | HTMLElement\r\n}\r\n\r\nexport interface ModalContext {\r\n close: (options: Record<string, any>) => void\r\n}\r\n\r\nexport const modalContextKey: InjectionKey<ModalContext> = Symbol('modalContextKey')\r\n\r\nexport interface ModalLocatorContext {\r\n locator: ShallowRef<HTMLElement | null>\r\n}\r\n\r\nexport const modalLocatorContextKey: InjectionKey<ModalLocatorContext> = Symbol('modalLocatorContextKey')\r\n"],"names":[],"mappings":"AAgBa,MAAA,kBAA8C,OAAO,iBAAiB;AAMtE,MAAA,yBAA4D,OAAO,wBAAwB;"}
1
+ {"version":3,"file":"types.js","sources":["../../../src/components/Modal/types.ts"],"sourcesContent":["import { InjectionKey, ShallowRef, VNode } from 'vue'\r\n\r\nexport interface ModalOptions {\r\n title: string\r\n content: VNode\r\n contentProps?: Record<string, any>\r\n width?: number | string\r\n height?: number | string\r\n showClose?: boolean\r\n locator?: HTMLElement\r\n}\r\n\r\nexport interface ModalContext {\r\n close: (options: Record<string, any>) => void\r\n}\r\n\r\nexport const modalContextKey: InjectionKey<ModalContext> = Symbol('modalContextKey')\r\n\r\nexport interface ModalLocatorContext {\r\n locator: ShallowRef<HTMLElement | null>\r\n}\r\n\r\nexport const modalLocatorContextKey: InjectionKey<ModalLocatorContext> = Symbol('modalLocatorContextKey')\r\n"],"names":["modalContextKey","modalLocatorContextKey"],"mappings":"AAgBa,MAAAA,IAA8C,OAAO,iBAAiB,GAMtEC,IAA4D,OAAO,wBAAwB;"}
@@ -1,9 +1,9 @@
1
- import { inject } from "vue";
2
- import { modalContextKey } from "./types.js";
3
- function useModal() {
4
- return inject(modalContextKey);
1
+ import { inject as o } from "vue";
2
+ import { modalContextKey as t } from "./types.js";
3
+ function m() {
4
+ return o(t);
5
5
  }
6
6
  export {
7
- useModal as default
7
+ m as default
8
8
  };
9
9
  //# sourceMappingURL=useModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useModal.js","sources":["../../../src/components/Modal/useModal.ts"],"sourcesContent":["import { inject } from 'vue'\r\nimport { modalContextKey } from './types'\r\n\r\nexport default function useModal() {\r\n return inject(modalContextKey)\r\n}\r\n"],"names":[],"mappings":";;AAGA,SAAwB,WAAW;AACjC,SAAO,OAAO,eAAe;AAC/B;"}
1
+ {"version":3,"file":"useModal.js","sources":["../../../src/components/Modal/useModal.ts"],"sourcesContent":["import { inject } from 'vue'\r\nimport { modalContextKey } from './types'\r\n\r\nexport default function useModal() {\r\n return inject(modalContextKey)\r\n}\r\n"],"names":["useModal","inject","modalContextKey"],"mappings":";;AAGA,SAAwBA,IAAW;AACjC,SAAOC,EAAOC,CAAe;AAC/B;"}
@@ -1,4 +1,30 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes, CSSProperties } from 'vue';
2
+ type rowClassNameFn = (data: {
3
+ rowData: any;
4
+ rowIndex: number;
5
+ }) => string;
6
+ type rowStyleFn = (data: {
7
+ rowData: any;
8
+ rowIndex: number;
9
+ }) => CSSProperties;
10
+ type cellClassNameFn = (data: {
11
+ rowData: any;
12
+ column: {
13
+ name: string;
14
+ head: string;
15
+ };
16
+ rowIndex: number;
17
+ columnIndex: number;
18
+ }) => string;
19
+ type cellStyleFn = (data: {
20
+ rowData: any;
21
+ column: {
22
+ name: string;
23
+ head: string;
24
+ };
25
+ rowIndex: number;
26
+ columnIndex: number;
27
+ }) => CSSProperties;
2
28
  export declare const pagetableProps: () => {
3
29
  data: {
4
30
  type: PropType<any[]>;
@@ -22,6 +48,10 @@ export declare const pagetableProps: () => {
22
48
  total?: number;
23
49
  };
24
50
  };
51
+ paginationTeleported: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
25
55
  showRowNumber: {
26
56
  type: BooleanConstructor;
27
57
  default: boolean;
@@ -38,6 +68,22 @@ export declare const pagetableProps: () => {
38
68
  type: PropType<"" | "small" | "default" | "large">;
39
69
  default: "" | "small" | "default" | "large";
40
70
  };
71
+ rowClassName: {
72
+ type: PropType<string | rowClassNameFn>;
73
+ default: string | rowClassNameFn;
74
+ };
75
+ rowStyle: {
76
+ type: PropType<CSSProperties | rowStyleFn>;
77
+ default: CSSProperties | rowStyleFn;
78
+ };
79
+ cellClassName: {
80
+ type: PropType<string | cellClassNameFn>;
81
+ default: string | cellClassNameFn;
82
+ };
83
+ cellStyle: {
84
+ type: PropType<CSSProperties | cellStyleFn>;
85
+ default: CSSProperties | cellStyleFn;
86
+ };
41
87
  };
42
88
  export type PagetableProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableProps>>>;
43
89
  declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
@@ -63,6 +109,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
63
109
  total?: number;
64
110
  };
65
111
  };
112
+ paginationTeleported: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
66
116
  showRowNumber: {
67
117
  type: BooleanConstructor;
68
118
  default: boolean;
@@ -79,6 +129,22 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
79
129
  type: PropType<"" | "small" | "default" | "large">;
80
130
  default: "" | "small" | "default" | "large";
81
131
  };
132
+ rowClassName: {
133
+ type: PropType<string | rowClassNameFn>;
134
+ default: string | rowClassNameFn;
135
+ };
136
+ rowStyle: {
137
+ type: PropType<CSSProperties | rowStyleFn>;
138
+ default: CSSProperties | rowStyleFn;
139
+ };
140
+ cellClassName: {
141
+ type: PropType<string | cellClassNameFn>;
142
+ default: string | cellClassNameFn;
143
+ };
144
+ cellStyle: {
145
+ type: PropType<CSSProperties | cellStyleFn>;
146
+ default: CSSProperties | cellStyleFn;
147
+ };
82
148
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<ExtractPropTypes<{
83
149
  data: {
84
150
  type: PropType<any[]>;
@@ -102,6 +168,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
102
168
  total?: number;
103
169
  };
104
170
  };
171
+ paginationTeleported: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
105
175
  showRowNumber: {
106
176
  type: BooleanConstructor;
107
177
  default: boolean;
@@ -118,6 +188,22 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
118
188
  type: PropType<"" | "small" | "default" | "large">;
119
189
  default: "" | "small" | "default" | "large";
120
190
  };
191
+ rowClassName: {
192
+ type: PropType<string | rowClassNameFn>;
193
+ default: string | rowClassNameFn;
194
+ };
195
+ rowStyle: {
196
+ type: PropType<CSSProperties | rowStyleFn>;
197
+ default: CSSProperties | rowStyleFn;
198
+ };
199
+ cellClassName: {
200
+ type: PropType<string | cellClassNameFn>;
201
+ default: string | cellClassNameFn;
202
+ };
203
+ cellStyle: {
204
+ type: PropType<CSSProperties | cellStyleFn>;
205
+ default: CSSProperties | cellStyleFn;
206
+ };
121
207
  }>> & Readonly<{
122
208
  onSelectionChange?: ((...args: any[]) => any) | undefined;
123
209
  onCurrentRowChange?: ((...args: any[]) => any) | undefined;
@@ -136,8 +222,13 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
136
222
  total?: number;
137
223
  };
138
224
  tailData: Record<string, any>;
225
+ paginationTeleported: boolean;
139
226
  showRowNumber: boolean;
140
227
  selectionMode: boolean;
141
228
  currentRowMode: boolean;
229
+ rowClassName: string | rowClassNameFn;
230
+ rowStyle: CSSProperties | rowStyleFn;
231
+ cellClassName: string | cellClassNameFn;
232
+ cellStyle: CSSProperties | cellStyleFn;
142
233
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
143
234
  export default _default;
@@ -10,6 +10,10 @@ export declare const pagetableColumnButtongroupProps: () => {
10
10
  type: PropType<"center" | "left" | "right">;
11
11
  default: "center" | "left" | "right";
12
12
  };
13
+ bodyAlign: {
14
+ type: PropType<"center" | "left" | "right">;
15
+ default: "center" | "left" | "right";
16
+ };
13
17
  name: {
14
18
  type: PropType<string>;
15
19
  default: string;
@@ -37,6 +41,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
37
41
  type: PropType<"center" | "left" | "right">;
38
42
  default: "center" | "left" | "right";
39
43
  };
44
+ bodyAlign: {
45
+ type: PropType<"center" | "left" | "right">;
46
+ default: "center" | "left" | "right";
47
+ };
40
48
  name: {
41
49
  type: PropType<string>;
42
50
  default: string;
@@ -62,6 +70,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
62
70
  type: PropType<"center" | "left" | "right">;
63
71
  default: "center" | "left" | "right";
64
72
  };
73
+ bodyAlign: {
74
+ type: PropType<"center" | "left" | "right">;
75
+ default: "center" | "left" | "right";
76
+ };
65
77
  name: {
66
78
  type: PropType<string>;
67
79
  default: string;
@@ -83,6 +95,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
83
95
  head: string;
84
96
  width: string | boolean;
85
97
  name: string;
98
+ bodyAlign: "center" | "left" | "right";
86
99
  tail: string | boolean;
87
100
  headAlign: "center" | "left" | "right";
88
101
  }, CustomSlotsType<{
@@ -9,6 +9,10 @@ export declare const pagetableColumnDateProps: () => {
9
9
  type: PropType<"center" | "left" | "right">;
10
10
  default: "center" | "left" | "right";
11
11
  };
12
+ bodyAlign: {
13
+ type: PropType<"center" | "left" | "right">;
14
+ default: "center" | "left" | "right";
15
+ };
12
16
  name: {
13
17
  type: PropType<string>;
14
18
  default: string;
@@ -44,6 +48,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
44
48
  type: PropType<"center" | "left" | "right">;
45
49
  default: "center" | "left" | "right";
46
50
  };
51
+ bodyAlign: {
52
+ type: PropType<"center" | "left" | "right">;
53
+ default: "center" | "left" | "right";
54
+ };
47
55
  name: {
48
56
  type: PropType<string>;
49
57
  default: string;
@@ -77,6 +85,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
77
85
  type: PropType<"center" | "left" | "right">;
78
86
  default: "center" | "left" | "right";
79
87
  };
88
+ bodyAlign: {
89
+ type: PropType<"center" | "left" | "right">;
90
+ default: "center" | "left" | "right";
91
+ };
80
92
  name: {
81
93
  type: PropType<string>;
82
94
  default: string;
@@ -107,6 +119,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
107
119
  width: string | boolean;
108
120
  name: string;
109
121
  format: string;
122
+ bodyAlign: "center" | "left" | "right";
110
123
  tail: string | boolean;
111
124
  headAlign: "center" | "left" | "right";
112
125
  sourceFormat: string;
@@ -9,6 +9,10 @@ export declare const pagetableColumnLinkProps: () => {
9
9
  type: PropType<"center" | "left" | "right">;
10
10
  default: "center" | "left" | "right";
11
11
  };
12
+ bodyAlign: {
13
+ type: PropType<"center" | "left" | "right">;
14
+ default: "center" | "left" | "right";
15
+ };
12
16
  name: {
13
17
  type: PropType<string>;
14
18
  default: string;
@@ -36,6 +40,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
36
40
  type: PropType<"center" | "left" | "right">;
37
41
  default: "center" | "left" | "right";
38
42
  };
43
+ bodyAlign: {
44
+ type: PropType<"center" | "left" | "right">;
45
+ default: "center" | "left" | "right";
46
+ };
39
47
  name: {
40
48
  type: PropType<string>;
41
49
  default: string;
@@ -61,6 +69,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
61
69
  type: PropType<"center" | "left" | "right">;
62
70
  default: "center" | "left" | "right";
63
71
  };
72
+ bodyAlign: {
73
+ type: PropType<"center" | "left" | "right">;
74
+ default: "center" | "left" | "right";
75
+ };
64
76
  name: {
65
77
  type: PropType<string>;
66
78
  default: string;
@@ -82,6 +94,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
82
94
  head: string;
83
95
  width: string | boolean;
84
96
  name: string;
97
+ bodyAlign: "center" | "left" | "right";
85
98
  tail: string | boolean;
86
99
  headAlign: "center" | "left" | "right";
87
100
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;