@lowdefy/blocks-antd 4.0.0-alpha.5 → 4.0.0-alpha.6

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 (65) hide show
  1. package/dist/blocks/Affix/Affix.js +5 -4
  2. package/dist/blocks/Alert/Alert.js +6 -6
  3. package/dist/blocks/AutoComplete/AutoComplete.js +7 -4
  4. package/dist/blocks/Avatar/Avatar.js +5 -4
  5. package/dist/blocks/Badge/Badge.js +5 -4
  6. package/dist/blocks/Breadcrumb/Breadcrumb.js +7 -8
  7. package/dist/blocks/Button/Button.js +5 -4
  8. package/dist/blocks/ButtonSelector/ButtonSelector.js +7 -4
  9. package/dist/blocks/Card/Card.js +5 -4
  10. package/dist/blocks/CheckboxSelector/CheckboxSelector.js +7 -4
  11. package/dist/blocks/CheckboxSwitch/CheckboxSwitch.js +7 -4
  12. package/dist/blocks/Collapse/Collapse.js +6 -6
  13. package/dist/blocks/Comment/Comment.js +6 -6
  14. package/dist/blocks/ConfirmModal/ConfirmModal.js +7 -8
  15. package/dist/blocks/Content/Content.js +5 -4
  16. package/dist/blocks/ControlledList/ControlledList.js +14 -13
  17. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -4
  18. package/dist/blocks/DateSelector/DateSelector.js +7 -4
  19. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -4
  20. package/dist/blocks/Descriptions/Descriptions.js +6 -6
  21. package/dist/blocks/Divider/Divider.js +5 -4
  22. package/dist/blocks/Drawer/Drawer.js +5 -4
  23. package/dist/blocks/Footer/Footer.js +5 -4
  24. package/dist/blocks/Header/Header.js +5 -4
  25. package/dist/blocks/Label/Label.js +16 -11
  26. package/dist/blocks/Label/labelLogic.js +1 -2
  27. package/dist/blocks/Layout/Layout.js +5 -4
  28. package/dist/blocks/Menu/Menu.js +8 -10
  29. package/dist/blocks/Message/Message.js +6 -6
  30. package/dist/blocks/MobileMenu/MobileMenu.js +11 -9
  31. package/dist/blocks/Modal/Modal.js +6 -6
  32. package/dist/blocks/MonthSelector/MonthSelector.js +7 -4
  33. package/dist/blocks/MultipleSelector/MultipleSelector.js +11 -6
  34. package/dist/blocks/Notification/Notification.js +6 -6
  35. package/dist/blocks/NumberInput/NumberInput.js +7 -4
  36. package/dist/blocks/PageHCF/PageHCF.js +5 -4
  37. package/dist/blocks/PageHCSF/PageHCSF.js +5 -4
  38. package/dist/blocks/PageHSCF/PageHSCF.js +5 -4
  39. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +12 -7
  40. package/dist/blocks/PageSHCF/PageSHCF.js +5 -4
  41. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +16 -11
  42. package/dist/blocks/Pagination/Pagination.js +5 -4
  43. package/dist/blocks/Paragraph/Paragraph.js +5 -4
  44. package/dist/blocks/ParagraphInput/ParagraphInput.js +5 -4
  45. package/dist/blocks/PasswordInput/PasswordInput.js +7 -4
  46. package/dist/blocks/Progress/Progress.js +5 -4
  47. package/dist/blocks/RadioSelector/RadioSelector.js +7 -4
  48. package/dist/blocks/RatingSlider/RatingSlider.js +9 -8
  49. package/dist/blocks/Result/Result.js +5 -4
  50. package/dist/blocks/S3UploadButton/S3UploadButton.js +9 -7
  51. package/dist/blocks/Selector/Selector.js +11 -6
  52. package/dist/blocks/Sider/Sider.js +5 -4
  53. package/dist/blocks/Statistic/Statistic.js +5 -4
  54. package/dist/blocks/Switch/Switch.js +9 -8
  55. package/dist/blocks/Tabs/Tabs.js +6 -6
  56. package/dist/blocks/TextArea/TextArea.js +7 -4
  57. package/dist/blocks/TextInput/TextInput.js +7 -4
  58. package/dist/blocks/TimelineList/TimelineList.js +7 -8
  59. package/dist/blocks/Title/Title.js +5 -4
  60. package/dist/blocks/TitleInput/TitleInput.js +5 -4
  61. package/dist/blocks/Tooltip/Tooltip.js +5 -4
  62. package/dist/blocks/WeekSelector/WeekSelector.js +7 -4
  63. package/dist/disabledDate.js +1 -2
  64. package/dist/types.js +5 -3
  65. package/package.json +14 -9
@@ -50,10 +50,9 @@ const MobileMenu = ({ basePath , blockId , components , events , methods , menus
50
50
  hideTitle: true,
51
51
  type: 'primary',
52
52
  icon: {
53
- name: openState ? 'MenuUnfoldOutlined' : 'MenuFoldOutlined'
53
+ name: openState ? 'AiOutlineMenuUnfold' : 'AiOutlineMenuFold'
54
54
  },
55
- ...properties.toggleMenuButton || {
56
- }
55
+ ...properties.toggleMenuButton || {}
57
56
  },
58
57
  methods: methods,
59
58
  onClick: ()=>methods[get(rename, 'methods.toggleOpen', {
@@ -109,8 +108,7 @@ const MobileMenu = ({ basePath , blockId , components , events , methods , menus
109
108
  style: {
110
109
  marginTop: 24
111
110
  }
112
- }) || {
113
- },
111
+ }) || {},
114
112
  mode: 'inline'
115
113
  },
116
114
  rename: {
@@ -129,9 +127,13 @@ const MobileMenu = ({ basePath , blockId , components , events , methods , menus
129
127
  MobileMenu.defaultProps = blockDefaultProps;
130
128
  MobileMenu.meta = {
131
129
  category: 'display',
132
- loading: false
130
+ loading: false,
131
+ icons: [
132
+ 'AiOutlineMenuUnfold',
133
+ 'AiOutlineMenuFold'
134
+ ],
135
+ styles: [
136
+ 'blocks/MobileMenu/style.less'
137
+ ]
133
138
  };
134
- MobileMenu.styles = [
135
- 'blocks/MobileMenu/style.less'
136
- ];
137
139
  export default MobileMenu;
@@ -46,8 +46,7 @@ const ModalBlock = ({ blockId , content , events , methods , properties })=>{
46
46
  })
47
47
  );
48
48
  });
49
- const extraProps = {
50
- };
49
+ const extraProps = {};
51
50
  if (content.footer) {
52
51
  extraProps.footer = content.footer();
53
52
  }
@@ -116,9 +115,10 @@ const ModalBlock = ({ blockId , content , events , methods , properties })=>{
116
115
  ModalBlock.defaultProps = blockDefaultProps;
117
116
  ModalBlock.meta = {
118
117
  category: 'container',
119
- loading: false
118
+ loading: false,
119
+ icons: [],
120
+ styles: [
121
+ 'blocks/Modal/style.less'
122
+ ]
120
123
  };
121
- ModalBlock.styles = [
122
- 'blocks/Modal/style.less'
123
- ];
124
124
  export default ModalBlock;
@@ -87,9 +87,12 @@ MonthSelector.meta = {
87
87
  category: 'input',
88
88
  loading: {
89
89
  type: 'SkeletonInput'
90
- }
90
+ },
91
+ icons: [
92
+ ...Label.meta.icons
93
+ ],
94
+ styles: [
95
+ 'blocks/MonthSelector/style.less'
96
+ ]
91
97
  };
92
- MonthSelector.styles = [
93
- 'blocks/MonthSelector/style.less'
94
- ];
95
98
  export default MonthSelector;
@@ -99,13 +99,15 @@ const MultipleSelector = ({ blockId , components: { Icon } , events , loading ,
99
99
  },
100
100
  onSearch: async (value)=>{
101
101
  setFetch(true);
102
- await methods.triggerEvent({
102
+ const result = await methods.triggerEvent({
103
103
  name: 'onSearch',
104
104
  event: {
105
105
  value
106
106
  }
107
107
  });
108
- setFetch(false);
108
+ if (!result.bounced) {
109
+ setFetch(false);
110
+ }
109
111
  },
110
112
  children: uniqueValueOptions.map((opt, i)=>type.isPrimitive(opt) ? /*#__PURE__*/ _jsx(Option, {
111
113
  className: methods.makeCssClass(properties.optionsStyle),
@@ -145,9 +147,12 @@ MultipleSelector.meta = {
145
147
  category: 'input',
146
148
  loading: {
147
149
  type: 'SkeletonInput'
148
- }
150
+ },
151
+ icons: [
152
+ ...Label.meta.icons
153
+ ],
154
+ styles: [
155
+ 'blocks/MultipleSelector/style.less'
156
+ ]
149
157
  };
150
- MultipleSelector.styles = [
151
- 'blocks/MultipleSelector/style.less'
152
- ];
153
158
  export default MultipleSelector;
@@ -20,8 +20,7 @@ import { type } from '@lowdefy/helpers';
20
20
  import Button from '../Button/Button.js';
21
21
  const NotificationBlock = ({ blockId , components: { Icon } , events , methods , properties })=>{
22
22
  useEffect(()=>{
23
- methods.registerMethod('open', (args = {
24
- })=>{
23
+ methods.registerMethod('open', (args = {})=>{
25
24
  notification[args.status || properties.status || 'success']({
26
25
  id: `${blockId}_notification`,
27
26
  bottom: properties.bottom,
@@ -73,9 +72,10 @@ const NotificationBlock = ({ blockId , components: { Icon } , events , methods
73
72
  NotificationBlock.defaultProps = blockDefaultProps;
74
73
  NotificationBlock.meta = {
75
74
  category: 'display',
76
- loading: false
75
+ loading: false,
76
+ icons: [],
77
+ styles: [
78
+ 'blocks/Notification/style.less'
79
+ ]
77
80
  };
78
- NotificationBlock.styles = [
79
- 'blocks/Notification/style.less'
80
- ];
81
81
  export default NotificationBlock;
@@ -75,9 +75,12 @@ NumberInput.meta = {
75
75
  category: 'input',
76
76
  loading: {
77
77
  type: 'SkeletonInput'
78
- }
78
+ },
79
+ icons: [
80
+ ...Label.meta.icons
81
+ ],
82
+ styles: [
83
+ 'blocks/NumberInput/style.less'
84
+ ]
79
85
  };
80
- NumberInput.styles = [
81
- 'blocks/NumberInput/style.less'
82
- ];
83
86
  export default NumberInput;
@@ -75,9 +75,10 @@ PageHCF.meta = {
75
75
  properties: {
76
76
  height: '100vh'
77
77
  }
78
- }
78
+ },
79
+ icons: [],
80
+ styles: [
81
+ 'blocks/PageHCF/style.less'
82
+ ]
79
83
  };
80
- PageHCF.styles = [
81
- 'blocks/PageHCF/style.less'
82
- ];
83
84
  export default PageHCF;
@@ -108,9 +108,10 @@ PageHCSF.meta = {
108
108
  properties: {
109
109
  height: '100vh'
110
110
  }
111
- }
111
+ },
112
+ icons: [],
113
+ styles: [
114
+ 'blocks/PageHCSF/style.less'
115
+ ]
112
116
  };
113
- PageHCSF.styles = [
114
- 'blocks/PageHCSF/style.less'
115
- ];
116
117
  export default PageHCSF;
@@ -108,9 +108,10 @@ PageHSCF.meta = {
108
108
  properties: {
109
109
  height: '100vh'
110
110
  }
111
- }
111
+ },
112
+ icons: [],
113
+ styles: [
114
+ 'blocks/PageHSCF/style.less'
115
+ ]
112
116
  };
113
- PageHSCF.styles = [
114
- 'blocks/PageHSCF/style.less'
115
- ];
116
117
  export default PageHSCF;
@@ -149,13 +149,15 @@ const PageHeaderMenu = ({ basePath , blockId , components: { Icon , Link } , co
149
149
  properties.header,
150
150
  ]),
151
151
  content: {
152
+ // TODO: use next/image
153
+ // TODO: Link to home=true
152
154
  content: ()=>/*#__PURE__*/ _jsxs(_Fragment, {
153
155
  children: [
154
156
  /*#__PURE__*/ _jsx(Link, {
155
- href: `${basePath}/${homePageId}`,
157
+ href: `${homePageId}`,
156
158
  children: /*#__PURE__*/ _jsx("img", {
157
- src: properties.logo && properties.logo.src || (get(properties, 'header.theme') === 'light' ? `${basePath}/public/logo-light-theme.png` : `${basePath}/public/logo-dark-theme.png`),
158
- srcSet: properties.logo && (properties.logo.srcSet || properties.logo.src) || (get(properties, 'header.theme') === 'light' ? `${basePath}/public/logo-square-light-theme.png 40w, ${basePath}/public/logo-light-theme.png 577w` : `${basePath}/public/logo-square-dark-theme.png 40w, ${basePath}/public/logo-dark-theme.png 577w`),
159
+ src: properties.logo && properties.logo.src || (get(properties, 'header.theme') === 'light' ? `${basePath}/logo-light-theme.png` : `${basePath}/logo-dark-theme.png`),
160
+ srcSet: properties.logo && (properties.logo.srcSet || properties.logo.src) || (get(properties, 'header.theme') === 'light' ? `${basePath}/logo-square-light-theme.png 40w, ${basePath}/logo-light-theme.png 577w` : `${basePath}/logo-square-dark-theme.png 40w, ${basePath}/logo-dark-theme.png 577w`),
159
161
  sizes: properties.logo && properties.logo.sizes || '(max-width: 576px) 40px, 577px',
160
162
  alt: properties.logo && properties.logo.alt || 'Lowdefy',
161
163
  className: methods.makeCssClass([
@@ -310,9 +312,12 @@ PageHeaderMenu.meta = {
310
312
  properties: {
311
313
  height: '100vh'
312
314
  }
313
- }
315
+ },
316
+ icons: [
317
+ ...MobileMenu.meta.icons
318
+ ],
319
+ styles: [
320
+ 'blocks/PageHeaderMenu/style.less'
321
+ ]
314
322
  };
315
- PageHeaderMenu.styles = [
316
- 'blocks/PageHeaderMenu/style.less'
317
- ];
318
323
  export default PageHeaderMenu;
@@ -108,9 +108,10 @@ PageSHCF.meta = {
108
108
  properties: {
109
109
  height: '100vh'
110
110
  }
111
- }
111
+ },
112
+ icons: [],
113
+ styles: [
114
+ 'blocks/PageSHCF/style.less'
115
+ ]
112
116
  };
113
- PageSHCF.styles = [
114
- 'blocks/PageSHCF/style.less'
115
- ];
116
117
  export default PageSHCF;
@@ -109,8 +109,7 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
109
109
  height: '100%',
110
110
  flexDirection: 'column'
111
111
  },
112
- content: {
113
- },
112
+ content: {},
114
113
  breadcrumb: {
115
114
  margin: '16px 0'
116
115
  },
@@ -140,6 +139,8 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
140
139
  ])
141
140
  },
142
141
  content: {
142
+ // TODO: use next/image
143
+ // TODO: Link to home=true
143
144
  content: ()=>/*#__PURE__*/ _jsxs(_Fragment, {
144
145
  children: [
145
146
  /*#__PURE__*/ _jsx(Header, {
@@ -209,8 +210,8 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
209
210
  /*#__PURE__*/ _jsx(Link, {
210
211
  href: `${basePath}/${homePageId}`,
211
212
  children: /*#__PURE__*/ _jsx("img", {
212
- src: properties.logo && properties.logo.src || (get(properties, 'header.theme') === 'light' ? `${basePath}/public/logo-light-theme.png` : `${basePath}/public/logo-dark-theme.png`),
213
- srcSet: properties.logo && (properties.logo.srcSet || properties.logo.src) || (get(properties, 'header.theme') === 'light' ? `${basePath}/public/logo-square-light-theme.png 40w, ${basePath}/public/logo-light-theme.png 577w` : `${basePath}/public/logo-square-dark-theme.png 40w, ${basePath}/public/logo-dark-theme.png 577w`),
213
+ src: properties.logo && properties.logo.src || (get(properties, 'header.theme') === 'light' ? `${basePath}/logo-light-theme.png` : `${basePath}/logo-dark-theme.png`),
214
+ srcSet: properties.logo && (properties.logo.srcSet || properties.logo.src) || (get(properties, 'header.theme') === 'light' ? `${basePath}/logo-square-light-theme.png 40w, ${basePath}/logo-light-theme.png 577w` : `${basePath}/logo-square-dark-theme.png 40w, ${basePath}/logo-dark-theme.png 577w`),
214
215
  sizes: properties.logo && properties.logo.sizes || '(max-width: 576px) 40px, 577px',
215
216
  alt: properties.logo && properties.logo.alt || 'Lowdefy',
216
217
  className: methods.makeCssClass([
@@ -342,10 +343,9 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
342
343
  type: 'link',
343
344
  block: true,
344
345
  icon: {
345
- name: openSiderState ? 'MenuFoldOutlined' : 'MenuUnfoldOutlined'
346
+ name: openSiderState ? 'AiOutlineMenuFold' : 'AiOutlineMenuUnfold'
346
347
  },
347
- ...properties.toggleSiderButton || {
348
- }
348
+ ...properties.toggleSiderButton || {}
349
349
  },
350
350
  methods: methods,
351
351
  onClick: ()=>methods.toggleSiderOpen()
@@ -438,9 +438,14 @@ PageSiderMenu.meta = {
438
438
  properties: {
439
439
  height: '100vh'
440
440
  }
441
- }
441
+ },
442
+ icons: [
443
+ 'AiOutlineMenuFold',
444
+ 'AiOutlineMenuUnfold',
445
+ ...MobileMenu.meta.icons
446
+ ],
447
+ styles: [
448
+ 'blocks/PageSiderMenu/style.less'
449
+ ]
442
450
  };
443
- PageSiderMenu.styles = [
444
- 'blocks/PageSiderMenu/style.less'
445
- ];
446
451
  export default PageSiderMenu;
@@ -97,9 +97,10 @@ PaginationBlock.meta = {
97
97
  properties: {
98
98
  height: 33
99
99
  }
100
- }
100
+ },
101
+ icons: [],
102
+ styles: [
103
+ 'blocks/Pagination/style.less'
104
+ ]
101
105
  };
102
- PaginationBlock.styles = [
103
- 'blocks/Pagination/style.less'
104
- ];
105
106
  export default PaginationBlock;
@@ -97,9 +97,10 @@ ParagraphBlock.meta = {
97
97
  category: 'display',
98
98
  loading: {
99
99
  type: 'SkeletonParagraph'
100
- }
100
+ },
101
+ icons: [],
102
+ styles: [
103
+ 'blocks/Paragraph/style.less'
104
+ ]
101
105
  };
102
- ParagraphBlock.styles = [
103
- 'blocks/Paragraph/style.less'
104
- ];
105
106
  export default ParagraphBlock;
@@ -119,9 +119,10 @@ ParagraphInput.meta = {
119
119
  category: 'input',
120
120
  loading: {
121
121
  type: 'SkeletonParagraph'
122
- }
122
+ },
123
+ icons: [],
124
+ styles: [
125
+ 'blocks/ParagraphInput/style.less'
126
+ ]
123
127
  };
124
- ParagraphInput.styles = [
125
- 'blocks/ParagraphInput/style.less'
126
- ];
127
128
  export default ParagraphInput;
@@ -71,9 +71,12 @@ PasswordInput.meta = {
71
71
  category: 'input',
72
72
  loading: {
73
73
  type: 'SkeletonInput'
74
- }
74
+ },
75
+ icons: [
76
+ ...Label.meta.icons
77
+ ],
78
+ styles: [
79
+ 'blocks/PasswordInput/style.less'
80
+ ]
75
81
  };
76
- PasswordInput.styles = [
77
- 'blocks/PasswordInput/style.less'
78
- ];
79
82
  export default PasswordInput;
@@ -41,9 +41,10 @@ ProgressBlock.meta = {
41
41
  properties: {
42
42
  height: 40
43
43
  }
44
- }
44
+ },
45
+ icons: [],
46
+ styles: [
47
+ 'blocks/Progress/style.less'
48
+ ]
45
49
  };
46
- ProgressBlock.styles = [
47
- 'blocks/Progress/style.less'
48
- ];
49
50
  export default ProgressBlock;
@@ -93,9 +93,12 @@ RadioSelector.meta = {
93
93
  category: 'input',
94
94
  loading: {
95
95
  type: 'SkeletonInput'
96
- }
96
+ },
97
+ icons: [
98
+ ...Label.meta.icons
99
+ ],
100
+ styles: [
101
+ 'blocks/RadioSelector/style.less'
102
+ ]
97
103
  };
98
- RadioSelector.styles = [
99
- 'blocks/RadioSelector/style.less'
100
- ];
101
104
  export default RadioSelector;
@@ -21,15 +21,13 @@ import classNames from 'classnames';
21
21
  import CheckboxSelector from '../CheckboxSelector/CheckboxSelector.js';
22
22
  import Label from '../Label/Label.js';
23
23
  const includeMarks = (minMax, minMin, step = 1)=>{
24
- const marks = {
25
- };
24
+ const marks = {};
26
25
  marks[minMin] = {
27
26
  style: {
28
27
  marginTop: 2,
29
28
  fontSize: 12
30
29
  },
31
- label: /*#__PURE__*/ _jsx("span", {
32
- })
30
+ label: /*#__PURE__*/ _jsx("span", {})
33
31
  };
34
32
  // round to fix floating point error
35
33
  for(let k = minMax[0]; k <= minMax[1]; k = parseFloat((k + step).toPrecision(8))){
@@ -243,9 +241,12 @@ RatingSlider.meta = {
243
241
  category: 'input',
244
242
  loading: {
245
243
  type: 'SkeletonInput'
246
- }
244
+ },
245
+ icons: [
246
+ ...Label.meta.icons
247
+ ],
248
+ styles: [
249
+ 'blocks/RatingSlider/style.less'
250
+ ]
247
251
  };
248
- RatingSlider.styles = [
249
- 'blocks/RatingSlider/style.less'
250
- ];
251
252
  export default RatingSlider;
@@ -48,9 +48,10 @@ ResultBlock.meta = {
48
48
  properties: {
49
49
  height: '100vh'
50
50
  }
51
- }
51
+ },
52
+ icons: [],
53
+ styles: [
54
+ 'blocks/Result/style.less'
55
+ ]
52
56
  };
53
- ResultBlock.styles = [
54
- 'blocks/Result/style.less'
55
- ];
56
57
  export default ResultBlock;
@@ -21,8 +21,7 @@ import Button from '../Button/Button.js';
21
21
  const makeFileValue = (file, s3Parameters)=>{
22
22
  const { lastModified , name , percent , size , status , type , uid } = file;
23
23
  const { bucket , key } = get(s3Parameters, uid, {
24
- default: {
25
- }
24
+ default: {}
26
25
  });
27
26
  return {
28
27
  bucket,
@@ -158,7 +157,7 @@ const S3UploadButtonBlock = ({ blockId , components , events , methods , propert
158
157
  events: events,
159
158
  properties: {
160
159
  disabled,
161
- icon: 'UploadOutlined',
160
+ icon: 'AiOutlineUpload',
162
161
  title: 'Upload',
163
162
  type: 'default',
164
163
  ...properties.button
@@ -173,9 +172,12 @@ S3UploadButtonBlock.meta = {
173
172
  category: 'input',
174
173
  loading: {
175
174
  type: 'SkeletonButton'
176
- }
175
+ },
176
+ icons: [
177
+ 'AiOutlineUpload'
178
+ ],
179
+ styles: [
180
+ 'blocks/S3UploadButton/style.less'
181
+ ]
177
182
  };
178
- S3UploadButtonBlock.styles = [
179
- 'blocks/S3UploadButton/style.less'
180
- ];
181
183
  export default S3UploadButtonBlock;
@@ -92,13 +92,15 @@ const Selector = ({ blockId , components: { Icon , Link } , events , loading ,
92
92
  },
93
93
  onSearch: async (value)=>{
94
94
  setFetch(true);
95
- await methods.triggerEvent({
95
+ const result = await methods.triggerEvent({
96
96
  name: 'onSearch',
97
97
  event: {
98
98
  value
99
99
  }
100
100
  });
101
- setFetch(false);
101
+ if (!result.bounced) {
102
+ setFetch(false);
103
+ }
102
104
  },
103
105
  value: getValueIndex(value1, uniqueValueOptions),
104
106
  children: uniqueValueOptions.map((opt, i)=>type.isPrimitive(opt) ? /*#__PURE__*/ _jsx(Option, {
@@ -139,9 +141,12 @@ Selector.meta = {
139
141
  category: 'input',
140
142
  loading: {
141
143
  type: 'SkeletonInput'
142
- }
144
+ },
145
+ icons: [
146
+ ...Label.meta.icons
147
+ ],
148
+ styles: [
149
+ 'blocks/Selector/style.less'
150
+ ]
143
151
  };
144
- Selector.styles = [
145
- 'blocks/Selector/style.less'
146
- ];
147
152
  export default Selector;
@@ -83,9 +83,10 @@ const SiderBlock = ({ blockId , properties , content , methods , rename })=>{
83
83
  SiderBlock.defaultProps = blockDefaultProps;
84
84
  SiderBlock.meta = {
85
85
  category: 'container',
86
- loading: false
86
+ loading: false,
87
+ icons: [],
88
+ styles: [
89
+ 'blocks/Sider/style.less'
90
+ ]
87
91
  };
88
- SiderBlock.styles = [
89
- 'blocks/Sider/style.less'
90
- ];
91
92
  export default SiderBlock;
@@ -50,9 +50,10 @@ StatisticBlock.meta = {
50
50
  properties: {
51
51
  height: 80
52
52
  }
53
- }
53
+ },
54
+ icons: [],
55
+ styles: [
56
+ 'blocks/Statistic/style.less'
57
+ ]
54
58
  };
55
- StatisticBlock.styles = [
56
- 'blocks/Statistic/style.less'
57
- ];
58
59
  export default StatisticBlock;
@@ -69,8 +69,7 @@ const SwitchBlock = ({ blockId , components: { Icon , Link } , events , loading
69
69
  events: events,
70
70
  properties: {
71
71
  name: 'CheckOutlined',
72
- ...propertiesIconChecked || {
73
- }
72
+ ...propertiesIconChecked || {}
74
73
  }
75
74
  }),
76
75
  unCheckedChildren: properties.uncheckedText ? /*#__PURE__*/ _jsx("span", {
@@ -80,8 +79,7 @@ const SwitchBlock = ({ blockId , components: { Icon , Link } , events , loading
80
79
  events: events,
81
80
  properties: {
82
81
  name: 'CloseOutlined',
83
- ...propertiesIconUnchecked || {
84
- }
82
+ ...propertiesIconUnchecked || {}
85
83
  }
86
84
  }),
87
85
  onChange: (newVal)=>{
@@ -100,9 +98,12 @@ SwitchBlock.meta = {
100
98
  category: 'input',
101
99
  loading: {
102
100
  type: 'SkeletonInput'
103
- }
101
+ },
102
+ icons: [
103
+ ...Label.meta.icons
104
+ ],
105
+ styles: [
106
+ 'blocks/Switch/style.less'
107
+ ]
104
108
  };
105
- SwitchBlock.styles = [
106
- 'blocks/Switch/style.less'
107
- ];
108
109
  export default SwitchBlock;
@@ -30,8 +30,7 @@ const getTabs = ({ content , properties })=>{
30
30
  );
31
31
  };
32
32
  const getAdditionalProps = ({ content , properties })=>{
33
- const additionalProps = {
34
- };
33
+ const additionalProps = {};
35
34
  if (properties.activeKey) {
36
35
  additionalProps.activeKey = properties.activeKey;
37
36
  }
@@ -105,9 +104,10 @@ TabsBlock.meta = {
105
104
  properties: {
106
105
  height: 80
107
106
  }
108
- }
107
+ },
108
+ icons: [],
109
+ styles: [
110
+ 'blocks/Tabs/style.less'
111
+ ]
109
112
  };
110
- TabsBlock.styles = [
111
- 'blocks/Tabs/style.less'
112
- ];
113
113
  export default TabsBlock;
@@ -81,9 +81,12 @@ TextAreaBlock.meta = {
81
81
  category: 'input',
82
82
  loading: {
83
83
  type: 'SkeletonInput'
84
- }
84
+ },
85
+ icons: [
86
+ ...Label.meta.icons
87
+ ],
88
+ styles: [
89
+ 'blocks/TextArea/style.less'
90
+ ]
85
91
  };
86
- TextAreaBlock.styles = [
87
- 'blocks/TextArea/style.less'
88
- ];
89
92
  export default TextAreaBlock;