ods-component-lib 1.12.1 → 1.13.0
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/index.js +364 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +341 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,8 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var React__default = _interopDefault(React);
|
|
5
5
|
var antd = require('antd');
|
|
6
|
-
var styled =
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var styled__default = _interopDefault(styled);
|
|
7
8
|
var Card = _interopDefault(require('antd/es/card/Card'));
|
|
8
9
|
var icons = require('@ant-design/icons');
|
|
9
10
|
require('react-phone-input-2/lib/style.css');
|
|
@@ -38,17 +39,351 @@ function _taggedTemplateLiteralLoose(strings, raw) {
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
var _templateObject;
|
|
41
|
-
var StyledAutoComplete =
|
|
42
|
+
var StyledAutoComplete = styled__default(antd.AutoComplete)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
42
43
|
|
|
43
44
|
function OdsAutoComplete(props) {
|
|
44
45
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledAutoComplete, Object.assign({}, props), props.children));
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
var _templateObject$1;
|
|
48
|
-
var StyledButton =
|
|
49
|
+
var StyledButton = styled__default(antd.Button)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n box-shadow: none;\n"])));
|
|
50
|
+
|
|
51
|
+
var lightTheme = {
|
|
52
|
+
token: {
|
|
53
|
+
blue1: "#e6f4ff",
|
|
54
|
+
blue2: "#bae0ff",
|
|
55
|
+
blue3: "#91caff",
|
|
56
|
+
blue4: "#69b1ff",
|
|
57
|
+
blue5: "#4096ff",
|
|
58
|
+
blue6: "#1677ff",
|
|
59
|
+
blue7: "#0958d9",
|
|
60
|
+
blue8: "#003eb3",
|
|
61
|
+
blue9: "#002c8c",
|
|
62
|
+
blue10: "#001d66",
|
|
63
|
+
purple1: "#f9f0ff",
|
|
64
|
+
purple2: "#efdbff",
|
|
65
|
+
purple3: "#d3adf7",
|
|
66
|
+
purple4: "#b37feb",
|
|
67
|
+
purple5: "#9254de",
|
|
68
|
+
purple6: "#722ed1",
|
|
69
|
+
purple7: "#531dab",
|
|
70
|
+
purple8: "#391085",
|
|
71
|
+
purple9: "#22075e",
|
|
72
|
+
purple10: "#120338",
|
|
73
|
+
cyan1: "#e6fffb",
|
|
74
|
+
cyan2: "#b5f5ec",
|
|
75
|
+
cyan3: "#87e8de",
|
|
76
|
+
cyan4: "#5cdbd3",
|
|
77
|
+
cyan5: "#36cfc9",
|
|
78
|
+
cyan6: "#13c2c2",
|
|
79
|
+
cyan7: "#08979c",
|
|
80
|
+
cyan8: "#006d75",
|
|
81
|
+
cyan9: "#00474f",
|
|
82
|
+
cyan10: "#002329",
|
|
83
|
+
green1: "#f6ffed",
|
|
84
|
+
green2: "#d9f7be",
|
|
85
|
+
green3: "#b7eb8f",
|
|
86
|
+
green4: "#95de64",
|
|
87
|
+
green5: "#73d13d",
|
|
88
|
+
green6: "#52c41a",
|
|
89
|
+
green7: "#389e0d",
|
|
90
|
+
green8: "#237804",
|
|
91
|
+
green9: "#135200",
|
|
92
|
+
green10: "#092b00",
|
|
93
|
+
magenta1: "#fff0f6",
|
|
94
|
+
magenta2: "#ffd6e7",
|
|
95
|
+
magenta3: "#ffadd2",
|
|
96
|
+
magenta4: "#ff85c0",
|
|
97
|
+
magenta5: "#f759ab",
|
|
98
|
+
magenta6: "#eb2f96",
|
|
99
|
+
magenta7: "#c41d7f",
|
|
100
|
+
magenta8: "#9e1068",
|
|
101
|
+
magenta9: "#780650",
|
|
102
|
+
magenta10: "#520339",
|
|
103
|
+
red1: "#fff1f0",
|
|
104
|
+
red2: "#ffccc7",
|
|
105
|
+
red3: "#ffa39e",
|
|
106
|
+
red4: "#ff7875",
|
|
107
|
+
red5: "#ff4d4f",
|
|
108
|
+
red6: "#f5222d",
|
|
109
|
+
red7: "#cf1322",
|
|
110
|
+
red8: "#a8071a",
|
|
111
|
+
red9: "#820014",
|
|
112
|
+
red10: "#5c0011",
|
|
113
|
+
orange1: "#fff7e6",
|
|
114
|
+
orange2: "#ffe7ba",
|
|
115
|
+
orange3: "#ffd591",
|
|
116
|
+
orange4: "#ffc069",
|
|
117
|
+
orange5: "#ffa940",
|
|
118
|
+
orange6: "#fa8c16",
|
|
119
|
+
orange7: "#d46b08",
|
|
120
|
+
orange8: "#ad4e00",
|
|
121
|
+
orange9: "#873800",
|
|
122
|
+
orange10: "#612500",
|
|
123
|
+
yellow1: "#feffe6",
|
|
124
|
+
yellow2: "#ffffb8",
|
|
125
|
+
yellow3: "#fffb8f",
|
|
126
|
+
yellow4: "#fff566",
|
|
127
|
+
yellow5: "#ffec3d",
|
|
128
|
+
yellow6: "#fadb14",
|
|
129
|
+
yellow7: "#d4b106",
|
|
130
|
+
yellow8: "#ad8b00",
|
|
131
|
+
yellow9: "#876800",
|
|
132
|
+
yellow10: "#614700",
|
|
133
|
+
volcano1: "#fff2e8",
|
|
134
|
+
volcano2: "#ffd8bf",
|
|
135
|
+
volcano3: "#ffbb96",
|
|
136
|
+
volcano4: "#ff9c6e",
|
|
137
|
+
volcano5: "#ff7a45",
|
|
138
|
+
volcano6: "#fa541c",
|
|
139
|
+
volcano7: "#d4380d",
|
|
140
|
+
volcano8: "#ad2102",
|
|
141
|
+
volcano9: "#871400",
|
|
142
|
+
volcano10: "#610b00",
|
|
143
|
+
geekblue1: "#f0f5ff",
|
|
144
|
+
geekblue2: "#d6e4ff",
|
|
145
|
+
geekblue3: "#adc6ff",
|
|
146
|
+
geekblue4: "#85a5ff",
|
|
147
|
+
geekblue5: "#597ef7",
|
|
148
|
+
geekblue6: "#2f54eb",
|
|
149
|
+
geekblue7: "#1d39c4",
|
|
150
|
+
geekblue8: "#10239e",
|
|
151
|
+
geekblue9: "#061178",
|
|
152
|
+
geekblue10: "#030852",
|
|
153
|
+
lime1: "#fcffe6",
|
|
154
|
+
lime2: "#f4ffb8",
|
|
155
|
+
lime3: "#eaff8f",
|
|
156
|
+
lime4: "#d3f261",
|
|
157
|
+
lime5: "#bae637",
|
|
158
|
+
lime6: "#a0d911",
|
|
159
|
+
lime7: "#7cb305",
|
|
160
|
+
lime8: "#5b8c00",
|
|
161
|
+
lime9: "#3f6600",
|
|
162
|
+
lime10: "#254000",
|
|
163
|
+
gold1: "#fffbe6",
|
|
164
|
+
gold2: "#fff1b8",
|
|
165
|
+
gold3: "#ffe58f",
|
|
166
|
+
gold4: "#ffd666",
|
|
167
|
+
gold5: "#ffc53d",
|
|
168
|
+
gold6: "#faad14",
|
|
169
|
+
gold7: "#d48806",
|
|
170
|
+
gold8: "#ad6800",
|
|
171
|
+
gold9: "#874d00",
|
|
172
|
+
gold10: "#613400",
|
|
173
|
+
colorTextBase: "#000",
|
|
174
|
+
colorTextLightSolid: "#ffffff",
|
|
175
|
+
colorBgBase: "#ffffff",
|
|
176
|
+
fontFamily: "Manrope",
|
|
177
|
+
fontSize: "14px",
|
|
178
|
+
lineWidth: "1px",
|
|
179
|
+
borderRadius: "6px",
|
|
180
|
+
sizeUnit: "4px",
|
|
181
|
+
sizePopupArrow: "16px",
|
|
182
|
+
controlHeight: "32px",
|
|
183
|
+
opacityImage: "1",
|
|
184
|
+
sizeStep: "4px",
|
|
185
|
+
colorPrimary: "#1677ff",
|
|
186
|
+
colorError: "#ff4d4f",
|
|
187
|
+
colorWarning: "#faad14",
|
|
188
|
+
colorSuccess: "#52c41a",
|
|
189
|
+
colorInfo: "#1677ff",
|
|
190
|
+
colorSecondary: "#F9B515",
|
|
191
|
+
sizeXxl: "48px",
|
|
192
|
+
sizeXl: "32px",
|
|
193
|
+
sizeLg: "24px",
|
|
194
|
+
sizeMd: "20px",
|
|
195
|
+
sizeMs: "16px",
|
|
196
|
+
size: "16px",
|
|
197
|
+
sizeSm: "12px",
|
|
198
|
+
sizeXs: "8px",
|
|
199
|
+
sizeXxs: "4px",
|
|
200
|
+
controlHeightSm: "24px",
|
|
201
|
+
controlHeightXs: "16px",
|
|
202
|
+
controlHeightLg: "40px",
|
|
203
|
+
borderRadiusXs: "2px",
|
|
204
|
+
borderRadiusSm: "4px",
|
|
205
|
+
borderRadiusLg: "8px",
|
|
206
|
+
borderRadiusOuter: "4px",
|
|
207
|
+
colorText: "rgba(0, 0, 0, 0.88)",
|
|
208
|
+
colorTextSecondary: "rgba(0, 0, 0, 0.65)",
|
|
209
|
+
colorTextTertiary: "rgba(0, 0, 0, 0.45)",
|
|
210
|
+
colorTextQuaternary: "rgba(0, 0, 0, 0.25)",
|
|
211
|
+
colorFill: "rgba(0, 0, 0, 0.15)",
|
|
212
|
+
colorFillSecondary: "rgba(0, 0, 0, 0.06)",
|
|
213
|
+
colorFillTertiary: "rgba(0, 0, 0, 0.04)",
|
|
214
|
+
colorBgContainer: "#ffffff",
|
|
215
|
+
colorFillQuaternary: "rgba(0, 0, 0, 0.02)",
|
|
216
|
+
colorBgLayout: "#f5f5f5",
|
|
217
|
+
colorBgElevated: "#ffffff",
|
|
218
|
+
colorBgSpotlight: "rgba(0, 0, 0, 0.85)",
|
|
219
|
+
colorBorder: "rgba(0, 0, 0, 0.15)",
|
|
220
|
+
colorBorderSecondary: "rgba(0, 0, 0, 0.06)",
|
|
221
|
+
colorSplit: "rgba(0, 0, 0, 0.06)",
|
|
222
|
+
colorPrimaryBg: "#e6f4ff",
|
|
223
|
+
colorPrimaryBgHover: "#bae0ff",
|
|
224
|
+
colorPrimaryBorder: "#91caff",
|
|
225
|
+
colorPrimaryBorderHover: "#69b1ff",
|
|
226
|
+
colorPrimaryHover: "#4096ff",
|
|
227
|
+
colorPrimaryBase: "#1677ff",
|
|
228
|
+
colorPrimaryActive: "#0958d9",
|
|
229
|
+
colorPrimaryTextHover: "#003eb3",
|
|
230
|
+
colorPrimaryText: "#002c8c",
|
|
231
|
+
colorPrimaryTextActive: "#001d66",
|
|
232
|
+
colorSuccessBg: "#f6ffed",
|
|
233
|
+
colorSuccessBgHover: "#d9f7be",
|
|
234
|
+
colorSuccessBorder: "#b7eb8f",
|
|
235
|
+
colorSuccessBorderHover: "#95de64",
|
|
236
|
+
colorSuccessHover: "#73d13d",
|
|
237
|
+
colorSuccessBase: "#52c41a",
|
|
238
|
+
colorSuccessActive: "#389e0d",
|
|
239
|
+
colorSuccessTextHover: "#237804",
|
|
240
|
+
colorSuccessText: "#135200",
|
|
241
|
+
colorSuccessTextActive: "#092b00",
|
|
242
|
+
colorWarningBg: "#fffbe6",
|
|
243
|
+
colorWarningBgHover: "#fff1b8",
|
|
244
|
+
colorWarningBorder: "#ffe58f",
|
|
245
|
+
colorWarningBorderHover: "#ffd666",
|
|
246
|
+
colorWarningHover: "#ffc53d",
|
|
247
|
+
colorWarningBase: "#faad14",
|
|
248
|
+
colorWarningActive: "#d48806",
|
|
249
|
+
colorWarningTextHover: "#ad6800",
|
|
250
|
+
colorWarningText: "#874d00",
|
|
251
|
+
colorWarningTextActive: "#613400",
|
|
252
|
+
colorErrorBg: "#fff1f0",
|
|
253
|
+
colorErrorBgHover: "#ffccc7",
|
|
254
|
+
colorErrorBorder: "#ffa39e",
|
|
255
|
+
colorErrorBorderHover: "#ff7875",
|
|
256
|
+
colorErrorHover: "#ff7875",
|
|
257
|
+
colorErrorBase: "#ff4d4f",
|
|
258
|
+
colorErrorActive: "#cf1322",
|
|
259
|
+
colorErrorTextHover: "#a8071a",
|
|
260
|
+
colorErrorText: "#820014",
|
|
261
|
+
colorErrorTextActive: "#5c0011",
|
|
262
|
+
colorInfoBg: "#e6f4ff",
|
|
263
|
+
colorInfoBgHover: "#bae0ff",
|
|
264
|
+
colorInfoBorder: "#91caff",
|
|
265
|
+
colorInfoBorderHover: "#69b1ff",
|
|
266
|
+
colorInfoHover: "#4096ff",
|
|
267
|
+
colorInfoBase: "#1677ff",
|
|
268
|
+
colorInfoActive: "#0958d9",
|
|
269
|
+
colorInfoTextHover: "#003eb3",
|
|
270
|
+
colorInfoText: "#002c8c",
|
|
271
|
+
colorInfoTextActive: "#001d66",
|
|
272
|
+
colorBgMask: "rgba(0, 0, 0, 0.45)",
|
|
273
|
+
stepsDotSize: "8px",
|
|
274
|
+
stepsCurrentDotSize: "10px",
|
|
275
|
+
rateStarSize: "20px",
|
|
276
|
+
colorFillContent: "rgba(0, 0, 0, 0.06)",
|
|
277
|
+
colorFillContentHover: "rgba(0, 0, 0, 0.15)",
|
|
278
|
+
colorFillAlter: "rgba(0, 0, 0, 0.02)",
|
|
279
|
+
colorBgContainerDisabled: "rgba(0, 0, 0, 0.04)",
|
|
280
|
+
colorBorderBg: "#ffffff",
|
|
281
|
+
colorTextPlaceholder: "rgba(0, 0, 0, 0.25)",
|
|
282
|
+
colorTextDisabled: "rgba(0, 0, 0, 0.25)",
|
|
283
|
+
colorTextHeading: "rgba(0, 0, 0, 0.88)",
|
|
284
|
+
colorTextLabel: "rgba(0, 0, 0, 0.65)",
|
|
285
|
+
colorTextDescription: "rgba(0, 0, 0, 0.45)",
|
|
286
|
+
colorBgTextHover: "rgba(0, 0, 0, 0.06)",
|
|
287
|
+
colorBgTextActive: "rgba(0, 0, 0, 0.15)",
|
|
288
|
+
colorIcon: "rgba(0, 0, 0, 0.45)",
|
|
289
|
+
colorIconHover: "rgba(0, 0, 0, 0.88)",
|
|
290
|
+
colorLink: "#1677ff",
|
|
291
|
+
colorLinkHover: "#4096ff",
|
|
292
|
+
colorLinkActive: "#0958d9",
|
|
293
|
+
colorHighlight: "#ff7875",
|
|
294
|
+
controlOutline: "#e6f4ff",
|
|
295
|
+
colorWarningOutline: "#fffbe6",
|
|
296
|
+
colorErrorOutline: "#fff1f0",
|
|
297
|
+
fontSizeSm: "12px",
|
|
298
|
+
fontSizeLg: "16px",
|
|
299
|
+
fontSizeXl: "20px",
|
|
300
|
+
fontSizeIcon: "12px",
|
|
301
|
+
fontSizeHeading1: "38px",
|
|
302
|
+
fontSizeHeading2: "30px",
|
|
303
|
+
fontSizeHeading3: "24px",
|
|
304
|
+
fontSizeHeading4: "20px",
|
|
305
|
+
fontSizeHeading5: "16px",
|
|
306
|
+
fontWeightNormal: "400",
|
|
307
|
+
fontWeightStrong: "600",
|
|
308
|
+
controlLineWidth: "1px",
|
|
309
|
+
controlOutlineWidth: "2px",
|
|
310
|
+
controlItemBgHover: "rgba(0, 0, 0, 0.04)",
|
|
311
|
+
controlItemBgActive: "#e6f4ff",
|
|
312
|
+
controlItemBgActiveHover: "#bae0ff",
|
|
313
|
+
controlInteractiveSize: "16px",
|
|
314
|
+
controlItemBgActiveDisabled: "rgba(0, 0, 0, 0.15)",
|
|
315
|
+
controlTmpOutline: "rgba(0, 0, 0, 0.02)",
|
|
316
|
+
opacityLoading: "0.65",
|
|
317
|
+
padding: "16px",
|
|
318
|
+
paddingMd: "20px",
|
|
319
|
+
paddingSm: "12px",
|
|
320
|
+
paddingXs: "8px",
|
|
321
|
+
paddingXxs: "4px",
|
|
322
|
+
paddingLg: "24px",
|
|
323
|
+
paddingXl: "32px",
|
|
324
|
+
paddingXxl: "48px",
|
|
325
|
+
margin: "16px",
|
|
326
|
+
marginSm: "12px",
|
|
327
|
+
marginXs: "8px",
|
|
328
|
+
marginXxs: "4px",
|
|
329
|
+
marginLg: "24px",
|
|
330
|
+
marginXl: "48px",
|
|
331
|
+
controlPaddingHorizontal: "12px",
|
|
332
|
+
controlPaddingHorizontalSm: "8px",
|
|
333
|
+
baseBaseNormal: "400 14px/22px 'SF Pro Text'",
|
|
334
|
+
baseBaseStrong: "600 14px/22px 'SF Pro Text'",
|
|
335
|
+
baseBaseUnderline: "400 14px/22px 'SF Pro Text'",
|
|
336
|
+
baseBaseDelete: "400 14px/22px 'SF Pro Text'",
|
|
337
|
+
baseBaseItalic: "Regular Italic 14px/22px 'SF Pro Text'",
|
|
338
|
+
smSmNormal: "400 12px/20px 'SF Pro Text'",
|
|
339
|
+
smSmStrong: "600 12px/20px 'SF Pro Text'",
|
|
340
|
+
smSmUnderline: "400 12px/20px 'SF Pro Text'",
|
|
341
|
+
smSmDelete: "400 12px/20px 'SF Pro Text'",
|
|
342
|
+
smSmItalic: "Regular Italic 12px/20px 'SF Pro Text'",
|
|
343
|
+
lgLgNormal: "400 16px/24px 'SF Pro Text'",
|
|
344
|
+
lgLgStrong: "600 16px/24px 'SF Pro Text'",
|
|
345
|
+
lgLgUnderline: "400 16px/24px 'SF Pro Text'",
|
|
346
|
+
lgLgDelete: "400 16px/24px 'SF Pro Text'",
|
|
347
|
+
lgLgItalic: "Regular Italic 16px/24px 'SF Pro Text'",
|
|
348
|
+
xlXlNormal: "400 20px/28px 'SF Pro Text'",
|
|
349
|
+
xlXlStrong: "600 20px/28px 'SF Pro Text'",
|
|
350
|
+
xlXlUnderline: "400 20px/28px 'SF Pro Text'",
|
|
351
|
+
xlXlDelete: "400 20px/28px 'SF Pro Text'",
|
|
352
|
+
xlXlItalic: "Regular Italic 20px/28px 'SF Pro Text'",
|
|
353
|
+
headingHeading1: "600 38px/46px 'SF Pro Text'",
|
|
354
|
+
headingHeading2: "600 30px/38px 'SF Pro Text'",
|
|
355
|
+
headingHeading3: "600 24px/32px 'SF Pro Text'",
|
|
356
|
+
headingHeading4: "600 20px/28px 'SF Pro Text'",
|
|
357
|
+
headingHeading5: "600 16px/24px 'SF Pro Text'",
|
|
358
|
+
fontWeightItalic: "Regular Italic",
|
|
359
|
+
paddingContentHorizontalLg: "24px",
|
|
360
|
+
paddingContentVerticalLg: "16px",
|
|
361
|
+
paddingContentHorizontal: "16px",
|
|
362
|
+
paddingContentVertical: "12px",
|
|
363
|
+
paddingContentHorizontalSm: "16px",
|
|
364
|
+
paddingContentVerticalSm: "8px",
|
|
365
|
+
boxShadow: "0 1px 2px 0 rgba(0,0,0,0.03), 0 1px 6px -1px rgba(0,0,0,0.02), 0 2px 4px 0 rgba(0,0,0,0.02)",
|
|
366
|
+
boxShadowSecondary: "0 6px 16px 0 rgba(0,0,0,0.08), 0 3px 6px -4px rgba(0,0,0,0.12), 0 9px 28px 8px rgba(0,0,0,0.05)",
|
|
367
|
+
boxShadowCard: "0 1px 2px -2px rgba(0,0,0,0.16), 0 3px 6px 0 rgba(0,0,0,0.12), 0 5px 12px 4px rgba(0,0,0,0.09)",
|
|
368
|
+
colorItemText: "rgba(255, 255, 255, 0.65)",
|
|
369
|
+
colorItemTextDisabled: "rgba(255, 255, 255, 0.25)",
|
|
370
|
+
focusPrimary: "0 0 0 2px #e6f4ff",
|
|
371
|
+
focusError: "0 0 0 2px #fff1f0",
|
|
372
|
+
focusWarning: "0 0 0 2px #fffbe6",
|
|
373
|
+
tooltipBg: "rgba(0, 0, 0, 0.88)",
|
|
374
|
+
segmentedBgColorSelected: "#ffffff",
|
|
375
|
+
segmentedGroupBg: "rgba(0, 0, 0, 0.04)",
|
|
376
|
+
colorMenuDarkBg: "#001529",
|
|
377
|
+
colorMenuSubItemBg: "#000c17",
|
|
378
|
+
boxShadowButtonSolid: "0 2px 0 0 rgba(0, 0, 0, 0.02)",
|
|
379
|
+
paddingTooltipContentVertical: "6px"
|
|
380
|
+
}
|
|
381
|
+
};
|
|
49
382
|
|
|
50
383
|
function OdsButton(props) {
|
|
51
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(
|
|
384
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
385
|
+
theme: lightTheme
|
|
386
|
+
}, React__default.createElement(StyledButton, Object.assign({}, props), props.children)));
|
|
52
387
|
}
|
|
53
388
|
|
|
54
389
|
var onMenuClick = function onMenuClick(e) {
|
|
@@ -74,14 +409,14 @@ function OdsDropdownButton(props) {
|
|
|
74
409
|
}
|
|
75
410
|
|
|
76
411
|
var _templateObject$2;
|
|
77
|
-
var StyledCalendar =
|
|
412
|
+
var StyledCalendar = styled__default(antd.Calendar)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n width:100%;\n"])));
|
|
78
413
|
|
|
79
414
|
function OdsCalendar(props) {
|
|
80
415
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledCalendar, Object.assign({}, props)));
|
|
81
416
|
}
|
|
82
417
|
|
|
83
418
|
var _templateObject$3;
|
|
84
|
-
var StyledCard =
|
|
419
|
+
var StyledCard = styled__default(Card)(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
85
420
|
|
|
86
421
|
var Meta = antd.Card.Meta;
|
|
87
422
|
function OdsCard(props) {
|
|
@@ -92,7 +427,7 @@ function OdsCard(props) {
|
|
|
92
427
|
}
|
|
93
428
|
|
|
94
429
|
var _templateObject$4;
|
|
95
|
-
var StyledCheckbox =
|
|
430
|
+
var StyledCheckbox = styled__default(antd.Checkbox)(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n box-shadow: none;\n"])));
|
|
96
431
|
|
|
97
432
|
function OdsCheckbox(props) {
|
|
98
433
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledCheckbox, Object.assign({}, props)));
|
|
@@ -105,7 +440,7 @@ function OdsCheckboxGroup(props) {
|
|
|
105
440
|
}
|
|
106
441
|
|
|
107
442
|
var _templateObject$5;
|
|
108
|
-
var StyledDatepicker =
|
|
443
|
+
var StyledDatepicker = styled__default(antd.DatePicker)(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n width:100%;\n"])));
|
|
109
444
|
|
|
110
445
|
function OdsDateRangePicker(props) {
|
|
111
446
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledDatepicker.RangePicker, Object.assign({}, props, {
|
|
@@ -116,14 +451,14 @@ function OdsDateRangePicker(props) {
|
|
|
116
451
|
}
|
|
117
452
|
|
|
118
453
|
var _templateObject$6;
|
|
119
|
-
var StyledDivider =
|
|
454
|
+
var StyledDivider = styled__default(antd.Divider)(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
120
455
|
|
|
121
456
|
function OdsDivider(props) {
|
|
122
457
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledDivider, Object.assign({}, props)));
|
|
123
458
|
}
|
|
124
459
|
|
|
125
460
|
var _templateObject$7;
|
|
126
|
-
var StyledDropdown =
|
|
461
|
+
var StyledDropdown = styled__default(antd.Dropdown)(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
127
462
|
|
|
128
463
|
var handleMenuClick = function handleMenuClick(e) {
|
|
129
464
|
console.log('click', e);
|
|
@@ -139,7 +474,7 @@ function OdsCollapse(props) {
|
|
|
139
474
|
}
|
|
140
475
|
|
|
141
476
|
var _templateObject$8;
|
|
142
|
-
var StyledInput =
|
|
477
|
+
var StyledInput = styled__default(antd.Input)(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
143
478
|
|
|
144
479
|
function OdsInput(props) {
|
|
145
480
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children));
|
|
@@ -252,14 +587,14 @@ function OdsTextArea(props) {
|
|
|
252
587
|
}
|
|
253
588
|
|
|
254
589
|
var _templateObject$9;
|
|
255
|
-
var StyledInputNumber =
|
|
590
|
+
var StyledInputNumber = styled__default(antd.InputNumber)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
256
591
|
|
|
257
592
|
function OdsInputNumber(props) {
|
|
258
593
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledInputNumber, Object.assign({}, props)));
|
|
259
594
|
}
|
|
260
595
|
|
|
261
596
|
var _templateObject$a;
|
|
262
|
-
var StyledList =
|
|
597
|
+
var StyledList = styled__default(antd.List)(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
263
598
|
|
|
264
599
|
function OdsList(props) {
|
|
265
600
|
props.size = "default";
|
|
@@ -358,7 +693,7 @@ var OdsNotification = function OdsNotification(props) {
|
|
|
358
693
|
};
|
|
359
694
|
|
|
360
695
|
var _templateObject$b;
|
|
361
|
-
var StyledRadio =
|
|
696
|
+
var StyledRadio = styled__default(antd.Radio)(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
362
697
|
|
|
363
698
|
function OdsRadio(props) {
|
|
364
699
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledRadio, Object.assign({}, props), props.children));
|
|
@@ -372,7 +707,7 @@ function OdsRadioGroup(props) {
|
|
|
372
707
|
}
|
|
373
708
|
|
|
374
709
|
var _templateObject$c;
|
|
375
|
-
var StyledRate =
|
|
710
|
+
var StyledRate = styled__default(antd.Rate)(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
376
711
|
|
|
377
712
|
var customIcons = {
|
|
378
713
|
1: React__default.createElement(icons.FrownOutlined, null),
|
|
@@ -387,14 +722,14 @@ function OdsRate(props) {
|
|
|
387
722
|
}
|
|
388
723
|
|
|
389
724
|
var _templateObject$d;
|
|
390
|
-
var StyledSelect =
|
|
725
|
+
var StyledSelect = styled__default(antd.Select)(_templateObject$d || (_templateObject$d = _taggedTemplateLiteralLoose(["\n width:100%;\n"])));
|
|
391
726
|
|
|
392
727
|
function OdsSelect(props) {
|
|
393
728
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledSelect, Object.assign({}, props)));
|
|
394
729
|
}
|
|
395
730
|
|
|
396
731
|
var _templateObject$e;
|
|
397
|
-
var StyledSpin =
|
|
732
|
+
var StyledSpin = styled__default(antd.Spin)(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
398
733
|
|
|
399
734
|
function OdsSpin(props) {
|
|
400
735
|
var _useState = React.useState(true),
|
|
@@ -406,14 +741,14 @@ function OdsSpin(props) {
|
|
|
406
741
|
}
|
|
407
742
|
|
|
408
743
|
var _templateObject$f;
|
|
409
|
-
var StyledSwitch =
|
|
744
|
+
var StyledSwitch = styled__default(antd.Switch)(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
410
745
|
|
|
411
746
|
function OdsSwitch(props) {
|
|
412
747
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledSwitch, Object.assign({}, props)));
|
|
413
748
|
}
|
|
414
749
|
|
|
415
750
|
var _templateObject$g;
|
|
416
|
-
var StyledTabs =
|
|
751
|
+
var StyledTabs = styled__default(antd.Tabs)(_templateObject$g || (_templateObject$g = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
417
752
|
|
|
418
753
|
var onChange = function onChange(key) {
|
|
419
754
|
console.log(key);
|
|
@@ -451,7 +786,7 @@ function OdsTab(props) {
|
|
|
451
786
|
}
|
|
452
787
|
|
|
453
788
|
var _templateObject$h;
|
|
454
|
-
var StyledTable =
|
|
789
|
+
var StyledTable = styled__default(antd.Table)(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
455
790
|
|
|
456
791
|
function OdsBasicTable(props) {
|
|
457
792
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledTable, Object.assign({}, props)));
|
|
@@ -475,21 +810,21 @@ function OdsSelectableTable(props) {
|
|
|
475
810
|
}
|
|
476
811
|
|
|
477
812
|
var _templateObject$i;
|
|
478
|
-
var StyledTag =
|
|
813
|
+
var StyledTag = styled__default(antd.Tag)(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
479
814
|
|
|
480
815
|
function OdsTag(props) {
|
|
481
816
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledTag, Object.assign({}, props), props.children));
|
|
482
817
|
}
|
|
483
818
|
|
|
484
819
|
var _templateObject$j;
|
|
485
|
-
var StyledtTimeline =
|
|
820
|
+
var StyledtTimeline = styled__default(antd.Timeline)(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
486
821
|
|
|
487
822
|
function OdsTimeline(props) {
|
|
488
823
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledtTimeline, Object.assign({}, props), props.children));
|
|
489
824
|
}
|
|
490
825
|
|
|
491
826
|
var _templateObject$k;
|
|
492
|
-
var StyledTimepicker =
|
|
827
|
+
var StyledTimepicker = styled__default(antd.TimePicker)(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n width:100%;\n"])));
|
|
493
828
|
|
|
494
829
|
function OdsRangeTimepicker(props) {
|
|
495
830
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledTimepicker.RangePicker, Object.assign({}, props)));
|
|
@@ -513,7 +848,7 @@ function OdsTimepicker(props) {
|
|
|
513
848
|
}
|
|
514
849
|
|
|
515
850
|
var _templateObject$l;
|
|
516
|
-
var StyledtTypography =
|
|
851
|
+
var StyledtTypography = styled__default(antd.Typography)(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
517
852
|
|
|
518
853
|
function OdsLink(props) {
|
|
519
854
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledtTypography, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.Link));
|
|
@@ -598,7 +933,6 @@ function grid(props) {
|
|
|
598
933
|
};
|
|
599
934
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(dataGrid.DataGrid, {
|
|
600
935
|
dataSource: props.dataSource,
|
|
601
|
-
columnAutoWidth: props.columnAutoWidth,
|
|
602
936
|
keyExpr: props.keyExpr,
|
|
603
937
|
allowColumnResizing: props.allowColumnResizing !== undefined ? props.allowColumnResizing : false,
|
|
604
938
|
columnResizingMode: "widget",
|
|
@@ -609,7 +943,7 @@ function grid(props) {
|
|
|
609
943
|
allowColumnReordering: true,
|
|
610
944
|
showRowLines: true,
|
|
611
945
|
showBorders: true,
|
|
612
|
-
|
|
946
|
+
columnAutoWidth: true,
|
|
613
947
|
onEditCanceling: props.onEditCanceling
|
|
614
948
|
}, React__default.createElement(dataGrid.Paging, {
|
|
615
949
|
enabled: true,
|
|
@@ -688,13 +1022,13 @@ function grid(props) {
|
|
|
688
1022
|
return React__default.createElement(dataGrid.Column, {
|
|
689
1023
|
type: "buttons",
|
|
690
1024
|
width: 110
|
|
691
|
-
},
|
|
1025
|
+
}, React__default.createElement(dataGrid.Button, {
|
|
692
1026
|
hint: "Edit",
|
|
693
1027
|
visible: true,
|
|
694
1028
|
disabled: false,
|
|
695
1029
|
icon: "edit",
|
|
696
1030
|
onClick: props.editButtonClick
|
|
697
|
-
}),
|
|
1031
|
+
}), React__default.createElement(dataGrid.Button, {
|
|
698
1032
|
hint: "Delete",
|
|
699
1033
|
visible: true,
|
|
700
1034
|
disabled: false,
|
|
@@ -705,9 +1039,9 @@ function grid(props) {
|
|
|
705
1039
|
return React__default.createElement(dataGrid.Column, {
|
|
706
1040
|
type: "buttons",
|
|
707
1041
|
width: 110
|
|
708
|
-
}, React__default.createElement(React__default.Fragment, null,
|
|
1042
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(dataGrid.Button, {
|
|
709
1043
|
name: "edit"
|
|
710
|
-
}),
|
|
1044
|
+
}), React__default.createElement(dataGrid.Button, {
|
|
711
1045
|
name: "delete"
|
|
712
1046
|
})));
|
|
713
1047
|
}
|