@lowdefy/blocks-antd 4.0.0-rc.0 → 4.0.0-rc.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.
- package/dist/blocks/Affix/Affix.js +1 -1
- package/dist/blocks/Affix/style.less +1 -1
- package/dist/blocks/Alert/Alert.js +16 -16
- package/dist/blocks/Alert/style.less +1 -1
- package/dist/blocks/AutoComplete/AutoComplete.js +2 -2
- package/dist/blocks/AutoComplete/style.less +1 -1
- package/dist/blocks/Avatar/Avatar.js +2 -2
- package/dist/blocks/Avatar/style.less +1 -1
- package/dist/blocks/Badge/Badge.js +1 -1
- package/dist/blocks/Badge/style.less +1 -1
- package/dist/blocks/Breadcrumb/Breadcrumb.js +18 -18
- package/dist/blocks/Breadcrumb/style.less +1 -1
- package/dist/blocks/Button/Button.js +3 -3
- package/dist/blocks/Button/style.less +1 -1
- package/dist/blocks/ButtonSelector/ButtonSelector.js +3 -3
- package/dist/blocks/ButtonSelector/style.less +1 -1
- package/dist/blocks/Card/Card.js +2 -2
- package/dist/blocks/Card/style.less +1 -1
- package/dist/blocks/CheckboxSelector/CheckboxSelector.js +3 -3
- package/dist/blocks/CheckboxSelector/style.less +1 -1
- package/dist/blocks/CheckboxSwitch/CheckboxSwitch.js +3 -3
- package/dist/blocks/CheckboxSwitch/style.less +1 -1
- package/dist/blocks/Collapse/Collapse.js +16 -16
- package/dist/blocks/Collapse/style.less +1 -1
- package/dist/blocks/Comment/Comment.js +1 -1
- package/dist/blocks/Comment/style.less +1 -1
- package/dist/blocks/ConfirmModal/ConfirmModal.js +1 -1
- package/dist/blocks/ConfirmModal/style.less +1 -1
- package/dist/blocks/Content/Content.js +1 -1
- package/dist/blocks/Content/style.less +1 -1
- package/dist/blocks/ControlledList/ControlledList.js +3 -3
- package/dist/blocks/ControlledList/style.less +1 -1
- package/dist/blocks/DateRangeSelector/DateRangeSelector.js +3 -3
- package/dist/blocks/DateRangeSelector/style.less +1 -1
- package/dist/blocks/DateSelector/DateSelector.js +2 -2
- package/dist/blocks/DateSelector/style.less +1 -1
- package/dist/blocks/DateTimeSelector/DateTimeSelector.js +2 -2
- package/dist/blocks/DateTimeSelector/style.less +1 -1
- package/dist/blocks/Descriptions/Descriptions.js +7 -7
- package/dist/blocks/Descriptions/style.less +1 -1
- package/dist/blocks/Divider/Divider.js +1 -1
- package/dist/blocks/Divider/style.less +1 -1
- package/dist/blocks/Drawer/Drawer.js +1 -1
- package/dist/blocks/Drawer/style.less +1 -1
- package/dist/blocks/Footer/Footer.js +1 -1
- package/dist/blocks/Footer/style.less +1 -1
- package/dist/blocks/Header/Header.js +2 -2
- package/dist/blocks/Header/style.less +1 -1
- package/dist/blocks/Label/Label.js +17 -17
- package/dist/blocks/Label/getLabelCol.js +1 -1
- package/dist/blocks/Label/getWrapperCol.js +1 -1
- package/dist/blocks/Label/labelLogic.js +5 -5
- package/dist/blocks/Label/style.less +1 -1
- package/dist/blocks/Layout/Layout.js +1 -1
- package/dist/blocks/Layout/style.less +1 -1
- package/dist/blocks/Menu/Menu.js +28 -28
- package/dist/blocks/Menu/style.less +1 -1
- package/dist/blocks/Message/Message.js +1 -1
- package/dist/blocks/Message/style.less +1 -1
- package/dist/blocks/MobileMenu/MobileMenu.js +3 -3
- package/dist/blocks/MobileMenu/style.less +1 -1
- package/dist/blocks/Modal/Modal.js +16 -16
- package/dist/blocks/Modal/style.less +1 -1
- package/dist/blocks/MonthSelector/MonthSelector.js +2 -2
- package/dist/blocks/MonthSelector/style.less +1 -1
- package/dist/blocks/MultipleSelector/MultipleSelector.js +3 -3
- package/dist/blocks/MultipleSelector/style.less +1 -1
- package/dist/blocks/Notification/Notification.js +1 -1
- package/dist/blocks/Notification/style.less +1 -1
- package/dist/blocks/NumberInput/NumberInput.js +2 -2
- package/dist/blocks/NumberInput/style.less +1 -1
- package/dist/blocks/PageHCF/PageHCF.js +1 -1
- package/dist/blocks/PageHCF/style.less +1 -1
- package/dist/blocks/PageHCSF/PageHCSF.js +1 -1
- package/dist/blocks/PageHCSF/style.less +1 -1
- package/dist/blocks/PageHSCF/PageHSCF.js +1 -1
- package/dist/blocks/PageHSCF/style.less +1 -1
- package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +7 -7
- package/dist/blocks/PageHeaderMenu/style.less +1 -1
- package/dist/blocks/PageSHCF/PageSHCF.js +1 -1
- package/dist/blocks/PageSHCF/style.less +1 -1
- package/dist/blocks/PageSiderMenu/PageSiderMenu.js +7 -7
- package/dist/blocks/PageSiderMenu/style.less +1 -1
- package/dist/blocks/Pagination/Pagination.js +1 -1
- package/dist/blocks/Pagination/style.less +1 -1
- package/dist/blocks/Paragraph/Paragraph.js +2 -2
- package/dist/blocks/Paragraph/style.less +1 -1
- package/dist/blocks/ParagraphInput/ParagraphInput.js +3 -3
- package/dist/blocks/ParagraphInput/style.less +1 -1
- package/dist/blocks/PasswordInput/PasswordInput.js +2 -2
- package/dist/blocks/PasswordInput/style.less +1 -1
- package/dist/blocks/Progress/Progress.js +1 -1
- package/dist/blocks/Progress/style.less +1 -1
- package/dist/blocks/RadioSelector/RadioSelector.js +3 -3
- package/dist/blocks/RadioSelector/style.less +1 -1
- package/dist/blocks/RatingSlider/RatingSlider.js +7 -7
- package/dist/blocks/RatingSlider/style.less +1 -1
- package/dist/blocks/Result/Result.js +1 -1
- package/dist/blocks/Result/style.less +1 -1
- package/dist/blocks/Selector/Selector.js +3 -3
- package/dist/blocks/Selector/style.less +1 -1
- package/dist/blocks/Sider/Sider.js +1 -1
- package/dist/blocks/Sider/style.less +1 -1
- package/dist/blocks/Statistic/Statistic.js +1 -1
- package/dist/blocks/Statistic/style.less +1 -1
- package/dist/blocks/Switch/Switch.js +3 -3
- package/dist/blocks/Switch/style.less +1 -1
- package/dist/blocks/Tabs/Tabs.js +16 -16
- package/dist/blocks/Tabs/style.less +1 -1
- package/dist/blocks/TextArea/TextArea.js +2 -2
- package/dist/blocks/TextArea/style.less +1 -1
- package/dist/blocks/TextInput/TextInput.js +2 -2
- package/dist/blocks/TextInput/style.less +1 -1
- package/dist/blocks/TimelineList/TimelineList.js +16 -16
- package/dist/blocks/TimelineList/style.less +1 -1
- package/dist/blocks/Title/Title.js +3 -3
- package/dist/blocks/Title/style.less +1 -1
- package/dist/blocks/TitleInput/TitleInput.js +4 -4
- package/dist/blocks/TitleInput/style.less +1 -1
- package/dist/blocks/Tooltip/Tooltip.js +1 -1
- package/dist/blocks/Tooltip/style.less +1 -1
- package/dist/blocks/WeekSelector/WeekSelector.js +2 -2
- package/dist/blocks/WeekSelector/style.less +1 -1
- package/dist/blocks.js +1 -1
- package/dist/color.js +1 -1
- package/dist/disabledDate.js +1 -1
- package/dist/getUniqueValues.js +1 -1
- package/dist/getValueIndex.js +1 -1
- package/dist/style.less +1 -1
- package/dist/types.js +1 -1
- package/dist/useRunAfterUpdate.js +1 -1
- package/dist/validationExamples.js +2 -2
- package/package.json +20 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -25,7 +25,7 @@ import Layout from '../Layout/Layout.js';
|
|
|
25
25
|
import Menu from '../Menu/Menu.js';
|
|
26
26
|
import MobileMenu from '../MobileMenu/MobileMenu.js';
|
|
27
27
|
import Sider from '../Sider/Sider.js';
|
|
28
|
-
const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , events , content , menus , methods , pageId , properties
|
|
28
|
+
const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , events , content , menus , methods , pageId , properties })=>{
|
|
29
29
|
const [openSiderState, setSiderOpen] = useState(!properties.sider?.initialCollapsed);
|
|
30
30
|
useEffect(()=>{
|
|
31
31
|
methods.registerMethod('toggleSiderOpen', ()=>{
|
|
@@ -195,7 +195,7 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
|
|
|
195
195
|
theme: get(properties, 'sider.theme') ?? 'light'
|
|
196
196
|
},
|
|
197
197
|
properties.menu,
|
|
198
|
-
properties.menuMd
|
|
198
|
+
properties.menuMd
|
|
199
199
|
]),
|
|
200
200
|
rename: {
|
|
201
201
|
methods: {
|
|
@@ -213,7 +213,7 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
|
|
|
213
213
|
media: `(min-width:${properties.logo?.breakpoint ?? 577}px)`,
|
|
214
214
|
srcSet: properties.logo?.src ?? `${basePath}/logo-${properties.header?.theme ?? 'dark'}-theme.png`
|
|
215
215
|
}), /*#__PURE__*/ React.createElement("img", {
|
|
216
|
-
src:
|
|
216
|
+
src: properties.logo?.srcMobile ?? properties.logo?.src ?? `${basePath}/logo-square-${properties.header?.theme ?? 'dark'}-theme.png`,
|
|
217
217
|
alt: properties.logo?.alt ?? 'Lowdefy',
|
|
218
218
|
className: methods.makeCssClass([
|
|
219
219
|
styles.logo,
|
|
@@ -243,7 +243,7 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
|
|
|
243
243
|
theme: get(properties, 'sider.theme') ?? 'light',
|
|
244
244
|
style: styles.desktop
|
|
245
245
|
},
|
|
246
|
-
properties.sider
|
|
246
|
+
properties.sider
|
|
247
247
|
]),
|
|
248
248
|
rename: {
|
|
249
249
|
methods: {
|
|
@@ -274,7 +274,7 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
|
|
|
274
274
|
style: styles.desktop
|
|
275
275
|
},
|
|
276
276
|
properties.menu,
|
|
277
|
-
properties.menuLg
|
|
277
|
+
properties.menuLg
|
|
278
278
|
]),
|
|
279
279
|
rename: {
|
|
280
280
|
methods: {
|
|
@@ -366,7 +366,7 @@ const PageSiderMenu = ({ basePath , blockId , components: { Icon , Link } , eve
|
|
|
366
366
|
{
|
|
367
367
|
style: styles.breadcrumb
|
|
368
368
|
},
|
|
369
|
-
properties.breadcrumb
|
|
369
|
+
properties.breadcrumb
|
|
370
370
|
]),
|
|
371
371
|
rename: {
|
|
372
372
|
events: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -43,7 +43,7 @@ const ParagraphBlock = ({ blockId , components: { Icon } , events , methods , p
|
|
|
43
43
|
blockId: `${blockId}_copyable_after_icon`,
|
|
44
44
|
events: events,
|
|
45
45
|
properties: properties.copyable.icon[1]
|
|
46
|
-
})
|
|
46
|
+
})
|
|
47
47
|
] : /*#__PURE__*/ React.createElement(Icon, {
|
|
48
48
|
blockId: `${blockId}_copyable_icon`,
|
|
49
49
|
events: events,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import { Typography } from 'antd';
|
|
|
17
17
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
18
18
|
import { type } from '@lowdefy/helpers';
|
|
19
19
|
const Paragraph = Typography.Paragraph;
|
|
20
|
-
const ParagraphInput = ({ blockId , components: { Icon } , events , loading , methods , properties , value
|
|
20
|
+
const ParagraphInput = ({ blockId , components: { Icon } , events , loading , methods , properties , value })=>{
|
|
21
21
|
const [editing, setEdit] = useState(false);
|
|
22
22
|
const editableEvents = {
|
|
23
23
|
onStart: ()=>{
|
|
@@ -63,7 +63,7 @@ const ParagraphInput = ({ blockId , components: { Icon } , events , loading , m
|
|
|
63
63
|
blockId: `${blockId}_copyable_after_icon`,
|
|
64
64
|
events: events,
|
|
65
65
|
properties: properties.copyable.icon[1]
|
|
66
|
-
})
|
|
66
|
+
})
|
|
67
67
|
] : /*#__PURE__*/ React.createElement(Icon, {
|
|
68
68
|
blockId: `${blockId}_copyable_icon`,
|
|
69
69
|
events: events,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import { Input } from 'antd';
|
|
|
17
17
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
18
18
|
import Label from '../Label/Label.js';
|
|
19
19
|
import useRunAfterUpdate from '../../useRunAfterUpdate.js';
|
|
20
|
-
const PasswordInput = ({ blockId , components , events , loading , methods , properties , required , validation , value
|
|
20
|
+
const PasswordInput = ({ blockId , components , events , loading , methods , properties , required , validation , value })=>{
|
|
21
21
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
22
22
|
blockId: blockId,
|
|
23
23
|
components: components,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -20,7 +20,7 @@ import Label from '../Label/Label.js';
|
|
|
20
20
|
import getValueIndex from '../../getValueIndex.js';
|
|
21
21
|
import getUniqueValues from '../../getUniqueValues.js';
|
|
22
22
|
const RadioGroup = Radio.Group;
|
|
23
|
-
const RadioSelector = ({ blockId , components , events , loading , properties , required , validation , value , methods
|
|
23
|
+
const RadioSelector = ({ blockId , components , events , loading , properties , required , validation , value , methods })=>{
|
|
24
24
|
const uniqueValueOptions = getUniqueValues(properties.options || []);
|
|
25
25
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
26
26
|
blockId: blockId,
|
|
@@ -45,7 +45,7 @@ const RadioSelector = ({ blockId , components , events , loading , properties ,
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
properties.inputStyle
|
|
48
|
+
properties.inputStyle
|
|
49
49
|
]),
|
|
50
50
|
disabled: properties.disabled || loading,
|
|
51
51
|
onChange: (event)=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -63,7 +63,7 @@ const styles = {
|
|
|
63
63
|
flexDirection: 'row'
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
const RatingSlider = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value
|
|
66
|
+
const RatingSlider = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value })=>{
|
|
67
67
|
const [check, unCheck] = useState(false);
|
|
68
68
|
let propertiesIconMin = serializer.copy(properties.minIcon);
|
|
69
69
|
if (type.isString(propertiesIconMin)) {
|
|
@@ -107,7 +107,7 @@ const RatingSlider = ({ blockId , components: { Icon , Link } , events , loadin
|
|
|
107
107
|
styles.content,
|
|
108
108
|
{
|
|
109
109
|
paddingRight: validation.status && 30
|
|
110
|
-
}
|
|
110
|
+
}
|
|
111
111
|
])
|
|
112
112
|
}, !required && !properties.disableNotApplicable && /*#__PURE__*/ React.createElement(CheckboxSelector, {
|
|
113
113
|
blockId: `${blockId}_checkbox_selector`,
|
|
@@ -132,7 +132,7 @@ const RatingSlider = ({ blockId , components: { Icon , Link } , events , loadin
|
|
|
132
132
|
properties.CheckboxInput,
|
|
133
133
|
{
|
|
134
134
|
style: styles.checkbox
|
|
135
|
-
}
|
|
135
|
+
}
|
|
136
136
|
]),
|
|
137
137
|
methods: {
|
|
138
138
|
...methods,
|
|
@@ -157,7 +157,7 @@ const RatingSlider = ({ blockId , components: { Icon , Link } , events , loadin
|
|
|
157
157
|
style: styles.iconLeft,
|
|
158
158
|
color: properties.color
|
|
159
159
|
},
|
|
160
|
-
propertiesIconMin
|
|
160
|
+
propertiesIconMin
|
|
161
161
|
])
|
|
162
162
|
}), /*#__PURE__*/ React.createElement(Slider, {
|
|
163
163
|
id: `${blockId}_input`,
|
|
@@ -182,7 +182,7 @@ const RatingSlider = ({ blockId , components: { Icon , Link } , events , loadin
|
|
|
182
182
|
'& > div.ant-slider-rail': {
|
|
183
183
|
backgroundColor: `${validationColor} !important`
|
|
184
184
|
}
|
|
185
|
-
}
|
|
185
|
+
}
|
|
186
186
|
]), methods.makeCssClass(styles.slider), methods.makeCssClass(properties.inputStyle)),
|
|
187
187
|
autoFocus: properties.autoFocus,
|
|
188
188
|
disabled: properties.disabled || check === true && !properties.disableNotApplicable || loading,
|
|
@@ -218,7 +218,7 @@ const RatingSlider = ({ blockId , components: { Icon , Link } , events , loadin
|
|
|
218
218
|
style: styles.iconRight,
|
|
219
219
|
color: properties.color
|
|
220
220
|
},
|
|
221
|
-
propertiesIconMax
|
|
221
|
+
propertiesIconMax
|
|
222
222
|
])
|
|
223
223
|
}))
|
|
224
224
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -20,7 +20,7 @@ import Label from '../Label/Label.js';
|
|
|
20
20
|
import getValueIndex from '../../getValueIndex.js';
|
|
21
21
|
import getUniqueValues from '../../getUniqueValues.js';
|
|
22
22
|
const Option = Select.Option;
|
|
23
|
-
const Selector = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value
|
|
23
|
+
const Selector = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value })=>{
|
|
24
24
|
const [fetchState, setFetch] = useState(false);
|
|
25
25
|
const uniqueValueOptions = getUniqueValues(properties.options || []);
|
|
26
26
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
@@ -97,7 +97,7 @@ const Selector = ({ blockId , components: { Icon , Link } , events , loading ,
|
|
|
97
97
|
setFetch(false);
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
-
value: getValueIndex(
|
|
100
|
+
value: getValueIndex(value, uniqueValueOptions)
|
|
101
101
|
}, uniqueValueOptions.map((opt, i)=>type.isPrimitive(opt) ? /*#__PURE__*/ React.createElement(Option, {
|
|
102
102
|
className: methods.makeCssClass(properties.optionsStyle),
|
|
103
103
|
id: `${blockId}_${i}`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import { Switch } from 'antd';
|
|
|
17
17
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
18
18
|
import { type, serializer } from '@lowdefy/helpers';
|
|
19
19
|
import Label from '../Label/Label.js';
|
|
20
|
-
const SwitchBlock = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value
|
|
20
|
+
const SwitchBlock = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value })=>{
|
|
21
21
|
let propertiesIconChecked = serializer.copy(properties.checkedIcon);
|
|
22
22
|
if (type.isString(propertiesIconChecked)) {
|
|
23
23
|
propertiesIconChecked = {
|
|
@@ -54,7 +54,7 @@ const SwitchBlock = ({ blockId , components: { Icon , Link } , events , loading
|
|
|
54
54
|
backgroundColor: `${properties.color} !important`
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
properties.inputStyle
|
|
57
|
+
properties.inputStyle
|
|
58
58
|
]),
|
|
59
59
|
disabled: properties.disabled || loading,
|
|
60
60
|
id: `${blockId}_input`,
|
package/dist/blocks/Tabs/Tabs.js
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign || function(target) {
|
|
3
|
-
for(var i = 1; i < arguments.length; i++){
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for(var key in source){
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
1
|
/*
|
|
16
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
17
3
|
|
|
18
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
19
5
|
you may not use this file except in compliance with the License.
|
|
@@ -26,7 +12,21 @@ function _extends() {
|
|
|
26
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
13
|
See the License for the specific language governing permissions and
|
|
28
14
|
limitations under the License.
|
|
29
|
-
*/
|
|
15
|
+
*/ function _extends() {
|
|
16
|
+
_extends = Object.assign || function(target) {
|
|
17
|
+
for(var i = 1; i < arguments.length; i++){
|
|
18
|
+
var source = arguments[i];
|
|
19
|
+
for(var key in source){
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
|
+
target[key] = source[key];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return target;
|
|
26
|
+
};
|
|
27
|
+
return _extends.apply(this, arguments);
|
|
28
|
+
}
|
|
29
|
+
import React from 'react';
|
|
30
30
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
31
31
|
import { Tabs } from 'antd';
|
|
32
32
|
const getTabs = ({ content , properties })=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -19,7 +19,7 @@ import { Input } from 'antd';
|
|
|
19
19
|
import Label from '../Label/Label.js';
|
|
20
20
|
import useRunAfterUpdate from '../../useRunAfterUpdate.js';
|
|
21
21
|
const TextAreaComp = Input.TextArea;
|
|
22
|
-
const TextAreaBlock = ({ blockId , components , events , loading , properties , required , validation , value , methods
|
|
22
|
+
const TextAreaBlock = ({ blockId , components , events , loading , properties , required , validation , value , methods })=>{
|
|
23
23
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
24
24
|
blockId: blockId,
|
|
25
25
|
components: components,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import { Input } from 'antd';
|
|
|
17
17
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
18
18
|
import Label from '../Label/Label.js';
|
|
19
19
|
import useRunAfterUpdate from '../../useRunAfterUpdate.js';
|
|
20
|
-
const TextInput = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value
|
|
20
|
+
const TextInput = ({ blockId , components: { Icon , Link } , events , loading , methods , properties , required , validation , value })=>{
|
|
21
21
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
22
22
|
blockId: blockId,
|
|
23
23
|
components: {
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign || function(target) {
|
|
3
|
-
for(var i = 1; i < arguments.length; i++){
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for(var key in source){
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
1
|
/*
|
|
16
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
17
3
|
|
|
18
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
19
5
|
you may not use this file except in compliance with the License.
|
|
@@ -26,7 +12,21 @@ function _extends() {
|
|
|
26
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
13
|
See the License for the specific language governing permissions and
|
|
28
14
|
limitations under the License.
|
|
29
|
-
*/
|
|
15
|
+
*/ function _extends() {
|
|
16
|
+
_extends = Object.assign || function(target) {
|
|
17
|
+
for(var i = 1; i < arguments.length; i++){
|
|
18
|
+
var source = arguments[i];
|
|
19
|
+
for(var key in source){
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
|
+
target[key] = source[key];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return target;
|
|
26
|
+
};
|
|
27
|
+
return _extends.apply(this, arguments);
|
|
28
|
+
}
|
|
29
|
+
import React from 'react';
|
|
30
30
|
import { Timeline } from 'antd';
|
|
31
31
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
32
32
|
import { get, mergeObjects, serializer, type } from '@lowdefy/helpers';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -24,7 +24,7 @@ const TitleBlock = ({ blockId , components: { Icon } , events , properties , me
|
|
|
24
24
|
properties.color && {
|
|
25
25
|
color: `${properties.color} !important`
|
|
26
26
|
},
|
|
27
|
-
properties.style
|
|
27
|
+
properties.style
|
|
28
28
|
]),
|
|
29
29
|
code: properties.code,
|
|
30
30
|
copyable: type.isObject(properties.copyable) ? {
|
|
@@ -49,7 +49,7 @@ const TitleBlock = ({ blockId , components: { Icon } , events , properties , me
|
|
|
49
49
|
blockId: `${blockId}_copyable_after_icon`,
|
|
50
50
|
events: events,
|
|
51
51
|
properties: properties.copyable.icon[1]
|
|
52
|
-
})
|
|
52
|
+
})
|
|
53
53
|
] : /*#__PURE__*/ React.createElement(Icon, {
|
|
54
54
|
blockId: `${blockId}_copyable_icon`,
|
|
55
55
|
events: events,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import { Typography } from 'antd';
|
|
|
17
17
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
18
18
|
import { type } from '@lowdefy/helpers';
|
|
19
19
|
const Title = Typography.Title;
|
|
20
|
-
const TitleInput = ({ blockId , components: { Icon } , events , loading , methods , properties , value
|
|
20
|
+
const TitleInput = ({ blockId , components: { Icon } , events , loading , methods , properties , value })=>{
|
|
21
21
|
const [editing, setEdit] = useState(false);
|
|
22
22
|
const editableEvents = {
|
|
23
23
|
onStart: ()=>{
|
|
@@ -49,7 +49,7 @@ const TitleInput = ({ blockId , components: { Icon } , events , loading , metho
|
|
|
49
49
|
properties.color && {
|
|
50
50
|
color: `${properties.color} !important`
|
|
51
51
|
},
|
|
52
|
-
properties.style
|
|
52
|
+
properties.style
|
|
53
53
|
]),
|
|
54
54
|
copyable: type.isObject(properties.copyable) ? {
|
|
55
55
|
text: properties.copyable.text,
|
|
@@ -73,7 +73,7 @@ const TitleInput = ({ blockId , components: { Icon } , events , loading , metho
|
|
|
73
73
|
events: events,
|
|
74
74
|
blockId: `${blockId}_copyable_after_icon`,
|
|
75
75
|
properties: properties.copyable.icon[1]
|
|
76
|
-
})
|
|
76
|
+
})
|
|
77
77
|
] : /*#__PURE__*/ React.createElement(Icon, {
|
|
78
78
|
blockId: `${blockId}_copyable_icon`,
|
|
79
79
|
events: events,
|