@pisell/materials 1.0.614 → 1.0.615

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 (82) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +3 -3
  6. package/build/lowcode/preview.js +20 -12
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +30 -16
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +34 -20
  11. package/es/components/Pagination/index.d.ts +1 -1
  12. package/es/components/appVersionControl/index.js +1 -1
  13. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +6 -2
  14. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +14 -4
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +7 -1
  18. package/es/components/dataSourceComponents/dataSourceTable/index.d.ts +3 -2
  19. package/es/components/dataSourceComponents/dataSourceTable/index.js +7 -4
  20. package/es/components/dataSourceComponents/fields/index.d.ts +1 -1
  21. package/es/components/pisellDraggable/index.js +5 -5
  22. package/es/components/pisellDraggable/types.d.ts +1 -0
  23. package/es/components/pisellDraggable/utilities.js +10 -6
  24. package/es/components/pisellDropSort/PisellDropSort.js +10 -23
  25. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +2 -0
  26. package/es/components/pisellDropSort/components/SortableItem/index.js +5 -4
  27. package/es/components/pisellDropSort/components/SortableItem/index.less +2 -1
  28. package/es/components/pisellDropSort/types.d.ts +4 -0
  29. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  30. package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +195 -0
  31. package/es/components/pisellNavigationMenu/PisellNavigationMenu.less +65 -0
  32. package/es/components/pisellNavigationMenu/index.d.ts +3 -0
  33. package/es/components/pisellNavigationMenu/index.js +2 -0
  34. package/es/components/pisellNavigationMenu/types.d.ts +54 -0
  35. package/es/components/pisellNavigationMenu/types.js +1 -0
  36. package/es/components/table/Table/utils.d.ts +1 -1
  37. package/es/index.d.ts +1 -0
  38. package/es/index.js +2 -1
  39. package/es/locales/en-US.d.ts +2 -0
  40. package/es/locales/en-US.js +1 -1
  41. package/es/locales/zh-CN.d.ts +2 -0
  42. package/es/locales/zh-CN.js +1 -1
  43. package/es/locales/zh-TW.d.ts +2 -0
  44. package/es/locales/zh-TW.js +1 -1
  45. package/lib/components/Pagination/index.d.ts +1 -1
  46. package/lib/components/appVersionControl/index.js +1 -1
  47. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +6 -2
  48. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +12 -3
  49. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  50. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  51. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +7 -1
  52. package/lib/components/dataSourceComponents/dataSourceTable/index.d.ts +3 -2
  53. package/lib/components/dataSourceComponents/dataSourceTable/index.js +3 -3
  54. package/lib/components/dataSourceComponents/fields/index.d.ts +1 -1
  55. package/lib/components/pisellDraggable/index.js +3 -4
  56. package/lib/components/pisellDraggable/types.d.ts +1 -0
  57. package/lib/components/pisellDraggable/utilities.js +9 -6
  58. package/lib/components/pisellDropSort/PisellDropSort.js +9 -18
  59. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +2 -0
  60. package/lib/components/pisellDropSort/components/SortableItem/index.js +6 -6
  61. package/lib/components/pisellDropSort/components/SortableItem/index.less +2 -1
  62. package/lib/components/pisellDropSort/types.d.ts +4 -0
  63. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  64. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +207 -0
  65. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.less +65 -0
  66. package/lib/components/pisellNavigationMenu/index.d.ts +3 -0
  67. package/lib/components/pisellNavigationMenu/index.js +36 -0
  68. package/lib/components/pisellNavigationMenu/types.d.ts +54 -0
  69. package/lib/components/pisellNavigationMenu/types.js +17 -0
  70. package/lib/components/table/Table/utils.d.ts +1 -1
  71. package/lib/index.d.ts +1 -0
  72. package/lib/index.js +3 -0
  73. package/lib/locales/en-US.d.ts +2 -0
  74. package/lib/locales/en-US.js +4 -1
  75. package/lib/locales/zh-CN.d.ts +2 -0
  76. package/lib/locales/zh-CN.js +4 -1
  77. package/lib/locales/zh-TW.d.ts +2 -0
  78. package/lib/locales/zh-TW.js +4 -1
  79. package/lowcode/data-source-table/meta.ts +1 -1
  80. package/lowcode/pisell-drop-sort/meta.ts +18 -0
  81. package/lowcode/pisell-navigation-menu/meta.ts +125 -0
  82. package/package.json +3 -3
@@ -267,5 +267,8 @@ var en_US_default = {
267
267
  "pisell-lowcode-app-version-control-promote-version-cancel": "Cancel",
268
268
  "pisell-lowcode-app-version-control-version-exists": "Version already exists",
269
269
  // 拖拽排序组件
270
- "pisell-lowcode-drop-sort-add": "Add"
270
+ "pisell-lowcode-drop-sort-add": "Add",
271
+ // 导航菜单组件
272
+ "pisell-lowcode-navigation-menu-add-sub-menu": "Add submenu",
273
+ "pisell-lowcode-navigation-menu-add-page": "Add page"
271
274
  };
@@ -213,5 +213,7 @@ declare const _default: {
213
213
  'pisell-lowcode-app-version-control-promote-version-cancel': string;
214
214
  'pisell-lowcode-app-version-control-version-exists': string;
215
215
  'pisell-lowcode-drop-sort-add': string;
216
+ 'pisell-lowcode-navigation-menu-add-sub-menu': string;
217
+ 'pisell-lowcode-navigation-menu-add-page': string;
216
218
  };
217
219
  export default _default;
@@ -263,5 +263,8 @@ var zh_CN_default = {
263
263
  "pisell-lowcode-app-version-control-promote-version-cancel": "取消",
264
264
  "pisell-lowcode-app-version-control-version-exists": "版本已存在",
265
265
  // 拖拽排序组件
266
- "pisell-lowcode-drop-sort-add": "添加"
266
+ "pisell-lowcode-drop-sort-add": "添加",
267
+ // 导航菜单组件
268
+ "pisell-lowcode-navigation-menu-add-sub-menu": "添加子菜单",
269
+ "pisell-lowcode-navigation-menu-add-page": "添加页面"
267
270
  };
@@ -213,5 +213,7 @@ declare const _default: {
213
213
  'pisell-lowcode-app-version-control-promote-version-cancel': string;
214
214
  'pisell-lowcode-app-version-control-version-exists': string;
215
215
  'pisell-lowcode-drop-sort-add': string;
216
+ 'pisell-lowcode-navigation-menu-add-sub-menu': string;
217
+ 'pisell-lowcode-navigation-menu-add-page': string;
216
218
  };
217
219
  export default _default;
@@ -265,5 +265,8 @@ var zh_TW_default = {
265
265
  "pisell-lowcode-app-version-control-promote-version-cancel": "取消",
266
266
  "pisell-lowcode-app-version-control-version-exists": "版本已存在",
267
267
  // 拖拽排序组件
268
- "pisell-lowcode-drop-sort-add": "添加"
268
+ "pisell-lowcode-drop-sort-add": "添加",
269
+ // 导航菜单组件
270
+ "pisell-lowcode-navigation-menu-add-sub-menu": "添加子菜單",
271
+ "pisell-lowcode-navigation-menu-add-page": "添加頁面"
269
272
  };
@@ -2772,7 +2772,7 @@ const dataSourceTable = {
2772
2772
  const items = operation?.items || [];
2773
2773
  return {
2774
2774
  options: items.map((item: any) => ({
2775
- title: item.label,
2775
+ title: typeof item.label === 'string' ? item.label : item.label['zh-CN'],
2776
2776
  value: item.key || item.actionType,
2777
2777
  })),
2778
2778
  };
@@ -126,6 +126,13 @@ const PisellDropSortMeta: IPublicTypeComponentMetadata = {
126
126
  },
127
127
  description: '左侧自定义内容',
128
128
  },
129
+ {
130
+ name: 'rightContent',
131
+ propType: {
132
+ type: 'func',
133
+ },
134
+ description: '右侧自定义内容',
135
+ },
129
136
  ],
130
137
  configure: {
131
138
  props: [
@@ -269,6 +276,17 @@ const PisellDropSortMeta: IPublicTypeComponentMetadata = {
269
276
  },
270
277
  },
271
278
  },
279
+ {
280
+ name: 'rightContent',
281
+ title: { label: '右侧自定义内容', tip: '右侧自定义内容' },
282
+ setter: {
283
+ componentName: 'SlotSetter',
284
+ title: '右侧自定义内容',
285
+ initialValue: {
286
+ type: 'JSSlot',
287
+ },
288
+ },
289
+ },
272
290
  ],
273
291
  component: {
274
292
  isContainer: true,
@@ -0,0 +1,125 @@
1
+ import {
2
+ IPublicTypeSnippet,
3
+ } from '@alilc/lowcode-types';
4
+
5
+ const PisellNavigationMenuMeta = {
6
+ componentName: 'PisellNavigationMenu',
7
+ title: '导航菜单管理',
8
+ docUrl: '',
9
+ screenshot: '',
10
+ devMode: 'proCode',
11
+ npm: {
12
+ package: '@pisell/materials',
13
+ version: '1.0.3',
14
+ exportName: 'PisellNavigationMenu',
15
+ main: 'src/index.tsx',
16
+ destructuring: true,
17
+ subName: '',
18
+ },
19
+ props: [
20
+ {
21
+ title: {
22
+ label: {
23
+ type: 'i18n',
24
+ 'en-US': 'Value',
25
+ 'zh-CN': '菜单数据',
26
+ },
27
+ },
28
+ name: 'value',
29
+ propType: 'array',
30
+ setter: 'JsonSetter',
31
+ },
32
+ {
33
+ title: {
34
+ label: {
35
+ type: 'i18n',
36
+ 'en-US': 'Title',
37
+ 'zh-CN': '标题',
38
+ },
39
+ },
40
+ name: 'title',
41
+ propType: 'string',
42
+ setter: 'PisellI18nSetter',
43
+ },
44
+ ],
45
+ configure: {
46
+ component: {
47
+ isContainer: false,
48
+ },
49
+ supports: {
50
+ style: true,
51
+ className: true,
52
+ events: [
53
+ {
54
+ name: 'onChange',
55
+ template:
56
+ 'onChange(value,${extParams}){\n// 数据变化回调\nconsole.log("onChange",value);}',
57
+ },
58
+ {
59
+ name: 'onDelete',
60
+ template:
61
+ 'onDelete(value,${extParams}){\n// 删除节点回调\nconsole.log("onDelete",value);}',
62
+ },
63
+ {
64
+ name: 'onAddPage',
65
+ template:
66
+ 'onAddPage(value,${extParams}){\n// 添加页面回调\nconsole.log("onAddPage",value);}',
67
+ },
68
+ {
69
+ name: 'onAddSubMenu',
70
+ template:
71
+ 'onAddSubMenu(value,${extParams}){\n// 添加子菜单回调\nconsole.log("onAddSubMenu",value);}',
72
+ },
73
+ {
74
+ name: 'onEdit',
75
+ template:
76
+ 'onEdit(value,${extParams}){\n// 编辑节点回调\nconsole.log("onEdit",value);}',
77
+ },
78
+ ],
79
+ },
80
+ },
81
+ };
82
+
83
+ const snippets: IPublicTypeSnippet[] = [
84
+ {
85
+ title: '导航菜单管理',
86
+ screenshot: '',
87
+ schema: {
88
+ componentName: 'PisellNavigationMenu',
89
+ props: {
90
+ value: [
91
+ {
92
+ id: '1',
93
+ title: '首页',
94
+ children: [],
95
+ icon: 'pisell2-trend-up-01',
96
+ description: '首页描述',
97
+ version: '1.0.0',
98
+ },
99
+ {
100
+ id: '2',
101
+ title: '关于我们',
102
+ icon: 'pisell2-user-circle',
103
+ description: '关于我们描述',
104
+ isGroup: true,
105
+ children: [
106
+ {
107
+ id: '2-1',
108
+ title: '公司介绍',
109
+ icon: 'pisell2-trend-up-01',
110
+ description: '公司介绍描述',
111
+ version: '1.0.0',
112
+ children: [],
113
+ },
114
+ ],
115
+ },
116
+ ],
117
+ },
118
+ },
119
+ },
120
+ ];
121
+
122
+ export default {
123
+ ...PisellNavigationMenuMeta,
124
+ snippets,
125
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.614",
3
+ "version": "1.0.615",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -69,9 +69,9 @@
69
69
  "libphonenumber-js": "^1.11.17",
70
70
  "swiper": "^8.4.7",
71
71
  "react-barcode": "^1.5.3",
72
- "@pisell/date-picker": "1.0.115",
73
72
  "@pisell/icon": "0.0.10",
74
- "@pisell/utils": "1.0.43"
73
+ "@pisell/utils": "1.0.43",
74
+ "@pisell/date-picker": "1.0.115"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "react": "^18.0.0",