@hexure/ui 1.13.63 → 1.13.64
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/cjs/index.js +2278 -1565
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2229 -1516
- package/dist/esm/index.js.map +1 -1
- package/package.json +6 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var styled = require('styled-components');
|
|
5
|
-
var Icon = require('@mdi/react');
|
|
6
|
-
var js = require('@mdi/js');
|
|
7
|
-
var dayjs = require('dayjs');
|
|
8
|
-
var Numeral = require('numeral');
|
|
9
|
-
var Moment = require('moment');
|
|
10
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var styled = require('styled-components');
|
|
5
|
+
var Icon = require('@mdi/react');
|
|
6
|
+
var js = require('@mdi/js');
|
|
7
|
+
var dayjs = require('dayjs');
|
|
8
|
+
var Numeral = require('numeral');
|
|
9
|
+
var Moment = require('moment');
|
|
10
|
+
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
13
13
|
|
|
@@ -21,22 +21,22 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
21
21
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
22
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
23
|
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
-
***************************************************************************** */
|
|
25
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
26
|
-
|
|
27
|
-
function __rest(s, e) {
|
|
28
|
-
var t = {};
|
|
29
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
30
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
32
|
-
}
|
|
33
|
-
return t;
|
|
34
|
-
}
|
|
35
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
36
|
-
var e = new Error(message);
|
|
37
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
38
|
-
};
|
|
39
|
-
|
|
24
|
+
***************************************************************************** */
|
|
25
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
26
|
+
|
|
27
|
+
function __rest(s, e) {
|
|
28
|
+
var t = {};
|
|
29
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
30
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
32
|
+
}
|
|
33
|
+
return t;
|
|
34
|
+
}
|
|
35
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
36
|
+
var e = new Error(message);
|
|
37
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
40
|
const Colors = {
|
|
41
41
|
PRIMARY: {
|
|
42
42
|
Hex: '#0193D7',
|
|
@@ -85,26 +85,26 @@ const FontSizes = {
|
|
|
85
85
|
};
|
|
86
86
|
const EditableTheme = {
|
|
87
87
|
PRIMARY_COLOR: Colors.PRIMARY,
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
const Header$3 = styled.div `
|
|
91
|
-
display: flex;
|
|
92
|
-
align-items: center;
|
|
93
|
-
justify-content: space-between;
|
|
94
|
-
box-sizing: border-box;
|
|
95
|
-
background: #f5f5f5;
|
|
96
|
-
border: 1px solid #e5e5e5;
|
|
97
|
-
padding: 14px 20px;
|
|
98
|
-
height: 50px;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
`;
|
|
101
|
-
const Title$2 = styled.div `
|
|
102
|
-
font-size: ${FontSizes.DEFAULT};
|
|
103
|
-
font-weight: 400;
|
|
104
|
-
color: ${Colors.BLACK.Hex};
|
|
105
|
-
line-height: 1.6em;
|
|
106
|
-
font-family: ${FontStyles.DEFAULT};
|
|
107
|
-
box-sizing: border-box;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const Header$3 = styled.div `
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
background: #f5f5f5;
|
|
96
|
+
border: 1px solid #e5e5e5;
|
|
97
|
+
padding: 14px 20px;
|
|
98
|
+
height: 50px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
`;
|
|
101
|
+
const Title$2 = styled.div `
|
|
102
|
+
font-size: ${FontSizes.DEFAULT};
|
|
103
|
+
font-weight: 400;
|
|
104
|
+
color: ${Colors.BLACK.Hex};
|
|
105
|
+
line-height: 1.6em;
|
|
106
|
+
font-family: ${FontStyles.DEFAULT};
|
|
107
|
+
box-sizing: border-box;
|
|
108
108
|
`;
|
|
109
109
|
const Accordion = (_a) => {
|
|
110
110
|
var { dataItemid, title, children, open, onClick } = _a, accessibleProps = __rest(_a, ["dataItemid", "title", "children", "open", "onClick"]);
|
|
@@ -114,21 +114,21 @@ const Accordion = (_a) => {
|
|
|
114
114
|
React.createElement(Title$2, { "data-itemid": `${baseId}-title` }, title),
|
|
115
115
|
React.createElement(Icon, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: open ? js.mdiChevronUp : js.mdiChevronDown, size: '24px' })),
|
|
116
116
|
open ? React.createElement("div", { "data-itemid": `${baseId}-content` }, children) : null));
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
const StyledComponent = styled.p `
|
|
120
|
-
color: ${props => Colors[props.$color || 'BLACK'].Hex};
|
|
121
|
-
font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
122
|
-
line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
|
|
123
|
-
letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
|
|
124
|
-
font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
|
|
125
|
-
font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
|
|
126
|
-
text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
|
|
127
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
128
|
-
margin: ${props => props.$margin || '0px'};
|
|
129
|
-
padding: ${props => props.$padding || '0px'};
|
|
130
|
-
text-align: ${props => props.$align || 'left'};
|
|
131
|
-
box-sizing: border-box;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const StyledComponent = styled.p `
|
|
120
|
+
color: ${props => Colors[props.$color || 'BLACK'].Hex};
|
|
121
|
+
font-size: ${props => (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
122
|
+
line-height: ${props => (props.$type === 'small' ? '1.5em' : '1.6em')};
|
|
123
|
+
letter-spacing: ${props => (props.$type === 'small' ? '1px' : '0px')};
|
|
124
|
+
font-weight: ${props => (props.$type === 'bold' ? '500' : '400')};
|
|
125
|
+
font-style: ${props => (props.$type === 'italic' ? 'italic' : 'normal')};
|
|
126
|
+
text-decoration: ${props => ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none'};
|
|
127
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
128
|
+
margin: ${props => props.$margin || '0px'};
|
|
129
|
+
padding: ${props => props.$padding || '0px'};
|
|
130
|
+
text-align: ${props => props.$align || 'left'};
|
|
131
|
+
box-sizing: border-box;
|
|
132
132
|
`;
|
|
133
133
|
const Copy = (_a) => {
|
|
134
134
|
var { children, align = '', margin = '', padding = '', type = 'default', color = 'BLACK', dataItemid } = _a, accessibleProps = __rest(_a, ["children", "align", "margin", "padding", "type", "color", "dataItemid"]);
|
|
@@ -137,19 +137,19 @@ const Copy = (_a) => {
|
|
|
137
137
|
};
|
|
138
138
|
Copy.defaultProps = {
|
|
139
139
|
type: 'default',
|
|
140
|
-
};
|
|
141
|
-
|
|
140
|
+
};
|
|
141
|
+
|
|
142
142
|
const Wrapper$h = styled.div(props => ({
|
|
143
143
|
display: 'inline-block',
|
|
144
144
|
position: 'relative',
|
|
145
145
|
height: props.$height || '16px',
|
|
146
146
|
}));
|
|
147
|
-
const StyledIcon$6 = styled(Icon) `
|
|
148
|
-
width: 16px;
|
|
149
|
-
height: 16px;
|
|
150
|
-
margin: 0px 6px;
|
|
151
|
-
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
152
|
-
cursor: pointer;
|
|
147
|
+
const StyledIcon$6 = styled(Icon) `
|
|
148
|
+
width: 16px;
|
|
149
|
+
height: 16px;
|
|
150
|
+
margin: 0px 6px;
|
|
151
|
+
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
152
|
+
cursor: pointer;
|
|
153
153
|
`;
|
|
154
154
|
StyledIcon$6.defaultProps = { theme: EditableTheme };
|
|
155
155
|
const positions = {
|
|
@@ -188,13 +188,13 @@ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, d
|
|
|
188
188
|
return (React.createElement(Wrapper$h, { "$height": height, "data-itemid": `${baseId}-wrapper`, onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
|
|
189
189
|
trigger || React.createElement(StyledIcon$6, { "data-itemid": `${baseId}-icon`, path: js.mdiInformationOutline }),
|
|
190
190
|
show_content ? (React.createElement(Content$3, { "$position": position, "$width": width, "data-itemid": `${baseId}-content` }, children && (React.createElement(Copy, { "data-itemid": `${baseId}-copy`, type: 'small' }, children)))) : null));
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
const StyledButton = styled.button `
|
|
194
|
-
height: ${props => (props.$small ? '30px' : '40px')};
|
|
195
|
-
line-height: 1em;
|
|
196
|
-
border-radius: ${props => (props.$small ? '15px' : '20px')};
|
|
197
|
-
margin: ${props => props.$margin || '0px'};
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const StyledButton = styled.button `
|
|
194
|
+
height: ${props => (props.$small ? '30px' : '40px')};
|
|
195
|
+
line-height: 1em;
|
|
196
|
+
border-radius: ${props => (props.$small ? '15px' : '20px')};
|
|
197
|
+
margin: ${props => props.$margin || '0px'};
|
|
198
198
|
padding: ${props => {
|
|
199
199
|
if (props.$hasChildren) {
|
|
200
200
|
if (props.$small) {
|
|
@@ -205,9 +205,9 @@ const StyledButton = styled.button `
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
return '0px';
|
|
208
|
-
}};
|
|
209
|
-
outline: none;
|
|
210
|
-
background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
|
|
208
|
+
}};
|
|
209
|
+
outline: none;
|
|
210
|
+
background: ${props => props.$bg_color || props.theme.PRIMARY_COLOR.Hex};
|
|
211
211
|
width: ${props => {
|
|
212
212
|
if (props.$hasChildren) {
|
|
213
213
|
return 'auto';
|
|
@@ -216,55 +216,55 @@ const StyledButton = styled.button `
|
|
|
216
216
|
return '30px';
|
|
217
217
|
}
|
|
218
218
|
return '40px';
|
|
219
|
-
}};
|
|
220
|
-
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
221
|
-
display: flex;
|
|
222
|
-
align-items: center;
|
|
223
|
-
justify-content: center;
|
|
224
|
-
gap: ${props => (props.$iconPosition === 'before' ? '8px' : '0px')};
|
|
225
|
-
flex-direction: ${props => (props.$iconPosition === 'before' ? 'row-reverse' : 'row')};
|
|
226
|
-
opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
|
|
227
|
-
border-width: 1px;
|
|
228
|
-
border-style: solid;
|
|
229
|
-
border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
|
|
230
|
-
box-sizing: border-box;
|
|
231
|
-
|
|
232
|
-
&:active,
|
|
233
|
-
&:focus,
|
|
234
|
-
&:hover {
|
|
235
|
-
opacity: ${props => (props.$disabled ? 0.6 : 1)};
|
|
236
|
-
}
|
|
237
|
-
`;
|
|
238
|
-
const Label$5 = styled.span `
|
|
239
|
-
color: ${props => props.$content_color || '#fff'};
|
|
240
|
-
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
241
|
-
font-family: ${FontStyles.DEFAULT};
|
|
242
|
-
font-weight: 500;
|
|
243
|
-
line-height: 1;
|
|
244
|
-
`;
|
|
245
|
-
const StyledIcon$5 = styled.span `
|
|
246
|
-
margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
|
|
247
|
-
margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
|
|
248
|
-
display: flex;
|
|
249
|
-
align-items: center;
|
|
250
|
-
box-sizing: border-box;
|
|
251
|
-
`;
|
|
252
|
-
const Badge$1 = styled.span `
|
|
253
|
-
width: ${props => (props.$small ? '20px' : '24px')};
|
|
254
|
-
height: ${props => (props.$small ? '20px' : '24px')};
|
|
255
|
-
line-height: 1;
|
|
256
|
-
display: flex;
|
|
257
|
-
align-items: center;
|
|
258
|
-
justify-content: center;
|
|
259
|
-
border-radius: 100%;
|
|
260
|
-
background-color: ${props => props.$bg_color || '#fff'};
|
|
261
|
-
color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
|
|
262
|
-
font-size: ${props => (props.$small ? '10px' : '12px')};
|
|
263
|
-
font-weight: 600;
|
|
264
|
-
font-family: ${FontStyles.DEFAULT};
|
|
265
|
-
letter-spacing: -1px;
|
|
266
|
-
margin-left: ${props => (props.$small ? '5px' : '10px')};
|
|
267
|
-
margin-right: ${props => (props.$small ? '-5px' : '-10px')};
|
|
219
|
+
}};
|
|
220
|
+
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
gap: ${props => (props.$iconPosition === 'before' ? '8px' : '0px')};
|
|
225
|
+
flex-direction: ${props => (props.$iconPosition === 'before' ? 'row-reverse' : 'row')};
|
|
226
|
+
opacity: ${props => (props.$disabled ? 0.6 : 0.9)};
|
|
227
|
+
border-width: 1px;
|
|
228
|
+
border-style: solid;
|
|
229
|
+
border-color: ${props => props.$border_color || props.theme.PRIMARY_COLOR.Hex};
|
|
230
|
+
box-sizing: border-box;
|
|
231
|
+
|
|
232
|
+
&:active,
|
|
233
|
+
&:focus,
|
|
234
|
+
&:hover {
|
|
235
|
+
opacity: ${props => (props.$disabled ? 0.6 : 1)};
|
|
236
|
+
}
|
|
237
|
+
`;
|
|
238
|
+
const Label$5 = styled.span `
|
|
239
|
+
color: ${props => props.$content_color || '#fff'};
|
|
240
|
+
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
241
|
+
font-family: ${FontStyles.DEFAULT};
|
|
242
|
+
font-weight: 500;
|
|
243
|
+
line-height: 1;
|
|
244
|
+
`;
|
|
245
|
+
const StyledIcon$5 = styled.span `
|
|
246
|
+
margin-left: ${props => (props.$hasChildren ? '6px' : '0px')};
|
|
247
|
+
margin-right: ${props => (props.$hasChildren ? '-4px' : '0px')};
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
box-sizing: border-box;
|
|
251
|
+
`;
|
|
252
|
+
const Badge$1 = styled.span `
|
|
253
|
+
width: ${props => (props.$small ? '20px' : '24px')};
|
|
254
|
+
height: ${props => (props.$small ? '20px' : '24px')};
|
|
255
|
+
line-height: 1;
|
|
256
|
+
display: flex;
|
|
257
|
+
align-items: center;
|
|
258
|
+
justify-content: center;
|
|
259
|
+
border-radius: 100%;
|
|
260
|
+
background-color: ${props => props.$bg_color || '#fff'};
|
|
261
|
+
color: ${props => props.$content_color || props.theme.PRIMARY_COLOR.Hex};
|
|
262
|
+
font-size: ${props => (props.$small ? '10px' : '12px')};
|
|
263
|
+
font-weight: 600;
|
|
264
|
+
font-family: ${FontStyles.DEFAULT};
|
|
265
|
+
letter-spacing: -1px;
|
|
266
|
+
margin-left: ${props => (props.$small ? '5px' : '10px')};
|
|
267
|
+
margin-right: ${props => (props.$small ? '-5px' : '-10px')};
|
|
268
268
|
`;
|
|
269
269
|
const Button = (_a) => {
|
|
270
270
|
var { badge, children, disabled = false, icon, isForm = false, loading = false, margin = '', onClick, small = false, format = 'primary', iconPosition = 'after', toolTip, title = '', dataItemid, type = null } = _a, accessibleProps = __rest(_a, ["badge", "children", "disabled", "icon", "isForm", "loading", "margin", "onClick", "small", "format", "iconPosition", "toolTip", "title", "dataItemid", "type"]);
|
|
@@ -311,37 +311,37 @@ const Button = (_a) => {
|
|
|
311
311
|
return (React.createElement(Tooltip, Object.assign({}, toolTip, { trigger: (toolTip === null || toolTip === void 0 ? void 0 : toolTip.trigger) || button_view }), toolTip === null || toolTip === void 0 ? void 0 : toolTip.children));
|
|
312
312
|
}
|
|
313
313
|
return button_view;
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
const H1 = styled.h1 `
|
|
317
|
-
color: ${Colors.BLACK.Hex};
|
|
318
|
-
font-size: 30px;
|
|
319
|
-
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
320
|
-
line-height: 1.4em;
|
|
321
|
-
font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
|
|
322
|
-
margin: ${props => props.$margin || '0px'};
|
|
323
|
-
padding: ${props => props.$padding || '0px'};
|
|
324
|
-
box-sizing: border-box;
|
|
325
|
-
`;
|
|
326
|
-
const H2 = styled.h2 `
|
|
327
|
-
color: ${Colors.BLACK.Hex};
|
|
328
|
-
font-size: 24px;
|
|
329
|
-
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
330
|
-
line-height: 1.33em;
|
|
331
|
-
font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
|
|
332
|
-
margin: ${props => props.$margin || '0px'};
|
|
333
|
-
padding: ${props => props.$padding || '0px'};
|
|
334
|
-
box-sizing: border-box;
|
|
335
|
-
`;
|
|
336
|
-
const H3 = styled.h3 `
|
|
337
|
-
color: ${Colors.BLACK.Hex};
|
|
338
|
-
font-size: 18px;
|
|
339
|
-
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
340
|
-
line-height: 1.33em;
|
|
341
|
-
font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
|
|
342
|
-
margin: ${props => props.$margin || '0px'};
|
|
343
|
-
padding: ${props => props.$padding || '0px'};
|
|
344
|
-
box-sizing: border-box;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
const H1 = styled.h1 `
|
|
317
|
+
color: ${Colors.BLACK.Hex};
|
|
318
|
+
font-size: 30px;
|
|
319
|
+
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
320
|
+
line-height: 1.4em;
|
|
321
|
+
font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
|
|
322
|
+
margin: ${props => props.$margin || '0px'};
|
|
323
|
+
padding: ${props => props.$padding || '0px'};
|
|
324
|
+
box-sizing: border-box;
|
|
325
|
+
`;
|
|
326
|
+
const H2 = styled.h2 `
|
|
327
|
+
color: ${Colors.BLACK.Hex};
|
|
328
|
+
font-size: 24px;
|
|
329
|
+
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
330
|
+
line-height: 1.33em;
|
|
331
|
+
font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
|
|
332
|
+
margin: ${props => props.$margin || '0px'};
|
|
333
|
+
padding: ${props => props.$padding || '0px'};
|
|
334
|
+
box-sizing: border-box;
|
|
335
|
+
`;
|
|
336
|
+
const H3 = styled.h3 `
|
|
337
|
+
color: ${Colors.BLACK.Hex};
|
|
338
|
+
font-size: 18px;
|
|
339
|
+
font-weight: ${props => (props.$bold ? '500' : '400')};
|
|
340
|
+
line-height: 1.33em;
|
|
341
|
+
font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;
|
|
342
|
+
margin: ${props => props.$margin || '0px'};
|
|
343
|
+
padding: ${props => props.$padding || '0px'};
|
|
344
|
+
box-sizing: border-box;
|
|
345
345
|
`;
|
|
346
346
|
const Heading = (_a) => {
|
|
347
347
|
var { bold, children, margin, padding, type, dataItemid } = _a, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type", "dataItemid"]);
|
|
@@ -361,29 +361,29 @@ const Heading = (_a) => {
|
|
|
361
361
|
Heading.defaultProps = {
|
|
362
362
|
bold: false,
|
|
363
363
|
type: 'primary',
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
const Wrapper$g = styled.div `
|
|
367
|
-
position: fixed;
|
|
368
|
-
top: 0;
|
|
369
|
-
right: 0;
|
|
370
|
-
bottom: 0;
|
|
371
|
-
left: 0;
|
|
372
|
-
z-index: 9999;
|
|
373
|
-
background: rgba(0, 0, 0, 0.8);
|
|
374
|
-
display: flex;
|
|
375
|
-
align-items: center;
|
|
376
|
-
justify-content: center;
|
|
377
|
-
box-sizing: border-box;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
const Wrapper$g = styled.div `
|
|
367
|
+
position: fixed;
|
|
368
|
+
top: 0;
|
|
369
|
+
right: 0;
|
|
370
|
+
bottom: 0;
|
|
371
|
+
left: 0;
|
|
372
|
+
z-index: 9999;
|
|
373
|
+
background: rgba(0, 0, 0, 0.8);
|
|
374
|
+
display: flex;
|
|
375
|
+
align-items: center;
|
|
376
|
+
justify-content: center;
|
|
377
|
+
box-sizing: border-box;
|
|
378
378
|
`;
|
|
379
379
|
const Container$5 = styled.dialog(props => (Object.assign({ maxWidth: '600px', width: 'auto', borderRadius: '8px', overflow: 'hidden', boxShadow: '0px 10px 30px -15px rgba(0, 0, 0, 0.2)', outline: 'none', border: 'none', position: 'relative', padding: '40px', textAlign: 'center', boxSizing: 'border-box', wordWrap: 'break-word' }, props.$customStyle)));
|
|
380
|
-
const Buttons$1 = styled.div `
|
|
381
|
-
display: flex;
|
|
382
|
-
gap: 10px;
|
|
383
|
-
align-items: center;
|
|
384
|
-
justify-content: center;
|
|
385
|
-
margin-top: 30px;
|
|
386
|
-
box-sizing: border-box;
|
|
380
|
+
const Buttons$1 = styled.div `
|
|
381
|
+
display: flex;
|
|
382
|
+
gap: 10px;
|
|
383
|
+
align-items: center;
|
|
384
|
+
justify-content: center;
|
|
385
|
+
margin-top: 30px;
|
|
386
|
+
box-sizing: border-box;
|
|
387
387
|
`;
|
|
388
388
|
const ActionDialog = (_a) => {
|
|
389
389
|
var { description, title, primaryButton, secondaryButton, tertiaryButton, style = {}, dataItemid } = _a, accessibleProps = __rest(_a, ["description", "title", "primaryButton", "secondaryButton", "tertiaryButton", "style", "dataItemid"]);
|
|
@@ -396,29 +396,29 @@ const ActionDialog = (_a) => {
|
|
|
396
396
|
tertiaryButton ? (React.createElement(Button, Object.assign({}, tertiaryButton, { "data-itemid": `${baseId}-tertiary-button`, format: tertiaryButton.format || 'secondary' }))) : null,
|
|
397
397
|
secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}-secondary-button`, format: secondaryButton.format || 'secondary' }))) : null,
|
|
398
398
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}-primary-button`, format: primaryButton.format || 'primary' }))) : null)) : null)));
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
const Wrapper$f = styled.div `
|
|
402
|
-
border: 1px solid #f1f1f1;
|
|
403
|
-
border-radius: 4px;
|
|
404
|
-
border-left-width: 4px;
|
|
405
|
-
box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
|
|
406
|
-
display: flex;
|
|
407
|
-
align-items: flex-start;
|
|
408
|
-
gap: ${({ $small }) => ($small ? '8px' : '20px')};
|
|
409
|
-
padding: ${({ $small }) => ($small ? '11px' : '20px')};
|
|
410
|
-
box-sizing: border-box;
|
|
411
|
-
`;
|
|
412
|
-
const StyledIcon$4 = styled(Icon) `
|
|
413
|
-
flex-shrink: 0;
|
|
414
|
-
`;
|
|
415
|
-
const Action$1 = styled.div `
|
|
416
|
-
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
417
|
-
font-size: ${FontSizes.DEFAULT};
|
|
418
|
-
font-family: ${FontStyles.DEFAULT};
|
|
419
|
-
font-weight: 500;
|
|
420
|
-
cursor: pointer;
|
|
421
|
-
margin-top: 6px;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
const Wrapper$f = styled.div `
|
|
402
|
+
border: 1px solid #f1f1f1;
|
|
403
|
+
border-radius: 4px;
|
|
404
|
+
border-left-width: 4px;
|
|
405
|
+
box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: flex-start;
|
|
408
|
+
gap: ${({ $small }) => ($small ? '8px' : '20px')};
|
|
409
|
+
padding: ${({ $small }) => ($small ? '11px' : '20px')};
|
|
410
|
+
box-sizing: border-box;
|
|
411
|
+
`;
|
|
412
|
+
const StyledIcon$4 = styled(Icon) `
|
|
413
|
+
flex-shrink: 0;
|
|
414
|
+
`;
|
|
415
|
+
const Action$1 = styled.div `
|
|
416
|
+
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
417
|
+
font-size: ${FontSizes.DEFAULT};
|
|
418
|
+
font-family: ${FontStyles.DEFAULT};
|
|
419
|
+
font-weight: 500;
|
|
420
|
+
cursor: pointer;
|
|
421
|
+
margin-top: 6px;
|
|
422
422
|
`;
|
|
423
423
|
Action$1.defaultProps = { theme: EditableTheme };
|
|
424
424
|
const Alert = (_a) => {
|
|
@@ -449,8 +449,8 @@ const Alert = (_a) => {
|
|
|
449
449
|
title && !small ? (React.createElement(Heading, { bold: true, "data-itemid": `${baseId}-title`, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
|
|
450
450
|
description ? (React.createElement(Copy, { "data-itemid": `${baseId}-description`, margin: small ? '' : '6px 0 0 0 !important' }, description)) : null,
|
|
451
451
|
action && !small ? (React.createElement(Action$1, { "data-itemid": `${baseId}-action`, onClick: action.onClick }, action.label)) : null)));
|
|
452
|
-
};
|
|
453
|
-
|
|
452
|
+
};
|
|
453
|
+
|
|
454
454
|
const colorMapping = {
|
|
455
455
|
black: {
|
|
456
456
|
fill_1: '#000000',
|
|
@@ -492,62 +492,62 @@ const Logo = (_a) => {
|
|
|
492
492
|
React.createElement("path", { d: 'M67.8498 45.479C67.5109 44.893 66.7322 43.5486 66.2043 42.6319H55.1965C52.3299 42.6319 49.8532 41.6095 47.8364 39.5923C45.819 37.5755 44.7966 35.0985 44.7966 32.2321C44.7966 29.3656 45.819 26.8886 47.8364 24.8718C49.8388 22.8332 52.316 21.7975 55.1965 21.7975C58.0632 21.7975 60.5398 22.8199 62.5565 24.8374C63.6038 25.8847 64.3824 27.093 64.9357 28.5312L65.2435 29.3327H53.8141C53.231 30.2171 52.5673 31.6476 52.303 32.2354L53.912 35.0969H67.474L71.0059 28.6192C70.2872 25.5702 68.8261 22.9293 66.6625 20.7657C63.5219 17.6257 59.6649 16.0333 55.1965 16.0333C50.7283 16.0333 46.8708 17.6257 43.7303 20.7657C40.546 23.9501 38.9979 27.7011 38.9979 32.2321C38.9979 36.7001 40.5903 40.5577 43.7303 43.6981C46.8708 46.8384 50.7283 48.4308 55.1965 48.4308H66.0873C66.9322 47.0737 67.5668 45.977 67.8498 45.479', "data-itemid": `${baseId}-path-7`, fill: colorMapping[type_parts[1]].fill_1 }),
|
|
493
493
|
React.createElement("path", { d: 'M27.6655 20.7443C26.9235 20.002 26.2307 19.4097 25.608 18.9831C22.7338 17.0113 19.5684 16.0117 16.1992 16.0117C13.6229 16.0117 11.1676 16.5943 8.9002 17.7442C8.1016 18.1264 7.38657 18.6118 6.73074 19.0799L5.88805 19.6819C5.85364 19.711 5.81716 19.7449 5.78223 19.7749L5.77618 17.9067C5.78246 17.9022 5.7892 17.8965 5.79554 17.8921L5.72168 1.52402L2.84058 1.54784e-05L0 1.6145V24.9966V30.8918C0.0184614 30.8508 0.0393993 30.8108 0.0580857 30.7698C0.0216133 31.2417 0 31.7206 0 32.2105V47.6757L2.84688 49.2499C4.7412 48.3293 5.4988 47.9164 5.79866 47.7385V32.2105C5.79866 29.3439 6.82128 26.8672 8.83853 24.8504C10.8415 22.8118 13.319 21.7759 16.1992 21.7759C19.0796 21.7759 21.557 22.8118 23.5635 24.8538C25.3441 26.6351 26.3374 28.7976 26.5963 31.4625C26.6263 31.6669 26.6339 40.3058 26.6339 47.6694C27.2825 48.0147 28.6127 48.8167 29.5141 49.3059C29.9448 49.0814 32.0589 47.8425 32.3979 47.6669V32.2105C32.3979 27.6795 30.8499 23.9285 27.6655 20.7443Z', "data-itemid": `${baseId}-path-8`, fill: colorMapping[type_parts[1]].fill_1 })));
|
|
494
494
|
}
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
const Container$4 = styled.header `
|
|
498
|
-
width: 100%;
|
|
499
|
-
display: flex;
|
|
500
|
-
padding: 20px;
|
|
501
|
-
box-sizing: border-box;
|
|
502
|
-
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
503
|
-
background: '#fff';
|
|
504
|
-
justify-content: space-between;
|
|
505
|
-
`;
|
|
506
|
-
const LogoWrapper = styled.div `
|
|
507
|
-
display: flex;
|
|
508
|
-
align-items: center;
|
|
509
|
-
`;
|
|
510
|
-
const Image = styled.img `
|
|
511
|
-
height: 30px !important;
|
|
512
|
-
width: auto !important;
|
|
513
|
-
`;
|
|
514
|
-
const Buttons = styled.div `
|
|
515
|
-
display: flex;
|
|
516
|
-
flex-direction: row;
|
|
517
|
-
column-gap: 10px;
|
|
518
|
-
flex-direction: reverse;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
const Container$4 = styled.header `
|
|
498
|
+
width: 100%;
|
|
499
|
+
display: flex;
|
|
500
|
+
padding: 20px;
|
|
501
|
+
box-sizing: border-box;
|
|
502
|
+
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
503
|
+
background: '#fff';
|
|
504
|
+
justify-content: space-between;
|
|
505
|
+
`;
|
|
506
|
+
const LogoWrapper = styled.div `
|
|
507
|
+
display: flex;
|
|
508
|
+
align-items: center;
|
|
509
|
+
`;
|
|
510
|
+
const Image = styled.img `
|
|
511
|
+
height: 30px !important;
|
|
512
|
+
width: auto !important;
|
|
513
|
+
`;
|
|
514
|
+
const Buttons = styled.div `
|
|
515
|
+
display: flex;
|
|
516
|
+
flex-direction: row;
|
|
517
|
+
column-gap: 10px;
|
|
518
|
+
flex-direction: reverse;
|
|
519
519
|
`;
|
|
520
520
|
const AppHeader = ({ logoUrl, buttons = [], dataItemid }) => {
|
|
521
521
|
const baseId = dataItemid || 'app-header';
|
|
522
522
|
return (React.createElement(Container$4, { "data-itemid": `${baseId}-container` },
|
|
523
523
|
React.createElement(LogoWrapper, { "data-itemid": `${baseId}-logo-wrapper` }, logoUrl ? (React.createElement(Image, { "data-itemid": `${baseId}-logo`, src: logoUrl })) : (React.createElement(Logo, { "data-itemid": `${baseId}-default-logo`, height: '30px' }))),
|
|
524
524
|
React.createElement(Buttons, { "data-itemid": `${baseId}-buttons` }, buttons.map((b, i) => (React.createElement(Button, Object.assign({ key: i }, b, { "data-itemid": `${baseId}-button-${i}` })))))));
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
const Wrapper$e = styled.div `
|
|
528
|
-
display: inline-block;
|
|
529
|
-
border-radius: 4px;
|
|
530
|
-
padding: 4px 6px;
|
|
531
|
-
background: ${props => Colors[props.$color].Hex};
|
|
532
|
-
color: #ffffff;
|
|
533
|
-
box-sizing: border-box;
|
|
534
|
-
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
535
|
-
`;
|
|
536
|
-
const Content$2 = styled.div `
|
|
537
|
-
display: flex;
|
|
538
|
-
align-items: center;
|
|
539
|
-
`;
|
|
540
|
-
const Label$4 = styled.div `
|
|
541
|
-
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
542
|
-
font-size: ${FontSizes.SMALL};
|
|
543
|
-
font-weight: 500;
|
|
544
|
-
font-family: ${FontStyles.DEFAULT};
|
|
545
|
-
line-height: 1.2em;
|
|
546
|
-
`;
|
|
547
|
-
const Remove$1 = styled.div `
|
|
548
|
-
margin-left: 10px;
|
|
549
|
-
display: flex;
|
|
550
|
-
align-items: center;
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
const Wrapper$e = styled.div `
|
|
528
|
+
display: inline-block;
|
|
529
|
+
border-radius: 4px;
|
|
530
|
+
padding: 4px 6px;
|
|
531
|
+
background: ${props => Colors[props.$color].Hex};
|
|
532
|
+
color: #ffffff;
|
|
533
|
+
box-sizing: border-box;
|
|
534
|
+
cursor: ${props => (props.$removable ? 'pointer' : 'default')};
|
|
535
|
+
`;
|
|
536
|
+
const Content$2 = styled.div `
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
`;
|
|
540
|
+
const Label$4 = styled.div `
|
|
541
|
+
color: ${props => (props.$color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff')};
|
|
542
|
+
font-size: ${FontSizes.SMALL};
|
|
543
|
+
font-weight: 500;
|
|
544
|
+
font-family: ${FontStyles.DEFAULT};
|
|
545
|
+
line-height: 1.2em;
|
|
546
|
+
`;
|
|
547
|
+
const Remove$1 = styled.div `
|
|
548
|
+
margin-left: 10px;
|
|
549
|
+
display: flex;
|
|
550
|
+
align-items: center;
|
|
551
551
|
`;
|
|
552
552
|
const Tag = (_a) => {
|
|
553
553
|
var { children, color = 'PRIMARY', removable, onClick, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick", "dataItemid"]);
|
|
@@ -557,94 +557,94 @@ const Tag = (_a) => {
|
|
|
557
557
|
React.createElement(Label$4, { "$color": color, "data-itemid": `${baseId}-label` }, children),
|
|
558
558
|
removable ? (React.createElement(Remove$1, { "data-itemid": `${baseId}-remove` },
|
|
559
559
|
React.createElement(Icon, { color: color === 'SUBTLE_GRAY' ? '#000000' : '#ffffff', "data-itemid": `${baseId}-icon`, path: js.mdiClose, size: '15px' }))) : null)));
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
const SidebarContainer = styled.div `
|
|
563
|
-
border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
564
|
-
display: flex;
|
|
565
|
-
flex-direction: column;
|
|
566
|
-
height: 100%;
|
|
567
|
-
padding: 12px 0px;
|
|
568
|
-
width: ${props => (props.$isOpen ? props.$width : '60px')};
|
|
569
|
-
`;
|
|
570
|
-
const MenuWrapper$1 = styled.button `
|
|
571
|
-
display: flex;
|
|
572
|
-
align-items: center;
|
|
573
|
-
border: 0px;
|
|
574
|
-
background-color: transparent;
|
|
575
|
-
padding-left: 0px;
|
|
576
|
-
border-left-width: 4px;
|
|
577
|
-
border-left-style: solid;
|
|
578
|
-
border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
|
|
579
|
-
cursor: pointer;
|
|
580
|
-
height: 40px;
|
|
581
|
-
|
|
582
|
-
&:hover > div {
|
|
583
|
-
color: ${props => props.$color.Hex};
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
&:hover > svg > path {
|
|
587
|
-
fill: ${Colors.BLACK.Hex} !important;
|
|
588
|
-
}
|
|
589
|
-
`;
|
|
590
|
-
const MenuIcon = styled(Icon) `
|
|
591
|
-
width: 20px;
|
|
592
|
-
height: 20px;
|
|
593
|
-
margin: 0px 16px;
|
|
594
|
-
flex-shrink: 0;
|
|
595
|
-
|
|
596
|
-
> path {
|
|
597
|
-
fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
|
|
598
|
-
}
|
|
599
|
-
`;
|
|
600
|
-
const MenuLabel = styled.div `
|
|
601
|
-
color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
|
|
602
|
-
flex: 1;
|
|
603
|
-
font-size: 12px;
|
|
604
|
-
font-style: normal;
|
|
605
|
-
font-weight: 600;
|
|
606
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
607
|
-
line-height: 16px;
|
|
608
|
-
padding: 12px 0px;
|
|
609
|
-
letter-spacing: 1px;
|
|
610
|
-
`;
|
|
611
|
-
const SubMenu = styled.div `
|
|
612
|
-
overflow-y: auto;
|
|
613
|
-
padding-left: 44px;
|
|
614
|
-
padding-right: 20px;
|
|
615
|
-
padding-bottom: 10px;
|
|
616
|
-
`;
|
|
617
|
-
const SubMenuItem = styled.a `
|
|
618
|
-
display: block;
|
|
619
|
-
padding: 8px 12px;
|
|
620
|
-
border-radius: 8px;
|
|
621
|
-
font-size: 13px;
|
|
622
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
623
|
-
line-height: 20px;
|
|
624
|
-
text-decoration: none;
|
|
625
|
-
font-weight: ${({ $active }) => ($active ? '500' : '400')};
|
|
626
|
-
color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
|
|
627
|
-
background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
|
|
628
|
-
cursor: pointer;
|
|
629
|
-
|
|
630
|
-
&:hover {
|
|
631
|
-
color: ${props => props.$color.Hex};
|
|
632
|
-
font-weight: 500;
|
|
633
|
-
}
|
|
634
|
-
`;
|
|
635
|
-
const Footer = styled.div `
|
|
636
|
-
padding: 20px 14px 0px;
|
|
637
|
-
display: flex;
|
|
638
|
-
align-items: center;
|
|
639
|
-
`;
|
|
640
|
-
const FooterInfo = styled.div `
|
|
641
|
-
display: flex;
|
|
642
|
-
flex-direction: column;
|
|
643
|
-
flex: 1;
|
|
644
|
-
align-items: flex-start;
|
|
645
|
-
`;
|
|
646
|
-
const SidebarMenuContainer = styled.div `
|
|
647
|
-
flex-grow: 1;
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
const SidebarContainer = styled.div `
|
|
563
|
+
border-right: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
564
|
+
display: flex;
|
|
565
|
+
flex-direction: column;
|
|
566
|
+
height: 100%;
|
|
567
|
+
padding: 12px 0px;
|
|
568
|
+
width: ${props => (props.$isOpen ? props.$width : '60px')};
|
|
569
|
+
`;
|
|
570
|
+
const MenuWrapper$1 = styled.button `
|
|
571
|
+
display: flex;
|
|
572
|
+
align-items: center;
|
|
573
|
+
border: 0px;
|
|
574
|
+
background-color: transparent;
|
|
575
|
+
padding-left: 0px;
|
|
576
|
+
border-left-width: 4px;
|
|
577
|
+
border-left-style: solid;
|
|
578
|
+
border-left-color: ${props => (props.$active ? props.$color.Hex : 'transparent')};
|
|
579
|
+
cursor: pointer;
|
|
580
|
+
height: 40px;
|
|
581
|
+
|
|
582
|
+
&:hover > div {
|
|
583
|
+
color: ${props => props.$color.Hex};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
&:hover > svg > path {
|
|
587
|
+
fill: ${Colors.BLACK.Hex} !important;
|
|
588
|
+
}
|
|
589
|
+
`;
|
|
590
|
+
const MenuIcon = styled(Icon) `
|
|
591
|
+
width: 20px;
|
|
592
|
+
height: 20px;
|
|
593
|
+
margin: 0px 16px;
|
|
594
|
+
flex-shrink: 0;
|
|
595
|
+
|
|
596
|
+
> path {
|
|
597
|
+
fill: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)} !important;
|
|
598
|
+
}
|
|
599
|
+
`;
|
|
600
|
+
const MenuLabel = styled.div `
|
|
601
|
+
color: ${props => (props.$active ? props.$color.Hex : Colors.BLACK.Hex)};
|
|
602
|
+
flex: 1;
|
|
603
|
+
font-size: 12px;
|
|
604
|
+
font-style: normal;
|
|
605
|
+
font-weight: 600;
|
|
606
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
607
|
+
line-height: 16px;
|
|
608
|
+
padding: 12px 0px;
|
|
609
|
+
letter-spacing: 1px;
|
|
610
|
+
`;
|
|
611
|
+
const SubMenu = styled.div `
|
|
612
|
+
overflow-y: auto;
|
|
613
|
+
padding-left: 44px;
|
|
614
|
+
padding-right: 20px;
|
|
615
|
+
padding-bottom: 10px;
|
|
616
|
+
`;
|
|
617
|
+
const SubMenuItem = styled.a `
|
|
618
|
+
display: block;
|
|
619
|
+
padding: 8px 12px;
|
|
620
|
+
border-radius: 8px;
|
|
621
|
+
font-size: 13px;
|
|
622
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
623
|
+
line-height: 20px;
|
|
624
|
+
text-decoration: none;
|
|
625
|
+
font-weight: ${({ $active }) => ($active ? '500' : '400')};
|
|
626
|
+
color: ${({ $active }) => ($active ? Colors.BLACK.Hex : Colors.GRAY.Hex)};
|
|
627
|
+
background: ${props => (props.$active ? `rgba(${props.$color.Rgb}, 0.1)` : '#fff')};
|
|
628
|
+
cursor: pointer;
|
|
629
|
+
|
|
630
|
+
&:hover {
|
|
631
|
+
color: ${props => props.$color.Hex};
|
|
632
|
+
font-weight: 500;
|
|
633
|
+
}
|
|
634
|
+
`;
|
|
635
|
+
const Footer = styled.div `
|
|
636
|
+
padding: 20px 14px 0px;
|
|
637
|
+
display: flex;
|
|
638
|
+
align-items: center;
|
|
639
|
+
`;
|
|
640
|
+
const FooterInfo = styled.div `
|
|
641
|
+
display: flex;
|
|
642
|
+
flex-direction: column;
|
|
643
|
+
flex: 1;
|
|
644
|
+
align-items: flex-start;
|
|
645
|
+
`;
|
|
646
|
+
const SidebarMenuContainer = styled.div `
|
|
647
|
+
flex-grow: 1;
|
|
648
648
|
`;
|
|
649
649
|
const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px', dataItemid, }) => {
|
|
650
650
|
const theme = React.useContext(styled.ThemeContext) || EditableTheme;
|
|
@@ -673,75 +673,75 @@ const AppMenu = ({ menu, isCollapsed, footerTag, defaultWidth = '280px', dataIte
|
|
|
673
673
|
e.preventDefault();
|
|
674
674
|
toggleCollapse(!collapsed);
|
|
675
675
|
}, small: true, type: 'button' }))));
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
const Wrapper$d = styled.div `
|
|
679
|
-
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
680
|
-
border-radius: 8px;
|
|
681
|
-
box-sizing: border-box;
|
|
682
|
-
display: flex;
|
|
683
|
-
align-items: center;
|
|
684
|
-
justify-content: space-between;
|
|
685
|
-
padding: 16px 20px;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
const Wrapper$d = styled.div `
|
|
679
|
+
border: 1px solid ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
680
|
+
border-radius: 8px;
|
|
681
|
+
box-sizing: border-box;
|
|
682
|
+
display: flex;
|
|
683
|
+
align-items: center;
|
|
684
|
+
justify-content: space-between;
|
|
685
|
+
padding: 16px 20px;
|
|
686
686
|
`;
|
|
687
687
|
Wrapper$d.defaultProps = { theme: EditableTheme };
|
|
688
|
-
const Left = styled.div `
|
|
689
|
-
box-sizing: border-box;
|
|
690
|
-
display: flex;
|
|
691
|
-
align-items: center;
|
|
692
|
-
justify-content: space-between;
|
|
693
|
-
flex-shrink: 0;
|
|
694
|
-
`;
|
|
695
|
-
const Info$1 = styled.div `
|
|
696
|
-
box-sizing: border-box;
|
|
697
|
-
display: flex;
|
|
698
|
-
align-items: center;
|
|
699
|
-
margin-right: 30px;
|
|
700
|
-
`;
|
|
701
|
-
const Selected = styled.span `
|
|
702
|
-
font-size: 14px;
|
|
703
|
-
font-weight: 400;
|
|
704
|
-
font-family: ${FontStyles.DEFAULT};
|
|
705
|
-
color: ${Colors.BLACK.Hex};
|
|
706
|
-
line-height: 1;
|
|
707
|
-
`;
|
|
708
|
-
const Clear = styled.span `
|
|
709
|
-
font-size: 14px;
|
|
710
|
-
font-weight: 400;
|
|
711
|
-
font-family: ${FontStyles.DEFAULT};
|
|
712
|
-
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
713
|
-
line-height: 1;
|
|
714
|
-
cursor: pointer;
|
|
715
|
-
padding-left: 10px;
|
|
716
|
-
margin-left: 10px;
|
|
717
|
-
border-left: 1px solid #ccc;
|
|
688
|
+
const Left = styled.div `
|
|
689
|
+
box-sizing: border-box;
|
|
690
|
+
display: flex;
|
|
691
|
+
align-items: center;
|
|
692
|
+
justify-content: space-between;
|
|
693
|
+
flex-shrink: 0;
|
|
694
|
+
`;
|
|
695
|
+
const Info$1 = styled.div `
|
|
696
|
+
box-sizing: border-box;
|
|
697
|
+
display: flex;
|
|
698
|
+
align-items: center;
|
|
699
|
+
margin-right: 30px;
|
|
700
|
+
`;
|
|
701
|
+
const Selected = styled.span `
|
|
702
|
+
font-size: 14px;
|
|
703
|
+
font-weight: 400;
|
|
704
|
+
font-family: ${FontStyles.DEFAULT};
|
|
705
|
+
color: ${Colors.BLACK.Hex};
|
|
706
|
+
line-height: 1;
|
|
707
|
+
`;
|
|
708
|
+
const Clear = styled.span `
|
|
709
|
+
font-size: 14px;
|
|
710
|
+
font-weight: 400;
|
|
711
|
+
font-family: ${FontStyles.DEFAULT};
|
|
712
|
+
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
713
|
+
line-height: 1;
|
|
714
|
+
cursor: pointer;
|
|
715
|
+
padding-left: 10px;
|
|
716
|
+
margin-left: 10px;
|
|
717
|
+
border-left: 1px solid #ccc;
|
|
718
718
|
`;
|
|
719
719
|
Clear.defaultProps = { theme: EditableTheme };
|
|
720
|
-
const Actions$1 = styled.div `
|
|
721
|
-
box-sizing: border-box;
|
|
722
|
-
display: flex;
|
|
723
|
-
align-items: center;
|
|
724
|
-
column-gap: 10px;
|
|
725
|
-
`;
|
|
726
|
-
const Error$1 = styled.div `
|
|
727
|
-
box-sizing: border-box;
|
|
728
|
-
display: flex;
|
|
729
|
-
align-items: center;
|
|
730
|
-
background: rgba(${Colors.RED.Rgb}, 0.1);
|
|
731
|
-
border-radius: 4px;
|
|
732
|
-
padding: 6px 8px;
|
|
733
|
-
text-overflow: ellipsis;
|
|
734
|
-
white-space: nowrap;
|
|
735
|
-
overflow: hidden;
|
|
736
|
-
margin-left: 30px;
|
|
737
|
-
`;
|
|
738
|
-
const ErrorMsg = styled.span `
|
|
739
|
-
font-size: 14px;
|
|
740
|
-
font-weight: 500;
|
|
741
|
-
font-family: ${FontStyles.DEFAULT};
|
|
742
|
-
line-height: 1em;
|
|
743
|
-
color: ${Colors.RED.Hex};
|
|
744
|
-
margin-left: 8px;
|
|
720
|
+
const Actions$1 = styled.div `
|
|
721
|
+
box-sizing: border-box;
|
|
722
|
+
display: flex;
|
|
723
|
+
align-items: center;
|
|
724
|
+
column-gap: 10px;
|
|
725
|
+
`;
|
|
726
|
+
const Error$1 = styled.div `
|
|
727
|
+
box-sizing: border-box;
|
|
728
|
+
display: flex;
|
|
729
|
+
align-items: center;
|
|
730
|
+
background: rgba(${Colors.RED.Rgb}, 0.1);
|
|
731
|
+
border-radius: 4px;
|
|
732
|
+
padding: 6px 8px;
|
|
733
|
+
text-overflow: ellipsis;
|
|
734
|
+
white-space: nowrap;
|
|
735
|
+
overflow: hidden;
|
|
736
|
+
margin-left: 30px;
|
|
737
|
+
`;
|
|
738
|
+
const ErrorMsg = styled.span `
|
|
739
|
+
font-size: 14px;
|
|
740
|
+
font-weight: 500;
|
|
741
|
+
font-family: ${FontStyles.DEFAULT};
|
|
742
|
+
line-height: 1em;
|
|
743
|
+
color: ${Colors.RED.Hex};
|
|
744
|
+
margin-left: 8px;
|
|
745
745
|
`;
|
|
746
746
|
const BulkActionBar = (_a) => {
|
|
747
747
|
var { actions = [], errorMsg, onClear, selectedCount = 0, dataItemid } = _a, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount", "dataItemid"]);
|
|
@@ -757,48 +757,48 @@ const BulkActionBar = (_a) => {
|
|
|
757
757
|
errorMsg ? (React.createElement(Error$1, { "data-itemid": `${baseId}-error` },
|
|
758
758
|
React.createElement(Icon, { color: Colors.RED.Hex, "data-itemid": `${baseId}-error-icon`, path: js.mdiInformationOutline, size: '20px' }),
|
|
759
759
|
React.createElement(ErrorMsg, { "data-itemid": `${baseId}-error-msg` }, errorMsg))) : null));
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
const Wrapper$c = styled.div `
|
|
763
|
-
background: #fff;
|
|
764
|
-
border-radius: 8px;
|
|
765
|
-
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
766
|
-
display: flex;
|
|
767
|
-
flex-direction: column;
|
|
768
|
-
gap: 4px;
|
|
769
|
-
max-height: ${props => props.$maxHeight || '312px'};
|
|
770
|
-
padding: 10px;
|
|
771
|
-
width: 200px;
|
|
772
|
-
`;
|
|
773
|
-
const MenuItem = styled.div `
|
|
774
|
-
align-items: center;
|
|
775
|
-
border-radius: 8px;
|
|
776
|
-
border: 1px solid transparent;
|
|
777
|
-
display: flex;
|
|
778
|
-
gap: 8px;
|
|
779
|
-
height: 38px;
|
|
780
|
-
padding: 8px;
|
|
781
|
-
&:hover {
|
|
782
|
-
background: rgba(1, 147, 215, 0.1);
|
|
783
|
-
cursor: pointer;
|
|
784
|
-
|
|
785
|
-
svg,
|
|
786
|
-
path {
|
|
787
|
-
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
const Wrapper$c = styled.div `
|
|
763
|
+
background: #fff;
|
|
764
|
+
border-radius: 8px;
|
|
765
|
+
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
766
|
+
display: flex;
|
|
767
|
+
flex-direction: column;
|
|
768
|
+
gap: 4px;
|
|
769
|
+
max-height: ${props => props.$maxHeight || '312px'};
|
|
770
|
+
padding: 10px;
|
|
771
|
+
width: 200px;
|
|
772
|
+
`;
|
|
773
|
+
const MenuItem = styled.div `
|
|
774
|
+
align-items: center;
|
|
775
|
+
border-radius: 8px;
|
|
776
|
+
border: 1px solid transparent;
|
|
777
|
+
display: flex;
|
|
778
|
+
gap: 8px;
|
|
779
|
+
height: 38px;
|
|
780
|
+
padding: 8px;
|
|
781
|
+
&:hover {
|
|
782
|
+
background: rgba(1, 147, 215, 0.1);
|
|
783
|
+
cursor: pointer;
|
|
784
|
+
|
|
785
|
+
svg,
|
|
786
|
+
path {
|
|
787
|
+
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
790
|
`;
|
|
791
791
|
MenuItem.defaultProps = { theme: EditableTheme };
|
|
792
|
-
const Title$1 = styled.span `
|
|
793
|
-
font-family: Roboto;
|
|
794
|
-
font-size: 14px;
|
|
795
|
-
font-weight: 400;
|
|
796
|
-
height: auto;
|
|
797
|
-
letter-spacing: 0px;
|
|
798
|
-
line-height: 22px;
|
|
799
|
-
text-align: left;
|
|
800
|
-
color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
|
|
801
|
-
pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
|
|
792
|
+
const Title$1 = styled.span `
|
|
793
|
+
font-family: Roboto;
|
|
794
|
+
font-size: 14px;
|
|
795
|
+
font-weight: 400;
|
|
796
|
+
height: auto;
|
|
797
|
+
letter-spacing: 0px;
|
|
798
|
+
line-height: 22px;
|
|
799
|
+
text-align: left;
|
|
800
|
+
color: ${({ disabled }) => (disabled ? Colors.LIGHT_GRAY.Hex : 'inherit')};
|
|
801
|
+
pointer-events: ${({ disabled }) => (disabled ? 'none' : 'auto')};
|
|
802
802
|
`;
|
|
803
803
|
Title$1.defaultProps = {
|
|
804
804
|
disabled: false,
|
|
@@ -813,19 +813,19 @@ const MoreMenu = (_a) => {
|
|
|
813
813
|
item.icon ? (React.createElement(Icon, { color: item.disabled ? Colors.LIGHT_GRAY.Hex : Colors.MEDIUM_GRAY.Hex, "data-itemid": `${itemId}-icon`, path: item.icon, size: '20px' })) : null,
|
|
814
814
|
React.createElement(Title$1, { "data-itemid": `${itemId}-title`, disabled: (_a = item.disabled) !== null && _a !== void 0 ? _a : false }, item.label)));
|
|
815
815
|
})));
|
|
816
|
-
};
|
|
817
|
-
|
|
818
|
-
const MenuWrapper = styled.div `
|
|
819
|
-
position: relative;
|
|
820
|
-
display: inline-block;
|
|
821
|
-
`;
|
|
822
|
-
const StyledMoreMenu = styled(MoreMenu) `
|
|
823
|
-
position: absolute;
|
|
824
|
-
top: ${props => props.$top};
|
|
825
|
-
left: ${props => props.$left};
|
|
826
|
-
width: ${props => props.$menuWidth};
|
|
827
|
-
max-height: ${props => props.maxHeight};
|
|
828
|
-
z-index: 10;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
const MenuWrapper = styled.div `
|
|
819
|
+
position: relative;
|
|
820
|
+
display: inline-block;
|
|
821
|
+
`;
|
|
822
|
+
const StyledMoreMenu = styled(MoreMenu) `
|
|
823
|
+
position: absolute;
|
|
824
|
+
top: ${props => props.$top};
|
|
825
|
+
left: ${props => props.$left};
|
|
826
|
+
width: ${props => props.$menuWidth};
|
|
827
|
+
max-height: ${props => props.maxHeight};
|
|
828
|
+
z-index: 10;
|
|
829
829
|
`;
|
|
830
830
|
const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'bottomLeft', format = 'primary', menuWidth = '200px', enableHover = true, enableClick = false, show = false, dataItemid, }) => {
|
|
831
831
|
const [showMenu, toggleMenu] = React.useState(false);
|
|
@@ -900,50 +900,50 @@ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = '
|
|
|
900
900
|
return (React.createElement(MenuWrapper, { "data-itemid": `${baseId}-menu-wrapper`, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ref: menuWrapperRef },
|
|
901
901
|
React.createElement(Button, { "data-itemid": `${baseId}-button`, disabled: disabled, format: format, icon: js.mdiDotsHorizontal, small: small }, label),
|
|
902
902
|
showMenu && (React.createElement(StyledMoreMenu, { "$left": menuPosition.left, "$menuWidth": menuWidth, "$top": menuPosition.top, "data-itemid": `${baseId}-more-menu`, maxHeight: maxHeight, menuItems: menuItems }))));
|
|
903
|
-
};
|
|
904
|
-
|
|
905
|
-
const Wrapper$b = styled.label `
|
|
906
|
-
border-radius: 4px;
|
|
907
|
-
padding: 4px 0px 4px 6px;
|
|
908
|
-
margin-left: -6px;
|
|
909
|
-
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
910
|
-
display: flex;
|
|
911
|
-
align-items: center;
|
|
912
|
-
font-size: ${FontSizes.DEFAULT};
|
|
913
|
-
line-height: 1.6em;
|
|
914
|
-
box-sizing: border-box;
|
|
915
|
-
position: relative;
|
|
916
|
-
|
|
917
|
-
&:focus-within {
|
|
918
|
-
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
919
|
-
}
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
const Wrapper$b = styled.label `
|
|
906
|
+
border-radius: 4px;
|
|
907
|
+
padding: 4px 0px 4px 6px;
|
|
908
|
+
margin-left: -6px;
|
|
909
|
+
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
910
|
+
display: flex;
|
|
911
|
+
align-items: center;
|
|
912
|
+
font-size: ${FontSizes.DEFAULT};
|
|
913
|
+
line-height: 1.6em;
|
|
914
|
+
box-sizing: border-box;
|
|
915
|
+
position: relative;
|
|
916
|
+
|
|
917
|
+
&:focus-within {
|
|
918
|
+
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
919
|
+
}
|
|
920
920
|
`;
|
|
921
921
|
Wrapper$b.defaultProps = { theme: EditableTheme };
|
|
922
|
-
const Input$2 = styled.input `
|
|
923
|
-
font-size: 20px;
|
|
924
|
-
margin: 0px;
|
|
925
|
-
line-height: 1.1em;
|
|
926
|
-
box-sizing: border-box;
|
|
927
|
-
position: absolute;
|
|
928
|
-
opacity: 0;
|
|
929
|
-
cursor: pointer;
|
|
930
|
-
height: 0;
|
|
931
|
-
width: 0;
|
|
932
|
-
&:checked + span {
|
|
933
|
-
background-color: ${Colors.PRIMARY.Hex};
|
|
934
|
-
border-color: ${Colors.PRIMARY.Hex};
|
|
935
|
-
}
|
|
936
|
-
&:checked:disabled + span {
|
|
937
|
-
background-color: ${Colors.MEDIUM_GRAY.Hex};
|
|
938
|
-
border-color: ${Colors.MEDIUM_GRAY.Hex};
|
|
939
|
-
}
|
|
940
|
-
&:disabled + span {
|
|
941
|
-
background-color: #d3d3d3;
|
|
942
|
-
border-color: #d3d3d3;
|
|
943
|
-
}
|
|
944
|
-
&:checked + span:after {
|
|
945
|
-
display: block;
|
|
946
|
-
}
|
|
922
|
+
const Input$2 = styled.input `
|
|
923
|
+
font-size: 20px;
|
|
924
|
+
margin: 0px;
|
|
925
|
+
line-height: 1.1em;
|
|
926
|
+
box-sizing: border-box;
|
|
927
|
+
position: absolute;
|
|
928
|
+
opacity: 0;
|
|
929
|
+
cursor: pointer;
|
|
930
|
+
height: 0;
|
|
931
|
+
width: 0;
|
|
932
|
+
&:checked + span {
|
|
933
|
+
background-color: ${Colors.PRIMARY.Hex};
|
|
934
|
+
border-color: ${Colors.PRIMARY.Hex};
|
|
935
|
+
}
|
|
936
|
+
&:checked:disabled + span {
|
|
937
|
+
background-color: ${Colors.MEDIUM_GRAY.Hex};
|
|
938
|
+
border-color: ${Colors.MEDIUM_GRAY.Hex};
|
|
939
|
+
}
|
|
940
|
+
&:disabled + span {
|
|
941
|
+
background-color: #d3d3d3;
|
|
942
|
+
border-color: #d3d3d3;
|
|
943
|
+
}
|
|
944
|
+
&:checked + span:after {
|
|
945
|
+
display: block;
|
|
946
|
+
}
|
|
947
947
|
`;
|
|
948
948
|
const getBackgroundColor$3 = (props) => {
|
|
949
949
|
if (props.$isWarningError) {
|
|
@@ -967,41 +967,41 @@ const getBorderColor$3 = (props) => {
|
|
|
967
967
|
return Colors.GRAY.Hex;
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
|
-
const Check$1 = styled.span `
|
|
971
|
-
height: 17px;
|
|
972
|
-
width: 17px;
|
|
973
|
-
min-width: 17px;
|
|
974
|
-
background-color: #fff;
|
|
975
|
-
border-width: 2px;
|
|
976
|
-
border-style: solid;
|
|
977
|
-
border-color: ${props => getBorderColor$3(props)};
|
|
978
|
-
background-color: ${props => getBackgroundColor$3(props)};
|
|
979
|
-
box-sizing: border-box;
|
|
980
|
-
position: relative;
|
|
981
|
-
&:after {
|
|
982
|
-
content: '';
|
|
983
|
-
position: absolute;
|
|
984
|
-
left: 3px;
|
|
985
|
-
top: 0px;
|
|
986
|
-
width: 7px;
|
|
987
|
-
height: 12px;
|
|
988
|
-
border: solid white;
|
|
989
|
-
border-width: 0 3px 3px 0;
|
|
990
|
-
-webkit-transform: rotate(45deg);
|
|
991
|
-
-ms-transform: rotate(45deg);
|
|
992
|
-
transform: rotate(45deg);
|
|
993
|
-
box-sizing: border-box;
|
|
994
|
-
display: none;
|
|
995
|
-
}
|
|
996
|
-
`;
|
|
997
|
-
const Label$3 = styled.span `
|
|
998
|
-
font-family: ${FontStyles.DEFAULT};
|
|
999
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1000
|
-
font-weight: 400;
|
|
1001
|
-
line-height: 1.6em;
|
|
1002
|
-
color: ${props => props.color || Colors.BLACK.Hex};
|
|
1003
|
-
margin-left: 6px;
|
|
1004
|
-
box-sizing: border-box;
|
|
970
|
+
const Check$1 = styled.span `
|
|
971
|
+
height: 17px;
|
|
972
|
+
width: 17px;
|
|
973
|
+
min-width: 17px;
|
|
974
|
+
background-color: #fff;
|
|
975
|
+
border-width: 2px;
|
|
976
|
+
border-style: solid;
|
|
977
|
+
border-color: ${props => getBorderColor$3(props)};
|
|
978
|
+
background-color: ${props => getBackgroundColor$3(props)};
|
|
979
|
+
box-sizing: border-box;
|
|
980
|
+
position: relative;
|
|
981
|
+
&:after {
|
|
982
|
+
content: '';
|
|
983
|
+
position: absolute;
|
|
984
|
+
left: 3px;
|
|
985
|
+
top: 0px;
|
|
986
|
+
width: 7px;
|
|
987
|
+
height: 12px;
|
|
988
|
+
border: solid white;
|
|
989
|
+
border-width: 0 3px 3px 0;
|
|
990
|
+
-webkit-transform: rotate(45deg);
|
|
991
|
+
-ms-transform: rotate(45deg);
|
|
992
|
+
transform: rotate(45deg);
|
|
993
|
+
box-sizing: border-box;
|
|
994
|
+
display: none;
|
|
995
|
+
}
|
|
996
|
+
`;
|
|
997
|
+
const Label$3 = styled.span `
|
|
998
|
+
font-family: ${FontStyles.DEFAULT};
|
|
999
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1000
|
+
font-weight: 400;
|
|
1001
|
+
line-height: 1.6em;
|
|
1002
|
+
color: ${props => props.color || Colors.BLACK.Hex};
|
|
1003
|
+
margin-left: 6px;
|
|
1004
|
+
box-sizing: border-box;
|
|
1005
1005
|
`;
|
|
1006
1006
|
const Checkbox = (_a) => {
|
|
1007
1007
|
var { children, color, disabled, checked, onChange, invalid, tooltip, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false } = _a, accessibleProps = __rest(_a, ["children", "color", "disabled", "checked", "onChange", "invalid", "tooltip", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError"]);
|
|
@@ -1012,16 +1012,16 @@ const Checkbox = (_a) => {
|
|
|
1012
1012
|
children ? (React.createElement(Label$3, { color: color, "data-itemid": `${baseId}-label` },
|
|
1013
1013
|
children,
|
|
1014
1014
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null));
|
|
1015
|
-
};
|
|
1016
|
-
|
|
1017
|
-
const SelectAll = styled.div `
|
|
1018
|
-
padding: 8px 12px;
|
|
1019
|
-
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
1020
|
-
box-sizing: border-box;
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
const SelectAll = styled.div `
|
|
1018
|
+
padding: 8px 12px;
|
|
1019
|
+
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
1020
|
+
box-sizing: border-box;
|
|
1021
1021
|
`;
|
|
1022
|
-
const Options$1 = styled.div `
|
|
1023
|
-
padding: 12px;
|
|
1024
|
-
box-sizing: border-box;
|
|
1022
|
+
const Options$1 = styled.div `
|
|
1023
|
+
padding: 12px;
|
|
1024
|
+
box-sizing: border-box;
|
|
1025
1025
|
`;
|
|
1026
1026
|
const Checklist = (_a) => {
|
|
1027
1027
|
var { disabled, onChange, options, selected = [], showSelectAll, dataItemid } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll", "dataItemid"]);
|
|
@@ -1060,8 +1060,8 @@ const Checklist = (_a) => {
|
|
|
1060
1060
|
const optionId = `${baseId}-option-${i}`;
|
|
1061
1061
|
return (React.createElement(Checkbox, Object.assign({ "data-itemid": `${optionId}-checkbox`, key: i }, accessibleProps, { checked: checked, color: option.color, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
|
|
1062
1062
|
}))));
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
1065
|
const getBackgroundColor$2 = (props) => {
|
|
1066
1066
|
if (props.$isWarningError) {
|
|
1067
1067
|
return '#fcf1c9';
|
|
@@ -1084,69 +1084,69 @@ const getBorderColor$2 = (props) => {
|
|
|
1084
1084
|
return '#cccccc';
|
|
1085
1085
|
}
|
|
1086
1086
|
};
|
|
1087
|
-
const Wrapper$a = styled.div `
|
|
1088
|
-
border-radius: 4px;
|
|
1089
|
-
height: 40px;
|
|
1090
|
-
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
1091
|
-
position: relative;
|
|
1092
|
-
cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
|
|
1093
|
-
border-width: 1px;
|
|
1094
|
-
border-style: solid;
|
|
1095
|
-
border-color: ${props => getBorderColor$2(props)};
|
|
1096
|
-
background-color: ${props => getBackgroundColor$2(props)};
|
|
1097
|
-
border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
|
|
1098
|
-
flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
|
|
1099
|
-
box-sizing: border-box;
|
|
1100
|
-
padding: 10px 0px;
|
|
1101
|
-
display: flex;
|
|
1102
|
-
align-items: center;
|
|
1103
|
-
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1104
|
-
|
|
1105
|
-
&:focus-within {
|
|
1106
|
-
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
1107
|
-
}
|
|
1087
|
+
const Wrapper$a = styled.div `
|
|
1088
|
+
border-radius: 4px;
|
|
1089
|
+
height: 40px;
|
|
1090
|
+
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
1091
|
+
position: relative;
|
|
1092
|
+
cursor: ${props => (props.$readOnly ? 'default' : 'pointer')};
|
|
1093
|
+
border-width: 1px;
|
|
1094
|
+
border-style: solid;
|
|
1095
|
+
border-color: ${props => getBorderColor$2(props)};
|
|
1096
|
+
background-color: ${props => getBackgroundColor$2(props)};
|
|
1097
|
+
border-radius: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.borderRadius) || '4px'};
|
|
1098
|
+
flex-grow: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.flexGrow) || 0};
|
|
1099
|
+
box-sizing: border-box;
|
|
1100
|
+
padding: 10px 0px;
|
|
1101
|
+
display: flex;
|
|
1102
|
+
align-items: center;
|
|
1103
|
+
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1104
|
+
|
|
1105
|
+
&:focus-within {
|
|
1106
|
+
border-color: ${props => (props.$readOnly ? '#cccccc' : props.theme.PRIMARY_COLOR.Hex)};
|
|
1107
|
+
}
|
|
1108
1108
|
`;
|
|
1109
1109
|
Wrapper$a.defaultProps = { theme: EditableTheme };
|
|
1110
|
-
const Trigger$1 = styled.select `
|
|
1111
|
-
appearance: none;
|
|
1112
|
-
box-shadow: none;
|
|
1113
|
-
outline: none;
|
|
1114
|
-
border: none;
|
|
1115
|
-
color: ${Colors.BLACK.Hex};
|
|
1116
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1117
|
-
font-weight: 400;
|
|
1118
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1119
|
-
line-height: 3.1em;
|
|
1120
|
-
background-color: transparent;
|
|
1121
|
-
background-image: none;
|
|
1122
|
-
width: 100%;
|
|
1123
|
-
box-sizing: border-box;
|
|
1124
|
-
padding: 0px 30px 0px 10px;
|
|
1125
|
-
box-sizing: border-box;
|
|
1126
|
-
position: relative;
|
|
1127
|
-
z-index: 2;
|
|
1128
|
-
`;
|
|
1129
|
-
const IconWrapper$2 = styled(Icon) `
|
|
1130
|
-
position: absolute;
|
|
1131
|
-
right: 9px;
|
|
1132
|
-
z-index: 1;
|
|
1133
|
-
`;
|
|
1134
|
-
const SearchInput$1 = styled.input `
|
|
1135
|
-
position: absolute;
|
|
1136
|
-
left: 2px;
|
|
1137
|
-
top: 2px;
|
|
1138
|
-
z-index: 999;
|
|
1139
|
-
width: 90%;
|
|
1140
|
-
height: 30px;
|
|
1141
|
-
border: none;
|
|
1142
|
-
outline: none;
|
|
1143
|
-
color: ${Colors.BLACK.Hex};
|
|
1144
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1145
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1146
|
-
font-weight: 400;
|
|
1147
|
-
line-height: 2.9em;
|
|
1148
|
-
overflow: hidden;
|
|
1149
|
-
white-space: nowrap;
|
|
1110
|
+
const Trigger$1 = styled.select `
|
|
1111
|
+
appearance: none;
|
|
1112
|
+
box-shadow: none;
|
|
1113
|
+
outline: none;
|
|
1114
|
+
border: none;
|
|
1115
|
+
color: ${Colors.BLACK.Hex};
|
|
1116
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1117
|
+
font-weight: 400;
|
|
1118
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1119
|
+
line-height: 3.1em;
|
|
1120
|
+
background-color: transparent;
|
|
1121
|
+
background-image: none;
|
|
1122
|
+
width: 100%;
|
|
1123
|
+
box-sizing: border-box;
|
|
1124
|
+
padding: 0px 30px 0px 10px;
|
|
1125
|
+
box-sizing: border-box;
|
|
1126
|
+
position: relative;
|
|
1127
|
+
z-index: 2;
|
|
1128
|
+
`;
|
|
1129
|
+
const IconWrapper$2 = styled(Icon) `
|
|
1130
|
+
position: absolute;
|
|
1131
|
+
right: 9px;
|
|
1132
|
+
z-index: 1;
|
|
1133
|
+
`;
|
|
1134
|
+
const SearchInput$1 = styled.input `
|
|
1135
|
+
position: absolute;
|
|
1136
|
+
left: 2px;
|
|
1137
|
+
top: 2px;
|
|
1138
|
+
z-index: 999;
|
|
1139
|
+
width: 90%;
|
|
1140
|
+
height: 30px;
|
|
1141
|
+
border: none;
|
|
1142
|
+
outline: none;
|
|
1143
|
+
color: ${Colors.BLACK.Hex};
|
|
1144
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1145
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1146
|
+
font-weight: 400;
|
|
1147
|
+
line-height: 2.9em;
|
|
1148
|
+
overflow: hidden;
|
|
1149
|
+
white-space: nowrap;
|
|
1150
1150
|
`;
|
|
1151
1151
|
const Select = (_a) => {
|
|
1152
1152
|
var { options, optionGroups, placeholder = '--Select-One--', readOnly, invalid, searchable = false, value: propValue, onChange, style, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false } = _a, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "searchable", "value", "onChange", "style", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError"]);
|
|
@@ -1181,15 +1181,15 @@ const Select = (_a) => {
|
|
|
1181
1181
|
filteredOptions &&
|
|
1182
1182
|
filteredOptions.map((option, i) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}`, key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
|
|
1183
1183
|
React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: js.mdiChevronDown, size: '22px' })));
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1186
|
-
const DatePickerWrapper = styled.div `
|
|
1187
|
-
display: flex;
|
|
1188
|
-
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
const DatePickerWrapper = styled.div `
|
|
1187
|
+
display: flex;
|
|
1188
|
+
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1189
1189
|
`;
|
|
1190
|
-
const Middle = styled.div `
|
|
1191
|
-
margin: 0px -1px;
|
|
1192
|
-
flex-grow: 1;
|
|
1190
|
+
const Middle = styled.div `
|
|
1191
|
+
margin: 0px -1px;
|
|
1192
|
+
flex-grow: 1;
|
|
1193
1193
|
`;
|
|
1194
1194
|
const DatePicker = ({ readOnly = false, invalid = false, maxDate = null, minDate = null, date,
|
|
1195
1195
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@@ -1277,71 +1277,71 @@ onChange = () => { }, style, dataItemid, locale, }) => {
|
|
|
1277
1277
|
React.createElement(Middle, { "data-itemid": `${baseId}-middle` },
|
|
1278
1278
|
React.createElement(Select, { "data-itemid": `${baseId}-day-select`, invalid: invalid, onChange: handleDayChange, options: dayOptions, placeholder: (locale === null || locale === void 0 ? void 0 : locale.SelectDay) ? locale === null || locale === void 0 ? void 0 : locale.SelectDay : 'Select Day', readOnly: readOnly, style: { borderRadius: '0px' }, value: selectedDay })),
|
|
1279
1279
|
React.createElement(Select, { "data-itemid": `${baseId}-year-select`, invalid: invalid, onChange: handleYearChange, options: years, placeholder: (locale === null || locale === void 0 ? void 0 : locale.SelectYear) ? locale === null || locale === void 0 ? void 0 : locale.SelectYear : 'Select Year', readOnly: readOnly, style: { borderRadius: '0px 4px 4px 0px', flexGrow: 2 }, value: selectedYear }))));
|
|
1280
|
-
};
|
|
1281
|
-
|
|
1282
|
-
const Scrim$1 = styled.div `
|
|
1283
|
-
position: ${({ $position }) => $position};
|
|
1284
|
-
top: 0;
|
|
1285
|
-
right: 0;
|
|
1286
|
-
bottom: 0;
|
|
1287
|
-
left: 0;
|
|
1288
|
-
z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
|
|
1289
|
-
background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
|
|
1290
|
-
`;
|
|
1291
|
-
const Container$3 = styled.div `
|
|
1292
|
-
z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
|
|
1293
|
-
min-width: 400px;
|
|
1294
|
-
width: ${({ $width }) => $width || '400px'};
|
|
1295
|
-
overflow: hidden;
|
|
1296
|
-
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
1297
|
-
outline: none;
|
|
1298
|
-
border: none;
|
|
1299
|
-
position: ${({ $position }) => $position};
|
|
1300
|
-
top: 0;
|
|
1301
|
-
right: 0;
|
|
1302
|
-
bottom: 0;
|
|
1303
|
-
padding: 0px;
|
|
1304
|
-
display: flex;
|
|
1305
|
-
flex-direction: column;
|
|
1306
|
-
box-sizing: border-box;
|
|
1307
|
-
background: #fff;
|
|
1308
|
-
`;
|
|
1309
|
-
const Header$2 = styled.div `
|
|
1310
|
-
padding: 30px 20px;
|
|
1311
|
-
display: flex;
|
|
1312
|
-
align-items: flex-start;
|
|
1313
|
-
box-sizing: border-box;
|
|
1314
|
-
flex-shrink: 0;
|
|
1315
|
-
background: #fff;
|
|
1316
|
-
`;
|
|
1317
|
-
const Close$1 = styled.div `
|
|
1318
|
-
margin-left: auto;
|
|
1319
|
-
display: flex;
|
|
1320
|
-
align-items: center;
|
|
1321
|
-
padding-left: 20px;
|
|
1322
|
-
cursor: pointer;
|
|
1323
|
-
`;
|
|
1324
|
-
const ContentWrapper$1 = styled.div `
|
|
1325
|
-
overflow-x: hidden;
|
|
1326
|
-
overflow-y: auto;
|
|
1327
|
-
box-sizing: border-box;
|
|
1328
|
-
flex: 1;
|
|
1329
|
-
background: #fff;
|
|
1330
|
-
`;
|
|
1331
|
-
const ButtonBar$1 = styled.div `
|
|
1332
|
-
padding: 20px;
|
|
1333
|
-
display: flex;
|
|
1334
|
-
align-items: flex-end;
|
|
1335
|
-
justify-content: center;
|
|
1336
|
-
box-sizing: border-box;
|
|
1337
|
-
gap: 10px;
|
|
1338
|
-
flex-shrink: 0;
|
|
1339
|
-
background: #fff;
|
|
1340
|
-
flex-direction: column;
|
|
1341
|
-
`;
|
|
1342
|
-
const ButtonBarNote = styled.div `
|
|
1343
|
-
display: flex;
|
|
1344
|
-
gap: 10px;
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
const Scrim$1 = styled.div `
|
|
1283
|
+
position: ${({ $position }) => $position};
|
|
1284
|
+
top: 0;
|
|
1285
|
+
right: 0;
|
|
1286
|
+
bottom: 0;
|
|
1287
|
+
left: 0;
|
|
1288
|
+
z-index: ${({ $position }) => ($position === 'fixed' ? 9998 : 10)};
|
|
1289
|
+
background: ${({ $scrim }) => ($scrim === 'dark' ? 'rgba(0,0,0,0.8)' : 'transparent')};
|
|
1290
|
+
`;
|
|
1291
|
+
const Container$3 = styled.div `
|
|
1292
|
+
z-index: ${({ $position }) => ($position === 'fixed' ? 9999 : 11)};
|
|
1293
|
+
min-width: 400px;
|
|
1294
|
+
width: ${({ $width }) => $width || '400px'};
|
|
1295
|
+
overflow: hidden;
|
|
1296
|
+
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
1297
|
+
outline: none;
|
|
1298
|
+
border: none;
|
|
1299
|
+
position: ${({ $position }) => $position};
|
|
1300
|
+
top: 0;
|
|
1301
|
+
right: 0;
|
|
1302
|
+
bottom: 0;
|
|
1303
|
+
padding: 0px;
|
|
1304
|
+
display: flex;
|
|
1305
|
+
flex-direction: column;
|
|
1306
|
+
box-sizing: border-box;
|
|
1307
|
+
background: #fff;
|
|
1308
|
+
`;
|
|
1309
|
+
const Header$2 = styled.div `
|
|
1310
|
+
padding: 30px 20px;
|
|
1311
|
+
display: flex;
|
|
1312
|
+
align-items: flex-start;
|
|
1313
|
+
box-sizing: border-box;
|
|
1314
|
+
flex-shrink: 0;
|
|
1315
|
+
background: #fff;
|
|
1316
|
+
`;
|
|
1317
|
+
const Close$1 = styled.div `
|
|
1318
|
+
margin-left: auto;
|
|
1319
|
+
display: flex;
|
|
1320
|
+
align-items: center;
|
|
1321
|
+
padding-left: 20px;
|
|
1322
|
+
cursor: pointer;
|
|
1323
|
+
`;
|
|
1324
|
+
const ContentWrapper$1 = styled.div `
|
|
1325
|
+
overflow-x: hidden;
|
|
1326
|
+
overflow-y: auto;
|
|
1327
|
+
box-sizing: border-box;
|
|
1328
|
+
flex: 1;
|
|
1329
|
+
background: #fff;
|
|
1330
|
+
`;
|
|
1331
|
+
const ButtonBar$1 = styled.div `
|
|
1332
|
+
padding: 20px;
|
|
1333
|
+
display: flex;
|
|
1334
|
+
align-items: flex-end;
|
|
1335
|
+
justify-content: center;
|
|
1336
|
+
box-sizing: border-box;
|
|
1337
|
+
gap: 10px;
|
|
1338
|
+
flex-shrink: 0;
|
|
1339
|
+
background: #fff;
|
|
1340
|
+
flex-direction: column;
|
|
1341
|
+
`;
|
|
1342
|
+
const ButtonBarNote = styled.div `
|
|
1343
|
+
display: flex;
|
|
1344
|
+
gap: 10px;
|
|
1345
1345
|
`;
|
|
1346
1346
|
const Drawer = (_a) => {
|
|
1347
1347
|
var { children, description, title, onClose, primaryButton, position = 'fixed', secondaryButton, tertiaryButton, scrim = 'dark', width, dataItemid, bottomNotes } = _a, accessibleProps = __rest(_a, ["children", "description", "title", "onClose", "primaryButton", "position", "secondaryButton", "tertiaryButton", "scrim", "width", "dataItemid", "bottomNotes"]);
|
|
@@ -1372,70 +1372,70 @@ const Drawer = (_a) => {
|
|
|
1372
1372
|
secondaryButton ? (React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}-secondary-button`, format: secondaryButton.format || 'secondary' }))) : null,
|
|
1373
1373
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}-primary-button`, format: primaryButton.format || 'primary' }))) : null))) : null),
|
|
1374
1374
|
scrim ? (React.createElement(Scrim$1, { "$position": position, "$scrim": scrim, "data-itemid": `${baseId}-scrim`, onClick: onClose })) : null));
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
1377
|
const Wrapper$9 = styled.div(props => (Object.assign({ margin: '0px 0px 18px 0px' }, props.$customStyle)));
|
|
1378
|
-
const LabelRow = styled.div `
|
|
1379
|
-
display: flex;
|
|
1380
|
-
align-items: center;
|
|
1381
|
-
justify-content: space-between;
|
|
1382
|
-
margin: 0 0 4px 0;
|
|
1383
|
-
box-sizing: border-box;
|
|
1384
|
-
`;
|
|
1385
|
-
const Label$2 = styled.label `
|
|
1386
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1387
|
-
font-weight: 500;
|
|
1388
|
-
line-height: 1.3em;
|
|
1389
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1390
|
-
color: ${Colors.BLACK.Hex};
|
|
1391
|
-
display: flex;
|
|
1392
|
-
align-items: center;
|
|
1393
|
-
`;
|
|
1394
|
-
const Required = styled.span `
|
|
1395
|
-
color: ${Colors.RED.Hex};
|
|
1396
|
-
margin-left: 4px;
|
|
1397
|
-
`;
|
|
1398
|
-
const Action = styled.span `
|
|
1399
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1400
|
-
font-weight: 500;
|
|
1401
|
-
line-height: 1em;
|
|
1402
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1403
|
-
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1404
|
-
cursor: pointer;
|
|
1378
|
+
const LabelRow = styled.div `
|
|
1379
|
+
display: flex;
|
|
1380
|
+
align-items: center;
|
|
1381
|
+
justify-content: space-between;
|
|
1382
|
+
margin: 0 0 4px 0;
|
|
1383
|
+
box-sizing: border-box;
|
|
1384
|
+
`;
|
|
1385
|
+
const Label$2 = styled.label `
|
|
1386
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1387
|
+
font-weight: 500;
|
|
1388
|
+
line-height: 1.3em;
|
|
1389
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1390
|
+
color: ${Colors.BLACK.Hex};
|
|
1391
|
+
display: flex;
|
|
1392
|
+
align-items: center;
|
|
1393
|
+
`;
|
|
1394
|
+
const Required = styled.span `
|
|
1395
|
+
color: ${Colors.RED.Hex};
|
|
1396
|
+
margin-left: 4px;
|
|
1397
|
+
`;
|
|
1398
|
+
const Action = styled.span `
|
|
1399
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1400
|
+
font-weight: 500;
|
|
1401
|
+
line-height: 1em;
|
|
1402
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1403
|
+
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1404
|
+
cursor: pointer;
|
|
1405
1405
|
`;
|
|
1406
1406
|
Action.defaultProps = { theme: EditableTheme };
|
|
1407
|
-
const Description = styled.div `
|
|
1408
|
-
font-size: ${FontSizes.SMALL};
|
|
1409
|
-
font-weight: 400;
|
|
1410
|
-
line-height: 1.3em;
|
|
1411
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1412
|
-
color: ${Colors.BLACK.Hex};
|
|
1413
|
-
margin: 0 0 8px 0;
|
|
1414
|
-
box-sizing: border-box;
|
|
1415
|
-
`;
|
|
1416
|
-
const Validation = styled.div `
|
|
1417
|
-
font-size: ${FontSizes.SMALL};
|
|
1418
|
-
font-weight: 400;
|
|
1419
|
-
line-height: 1.3em;
|
|
1420
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1421
|
-
color: ${Colors.RED.Hex};
|
|
1422
|
-
margin: 4px 0 0 0;
|
|
1423
|
-
box-sizing: border-box;
|
|
1424
|
-
min-height: 19px;
|
|
1425
|
-
`;
|
|
1426
|
-
const ValidationNew = styled.span `
|
|
1427
|
-
font-size: ${FontSizes.SMALL};
|
|
1428
|
-
font-weight: 400;
|
|
1429
|
-
line-height: 1.3em;
|
|
1430
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1431
|
-
color: ${Colors.BLACK.Hex};
|
|
1432
|
-
box-sizing: border-box;
|
|
1433
|
-
align-items: center;
|
|
1434
|
-
display: flex;
|
|
1435
|
-
`;
|
|
1436
|
-
const ValidationInnerIcon = styled.span `
|
|
1437
|
-
padding-right: 5px;
|
|
1438
|
-
display: flex;
|
|
1407
|
+
const Description = styled.div `
|
|
1408
|
+
font-size: ${FontSizes.SMALL};
|
|
1409
|
+
font-weight: 400;
|
|
1410
|
+
line-height: 1.3em;
|
|
1411
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1412
|
+
color: ${Colors.BLACK.Hex};
|
|
1413
|
+
margin: 0 0 8px 0;
|
|
1414
|
+
box-sizing: border-box;
|
|
1415
|
+
`;
|
|
1416
|
+
const Validation = styled.div `
|
|
1417
|
+
font-size: ${FontSizes.SMALL};
|
|
1418
|
+
font-weight: 400;
|
|
1419
|
+
line-height: 1.3em;
|
|
1420
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1421
|
+
color: ${Colors.RED.Hex};
|
|
1422
|
+
margin: 4px 0 0 0;
|
|
1423
|
+
box-sizing: border-box;
|
|
1424
|
+
min-height: 19px;
|
|
1425
|
+
`;
|
|
1426
|
+
const ValidationNew = styled.span `
|
|
1427
|
+
font-size: ${FontSizes.SMALL};
|
|
1428
|
+
font-weight: 400;
|
|
1429
|
+
line-height: 1.3em;
|
|
1430
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1431
|
+
color: ${Colors.BLACK.Hex};
|
|
1432
|
+
box-sizing: border-box;
|
|
1433
|
+
align-items: center;
|
|
1434
|
+
display: flex;
|
|
1435
|
+
`;
|
|
1436
|
+
const ValidationInnerIcon = styled.span `
|
|
1437
|
+
padding-right: 5px;
|
|
1438
|
+
display: flex;
|
|
1439
1439
|
`;
|
|
1440
1440
|
const ValidationInnerMessage = styled.span ``;
|
|
1441
1441
|
const MessageWrapper = message => (React.createElement(ValidationNew, null,
|
|
@@ -1458,116 +1458,116 @@ const Field = (_a) => {
|
|
|
1458
1458
|
React.createElement(Validation, { className: 'field-validation-wrapper', "data-itemid": `${baseId}-validation`, title: validationText }, validationText && isNewMessageType
|
|
1459
1459
|
? MessageWrapper(validationText)
|
|
1460
1460
|
: validationText || '\u00A0')));
|
|
1461
|
-
};
|
|
1462
|
-
|
|
1463
|
-
const Wrapper$8 = styled.fieldset `
|
|
1464
|
-
margin-inline-start: 0px;
|
|
1465
|
-
margin-inline-end: 0px;
|
|
1466
|
-
padding-block-start: 0px;
|
|
1467
|
-
padding-inline-start: 0px;
|
|
1468
|
-
padding-inline-end: 0px;
|
|
1469
|
-
padding-block-end: 0px;
|
|
1470
|
-
min-inline-size: min-content;
|
|
1471
|
-
border-width: 0px;
|
|
1472
|
-
border-style: none;
|
|
1473
|
-
border-color: transparent;
|
|
1474
|
-
border-image: none;
|
|
1475
|
-
`;
|
|
1476
|
-
const Label$1 = styled.legend `
|
|
1477
|
-
padding-inline-start: 0px;
|
|
1478
|
-
padding-inline-end: 0px;
|
|
1479
|
-
|
|
1480
|
-
color: ${Colors.BLACK.Hex};
|
|
1481
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1482
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1483
|
-
font-weight: 500;
|
|
1484
|
-
line-height: 22px;
|
|
1485
|
-
margin-bottom: 6px;
|
|
1486
|
-
`;
|
|
1487
|
-
const Content$1 = styled.div `
|
|
1488
|
-
padding: 20px;
|
|
1489
|
-
border-radius: 8px;
|
|
1490
|
-
background: #fcfcfc;
|
|
1461
|
+
};
|
|
1462
|
+
|
|
1463
|
+
const Wrapper$8 = styled.fieldset `
|
|
1464
|
+
margin-inline-start: 0px;
|
|
1465
|
+
margin-inline-end: 0px;
|
|
1466
|
+
padding-block-start: 0px;
|
|
1467
|
+
padding-inline-start: 0px;
|
|
1468
|
+
padding-inline-end: 0px;
|
|
1469
|
+
padding-block-end: 0px;
|
|
1470
|
+
min-inline-size: min-content;
|
|
1471
|
+
border-width: 0px;
|
|
1472
|
+
border-style: none;
|
|
1473
|
+
border-color: transparent;
|
|
1474
|
+
border-image: none;
|
|
1475
|
+
`;
|
|
1476
|
+
const Label$1 = styled.legend `
|
|
1477
|
+
padding-inline-start: 0px;
|
|
1478
|
+
padding-inline-end: 0px;
|
|
1479
|
+
|
|
1480
|
+
color: ${Colors.BLACK.Hex};
|
|
1481
|
+
font-family: ${FontStyles.DEFAULT};
|
|
1482
|
+
font-size: ${FontSizes.DEFAULT};
|
|
1483
|
+
font-weight: 500;
|
|
1484
|
+
line-height: 22px;
|
|
1485
|
+
margin-bottom: 6px;
|
|
1486
|
+
`;
|
|
1487
|
+
const Content$1 = styled.div `
|
|
1488
|
+
padding: 20px;
|
|
1489
|
+
border-radius: 8px;
|
|
1490
|
+
background: #fcfcfc;
|
|
1491
1491
|
`;
|
|
1492
1492
|
const FieldGroup = ({ children, label, dataItemid }) => {
|
|
1493
1493
|
const baseId = dataItemid || 'field-group';
|
|
1494
1494
|
return (React.createElement(Wrapper$8, { "data-itemid": `${baseId}-wrapper` },
|
|
1495
1495
|
React.createElement(Label$1, { "data-itemid": `${baseId}-label` }, label),
|
|
1496
1496
|
React.createElement(Content$1, { "data-itemid": `${baseId}-content` }, children)));
|
|
1497
|
-
};
|
|
1498
|
-
|
|
1499
|
-
const Dropzone = styled.div `
|
|
1500
|
-
border-radius: 8px;
|
|
1501
|
-
border-width: 1px;
|
|
1502
|
-
border-style: dashed;
|
|
1503
|
-
border-color: ${props => (props.$dragging ? props.theme.PRIMARY_COLOR.Hex : '#cccccc')};
|
|
1504
|
-
background: ${props => props.$dragging ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)` : '#ffffff'};
|
|
1505
|
-
cursor: ${props => (props.disabled ? 'not-allowed' : 'copy')};
|
|
1506
|
-
opacity: ${props => (props.disabled ? 0.6 : 1)};
|
|
1507
|
-
pointer-events: ${props => (props.disabled ? 'none' : 'auto')};
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
const Dropzone = styled.div `
|
|
1500
|
+
border-radius: 8px;
|
|
1501
|
+
border-width: 1px;
|
|
1502
|
+
border-style: dashed;
|
|
1503
|
+
border-color: ${props => (props.$dragging ? props.theme.PRIMARY_COLOR.Hex : '#cccccc')};
|
|
1504
|
+
background: ${props => props.$dragging ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)` : '#ffffff'};
|
|
1505
|
+
cursor: ${props => (props.disabled ? 'not-allowed' : 'copy')};
|
|
1506
|
+
opacity: ${props => (props.disabled ? 0.6 : 1)};
|
|
1507
|
+
pointer-events: ${props => (props.disabled ? 'none' : 'auto')};
|
|
1508
1508
|
`;
|
|
1509
1509
|
Dropzone.defaultProps = { theme: EditableTheme };
|
|
1510
|
-
const IconWrapper$1 = styled.div `
|
|
1511
|
-
width: 80px;
|
|
1512
|
-
height: 80px;
|
|
1513
|
-
border-radius: 40px;
|
|
1514
|
-
background: ${props => (props.$dragging ? '#ffffff' : '#f5f5f5')};
|
|
1515
|
-
display: flex;
|
|
1516
|
-
align-items: center;
|
|
1517
|
-
justify-content: center;
|
|
1518
|
-
`;
|
|
1519
|
-
const StyledIcon$3 = styled(Icon) `
|
|
1520
|
-
width: 40px !important;
|
|
1521
|
-
height: 40px !important;
|
|
1522
|
-
|
|
1523
|
-
> path {
|
|
1524
|
-
fill: ${Colors.GRAY.Hex} !important;
|
|
1525
|
-
}
|
|
1526
|
-
`;
|
|
1527
|
-
const ClickZone = styled.div `
|
|
1528
|
-
margin: 40px 20px;
|
|
1529
|
-
display: flex;
|
|
1530
|
-
flex-direction: column;
|
|
1531
|
-
align-items: center;
|
|
1532
|
-
gap: 16px;
|
|
1533
|
-
`;
|
|
1534
|
-
const Content = styled.div `
|
|
1535
|
-
display: flex;
|
|
1536
|
-
flex-direction: column;
|
|
1537
|
-
align-items: center;
|
|
1538
|
-
z-index: 99999;
|
|
1539
|
-
gap: 2px;
|
|
1540
|
-
`;
|
|
1541
|
-
const Files = styled.div `
|
|
1542
|
-
display: flex;
|
|
1543
|
-
flex-direction: column;
|
|
1544
|
-
align-self: stretch;
|
|
1545
|
-
gap: 10px;
|
|
1546
|
-
margin: 20px;
|
|
1547
|
-
`;
|
|
1548
|
-
const MessageDiv = styled.div `
|
|
1549
|
-
display: flex;
|
|
1550
|
-
align-items: center;
|
|
1551
|
-
justify-content: center;
|
|
1552
|
-
`;
|
|
1553
|
-
const File = styled.div `
|
|
1554
|
-
display: flex;
|
|
1555
|
-
padding: 10px;
|
|
1556
|
-
align-items: center;
|
|
1557
|
-
justify-content: space-between;
|
|
1558
|
-
gap: 10px;
|
|
1559
|
-
border-radius: 4px;
|
|
1560
|
-
border: 1px solid #cccccc;
|
|
1561
|
-
background: #ffffff;
|
|
1562
|
-
`;
|
|
1563
|
-
const Remove = styled(Icon) `
|
|
1564
|
-
width: 24px;
|
|
1565
|
-
height: 24px;
|
|
1566
|
-
cursor: pointer;
|
|
1567
|
-
|
|
1568
|
-
> path {
|
|
1569
|
-
fill: ${Colors.RED.Hex} !important;
|
|
1570
|
-
}
|
|
1510
|
+
const IconWrapper$1 = styled.div `
|
|
1511
|
+
width: 80px;
|
|
1512
|
+
height: 80px;
|
|
1513
|
+
border-radius: 40px;
|
|
1514
|
+
background: ${props => (props.$dragging ? '#ffffff' : '#f5f5f5')};
|
|
1515
|
+
display: flex;
|
|
1516
|
+
align-items: center;
|
|
1517
|
+
justify-content: center;
|
|
1518
|
+
`;
|
|
1519
|
+
const StyledIcon$3 = styled(Icon) `
|
|
1520
|
+
width: 40px !important;
|
|
1521
|
+
height: 40px !important;
|
|
1522
|
+
|
|
1523
|
+
> path {
|
|
1524
|
+
fill: ${Colors.GRAY.Hex} !important;
|
|
1525
|
+
}
|
|
1526
|
+
`;
|
|
1527
|
+
const ClickZone = styled.div `
|
|
1528
|
+
margin: 40px 20px;
|
|
1529
|
+
display: flex;
|
|
1530
|
+
flex-direction: column;
|
|
1531
|
+
align-items: center;
|
|
1532
|
+
gap: 16px;
|
|
1533
|
+
`;
|
|
1534
|
+
const Content = styled.div `
|
|
1535
|
+
display: flex;
|
|
1536
|
+
flex-direction: column;
|
|
1537
|
+
align-items: center;
|
|
1538
|
+
z-index: 99999;
|
|
1539
|
+
gap: 2px;
|
|
1540
|
+
`;
|
|
1541
|
+
const Files = styled.div `
|
|
1542
|
+
display: flex;
|
|
1543
|
+
flex-direction: column;
|
|
1544
|
+
align-self: stretch;
|
|
1545
|
+
gap: 10px;
|
|
1546
|
+
margin: 20px;
|
|
1547
|
+
`;
|
|
1548
|
+
const MessageDiv = styled.div `
|
|
1549
|
+
display: flex;
|
|
1550
|
+
align-items: center;
|
|
1551
|
+
justify-content: center;
|
|
1552
|
+
`;
|
|
1553
|
+
const File = styled.div `
|
|
1554
|
+
display: flex;
|
|
1555
|
+
padding: 10px;
|
|
1556
|
+
align-items: center;
|
|
1557
|
+
justify-content: space-between;
|
|
1558
|
+
gap: 10px;
|
|
1559
|
+
border-radius: 4px;
|
|
1560
|
+
border: 1px solid #cccccc;
|
|
1561
|
+
background: #ffffff;
|
|
1562
|
+
`;
|
|
1563
|
+
const Remove = styled(Icon) `
|
|
1564
|
+
width: 24px;
|
|
1565
|
+
height: 24px;
|
|
1566
|
+
cursor: pointer;
|
|
1567
|
+
|
|
1568
|
+
> path {
|
|
1569
|
+
fill: ${Colors.RED.Hex} !important;
|
|
1570
|
+
}
|
|
1571
1571
|
`;
|
|
1572
1572
|
const FileUpload = ({ accept, onChange, disabled = false, onError, maxFiles = 10, maxSize = 2, value = [], message, tooltipInfo = '', validateFile, dataItemid, }) => {
|
|
1573
1573
|
const inputRef = React.useRef(null);
|
|
@@ -1687,8 +1687,8 @@ const FileUpload = ({ accept, onChange, disabled = false, onError, maxFiles = 10
|
|
|
1687
1687
|
React.createElement(Copy, { align: 'center', color: 'GRAY', "data-itemid": `${baseId}-message` }, message),
|
|
1688
1688
|
tooltipInfo && (React.createElement("span", { "data-itemid": `${baseId}-tooltip` },
|
|
1689
1689
|
React.createElement(Tooltip, { children: tooltipInfo, position: 'left-center' }))))) : null))) : null)));
|
|
1690
|
-
};
|
|
1691
|
-
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
1692
|
const getAgesFromDob = (dob) => {
|
|
1693
1693
|
let calculated_current_age = null;
|
|
1694
1694
|
let calculated_nearest_age = null;
|
|
@@ -1788,79 +1788,769 @@ const formatAsMask = (number, mask) => {
|
|
|
1788
1788
|
result = formatted_value;
|
|
1789
1789
|
}
|
|
1790
1790
|
return result;
|
|
1791
|
-
};
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1794
|
+
|
|
1795
|
+
var textMaskAddons = {exports: {}};
|
|
1796
|
+
|
|
1797
|
+
(function (module, exports) {
|
|
1798
|
+
!function (e, t) {
|
|
1799
|
+
module.exports = t() ;
|
|
1800
|
+
}(commonjsGlobal, function () {
|
|
1801
|
+
return function (e) {
|
|
1802
|
+
function t(r) {
|
|
1803
|
+
if (n[r]) return n[r].exports;
|
|
1804
|
+
var i = n[r] = {
|
|
1805
|
+
exports: {},
|
|
1806
|
+
id: r,
|
|
1807
|
+
loaded: !1
|
|
1808
|
+
};
|
|
1809
|
+
return e[r].call(i.exports, i, i.exports, t), i.loaded = !0, i.exports;
|
|
1810
|
+
}
|
|
1811
|
+
var n = {};
|
|
1812
|
+
return t.m = e, t.c = n, t.p = "", t(0);
|
|
1813
|
+
}([function (e, t, n) {
|
|
1814
|
+
|
|
1815
|
+
function r(e) {
|
|
1816
|
+
return e && e.__esModule ? e : {
|
|
1817
|
+
default: e
|
|
1818
|
+
};
|
|
1819
|
+
}
|
|
1820
|
+
Object.defineProperty(t, "__esModule", {
|
|
1821
|
+
value: !0
|
|
1822
|
+
});
|
|
1823
|
+
var i = n(1);
|
|
1824
|
+
Object.defineProperty(t, "createAutoCorrectedDatePipe", {
|
|
1825
|
+
enumerable: !0,
|
|
1826
|
+
get: function () {
|
|
1827
|
+
return r(i).default;
|
|
1828
|
+
}
|
|
1829
|
+
});
|
|
1830
|
+
var o = n(2);
|
|
1831
|
+
Object.defineProperty(t, "createNumberMask", {
|
|
1832
|
+
enumerable: !0,
|
|
1833
|
+
get: function () {
|
|
1834
|
+
return r(o).default;
|
|
1835
|
+
}
|
|
1836
|
+
});
|
|
1837
|
+
var u = n(3);
|
|
1838
|
+
Object.defineProperty(t, "emailMask", {
|
|
1839
|
+
enumerable: !0,
|
|
1840
|
+
get: function () {
|
|
1841
|
+
return r(u).default;
|
|
1842
|
+
}
|
|
1843
|
+
});
|
|
1844
|
+
}, function (e, t) {
|
|
1845
|
+
|
|
1846
|
+
function n() {
|
|
1847
|
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "mm dd yyyy",
|
|
1848
|
+
t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
|
|
1849
|
+
n = t.minYear,
|
|
1850
|
+
o = void 0 === n ? 1 : n,
|
|
1851
|
+
u = t.maxYear,
|
|
1852
|
+
a = void 0 === u ? 9999 : u,
|
|
1853
|
+
c = e.split(/[^dmyHMS]+/).sort(function (e, t) {
|
|
1854
|
+
return i.indexOf(e) - i.indexOf(t);
|
|
1855
|
+
});
|
|
1856
|
+
return function (t) {
|
|
1857
|
+
var n = [],
|
|
1858
|
+
i = {
|
|
1859
|
+
dd: 31,
|
|
1860
|
+
mm: 12,
|
|
1861
|
+
yy: 99,
|
|
1862
|
+
yyyy: a,
|
|
1863
|
+
HH: 23,
|
|
1864
|
+
MM: 59,
|
|
1865
|
+
SS: 59
|
|
1866
|
+
},
|
|
1867
|
+
u = {
|
|
1868
|
+
dd: 1,
|
|
1869
|
+
mm: 1,
|
|
1870
|
+
yy: 0,
|
|
1871
|
+
yyyy: o,
|
|
1872
|
+
HH: 0,
|
|
1873
|
+
MM: 0,
|
|
1874
|
+
SS: 0
|
|
1875
|
+
},
|
|
1876
|
+
l = t.split("");
|
|
1877
|
+
c.forEach(function (t) {
|
|
1878
|
+
var r = e.indexOf(t),
|
|
1879
|
+
o = parseInt(i[t].toString().substr(0, 1), 10);
|
|
1880
|
+
parseInt(l[r], 10) > o && (l[r + 1] = l[r], l[r] = 0, n.push(r));
|
|
1881
|
+
});
|
|
1882
|
+
var s = 0,
|
|
1883
|
+
d = c.some(function (n) {
|
|
1884
|
+
var c = e.indexOf(n),
|
|
1885
|
+
l = n.length,
|
|
1886
|
+
d = t.substr(c, l).replace(/\D/g, ""),
|
|
1887
|
+
f = parseInt(d, 10);
|
|
1888
|
+
"mm" === n && (s = f || 0);
|
|
1889
|
+
var p = "dd" === n ? r[s] : i[n];
|
|
1890
|
+
if ("yyyy" === n && (1 !== o || 9999 !== a)) {
|
|
1891
|
+
var v = parseInt(i[n].toString().substring(0, d.length), 10),
|
|
1892
|
+
y = parseInt(u[n].toString().substring(0, d.length), 10);
|
|
1893
|
+
return f < y || f > v;
|
|
1894
|
+
}
|
|
1895
|
+
return f > p || d.length === l && f < u[n];
|
|
1896
|
+
});
|
|
1897
|
+
return !d && {
|
|
1898
|
+
value: l.join(""),
|
|
1899
|
+
indexesOfPipedChars: n
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
Object.defineProperty(t, "__esModule", {
|
|
1904
|
+
value: !0
|
|
1905
|
+
}), t.default = n;
|
|
1906
|
+
var r = [31, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
1907
|
+
i = ["yyyy", "yy", "mm", "dd", "HH", "MM", "SS"];
|
|
1908
|
+
}, function (e, t) {
|
|
1909
|
+
|
|
1910
|
+
function n() {
|
|
1911
|
+
function e() {
|
|
1912
|
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a,
|
|
1913
|
+
t = e.length;
|
|
1914
|
+
if (e === a || e[0] === g[0] && 1 === t) return g.split(a).concat([v]).concat(h.split(a));
|
|
1915
|
+
if (e === P && _) return g.split(a).concat(["0", P, v]).concat(h.split(a));
|
|
1916
|
+
var n = e[0] === s && D;
|
|
1917
|
+
n && (e = e.toString().substr(1));
|
|
1918
|
+
var u = e.lastIndexOf(P),
|
|
1919
|
+
c = u !== -1,
|
|
1920
|
+
l = void 0,
|
|
1921
|
+
m = void 0,
|
|
1922
|
+
b = void 0;
|
|
1923
|
+
if (e.slice($ * -1) === h && (e = e.slice(0, $ * -1)), c && (_ || I) ? (l = e.slice(e.slice(0, N) === g ? N : 0, u), m = e.slice(u + 1, t), m = r(m.replace(f, a))) : l = e.slice(0, N) === g ? e.slice(N) : e, L && ("undefined" == typeof L ? "undefined" : o(L)) === p) {
|
|
1924
|
+
var O = "." === S ? "[.]" : "" + S,
|
|
1925
|
+
M = (l.match(new RegExp(O, "g")) || []).length;
|
|
1926
|
+
l = l.slice(0, L + M * V);
|
|
1927
|
+
}
|
|
1928
|
+
return l = l.replace(f, a), R || (l = l.replace(/^0+(0$|[^0])/, "$1")), l = x ? i(l, S) : l, b = r(l), (c && _ || I === !0) && (e[u - 1] !== P && b.push(y), b.push(P, y), m && (("undefined" == typeof C ? "undefined" : o(C)) === p && (m = m.slice(0, C)), b = b.concat(m)), I === !0 && e[u - 1] === P && b.push(v)), N > 0 && (b = g.split(a).concat(b)), n && (b.length === N && b.push(v), b = [d].concat(b)), h.length > 0 && (b = b.concat(h.split(a))), b;
|
|
1929
|
+
}
|
|
1930
|
+
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
1931
|
+
n = t.prefix,
|
|
1932
|
+
g = void 0 === n ? u : n,
|
|
1933
|
+
m = t.suffix,
|
|
1934
|
+
h = void 0 === m ? a : m,
|
|
1935
|
+
b = t.includeThousandsSeparator,
|
|
1936
|
+
x = void 0 === b || b,
|
|
1937
|
+
O = t.thousandsSeparatorSymbol,
|
|
1938
|
+
S = void 0 === O ? c : O,
|
|
1939
|
+
M = t.allowDecimal,
|
|
1940
|
+
_ = void 0 !== M && M,
|
|
1941
|
+
j = t.decimalSymbol,
|
|
1942
|
+
P = void 0 === j ? l : j,
|
|
1943
|
+
w = t.decimalLimit,
|
|
1944
|
+
C = void 0 === w ? 2 : w,
|
|
1945
|
+
H = t.requireDecimal,
|
|
1946
|
+
I = void 0 !== H && H,
|
|
1947
|
+
k = t.allowNegative,
|
|
1948
|
+
D = void 0 !== k && k,
|
|
1949
|
+
E = t.allowLeadingZeroes,
|
|
1950
|
+
R = void 0 !== E && E,
|
|
1951
|
+
A = t.integerLimit,
|
|
1952
|
+
L = void 0 === A ? null : A,
|
|
1953
|
+
N = g && g.length || 0,
|
|
1954
|
+
$ = h && h.length || 0,
|
|
1955
|
+
V = S && S.length || 0;
|
|
1956
|
+
return e.instanceOf = "createNumberMask", e;
|
|
1957
|
+
}
|
|
1958
|
+
function r(e) {
|
|
1959
|
+
return e.split(a).map(function (e) {
|
|
1960
|
+
return v.test(e) ? v : e;
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
function i(e, t) {
|
|
1964
|
+
return e.replace(/\B(?=(\d{3})+(?!\d))/g, t);
|
|
1965
|
+
}
|
|
1966
|
+
Object.defineProperty(t, "__esModule", {
|
|
1967
|
+
value: !0
|
|
1968
|
+
});
|
|
1969
|
+
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1970
|
+
return typeof e;
|
|
1971
|
+
} : function (e) {
|
|
1972
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1973
|
+
};
|
|
1974
|
+
t.default = n;
|
|
1975
|
+
var u = "$",
|
|
1976
|
+
a = "",
|
|
1977
|
+
c = ",",
|
|
1978
|
+
l = ".",
|
|
1979
|
+
s = "-",
|
|
1980
|
+
d = /-/,
|
|
1981
|
+
f = /\D+/g,
|
|
1982
|
+
p = "number",
|
|
1983
|
+
v = /\d/,
|
|
1984
|
+
y = "[]";
|
|
1985
|
+
}, function (e, t, n) {
|
|
1986
|
+
|
|
1987
|
+
function r(e) {
|
|
1988
|
+
return e && e.__esModule ? e : {
|
|
1989
|
+
default: e
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
function i(e, t) {
|
|
1993
|
+
e = e.replace(O, v);
|
|
1994
|
+
var n = t.placeholderChar,
|
|
1995
|
+
r = t.currentCaretPosition,
|
|
1996
|
+
i = e.indexOf(y),
|
|
1997
|
+
s = e.lastIndexOf(p),
|
|
1998
|
+
d = s < i ? -1 : s,
|
|
1999
|
+
f = o(e, i + 1, y),
|
|
2000
|
+
g = o(e, d - 1, p),
|
|
2001
|
+
m = u(e, i),
|
|
2002
|
+
h = a(e, i, d, n),
|
|
2003
|
+
b = c(e, d, n, r);
|
|
2004
|
+
m = l(m), h = l(h), b = l(b, !0);
|
|
2005
|
+
var x = m.concat(f).concat(h).concat(g).concat(b);
|
|
2006
|
+
return x;
|
|
2007
|
+
}
|
|
2008
|
+
function o(e, t, n) {
|
|
2009
|
+
var r = [];
|
|
2010
|
+
return e[t] === n ? r.push(n) : r.push(g, n), r.push(g), r;
|
|
2011
|
+
}
|
|
2012
|
+
function u(e, t) {
|
|
2013
|
+
return t === -1 ? e : e.slice(0, t);
|
|
2014
|
+
}
|
|
2015
|
+
function a(e, t, n, r) {
|
|
2016
|
+
var i = v;
|
|
2017
|
+
return t !== -1 && (i = n === -1 ? e.slice(t + 1, e.length) : e.slice(t + 1, n)), i = i.replace(new RegExp("[\\s" + r + "]", h), v), i === y ? f : i.length < 1 ? m : i[i.length - 1] === p ? i.slice(0, i.length - 1) : i;
|
|
2018
|
+
}
|
|
2019
|
+
function c(e, t, n, r) {
|
|
2020
|
+
var i = v;
|
|
2021
|
+
return t !== -1 && (i = e.slice(t + 1, e.length)), i = i.replace(new RegExp("[\\s" + n + ".]", h), v), 0 === i.length ? e[t - 1] === p && r !== e.length ? f : v : i;
|
|
2022
|
+
}
|
|
2023
|
+
function l(e, t) {
|
|
2024
|
+
return e.split(v).map(function (e) {
|
|
2025
|
+
return e === m ? e : t ? x : b;
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
Object.defineProperty(t, "__esModule", {
|
|
2029
|
+
value: !0
|
|
2030
|
+
});
|
|
2031
|
+
var s = n(4),
|
|
2032
|
+
d = r(s),
|
|
2033
|
+
f = "*",
|
|
2034
|
+
p = ".",
|
|
2035
|
+
v = "",
|
|
2036
|
+
y = "@",
|
|
2037
|
+
g = "[]",
|
|
2038
|
+
m = " ",
|
|
2039
|
+
h = "g",
|
|
2040
|
+
b = /[^\s]/,
|
|
2041
|
+
x = /[^.\s]/,
|
|
2042
|
+
O = /\s/g;
|
|
2043
|
+
t.default = {
|
|
2044
|
+
mask: i,
|
|
2045
|
+
pipe: d.default
|
|
2046
|
+
};
|
|
2047
|
+
}, function (e, t) {
|
|
2048
|
+
|
|
2049
|
+
function n(e, t) {
|
|
2050
|
+
var n = t.currentCaretPosition,
|
|
2051
|
+
o = t.rawValue,
|
|
2052
|
+
f = t.previousConformedValue,
|
|
2053
|
+
p = t.placeholderChar,
|
|
2054
|
+
v = e;
|
|
2055
|
+
v = r(v);
|
|
2056
|
+
var y = v.indexOf(a),
|
|
2057
|
+
g = null === o.match(new RegExp("[^@\\s." + p + "]"));
|
|
2058
|
+
if (g) return u;
|
|
2059
|
+
if (v.indexOf(l) !== -1 || y !== -1 && n !== y + 1 || o.indexOf(i) === -1 && f !== u && o.indexOf(c) !== -1) return !1;
|
|
2060
|
+
var m = v.indexOf(i),
|
|
2061
|
+
h = v.slice(m + 1, v.length);
|
|
2062
|
+
return (h.match(d) || s).length > 1 && v.substr(-1) === c && n !== o.length && (v = v.slice(0, v.length - 1)), v;
|
|
2063
|
+
}
|
|
2064
|
+
function r(e) {
|
|
2065
|
+
var t = 0;
|
|
2066
|
+
return e.replace(o, function () {
|
|
2067
|
+
return t++, 1 === t ? i : u;
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
Object.defineProperty(t, "__esModule", {
|
|
2071
|
+
value: !0
|
|
2072
|
+
}), t.default = n;
|
|
2073
|
+
var i = "@",
|
|
2074
|
+
o = /@/g,
|
|
2075
|
+
u = "",
|
|
2076
|
+
a = "@.",
|
|
2077
|
+
c = ".",
|
|
2078
|
+
l = "..",
|
|
2079
|
+
s = [],
|
|
2080
|
+
d = /\./g;
|
|
2081
|
+
}]);
|
|
2082
|
+
});
|
|
2083
|
+
})(textMaskAddons);
|
|
2084
|
+
var textMaskAddonsExports = textMaskAddons.exports;
|
|
2085
|
+
|
|
2086
|
+
var textMaskCore = {exports: {}};
|
|
2087
|
+
|
|
2088
|
+
(function (module, exports) {
|
|
2089
|
+
!function (e, r) {
|
|
2090
|
+
module.exports = r() ;
|
|
2091
|
+
}(commonjsGlobal, function () {
|
|
2092
|
+
return function (e) {
|
|
2093
|
+
function r(n) {
|
|
2094
|
+
if (t[n]) return t[n].exports;
|
|
2095
|
+
var o = t[n] = {
|
|
2096
|
+
exports: {},
|
|
2097
|
+
id: n,
|
|
2098
|
+
loaded: !1
|
|
2099
|
+
};
|
|
2100
|
+
return e[n].call(o.exports, o, o.exports, r), o.loaded = !0, o.exports;
|
|
2101
|
+
}
|
|
2102
|
+
var t = {};
|
|
2103
|
+
return r.m = e, r.c = t, r.p = "", r(0);
|
|
2104
|
+
}([function (e, r, t) {
|
|
2105
|
+
|
|
2106
|
+
function n(e) {
|
|
2107
|
+
return e && e.__esModule ? e : {
|
|
2108
|
+
default: e
|
|
2109
|
+
};
|
|
2110
|
+
}
|
|
2111
|
+
Object.defineProperty(r, "__esModule", {
|
|
2112
|
+
value: !0
|
|
2113
|
+
});
|
|
2114
|
+
var o = t(3);
|
|
2115
|
+
Object.defineProperty(r, "conformToMask", {
|
|
2116
|
+
enumerable: !0,
|
|
2117
|
+
get: function () {
|
|
2118
|
+
return n(o).default;
|
|
2119
|
+
}
|
|
2120
|
+
});
|
|
2121
|
+
var i = t(2);
|
|
2122
|
+
Object.defineProperty(r, "adjustCaretPosition", {
|
|
2123
|
+
enumerable: !0,
|
|
2124
|
+
get: function () {
|
|
2125
|
+
return n(i).default;
|
|
2126
|
+
}
|
|
2127
|
+
});
|
|
2128
|
+
var a = t(5);
|
|
2129
|
+
Object.defineProperty(r, "createTextMaskInputElement", {
|
|
2130
|
+
enumerable: !0,
|
|
2131
|
+
get: function () {
|
|
2132
|
+
return n(a).default;
|
|
2133
|
+
}
|
|
2134
|
+
});
|
|
2135
|
+
}, function (e, r) {
|
|
2136
|
+
|
|
2137
|
+
Object.defineProperty(r, "__esModule", {
|
|
2138
|
+
value: !0
|
|
2139
|
+
}), r.placeholderChar = "_", r.strFunction = "function";
|
|
2140
|
+
}, function (e, r) {
|
|
2141
|
+
|
|
2142
|
+
function t(e) {
|
|
2143
|
+
var r = e.previousConformedValue,
|
|
2144
|
+
t = void 0 === r ? o : r,
|
|
2145
|
+
i = e.previousPlaceholder,
|
|
2146
|
+
a = void 0 === i ? o : i,
|
|
2147
|
+
u = e.currentCaretPosition,
|
|
2148
|
+
l = void 0 === u ? 0 : u,
|
|
2149
|
+
s = e.conformedValue,
|
|
2150
|
+
f = e.rawValue,
|
|
2151
|
+
d = e.placeholderChar,
|
|
2152
|
+
c = e.placeholder,
|
|
2153
|
+
p = e.indexesOfPipedChars,
|
|
2154
|
+
v = void 0 === p ? n : p,
|
|
2155
|
+
h = e.caretTrapIndexes,
|
|
2156
|
+
m = void 0 === h ? n : h;
|
|
2157
|
+
if (0 === l || !f.length) return 0;
|
|
2158
|
+
var y = f.length,
|
|
2159
|
+
g = t.length,
|
|
2160
|
+
b = c.length,
|
|
2161
|
+
C = s.length,
|
|
2162
|
+
P = y - g,
|
|
2163
|
+
k = P > 0,
|
|
2164
|
+
x = 0 === g,
|
|
2165
|
+
O = P > 1 && !k && !x;
|
|
2166
|
+
if (O) return l;
|
|
2167
|
+
var T = k && (t === s || s === c),
|
|
2168
|
+
w = 0,
|
|
2169
|
+
M = void 0,
|
|
2170
|
+
S = void 0;
|
|
2171
|
+
if (T) w = l - P;else {
|
|
2172
|
+
var j = s.toLowerCase(),
|
|
2173
|
+
_ = f.toLowerCase(),
|
|
2174
|
+
V = _.substr(0, l).split(o),
|
|
2175
|
+
A = V.filter(function (e) {
|
|
2176
|
+
return j.indexOf(e) !== -1;
|
|
2177
|
+
});
|
|
2178
|
+
S = A[A.length - 1];
|
|
2179
|
+
var N = a.substr(0, A.length).split(o).filter(function (e) {
|
|
2180
|
+
return e !== d;
|
|
2181
|
+
}).length,
|
|
2182
|
+
E = c.substr(0, A.length).split(o).filter(function (e) {
|
|
2183
|
+
return e !== d;
|
|
2184
|
+
}).length,
|
|
2185
|
+
F = E !== N,
|
|
2186
|
+
R = void 0 !== a[A.length - 1] && void 0 !== c[A.length - 2] && a[A.length - 1] !== d && a[A.length - 1] !== c[A.length - 1] && a[A.length - 1] === c[A.length - 2];
|
|
2187
|
+
!k && (F || R) && N > 0 && c.indexOf(S) > -1 && void 0 !== f[l] && (M = !0, S = f[l]);
|
|
2188
|
+
for (var I = v.map(function (e) {
|
|
2189
|
+
return j[e];
|
|
2190
|
+
}), J = I.filter(function (e) {
|
|
2191
|
+
return e === S;
|
|
2192
|
+
}).length, W = A.filter(function (e) {
|
|
2193
|
+
return e === S;
|
|
2194
|
+
}).length, q = c.substr(0, c.indexOf(d)).split(o).filter(function (e, r) {
|
|
2195
|
+
return e === S && f[r] !== e;
|
|
2196
|
+
}).length, L = q + W + J + (M ? 1 : 0), z = 0, B = 0; B < C; B++) {
|
|
2197
|
+
var D = j[B];
|
|
2198
|
+
if (w = B + 1, D === S && z++, z >= L) break;
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
if (k) {
|
|
2202
|
+
for (var G = w, H = w; H <= b; H++) if (c[H] === d && (G = H), c[H] === d || m.indexOf(H) !== -1 || H === b) return G;
|
|
2203
|
+
} else if (M) {
|
|
2204
|
+
for (var K = w - 1; K >= 0; K--) if (s[K] === S || m.indexOf(K) !== -1 || 0 === K) return K;
|
|
2205
|
+
} else for (var Q = w; Q >= 0; Q--) if (c[Q - 1] === d || m.indexOf(Q) !== -1 || 0 === Q) return Q;
|
|
2206
|
+
}
|
|
2207
|
+
Object.defineProperty(r, "__esModule", {
|
|
2208
|
+
value: !0
|
|
2209
|
+
}), r.default = t;
|
|
2210
|
+
var n = [],
|
|
2211
|
+
o = "";
|
|
2212
|
+
}, function (e, r, t) {
|
|
2213
|
+
|
|
2214
|
+
function n() {
|
|
2215
|
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : l,
|
|
2216
|
+
r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : u,
|
|
2217
|
+
t = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
2218
|
+
if (!(0, i.isArray)(r)) {
|
|
2219
|
+
if (("undefined" == typeof r ? "undefined" : o(r)) !== a.strFunction) throw new Error("Text-mask:conformToMask; The mask property must be an array.");
|
|
2220
|
+
r = r(e, t), r = (0, i.processCaretTraps)(r).maskWithoutCaretTraps;
|
|
2221
|
+
}
|
|
2222
|
+
var n = t.guide,
|
|
2223
|
+
s = void 0 === n || n,
|
|
2224
|
+
f = t.previousConformedValue,
|
|
2225
|
+
d = void 0 === f ? l : f,
|
|
2226
|
+
c = t.placeholderChar,
|
|
2227
|
+
p = void 0 === c ? a.placeholderChar : c,
|
|
2228
|
+
v = t.placeholder,
|
|
2229
|
+
h = void 0 === v ? (0, i.convertMaskToPlaceholder)(r, p) : v,
|
|
2230
|
+
m = t.currentCaretPosition,
|
|
2231
|
+
y = t.keepCharPositions,
|
|
2232
|
+
g = s === !1 && void 0 !== d,
|
|
2233
|
+
b = e.length,
|
|
2234
|
+
C = d.length,
|
|
2235
|
+
P = h.length,
|
|
2236
|
+
k = r.length,
|
|
2237
|
+
x = b - C,
|
|
2238
|
+
O = x > 0,
|
|
2239
|
+
T = m + (O ? -x : 0),
|
|
2240
|
+
w = T + Math.abs(x);
|
|
2241
|
+
if (y === !0 && !O) {
|
|
2242
|
+
for (var M = l, S = T; S < w; S++) h[S] === p && (M += p);
|
|
2243
|
+
e = e.slice(0, T) + M + e.slice(T, b);
|
|
2244
|
+
}
|
|
2245
|
+
for (var j = e.split(l).map(function (e, r) {
|
|
2246
|
+
return {
|
|
2247
|
+
char: e,
|
|
2248
|
+
isNew: r >= T && r < w
|
|
2249
|
+
};
|
|
2250
|
+
}), _ = b - 1; _ >= 0; _--) {
|
|
2251
|
+
var V = j[_].char;
|
|
2252
|
+
if (V !== p) {
|
|
2253
|
+
var A = _ >= T && C === k;
|
|
2254
|
+
V === h[A ? _ - x : _] && j.splice(_, 1);
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
var N = l,
|
|
2258
|
+
E = !1;
|
|
2259
|
+
e: for (var F = 0; F < P; F++) {
|
|
2260
|
+
var R = h[F];
|
|
2261
|
+
if (R === p) {
|
|
2262
|
+
if (j.length > 0) for (; j.length > 0;) {
|
|
2263
|
+
var I = j.shift(),
|
|
2264
|
+
J = I.char,
|
|
2265
|
+
W = I.isNew;
|
|
2266
|
+
if (J === p && g !== !0) {
|
|
2267
|
+
N += p;
|
|
2268
|
+
continue e;
|
|
2269
|
+
}
|
|
2270
|
+
if (r[F].test(J)) {
|
|
2271
|
+
if (y === !0 && W !== !1 && d !== l && s !== !1 && O) {
|
|
2272
|
+
for (var q = j.length, L = null, z = 0; z < q; z++) {
|
|
2273
|
+
var B = j[z];
|
|
2274
|
+
if (B.char !== p && B.isNew === !1) break;
|
|
2275
|
+
if (B.char === p) {
|
|
2276
|
+
L = z;
|
|
2277
|
+
break;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
null !== L ? (N += J, j.splice(L, 1)) : F--;
|
|
2281
|
+
} else N += J;
|
|
2282
|
+
continue e;
|
|
2283
|
+
}
|
|
2284
|
+
E = !0;
|
|
2285
|
+
}
|
|
2286
|
+
g === !1 && (N += h.substr(F, P));
|
|
2287
|
+
break;
|
|
2288
|
+
}
|
|
2289
|
+
N += R;
|
|
2290
|
+
}
|
|
2291
|
+
if (g && O === !1) {
|
|
2292
|
+
for (var D = null, G = 0; G < N.length; G++) h[G] === p && (D = G);
|
|
2293
|
+
N = null !== D ? N.substr(0, D + 1) : l;
|
|
2294
|
+
}
|
|
2295
|
+
return {
|
|
2296
|
+
conformedValue: N,
|
|
2297
|
+
meta: {
|
|
2298
|
+
someCharsRejected: E
|
|
2299
|
+
}
|
|
2300
|
+
};
|
|
2301
|
+
}
|
|
2302
|
+
Object.defineProperty(r, "__esModule", {
|
|
2303
|
+
value: !0
|
|
2304
|
+
});
|
|
2305
|
+
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
2306
|
+
return typeof e;
|
|
2307
|
+
} : function (e) {
|
|
2308
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2309
|
+
};
|
|
2310
|
+
r.default = n;
|
|
2311
|
+
var i = t(4),
|
|
2312
|
+
a = t(1),
|
|
2313
|
+
u = [],
|
|
2314
|
+
l = "";
|
|
2315
|
+
}, function (e, r, t) {
|
|
2316
|
+
|
|
2317
|
+
function n() {
|
|
2318
|
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : f,
|
|
2319
|
+
r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : s.placeholderChar;
|
|
2320
|
+
if (!o(e)) throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");
|
|
2321
|
+
if (e.indexOf(r) !== -1) throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\n" + ("The placeholder character that was received is: " + JSON.stringify(r) + "\n\n") + ("The mask that was received is: " + JSON.stringify(e)));
|
|
2322
|
+
return e.map(function (e) {
|
|
2323
|
+
return e instanceof RegExp ? r : e;
|
|
2324
|
+
}).join("");
|
|
2325
|
+
}
|
|
2326
|
+
function o(e) {
|
|
2327
|
+
return Array.isArray && Array.isArray(e) || e instanceof Array;
|
|
2328
|
+
}
|
|
2329
|
+
function i(e) {
|
|
2330
|
+
return "string" == typeof e || e instanceof String;
|
|
2331
|
+
}
|
|
2332
|
+
function a(e) {
|
|
2333
|
+
return "number" == typeof e && void 0 === e.length && !isNaN(e);
|
|
2334
|
+
}
|
|
2335
|
+
function u(e) {
|
|
2336
|
+
return "undefined" == typeof e || null === e;
|
|
2337
|
+
}
|
|
2338
|
+
function l(e) {
|
|
2339
|
+
for (var r = [], t = void 0; t = e.indexOf(d), t !== -1;) r.push(t), e.splice(t, 1);
|
|
2340
|
+
return {
|
|
2341
|
+
maskWithoutCaretTraps: e,
|
|
2342
|
+
indexes: r
|
|
2343
|
+
};
|
|
2344
|
+
}
|
|
2345
|
+
Object.defineProperty(r, "__esModule", {
|
|
2346
|
+
value: !0
|
|
2347
|
+
}), r.convertMaskToPlaceholder = n, r.isArray = o, r.isString = i, r.isNumber = a, r.isNil = u, r.processCaretTraps = l;
|
|
2348
|
+
var s = t(1),
|
|
2349
|
+
f = [],
|
|
2350
|
+
d = "[]";
|
|
2351
|
+
}, function (e, r, t) {
|
|
2352
|
+
|
|
2353
|
+
function n(e) {
|
|
2354
|
+
return e && e.__esModule ? e : {
|
|
2355
|
+
default: e
|
|
2356
|
+
};
|
|
2357
|
+
}
|
|
2358
|
+
function o(e) {
|
|
2359
|
+
var r = {
|
|
2360
|
+
previousConformedValue: void 0,
|
|
2361
|
+
previousPlaceholder: void 0
|
|
2362
|
+
};
|
|
2363
|
+
return {
|
|
2364
|
+
state: r,
|
|
2365
|
+
update: function (t) {
|
|
2366
|
+
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : e,
|
|
2367
|
+
o = n.inputElement,
|
|
2368
|
+
s = n.mask,
|
|
2369
|
+
d = n.guide,
|
|
2370
|
+
m = n.pipe,
|
|
2371
|
+
g = n.placeholderChar,
|
|
2372
|
+
b = void 0 === g ? v.placeholderChar : g,
|
|
2373
|
+
C = n.keepCharPositions,
|
|
2374
|
+
P = void 0 !== C && C,
|
|
2375
|
+
k = n.showMask,
|
|
2376
|
+
x = void 0 !== k && k;
|
|
2377
|
+
if ("undefined" == typeof t && (t = o.value), t !== r.previousConformedValue) {
|
|
2378
|
+
("undefined" == typeof s ? "undefined" : l(s)) === y && void 0 !== s.pipe && void 0 !== s.mask && (m = s.pipe, s = s.mask);
|
|
2379
|
+
var O = void 0,
|
|
2380
|
+
T = void 0;
|
|
2381
|
+
if (s instanceof Array && (O = (0, p.convertMaskToPlaceholder)(s, b)), s !== !1) {
|
|
2382
|
+
var w = a(t),
|
|
2383
|
+
M = o.selectionEnd,
|
|
2384
|
+
S = r.previousConformedValue,
|
|
2385
|
+
j = r.previousPlaceholder,
|
|
2386
|
+
_ = void 0;
|
|
2387
|
+
if (("undefined" == typeof s ? "undefined" : l(s)) === v.strFunction) {
|
|
2388
|
+
if (T = s(w, {
|
|
2389
|
+
currentCaretPosition: M,
|
|
2390
|
+
previousConformedValue: S,
|
|
2391
|
+
placeholderChar: b
|
|
2392
|
+
}), T === !1) return;
|
|
2393
|
+
var V = (0, p.processCaretTraps)(T),
|
|
2394
|
+
A = V.maskWithoutCaretTraps,
|
|
2395
|
+
N = V.indexes;
|
|
2396
|
+
T = A, _ = N, O = (0, p.convertMaskToPlaceholder)(T, b);
|
|
2397
|
+
} else T = s;
|
|
2398
|
+
var E = {
|
|
2399
|
+
previousConformedValue: S,
|
|
2400
|
+
guide: d,
|
|
2401
|
+
placeholderChar: b,
|
|
2402
|
+
pipe: m,
|
|
2403
|
+
placeholder: O,
|
|
2404
|
+
currentCaretPosition: M,
|
|
2405
|
+
keepCharPositions: P
|
|
2406
|
+
},
|
|
2407
|
+
F = (0, c.default)(w, T, E),
|
|
2408
|
+
R = F.conformedValue,
|
|
2409
|
+
I = ("undefined" == typeof m ? "undefined" : l(m)) === v.strFunction,
|
|
2410
|
+
J = {};
|
|
2411
|
+
I && (J = m(R, u({
|
|
2412
|
+
rawValue: w
|
|
2413
|
+
}, E)), J === !1 ? J = {
|
|
2414
|
+
value: S,
|
|
2415
|
+
rejected: !0
|
|
2416
|
+
} : (0, p.isString)(J) && (J = {
|
|
2417
|
+
value: J
|
|
2418
|
+
}));
|
|
2419
|
+
var W = I ? J.value : R,
|
|
2420
|
+
q = (0, f.default)({
|
|
2421
|
+
previousConformedValue: S,
|
|
2422
|
+
previousPlaceholder: j,
|
|
2423
|
+
conformedValue: W,
|
|
2424
|
+
placeholder: O,
|
|
2425
|
+
rawValue: w,
|
|
2426
|
+
currentCaretPosition: M,
|
|
2427
|
+
placeholderChar: b,
|
|
2428
|
+
indexesOfPipedChars: J.indexesOfPipedChars,
|
|
2429
|
+
caretTrapIndexes: _
|
|
2430
|
+
}),
|
|
2431
|
+
L = W === O && 0 === q,
|
|
2432
|
+
z = x ? O : h,
|
|
2433
|
+
B = L ? z : W;
|
|
2434
|
+
r.previousConformedValue = B, r.previousPlaceholder = O, o.value !== B && (o.value = B, i(o, q));
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
};
|
|
2439
|
+
}
|
|
2440
|
+
function i(e, r) {
|
|
2441
|
+
document.activeElement === e && (g ? b(function () {
|
|
2442
|
+
return e.setSelectionRange(r, r, m);
|
|
2443
|
+
}, 0) : e.setSelectionRange(r, r, m));
|
|
2444
|
+
}
|
|
2445
|
+
function a(e) {
|
|
2446
|
+
if ((0, p.isString)(e)) return e;
|
|
2447
|
+
if ((0, p.isNumber)(e)) return String(e);
|
|
2448
|
+
if (void 0 === e || null === e) return h;
|
|
2449
|
+
throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n " + JSON.stringify(e));
|
|
2450
|
+
}
|
|
2451
|
+
Object.defineProperty(r, "__esModule", {
|
|
2452
|
+
value: !0
|
|
2453
|
+
});
|
|
2454
|
+
var u = Object.assign || function (e) {
|
|
2455
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
2456
|
+
var t = arguments[r];
|
|
2457
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
2458
|
+
}
|
|
2459
|
+
return e;
|
|
2460
|
+
},
|
|
2461
|
+
l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
2462
|
+
return typeof e;
|
|
2463
|
+
} : function (e) {
|
|
2464
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2465
|
+
};
|
|
2466
|
+
r.default = o;
|
|
2467
|
+
var s = t(2),
|
|
2468
|
+
f = n(s),
|
|
2469
|
+
d = t(3),
|
|
2470
|
+
c = n(d),
|
|
2471
|
+
p = t(4),
|
|
2472
|
+
v = t(1),
|
|
2473
|
+
h = "",
|
|
2474
|
+
m = "none",
|
|
2475
|
+
y = "object",
|
|
2476
|
+
g = "undefined" != typeof navigator && /Android/i.test(navigator.userAgent),
|
|
2477
|
+
b = "undefined" != typeof requestAnimationFrame ? requestAnimationFrame : setTimeout;
|
|
2478
|
+
}]);
|
|
2479
|
+
});
|
|
2480
|
+
})(textMaskCore);
|
|
2481
|
+
var textMaskCoreExports = textMaskCore.exports;
|
|
2482
|
+
|
|
2483
|
+
const StyledInput = styled.input `
|
|
2484
|
+
border: none !important;
|
|
2485
|
+
background: none !important;
|
|
2486
|
+
font-size: ${FontSizes.DEFAULT};
|
|
2487
|
+
font-weight: 400;
|
|
2488
|
+
font-family: ${FontStyles.DEFAULT};
|
|
2489
|
+
line-height: 1.28em;
|
|
1800
2490
|
color: ${props => props.$showErrorTextColor && props.$invalid && !props.$readOnly
|
|
1801
2491
|
? Colors.RED.Hex
|
|
1802
|
-
: Colors.BLACK.Hex};
|
|
1803
|
-
position: relative;
|
|
1804
|
-
height: ${props => props.$height || 'auto'};
|
|
1805
|
-
padding: 10px;
|
|
1806
|
-
opacity: ${props => (props.$readOnly ? 0.6 : 1)};
|
|
1807
|
-
box-shadow: none;
|
|
1808
|
-
outline: none;
|
|
1809
|
-
margin: 0px;
|
|
1810
|
-
text-indent: 0px;
|
|
1811
|
-
--webkit-appearance: none;
|
|
1812
|
-
box-sizing: border-box;
|
|
1813
|
-
display: block;
|
|
1814
|
-
width: 100%;
|
|
1815
|
-
`;
|
|
1816
|
-
const StyledTextArea = styled.textarea `
|
|
1817
|
-
border: none !important;
|
|
1818
|
-
background: none !important;
|
|
1819
|
-
overflow-y: scroll !important;
|
|
1820
|
-
font-size: 14px;
|
|
1821
|
-
font-weight: 400;
|
|
1822
|
-
height: ${props => props.$height || 'auto'};
|
|
1823
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
1824
|
-
line-height: 1.28em;
|
|
2492
|
+
: Colors.BLACK.Hex};
|
|
2493
|
+
position: relative;
|
|
2494
|
+
height: ${props => props.$height || 'auto'};
|
|
2495
|
+
padding: 10px;
|
|
2496
|
+
opacity: ${props => (props.$readOnly ? 0.6 : 1)};
|
|
2497
|
+
box-shadow: none;
|
|
2498
|
+
outline: none;
|
|
2499
|
+
margin: 0px;
|
|
2500
|
+
text-indent: 0px;
|
|
2501
|
+
--webkit-appearance: none;
|
|
2502
|
+
box-sizing: border-box;
|
|
2503
|
+
display: block;
|
|
2504
|
+
width: 100%;
|
|
2505
|
+
`;
|
|
2506
|
+
const StyledTextArea = styled.textarea `
|
|
2507
|
+
border: none !important;
|
|
2508
|
+
background: none !important;
|
|
2509
|
+
overflow-y: scroll !important;
|
|
2510
|
+
font-size: 14px;
|
|
2511
|
+
font-weight: 400;
|
|
2512
|
+
height: ${props => props.$height || 'auto'};
|
|
2513
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2514
|
+
line-height: 1.28em;
|
|
1825
2515
|
color: ${props => props.$showErrorTextColor && props.$invalid && !props.$readOnly
|
|
1826
2516
|
? Colors.RED.Hex
|
|
1827
|
-
: Colors.BLACK.Hex};
|
|
1828
|
-
position: relative;
|
|
1829
|
-
padding: 10px;
|
|
1830
|
-
opacity: 1;
|
|
1831
|
-
box-shadow: none;
|
|
1832
|
-
outline: none;
|
|
1833
|
-
margin: 0px;
|
|
1834
|
-
text-indent: 0px;
|
|
1835
|
-
--webkit-appearance: none;
|
|
1836
|
-
overflow-wrap: break-word;
|
|
1837
|
-
box-sizing: border-box;
|
|
1838
|
-
display: block;
|
|
1839
|
-
width: 100%;
|
|
2517
|
+
: Colors.BLACK.Hex};
|
|
2518
|
+
position: relative;
|
|
2519
|
+
padding: 10px;
|
|
2520
|
+
opacity: 1;
|
|
2521
|
+
box-shadow: none;
|
|
2522
|
+
outline: none;
|
|
2523
|
+
margin: 0px;
|
|
2524
|
+
text-indent: 0px;
|
|
2525
|
+
--webkit-appearance: none;
|
|
2526
|
+
overflow-wrap: break-word;
|
|
2527
|
+
box-sizing: border-box;
|
|
2528
|
+
display: block;
|
|
2529
|
+
width: 100%;
|
|
1840
2530
|
${({ $readOnly }) => $readOnly &&
|
|
1841
|
-
`
|
|
1842
|
-
background-color: #f0f0f0;
|
|
1843
|
-
color: #999999;
|
|
1844
|
-
overflow-y: scroll;
|
|
1845
|
-
`}
|
|
1846
|
-
`;
|
|
1847
|
-
const StyledSuffix = styled.div `
|
|
1848
|
-
box-sizing: border-box;
|
|
1849
|
-
border-radius: 0px 4px 4px 0px;
|
|
1850
|
-
display: flex;
|
|
1851
|
-
justify-content: center;
|
|
1852
|
-
align-items: center;
|
|
1853
|
-
padding: 10px;
|
|
1854
|
-
height: auto;
|
|
1855
|
-
background: #f5f5f5;
|
|
1856
|
-
border-width: 0px 0px 0px 1px;
|
|
1857
|
-
border-style: solid;
|
|
1858
|
-
border-color: #cccccc;
|
|
1859
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1860
|
-
font-style: normal;
|
|
1861
|
-
font-weight: 400;
|
|
1862
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1863
|
-
color: ${Colors.BLACK.Hex};
|
|
2531
|
+
`
|
|
2532
|
+
background-color: #f0f0f0;
|
|
2533
|
+
color: #999999;
|
|
2534
|
+
overflow-y: scroll;
|
|
2535
|
+
`}
|
|
2536
|
+
`;
|
|
2537
|
+
const StyledSuffix = styled.div `
|
|
2538
|
+
box-sizing: border-box;
|
|
2539
|
+
border-radius: 0px 4px 4px 0px;
|
|
2540
|
+
display: flex;
|
|
2541
|
+
justify-content: center;
|
|
2542
|
+
align-items: center;
|
|
2543
|
+
padding: 10px;
|
|
2544
|
+
height: auto;
|
|
2545
|
+
background: #f5f5f5;
|
|
2546
|
+
border-width: 0px 0px 0px 1px;
|
|
2547
|
+
border-style: solid;
|
|
2548
|
+
border-color: #cccccc;
|
|
2549
|
+
font-family: ${FontStyles.DEFAULT};
|
|
2550
|
+
font-style: normal;
|
|
2551
|
+
font-weight: 400;
|
|
2552
|
+
font-size: ${FontSizes.DEFAULT};
|
|
2553
|
+
color: ${Colors.BLACK.Hex};
|
|
1864
2554
|
`;
|
|
1865
2555
|
const getBackgroundColor$1 = (props) => {
|
|
1866
2556
|
if (props.$isWarningError) {
|
|
@@ -1884,76 +2574,76 @@ const getBorderColor$1 = (props) => {
|
|
|
1884
2574
|
return '#cccccc';
|
|
1885
2575
|
}
|
|
1886
2576
|
};
|
|
1887
|
-
const StyledWrapper = styled.div `
|
|
1888
|
-
display: flex;
|
|
1889
|
-
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
1890
|
-
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
1891
|
-
position: relative;
|
|
1892
|
-
border-width: 1px;
|
|
1893
|
-
border-style: solid;
|
|
1894
|
-
border-color: ${props => getBorderColor$1(props)};
|
|
1895
|
-
background-color: ${props => getBackgroundColor$1(props)};
|
|
1896
|
-
border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
|
|
1897
|
-
|
|
1898
|
-
&:focus-within {
|
|
1899
|
-
border-color: ${props => props.$readOnly ? getBorderColor$1(props) : props.theme.PRIMARY_COLOR.Hex};
|
|
1900
|
-
}
|
|
2577
|
+
const StyledWrapper = styled.div `
|
|
2578
|
+
display: flex;
|
|
2579
|
+
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
2580
|
+
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
2581
|
+
position: relative;
|
|
2582
|
+
border-width: 1px;
|
|
2583
|
+
border-style: solid;
|
|
2584
|
+
border-color: ${props => getBorderColor$1(props)};
|
|
2585
|
+
background-color: ${props => getBackgroundColor$1(props)};
|
|
2586
|
+
border-radius: ${props => (props.$suggestions ? '4px 4px 0px 0px' : '4px')};
|
|
2587
|
+
|
|
2588
|
+
&:focus-within {
|
|
2589
|
+
border-color: ${props => props.$readOnly ? getBorderColor$1(props) : props.theme.PRIMARY_COLOR.Hex};
|
|
2590
|
+
}
|
|
1901
2591
|
`;
|
|
1902
2592
|
StyledWrapper.defaultProps = { theme: EditableTheme };
|
|
1903
|
-
const SuggestedValues = styled.div `
|
|
1904
|
-
background: #fff;
|
|
1905
|
-
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
1906
|
-
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
1907
|
-
border-radius: 0px 0px 4px 4px;
|
|
1908
|
-
border-style: solid;
|
|
1909
|
-
border-top: none;
|
|
1910
|
-
border-width: 1px;
|
|
1911
|
-
left: -1px;
|
|
1912
|
-
position: absolute;
|
|
1913
|
-
right: -1px;
|
|
1914
|
-
top: 39px;
|
|
1915
|
-
z-index: 9999;
|
|
1916
|
-
max-height: 220px;
|
|
1917
|
-
overflow: auto;
|
|
2593
|
+
const SuggestedValues = styled.div `
|
|
2594
|
+
background: #fff;
|
|
2595
|
+
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
2596
|
+
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2597
|
+
border-radius: 0px 0px 4px 4px;
|
|
2598
|
+
border-style: solid;
|
|
2599
|
+
border-top: none;
|
|
2600
|
+
border-width: 1px;
|
|
2601
|
+
left: -1px;
|
|
2602
|
+
position: absolute;
|
|
2603
|
+
right: -1px;
|
|
2604
|
+
top: 39px;
|
|
2605
|
+
z-index: 9999;
|
|
2606
|
+
max-height: 220px;
|
|
2607
|
+
overflow: auto;
|
|
1918
2608
|
`;
|
|
1919
2609
|
SuggestedValues.defaultProps = { theme: EditableTheme };
|
|
1920
|
-
const SuggestedSummary = styled.div `
|
|
1921
|
-
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
1922
|
-
font-size: 12px;
|
|
1923
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1924
|
-
font-weight: 500;
|
|
1925
|
-
line-height: 18px;
|
|
1926
|
-
padding: 10px 12px;
|
|
1927
|
-
border-bottom: 1px solid #e5e5e5;
|
|
1928
|
-
background: #fff;
|
|
1929
|
-
z-index: 1;
|
|
1930
|
-
position: sticky;
|
|
1931
|
-
top: 0px;
|
|
1932
|
-
`;
|
|
1933
|
-
const SuggestedValue = styled.div `
|
|
1934
|
-
cursor: pointer;
|
|
1935
|
-
padding: 8px 12px;
|
|
1936
|
-
font-size: ${FontSizes.DEFAULT};
|
|
1937
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1938
|
-
font-weight: 400;
|
|
1939
|
-
line-height: 1.6em;
|
|
1940
|
-
color: ${Colors.BLACK.Hex};
|
|
1941
|
-
|
|
1942
|
-
&:hover {
|
|
1943
|
-
background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
|
|
1944
|
-
}
|
|
2610
|
+
const SuggestedSummary = styled.div `
|
|
2611
|
+
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
2612
|
+
font-size: 12px;
|
|
2613
|
+
font-family: ${FontStyles.DEFAULT};
|
|
2614
|
+
font-weight: 500;
|
|
2615
|
+
line-height: 18px;
|
|
2616
|
+
padding: 10px 12px;
|
|
2617
|
+
border-bottom: 1px solid #e5e5e5;
|
|
2618
|
+
background: #fff;
|
|
2619
|
+
z-index: 1;
|
|
2620
|
+
position: sticky;
|
|
2621
|
+
top: 0px;
|
|
2622
|
+
`;
|
|
2623
|
+
const SuggestedValue = styled.div `
|
|
2624
|
+
cursor: pointer;
|
|
2625
|
+
padding: 8px 12px;
|
|
2626
|
+
font-size: ${FontSizes.DEFAULT};
|
|
2627
|
+
font-family: ${FontStyles.DEFAULT};
|
|
2628
|
+
font-weight: 400;
|
|
2629
|
+
line-height: 1.6em;
|
|
2630
|
+
color: ${Colors.BLACK.Hex};
|
|
2631
|
+
|
|
2632
|
+
&:hover {
|
|
2633
|
+
background: rgba(${props => props.theme.PRIMARY_COLOR.Rgb}, 0.05);
|
|
2634
|
+
}
|
|
1945
2635
|
`;
|
|
1946
2636
|
SuggestedValue.defaultProps = { theme: EditableTheme };
|
|
1947
|
-
const CharacterCount = styled.div `
|
|
1948
|
-
font-family: ${FontStyles.DEFAULT};
|
|
1949
|
-
font-size: ${FontSizes.SMALL};
|
|
1950
|
-
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
1951
|
-
padding: 10px;
|
|
2637
|
+
const CharacterCount = styled.div `
|
|
2638
|
+
font-family: ${FontStyles.DEFAULT};
|
|
2639
|
+
font-size: ${FontSizes.SMALL};
|
|
2640
|
+
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
2641
|
+
padding: 10px;
|
|
1952
2642
|
`;
|
|
1953
|
-
const Loader$1 = styled.div `
|
|
1954
|
-
padding: 0px 10px;
|
|
1955
|
-
display: flex;
|
|
1956
|
-
align-items: center;
|
|
2643
|
+
const Loader$1 = styled.div `
|
|
2644
|
+
padding: 0px 10px;
|
|
2645
|
+
display: flex;
|
|
2646
|
+
align-items: center;
|
|
1957
2647
|
`;
|
|
1958
2648
|
const Input$1 = (_a) => {
|
|
1959
2649
|
var { format, suffix, height, invalid, loading, max, maxLength, min, onBlur, onChange, onFocus, onKeyDown,
|
|
@@ -2003,6 +2693,7 @@ const Input$1 = (_a) => {
|
|
|
2003
2693
|
if (type === 'number' && max && parseInt(newValue, 10) > parseInt(max, 10)) {
|
|
2004
2694
|
e.target.value = `${max}`;
|
|
2005
2695
|
}
|
|
2696
|
+
handleInputMaskChange(newValue);
|
|
2006
2697
|
setInternalValue(e.target.value);
|
|
2007
2698
|
if (onChange)
|
|
2008
2699
|
onChange(e);
|
|
@@ -2031,8 +2722,30 @@ const Input$1 = (_a) => {
|
|
|
2031
2722
|
formatted_value = formatAsSsn(internalValue);
|
|
2032
2723
|
}
|
|
2033
2724
|
if (mask && !format) {
|
|
2034
|
-
|
|
2725
|
+
if (mask[0] !== '{') {
|
|
2726
|
+
formatted_value = formatAsMask(internalValue, mask);
|
|
2727
|
+
}
|
|
2035
2728
|
}
|
|
2729
|
+
const inputRef = innerRef ? innerRef : React.useRef(null);
|
|
2730
|
+
const textMask = React.useRef(null); // Explicitly type the ref
|
|
2731
|
+
const numberMask = mask && mask[0] === '{' ? textMaskAddonsExports.createNumberMask(JSON.parse(mask)) : textMaskAddonsExports.createNumberMask({});
|
|
2732
|
+
React.useEffect(() => {
|
|
2733
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
2734
|
+
if (inputRef.current) {
|
|
2735
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
2736
|
+
textMask.current = textMaskCoreExports.createTextMaskInputElement({
|
|
2737
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
2738
|
+
inputElement: inputRef.current,
|
|
2739
|
+
mask: numberMask,
|
|
2740
|
+
});
|
|
2741
|
+
}
|
|
2742
|
+
}, [numberMask]);
|
|
2743
|
+
const handleInputMaskChange = (value) => {
|
|
2744
|
+
if (mask && !format && mask[0] === '{' && textMask.current) {
|
|
2745
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
2746
|
+
textMask.current.update(value); // Apply the mask
|
|
2747
|
+
}
|
|
2748
|
+
};
|
|
2036
2749
|
const baseId = dataItemid || 'input';
|
|
2037
2750
|
return type === 'textarea' ? (React.createElement(StyledWrapper, { "$invalid": invalid, "$isInvalidRedBackground": isInvalidRedBackground, "$isWarningError": isWarningError, "$readOnly": readOnly, "$style": style, "$suggestions": show_options && !!internalSuggestedValues.length, "data-itemid": `${baseId}-wrapper`, style: style },
|
|
2038
2751
|
React.createElement(StyledTextArea, Object.assign({ "$height": height, "$invalid": invalid, "$readOnly": readOnly, "$showErrorTextColor": showErrorTextColor, autoComplete: autoComplete, maxLength: maxLength, onBlur: readOnly
|
|
@@ -2083,7 +2796,7 @@ const Input$1 = (_a) => {
|
|
|
2083
2796
|
}, onKeyDown: readOnly ? e => e.preventDefault() : onKeyDown, onPaste: e => {
|
|
2084
2797
|
if (onPaste)
|
|
2085
2798
|
onPaste(e);
|
|
2086
|
-
}, placeholder: placeholder, readOnly: readOnly, ref:
|
|
2799
|
+
}, placeholder: placeholder, readOnly: readOnly, ref: inputRef, step: step, tabIndex: readOnly ? -1 : tabIndex, type: type, value: format === 'currency_decimal' && internalValue ? `$${formatted_value}` : formatted_value }, accessibleProps, { "data-itemid": `${baseId}-input` })),
|
|
2087
2800
|
loading ? (React.createElement(Loader$1, { "data-itemid": `${baseId}-loader` },
|
|
2088
2801
|
React.createElement(Icon, { color: Colors.MEDIUM_GRAY.Hex, path: js.mdiLoading, size: '20px', spin: true }))) : null,
|
|
2089
2802
|
showCharCount ? (React.createElement(CharacterCount, { "data-itemid": `${baseId}-char-count` },
|
|
@@ -2101,145 +2814,145 @@ const Input$1 = (_a) => {
|
|
|
2101
2814
|
onSuggestedSelect();
|
|
2102
2815
|
setShowOptions(false);
|
|
2103
2816
|
} }, suggestedValue))))) : null));
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
const Wrapper$7 = styled.a `
|
|
2107
|
-
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2108
|
-
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
2109
|
-
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
2110
|
-
letter-spacing: ${props => (props.$small ? '1px' : '0px')};
|
|
2111
|
-
font-weight: 500;
|
|
2112
|
-
font-style: normal;
|
|
2113
|
-
text-decoration: none;
|
|
2114
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2115
|
-
margin: 0px;
|
|
2116
|
-
padding: 0px;
|
|
2117
|
-
box-sizing: border-box;
|
|
2118
|
-
cursor: pointer;
|
|
2817
|
+
};
|
|
2818
|
+
|
|
2819
|
+
const Wrapper$7 = styled.a `
|
|
2820
|
+
color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2821
|
+
font-size: ${props => (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT)};
|
|
2822
|
+
line-height: ${props => (props.$small ? '1.5em' : '1.6em')};
|
|
2823
|
+
letter-spacing: ${props => (props.$small ? '1px' : '0px')};
|
|
2824
|
+
font-weight: 500;
|
|
2825
|
+
font-style: normal;
|
|
2826
|
+
text-decoration: none;
|
|
2827
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2828
|
+
margin: 0px;
|
|
2829
|
+
padding: 0px;
|
|
2830
|
+
box-sizing: border-box;
|
|
2831
|
+
cursor: pointer;
|
|
2119
2832
|
`;
|
|
2120
2833
|
Wrapper$7.defaultProps = { theme: EditableTheme };
|
|
2121
2834
|
const Link = (_a) => {
|
|
2122
2835
|
var { children, onClick, small, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "onClick", "small", "dataItemid"]);
|
|
2123
2836
|
const baseId = dataItemid || 'link';
|
|
2124
2837
|
return (React.createElement(Wrapper$7, Object.assign({ "$small": small, onClick: onClick }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }), children));
|
|
2125
|
-
};
|
|
2126
|
-
|
|
2127
|
-
const dash = styled.keyframes `
|
|
2128
|
-
0% {
|
|
2129
|
-
stroke-dasharray: 1, 160;
|
|
2130
|
-
stroke-dashoffset: 0;
|
|
2131
|
-
}
|
|
2132
|
-
50% {
|
|
2133
|
-
stroke-dasharray: 80, 160;
|
|
2134
|
-
stroke-dashoffset: -32;
|
|
2135
|
-
}
|
|
2136
|
-
100% {
|
|
2137
|
-
stroke-dasharray: 80, 160;
|
|
2138
|
-
stroke-dashoffset: -124;
|
|
2139
|
-
}
|
|
2140
|
-
`;
|
|
2141
|
-
const Spinner = styled.svg `
|
|
2142
|
-
z-index: 2;
|
|
2143
|
-
position: absolute;
|
|
2144
|
-
top: 50%;
|
|
2145
|
-
left: 50%;
|
|
2146
|
-
transform: translate(-50%, -50%);
|
|
2147
|
-
margin: 0 auto;
|
|
2148
|
-
width: 40px;
|
|
2149
|
-
height: 40px;
|
|
2150
|
-
`;
|
|
2151
|
-
const Path = styled.path `
|
|
2152
|
-
stroke: #0193d7;
|
|
2153
|
-
stroke-linecap: round;
|
|
2154
|
-
-webkit-animation: ${dash} 1.1s ease-in-out infinite;
|
|
2155
|
-
animation: ${dash} 1.1s ease-in-out infinite;
|
|
2838
|
+
};
|
|
2839
|
+
|
|
2840
|
+
const dash = styled.keyframes `
|
|
2841
|
+
0% {
|
|
2842
|
+
stroke-dasharray: 1, 160;
|
|
2843
|
+
stroke-dashoffset: 0;
|
|
2844
|
+
}
|
|
2845
|
+
50% {
|
|
2846
|
+
stroke-dasharray: 80, 160;
|
|
2847
|
+
stroke-dashoffset: -32;
|
|
2848
|
+
}
|
|
2849
|
+
100% {
|
|
2850
|
+
stroke-dasharray: 80, 160;
|
|
2851
|
+
stroke-dashoffset: -124;
|
|
2852
|
+
}
|
|
2853
|
+
`;
|
|
2854
|
+
const Spinner = styled.svg `
|
|
2855
|
+
z-index: 2;
|
|
2856
|
+
position: absolute;
|
|
2857
|
+
top: 50%;
|
|
2858
|
+
left: 50%;
|
|
2859
|
+
transform: translate(-50%, -50%);
|
|
2860
|
+
margin: 0 auto;
|
|
2861
|
+
width: 40px;
|
|
2862
|
+
height: 40px;
|
|
2863
|
+
`;
|
|
2864
|
+
const Path = styled.path `
|
|
2865
|
+
stroke: #0193d7;
|
|
2866
|
+
stroke-linecap: round;
|
|
2867
|
+
-webkit-animation: ${dash} 1.1s ease-in-out infinite;
|
|
2868
|
+
animation: ${dash} 1.1s ease-in-out infinite;
|
|
2156
2869
|
`;
|
|
2157
2870
|
const Loader = ({ dataItemid }) => {
|
|
2158
2871
|
const baseId = dataItemid || 'loader';
|
|
2159
2872
|
return (React.createElement(Spinner, { "data-itemid": `${baseId}-spinner`, viewBox: '0 0 16 18' },
|
|
2160
2873
|
React.createElement(Path, { d: 'M7.21487 1.2868C7.88431 0.9044 8.73031 0.9044 9.39974 1.2868L9.40283 1.28856L14.4613 4.20761C15.1684 4.598 15.5746 5.33558 15.5746 6.11465V8.99996V11.8853C15.5746 12.6507 15.1632 13.3848 14.4617 13.7721L9.37973 16.7132C8.71029 17.0956 7.86428 17.0956 7.19485 16.7132L7.19088 16.7109L2.11279 13.772C1.40602 13.3816 1 12.6441 1 11.8653V8.98995V6.11465C1 5.31458 1.44381 4.59039 2.10827 4.21051L7.21487 1.2868Z', "data-itemid": `${baseId}-path`, fill: 'none', strokeWidth: '2' })));
|
|
2161
|
-
};
|
|
2162
|
-
|
|
2163
|
-
const Steps = styled.div `
|
|
2164
|
-
padding: 20px;
|
|
2165
|
-
border-bottom: 1px solid #e7e6e6;
|
|
2166
|
-
background: #f5f5f5;
|
|
2167
|
-
display: flex;
|
|
2168
|
-
gap: 30px;
|
|
2169
|
-
align-items: center;
|
|
2170
|
-
`;
|
|
2171
|
-
const Step = styled.div `
|
|
2172
|
-
display: flex;
|
|
2173
|
-
align-items: center;
|
|
2174
|
-
gap: 8px;
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
const Steps = styled.div `
|
|
2877
|
+
padding: 20px;
|
|
2878
|
+
border-bottom: 1px solid #e7e6e6;
|
|
2879
|
+
background: #f5f5f5;
|
|
2880
|
+
display: flex;
|
|
2881
|
+
gap: 30px;
|
|
2882
|
+
align-items: center;
|
|
2883
|
+
`;
|
|
2884
|
+
const Step = styled.div `
|
|
2885
|
+
display: flex;
|
|
2886
|
+
align-items: center;
|
|
2887
|
+
gap: 8px;
|
|
2175
2888
|
`;
|
|
2176
2889
|
const StyledIconWWrapper = styled.div ``;
|
|
2177
|
-
const StyledIcon$2 = styled(Icon) `
|
|
2178
|
-
> path {
|
|
2179
|
-
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
2180
|
-
}
|
|
2890
|
+
const StyledIcon$2 = styled(Icon) `
|
|
2891
|
+
> path {
|
|
2892
|
+
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
2893
|
+
}
|
|
2181
2894
|
`;
|
|
2182
2895
|
StyledIcon$2.defaultProps = { theme: EditableTheme };
|
|
2183
|
-
const StepIndicator = styled.div `
|
|
2184
|
-
width: 30px;
|
|
2185
|
-
height: 30px;
|
|
2186
|
-
border-radius: 15px;
|
|
2187
|
-
background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
|
|
2188
|
-
color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
|
|
2189
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2190
|
-
font-size: 14px;
|
|
2191
|
-
font-weight: 500;
|
|
2192
|
-
line-height: 1;
|
|
2193
|
-
display: flex;
|
|
2194
|
-
align-items: center;
|
|
2195
|
-
justify-content: center;
|
|
2196
|
-
flex-shrink: 0;
|
|
2896
|
+
const StepIndicator = styled.div `
|
|
2897
|
+
width: 30px;
|
|
2898
|
+
height: 30px;
|
|
2899
|
+
border-radius: 15px;
|
|
2900
|
+
background: ${props => (props.$active ? props.theme.PRIMARY_COLOR.Hex : Colors.LIGHT_GRAY.Hex)};
|
|
2901
|
+
color: ${props => (props.$active ? '#fff' : Colors.MEDIUM_GRAY.Hex)};
|
|
2902
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2903
|
+
font-size: 14px;
|
|
2904
|
+
font-weight: 500;
|
|
2905
|
+
line-height: 1;
|
|
2906
|
+
display: flex;
|
|
2907
|
+
align-items: center;
|
|
2908
|
+
justify-content: center;
|
|
2909
|
+
flex-shrink: 0;
|
|
2197
2910
|
`;
|
|
2198
2911
|
StepIndicator.defaultProps = { theme: EditableTheme };
|
|
2199
|
-
const StepLabel = styled.div `
|
|
2200
|
-
color: #000;
|
|
2201
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2202
|
-
font-size: 14px;
|
|
2203
|
-
font-weight: 500;
|
|
2204
|
-
line-height: 1;
|
|
2205
|
-
`;
|
|
2206
|
-
const StepLine = styled.div `
|
|
2207
|
-
height: 2px;
|
|
2208
|
-
flex-grow: 1;
|
|
2209
|
-
background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
2210
|
-
transition: background-color 0.5s ease-in-out;
|
|
2912
|
+
const StepLabel = styled.div `
|
|
2913
|
+
color: #000;
|
|
2914
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2915
|
+
font-size: 14px;
|
|
2916
|
+
font-weight: 500;
|
|
2917
|
+
line-height: 1;
|
|
2918
|
+
`;
|
|
2919
|
+
const StepLine = styled.div `
|
|
2920
|
+
height: 2px;
|
|
2921
|
+
flex-grow: 1;
|
|
2922
|
+
background-color: ${props => (props.$active ? Colors.PRIMARY.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
2923
|
+
transition: background-color 0.5s ease-in-out;
|
|
2211
2924
|
`;
|
|
2212
2925
|
const Container$2 = styled.div ``;
|
|
2213
|
-
const ProgressBarFill = styled.div `
|
|
2214
|
-
width: 110px;
|
|
2215
|
-
height:
|
|
2216
|
-
margin-top: 4px;
|
|
2217
|
-
background-color: #e7e6e6;
|
|
2218
|
-
border-radius: 16px;
|
|
2219
|
-
position: relative;
|
|
2220
|
-
overflow: hidden;
|
|
2221
|
-
|
|
2222
|
-
.progress-percentage {
|
|
2223
|
-
position: absolute;
|
|
2224
|
-
top: 55%;
|
|
2225
|
-
left: ${props => props.$percent >= 83 ? 'calc(100% - 25px)' : `calc(${props.$percent}% + 10px)`};
|
|
2226
|
-
transform: translate(-50%, -50%);
|
|
2227
|
-
color: ${props => (props.$percent >= 83 ? '#fff' : '#757575')};
|
|
2228
|
-
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2229
|
-
font-size:
|
|
2230
|
-
font-weight: 600;
|
|
2231
|
-
transition: left 0.5s ease-in-out;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
.progress-bar-fill {
|
|
2235
|
-
position: absolute;
|
|
2236
|
-
top: 0;
|
|
2237
|
-
left: 0;
|
|
2238
|
-
width: ${props => props.$percent}%;
|
|
2239
|
-
height: 100%;
|
|
2240
|
-
background-color: #1aa836;
|
|
2241
|
-
transition: width 0.5s ease-in-out;
|
|
2242
|
-
}
|
|
2926
|
+
const ProgressBarFill = styled.div `
|
|
2927
|
+
width: 110px;
|
|
2928
|
+
height: 12px;
|
|
2929
|
+
margin-top: 4px;
|
|
2930
|
+
background-color: #e7e6e6;
|
|
2931
|
+
border-radius: 16px;
|
|
2932
|
+
position: relative;
|
|
2933
|
+
overflow: hidden;
|
|
2934
|
+
|
|
2935
|
+
.progress-percentage {
|
|
2936
|
+
position: absolute;
|
|
2937
|
+
top: 55%;
|
|
2938
|
+
left: ${props => props.$percent >= 83 ? 'calc(100% - 25px)' : `calc(${props.$percent}% + 10px)`};
|
|
2939
|
+
transform: translate(-50%, -50%);
|
|
2940
|
+
color: ${props => (props.$percent >= 83 ? '#fff' : '#757575')};
|
|
2941
|
+
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
|
2942
|
+
font-size: 11px;
|
|
2943
|
+
font-weight: 600;
|
|
2944
|
+
transition: left 0.5s ease-in-out;
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
.progress-bar-fill {
|
|
2948
|
+
position: absolute;
|
|
2949
|
+
top: 0;
|
|
2950
|
+
left: 0;
|
|
2951
|
+
width: ${props => props.$percent}%;
|
|
2952
|
+
height: 100%;
|
|
2953
|
+
background-color: #1aa836;
|
|
2954
|
+
transition: width 0.5s ease-in-out;
|
|
2955
|
+
}
|
|
2243
2956
|
`;
|
|
2244
2957
|
const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
|
|
2245
2958
|
const baseId = dataItemid || 'progress-bar';
|
|
@@ -2258,78 +2971,78 @@ const ProgressBar = ({ steps, showStepLine = false, dataItemid }) => {
|
|
|
2258
2971
|
step.percentComplete,
|
|
2259
2972
|
"%")))))));
|
|
2260
2973
|
})));
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
const Wrapper$6 = styled.div `
|
|
2264
|
-
position: fixed;
|
|
2265
|
-
top: 0;
|
|
2266
|
-
right: 0;
|
|
2267
|
-
bottom: 0;
|
|
2268
|
-
left: 0;
|
|
2269
|
-
z-index: 9999;
|
|
2270
|
-
background: rgba(0, 0, 0, 0.8);
|
|
2271
|
-
display: flex;
|
|
2272
|
-
align-items: center;
|
|
2273
|
-
justify-content: center;
|
|
2274
|
-
`;
|
|
2275
|
-
const Container$1 = styled.dialog `
|
|
2276
|
-
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
2277
|
-
max-width: calc(100vw - 80px);
|
|
2278
|
-
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
2279
|
-
max-height: calc(100vh - 80px);
|
|
2280
|
-
border-radius: 8px;
|
|
2281
|
-
overflow: hidden;
|
|
2282
|
-
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
2283
|
-
outline: none;
|
|
2284
|
-
border: none;
|
|
2285
|
-
position: relative;
|
|
2286
|
-
padding: 0px;
|
|
2287
|
-
box-sizing: border-box;
|
|
2288
|
-
display: flex;
|
|
2289
|
-
flex-direction: column;
|
|
2290
|
-
`;
|
|
2291
|
-
const Header$1 = styled.div `
|
|
2292
|
-
flex-shrink: 0;
|
|
2293
|
-
padding: 20px;
|
|
2294
|
-
border-bottom: 1px solid #e7e6e6;
|
|
2295
|
-
display: flex;
|
|
2296
|
-
align-items: center;
|
|
2297
|
-
background: #ffffff;
|
|
2298
|
-
box-sizing: border-box;
|
|
2299
|
-
`;
|
|
2300
|
-
const Close = styled.div `
|
|
2301
|
-
margin-left: auto;
|
|
2302
|
-
display: flex;
|
|
2303
|
-
align-items: center;
|
|
2304
|
-
padding-left: 20px;
|
|
2305
|
-
cursor: pointer;
|
|
2306
|
-
`;
|
|
2307
|
-
const CloseMsg = styled.span `
|
|
2308
|
-
font-size: ${FontSizes.SMALL};
|
|
2309
|
-
font-weight: 400;
|
|
2310
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2311
|
-
line-height: 1em;
|
|
2312
|
-
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
2313
|
-
`;
|
|
2314
|
-
const ContentWrapper = styled.div `
|
|
2315
|
-
overflow-x: hidden;
|
|
2316
|
-
overflow-y: auto;
|
|
2317
|
-
background: #ffffff;
|
|
2318
|
-
flex: 1;
|
|
2319
|
-
box-sizing: border-box;
|
|
2320
|
-
`;
|
|
2321
|
-
const ButtonBar = styled.div `
|
|
2322
|
-
flex-shrink: 0;
|
|
2323
|
-
background: #ffffff;
|
|
2324
|
-
padding: 20px;
|
|
2325
|
-
border-top: 1px solid #e7e6e6;
|
|
2326
|
-
display: flex;
|
|
2327
|
-
align-items: center;
|
|
2328
|
-
justify-self: flex-end;
|
|
2329
|
-
box-sizing: border-box;
|
|
2330
|
-
`;
|
|
2331
|
-
const ButtonContainer = styled.div `
|
|
2332
|
-
margin: 0 10px;
|
|
2974
|
+
};
|
|
2975
|
+
|
|
2976
|
+
const Wrapper$6 = styled.div `
|
|
2977
|
+
position: fixed;
|
|
2978
|
+
top: 0;
|
|
2979
|
+
right: 0;
|
|
2980
|
+
bottom: 0;
|
|
2981
|
+
left: 0;
|
|
2982
|
+
z-index: 9999;
|
|
2983
|
+
background: rgba(0, 0, 0, 0.8);
|
|
2984
|
+
display: flex;
|
|
2985
|
+
align-items: center;
|
|
2986
|
+
justify-content: center;
|
|
2987
|
+
`;
|
|
2988
|
+
const Container$1 = styled.dialog `
|
|
2989
|
+
width: ${props => (props.$fullscreen ? 'calc(100vw - 80px)' : props.$maxWidth || '900px')};
|
|
2990
|
+
max-width: calc(100vw - 80px);
|
|
2991
|
+
height: ${props => (props.$fullscreen ? 'calc(100vh - 80px)' : 'auto')};
|
|
2992
|
+
max-height: calc(100vh - 80px);
|
|
2993
|
+
border-radius: 8px;
|
|
2994
|
+
overflow: hidden;
|
|
2995
|
+
box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);
|
|
2996
|
+
outline: none;
|
|
2997
|
+
border: none;
|
|
2998
|
+
position: relative;
|
|
2999
|
+
padding: 0px;
|
|
3000
|
+
box-sizing: border-box;
|
|
3001
|
+
display: flex;
|
|
3002
|
+
flex-direction: column;
|
|
3003
|
+
`;
|
|
3004
|
+
const Header$1 = styled.div `
|
|
3005
|
+
flex-shrink: 0;
|
|
3006
|
+
padding: 20px;
|
|
3007
|
+
border-bottom: 1px solid #e7e6e6;
|
|
3008
|
+
display: flex;
|
|
3009
|
+
align-items: center;
|
|
3010
|
+
background: #ffffff;
|
|
3011
|
+
box-sizing: border-box;
|
|
3012
|
+
`;
|
|
3013
|
+
const Close = styled.div `
|
|
3014
|
+
margin-left: auto;
|
|
3015
|
+
display: flex;
|
|
3016
|
+
align-items: center;
|
|
3017
|
+
padding-left: 20px;
|
|
3018
|
+
cursor: pointer;
|
|
3019
|
+
`;
|
|
3020
|
+
const CloseMsg = styled.span `
|
|
3021
|
+
font-size: ${FontSizes.SMALL};
|
|
3022
|
+
font-weight: 400;
|
|
3023
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3024
|
+
line-height: 1em;
|
|
3025
|
+
color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3026
|
+
`;
|
|
3027
|
+
const ContentWrapper = styled.div `
|
|
3028
|
+
overflow-x: hidden;
|
|
3029
|
+
overflow-y: auto;
|
|
3030
|
+
background: #ffffff;
|
|
3031
|
+
flex: 1;
|
|
3032
|
+
box-sizing: border-box;
|
|
3033
|
+
`;
|
|
3034
|
+
const ButtonBar = styled.div `
|
|
3035
|
+
flex-shrink: 0;
|
|
3036
|
+
background: #ffffff;
|
|
3037
|
+
padding: 20px;
|
|
3038
|
+
border-top: 1px solid #e7e6e6;
|
|
3039
|
+
display: flex;
|
|
3040
|
+
align-items: center;
|
|
3041
|
+
justify-self: flex-end;
|
|
3042
|
+
box-sizing: border-box;
|
|
3043
|
+
`;
|
|
3044
|
+
const ButtonContainer = styled.div `
|
|
3045
|
+
margin: 0 10px;
|
|
2333
3046
|
`;
|
|
2334
3047
|
const Modal = (_a) => {
|
|
2335
3048
|
var { children, title, onClose, maxWidth, fullscreen, steps, primaryButton, secondaryButton, tertiaryButton, quarternaryButton, dataItemid } = _a, accessibleProps = __rest(_a, ["children", "title", "onClose", "maxWidth", "fullscreen", "steps", "primaryButton", "secondaryButton", "tertiaryButton", "quarternaryButton", "dataItemid"]);
|
|
@@ -2372,21 +3085,21 @@ const Modal = (_a) => {
|
|
|
2372
3085
|
secondaryButton ? (React.createElement(ButtonContainer, { "data-itemid": `${baseId}-secondary-button-container` },
|
|
2373
3086
|
React.createElement(Button, Object.assign({}, secondaryButton, { "data-itemid": `${baseId}-secondary-button`, format: secondaryButton.format || 'secondary' })))) : null,
|
|
2374
3087
|
primaryButton ? (React.createElement(Button, Object.assign({}, primaryButton, { "data-itemid": `${baseId}-primary-button`, format: primaryButton.format || 'primary' }))) : null)) : null)) : null)));
|
|
2375
|
-
};
|
|
2376
|
-
|
|
2377
|
-
const Wrapper$5 = styled.div `
|
|
2378
|
-
position: relative;
|
|
2379
|
-
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
2380
|
-
`;
|
|
2381
|
-
const Trigger = styled.div `
|
|
2382
|
-
box-sizing: border-box;
|
|
2383
|
-
border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
|
|
2384
|
-
height: 40px;
|
|
2385
|
-
padding: 0 10px;
|
|
2386
|
-
position: relative;
|
|
2387
|
-
cursor: pointer;
|
|
2388
|
-
border-width: 1px;
|
|
2389
|
-
border-style: solid;
|
|
3088
|
+
};
|
|
3089
|
+
|
|
3090
|
+
const Wrapper$5 = styled.div `
|
|
3091
|
+
position: relative;
|
|
3092
|
+
width: ${({ $style }) => ($style === null || $style === void 0 ? void 0 : $style.width) || 'auto'};
|
|
3093
|
+
`;
|
|
3094
|
+
const Trigger = styled.div `
|
|
3095
|
+
box-sizing: border-box;
|
|
3096
|
+
border-radius: ${props => (props.$showOptions ? '4px 4px 0px 0px' : '4px')};
|
|
3097
|
+
height: 40px;
|
|
3098
|
+
padding: 0 10px;
|
|
3099
|
+
position: relative;
|
|
3100
|
+
cursor: pointer;
|
|
3101
|
+
border-width: 1px;
|
|
3102
|
+
border-style: solid;
|
|
2390
3103
|
border-color: ${props => {
|
|
2391
3104
|
if (props.$invalid) {
|
|
2392
3105
|
return Colors.RED.Hex;
|
|
@@ -2397,67 +3110,67 @@ const Trigger = styled.div `
|
|
|
2397
3110
|
else {
|
|
2398
3111
|
return '#cccccc';
|
|
2399
3112
|
}
|
|
2400
|
-
}};
|
|
2401
|
-
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
2402
|
-
background-image: none;
|
|
2403
|
-
display: flex;
|
|
2404
|
-
width: 100%;
|
|
2405
|
-
align-items: center;
|
|
2406
|
-
justify-content: space-between;
|
|
2407
|
-
z-index: 1;
|
|
3113
|
+
}};
|
|
3114
|
+
background-color: ${props => (props.$readOnly ? '#f5f5f5' : '#ffffff')};
|
|
3115
|
+
background-image: none;
|
|
3116
|
+
display: flex;
|
|
3117
|
+
width: 100%;
|
|
3118
|
+
align-items: center;
|
|
3119
|
+
justify-content: space-between;
|
|
3120
|
+
z-index: 1;
|
|
2408
3121
|
`;
|
|
2409
3122
|
Trigger.defaultProps = { theme: EditableTheme };
|
|
2410
|
-
const Value = styled.div `
|
|
2411
|
-
color: ${Colors.BLACK.Hex};
|
|
2412
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2413
|
-
font-size: ${FontSizes.DEFAULT};
|
|
2414
|
-
font-weight: 400;
|
|
2415
|
-
line-height: 2.9em;
|
|
2416
|
-
overflow: hidden;
|
|
2417
|
-
text-overflow: ellipsis;
|
|
2418
|
-
white-space: nowrap;
|
|
2419
|
-
width: 100%;
|
|
2420
|
-
`;
|
|
2421
|
-
const Options = styled.div `
|
|
2422
|
-
background: #fff;
|
|
2423
|
-
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
2424
|
-
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
2425
|
-
border-radius: 0px 0px 4px 4px;
|
|
2426
|
-
border-style: solid;
|
|
2427
|
-
border-top: none;
|
|
2428
|
-
border-width: 1px;
|
|
2429
|
-
left: 0;
|
|
2430
|
-
position: absolute;
|
|
2431
|
-
right: 0;
|
|
2432
|
-
z-index: 10;
|
|
2433
|
-
max-height: 220px;
|
|
2434
|
-
overflow: auto;
|
|
3123
|
+
const Value = styled.div `
|
|
3124
|
+
color: ${Colors.BLACK.Hex};
|
|
3125
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3126
|
+
font-size: ${FontSizes.DEFAULT};
|
|
3127
|
+
font-weight: 400;
|
|
3128
|
+
line-height: 2.9em;
|
|
3129
|
+
overflow: hidden;
|
|
3130
|
+
text-overflow: ellipsis;
|
|
3131
|
+
white-space: nowrap;
|
|
3132
|
+
width: 100%;
|
|
3133
|
+
`;
|
|
3134
|
+
const Options = styled.div `
|
|
3135
|
+
background: #fff;
|
|
3136
|
+
box-shadow: 0px 5px 30px -15px rgba(0, 0, 0, 0.2);
|
|
3137
|
+
border-color: ${props => props.theme.PRIMARY_COLOR.Hex};
|
|
3138
|
+
border-radius: 0px 0px 4px 4px;
|
|
3139
|
+
border-style: solid;
|
|
3140
|
+
border-top: none;
|
|
3141
|
+
border-width: 1px;
|
|
3142
|
+
left: 0;
|
|
3143
|
+
position: absolute;
|
|
3144
|
+
right: 0;
|
|
3145
|
+
z-index: 10;
|
|
3146
|
+
max-height: 220px;
|
|
3147
|
+
overflow: auto;
|
|
2435
3148
|
`;
|
|
2436
3149
|
Options.defaultProps = { theme: EditableTheme };
|
|
2437
|
-
const Scrim = styled.div `
|
|
2438
|
-
bottom: 0;
|
|
2439
|
-
left: 0;
|
|
2440
|
-
position: fixed;
|
|
2441
|
-
right: 0;
|
|
2442
|
-
top: 0;
|
|
2443
|
-
z-index: 9;
|
|
2444
|
-
`;
|
|
2445
|
-
const SearchInput = styled.input `
|
|
2446
|
-
position: absolute;
|
|
2447
|
-
left: 2px;
|
|
2448
|
-
top: 2px;
|
|
2449
|
-
z-index: 999;
|
|
2450
|
-
width: 90%;
|
|
2451
|
-
height: 30px;
|
|
2452
|
-
border: none;
|
|
2453
|
-
outline: none;
|
|
2454
|
-
color: ${Colors.BLACK.Hex};
|
|
2455
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2456
|
-
font-size: ${FontSizes.DEFAULT};
|
|
2457
|
-
font-weight: 400;
|
|
2458
|
-
line-height: 2.9em;
|
|
2459
|
-
overflow: hidden;
|
|
2460
|
-
white-space: nowrap;
|
|
3150
|
+
const Scrim = styled.div `
|
|
3151
|
+
bottom: 0;
|
|
3152
|
+
left: 0;
|
|
3153
|
+
position: fixed;
|
|
3154
|
+
right: 0;
|
|
3155
|
+
top: 0;
|
|
3156
|
+
z-index: 9;
|
|
3157
|
+
`;
|
|
3158
|
+
const SearchInput = styled.input `
|
|
3159
|
+
position: absolute;
|
|
3160
|
+
left: 2px;
|
|
3161
|
+
top: 2px;
|
|
3162
|
+
z-index: 999;
|
|
3163
|
+
width: 90%;
|
|
3164
|
+
height: 30px;
|
|
3165
|
+
border: none;
|
|
3166
|
+
outline: none;
|
|
3167
|
+
color: ${Colors.BLACK.Hex};
|
|
3168
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3169
|
+
font-size: ${FontSizes.DEFAULT};
|
|
3170
|
+
font-weight: 400;
|
|
3171
|
+
line-height: 2.9em;
|
|
3172
|
+
overflow: hidden;
|
|
3173
|
+
white-space: nowrap;
|
|
2461
3174
|
`;
|
|
2462
3175
|
const MultiSelect = (_a) => {
|
|
2463
3176
|
var { readOnly, displayCount = 3, invalid, onChange, options = [], selected = [], showSelectAll, searchable = false, style, dataItemid } = _a, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll", "searchable", "style", "dataItemid"]);
|
|
@@ -2477,37 +3190,37 @@ const MultiSelect = (_a) => {
|
|
|
2477
3190
|
showOptions ? (React.createElement(Options, { "data-itemid": `${baseId}-options` },
|
|
2478
3191
|
React.createElement(Checklist, { "data-itemid": `${baseId}-checklist`, onChange: onChange, options: filteredOptions, selected: selected, showSelectAll: showSelectAll }))) : null,
|
|
2479
3192
|
showOptions ? (React.createElement(Scrim, { "data-itemid": `${baseId}-scrim`, onClick: setShowOptions.bind(null, !showOptions) })) : null));
|
|
2480
|
-
};
|
|
2481
|
-
|
|
2482
|
-
const Wrapper$4 = styled.div `
|
|
2483
|
-
display: flex;
|
|
2484
|
-
padding: 16px 30px;
|
|
2485
|
-
align-items: center;
|
|
2486
|
-
gap: 20px;
|
|
2487
|
-
align-self: stretch;
|
|
2488
|
-
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
2489
|
-
`;
|
|
2490
|
-
const Title = styled.div `
|
|
2491
|
-
display: flex;
|
|
2492
|
-
align-items: center;
|
|
2493
|
-
gap: 20px;
|
|
2494
|
-
`;
|
|
2495
|
-
const Info = styled.div `
|
|
2496
|
-
display: flex;
|
|
2497
|
-
flex-direction: column;
|
|
2498
|
-
align-items: flex-start;
|
|
2499
|
-
gap: 4px;
|
|
2500
|
-
flex: 1 0 0;
|
|
2501
|
-
`;
|
|
2502
|
-
const Breadcrumbs = styled.div `
|
|
2503
|
-
display: flex;
|
|
2504
|
-
align-items: center;
|
|
2505
|
-
gap: 4px;
|
|
2506
|
-
`;
|
|
2507
|
-
const Actions = styled.div `
|
|
2508
|
-
display: flex;
|
|
2509
|
-
align-items: center;
|
|
2510
|
-
gap: 8px;
|
|
3193
|
+
};
|
|
3194
|
+
|
|
3195
|
+
const Wrapper$4 = styled.div `
|
|
3196
|
+
display: flex;
|
|
3197
|
+
padding: 16px 30px;
|
|
3198
|
+
align-items: center;
|
|
3199
|
+
gap: 20px;
|
|
3200
|
+
align-self: stretch;
|
|
3201
|
+
border-bottom: 1px solid ${Colors.LIGHT_GRAY.Hex};
|
|
3202
|
+
`;
|
|
3203
|
+
const Title = styled.div `
|
|
3204
|
+
display: flex;
|
|
3205
|
+
align-items: center;
|
|
3206
|
+
gap: 20px;
|
|
3207
|
+
`;
|
|
3208
|
+
const Info = styled.div `
|
|
3209
|
+
display: flex;
|
|
3210
|
+
flex-direction: column;
|
|
3211
|
+
align-items: flex-start;
|
|
3212
|
+
gap: 4px;
|
|
3213
|
+
flex: 1 0 0;
|
|
3214
|
+
`;
|
|
3215
|
+
const Breadcrumbs = styled.div `
|
|
3216
|
+
display: flex;
|
|
3217
|
+
align-items: center;
|
|
3218
|
+
gap: 4px;
|
|
3219
|
+
`;
|
|
3220
|
+
const Actions = styled.div `
|
|
3221
|
+
display: flex;
|
|
3222
|
+
align-items: center;
|
|
3223
|
+
gap: 8px;
|
|
2511
3224
|
`;
|
|
2512
3225
|
const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag, dataItemid, }) => {
|
|
2513
3226
|
const { format = 'primary', menuItems = [], label = '', enableHover = true, enableClick = false, show = false, maxHeight = '', } = buttonMenu || {};
|
|
@@ -2530,13 +3243,13 @@ const PageHeader = ({ title = '', breadcrumbs, actions, buttonMenu, tag, dataIte
|
|
|
2530
3243
|
return (React.createElement(Button, Object.assign({}, buttonProps, { "data-itemid": `${actionId}-button`, key: i, small: true }), label));
|
|
2531
3244
|
}),
|
|
2532
3245
|
menuItems.length ? (React.createElement(ButtonMenu, { "data-itemid": `${baseId}-button-menu`, enableClick: enableClick, enableHover: enableHover, format: format, label: label, maxHeight: maxHeight, menuItems: menuItems, show: show, small: true })) : null)) : null));
|
|
2533
|
-
};
|
|
2534
|
-
|
|
2535
|
-
const Wrapper$3 = styled.nav `
|
|
2536
|
-
box-sizing: border-box;
|
|
2537
|
-
display: flex;
|
|
2538
|
-
align-items: center;
|
|
2539
|
-
column-gap: 10px;
|
|
3246
|
+
};
|
|
3247
|
+
|
|
3248
|
+
const Wrapper$3 = styled.nav `
|
|
3249
|
+
box-sizing: border-box;
|
|
3250
|
+
display: flex;
|
|
3251
|
+
align-items: center;
|
|
3252
|
+
column-gap: 10px;
|
|
2540
3253
|
`;
|
|
2541
3254
|
const Pagination = (_a) => {
|
|
2542
3255
|
var { currentPage = 1, onClick, pageCount = 0, dataItemid, type = null } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount", "dataItemid", "type"]);
|
|
@@ -2566,52 +3279,52 @@ const Pagination = (_a) => {
|
|
|
2566
3279
|
value: `${p}`,
|
|
2567
3280
|
})), value: `${currentPage}` }),
|
|
2568
3281
|
React.createElement(Button, { "data-itemid": `${baseId}-next-button`, disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true, type: type })));
|
|
2569
|
-
};
|
|
2570
|
-
|
|
2571
|
-
const Wrapper$2 = styled.label `
|
|
2572
|
-
border-radius: 4px;
|
|
2573
|
-
padding: 4px 0px 4px 6px;
|
|
2574
|
-
margin-left: -6px;
|
|
2575
|
-
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
2576
|
-
display: flex;
|
|
2577
|
-
align-items: center;
|
|
2578
|
-
font-size: ${FontSizes.DEFAULT};
|
|
2579
|
-
line-height: 1.6em;
|
|
2580
|
-
box-sizing: border-box;
|
|
2581
|
-
position: relative;
|
|
2582
|
-
|
|
2583
|
-
&:focus-within {
|
|
2584
|
-
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
2585
|
-
}
|
|
3282
|
+
};
|
|
3283
|
+
|
|
3284
|
+
const Wrapper$2 = styled.label `
|
|
3285
|
+
border-radius: 4px;
|
|
3286
|
+
padding: 4px 0px 4px 6px;
|
|
3287
|
+
margin-left: -6px;
|
|
3288
|
+
cursor: ${props => (props.$disabled ? 'default' : 'pointer')};
|
|
3289
|
+
display: flex;
|
|
3290
|
+
align-items: center;
|
|
3291
|
+
font-size: ${FontSizes.DEFAULT};
|
|
3292
|
+
line-height: 1.6em;
|
|
3293
|
+
box-sizing: border-box;
|
|
3294
|
+
position: relative;
|
|
3295
|
+
|
|
3296
|
+
&:focus-within {
|
|
3297
|
+
background: ${props => `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.05)`};
|
|
3298
|
+
}
|
|
2586
3299
|
`;
|
|
2587
3300
|
Wrapper$2.defaultProps = { theme: EditableTheme };
|
|
2588
|
-
const Input = styled.input `
|
|
2589
|
-
font-size: 20px;
|
|
2590
|
-
margin: 0px;
|
|
2591
|
-
line-height: 1.6em;
|
|
2592
|
-
box-sizing: border-box;
|
|
2593
|
-
position: absolute;
|
|
2594
|
-
opacity: 0;
|
|
2595
|
-
cursor: pointer;
|
|
2596
|
-
height: 0;
|
|
2597
|
-
width: 0;
|
|
2598
|
-
&:checked + span {
|
|
2599
|
-
border-color: ${Colors.PRIMARY.Hex};
|
|
2600
|
-
}
|
|
2601
|
-
&:checked + span:after {
|
|
2602
|
-
background-color: ${Colors.PRIMARY.Hex};
|
|
2603
|
-
display: block;
|
|
2604
|
-
}
|
|
2605
|
-
&:disabled + span {
|
|
2606
|
-
background-color: #d3d3d3;
|
|
2607
|
-
border-color: #d3d3d3;
|
|
2608
|
-
}
|
|
2609
|
-
&:disabled + span:after {
|
|
2610
|
-
background-color: #fff;
|
|
2611
|
-
}
|
|
2612
|
-
&:checked:disabled + span:after {
|
|
2613
|
-
background-color: ${Colors.MEDIUM_GRAY.Hex};
|
|
2614
|
-
}
|
|
3301
|
+
const Input = styled.input `
|
|
3302
|
+
font-size: 20px;
|
|
3303
|
+
margin: 0px;
|
|
3304
|
+
line-height: 1.6em;
|
|
3305
|
+
box-sizing: border-box;
|
|
3306
|
+
position: absolute;
|
|
3307
|
+
opacity: 0;
|
|
3308
|
+
cursor: pointer;
|
|
3309
|
+
height: 0;
|
|
3310
|
+
width: 0;
|
|
3311
|
+
&:checked + span {
|
|
3312
|
+
border-color: ${Colors.PRIMARY.Hex};
|
|
3313
|
+
}
|
|
3314
|
+
&:checked + span:after {
|
|
3315
|
+
background-color: ${Colors.PRIMARY.Hex};
|
|
3316
|
+
display: block;
|
|
3317
|
+
}
|
|
3318
|
+
&:disabled + span {
|
|
3319
|
+
background-color: #d3d3d3;
|
|
3320
|
+
border-color: #d3d3d3;
|
|
3321
|
+
}
|
|
3322
|
+
&:disabled + span:after {
|
|
3323
|
+
background-color: #fff;
|
|
3324
|
+
}
|
|
3325
|
+
&:checked:disabled + span:after {
|
|
3326
|
+
background-color: ${Colors.MEDIUM_GRAY.Hex};
|
|
3327
|
+
}
|
|
2615
3328
|
`;
|
|
2616
3329
|
const getBackgroundColor = (props) => {
|
|
2617
3330
|
if (props.$isWarningError) {
|
|
@@ -2635,36 +3348,36 @@ const getBorderColor = (props) => {
|
|
|
2635
3348
|
return Colors.GRAY.Hex;
|
|
2636
3349
|
}
|
|
2637
3350
|
};
|
|
2638
|
-
const Check = styled.span `
|
|
2639
|
-
height: 17px;
|
|
2640
|
-
width: 17px;
|
|
2641
|
-
border-radius: 50%;
|
|
2642
|
-
background-color: #fff;
|
|
2643
|
-
border-width: 2px;
|
|
2644
|
-
border-style: solid;
|
|
2645
|
-
border-color: ${props => getBorderColor(props)};
|
|
2646
|
-
background-color: ${props => getBackgroundColor(props)};
|
|
2647
|
-
box-sizing: border-box;
|
|
2648
|
-
position: relative;
|
|
2649
|
-
&:after {
|
|
2650
|
-
content: '';
|
|
2651
|
-
position: absolute;
|
|
2652
|
-
top: 2px;
|
|
2653
|
-
left: 2px;
|
|
2654
|
-
width: 9px;
|
|
2655
|
-
height: 9px;
|
|
2656
|
-
border-radius: 50%;
|
|
2657
|
-
box-sizing: border-box;
|
|
2658
|
-
display: none;
|
|
2659
|
-
}
|
|
2660
|
-
`;
|
|
2661
|
-
const Label = styled.span `
|
|
2662
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2663
|
-
font-size: ${FontSizes.DEFAULT};
|
|
2664
|
-
font-weight: 400;
|
|
2665
|
-
color: ${Colors.BLACK.Hex};
|
|
2666
|
-
line-height: 1.6em;
|
|
2667
|
-
margin-left: 6px;
|
|
3351
|
+
const Check = styled.span `
|
|
3352
|
+
height: 17px;
|
|
3353
|
+
width: 17px;
|
|
3354
|
+
border-radius: 50%;
|
|
3355
|
+
background-color: #fff;
|
|
3356
|
+
border-width: 2px;
|
|
3357
|
+
border-style: solid;
|
|
3358
|
+
border-color: ${props => getBorderColor(props)};
|
|
3359
|
+
background-color: ${props => getBackgroundColor(props)};
|
|
3360
|
+
box-sizing: border-box;
|
|
3361
|
+
position: relative;
|
|
3362
|
+
&:after {
|
|
3363
|
+
content: '';
|
|
3364
|
+
position: absolute;
|
|
3365
|
+
top: 2px;
|
|
3366
|
+
left: 2px;
|
|
3367
|
+
width: 9px;
|
|
3368
|
+
height: 9px;
|
|
3369
|
+
border-radius: 50%;
|
|
3370
|
+
box-sizing: border-box;
|
|
3371
|
+
display: none;
|
|
3372
|
+
}
|
|
3373
|
+
`;
|
|
3374
|
+
const Label = styled.span `
|
|
3375
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3376
|
+
font-size: ${FontSizes.DEFAULT};
|
|
3377
|
+
font-weight: 400;
|
|
3378
|
+
color: ${Colors.BLACK.Hex};
|
|
3379
|
+
line-height: 1.6em;
|
|
3380
|
+
margin-left: 6px;
|
|
2668
3381
|
`;
|
|
2669
3382
|
const Radio = (_a) => {
|
|
2670
3383
|
var { children, disabled, checked, onChange, value, invalid, tooltip, tabIndex, dataItemid, isInvalidRedBackground = false, isWarningError = false } = _a, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value", "invalid", "tooltip", "tabIndex", "dataItemid", "isInvalidRedBackground", "isWarningError"]);
|
|
@@ -2675,8 +3388,8 @@ const Radio = (_a) => {
|
|
|
2675
3388
|
React.createElement(Label, { "data-itemid": `${baseId}-label` },
|
|
2676
3389
|
children,
|
|
2677
3390
|
tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)));
|
|
2678
|
-
};
|
|
2679
|
-
|
|
3391
|
+
};
|
|
3392
|
+
|
|
2680
3393
|
const RadioList = (_a) => {
|
|
2681
3394
|
var { disabled, onChange, options, value, dataItemid } = _a, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value", "dataItemid"]);
|
|
2682
3395
|
const baseId = dataItemid || 'radio-list';
|
|
@@ -2685,69 +3398,69 @@ const RadioList = (_a) => {
|
|
|
2685
3398
|
const optionId = `${baseId}-option-${index}`;
|
|
2686
3399
|
return (React.createElement(Radio, Object.assign({ checked: value === option.value, "data-itemid": optionId, disabled: disabled, key: option.value, onChange: onChange, value: option.value }, accessibleProps), label));
|
|
2687
3400
|
})));
|
|
2688
|
-
};
|
|
2689
|
-
|
|
2690
|
-
const StyledTable = styled.table `
|
|
2691
|
-
width: 100%;
|
|
2692
|
-
margin-top: 1px;
|
|
2693
|
-
table-layout: ${props => props.$tableLayout || 'auto'};
|
|
2694
|
-
border-collapse: collapse;
|
|
2695
|
-
text-indent: 0px;
|
|
2696
|
-
border-spacing: 0px;
|
|
2697
|
-
border-color: none;
|
|
2698
|
-
box-sizing: border-box;
|
|
2699
|
-
`;
|
|
2700
|
-
const Header = styled.th `
|
|
2701
|
-
padding: 12px !important;
|
|
2702
|
-
text-align: left;
|
|
2703
|
-
font-weight: 500;
|
|
2704
|
-
border-bottom: 1px solid #e5e5e5;
|
|
2705
|
-
border-top: 1px solid #e5e5e5;
|
|
2706
|
-
text-transform: uppercase;
|
|
2707
|
-
font-size: 12px;
|
|
2708
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2709
|
-
letter-spacing: 1px;
|
|
2710
|
-
white-space: nowrap;
|
|
2711
|
-
line-height: 1;
|
|
2712
|
-
position: relative;
|
|
2713
|
-
box-sizing: border-box;
|
|
2714
|
-
width: ${props => props.$width || 'auto'};
|
|
2715
|
-
cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
|
|
2716
|
-
color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
|
|
3401
|
+
};
|
|
3402
|
+
|
|
3403
|
+
const StyledTable = styled.table `
|
|
3404
|
+
width: 100%;
|
|
3405
|
+
margin-top: 1px;
|
|
3406
|
+
table-layout: ${props => props.$tableLayout || 'auto'};
|
|
3407
|
+
border-collapse: collapse;
|
|
3408
|
+
text-indent: 0px;
|
|
3409
|
+
border-spacing: 0px;
|
|
3410
|
+
border-color: none;
|
|
3411
|
+
box-sizing: border-box;
|
|
3412
|
+
`;
|
|
3413
|
+
const Header = styled.th `
|
|
3414
|
+
padding: 12px !important;
|
|
3415
|
+
text-align: left;
|
|
3416
|
+
font-weight: 500;
|
|
3417
|
+
border-bottom: 1px solid #e5e5e5;
|
|
3418
|
+
border-top: 1px solid #e5e5e5;
|
|
3419
|
+
text-transform: uppercase;
|
|
3420
|
+
font-size: 12px;
|
|
3421
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3422
|
+
letter-spacing: 1px;
|
|
3423
|
+
white-space: nowrap;
|
|
3424
|
+
line-height: 1;
|
|
3425
|
+
position: relative;
|
|
3426
|
+
box-sizing: border-box;
|
|
3427
|
+
width: ${props => props.$width || 'auto'};
|
|
3428
|
+
cursor: ${props => (props.$isSortable ? 'pointer' : 'default')};
|
|
3429
|
+
color: ${props => (props.$isSortable ? props.theme.PRIMARY_COLOR.Hex : Colors.BLACK.Hex)};
|
|
2717
3430
|
`;
|
|
2718
3431
|
Header.defaultProps = { theme: EditableTheme };
|
|
2719
|
-
const Row = styled.tr `
|
|
2720
|
-
cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
|
|
2721
|
-
transition: all 0.2s;
|
|
2722
|
-
background-color: ${props => props.$bgColor};
|
|
2723
|
-
box-sizing: border-box;
|
|
2724
|
-
&:hover {
|
|
2725
|
-
background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
|
|
2726
|
-
}
|
|
3432
|
+
const Row = styled.tr `
|
|
3433
|
+
cursor: ${props => (props.$isClickable ? 'pointer' : 'default')};
|
|
3434
|
+
transition: all 0.2s;
|
|
3435
|
+
background-color: ${props => props.$bgColor};
|
|
3436
|
+
box-sizing: border-box;
|
|
3437
|
+
&:hover {
|
|
3438
|
+
background-color: ${props => props.$isClickable ? `rgba(${props.theme.PRIMARY_COLOR.Rgb}, 0.1)` : props.$bgColor};
|
|
3439
|
+
}
|
|
2727
3440
|
`;
|
|
2728
3441
|
Row.defaultProps = { theme: EditableTheme };
|
|
2729
|
-
const Column = styled.td `
|
|
2730
|
-
padding: 16px 12px !important;
|
|
2731
|
-
font-size: ${FontSizes.DEFAULT} !important;
|
|
2732
|
-
font-weight: 400 !important;
|
|
2733
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2734
|
-
border: none !important;
|
|
2735
|
-
word-break: break-word;
|
|
2736
|
-
line-height: 1.4em;
|
|
2737
|
-
box-sizing: border-box;
|
|
2738
|
-
text-align: ${props => props.$align || 'left'};
|
|
2739
|
-
width: ${props => props.$width || 'auto'};
|
|
2740
|
-
`;
|
|
2741
|
-
const IconWrapper = styled.span `
|
|
2742
|
-
position: absolute;
|
|
2743
|
-
top: 50%;
|
|
2744
|
-
transform: translateY(-50%);
|
|
2745
|
-
margin-left: 2px;
|
|
2746
|
-
`;
|
|
2747
|
-
const StyledIcon$1 = styled(Icon) `
|
|
2748
|
-
> path {
|
|
2749
|
-
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
2750
|
-
}
|
|
3442
|
+
const Column = styled.td `
|
|
3443
|
+
padding: 16px 12px !important;
|
|
3444
|
+
font-size: ${FontSizes.DEFAULT} !important;
|
|
3445
|
+
font-weight: 400 !important;
|
|
3446
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3447
|
+
border: none !important;
|
|
3448
|
+
word-break: break-word;
|
|
3449
|
+
line-height: 1.4em;
|
|
3450
|
+
box-sizing: border-box;
|
|
3451
|
+
text-align: ${props => props.$align || 'left'};
|
|
3452
|
+
width: ${props => props.$width || 'auto'};
|
|
3453
|
+
`;
|
|
3454
|
+
const IconWrapper = styled.span `
|
|
3455
|
+
position: absolute;
|
|
3456
|
+
top: 50%;
|
|
3457
|
+
transform: translateY(-50%);
|
|
3458
|
+
margin-left: 2px;
|
|
3459
|
+
`;
|
|
3460
|
+
const StyledIcon$1 = styled(Icon) `
|
|
3461
|
+
> path {
|
|
3462
|
+
fill: ${props => props.theme.PRIMARY_COLOR.Hex} !important;
|
|
3463
|
+
}
|
|
2751
3464
|
`;
|
|
2752
3465
|
StyledIcon$1.defaultProps = { theme: EditableTheme };
|
|
2753
3466
|
const Table = (_a) => {
|
|
@@ -2769,55 +3482,55 @@ const Table = (_a) => {
|
|
|
2769
3482
|
return (React.createElement(Column, { "$align": columns[j].align, "$width": columns[j].width, "data-itemid": `${columnId}-column`, key: j }, column.render ? column.render(row) : row[column.id] || 'N/A'));
|
|
2770
3483
|
})));
|
|
2771
3484
|
}))) : null));
|
|
2772
|
-
};
|
|
2773
|
-
|
|
2774
|
-
const Wrapper$1 = styled.div `
|
|
2775
|
-
display: flex;
|
|
2776
|
-
box-sizing: border-box;
|
|
2777
|
-
align-items: flex-end;
|
|
2778
|
-
border-top: 1px solid #e5e5e5;
|
|
2779
|
-
border-bottom: 1px solid #e5e5e5;
|
|
2780
|
-
flex-shrink: 0;
|
|
2781
|
-
align-self: stretch;
|
|
2782
|
-
padding: 0;
|
|
2783
|
-
margin: 0;
|
|
2784
|
-
`;
|
|
2785
|
-
const Tab = styled.div `
|
|
2786
|
-
display: flex;
|
|
2787
|
-
align-items: center;
|
|
2788
|
-
gap: 6px;
|
|
2789
|
-
font-size: ${FontSizes.DEFAULT};
|
|
2790
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2791
|
-
font-weight: ${props => (props.$isActive ? 500 : 400)};
|
|
2792
|
-
color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
2793
|
-
line-height: 1em;
|
|
2794
|
-
padding: 16px 30px 12px;
|
|
2795
|
-
margin: 0 0 -1px 0;
|
|
2796
|
-
border-bottom-width: 4px;
|
|
2797
|
-
border-bottom-style: solid;
|
|
2798
|
-
border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
|
|
2799
|
-
cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
|
|
2800
|
-
box-sizing: border-box;
|
|
2801
|
-
&:hover {
|
|
2802
|
-
color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
|
|
2803
|
-
font-weight: 500;
|
|
2804
|
-
}
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3487
|
+
const Wrapper$1 = styled.div `
|
|
3488
|
+
display: flex;
|
|
3489
|
+
box-sizing: border-box;
|
|
3490
|
+
align-items: flex-end;
|
|
3491
|
+
border-top: 1px solid #e5e5e5;
|
|
3492
|
+
border-bottom: 1px solid #e5e5e5;
|
|
3493
|
+
flex-shrink: 0;
|
|
3494
|
+
align-self: stretch;
|
|
3495
|
+
padding: 0;
|
|
3496
|
+
margin: 0;
|
|
3497
|
+
`;
|
|
3498
|
+
const Tab = styled.div `
|
|
3499
|
+
display: flex;
|
|
3500
|
+
align-items: center;
|
|
3501
|
+
gap: 6px;
|
|
3502
|
+
font-size: ${FontSizes.DEFAULT};
|
|
3503
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3504
|
+
font-weight: ${props => (props.$isActive ? 500 : 400)};
|
|
3505
|
+
color: ${props => (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex)};
|
|
3506
|
+
line-height: 1em;
|
|
3507
|
+
padding: 16px 30px 12px;
|
|
3508
|
+
margin: 0 0 -1px 0;
|
|
3509
|
+
border-bottom-width: 4px;
|
|
3510
|
+
border-bottom-style: solid;
|
|
3511
|
+
border-bottom-color: ${props => props.$isActive ? props.theme.PRIMARY_COLOR.Hex : 'transparent'};
|
|
3512
|
+
cursor: ${props => (props.$isActive ? 'default' : 'pointer')};
|
|
3513
|
+
box-sizing: border-box;
|
|
3514
|
+
&:hover {
|
|
3515
|
+
color: ${props => (props.$isActive ? Colors.BLACK.Hex : props.theme.PRIMARY_COLOR.Hex)};
|
|
3516
|
+
font-weight: 500;
|
|
3517
|
+
}
|
|
2805
3518
|
`;
|
|
2806
3519
|
Tab.defaultProps = { theme: EditableTheme };
|
|
2807
|
-
const Badge = styled.div `
|
|
2808
|
-
display: flex;
|
|
2809
|
-
width: 18px;
|
|
2810
|
-
height: 18px;
|
|
2811
|
-
justify-content: center;
|
|
2812
|
-
align-items: center;
|
|
2813
|
-
border-radius: 9px;
|
|
2814
|
-
background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
|
|
2815
|
-
color: #fff;
|
|
2816
|
-
font-family: ${FontStyles.DEFAULT};
|
|
2817
|
-
font-size: 12px;
|
|
2818
|
-
font-weight: 500;
|
|
2819
|
-
line-height: 1;
|
|
2820
|
-
letter-spacing: 1px;
|
|
3520
|
+
const Badge = styled.div `
|
|
3521
|
+
display: flex;
|
|
3522
|
+
width: 18px;
|
|
3523
|
+
height: 18px;
|
|
3524
|
+
justify-content: center;
|
|
3525
|
+
align-items: center;
|
|
3526
|
+
border-radius: 9px;
|
|
3527
|
+
background: ${props => (props.$isError ? Colors.RED.Hex : props.theme.PRIMARY_COLOR.Hex)};
|
|
3528
|
+
color: #fff;
|
|
3529
|
+
font-family: ${FontStyles.DEFAULT};
|
|
3530
|
+
font-size: 12px;
|
|
3531
|
+
font-weight: 500;
|
|
3532
|
+
line-height: 1;
|
|
3533
|
+
letter-spacing: 1px;
|
|
2821
3534
|
`;
|
|
2822
3535
|
Badge.defaultProps = { theme: EditableTheme };
|
|
2823
3536
|
const Tabs = (_a) => {
|
|
@@ -2831,29 +3544,29 @@ const Tabs = (_a) => {
|
|
|
2831
3544
|
label));
|
|
2832
3545
|
})));
|
|
2833
3546
|
};
|
|
2834
|
-
Tabs.defaultProps = {};
|
|
2835
|
-
|
|
2836
|
-
const Track = styled.div `
|
|
2837
|
-
height: 24px;
|
|
2838
|
-
border-radius: 12px;
|
|
2839
|
-
background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
|
|
2840
|
-
display: flex;
|
|
2841
|
-
align-items: center;
|
|
2842
|
-
cursor: pointer;
|
|
2843
|
-
width: 40px;
|
|
2844
|
-
padding: 2px;
|
|
2845
|
-
box-sizing: border-box;
|
|
2846
|
-
`;
|
|
2847
|
-
const Handle = styled.div `
|
|
2848
|
-
width: 20px;
|
|
2849
|
-
height: 20px;
|
|
2850
|
-
border-radius: 10px;
|
|
2851
|
-
background: #ffffff;
|
|
2852
|
-
margin-left: ${props => (props.$on ? 'auto' : '0px')};
|
|
2853
|
-
display: flex;
|
|
2854
|
-
align-items: center;
|
|
2855
|
-
justify-content: center;
|
|
2856
|
-
box-sizing: border-box;
|
|
3547
|
+
Tabs.defaultProps = {};
|
|
3548
|
+
|
|
3549
|
+
const Track = styled.div `
|
|
3550
|
+
height: 24px;
|
|
3551
|
+
border-radius: 12px;
|
|
3552
|
+
background: ${props => (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex)};
|
|
3553
|
+
display: flex;
|
|
3554
|
+
align-items: center;
|
|
3555
|
+
cursor: pointer;
|
|
3556
|
+
width: 40px;
|
|
3557
|
+
padding: 2px;
|
|
3558
|
+
box-sizing: border-box;
|
|
3559
|
+
`;
|
|
3560
|
+
const Handle = styled.div `
|
|
3561
|
+
width: 20px;
|
|
3562
|
+
height: 20px;
|
|
3563
|
+
border-radius: 10px;
|
|
3564
|
+
background: #ffffff;
|
|
3565
|
+
margin-left: ${props => (props.$on ? 'auto' : '0px')};
|
|
3566
|
+
display: flex;
|
|
3567
|
+
align-items: center;
|
|
3568
|
+
justify-content: center;
|
|
3569
|
+
box-sizing: border-box;
|
|
2857
3570
|
`;
|
|
2858
3571
|
const Toggle = (_a) => {
|
|
2859
3572
|
var { onClick, on, dataItemid } = _a, accessibleProps = __rest(_a, ["onClick", "on", "dataItemid"]);
|
|
@@ -2863,32 +3576,32 @@ const Toggle = (_a) => {
|
|
|
2863
3576
|
React.createElement(Handle, { "$on": on, "data-itemid": `${baseId}-handle` },
|
|
2864
3577
|
React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: on ? js.mdiCheck : js.mdiClose, size: '16px' }))));
|
|
2865
3578
|
};
|
|
2866
|
-
Toggle.defaultProps = {};
|
|
2867
|
-
|
|
2868
|
-
const Container = styled.div `
|
|
2869
|
-
width: 100%;
|
|
2870
|
-
padding: 40px auto;
|
|
2871
|
-
gap: 20px;
|
|
2872
|
-
display: flex;
|
|
2873
|
-
flex-direction: column;
|
|
2874
|
-
justify-items: center;
|
|
2875
|
-
align-items: center;
|
|
2876
|
-
`;
|
|
2877
|
-
const Wrapper = styled.div `
|
|
2878
|
-
gap: 10px;
|
|
2879
|
-
display: flex;
|
|
2880
|
-
flex-direction: column;
|
|
2881
|
-
justify-items: center;
|
|
2882
|
-
align-items: center;
|
|
2883
|
-
`;
|
|
2884
|
-
const StyledIcon = styled.div `
|
|
2885
|
-
display: flex;
|
|
2886
|
-
align-items: center;
|
|
2887
|
-
justify-content: center;
|
|
2888
|
-
width: 80px;
|
|
2889
|
-
height: 80px;
|
|
2890
|
-
border-radius: 40px;
|
|
2891
|
-
background: #f5f5f5;
|
|
3579
|
+
Toggle.defaultProps = {};
|
|
3580
|
+
|
|
3581
|
+
const Container = styled.div `
|
|
3582
|
+
width: 100%;
|
|
3583
|
+
padding: 40px auto;
|
|
3584
|
+
gap: 20px;
|
|
3585
|
+
display: flex;
|
|
3586
|
+
flex-direction: column;
|
|
3587
|
+
justify-items: center;
|
|
3588
|
+
align-items: center;
|
|
3589
|
+
`;
|
|
3590
|
+
const Wrapper = styled.div `
|
|
3591
|
+
gap: 10px;
|
|
3592
|
+
display: flex;
|
|
3593
|
+
flex-direction: column;
|
|
3594
|
+
justify-items: center;
|
|
3595
|
+
align-items: center;
|
|
3596
|
+
`;
|
|
3597
|
+
const StyledIcon = styled.div `
|
|
3598
|
+
display: flex;
|
|
3599
|
+
align-items: center;
|
|
3600
|
+
justify-content: center;
|
|
3601
|
+
width: 80px;
|
|
3602
|
+
height: 80px;
|
|
3603
|
+
border-radius: 40px;
|
|
3604
|
+
background: #f5f5f5;
|
|
2892
3605
|
`;
|
|
2893
3606
|
const ZeroState = (_a) => {
|
|
2894
3607
|
var { icon, title, description, action, dataItemid } = _a, accessibleProps = __rest(_a, ["icon", "title", "description", "action", "dataItemid"]);
|
|
@@ -2900,54 +3613,54 @@ const ZeroState = (_a) => {
|
|
|
2900
3613
|
React.createElement(Heading, { children: title, "data-itemid": `${baseId}-heading`, type: 'tertiary' }),
|
|
2901
3614
|
description && (React.createElement(Copy, { align: 'center', children: description, color: 'GRAY', "data-itemid": `${baseId}-description`, type: 'default' }))),
|
|
2902
3615
|
action && (React.createElement(Button, { children: action.children, "data-itemid": `${baseId}-button`, disabled: action.disabled, format: action.format, icon: action.icon, onClick: action.onClick }))));
|
|
2903
|
-
};
|
|
2904
|
-
|
|
2905
|
-
exports.Accordion = Accordion;
|
|
2906
|
-
exports.ActionDialog = ActionDialog;
|
|
2907
|
-
exports.Alert = Alert;
|
|
2908
|
-
exports.AppHeader = AppHeader;
|
|
2909
|
-
exports.AppMenu = AppMenu;
|
|
2910
|
-
exports.BulkActionBar = BulkActionBar;
|
|
2911
|
-
exports.Button = Button;
|
|
2912
|
-
exports.ButtonMenu = ButtonMenu;
|
|
2913
|
-
exports.Checkbox = Checkbox;
|
|
2914
|
-
exports.Checklist = Checklist;
|
|
2915
|
-
exports.Colors = Colors;
|
|
2916
|
-
exports.Copy = Copy;
|
|
2917
|
-
exports.DatePicker = DatePicker;
|
|
2918
|
-
exports.Drawer = Drawer;
|
|
2919
|
-
exports.EditableTheme = EditableTheme;
|
|
2920
|
-
exports.Field = Field;
|
|
2921
|
-
exports.FieldGroup = FieldGroup;
|
|
2922
|
-
exports.FileUpload = FileUpload;
|
|
2923
|
-
exports.FontSizes = FontSizes;
|
|
2924
|
-
exports.FontStyles = FontStyles;
|
|
2925
|
-
exports.Heading = Heading;
|
|
2926
|
-
exports.Input = Input$1;
|
|
2927
|
-
exports.Link = Link;
|
|
2928
|
-
exports.Loader = Loader;
|
|
2929
|
-
exports.Logo = Logo;
|
|
2930
|
-
exports.Modal = Modal;
|
|
2931
|
-
exports.MoreMenu = MoreMenu;
|
|
2932
|
-
exports.MultiSelect = MultiSelect;
|
|
2933
|
-
exports.PageHeader = PageHeader;
|
|
2934
|
-
exports.Pagination = Pagination;
|
|
2935
|
-
exports.ProgressBar = ProgressBar;
|
|
2936
|
-
exports.Radio = Radio;
|
|
2937
|
-
exports.RadioList = RadioList;
|
|
2938
|
-
exports.Select = Select;
|
|
2939
|
-
exports.Table = Table;
|
|
2940
|
-
exports.Tabs = Tabs;
|
|
2941
|
-
exports.Tag = Tag;
|
|
2942
|
-
exports.Toggle = Toggle;
|
|
2943
|
-
exports.Tooltip = Tooltip;
|
|
2944
|
-
exports.ZeroState = ZeroState;
|
|
2945
|
-
exports.formatAsMask = formatAsMask;
|
|
2946
|
-
exports.formatAsPhone = formatAsPhone;
|
|
2947
|
-
exports.formatAsSsn = formatAsSsn;
|
|
2948
|
-
exports.getAgesFromDob = getAgesFromDob;
|
|
2949
|
-
exports.getDaysForMonth = getDaysForMonth;
|
|
2950
|
-
exports.getYears = getYears;
|
|
2951
|
-
exports.validateEmail = validateEmail;
|
|
2952
|
-
exports.validatePhone = validatePhone;
|
|
2953
|
-
//# sourceMappingURL=index.js.map
|
|
3616
|
+
};
|
|
3617
|
+
|
|
3618
|
+
exports.Accordion = Accordion;
|
|
3619
|
+
exports.ActionDialog = ActionDialog;
|
|
3620
|
+
exports.Alert = Alert;
|
|
3621
|
+
exports.AppHeader = AppHeader;
|
|
3622
|
+
exports.AppMenu = AppMenu;
|
|
3623
|
+
exports.BulkActionBar = BulkActionBar;
|
|
3624
|
+
exports.Button = Button;
|
|
3625
|
+
exports.ButtonMenu = ButtonMenu;
|
|
3626
|
+
exports.Checkbox = Checkbox;
|
|
3627
|
+
exports.Checklist = Checklist;
|
|
3628
|
+
exports.Colors = Colors;
|
|
3629
|
+
exports.Copy = Copy;
|
|
3630
|
+
exports.DatePicker = DatePicker;
|
|
3631
|
+
exports.Drawer = Drawer;
|
|
3632
|
+
exports.EditableTheme = EditableTheme;
|
|
3633
|
+
exports.Field = Field;
|
|
3634
|
+
exports.FieldGroup = FieldGroup;
|
|
3635
|
+
exports.FileUpload = FileUpload;
|
|
3636
|
+
exports.FontSizes = FontSizes;
|
|
3637
|
+
exports.FontStyles = FontStyles;
|
|
3638
|
+
exports.Heading = Heading;
|
|
3639
|
+
exports.Input = Input$1;
|
|
3640
|
+
exports.Link = Link;
|
|
3641
|
+
exports.Loader = Loader;
|
|
3642
|
+
exports.Logo = Logo;
|
|
3643
|
+
exports.Modal = Modal;
|
|
3644
|
+
exports.MoreMenu = MoreMenu;
|
|
3645
|
+
exports.MultiSelect = MultiSelect;
|
|
3646
|
+
exports.PageHeader = PageHeader;
|
|
3647
|
+
exports.Pagination = Pagination;
|
|
3648
|
+
exports.ProgressBar = ProgressBar;
|
|
3649
|
+
exports.Radio = Radio;
|
|
3650
|
+
exports.RadioList = RadioList;
|
|
3651
|
+
exports.Select = Select;
|
|
3652
|
+
exports.Table = Table;
|
|
3653
|
+
exports.Tabs = Tabs;
|
|
3654
|
+
exports.Tag = Tag;
|
|
3655
|
+
exports.Toggle = Toggle;
|
|
3656
|
+
exports.Tooltip = Tooltip;
|
|
3657
|
+
exports.ZeroState = ZeroState;
|
|
3658
|
+
exports.formatAsMask = formatAsMask;
|
|
3659
|
+
exports.formatAsPhone = formatAsPhone;
|
|
3660
|
+
exports.formatAsSsn = formatAsSsn;
|
|
3661
|
+
exports.getAgesFromDob = getAgesFromDob;
|
|
3662
|
+
exports.getDaysForMonth = getDaysForMonth;
|
|
3663
|
+
exports.getYears = getYears;
|
|
3664
|
+
exports.validateEmail = validateEmail;
|
|
3665
|
+
exports.validatePhone = validatePhone;
|
|
3666
|
+
//# sourceMappingURL=index.js.map
|