@tachybase/module-web 1.3.18 → 1.3.19

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 (396) hide show
  1. package/dist/client/MAppNotFound.d.ts +1 -0
  2. package/dist/client/MobileClientProvider.d.ts +2 -0
  3. package/dist/client/MobileLinkProvider.d.ts +1 -0
  4. package/dist/client/assistant-tool/Designable/DesignableButtonProvider.d.ts +1 -0
  5. package/dist/client/assistant-tool/Designable/plugin.d.ts +5 -0
  6. package/dist/client/assistant-tool/calculator/AutoScalingText.d.ts +3 -0
  7. package/dist/client/assistant-tool/calculator/Calculator.d.ts +2 -0
  8. package/dist/client/assistant-tool/calculator/CalculatorDisplay.d.ts +4 -0
  9. package/dist/client/assistant-tool/calculator/CalculatorKey.d.ts +5 -0
  10. package/dist/client/assistant-tool/calculator/CalculatorModalProvider.d.ts +9 -0
  11. package/dist/client/assistant-tool/calculator/CalculatorProvider.d.ts +1 -0
  12. package/dist/client/assistant-tool/calculator/Draggable.d.ts +8 -0
  13. package/dist/client/assistant-tool/calculator/plugin.d.ts +5 -0
  14. package/dist/client/assistant-tool/calculator/style.d.ts +3 -0
  15. package/dist/client/assistant-tool/search-and-jump/SearchAndJumpModelProvider.d.ts +16 -0
  16. package/dist/client/assistant-tool/search-and-jump/SearchAndJumpProvider.d.ts +1 -0
  17. package/dist/client/assistant-tool/search-and-jump/plugin.d.ts +5 -0
  18. package/dist/client/configuration/App.d.ts +1 -0
  19. package/dist/client/configuration/Interface.d.ts +1 -0
  20. package/dist/client/configuration/index.d.ts +2 -0
  21. package/dist/client/core/assets/svg/index.d.ts +4 -0
  22. package/dist/client/core/bridge/index.d.ts +2 -0
  23. package/dist/client/core/bridge/injects.d.ts +13 -0
  24. package/dist/client/core/bridge/native-call.d.ts +1 -0
  25. package/dist/client/core/index.d.ts +5 -0
  26. package/dist/client/core/schema/CustomColor.d.ts +1 -0
  27. package/dist/client/core/schema/CustomComponent.d.ts +1 -0
  28. package/dist/client/core/schema/common/index.d.ts +1 -0
  29. package/dist/client/core/schema/common/page.d.ts +16 -0
  30. package/dist/client/core/schema/components/antd-mobile/Cascader/AntdCadcader.d.ts +2 -0
  31. package/dist/client/core/schema/components/antd-mobile/Cascader/Cadcader.d.ts +3 -0
  32. package/dist/client/core/schema/components/antd-mobile/Cascader/ReadPretty.d.ts +2 -0
  33. package/dist/client/core/schema/components/antd-mobile/Cascader/defaultFieldNames.d.ts +5 -0
  34. package/dist/client/core/schema/components/antd-mobile/Cascader/index.d.ts +1 -0
  35. package/dist/client/core/schema/components/antd-mobile/Cascader/style.d.ts +3 -0
  36. package/dist/client/core/schema/components/antd-mobile/Checkbox/Checkbox.d.ts +7 -0
  37. package/dist/client/core/schema/components/antd-mobile/Checkbox/index.d.ts +1 -0
  38. package/dist/client/core/schema/components/antd-mobile/DatePicker/DatePicker.d.ts +2 -0
  39. package/dist/client/core/schema/components/antd-mobile/DatePicker/index.d.ts +1 -0
  40. package/dist/client/core/schema/components/antd-mobile/ImageUploader/ImageUploader.d.ts +4 -0
  41. package/dist/client/core/schema/components/antd-mobile/ImageUploader/index.d.ts +1 -0
  42. package/dist/client/core/schema/components/antd-mobile/Input/Input.d.ts +7 -0
  43. package/dist/client/core/schema/components/antd-mobile/Input/index.d.ts +1 -0
  44. package/dist/client/core/schema/components/antd-mobile/Radio/Radio.d.ts +7 -0
  45. package/dist/client/core/schema/components/antd-mobile/Radio/index.d.ts +1 -0
  46. package/dist/client/core/schema/components/antd-mobile/Select/AntdSelect.d.ts +2 -0
  47. package/dist/client/core/schema/components/antd-mobile/Select/AntdSelectContext.d.ts +2 -0
  48. package/dist/client/core/schema/components/antd-mobile/Select/CreateRecordAction.d.ts +1 -0
  49. package/dist/client/core/schema/components/antd-mobile/Select/Select.d.ts +4 -0
  50. package/dist/client/core/schema/components/antd-mobile/Select/index.d.ts +1 -0
  51. package/dist/client/core/schema/components/antd-mobile/Select/style.d.ts +4 -0
  52. package/dist/client/core/schema/components/antd-mobile/index.d.ts +7 -0
  53. package/dist/client/core/schema/components/container/Container.Designer.d.ts +1 -0
  54. package/dist/client/core/schema/components/container/Container.d.ts +7 -0
  55. package/dist/client/core/schema/components/container/index.d.ts +1 -0
  56. package/dist/client/core/schema/components/container/style.d.ts +5 -0
  57. package/dist/client/core/schema/components/header/Header.Designer.d.ts +1 -0
  58. package/dist/client/core/schema/components/header/Header.d.ts +11 -0
  59. package/dist/client/core/schema/components/header/HeaderShareModal.d.ts +6 -0
  60. package/dist/client/core/schema/components/header/index.d.ts +1 -0
  61. package/dist/client/core/schema/components/header/style.d.ts +8 -0
  62. package/dist/client/core/schema/components/image-search/ImageSearch.configure.d.ts +2 -0
  63. package/dist/client/core/schema/components/image-search/ImageSearch.initializer.d.ts +1 -0
  64. package/dist/client/core/schema/components/image-search/ImageSearch.provider.d.ts +4 -0
  65. package/dist/client/core/schema/components/image-search/ImageSearch.schema.d.ts +8 -0
  66. package/dist/client/core/schema/components/image-search/ImageSearch.view.d.ts +2 -0
  67. package/dist/client/core/schema/components/image-search/hooks/index.d.ts +1 -0
  68. package/dist/client/core/schema/components/image-search/hooks/useSelect.d.ts +3 -0
  69. package/dist/client/core/schema/components/image-search/index.d.ts +7 -0
  70. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.intializer.d.ts +1 -0
  71. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.schema.d.ts +11 -0
  72. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.setting.d.ts +2 -0
  73. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.toolbar.d.ts +1 -0
  74. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.view.d.ts +1 -0
  75. package/dist/client/core/schema/components/image-search/search-item/index.d.ts +7 -0
  76. package/dist/client/core/schema/components/image-search/search-item/useProps.Optional.d.ts +17 -0
  77. package/dist/client/core/schema/components/image-search/search-item/useProps.Related.d.ts +7 -0
  78. package/dist/client/core/schema/components/index.d.ts +11 -0
  79. package/dist/client/core/schema/components/menu/Menu.Designer.d.ts +2 -0
  80. package/dist/client/core/schema/components/menu/Menu.Item.d.ts +6 -0
  81. package/dist/client/core/schema/components/menu/Menu.d.ts +9 -0
  82. package/dist/client/core/schema/components/menu/MenuBlockInitializer.d.ts +1 -0
  83. package/dist/client/core/schema/components/menu/index.d.ts +2 -0
  84. package/dist/client/core/schema/components/menu/schema.d.ts +17 -0
  85. package/dist/client/core/schema/components/menu/style.d.ts +4 -0
  86. package/dist/client/core/schema/components/notice/index.d.ts +1 -0
  87. package/dist/client/core/schema/components/notice/schema-create/createGridCardBlockSchma.d.ts +57 -0
  88. package/dist/client/core/schema/components/notice/schema-initializer/NoticeBlockInitializer.d.ts +2 -0
  89. package/dist/client/core/schema/components/notice/schema-initializer/index.d.ts +1 -0
  90. package/dist/client/core/schema/components/page/Page.Designer.d.ts +1 -0
  91. package/dist/client/core/schema/components/page/Page.d.ts +7 -0
  92. package/dist/client/core/schema/components/page/index.d.ts +1 -0
  93. package/dist/client/core/schema/components/page/style.d.ts +6 -0
  94. package/dist/client/core/schema/components/settings/Settings.Designer.d.ts +1 -0
  95. package/dist/client/core/schema/components/settings/Settings.d.ts +5 -0
  96. package/dist/client/core/schema/components/settings/SettingsBlockInitializer.d.ts +1 -0
  97. package/dist/client/core/schema/components/settings/index.d.ts +2 -0
  98. package/dist/client/core/schema/components/swiper/SwiperBlock.d.ts +1 -0
  99. package/dist/client/core/schema/components/swiper/SwiperBlockInitializer.d.ts +1 -0
  100. package/dist/client/core/schema/components/swiper/SwiperFieldSettings.d.ts +2 -0
  101. package/dist/client/core/schema/components/swiper/SwiperPage.d.ts +1 -0
  102. package/dist/client/core/schema/components/swiper/index.d.ts +5 -0
  103. package/dist/client/core/schema/components/swiper/useSwiperBlockProps.d.ts +9 -0
  104. package/dist/client/core/schema/components/tab-bar/TabBar.Item.d.ts +8 -0
  105. package/dist/client/core/schema/components/tab-bar/TabBar.d.ts +6 -0
  106. package/dist/client/core/schema/components/tab-bar/index.d.ts +1 -0
  107. package/dist/client/core/schema/components/tab-bar/schema.d.ts +18 -0
  108. package/dist/client/core/schema/components/tab-search/components/TabSearch.d.ts +1 -0
  109. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItem.d.ts +1 -0
  110. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.d.ts +18 -0
  111. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemChild.d.ts +4 -0
  112. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.d.ts +1 -0
  113. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItemChild.d.ts +4 -0
  114. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItem.d.ts +1 -0
  115. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItemProps.d.ts +11 -0
  116. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldMItem.d.ts +7 -0
  117. package/dist/client/core/schema/components/tab-search/components/field-item/TabSerachFieldItemRelatedProps.d.ts +17 -0
  118. package/dist/client/core/schema/components/tab-search/components/field-item/hooks.d.ts +7 -0
  119. package/dist/client/core/schema/components/tab-search/components/field-item/index.d.ts +6 -0
  120. package/dist/client/core/schema/components/tab-search/components/index.d.ts +2 -0
  121. package/dist/client/core/schema/components/tab-search/create/createTabSearchBlockSchema.d.ts +6 -0
  122. package/dist/client/core/schema/components/tab-search/create/createTabSearchItemSchema.d.ts +24 -0
  123. package/dist/client/core/schema/components/tab-search/index.d.ts +4 -0
  124. package/dist/client/core/schema/components/tab-search/initializer/TabSearchAssociated.fields.d.ts +1 -0
  125. package/dist/client/core/schema/components/tab-search/initializer/TabSearchBlockInitializer.d.ts +1 -0
  126. package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializer.d.ts +2 -0
  127. package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.d.ts +1 -0
  128. package/dist/client/core/schema/components/tab-search/initializer/index.d.ts +3 -0
  129. package/dist/client/core/schema/components/tab-search/mapToMobile.d.ts +1 -0
  130. package/dist/client/core/schema/components/tab-search/provider/TabSearchProvider.d.ts +1 -0
  131. package/dist/client/core/schema/components/tab-search/provider/index.d.ts +1 -0
  132. package/dist/client/core/schema/components/tab-search/settings/TabSearchItemFieldSettings.d.ts +2 -0
  133. package/dist/client/core/schema/components/tab-search/settings/index.d.ts +1 -0
  134. package/dist/client/core/schema/components/tab-search/utils.d.ts +8 -0
  135. package/dist/client/core/schema/helpers/index.d.ts +67 -0
  136. package/dist/client/core/schema/hooks/index.d.ts +1 -0
  137. package/dist/client/core/schema/hooks/useSchemaPatch.d.ts +3 -0
  138. package/dist/client/core/schema/index.d.ts +6 -0
  139. package/dist/client/core/schema/initializers/BlockInitializers.d.ts +2 -0
  140. package/dist/client/core/schema/initializers/index.d.ts +1 -0
  141. package/dist/client/core/schema/scopes/grid-card.d.ts +15 -0
  142. package/dist/client/core/schema/scopes/index.d.ts +1 -0
  143. package/dist/client/devices/iOS6.d.ts +6 -0
  144. package/dist/client/devices/index.d.ts +2 -0
  145. package/dist/client/index.d.ts +13 -0
  146. package/dist/client/index.js +500 -0
  147. package/dist/client/locale/index.d.ts +5 -0
  148. package/dist/client/plugin-data-select/DataSelect.d.ts +33 -0
  149. package/dist/client/plugin-data-select/PluginDataSelect.d.ts +4 -0
  150. package/dist/client/plugin-data-select/settings.d.ts +7 -0
  151. package/dist/client/router/Application.d.ts +3 -0
  152. package/dist/client/router/InterfaceProvider.d.ts +4 -0
  153. package/dist/client/router/InterfaceRouter.d.ts +2 -0
  154. package/dist/client/router/OpenInNewTab.d.ts +1 -0
  155. package/dist/client/router/index.d.ts +1 -0
  156. package/dist/env.d.js +0 -0
  157. package/dist/externalVersion.js +17 -0
  158. package/dist/index.d.ts +2 -0
  159. package/dist/index.js +39 -0
  160. package/dist/locale/antd/ar_EG.js +1 -0
  161. package/dist/locale/antd/az_AZ.js +1 -0
  162. package/dist/locale/antd/bg_BG.js +1 -0
  163. package/dist/locale/antd/bn_BD.js +1 -0
  164. package/dist/locale/antd/by_BY.js +1 -0
  165. package/dist/locale/antd/ca_ES.js +1 -0
  166. package/dist/locale/antd/cs_CZ.js +1 -0
  167. package/dist/locale/antd/da_DK.js +1 -0
  168. package/dist/locale/antd/de_DE.js +1 -0
  169. package/dist/locale/antd/el_GR.js +1 -0
  170. package/dist/locale/antd/en_GB.js +1 -0
  171. package/dist/locale/antd/en_US.js +1 -0
  172. package/dist/locale/antd/es_ES.js +1 -0
  173. package/dist/locale/antd/et_EE.js +1 -0
  174. package/dist/locale/antd/eu_ES.js +1 -0
  175. package/dist/locale/antd/fa_IR.js +1 -0
  176. package/dist/locale/antd/fi_FI.js +1 -0
  177. package/dist/locale/antd/fr_BE.js +1 -0
  178. package/dist/locale/antd/fr_CA.js +1 -0
  179. package/dist/locale/antd/fr_FR.js +1 -0
  180. package/dist/locale/antd/ga_IE.js +1 -0
  181. package/dist/locale/antd/gl_ES.js +1 -0
  182. package/dist/locale/antd/he_IL.js +1 -0
  183. package/dist/locale/antd/hi_IN.js +1 -0
  184. package/dist/locale/antd/hr_HR.js +1 -0
  185. package/dist/locale/antd/hu_HU.js +1 -0
  186. package/dist/locale/antd/hy_AM.js +1 -0
  187. package/dist/locale/antd/id_ID.js +1 -0
  188. package/dist/locale/antd/index.js +1 -0
  189. package/dist/locale/antd/is_IS.js +1 -0
  190. package/dist/locale/antd/it_IT.js +1 -0
  191. package/dist/locale/antd/ja_JP.js +1 -0
  192. package/dist/locale/antd/ka_GE.js +1 -0
  193. package/dist/locale/antd/kk_KZ.js +1 -0
  194. package/dist/locale/antd/km_KH.js +1 -0
  195. package/dist/locale/antd/kmr_IQ.js +1 -0
  196. package/dist/locale/antd/kn_IN.js +1 -0
  197. package/dist/locale/antd/ko_KR.js +1 -0
  198. package/dist/locale/antd/ku_IQ.js +1 -0
  199. package/dist/locale/antd/lt_LT.js +1 -0
  200. package/dist/locale/antd/lv_LV.js +1 -0
  201. package/dist/locale/antd/mk_MK.js +1 -0
  202. package/dist/locale/antd/ml_IN.js +1 -0
  203. package/dist/locale/antd/mn_MN.js +1 -0
  204. package/dist/locale/antd/ms_MY.js +1 -0
  205. package/dist/locale/antd/my_MM.js +1 -0
  206. package/dist/locale/antd/nb_NO.js +1 -0
  207. package/dist/locale/antd/ne_NP.js +1 -0
  208. package/dist/locale/antd/nl_BE.js +1 -0
  209. package/dist/locale/antd/nl_NL.js +1 -0
  210. package/dist/locale/antd/pl_PL.js +1 -0
  211. package/dist/locale/antd/pt_BR.js +1 -0
  212. package/dist/locale/antd/pt_PT.js +1 -0
  213. package/dist/locale/antd/ro_RO.js +1 -0
  214. package/dist/locale/antd/ru_RU.js +1 -0
  215. package/dist/locale/antd/si_LK.js +1 -0
  216. package/dist/locale/antd/sk_SK.js +1 -0
  217. package/dist/locale/antd/sl_SI.js +1 -0
  218. package/dist/locale/antd/sr_RS.js +1 -0
  219. package/dist/locale/antd/sv_SE.js +1 -0
  220. package/dist/locale/antd/ta_IN.js +1 -0
  221. package/dist/locale/antd/th_TH.js +1 -0
  222. package/dist/locale/antd/tk_TK.js +1 -0
  223. package/dist/locale/antd/tr_TR.js +1 -0
  224. package/dist/locale/antd/uk_UA.js +1 -0
  225. package/dist/locale/antd/ur_PK.js +1 -0
  226. package/dist/locale/antd/useLocale.js +1 -0
  227. package/dist/locale/antd/uz_UZ.js +1 -0
  228. package/dist/locale/antd/vi_VN.js +1 -0
  229. package/dist/locale/antd/zh_CN.js +1 -0
  230. package/dist/locale/antd/zh_HK.js +1 -0
  231. package/dist/locale/antd/zh_TW.js +1 -0
  232. package/dist/locale/cron/zh_CN.js +33 -0
  233. package/dist/locale/cron/zh_TW.js +33 -0
  234. package/dist/locale/en_US.js +906 -0
  235. package/dist/locale/es_ES.js +755 -0
  236. package/dist/locale/fr_FR.js +775 -0
  237. package/dist/locale/index.js +165 -0
  238. package/dist/locale/ja_JP.js +694 -0
  239. package/dist/locale/ko_KR.js +890 -0
  240. package/dist/locale/pt_BR.js +734 -0
  241. package/dist/locale/ru_RU.js +570 -0
  242. package/dist/locale/tr_TR.js +567 -0
  243. package/dist/locale/uk_UA.js +775 -0
  244. package/dist/locale/zh-CN.js +1072 -0
  245. package/dist/locale/zh-TW.js +862 -0
  246. package/dist/node_modules/cronstrue/LICENSE +21 -0
  247. package/dist/node_modules/cronstrue/bin/cli.js +26 -0
  248. package/dist/node_modules/cronstrue/dist/cronParser.d.ts +13 -0
  249. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.d.ts +4 -0
  250. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.js +7938 -0
  251. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.min.js +1 -0
  252. package/dist/node_modules/cronstrue/dist/cronstrue.d.ts +4 -0
  253. package/dist/node_modules/cronstrue/dist/cronstrue.js +1 -0
  254. package/dist/node_modules/cronstrue/dist/cronstrue.min.js +1 -0
  255. package/dist/node_modules/cronstrue/dist/expressionDescriptor.d.ts +31 -0
  256. package/dist/node_modules/cronstrue/dist/i18n/allLocales.d.ts +37 -0
  257. package/dist/node_modules/cronstrue/dist/i18n/allLocalesLoader.d.ts +6 -0
  258. package/dist/node_modules/cronstrue/dist/i18n/enLocaleLoader.d.ts +6 -0
  259. package/dist/node_modules/cronstrue/dist/i18n/locale.d.ts +62 -0
  260. package/dist/node_modules/cronstrue/dist/i18n/localeLoader.d.ts +6 -0
  261. package/dist/node_modules/cronstrue/dist/i18n/locales/af.d.ts +56 -0
  262. package/dist/node_modules/cronstrue/dist/i18n/locales/ar.d.ts +56 -0
  263. package/dist/node_modules/cronstrue/dist/i18n/locales/be.d.ts +55 -0
  264. package/dist/node_modules/cronstrue/dist/i18n/locales/bg.d.ts +56 -0
  265. package/dist/node_modules/cronstrue/dist/i18n/locales/ca.d.ts +55 -0
  266. package/dist/node_modules/cronstrue/dist/i18n/locales/cs.d.ts +55 -0
  267. package/dist/node_modules/cronstrue/dist/i18n/locales/da.d.ts +55 -0
  268. package/dist/node_modules/cronstrue/dist/i18n/locales/de.d.ts +55 -0
  269. package/dist/node_modules/cronstrue/dist/i18n/locales/en.d.ts +56 -0
  270. package/dist/node_modules/cronstrue/dist/i18n/locales/es.d.ts +55 -0
  271. package/dist/node_modules/cronstrue/dist/i18n/locales/fa.d.ts +57 -0
  272. package/dist/node_modules/cronstrue/dist/i18n/locales/fi.d.ts +58 -0
  273. package/dist/node_modules/cronstrue/dist/i18n/locales/fr.d.ts +56 -0
  274. package/dist/node_modules/cronstrue/dist/i18n/locales/he.d.ts +55 -0
  275. package/dist/node_modules/cronstrue/dist/i18n/locales/hu.d.ts +56 -0
  276. package/dist/node_modules/cronstrue/dist/i18n/locales/id.d.ts +56 -0
  277. package/dist/node_modules/cronstrue/dist/i18n/locales/it.d.ts +55 -0
  278. package/dist/node_modules/cronstrue/dist/i18n/locales/ja.d.ts +60 -0
  279. package/dist/node_modules/cronstrue/dist/i18n/locales/ko.d.ts +60 -0
  280. package/dist/node_modules/cronstrue/dist/i18n/locales/my.d.ts +56 -0
  281. package/dist/node_modules/cronstrue/dist/i18n/locales/nb.d.ts +55 -0
  282. package/dist/node_modules/cronstrue/dist/i18n/locales/nl.d.ts +55 -0
  283. package/dist/node_modules/cronstrue/dist/i18n/locales/pl.d.ts +55 -0
  284. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_BR.d.ts +55 -0
  285. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_PT.d.ts +55 -0
  286. package/dist/node_modules/cronstrue/dist/i18n/locales/ro.d.ts +55 -0
  287. package/dist/node_modules/cronstrue/dist/i18n/locales/ru.d.ts +58 -0
  288. package/dist/node_modules/cronstrue/dist/i18n/locales/sk.d.ts +55 -0
  289. package/dist/node_modules/cronstrue/dist/i18n/locales/sl.d.ts +55 -0
  290. package/dist/node_modules/cronstrue/dist/i18n/locales/sv.d.ts +55 -0
  291. package/dist/node_modules/cronstrue/dist/i18n/locales/sw.d.ts +55 -0
  292. package/dist/node_modules/cronstrue/dist/i18n/locales/th.d.ts +56 -0
  293. package/dist/node_modules/cronstrue/dist/i18n/locales/tr.d.ts +55 -0
  294. package/dist/node_modules/cronstrue/dist/i18n/locales/uk.d.ts +55 -0
  295. package/dist/node_modules/cronstrue/dist/i18n/locales/vi.d.ts +56 -0
  296. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_CN.d.ts +61 -0
  297. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_TW.d.ts +58 -0
  298. package/dist/node_modules/cronstrue/dist/options.d.ts +9 -0
  299. package/dist/node_modules/cronstrue/dist/rangeValidator.d.ts +8 -0
  300. package/dist/node_modules/cronstrue/dist/stringUtilities.d.ts +4 -0
  301. package/dist/node_modules/cronstrue/i18n.d.ts +4 -0
  302. package/dist/node_modules/cronstrue/i18n.js +5 -0
  303. package/dist/node_modules/cronstrue/locales/af.js +283 -0
  304. package/dist/node_modules/cronstrue/locales/af.min.js +1 -0
  305. package/dist/node_modules/cronstrue/locales/ar.js +283 -0
  306. package/dist/node_modules/cronstrue/locales/ar.min.js +1 -0
  307. package/dist/node_modules/cronstrue/locales/be.js +280 -0
  308. package/dist/node_modules/cronstrue/locales/be.min.js +1 -0
  309. package/dist/node_modules/cronstrue/locales/bg.js +286 -0
  310. package/dist/node_modules/cronstrue/locales/bg.min.js +1 -0
  311. package/dist/node_modules/cronstrue/locales/ca.js +280 -0
  312. package/dist/node_modules/cronstrue/locales/ca.min.js +1 -0
  313. package/dist/node_modules/cronstrue/locales/cs.js +280 -0
  314. package/dist/node_modules/cronstrue/locales/cs.min.js +1 -0
  315. package/dist/node_modules/cronstrue/locales/da.js +280 -0
  316. package/dist/node_modules/cronstrue/locales/da.min.js +1 -0
  317. package/dist/node_modules/cronstrue/locales/de.js +280 -0
  318. package/dist/node_modules/cronstrue/locales/de.min.js +1 -0
  319. package/dist/node_modules/cronstrue/locales/en.js +283 -0
  320. package/dist/node_modules/cronstrue/locales/en.min.js +1 -0
  321. package/dist/node_modules/cronstrue/locales/es.js +280 -0
  322. package/dist/node_modules/cronstrue/locales/es.min.js +1 -0
  323. package/dist/node_modules/cronstrue/locales/fa.js +273 -0
  324. package/dist/node_modules/cronstrue/locales/fa.min.js +1 -0
  325. package/dist/node_modules/cronstrue/locales/fi.js +289 -0
  326. package/dist/node_modules/cronstrue/locales/fi.min.js +1 -0
  327. package/dist/node_modules/cronstrue/locales/fr.js +283 -0
  328. package/dist/node_modules/cronstrue/locales/fr.min.js +1 -0
  329. package/dist/node_modules/cronstrue/locales/he.js +267 -0
  330. package/dist/node_modules/cronstrue/locales/he.min.js +1 -0
  331. package/dist/node_modules/cronstrue/locales/hu.js +283 -0
  332. package/dist/node_modules/cronstrue/locales/hu.min.js +1 -0
  333. package/dist/node_modules/cronstrue/locales/id.js +283 -0
  334. package/dist/node_modules/cronstrue/locales/id.min.js +1 -0
  335. package/dist/node_modules/cronstrue/locales/it.js +280 -0
  336. package/dist/node_modules/cronstrue/locales/it.min.js +1 -0
  337. package/dist/node_modules/cronstrue/locales/ja.js +282 -0
  338. package/dist/node_modules/cronstrue/locales/ja.min.js +1 -0
  339. package/dist/node_modules/cronstrue/locales/ko.js +282 -0
  340. package/dist/node_modules/cronstrue/locales/ko.min.js +1 -0
  341. package/dist/node_modules/cronstrue/locales/my.js +283 -0
  342. package/dist/node_modules/cronstrue/locales/my.min.js +1 -0
  343. package/dist/node_modules/cronstrue/locales/nb.js +280 -0
  344. package/dist/node_modules/cronstrue/locales/nb.min.js +1 -0
  345. package/dist/node_modules/cronstrue/locales/nl.js +280 -0
  346. package/dist/node_modules/cronstrue/locales/nl.min.js +1 -0
  347. package/dist/node_modules/cronstrue/locales/pl.js +280 -0
  348. package/dist/node_modules/cronstrue/locales/pl.min.js +1 -0
  349. package/dist/node_modules/cronstrue/locales/pt_BR.js +280 -0
  350. package/dist/node_modules/cronstrue/locales/pt_BR.min.js +1 -0
  351. package/dist/node_modules/cronstrue/locales/pt_PT.js +280 -0
  352. package/dist/node_modules/cronstrue/locales/pt_PT.min.js +1 -0
  353. package/dist/node_modules/cronstrue/locales/ro.js +280 -0
  354. package/dist/node_modules/cronstrue/locales/ro.min.js +1 -0
  355. package/dist/node_modules/cronstrue/locales/ru.js +323 -0
  356. package/dist/node_modules/cronstrue/locales/ru.min.js +1 -0
  357. package/dist/node_modules/cronstrue/locales/sk.js +280 -0
  358. package/dist/node_modules/cronstrue/locales/sk.min.js +1 -0
  359. package/dist/node_modules/cronstrue/locales/sl.js +280 -0
  360. package/dist/node_modules/cronstrue/locales/sl.min.js +1 -0
  361. package/dist/node_modules/cronstrue/locales/sv.js +280 -0
  362. package/dist/node_modules/cronstrue/locales/sv.min.js +1 -0
  363. package/dist/node_modules/cronstrue/locales/sw.js +280 -0
  364. package/dist/node_modules/cronstrue/locales/sw.min.js +1 -0
  365. package/dist/node_modules/cronstrue/locales/th.js +283 -0
  366. package/dist/node_modules/cronstrue/locales/th.min.js +1 -0
  367. package/dist/node_modules/cronstrue/locales/tr.js +280 -0
  368. package/dist/node_modules/cronstrue/locales/tr.min.js +1 -0
  369. package/dist/node_modules/cronstrue/locales/uk.js +280 -0
  370. package/dist/node_modules/cronstrue/locales/uk.min.js +1 -0
  371. package/dist/node_modules/cronstrue/locales/vi.js +283 -0
  372. package/dist/node_modules/cronstrue/locales/vi.min.js +1 -0
  373. package/dist/node_modules/cronstrue/locales/zh_CN.js +285 -0
  374. package/dist/node_modules/cronstrue/locales/zh_CN.min.js +1 -0
  375. package/dist/node_modules/cronstrue/locales/zh_TW.js +276 -0
  376. package/dist/node_modules/cronstrue/locales/zh_TW.min.js +1 -0
  377. package/dist/node_modules/cronstrue/package.json +1 -0
  378. package/dist/server/antd.d.ts +1 -0
  379. package/dist/server/antd.js +45 -0
  380. package/dist/server/cron.d.ts +1 -0
  381. package/dist/server/cron.js +44 -0
  382. package/dist/server/cronstrue.d.ts +1 -0
  383. package/dist/server/cronstrue.js +136 -0
  384. package/dist/server/index.d.ts +1 -0
  385. package/dist/server/index.js +33 -0
  386. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.d.ts +5 -0
  387. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.js +67 -0
  388. package/dist/server/migrations/20231215215247-admin-menu-uid.d.ts +5 -0
  389. package/dist/server/migrations/20231215215247-admin-menu-uid.js +79 -0
  390. package/dist/server/migrations/20250116160330-update-uiSchemas.d.ts +6 -0
  391. package/dist/server/migrations/20250116160330-update-uiSchemas.js +57 -0
  392. package/dist/server/server.d.ts +7 -0
  393. package/dist/server/server.js +161 -0
  394. package/dist/swagger/index.json +7 -0
  395. package/package.json +9 -9
  396. package/LICENSE +0 -201
@@ -0,0 +1,44 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var cron_exports = {};
19
+ __export(cron_exports, {
20
+ getCronLocale: () => getCronLocale
21
+ });
22
+ module.exports = __toCommonJS(cron_exports);
23
+ var import_path = require("path");
24
+ var import_utils = require("@tachybase/utils");
25
+ const getCronLocale = (lang) => {
26
+ const lng = lang.replace("-", "_");
27
+ const files = [(0, import_path.resolve)(__dirname, `./../../../client/src/locale/cron/${lng}`)];
28
+ if (process.env.APP_ENV !== "production") {
29
+ files.push(`@tachybase/client/src/locale/cron/${lng}`, `@tachybase/client/lib/locale/cron/${lng}`);
30
+ }
31
+ for (const file of files) {
32
+ try {
33
+ require.resolve(file);
34
+ return (0, import_utils.requireModule)(file);
35
+ } catch (error) {
36
+ continue;
37
+ }
38
+ }
39
+ return {};
40
+ };
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ getCronLocale
44
+ });
@@ -0,0 +1 @@
1
+ export declare const getCronstrueLocale: (lang: any) => {};
@@ -0,0 +1,136 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var cronstrue_exports = {};
19
+ __export(cronstrue_exports, {
20
+ getCronstrueLocale: () => getCronstrueLocale
21
+ });
22
+ module.exports = __toCommonJS(cronstrue_exports);
23
+ const methods = [
24
+ "atX0SecondsPastTheMinuteGt20",
25
+ "atX0MinutesPastTheHourGt20",
26
+ "commaMonthX0ThroughMonthX1",
27
+ "commaYearX0ThroughYearX1",
28
+ "use24HourTimeFormatByDefault",
29
+ "anErrorOccuredWhenGeneratingTheExpressionD",
30
+ "everyMinute",
31
+ "everyHour",
32
+ "atSpace",
33
+ "everyMinuteBetweenX0AndX1",
34
+ "at",
35
+ "spaceAnd",
36
+ "everySecond",
37
+ "everyX0Seconds",
38
+ "secondsX0ThroughX1PastTheMinute",
39
+ "atX0SecondsPastTheMinute",
40
+ "everyX0Minutes",
41
+ "minutesX0ThroughX1PastTheHour",
42
+ "atX0MinutesPastTheHour",
43
+ "everyX0Hours",
44
+ "betweenX0AndX1",
45
+ "atX0",
46
+ "commaEveryDay",
47
+ "commaEveryX0DaysOfTheWeek",
48
+ "commaX0ThroughX1",
49
+ "commaAndX0ThroughX1",
50
+ "first",
51
+ "second",
52
+ "third",
53
+ "fourth",
54
+ "fifth",
55
+ "commaOnThe",
56
+ "spaceX0OfTheMonth",
57
+ "lastDay",
58
+ "commaOnTheLastX0OfTheMonth",
59
+ "commaOnlyOnX0",
60
+ "commaAndOnX0",
61
+ "commaEveryX0Months",
62
+ "commaOnlyInX0",
63
+ "commaOnTheLastDayOfTheMonth",
64
+ "commaOnTheLastWeekdayOfTheMonth",
65
+ "commaDaysBeforeTheLastDayOfTheMonth",
66
+ "firstWeekday",
67
+ "weekdayNearestDayX0",
68
+ "commaOnTheX0OfTheMonth",
69
+ "commaEveryX0Days",
70
+ "commaBetweenDayX0AndX1OfTheMonth",
71
+ "commaOnDayX0OfTheMonth",
72
+ "commaEveryHour",
73
+ "commaEveryX0Years",
74
+ "commaStartingX0",
75
+ "daysOfTheWeek",
76
+ "monthsOfTheYear"
77
+ ];
78
+ const langs = {
79
+ af: "af",
80
+ ar: "ar",
81
+ be: "be",
82
+ ca: "ca",
83
+ cs: "cs",
84
+ da: "da",
85
+ de: "de",
86
+ "en-US": "en",
87
+ es: "es",
88
+ fa: "fa",
89
+ fi: "fi",
90
+ fr: "fr",
91
+ he: "he",
92
+ hu: "hu",
93
+ id: "id",
94
+ it: "it",
95
+ "ja-JP": "ja",
96
+ ko: "ko",
97
+ nb: "nb",
98
+ nl: "nl",
99
+ pl: "pl",
100
+ pt_BR: "pt_BR",
101
+ pt_PT: "pt_PT",
102
+ ro: "ro",
103
+ "ru-RU": "ru",
104
+ sk: "sk",
105
+ sl: "sl",
106
+ sv: "sv",
107
+ sw: "sw",
108
+ "th-TH": "th",
109
+ "tr-TR": "tr",
110
+ uk: "uk",
111
+ "zh-CN": "zh_CN",
112
+ "zh-TW": "zh_TW"
113
+ };
114
+ const getCronstrueLocale = (lang) => {
115
+ const lng = langs[lang] || "en";
116
+ const Locale = require(`cronstrue/locales/${lng}`);
117
+ let locale;
118
+ if (Locale == null ? void 0 : Locale.default) {
119
+ locale = Locale.default.locales[lng];
120
+ } else {
121
+ const L = Locale[lng];
122
+ locale = new L();
123
+ }
124
+ const items = {};
125
+ for (const method of methods) {
126
+ try {
127
+ items[method] = locale[method]();
128
+ } catch (error) {
129
+ }
130
+ }
131
+ return items;
132
+ };
133
+ // Annotate the CommonJS export names for ESM import in node:
134
+ 0 && (module.exports = {
135
+ getCronstrueLocale
136
+ });
@@ -0,0 +1 @@
1
+ export { default } from './server';
@@ -0,0 +1,33 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var server_exports = {};
29
+ __export(server_exports, {
30
+ default: () => import_server.default
31
+ });
32
+ module.exports = __toCommonJS(server_exports);
33
+ var import_server = __toESM(require("./server"));
@@ -0,0 +1,5 @@
1
+ import { Migration } from '@tachybase/server';
2
+ export default class extends Migration {
3
+ appVersion: string;
4
+ up(): Promise<void>;
5
+ }
@@ -0,0 +1,67 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var admin_ui_schema_uid_exports = {};
19
+ __export(admin_ui_schema_uid_exports, {
20
+ default: () => admin_ui_schema_uid_default
21
+ });
22
+ module.exports = __toCommonJS(admin_ui_schema_uid_exports);
23
+ var import_server = require("@tachybase/server");
24
+ class admin_ui_schema_uid_default extends import_server.Migration {
25
+ constructor() {
26
+ super(...arguments);
27
+ this.appVersion = "<0.14.0-alpha.1";
28
+ }
29
+ async up() {
30
+ var _a, _b, _c;
31
+ const result = await this.app.version.satisfies("<0.14.0-alpha.1");
32
+ if (!result) {
33
+ return;
34
+ }
35
+ await this.db.getCollection("systemSettings").sync({
36
+ force: false,
37
+ alter: {
38
+ drop: false
39
+ }
40
+ });
41
+ const systemSettings = this.db.getRepository("systemSettings");
42
+ let instance = await systemSettings.findOne();
43
+ if ((_a = instance == null ? void 0 : instance.options) == null ? void 0 : _a.adminSchemaUid) {
44
+ return;
45
+ }
46
+ const uiRoutes = this.db.getRepository("uiRoutes");
47
+ if (!uiRoutes) {
48
+ return;
49
+ }
50
+ const routes = await uiRoutes.find();
51
+ for (const route of routes) {
52
+ if (route.uiSchemaUid && ((_b = route == null ? void 0 : route.options) == null ? void 0 : _b.component) === "AdminLayout") {
53
+ const options = instance.options || {};
54
+ options["adminSchemaUid"] = route.uiSchemaUid;
55
+ instance.set("options", options);
56
+ instance.changed("options", true);
57
+ await instance.save();
58
+ return;
59
+ }
60
+ }
61
+ instance = await systemSettings.findOne();
62
+ if (!((_c = instance == null ? void 0 : instance.options) == null ? void 0 : _c.adminSchemaUid)) {
63
+ throw new Error("adminSchemaUid invalid");
64
+ }
65
+ this.app.logger.info("systemSettings.options", instance.toJSON());
66
+ }
67
+ }
@@ -0,0 +1,5 @@
1
+ import { Migration } from '@tachybase/server';
2
+ export default class extends Migration {
3
+ appVersion: string;
4
+ up(): Promise<void>;
5
+ }
@@ -0,0 +1,79 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var admin_menu_uid_exports = {};
19
+ __export(admin_menu_uid_exports, {
20
+ default: () => admin_menu_uid_default
21
+ });
22
+ module.exports = __toCommonJS(admin_menu_uid_exports);
23
+ var import_server = require("@tachybase/server");
24
+ class admin_menu_uid_default extends import_server.Migration {
25
+ constructor() {
26
+ super(...arguments);
27
+ this.appVersion = "<0.17.0-alpha.8";
28
+ }
29
+ async up() {
30
+ var _a, _b;
31
+ const result = await this.app.version.satisfies("<0.17.0-alpha.8");
32
+ if (!result) {
33
+ return;
34
+ }
35
+ const systemSettings = this.db.getRepository("systemSettings");
36
+ const instance = await systemSettings.findOne();
37
+ if (!((_a = instance == null ? void 0 : instance.options) == null ? void 0 : _a.adminSchemaUid)) {
38
+ return;
39
+ }
40
+ const UiSchemas = this.db.getModel("uiSchemas");
41
+ await this.db.sequelize.transaction(async (transaction) => {
42
+ var _a2, _b2, _c;
43
+ await UiSchemas.update(
44
+ {
45
+ "x-uid": "default-admin-menu"
46
+ },
47
+ {
48
+ transaction,
49
+ where: {
50
+ "x-uid": (_a2 = instance == null ? void 0 : instance.options) == null ? void 0 : _a2.adminSchemaUid
51
+ }
52
+ }
53
+ );
54
+ await this.db.getModel("uiSchemaTreePath").update(
55
+ {
56
+ descendant: "default-admin-menu"
57
+ },
58
+ {
59
+ transaction,
60
+ where: {
61
+ descendant: (_b2 = instance == null ? void 0 : instance.options) == null ? void 0 : _b2.adminSchemaUid
62
+ }
63
+ }
64
+ );
65
+ await this.db.getModel("uiSchemaTreePath").update(
66
+ {
67
+ ancestor: "default-admin-menu"
68
+ },
69
+ {
70
+ transaction,
71
+ where: {
72
+ ancestor: (_c = instance == null ? void 0 : instance.options) == null ? void 0 : _c.adminSchemaUid
73
+ }
74
+ }
75
+ );
76
+ });
77
+ console.log((_b = instance == null ? void 0 : instance.options) == null ? void 0 : _b.adminSchemaUid);
78
+ }
79
+ }
@@ -0,0 +1,6 @@
1
+ import { Migration } from '@tachybase/server';
2
+ export default class extends Migration {
3
+ on: string;
4
+ appVersion: string;
5
+ up(): Promise<void>;
6
+ }
@@ -0,0 +1,57 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var update_uiSchemas_exports = {};
19
+ __export(update_uiSchemas_exports, {
20
+ default: () => update_uiSchemas_default
21
+ });
22
+ module.exports = __toCommonJS(update_uiSchemas_exports);
23
+ var import_server = require("@tachybase/server");
24
+ class update_uiSchemas_default extends import_server.Migration {
25
+ constructor() {
26
+ super(...arguments);
27
+ this.on = "afterLoad";
28
+ // 'beforeLoad' or 'afterLoad'
29
+ this.appVersion = "<0.23.37";
30
+ }
31
+ async up() {
32
+ const uiSchemasRepo = this.db.getRepository("uiSchemas");
33
+ const xUid = "default-admin-menu";
34
+ await uiSchemasRepo.update({
35
+ filter: {
36
+ "x-uid": xUid
37
+ },
38
+ values: {
39
+ schema: {
40
+ type: "void",
41
+ "x-designer": "Menu.Designer",
42
+ "x-initializer": "menuInitializers:menuItem",
43
+ "x-component": "Menu",
44
+ "x-component-props": {
45
+ mode: "mix",
46
+ theme: "dark",
47
+ onSelect: "{{ onSelect }}",
48
+ sideMenuRefScopeKey: "sideMenuRef"
49
+ }
50
+ }
51
+ }
52
+ });
53
+ await this.app.cache.del(`p_${xUid}`);
54
+ await this.app.cache.del(`s_${xUid}`);
55
+ this.app.logger.info(`collection [uiSchemas] update ${1} rows`);
56
+ }
57
+ }
@@ -0,0 +1,7 @@
1
+ import { Plugin } from '@tachybase/server';
2
+ export declare class ModuleWeb extends Plugin {
3
+ beforeLoad(): Promise<void>;
4
+ install(): Promise<void>;
5
+ load(): Promise<void>;
6
+ }
7
+ export default ModuleWeb;
@@ -0,0 +1,161 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var server_exports = {};
19
+ __export(server_exports, {
20
+ ModuleWeb: () => ModuleWeb,
21
+ default: () => server_default
22
+ });
23
+ module.exports = __toCommonJS(server_exports);
24
+ var import_server = require("@tachybase/server");
25
+ var import_antd = require("./antd");
26
+ var import_cron = require("./cron");
27
+ var import_cronstrue = require("./cronstrue");
28
+ async function getLang(ctx) {
29
+ const SystemSetting = ctx.db.getRepository("systemSettings");
30
+ const systemSetting = await SystemSetting.findOne();
31
+ const enabledLanguages = systemSetting.get("enabledLanguages") || [];
32
+ const currentUser = ctx.state.currentUser;
33
+ let lang = (enabledLanguages == null ? void 0 : enabledLanguages[0]) || process.env.APP_LANG || "en-US";
34
+ if (enabledLanguages.includes(currentUser == null ? void 0 : currentUser.appLang)) {
35
+ lang = currentUser == null ? void 0 : currentUser.appLang;
36
+ }
37
+ if (ctx.request.query.locale && enabledLanguages.includes(ctx.request.query.locale)) {
38
+ lang = ctx.request.query.locale;
39
+ }
40
+ return lang;
41
+ }
42
+ class ModuleWeb extends import_server.Plugin {
43
+ async beforeLoad() {
44
+ }
45
+ async install() {
46
+ const uiSchemas = this.db.getRepository("uiSchemas");
47
+ await uiSchemas.insert({
48
+ type: "void",
49
+ "x-uid": "default-admin-menu",
50
+ "x-designer": "Menu.Designer",
51
+ "x-initializer": "menuInitializers:menuItem",
52
+ "x-component": "Menu",
53
+ "x-component-props": {
54
+ mode: "mix",
55
+ theme: "dark",
56
+ onSelect: "{{ onSelect }}",
57
+ sideMenuRefScopeKey: "sideMenuRef"
58
+ },
59
+ properties: {}
60
+ });
61
+ await uiSchemas.insert({
62
+ type: "void",
63
+ "x-uid": "default-admin-mobile",
64
+ "x-component": "MContainer",
65
+ "x-designer": "MContainer.Designer",
66
+ "x-component-props": {},
67
+ properties: {
68
+ page: {
69
+ type: "void",
70
+ "x-component": "MPage",
71
+ "x-designer": "MPage.Designer",
72
+ "x-component-props": {},
73
+ properties: {
74
+ grid: {
75
+ type: "void",
76
+ "x-component": "Grid",
77
+ "x-initializer": "mobilePage:addBlock",
78
+ "x-component-props": {
79
+ showDivider: false
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ });
86
+ }
87
+ async load() {
88
+ this.app.localeManager.setLocaleFn("antd", async (lang) => (0, import_antd.getAntdLocale)(lang));
89
+ this.app.localeManager.setLocaleFn("cronstrue", async (lang) => (0, import_cronstrue.getCronstrueLocale)(lang));
90
+ this.app.localeManager.setLocaleFn("cron", async (lang) => (0, import_cron.getCronLocale)(lang));
91
+ this.app.acl.allow("app", "getLang");
92
+ this.app.acl.allow("app", "getInfo");
93
+ this.app.acl.registerSnippet({
94
+ name: "app",
95
+ actions: ["app:restart", "app:refresh", "app:clearCache"]
96
+ });
97
+ const dialect = this.app.db.sequelize.getDialect();
98
+ this.app.resourcer.define({
99
+ name: "app",
100
+ actions: {
101
+ async getInfo(ctx, next) {
102
+ var _a, _b;
103
+ const SystemSetting = ctx.db.getRepository("systemSettings");
104
+ const systemSetting = await SystemSetting.findOne();
105
+ const enabledLanguages = systemSetting.get("enabledLanguages") || [];
106
+ const currentUser = ctx.state.currentUser;
107
+ let lang = (enabledLanguages == null ? void 0 : enabledLanguages[0]) || process.env.APP_LANG || "en-US";
108
+ if (enabledLanguages.includes(currentUser == null ? void 0 : currentUser.appLang)) {
109
+ lang = currentUser == null ? void 0 : currentUser.appLang;
110
+ }
111
+ ctx.body = {
112
+ database: {
113
+ dialect
114
+ },
115
+ version: await ctx.app.version.get(),
116
+ lang,
117
+ name: ctx.app.name,
118
+ theme: ((_a = currentUser == null ? void 0 : currentUser.systemSettings) == null ? void 0 : _a.theme) || ((_b = systemSetting == null ? void 0 : systemSetting.options) == null ? void 0 : _b.theme) || "default"
119
+ };
120
+ await next();
121
+ },
122
+ async getLang(ctx, next) {
123
+ const lang = await getLang(ctx);
124
+ const app = ctx.app;
125
+ const eTag = await app.localeManager.getETag(lang);
126
+ const resources = await app.localeManager.get(lang);
127
+ const requestETag = ctx.get("If-None-Match");
128
+ if (eTag && eTag === requestETag.substring(0 + 2, 36 + 2)) {
129
+ ctx.status = 304;
130
+ ctx.res.setHeader("ETag", requestETag);
131
+ } else {
132
+ const newTag = `W/${eTag}-${requestETag.substring(36 + 1 + 2)}`;
133
+ ctx.res.setHeader("ETag", newTag);
134
+ }
135
+ ctx.body = {
136
+ lang,
137
+ ...resources
138
+ };
139
+ await next();
140
+ },
141
+ async clearCache(ctx, next) {
142
+ await ctx.cache.reset();
143
+ await next();
144
+ },
145
+ async restart(ctx, next) {
146
+ ctx.app.runAsCLI(["restart"], { from: "user" });
147
+ await next();
148
+ },
149
+ async refresh(ctx, next) {
150
+ ctx.app.runCommand("refresh");
151
+ await next();
152
+ }
153
+ }
154
+ });
155
+ }
156
+ }
157
+ var server_default = ModuleWeb;
158
+ // Annotate the CommonJS export names for ESM import in node:
159
+ 0 && (module.exports = {
160
+ ModuleWeb
161
+ });
@@ -0,0 +1,7 @@
1
+ {
2
+ "info": {
3
+ "title": "TachyBase API - Module Web"
4
+ },
5
+ "openapi": "3.0.2",
6
+ "paths": {}
7
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/module-web",
3
3
  "displayName": "WEB client",
4
- "version": "1.3.18",
4
+ "version": "1.3.19",
5
5
  "description": "Provides a client interface for the TachyBase server",
6
6
  "keywords": [
7
7
  "System management"
@@ -25,16 +25,16 @@
25
25
  "react-dom": "~18.3.1",
26
26
  "react-i18next": "^15.2.0",
27
27
  "react-router-dom": "6.28.1",
28
- "@tachybase/components": "1.3.18",
29
- "@tachybase/schema": "1.3.18"
28
+ "@tachybase/components": "1.3.19",
29
+ "@tachybase/schema": "1.3.19"
30
30
  },
31
31
  "peerDependencies": {
32
- "@tachybase/actions": "1.3.18",
33
- "@tachybase/client": "1.3.18",
34
- "@tachybase/database": "1.3.18",
35
- "@tachybase/utils": "1.3.18",
36
- "@tachybase/server": "1.3.18",
37
- "@tachybase/test": "1.3.18"
32
+ "@tachybase/actions": "1.3.19",
33
+ "@tachybase/client": "1.3.19",
34
+ "@tachybase/database": "1.3.19",
35
+ "@tachybase/server": "1.3.19",
36
+ "@tachybase/test": "1.3.19",
37
+ "@tachybase/utils": "1.3.19"
38
38
  },
39
39
  "description.zh-CN": "为 TachyBase 服务端提供客户端界面",
40
40
  "displayName.zh-CN": "WEB 客户端",