@nocobase/client 0.21.0-alpha.9 → 1.0.0-alpha.2

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 (51) hide show
  1. package/.dumirc.ts +25 -1
  2. package/LICENSE +661 -201
  3. package/es/api-client/APIClient.d.ts +1 -0
  4. package/es/application/Application.d.ts +3 -0
  5. package/es/application/RouterManager.d.ts +1 -0
  6. package/es/application/schema-initializer/CompatibleSchemaInitializer.d.ts +1 -1
  7. package/es/block-provider/BlockProvider.d.ts +9 -3
  8. package/es/block-provider/TableSelectorProvider.d.ts +1 -4
  9. package/es/collection-manager/collectionPlugin.d.ts +1 -0
  10. package/es/collection-manager/templates/components/UnSupportFields.d.ts +4 -0
  11. package/es/collection-manager/templates/properties/index.d.ts +3 -0
  12. package/es/data-source/collection/CollectionProvider.d.ts +7 -1
  13. package/es/data-source/collection-field/CollectionFieldProvider.d.ts +1 -0
  14. package/es/data-source/data-block/DataBlockRequestProvider.d.ts +8 -0
  15. package/es/global-theme/customAlgorithm.d.ts +7 -0
  16. package/es/global-theme/type.d.ts +12 -0
  17. package/es/index.mjs +3314 -3159
  18. package/es/{md-iAGHvWot.mjs → md-1OKMvqVH.mjs} +1 -0
  19. package/es/modules/blocks/BlockSchemaToolbar.d.ts +2 -0
  20. package/es/modules/fields/component/FileManager/previewComponentFieldSettings.d.ts +2 -0
  21. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +75 -0
  22. package/es/schema-component/antd/action/utils.d.ts +1 -0
  23. package/es/schema-component/antd/association-field/AssociationSelect.d.ts +1 -0
  24. package/es/schema-component/antd/association-field/InternalPicker.d.ts +1 -4
  25. package/es/schema-component/antd/block-item/BlockItemCard.d.ts +1 -1
  26. package/es/schema-component/antd/input-number/ReadPretty.d.ts +15 -4
  27. package/es/schema-component/antd/page/FixedBlock.d.ts +2 -2
  28. package/es/schema-component/antd/password/utils.d.ts +1 -1
  29. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  30. package/es/schema-initializer/items/DataBlockInitializer.d.ts +7 -0
  31. package/es/schema-initializer/utils.d.ts +5 -1
  32. package/es/schema-settings/VariableInput/hooks/useBaseVariable.d.ts +6 -1
  33. package/es/schema-settings/VariableInput/type.d.ts +1 -0
  34. package/es/style/index.d.ts +6 -1
  35. package/lib/index.js +185 -156
  36. package/lib/locale/en_US.js +2 -1
  37. package/lib/locale/es_ES.js +2 -1
  38. package/lib/locale/fr_FR.js +2 -1
  39. package/lib/locale/ja_JP.js +2 -1
  40. package/lib/locale/ko_KR.js +2 -1
  41. package/lib/locale/pt_BR.js +2 -1
  42. package/lib/locale/ru_RU.js +2 -1
  43. package/lib/locale/tr_TR.js +2 -1
  44. package/lib/locale/uk_UA.js +2 -1
  45. package/lib/locale/zh-CN.js +9 -3
  46. package/lib/locale/zh-TW.js +2 -1
  47. package/lib/md-1OKMvqVH-tU4j-cWD.js +1 -0
  48. package/package.json +6 -6
  49. package/es/schema-component/antd/color-picker/ReadPretty.d.ts +0 -7
  50. package/es/schema-component/antd/color-picker/util.d.ts +0 -31
  51. package/lib/md-iAGHvWot-jxZqkGLs.js +0 -1
package/.dumirc.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import path from 'path';
2
+ import glob from 'glob';
3
+ import _ from 'lodash'
1
4
  import { getUmiConfig } from '@nocobase/devtools/umiConfig';
2
5
  import { defineConfig } from 'dumi';
3
6
  import { defineThemeConfig } from 'dumi-theme-nocobase';
@@ -8,6 +11,19 @@ const lang = process.env.DOC_LANG;
8
11
 
9
12
  console.log('process.env.DOC_LANG', lang);
10
13
 
14
+ const componentsDir = 'src/schema-component/antd';
15
+
16
+ function getComponentsMenu() {
17
+ const cwd = path.join(__dirname, componentsDir);
18
+ const ignores = ['table/index.md', 'form/index.md']; // 老版本,不需要展示
19
+ const files = glob.sync('*/index.md', { cwd, ignore: ignores });
20
+
21
+ return files.map((file) => ({
22
+ title: _.upperFirst(_.camelCase(file.replace('/index.md', ''))),
23
+ link: `/components/${file.replace('/index.md', '')}`,
24
+ }));
25
+ }
26
+
11
27
  export default defineConfig({
12
28
  hash: true,
13
29
  alias: {
@@ -21,7 +37,10 @@ export default defineConfig({
21
37
  cacheDirectoryPath: `node_modules/.docs-client-${lang}-cache`,
22
38
  outputPath: `./dist/${lang}`,
23
39
  resolve: {
24
- docDirs: [`./docs/${lang}`]
40
+ docDirs: [`./docs/${lang}`],
41
+ atomDirs: [
42
+ { type: 'component', dir: componentsDir },
43
+ ],
25
44
  },
26
45
  locales: [
27
46
  { id: 'en-US', name: 'English' },
@@ -38,6 +57,10 @@ export default defineConfig({
38
57
  title: 'API',
39
58
  link: '/core/application/application',
40
59
  },
60
+ {
61
+ title: 'Components',
62
+ link: '/components/action',
63
+ }
41
64
  // {
42
65
  // title: 'UI Schema',
43
66
  // link: '/ui-schema',
@@ -202,6 +225,7 @@ export default defineConfig({
202
225
  ]
203
226
  }
204
227
  ],
228
+ '/components': getComponentsMenu(),
205
229
  // '/ui-schema': [
206
230
  // {
207
231
  // title: 'Overview',