@bpmn-io/form-js-viewer 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/form-js-base.css +83 -4
- package/dist/assets/form-js.css +78 -4
- package/dist/index.cjs +524 -181
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +524 -182
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/render/components/Errors.d.ts +13 -1
- package/dist/types/render/components/form-fields/DocumentPreview.d.ts +61 -0
- package/dist/types/render/components/index.d.ts +3 -2
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1690,7 +1690,7 @@ function useCleanupMultiSelectValue(props) {
|
|
|
1690
1690
|
}, [field, options, onChange, memoizedValues, loadState]);
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
|
-
const type$
|
|
1693
|
+
const type$j = 'button';
|
|
1694
1694
|
function Button(props) {
|
|
1695
1695
|
const {
|
|
1696
1696
|
disabled,
|
|
@@ -1705,7 +1705,7 @@ function Button(props) {
|
|
|
1705
1705
|
debug: true
|
|
1706
1706
|
});
|
|
1707
1707
|
return jsx("div", {
|
|
1708
|
-
class: formFieldClasses(type$
|
|
1708
|
+
class: formFieldClasses(type$j),
|
|
1709
1709
|
children: jsx("button", {
|
|
1710
1710
|
class: "fjs-button",
|
|
1711
1711
|
type: action,
|
|
@@ -1717,7 +1717,7 @@ function Button(props) {
|
|
|
1717
1717
|
});
|
|
1718
1718
|
}
|
|
1719
1719
|
Button.config = {
|
|
1720
|
-
type: type$
|
|
1720
|
+
type: type$j,
|
|
1721
1721
|
keyed: false,
|
|
1722
1722
|
name: 'Button',
|
|
1723
1723
|
group: 'action',
|
|
@@ -1746,6 +1746,14 @@ function Description(props) {
|
|
|
1746
1746
|
});
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
+
/**
|
|
1750
|
+
* @typedef Props
|
|
1751
|
+
* @property {string} id
|
|
1752
|
+
* @property {string[]} errors
|
|
1753
|
+
*
|
|
1754
|
+
* @param {Props} props
|
|
1755
|
+
* @returns {import("preact").JSX.Element}
|
|
1756
|
+
*/
|
|
1749
1757
|
function Errors(props) {
|
|
1750
1758
|
const {
|
|
1751
1759
|
errors,
|
|
@@ -1793,7 +1801,7 @@ function Label(props) {
|
|
|
1793
1801
|
});
|
|
1794
1802
|
}
|
|
1795
1803
|
|
|
1796
|
-
const type$
|
|
1804
|
+
const type$i = 'checkbox';
|
|
1797
1805
|
function Checkbox(props) {
|
|
1798
1806
|
const {
|
|
1799
1807
|
disabled,
|
|
@@ -1823,7 +1831,7 @@ function Checkbox(props) {
|
|
|
1823
1831
|
const descriptionId = `${domId}-description`;
|
|
1824
1832
|
const errorMessageId = `${domId}-error-message`;
|
|
1825
1833
|
return jsxs("div", {
|
|
1826
|
-
class: classNames(formFieldClasses(type$
|
|
1834
|
+
class: classNames(formFieldClasses(type$i, {
|
|
1827
1835
|
errors,
|
|
1828
1836
|
disabled,
|
|
1829
1837
|
readonly
|
|
@@ -1860,7 +1868,7 @@ function Checkbox(props) {
|
|
|
1860
1868
|
});
|
|
1861
1869
|
}
|
|
1862
1870
|
Checkbox.config = {
|
|
1863
|
-
type: type$
|
|
1871
|
+
type: type$i,
|
|
1864
1872
|
keyed: true,
|
|
1865
1873
|
name: 'Checkbox',
|
|
1866
1874
|
group: 'selection',
|
|
@@ -1874,7 +1882,7 @@ Checkbox.config = {
|
|
|
1874
1882
|
})
|
|
1875
1883
|
};
|
|
1876
1884
|
|
|
1877
|
-
const type$
|
|
1885
|
+
const type$h = 'checklist';
|
|
1878
1886
|
function Checklist(props) {
|
|
1879
1887
|
const {
|
|
1880
1888
|
disabled,
|
|
@@ -1929,7 +1937,7 @@ function Checklist(props) {
|
|
|
1929
1937
|
const descriptionId = `${domId}-description`;
|
|
1930
1938
|
const errorMessageId = `${domId}-error-message`;
|
|
1931
1939
|
return jsxs("div", {
|
|
1932
|
-
class: classNames(formFieldClasses(type$
|
|
1940
|
+
class: classNames(formFieldClasses(type$h, {
|
|
1933
1941
|
errors,
|
|
1934
1942
|
disabled,
|
|
1935
1943
|
readonly
|
|
@@ -1974,7 +1982,7 @@ function Checklist(props) {
|
|
|
1974
1982
|
});
|
|
1975
1983
|
}
|
|
1976
1984
|
Checklist.config = {
|
|
1977
|
-
type: type$
|
|
1985
|
+
type: type$h,
|
|
1978
1986
|
keyed: true,
|
|
1979
1987
|
name: 'Checkbox group',
|
|
1980
1988
|
group: 'selection',
|
|
@@ -2293,16 +2301,16 @@ Default.config = {
|
|
|
2293
2301
|
getSubheading: field => field.id
|
|
2294
2302
|
};
|
|
2295
2303
|
|
|
2296
|
-
var _path$
|
|
2297
|
-
function _extends$
|
|
2304
|
+
var _path$z;
|
|
2305
|
+
function _extends$A() { return _extends$A = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$A.apply(null, arguments); }
|
|
2298
2306
|
var SvgCalendar = function SvgCalendar(props) {
|
|
2299
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2307
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
2300
2308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2301
2309
|
width: 14,
|
|
2302
2310
|
height: 15,
|
|
2303
2311
|
fill: "none",
|
|
2304
2312
|
viewBox: "0 0 28 30"
|
|
2305
|
-
}, props), _path$
|
|
2313
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
2306
2314
|
fill: "currentColor",
|
|
2307
2315
|
fillRule: "evenodd",
|
|
2308
2316
|
d: "M19 2H9V0H7v2H2a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-5V0h-2zM7 7V4H2v5h24V4h-5v3h-2V4H9v3zm-5 4v17h24V11z",
|
|
@@ -2571,16 +2579,16 @@ function Datepicker(props) {
|
|
|
2571
2579
|
});
|
|
2572
2580
|
}
|
|
2573
2581
|
|
|
2574
|
-
var _path$
|
|
2575
|
-
function _extends$
|
|
2582
|
+
var _path$y, _path2$4;
|
|
2583
|
+
function _extends$z() { return _extends$z = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$z.apply(null, arguments); }
|
|
2576
2584
|
var SvgClock = function SvgClock(props) {
|
|
2577
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
2585
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
2578
2586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2579
2587
|
width: 16,
|
|
2580
2588
|
height: 16,
|
|
2581
2589
|
fill: "none",
|
|
2582
2590
|
viewBox: "0 0 28 29"
|
|
2583
|
-
}, props), _path$
|
|
2591
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
2584
2592
|
fill: "currentColor",
|
|
2585
2593
|
d: "M13 14.41 18.59 20 20 18.59l-5-5.01V5h-2z"
|
|
2586
2594
|
})), _path2$4 || (_path2$4 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -2853,7 +2861,7 @@ function Timepicker(props) {
|
|
|
2853
2861
|
});
|
|
2854
2862
|
}
|
|
2855
2863
|
|
|
2856
|
-
const type$
|
|
2864
|
+
const type$g = 'datetime';
|
|
2857
2865
|
function Datetime(props) {
|
|
2858
2866
|
const {
|
|
2859
2867
|
disabled,
|
|
@@ -3024,7 +3032,7 @@ function Datetime(props) {
|
|
|
3024
3032
|
'aria-describedby': [descriptionId, errorMessageId].join(' ')
|
|
3025
3033
|
};
|
|
3026
3034
|
return jsxs("div", {
|
|
3027
|
-
class: formFieldClasses(type$
|
|
3035
|
+
class: formFieldClasses(type$g, {
|
|
3028
3036
|
errors: allErrors,
|
|
3029
3037
|
disabled,
|
|
3030
3038
|
readonly
|
|
@@ -3049,7 +3057,7 @@ function Datetime(props) {
|
|
|
3049
3057
|
});
|
|
3050
3058
|
}
|
|
3051
3059
|
Datetime.config = {
|
|
3052
|
-
type: type$
|
|
3060
|
+
type: type$g,
|
|
3053
3061
|
keyed: true,
|
|
3054
3062
|
name: 'Date time',
|
|
3055
3063
|
group: 'basic-input',
|
|
@@ -3115,7 +3123,7 @@ Group.config = {
|
|
|
3115
3123
|
})
|
|
3116
3124
|
};
|
|
3117
3125
|
|
|
3118
|
-
const type$
|
|
3126
|
+
const type$f = 'iframe';
|
|
3119
3127
|
const DEFAULT_HEIGHT = 300;
|
|
3120
3128
|
function IFrame(props) {
|
|
3121
3129
|
const {
|
|
@@ -3145,7 +3153,7 @@ function IFrame(props) {
|
|
|
3145
3153
|
setIframeRefresh(count => count + 1);
|
|
3146
3154
|
}, [sandbox, allow]);
|
|
3147
3155
|
return jsxs("div", {
|
|
3148
|
-
class: formFieldClasses(type$
|
|
3156
|
+
class: formFieldClasses(type$f, {
|
|
3149
3157
|
disabled,
|
|
3150
3158
|
readonly
|
|
3151
3159
|
}),
|
|
@@ -3180,7 +3188,7 @@ function IFramePlaceholder(props) {
|
|
|
3180
3188
|
});
|
|
3181
3189
|
}
|
|
3182
3190
|
IFrame.config = {
|
|
3183
|
-
type: type$
|
|
3191
|
+
type: type$f,
|
|
3184
3192
|
keyed: false,
|
|
3185
3193
|
name: 'iFrame',
|
|
3186
3194
|
group: 'container',
|
|
@@ -3193,42 +3201,42 @@ IFrame.config = {
|
|
|
3193
3201
|
})
|
|
3194
3202
|
};
|
|
3195
3203
|
|
|
3196
|
-
var _path$
|
|
3197
|
-
function _extends$
|
|
3204
|
+
var _path$x;
|
|
3205
|
+
function _extends$y() { return _extends$y = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$y.apply(null, arguments); }
|
|
3198
3206
|
var SvgButton = function SvgButton(props) {
|
|
3199
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3207
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
3200
3208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3201
3209
|
width: 54,
|
|
3202
3210
|
height: 54,
|
|
3203
3211
|
fill: "currentcolor"
|
|
3204
|
-
}, props), _path$
|
|
3212
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
3205
3213
|
fillRule: "evenodd",
|
|
3206
3214
|
d: "M45 17a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V20a3 3 0 0 1 3-3zm-9 8.889H18v2.222h18z"
|
|
3207
3215
|
})));
|
|
3208
3216
|
};
|
|
3209
3217
|
|
|
3210
|
-
var _path$
|
|
3211
|
-
function _extends$
|
|
3218
|
+
var _path$w;
|
|
3219
|
+
function _extends$x() { return _extends$x = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$x.apply(null, arguments); }
|
|
3212
3220
|
var SvgCheckbox = function SvgCheckbox(props) {
|
|
3213
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3221
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
3214
3222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3215
3223
|
width: 54,
|
|
3216
3224
|
height: 54,
|
|
3217
3225
|
fill: "currentcolor"
|
|
3218
|
-
}, props), _path$
|
|
3226
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
3219
3227
|
d: "M34 18H20a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V20a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L25 29.17l7.59-7.59L34 23z"
|
|
3220
3228
|
})));
|
|
3221
3229
|
};
|
|
3222
3230
|
|
|
3223
|
-
var _path$
|
|
3224
|
-
function _extends$
|
|
3231
|
+
var _path$v;
|
|
3232
|
+
function _extends$w() { return _extends$w = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$w.apply(null, arguments); }
|
|
3225
3233
|
var SvgChecklist = function SvgChecklist(props) {
|
|
3226
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3234
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
3227
3235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3228
3236
|
width: 54,
|
|
3229
3237
|
height: 54,
|
|
3230
3238
|
fill: "none"
|
|
3231
|
-
}, props), _path$
|
|
3239
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
3232
3240
|
fill: "currentColor",
|
|
3233
3241
|
fillRule: "evenodd",
|
|
3234
3242
|
d: "M14.35 24.75H19v4.65h-4.65zm-1.414-1.414a2 2 0 0 1 1.414-.586H19a2 2 0 0 1 2 2v4.65a2 2 0 0 1-2 2h-4.65a2 2 0 0 1-2-2v-4.65a2 2 0 0 1 .586-1.414M14.35 37.05H19v4.65h-4.65zm-1.414-1.414a2 2 0 0 1 1.414-.586H19a2 2 0 0 1 2 2v4.65a2 2 0 0 1-2 2h-4.65a2 2 0 0 1-2-2v-4.65a2 2 0 0 1 .586-1.414M14.35 12.45H19v4.65h-4.65zm-1.414-1.414a2 2 0 0 1 1.414-.586H19a2 2 0 0 1 2 2v4.65a2 2 0 0 1-2 2h-4.65a2 2 0 0 1-2-2v-4.65a2 2 0 0 1 .586-1.414m12.007 14.977a1 1 0 0 0-.293.707v.65a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-.65a1 1 0 0 0-1-1h-15a1 1 0 0 0-.707.293m0 12.3a1 1 0 0 0-.293.707v.65a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-.65a1 1 0 0 0-1-1h-15a1 1 0 0 0-.707.293m0-24.6a1 1 0 0 0-.293.707v.65a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-.65a1 1 0 0 0-1-1h-15a1 1 0 0 0-.707.293",
|
|
@@ -3236,15 +3244,15 @@ var SvgChecklist = function SvgChecklist(props) {
|
|
|
3236
3244
|
})));
|
|
3237
3245
|
};
|
|
3238
3246
|
|
|
3239
|
-
var _path$
|
|
3240
|
-
function _extends$
|
|
3247
|
+
var _path$u, _path2$3, _path3;
|
|
3248
|
+
function _extends$v() { return _extends$v = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$v.apply(null, arguments); }
|
|
3241
3249
|
var SvgDatetime = function SvgDatetime(props) {
|
|
3242
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3250
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
3243
3251
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3244
3252
|
width: 54,
|
|
3245
3253
|
height: 54,
|
|
3246
3254
|
fill: "currentcolor"
|
|
3247
|
-
}, props), _path$
|
|
3255
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
3248
3256
|
fillRule: "evenodd",
|
|
3249
3257
|
d: "M37.908 13.418h-5.004v-2.354h-1.766v2.354H21.13v-2.354h-1.766v2.354H14.36a2.07 2.07 0 0 0-2.06 2.06v23.549a2.07 2.07 0 0 0 2.06 2.06h6.77v-1.766h-6.358a.707.707 0 0 1-.706-.706V15.89c0-.39.316-.707.706-.707h4.592v2.355h1.766v-2.355h10.008v2.355h1.766v-2.355h4.592a.71.71 0 0 1 .707.707v6.358h1.765v-6.77c0-1.133-.927-2.06-2.06-2.06"
|
|
3250
3258
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -3255,15 +3263,15 @@ var SvgDatetime = function SvgDatetime(props) {
|
|
|
3255
3263
|
})));
|
|
3256
3264
|
};
|
|
3257
3265
|
|
|
3258
|
-
var _path$
|
|
3259
|
-
function _extends$
|
|
3266
|
+
var _path$t, _path2$2;
|
|
3267
|
+
function _extends$u() { return _extends$u = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$u.apply(null, arguments); }
|
|
3260
3268
|
var SvgTaglist = function SvgTaglist(props) {
|
|
3261
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3269
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
3262
3270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3263
3271
|
width: 54,
|
|
3264
3272
|
height: 54,
|
|
3265
3273
|
fill: "currentcolor"
|
|
3266
|
-
}, props), _path$
|
|
3274
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
3267
3275
|
fillRule: "evenodd",
|
|
3268
3276
|
d: "M45 16a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V19a3 3 0 0 1 3-3zm0 2H9a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h36a1 1 0 0 0 1-1V19a1 1 0 0 0-1-1"
|
|
3269
3277
|
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -3272,9 +3280,9 @@ var SvgTaglist = function SvgTaglist(props) {
|
|
|
3272
3280
|
};
|
|
3273
3281
|
|
|
3274
3282
|
var _rect, _rect2, _rect3;
|
|
3275
|
-
function _extends$
|
|
3283
|
+
function _extends$t() { return _extends$t = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$t.apply(null, arguments); }
|
|
3276
3284
|
var SvgForm = function SvgForm(props) {
|
|
3277
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3285
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
3278
3286
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3279
3287
|
width: 54,
|
|
3280
3288
|
height: 54
|
|
@@ -3299,15 +3307,15 @@ var SvgForm = function SvgForm(props) {
|
|
|
3299
3307
|
})));
|
|
3300
3308
|
};
|
|
3301
3309
|
|
|
3302
|
-
var _path$
|
|
3303
|
-
function _extends$
|
|
3310
|
+
var _path$s;
|
|
3311
|
+
function _extends$s() { return _extends$s = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$s.apply(null, arguments); }
|
|
3304
3312
|
var SvgGroup = function SvgGroup(props) {
|
|
3305
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3313
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
3306
3314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3307
3315
|
width: 54,
|
|
3308
3316
|
height: 54,
|
|
3309
3317
|
fill: "none"
|
|
3310
|
-
}, props), _path$
|
|
3318
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
3311
3319
|
fill: "#000",
|
|
3312
3320
|
fillRule: "evenodd",
|
|
3313
3321
|
d: "M4.05 42.132v1.164c0 .693.604 1.254 1.35 1.254h1.35v-2.507h-2.7v.09Zm0-2.328h2.7v-2.328h-2.7zm0-4.656h2.7V32.82h-2.7zm0-4.656h2.7v-2.328h-2.7zm0-4.656h2.7v-2.328h-2.7zm0-4.656h2.7v-2.328h-2.7zm0-4.656h2.7v-2.328h-2.7zm0-4.656v.09h2.7V9.45H5.4c-.746 0-1.35.561-1.35 1.254zm5.4-2.418v2.507h2.7V9.45zm5.4 0v2.507h2.7V9.45zm5.4 0v2.507h2.7V9.45zm5.4 0v2.507h2.7V9.45zm5.4 0v2.507h2.7V9.45zm5.4 0v2.507h2.7V9.45zm5.4 0v2.507h2.7V9.45zm5.4 0v2.507h2.7v-1.253c0-.693-.604-1.254-1.35-1.254zm2.7 4.746h-2.7v2.328h2.7zm0 4.656h-2.7v2.328h2.7zm0 4.656h-2.7v2.328h2.7zm0 4.656h-2.7v2.328h2.7zm0 4.656h-2.7v2.328h2.7zm0 4.656h-2.7v2.328h2.7zm0 4.656v-.09h-2.7v2.508h1.35c.746 0 1.35-.561 1.35-1.254zm-5.4 2.418v-2.507h-2.7v2.507zm-5.4 0v-2.507h-2.7v2.507zm-5.4 0v-2.507h-2.7v2.507zm-5.4 0v-2.507h-2.7v2.507zm-5.4 0v-2.507h-2.7v2.507zm-5.4 0v-2.507h-2.7v2.507zm-5.4 0v-2.507h-2.7v2.507z",
|
|
@@ -3315,84 +3323,84 @@ var SvgGroup = function SvgGroup(props) {
|
|
|
3315
3323
|
})));
|
|
3316
3324
|
};
|
|
3317
3325
|
|
|
3318
|
-
var _path$
|
|
3319
|
-
function _extends$
|
|
3326
|
+
var _path$r;
|
|
3327
|
+
function _extends$r() { return _extends$r = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$r.apply(null, arguments); }
|
|
3320
3328
|
var SvgNumber = function SvgNumber(props) {
|
|
3321
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3329
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
3322
3330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3323
3331
|
width: 54,
|
|
3324
3332
|
height: 54,
|
|
3325
3333
|
fill: "currentcolor"
|
|
3326
|
-
}, props), _path$
|
|
3334
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
3327
3335
|
fillRule: "evenodd",
|
|
3328
3336
|
d: "M45 16a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V19a3 3 0 0 1 3-3zm0 2H9a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h36a1 1 0 0 0 1-1V19a1 1 0 0 0-1-1M35 28.444h7l-3.5 4zM35 26h7l-3.5-4z"
|
|
3329
3337
|
})));
|
|
3330
3338
|
};
|
|
3331
3339
|
|
|
3332
|
-
var _path$
|
|
3333
|
-
function _extends$
|
|
3340
|
+
var _path$q;
|
|
3341
|
+
function _extends$q() { return _extends$q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$q.apply(null, arguments); }
|
|
3334
3342
|
var SvgRadio = function SvgRadio(props) {
|
|
3335
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3343
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
3336
3344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3337
3345
|
width: 54,
|
|
3338
3346
|
height: 54,
|
|
3339
3347
|
fill: "currentcolor"
|
|
3340
|
-
}, props), _path$
|
|
3348
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
3341
3349
|
d: "M27 22c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10m0 18a8 8 0 1 1 0-16 8 8 0 1 1 0 16"
|
|
3342
3350
|
})));
|
|
3343
3351
|
};
|
|
3344
3352
|
|
|
3345
|
-
var _path$
|
|
3346
|
-
function _extends$
|
|
3353
|
+
var _path$p;
|
|
3354
|
+
function _extends$p() { return _extends$p = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$p.apply(null, arguments); }
|
|
3347
3355
|
var SvgSelect = function SvgSelect(props) {
|
|
3348
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3356
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
3349
3357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3350
3358
|
width: 54,
|
|
3351
3359
|
height: 54,
|
|
3352
3360
|
fill: "currentcolor"
|
|
3353
|
-
}, props), _path$
|
|
3361
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
3354
3362
|
fillRule: "evenodd",
|
|
3355
3363
|
d: "M45 16a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V19a3 3 0 0 1 3-3zm0 2H9a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h36a1 1 0 0 0 1-1V19a1 1 0 0 0-1-1m-12 7h9l-4.5 6z"
|
|
3356
3364
|
})));
|
|
3357
3365
|
};
|
|
3358
3366
|
|
|
3359
|
-
var _path$
|
|
3360
|
-
function _extends$
|
|
3367
|
+
var _path$o;
|
|
3368
|
+
function _extends$o() { return _extends$o = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$o.apply(null, arguments); }
|
|
3361
3369
|
var SvgSeparator = function SvgSeparator(props) {
|
|
3362
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3370
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
3363
3371
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3364
3372
|
width: 54,
|
|
3365
3373
|
height: 54,
|
|
3366
3374
|
fill: "none"
|
|
3367
|
-
}, props), _path$
|
|
3375
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
3368
3376
|
fill: "currentColor",
|
|
3369
3377
|
d: "M26.293 16.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L27 18.414l-3.293 3.293a1 1 0 0 1-1.414-1.414zM9 26h36v2H9zm13.293 7.707 4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L27 35.586l-3.293-3.293a1 1 0 0 0-1.414 1.414"
|
|
3370
3378
|
})));
|
|
3371
3379
|
};
|
|
3372
3380
|
|
|
3373
|
-
var _path$
|
|
3374
|
-
function _extends$
|
|
3381
|
+
var _path$n;
|
|
3382
|
+
function _extends$n() { return _extends$n = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$n.apply(null, arguments); }
|
|
3375
3383
|
var SvgSpacer = function SvgSpacer(props) {
|
|
3376
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3384
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
3377
3385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3378
3386
|
width: 54,
|
|
3379
3387
|
height: 54,
|
|
3380
3388
|
fill: "none"
|
|
3381
|
-
}, props), _path$
|
|
3389
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
3382
3390
|
fill: "currentColor",
|
|
3383
3391
|
d: "M9 15v2h36v-2zm0 22v2h36v-2zm17.293-17.707a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L27 21.414l-3.293 3.293a1 1 0 0 1-1.414-1.414zm-4 11.414 4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L27 32.586l-3.293-3.293a1 1 0 0 0-1.414 1.414"
|
|
3384
3392
|
})));
|
|
3385
3393
|
};
|
|
3386
3394
|
|
|
3387
|
-
var _path$
|
|
3388
|
-
function _extends$
|
|
3395
|
+
var _path$m;
|
|
3396
|
+
function _extends$m() { return _extends$m = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$m.apply(null, arguments); }
|
|
3389
3397
|
var SvgDynamicList = function SvgDynamicList(props) {
|
|
3390
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3398
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
3391
3399
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3392
3400
|
width: 54,
|
|
3393
3401
|
height: 54,
|
|
3394
3402
|
fill: "none"
|
|
3395
|
-
}, props), _path$
|
|
3403
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
3396
3404
|
fill: "currentColor",
|
|
3397
3405
|
fillRule: "evenodd",
|
|
3398
3406
|
d: "M2.7 43.296v1.254c0 .746.604 1.35 1.35 1.35h1.275v-1.795q.074.211.075.445v-1.254h-.075V43.2H4.05c.177 0 .347.034.502.096zm2.7-2.507v-2.507H2.7v2.507zm0-5.014v-2.507H2.7v2.507zm0-5.014v-2.507H2.7v2.507zm0-5.015V23.24H2.7v2.507h2.7Zm0-5.014v-2.507H2.7v2.507zm0-5.014V13.21H2.7v2.507zm-2.7-5.014h1.852a1.4 1.4 0 0 1-.502.096h1.275v-.096H5.4V9.45q0 .235-.075.445V8.1H4.05A1.35 1.35 0 0 0 2.7 9.45zm5.175.096h2.55V8.1h-2.55zm5.1 0h2.55V8.1h-2.55zm5.1 0h2.55V8.1h-2.55zm5.1 0h2.55V8.1h-2.55zm5.1 0h2.55V8.1h-2.55zm5.1 0h2.55V8.1h-2.55zm5.1 0h2.55V8.1h-2.55zm5.1 0h2.55V8.1h-2.55zm5.1-2.7v1.795a1.4 1.4 0 0 1-.075-.445v1.254h.075v.096h1.275a1.4 1.4 0 0 1-.502-.096H51.3V9.45a1.35 1.35 0 0 0-1.35-1.35zm-.075 5.11v2.508h2.7V13.21zm0 5.015v2.507h2.7v-2.507zm0 5.014v2.507h2.7V23.24zm0 5.015v2.507h2.7v-2.507zm0 5.014v2.507h2.7v-2.507zm0 5.014v2.507h2.7v-2.507zm2.7 5.014h-1.852a1.4 1.4 0 0 1 .502-.096h-1.275v.096H48.6v1.254q0-.235.075-.445V45.9h1.275a1.35 1.35 0 0 0 1.35-1.35zm-5.175-.096h-2.55v2.7h2.55zm-5.1 0h-2.55v2.7h2.55zm-5.1 0h-2.55v2.7h2.55zm-5.1 0h-2.55v2.7h2.55zm-5.1 0h-2.55v2.7h2.55zm-5.1 0h-2.55v2.7h2.55zm-5.1 0h-2.55v2.7h2.55zm-5.1 0h-2.55v2.7h2.55zM16.2 17.55a4.05 4.05 0 0 1 4.05 4.05v1.35A4.05 4.05 0 0 1 16.2 27h-1.35a4.05 4.05 0 0 1-4.05-4.05V21.6a4.05 4.05 0 0 1 4.05-4.05zm0 2.7h-1.35a1.35 1.35 0 0 0-1.35 1.35v1.35c0 .746.604 1.35 1.35 1.35h1.35a1.35 1.35 0 0 0 1.35-1.35V21.6a1.35 1.35 0 0 0-1.35-1.35m27 1.35a4.05 4.05 0 0 0-4.05-4.05H29.7a4.05 4.05 0 0 0-4.05 4.05v1.35A4.05 4.05 0 0 0 29.7 27h9.45a4.05 4.05 0 0 0 4.05-4.05zm-13.5-1.35h9.45c.746 0 1.35.604 1.35 1.35v1.35a1.35 1.35 0 0 1-1.35 1.35H29.7a1.35 1.35 0 0 1-1.35-1.35V21.6c0-.746.604-1.35 1.35-1.35M43.2 37.8a4.05 4.05 0 0 0-4.05-4.05H29.7a4.05 4.05 0 0 0-4.05 4.05v1.35h2.7V37.8c0-.746.604-1.35 1.35-1.35h9.45c.746 0 1.35.604 1.35 1.35v1.35h2.7zm-27-4.05a4.05 4.05 0 0 1 4.05 4.05v1.35h-2.7V37.8a1.35 1.35 0 0 0-1.35-1.35h-1.35a1.35 1.35 0 0 0-1.35 1.35v1.35h-2.7V37.8a4.05 4.05 0 0 1 4.05-4.05z",
|
|
@@ -3400,28 +3408,28 @@ var SvgDynamicList = function SvgDynamicList(props) {
|
|
|
3400
3408
|
})));
|
|
3401
3409
|
};
|
|
3402
3410
|
|
|
3403
|
-
var _path$
|
|
3404
|
-
function _extends$
|
|
3411
|
+
var _path$l;
|
|
3412
|
+
function _extends$l() { return _extends$l = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$l.apply(null, arguments); }
|
|
3405
3413
|
var SvgText = function SvgText(props) {
|
|
3406
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3414
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
3407
3415
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3408
3416
|
width: 54,
|
|
3409
3417
|
height: 54,
|
|
3410
3418
|
fill: "currentcolor"
|
|
3411
|
-
}, props), _path$
|
|
3419
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
3412
3420
|
d: "M20.58 33.77h-3l-1.18-3.08H11l-1.1 3.08H7l5.27-13.54h2.89zm-5-5.36-1.86-5-1.83 5zM22 20.23h5.41a15.5 15.5 0 0 1 2.4.14 3.4 3.4 0 0 1 1.41.55 3.5 3.5 0 0 1 1 1.14 3 3 0 0 1 .42 1.58 3.26 3.26 0 0 1-1.91 2.94 3.63 3.63 0 0 1 1.91 1.22 3.28 3.28 0 0 1 .66 2 4 4 0 0 1-.43 1.8 3.6 3.6 0 0 1-1.09 1.4 3.9 3.9 0 0 1-1.83.65q-.69.07-3.3.09H22zm2.73 2.25v3.13h3.8a1.8 1.8 0 0 0 1.1-.49 1.4 1.4 0 0 0 .41-1 1.5 1.5 0 0 0-.35-1 1.54 1.54 0 0 0-1-.48c-.27 0-1.05-.05-2.34-.05zm0 5.39v3.62h2.57a11.5 11.5 0 0 0 1.88-.09 1.65 1.65 0 0 0 1-.54 1.6 1.6 0 0 0 .38-1.14 1.75 1.75 0 0 0-.29-1 1.7 1.7 0 0 0-.86-.62 9.3 9.3 0 0 0-2.41-.23zm19.62.92 2.65.84a5.94 5.94 0 0 1-2 3.29A5.74 5.74 0 0 1 41.38 34a5.87 5.87 0 0 1-4.44-1.84 7.1 7.1 0 0 1-1.73-5A7.43 7.43 0 0 1 37 21.87 6 6 0 0 1 41.54 20a5.64 5.64 0 0 1 4 1.47A5.33 5.33 0 0 1 47 24l-2.7.65a2.8 2.8 0 0 0-2.86-2.27A3.09 3.09 0 0 0 39 23.42a5.3 5.3 0 0 0-.93 3.5 5.62 5.62 0 0 0 .93 3.65 3 3 0 0 0 2.4 1.09 2.72 2.72 0 0 0 1.82-.66 4 4 0 0 0 1.13-2.21"
|
|
3413
3421
|
})));
|
|
3414
3422
|
};
|
|
3415
3423
|
|
|
3416
|
-
var _path$
|
|
3417
|
-
function _extends$
|
|
3424
|
+
var _path$k;
|
|
3425
|
+
function _extends$k() { return _extends$k = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$k.apply(null, arguments); }
|
|
3418
3426
|
var SvgHtml = function SvgHtml(props) {
|
|
3419
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3427
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
3420
3428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3421
3429
|
width: 54,
|
|
3422
3430
|
height: 54,
|
|
3423
3431
|
fill: "none"
|
|
3424
|
-
}, props), _path$
|
|
3432
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
3425
3433
|
fill: "currentColor",
|
|
3426
3434
|
fillRule: "evenodd",
|
|
3427
3435
|
d: "M47.008 12.15c1.625 0 2.942 1.36 2.942 3.039v23.622c0 1.678-1.317 3.039-2.942 3.039H6.992c-1.625 0-2.942-1.36-2.942-3.039V15.189c0-1.678 1.317-3.039 2.942-3.039zm0 2.026H6.992c-.542 0-.98.454-.98 1.013V16.2h-.004v2.7h.003v19.911c0 .56.44 1.013.98 1.013h40.017c.542 0 .98-.453.98-1.013V18.9h.005v-2.7h-.004v-1.011c0-.56-.44-1.013-.98-1.013M14.934 26.055v-3.78h2.194v9.45h-2.194v-3.78h-3.29v3.78H9.45v-9.45h2.194v3.78zm4.388-1.89h2.194v7.56h2.193v-7.56h2.194v-1.89h-6.581zm14.26-1.89h2.193v9.45h-2.194V25.11l-1.645 3.78-1.645-3.78v6.615h-2.194v-9.45h2.194l1.645 3.78zm4.387 0h2.194v7.56h4.387v1.89h-6.581z",
|
|
@@ -3429,15 +3437,15 @@ var SvgHtml = function SvgHtml(props) {
|
|
|
3429
3437
|
})));
|
|
3430
3438
|
};
|
|
3431
3439
|
|
|
3432
|
-
var _path$
|
|
3433
|
-
function _extends$
|
|
3440
|
+
var _path$j;
|
|
3441
|
+
function _extends$j() { return _extends$j = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$j.apply(null, arguments); }
|
|
3434
3442
|
var SvgExpressionField = function SvgExpressionField(props) {
|
|
3435
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3443
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
3436
3444
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3437
3445
|
width: 54,
|
|
3438
3446
|
height: 54,
|
|
3439
3447
|
fill: "none"
|
|
3440
|
-
}, props), _path$
|
|
3448
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
3441
3449
|
fill: "currentcolor",
|
|
3442
3450
|
fillRule: "evenodd",
|
|
3443
3451
|
d: "M12.78 16.2v6.75c0 1.619-.635 3.059-1.618 4.05.983.991 1.618 2.431 1.618 4.05v6.75h3.51v2.7h-3.51c-1.289 0-2.34-1.213-2.34-2.7v-6.75c0-1.487-1.051-2.7-2.34-2.7v-2.7c1.289 0 2.34-1.213 2.34-2.7V16.2c0-1.487 1.051-2.7 2.34-2.7h3.51v2.7zm30.78 0v6.75c0 1.487 1.051 2.7 2.34 2.7v2.7c-1.289 0-2.34 1.213-2.34 2.7v6.75c0 1.487-1.051 2.7-2.34 2.7h-3.51v-2.7h3.51v-6.75c0-1.619.635-3.059 1.618-4.05-.983-.991-1.618-2.431-1.618-4.05V16.2h-3.51v-2.7h3.51c1.289 0 2.34 1.213 2.34 2.7M21.8 34.531q.7-.569.959-1.758l1.788-8.34h1.585l.387-1.828h-1.585l.405-1.878h1.585l.387-1.827H25.69q-1.271 0-1.972.569-.681.569-.94 1.758l-.294 1.378H21.34l-.387 1.827h1.142l-1.898 8.841h-1.585l-.387 1.827h1.622q1.272 0 1.953-.569m7.248-7.686-3.797 4.808h2.599l2.12-3.016h.22l.885 3.016h2.599l-1.677-4.36 3.778-4.688h-2.599l-2.12 2.947h-.22l-.885-2.947h-2.599z",
|
|
@@ -3445,43 +3453,43 @@ var SvgExpressionField = function SvgExpressionField(props) {
|
|
|
3445
3453
|
})));
|
|
3446
3454
|
};
|
|
3447
3455
|
|
|
3448
|
-
var _path$
|
|
3449
|
-
function _extends$
|
|
3456
|
+
var _path$i;
|
|
3457
|
+
function _extends$i() { return _extends$i = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$i.apply(null, arguments); }
|
|
3450
3458
|
var SvgTextfield = function SvgTextfield(props) {
|
|
3451
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3459
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
3452
3460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3453
3461
|
width: 54,
|
|
3454
3462
|
height: 54,
|
|
3455
3463
|
fill: "currentcolor"
|
|
3456
|
-
}, props), _path$
|
|
3464
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
3457
3465
|
fillRule: "evenodd",
|
|
3458
3466
|
d: "M45 16a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V19a3 3 0 0 1 3-3zm0 2H9a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h36a1 1 0 0 0 1-1V19a1 1 0 0 0-1-1m-32 4v10h-2V22z"
|
|
3459
3467
|
})));
|
|
3460
3468
|
};
|
|
3461
3469
|
|
|
3462
|
-
var _path$
|
|
3463
|
-
function _extends$
|
|
3470
|
+
var _path$h;
|
|
3471
|
+
function _extends$h() { return _extends$h = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$h.apply(null, arguments); }
|
|
3464
3472
|
var SvgTextarea = function SvgTextarea(props) {
|
|
3465
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3473
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
3466
3474
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3467
3475
|
width: 54,
|
|
3468
3476
|
height: 54,
|
|
3469
3477
|
fill: "currentcolor"
|
|
3470
|
-
}, props), _path$
|
|
3478
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
3471
3479
|
fillRule: "evenodd",
|
|
3472
3480
|
d: "M45 13a3 3 0 0 1 3 3v22a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V16a3 3 0 0 1 3-3zm0 2H9a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h36a1 1 0 0 0 1-1V16a1 1 0 0 0-1-1m-1.136 15.5.849.849-6.364 6.364-.849-.849zm.264 3.5.849.849-2.828 2.828-.849-.849zM13 19v10h-2V19z"
|
|
3473
3481
|
})));
|
|
3474
3482
|
};
|
|
3475
3483
|
|
|
3476
|
-
var _path$
|
|
3477
|
-
function _extends$
|
|
3484
|
+
var _path$g;
|
|
3485
|
+
function _extends$g() { return _extends$g = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$g.apply(null, arguments); }
|
|
3478
3486
|
var SvgIFrame = function SvgIFrame(props) {
|
|
3479
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3487
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
3480
3488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3481
3489
|
width: 54,
|
|
3482
3490
|
height: 54,
|
|
3483
3491
|
fill: "none"
|
|
3484
|
-
}, props), _path$
|
|
3492
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
3485
3493
|
fill: "currentColor",
|
|
3486
3494
|
fillRule: "evenodd",
|
|
3487
3495
|
d: "M45.658 9.45c1.625 0 2.942 1.36 2.942 3.039V22.95h-1.961v-4.383H7.36V41.51c0 .56.44 1.013.98 1.013H27v2.026H8.342c-1.625 0-2.942-1.36-2.942-3.039V12.489c0-1.678 1.317-3.039 2.942-3.039zm0 2.026H8.342c-.542 0-.98.454-.98 1.013v4.052h39.277v-4.052c0-.56-.44-1.013-.98-1.013ZM31.05 35.775A8.77 8.77 0 0 1 39.825 27a8.77 8.77 0 0 1 8.775 8.775 8.77 8.77 0 0 1-8.775 8.775 8.77 8.77 0 0 1-8.775-8.775m12.388-.516h3.097c-.206-2.581-1.858-4.646-4.026-5.678.62 1.548.93 3.613.93 5.678Zm-5.162 2.065c.207 3.303 1.136 4.955 1.549 5.161.413-.206 1.239-1.858 1.445-5.161zm1.446-8.26c-.31.207-1.342 2.272-1.446 6.195h2.994c-.103-3.923-1.135-5.988-1.548-6.194Zm-3.51 6.195c.103-2.065.31-4.13.929-5.678-2.168 1.032-3.82 3.097-4.026 5.678zm0 2.065h-2.89c.515 2.064 1.96 3.82 3.819 4.645-.516-1.342-.826-2.994-.93-4.645Zm7.226 0q-.155 2.632-.929 4.645c1.858-.826 3.304-2.58 3.923-4.645z",
|
|
@@ -3489,15 +3497,15 @@ var SvgIFrame = function SvgIFrame(props) {
|
|
|
3489
3497
|
})));
|
|
3490
3498
|
};
|
|
3491
3499
|
|
|
3492
|
-
var _path$
|
|
3493
|
-
function _extends$
|
|
3500
|
+
var _path$f, _path2$1;
|
|
3501
|
+
function _extends$f() { return _extends$f = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$f.apply(null, arguments); }
|
|
3494
3502
|
var SvgImage = function SvgImage(props) {
|
|
3495
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3503
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
3496
3504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3497
3505
|
width: 54,
|
|
3498
3506
|
height: 54,
|
|
3499
3507
|
fill: "currentcolor"
|
|
3500
|
-
}, props), _path$
|
|
3508
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
3501
3509
|
fillRule: "evenodd",
|
|
3502
3510
|
d: "M34.636 21.91A3.818 3.818 0 1 1 27 21.908a3.818 3.818 0 0 1 7.636 0Zm-2 0A1.818 1.818 0 1 1 29 21.908a1.818 1.818 0 0 1 3.636 0Z",
|
|
3503
3511
|
clipRule: "evenodd"
|
|
@@ -3508,14 +3516,14 @@ var SvgImage = function SvgImage(props) {
|
|
|
3508
3516
|
})));
|
|
3509
3517
|
};
|
|
3510
3518
|
|
|
3511
|
-
var _path$
|
|
3512
|
-
function _extends$
|
|
3519
|
+
var _path$e;
|
|
3520
|
+
function _extends$e() { return _extends$e = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$e.apply(null, arguments); }
|
|
3513
3521
|
var SvgTable = function SvgTable(props) {
|
|
3514
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3522
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
3515
3523
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3516
3524
|
fill: "none",
|
|
3517
3525
|
viewBox: "0 0 54 54"
|
|
3518
|
-
}, props), _path$
|
|
3526
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
3519
3527
|
fill: "currentcolor",
|
|
3520
3528
|
fillRule: "evenodd",
|
|
3521
3529
|
d: "M42.545 12.273A2.455 2.455 0 0 1 45 14.727v24.546a2.455 2.455 0 0 1-2.455 2.454h-31.09A2.455 2.455 0 0 1 9 39.273V14.727a2.455 2.455 0 0 1 2.455-2.454zM27.818 40.09h14.727a.82.82 0 0 0 .819-.818v-4.91H27.818Zm-1.636-5.727v5.727H11.455a.82.82 0 0 1-.819-.818v-4.91zm1.636-1.637h15.546V27H27.818ZM26.182 27v5.727H10.636V27zm1.636-1.636h15.546v-5.728H27.818Zm-1.636-5.728v5.728H10.636v-5.728z",
|
|
@@ -3523,15 +3531,15 @@ var SvgTable = function SvgTable(props) {
|
|
|
3523
3531
|
})));
|
|
3524
3532
|
};
|
|
3525
3533
|
|
|
3526
|
-
var _path$
|
|
3527
|
-
function _extends$
|
|
3534
|
+
var _path$d;
|
|
3535
|
+
function _extends$d() { return _extends$d = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$d.apply(null, arguments); }
|
|
3528
3536
|
var SvgFilePicker = function SvgFilePicker(props) {
|
|
3529
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3537
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
3530
3538
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3531
3539
|
width: 54,
|
|
3532
3540
|
height: 54,
|
|
3533
3541
|
fill: "none"
|
|
3534
|
-
}, props), _path$
|
|
3542
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
3535
3543
|
fill: "currentcolor",
|
|
3536
3544
|
fillRule: "evenodd",
|
|
3537
3545
|
d: "M17.55 41.175H27v2.362h-9.45a2.37 2.37 0 0 1-2.363-2.362v-28.35a2.37 2.37 0 0 1 2.363-2.363h11.813a1.07 1.07 0 0 1 .826.355l8.27 8.269a1.07 1.07 0 0 1 .353.826v5.907H36.45v-3.544h-7.088A2.37 2.37 0 0 1 27 19.912v-7.087h-9.45zm18.427-21.263-6.614-6.615v6.615zm4.253 18.664 3.308 3.308-1.654 1.653-3.308-3.307a6.35 6.35 0 0 1-3.307.945c-3.308 0-5.906-2.599-5.906-5.906 0-3.308 2.598-5.907 5.906-5.907s5.906 2.6 5.906 5.907a6.35 6.35 0 0 1-.945 3.307m-4.961-6.851c-2.008 0-3.544 1.536-3.544 3.544s1.536 3.543 3.544 3.543 3.544-1.535 3.544-3.543-1.536-3.544-3.544-3.544",
|
|
@@ -3539,6 +3547,22 @@ var SvgFilePicker = function SvgFilePicker(props) {
|
|
|
3539
3547
|
})));
|
|
3540
3548
|
};
|
|
3541
3549
|
|
|
3550
|
+
var _path$c;
|
|
3551
|
+
function _extends$c() { return _extends$c = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$c.apply(null, arguments); }
|
|
3552
|
+
var SvgDocumentPreview = function SvgDocumentPreview(props) {
|
|
3553
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
3554
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3555
|
+
width: 54,
|
|
3556
|
+
height: 54,
|
|
3557
|
+
fill: "none"
|
|
3558
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
3559
|
+
fill: "currentcolor",
|
|
3560
|
+
fillRule: "evenodd",
|
|
3561
|
+
d: "M17.55 41.175h6.75v2.363h-6.75a2.37 2.37 0 0 1-2.363-2.363v-28.35a2.37 2.37 0 0 1 2.363-2.362h11.813a1.07 1.07 0 0 1 .826.354l8.27 8.269a1.07 1.07 0 0 1 .353.827v7.256H36.45v-4.894h-7.088A2.37 2.37 0 0 1 27 19.913v-7.088h-9.45zm18.427-21.262-6.614-6.616v6.616zm-2.212 10.564-.015-.001h-.015a8.86 8.86 0 0 0-7.926 5.656l-.003.008a.9.9 0 0 0 0 .62l.003.008a8.85 8.85 0 0 0 7.926 5.655l.015.001h.015a8.86 8.86 0 0 0 7.926-5.656l.003-.008a.9.9 0 0 0 0-.62l-.003-.008a8.85 8.85 0 0 0-7.926-5.655M33.75 40.6c-2.456 0-5.088-1.802-6.107-4.151 1.019-2.349 3.651-4.151 6.107-4.151s5.088 1.802 6.107 4.151c-1.019 2.349-3.65 4.151-6.107 4.151m0-7.593a3.443 3.443 0 1 0 0 6.885 3.443 3.443 0 0 0 0-6.886Zm-.316 1.853a1.62 1.62 0 1 1 .632 3.178 1.62 1.62 0 0 1-.632-3.178",
|
|
3562
|
+
clipRule: "evenodd"
|
|
3563
|
+
})));
|
|
3564
|
+
};
|
|
3565
|
+
|
|
3542
3566
|
const iconsByType = type => {
|
|
3543
3567
|
return {
|
|
3544
3568
|
button: SvgButton,
|
|
@@ -3563,11 +3587,12 @@ const iconsByType = type => {
|
|
|
3563
3587
|
textarea: SvgTextarea,
|
|
3564
3588
|
table: SvgTable,
|
|
3565
3589
|
filepicker: SvgFilePicker,
|
|
3590
|
+
documentPreview: SvgDocumentPreview,
|
|
3566
3591
|
default: SvgForm
|
|
3567
3592
|
}[type];
|
|
3568
3593
|
};
|
|
3569
3594
|
|
|
3570
|
-
const type$
|
|
3595
|
+
const type$e = 'image';
|
|
3571
3596
|
function Image(props) {
|
|
3572
3597
|
const {
|
|
3573
3598
|
field
|
|
@@ -3589,7 +3614,7 @@ function Image(props) {
|
|
|
3589
3614
|
formId
|
|
3590
3615
|
} = useContext(FormContext);
|
|
3591
3616
|
return jsxs("div", {
|
|
3592
|
-
class: formFieldClasses(type$
|
|
3617
|
+
class: formFieldClasses(type$e),
|
|
3593
3618
|
children: [safeSource && jsx("div", {
|
|
3594
3619
|
class: "fjs-image-container",
|
|
3595
3620
|
children: jsx("img", {
|
|
@@ -3613,7 +3638,7 @@ function Image(props) {
|
|
|
3613
3638
|
});
|
|
3614
3639
|
}
|
|
3615
3640
|
Image.config = {
|
|
3616
|
-
type: type$
|
|
3641
|
+
type: type$e,
|
|
3617
3642
|
keyed: false,
|
|
3618
3643
|
name: 'Image view',
|
|
3619
3644
|
group: 'presentation',
|
|
@@ -3639,14 +3664,14 @@ function TemplatedInputAdorner(props) {
|
|
|
3639
3664
|
});
|
|
3640
3665
|
}
|
|
3641
3666
|
|
|
3642
|
-
var _path$
|
|
3643
|
-
function _extends$
|
|
3667
|
+
var _path$b;
|
|
3668
|
+
function _extends$b() { return _extends$b = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$b.apply(null, arguments); }
|
|
3644
3669
|
var SvgAngelDown = function SvgAngelDown(props) {
|
|
3645
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3670
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
3646
3671
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3647
3672
|
width: 8,
|
|
3648
3673
|
height: 8
|
|
3649
|
-
}, props), _path$
|
|
3674
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
3650
3675
|
fill: "currentColor",
|
|
3651
3676
|
fillRule: "evenodd",
|
|
3652
3677
|
stroke: "currentColor",
|
|
@@ -3656,14 +3681,14 @@ var SvgAngelDown = function SvgAngelDown(props) {
|
|
|
3656
3681
|
})));
|
|
3657
3682
|
};
|
|
3658
3683
|
|
|
3659
|
-
var _path$
|
|
3660
|
-
function _extends$
|
|
3684
|
+
var _path$a;
|
|
3685
|
+
function _extends$a() { return _extends$a = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$a.apply(null, arguments); }
|
|
3661
3686
|
var SvgAngelUp = function SvgAngelUp(props) {
|
|
3662
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
3687
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
3663
3688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3664
3689
|
width: 8,
|
|
3665
3690
|
height: 8
|
|
3666
|
-
}, props), _path$
|
|
3691
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
3667
3692
|
fill: "currentColor",
|
|
3668
3693
|
fillRule: "evenodd",
|
|
3669
3694
|
stroke: "currentColor",
|
|
@@ -3702,7 +3727,7 @@ function isNullEquivalentValue(value) {
|
|
|
3702
3727
|
return value === undefined || value === null || value === '';
|
|
3703
3728
|
}
|
|
3704
3729
|
|
|
3705
|
-
const type$
|
|
3730
|
+
const type$d = 'number';
|
|
3706
3731
|
function Numberfield(props) {
|
|
3707
3732
|
const {
|
|
3708
3733
|
disabled,
|
|
@@ -3849,7 +3874,7 @@ function Numberfield(props) {
|
|
|
3849
3874
|
const descriptionId = `${domId}-description`;
|
|
3850
3875
|
const errorMessageId = `${domId}-error-message`;
|
|
3851
3876
|
return jsxs("div", {
|
|
3852
|
-
class: formFieldClasses(type$
|
|
3877
|
+
class: formFieldClasses(type$d, {
|
|
3853
3878
|
errors,
|
|
3854
3879
|
disabled,
|
|
3855
3880
|
readonly
|
|
@@ -3925,7 +3950,7 @@ function Numberfield(props) {
|
|
|
3925
3950
|
});
|
|
3926
3951
|
}
|
|
3927
3952
|
Numberfield.config = {
|
|
3928
|
-
type: type$
|
|
3953
|
+
type: type$d,
|
|
3929
3954
|
keyed: true,
|
|
3930
3955
|
name: 'Number',
|
|
3931
3956
|
group: 'basic-input',
|
|
@@ -3946,7 +3971,7 @@ Numberfield.config = {
|
|
|
3946
3971
|
})
|
|
3947
3972
|
};
|
|
3948
3973
|
|
|
3949
|
-
const type$
|
|
3974
|
+
const type$c = 'radio';
|
|
3950
3975
|
function Radio(props) {
|
|
3951
3976
|
const {
|
|
3952
3977
|
disabled,
|
|
@@ -4000,7 +4025,7 @@ function Radio(props) {
|
|
|
4000
4025
|
const descriptionId = `${domId}-description`;
|
|
4001
4026
|
const errorMessageId = `${domId}-error-message`;
|
|
4002
4027
|
return jsxs("div", {
|
|
4003
|
-
class: formFieldClasses(type$
|
|
4028
|
+
class: formFieldClasses(type$c, {
|
|
4004
4029
|
errors,
|
|
4005
4030
|
disabled,
|
|
4006
4031
|
readonly
|
|
@@ -4049,7 +4074,7 @@ function Radio(props) {
|
|
|
4049
4074
|
});
|
|
4050
4075
|
}
|
|
4051
4076
|
Radio.config = {
|
|
4052
|
-
type: type$
|
|
4077
|
+
type: type$c,
|
|
4053
4078
|
keyed: true,
|
|
4054
4079
|
name: 'Radio group',
|
|
4055
4080
|
group: 'selection',
|
|
@@ -4061,14 +4086,14 @@ Radio.config = {
|
|
|
4061
4086
|
})
|
|
4062
4087
|
};
|
|
4063
4088
|
|
|
4064
|
-
var _path$
|
|
4065
|
-
function _extends$
|
|
4089
|
+
var _path$9;
|
|
4090
|
+
function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
|
|
4066
4091
|
var SvgXMark = function SvgXMark(props) {
|
|
4067
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
4092
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
4068
4093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4069
4094
|
width: 8,
|
|
4070
4095
|
height: 8
|
|
4071
|
-
}, props), _path$
|
|
4096
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
4072
4097
|
fill: "currentColor",
|
|
4073
4098
|
fillRule: "evenodd",
|
|
4074
4099
|
stroke: "currentColor",
|
|
@@ -4366,7 +4391,7 @@ function SimpleSelect(props) {
|
|
|
4366
4391
|
});
|
|
4367
4392
|
}
|
|
4368
4393
|
|
|
4369
|
-
const type$
|
|
4394
|
+
const type$b = 'select';
|
|
4370
4395
|
function Select(props) {
|
|
4371
4396
|
const {
|
|
4372
4397
|
disabled,
|
|
@@ -4405,7 +4430,7 @@ function Select(props) {
|
|
|
4405
4430
|
'aria-describedby': [descriptionId, errorMessageId].join(' ')
|
|
4406
4431
|
};
|
|
4407
4432
|
return jsxs("div", {
|
|
4408
|
-
class: formFieldClasses(type$
|
|
4433
|
+
class: formFieldClasses(type$b, {
|
|
4409
4434
|
errors,
|
|
4410
4435
|
disabled,
|
|
4411
4436
|
readonly
|
|
@@ -4434,7 +4459,7 @@ function Select(props) {
|
|
|
4434
4459
|
});
|
|
4435
4460
|
}
|
|
4436
4461
|
Select.config = {
|
|
4437
|
-
type: type$
|
|
4462
|
+
type: type$b,
|
|
4438
4463
|
keyed: true,
|
|
4439
4464
|
name: 'Select',
|
|
4440
4465
|
group: 'selection',
|
|
@@ -4446,15 +4471,15 @@ Select.config = {
|
|
|
4446
4471
|
})
|
|
4447
4472
|
};
|
|
4448
4473
|
|
|
4449
|
-
const type$
|
|
4474
|
+
const type$a = 'separator';
|
|
4450
4475
|
function Separator() {
|
|
4451
4476
|
return jsx("div", {
|
|
4452
|
-
class: formFieldClasses(type$
|
|
4477
|
+
class: formFieldClasses(type$a),
|
|
4453
4478
|
children: jsx("hr", {})
|
|
4454
4479
|
});
|
|
4455
4480
|
}
|
|
4456
4481
|
Separator.config = {
|
|
4457
|
-
type: type$
|
|
4482
|
+
type: type$a,
|
|
4458
4483
|
keyed: false,
|
|
4459
4484
|
name: 'Separator',
|
|
4460
4485
|
group: 'presentation',
|
|
@@ -4463,7 +4488,7 @@ Separator.config = {
|
|
|
4463
4488
|
})
|
|
4464
4489
|
};
|
|
4465
4490
|
|
|
4466
|
-
const type$
|
|
4491
|
+
const type$9 = 'spacer';
|
|
4467
4492
|
function Spacer(props) {
|
|
4468
4493
|
const {
|
|
4469
4494
|
field
|
|
@@ -4472,14 +4497,14 @@ function Spacer(props) {
|
|
|
4472
4497
|
height = 60
|
|
4473
4498
|
} = field;
|
|
4474
4499
|
return jsx("div", {
|
|
4475
|
-
class: formFieldClasses(type$
|
|
4500
|
+
class: formFieldClasses(type$9),
|
|
4476
4501
|
style: {
|
|
4477
4502
|
height: height
|
|
4478
4503
|
}
|
|
4479
4504
|
});
|
|
4480
4505
|
}
|
|
4481
4506
|
Spacer.config = {
|
|
4482
|
-
type: type$
|
|
4507
|
+
type: type$9,
|
|
4483
4508
|
keyed: false,
|
|
4484
4509
|
name: 'Spacer',
|
|
4485
4510
|
group: 'presentation',
|
|
@@ -4561,7 +4586,7 @@ function SkipLink(props) {
|
|
|
4561
4586
|
});
|
|
4562
4587
|
}
|
|
4563
4588
|
|
|
4564
|
-
const type$
|
|
4589
|
+
const type$8 = 'taglist';
|
|
4565
4590
|
function Taglist(props) {
|
|
4566
4591
|
const {
|
|
4567
4592
|
disabled,
|
|
@@ -4707,7 +4732,7 @@ function Taglist(props) {
|
|
|
4707
4732
|
const errorMessageId = `${domId}-error-message`;
|
|
4708
4733
|
return jsxs("div", {
|
|
4709
4734
|
ref: focusScopeRef,
|
|
4710
|
-
class: formFieldClasses(type$
|
|
4735
|
+
class: formFieldClasses(type$8, {
|
|
4711
4736
|
errors,
|
|
4712
4737
|
disabled,
|
|
4713
4738
|
readonly
|
|
@@ -4792,7 +4817,7 @@ function Taglist(props) {
|
|
|
4792
4817
|
});
|
|
4793
4818
|
}
|
|
4794
4819
|
Taglist.config = {
|
|
4795
|
-
type: type$
|
|
4820
|
+
type: type$8,
|
|
4796
4821
|
keyed: true,
|
|
4797
4822
|
name: 'Tag list',
|
|
4798
4823
|
group: 'selection',
|
|
@@ -4916,7 +4941,7 @@ function isValidAttribute(lcTag, lcName, value) {
|
|
|
4916
4941
|
return true;
|
|
4917
4942
|
}
|
|
4918
4943
|
|
|
4919
|
-
const type$
|
|
4944
|
+
const type$7 = 'text';
|
|
4920
4945
|
function Text(props) {
|
|
4921
4946
|
const form = useService('form');
|
|
4922
4947
|
const {
|
|
@@ -4963,12 +4988,12 @@ function Text(props) {
|
|
|
4963
4988
|
sanitizeStyleTags: false
|
|
4964
4989
|
});
|
|
4965
4990
|
return jsx("div", {
|
|
4966
|
-
class: formFieldClasses(type$
|
|
4991
|
+
class: formFieldClasses(type$7),
|
|
4967
4992
|
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
4968
4993
|
});
|
|
4969
4994
|
}
|
|
4970
4995
|
Text.config = {
|
|
4971
|
-
type: type$
|
|
4996
|
+
type: type$7,
|
|
4972
4997
|
keyed: false,
|
|
4973
4998
|
name: 'Text view',
|
|
4974
4999
|
group: 'presentation',
|
|
@@ -4981,7 +5006,7 @@ Text.config = {
|
|
|
4981
5006
|
}
|
|
4982
5007
|
};
|
|
4983
5008
|
|
|
4984
|
-
const type$
|
|
5009
|
+
const type$6 = 'html';
|
|
4985
5010
|
function Html(props) {
|
|
4986
5011
|
const form = useService('form');
|
|
4987
5012
|
const {
|
|
@@ -5032,12 +5057,12 @@ function Html(props) {
|
|
|
5032
5057
|
sanitizeStyleTags: false
|
|
5033
5058
|
});
|
|
5034
5059
|
return jsx("div", {
|
|
5035
|
-
class: classNames(formFieldClasses(type$
|
|
5060
|
+
class: classNames(formFieldClasses(type$6), styleScope),
|
|
5036
5061
|
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
5037
5062
|
});
|
|
5038
5063
|
}
|
|
5039
5064
|
Html.config = {
|
|
5040
|
-
type: type$
|
|
5065
|
+
type: type$6,
|
|
5041
5066
|
keyed: false,
|
|
5042
5067
|
name: 'HTML view',
|
|
5043
5068
|
group: 'presentation',
|
|
@@ -5047,7 +5072,7 @@ Html.config = {
|
|
|
5047
5072
|
})
|
|
5048
5073
|
};
|
|
5049
5074
|
|
|
5050
|
-
const type$
|
|
5075
|
+
const type$5 = 'expression';
|
|
5051
5076
|
function ExpressionField(props) {
|
|
5052
5077
|
const {
|
|
5053
5078
|
field,
|
|
@@ -5084,7 +5109,7 @@ function ExpressionField(props) {
|
|
|
5084
5109
|
return null;
|
|
5085
5110
|
}
|
|
5086
5111
|
ExpressionField.config = {
|
|
5087
|
-
type: type$
|
|
5112
|
+
type: type$5,
|
|
5088
5113
|
name: 'Expression',
|
|
5089
5114
|
group: 'basic-input',
|
|
5090
5115
|
keyed: true,
|
|
@@ -5096,7 +5121,7 @@ ExpressionField.config = {
|
|
|
5096
5121
|
})
|
|
5097
5122
|
};
|
|
5098
5123
|
|
|
5099
|
-
const type$
|
|
5124
|
+
const type$4 = 'textfield';
|
|
5100
5125
|
function Textfield(props) {
|
|
5101
5126
|
const {
|
|
5102
5127
|
disabled,
|
|
@@ -5138,7 +5163,7 @@ function Textfield(props) {
|
|
|
5138
5163
|
const descriptionId = `${domId}-description`;
|
|
5139
5164
|
const errorMessageId = `${domId}-error-message`;
|
|
5140
5165
|
return jsxs("div", {
|
|
5141
|
-
class: formFieldClasses(type$
|
|
5166
|
+
class: formFieldClasses(type$4, {
|
|
5142
5167
|
errors,
|
|
5143
5168
|
disabled,
|
|
5144
5169
|
readonly
|
|
@@ -5176,7 +5201,7 @@ function Textfield(props) {
|
|
|
5176
5201
|
});
|
|
5177
5202
|
}
|
|
5178
5203
|
Textfield.config = {
|
|
5179
|
-
type: type$
|
|
5204
|
+
type: type$4,
|
|
5180
5205
|
keyed: true,
|
|
5181
5206
|
name: 'Text field',
|
|
5182
5207
|
group: 'basic-input',
|
|
@@ -5200,7 +5225,7 @@ Textfield.config = {
|
|
|
5200
5225
|
})
|
|
5201
5226
|
};
|
|
5202
5227
|
|
|
5203
|
-
const type$
|
|
5228
|
+
const type$3 = 'textarea';
|
|
5204
5229
|
function Textarea(props) {
|
|
5205
5230
|
const {
|
|
5206
5231
|
disabled,
|
|
@@ -5250,7 +5275,7 @@ function Textarea(props) {
|
|
|
5250
5275
|
const descriptionId = `${domId}-description`;
|
|
5251
5276
|
const errorMessageId = `${domId}-error-message`;
|
|
5252
5277
|
return jsxs("div", {
|
|
5253
|
-
class: formFieldClasses(type$
|
|
5278
|
+
class: formFieldClasses(type$3, {
|
|
5254
5279
|
errors,
|
|
5255
5280
|
disabled,
|
|
5256
5281
|
readonly
|
|
@@ -5282,7 +5307,7 @@ function Textarea(props) {
|
|
|
5282
5307
|
});
|
|
5283
5308
|
}
|
|
5284
5309
|
Textarea.config = {
|
|
5285
|
-
type: type$
|
|
5310
|
+
type: type$3,
|
|
5286
5311
|
keyed: true,
|
|
5287
5312
|
name: 'Text area',
|
|
5288
5313
|
group: 'basic-input',
|
|
@@ -5314,57 +5339,57 @@ const autoSizeTextarea = textarea => {
|
|
|
5314
5339
|
textarea.style.overflow = calculatedHeight > maxHeight ? 'visible' : 'hidden';
|
|
5315
5340
|
};
|
|
5316
5341
|
|
|
5317
|
-
var _path$
|
|
5318
|
-
function _extends$
|
|
5342
|
+
var _path$8;
|
|
5343
|
+
function _extends$8() { return _extends$8 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$8.apply(null, arguments); }
|
|
5319
5344
|
var SvgArrowDown = function SvgArrowDown(props) {
|
|
5320
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
5345
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
5321
5346
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5322
5347
|
viewBox: "0 0 32 32"
|
|
5323
|
-
}, props), _path$
|
|
5348
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
5324
5349
|
fill: "currentcolor",
|
|
5325
5350
|
d: "M24.59 16.59 17 24.17V4h-2v20.17l-7.59-7.58L6 18l10 10 10-10z"
|
|
5326
5351
|
})));
|
|
5327
5352
|
};
|
|
5328
5353
|
|
|
5329
|
-
var _path$
|
|
5330
|
-
function _extends$
|
|
5354
|
+
var _path$7;
|
|
5355
|
+
function _extends$7() { return _extends$7 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$7.apply(null, arguments); }
|
|
5331
5356
|
var SvgArrowUp = function SvgArrowUp(props) {
|
|
5332
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
5357
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
5333
5358
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5334
5359
|
viewBox: "0 0 32 32"
|
|
5335
|
-
}, props), _path$
|
|
5360
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
5336
5361
|
fill: "currentcolor",
|
|
5337
5362
|
d: "M16 4 6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14z"
|
|
5338
5363
|
})));
|
|
5339
5364
|
};
|
|
5340
5365
|
|
|
5341
|
-
var _path$
|
|
5342
|
-
function _extends$
|
|
5366
|
+
var _path$6;
|
|
5367
|
+
function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
|
|
5343
5368
|
var SvgCaretLeft = function SvgCaretLeft(props) {
|
|
5344
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
5369
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
5345
5370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5346
5371
|
xmlSpace: "preserve",
|
|
5347
5372
|
viewBox: "0 0 32 32"
|
|
5348
|
-
}, props), _path$
|
|
5373
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
5349
5374
|
fill: "currentcolor",
|
|
5350
5375
|
d: "m20 24-10-8 10-8z"
|
|
5351
5376
|
})));
|
|
5352
5377
|
};
|
|
5353
5378
|
|
|
5354
|
-
var _path$
|
|
5355
|
-
function _extends$
|
|
5379
|
+
var _path$5;
|
|
5380
|
+
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
5356
5381
|
var SvgCaretRight = function SvgCaretRight(props) {
|
|
5357
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
5382
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
5358
5383
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5359
5384
|
xmlSpace: "preserve",
|
|
5360
5385
|
viewBox: "0 0 32 32"
|
|
5361
|
-
}, props), _path$
|
|
5386
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
5362
5387
|
fill: "currentcolor",
|
|
5363
5388
|
d: "m12 8 10 8-10 8z"
|
|
5364
5389
|
})));
|
|
5365
5390
|
};
|
|
5366
5391
|
|
|
5367
|
-
const type$
|
|
5392
|
+
const type$2 = 'table';
|
|
5368
5393
|
|
|
5369
5394
|
/**
|
|
5370
5395
|
* @typedef {('asc'|'desc')} Direction
|
|
@@ -5445,7 +5470,7 @@ function Table(props) {
|
|
|
5445
5470
|
});
|
|
5446
5471
|
}
|
|
5447
5472
|
return jsxs("div", {
|
|
5448
|
-
class: formFieldClasses(type$
|
|
5473
|
+
class: formFieldClasses(type$2),
|
|
5449
5474
|
children: [jsx(Label, {
|
|
5450
5475
|
htmlFor: prefixId(id),
|
|
5451
5476
|
label: label
|
|
@@ -5542,7 +5567,7 @@ function Table(props) {
|
|
|
5542
5567
|
});
|
|
5543
5568
|
}
|
|
5544
5569
|
Table.config = {
|
|
5545
|
-
type: type$
|
|
5570
|
+
type: type$2,
|
|
5546
5571
|
keyed: false,
|
|
5547
5572
|
name: 'Table',
|
|
5548
5573
|
group: 'presentation',
|
|
@@ -5697,7 +5722,7 @@ function getHeaderAriaLabel(sortBy, key, label) {
|
|
|
5697
5722
|
|
|
5698
5723
|
const FILE_PICKER_FILE_KEY_PREFIX = 'files::';
|
|
5699
5724
|
|
|
5700
|
-
const type = 'filepicker';
|
|
5725
|
+
const type$1 = 'filepicker';
|
|
5701
5726
|
const ids$1 = new Ids();
|
|
5702
5727
|
const EMPTY_ARRAY$1 = [];
|
|
5703
5728
|
|
|
@@ -5785,7 +5810,7 @@ function FilePicker(props) {
|
|
|
5785
5810
|
};
|
|
5786
5811
|
const isInputDisabled = disabled || readonly || fileRegistry === null;
|
|
5787
5812
|
return jsxs("div", {
|
|
5788
|
-
className: formFieldClasses(type, {
|
|
5813
|
+
className: formFieldClasses(type$1, {
|
|
5789
5814
|
errors,
|
|
5790
5815
|
disabled,
|
|
5791
5816
|
readonly
|
|
@@ -5852,6 +5877,323 @@ function getSelectedFilesLabel(files) {
|
|
|
5852
5877
|
return `${files.length} files selected`;
|
|
5853
5878
|
}
|
|
5854
5879
|
|
|
5880
|
+
var _path$4;
|
|
5881
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
5882
|
+
var SvgDownload = function SvgDownload(props) {
|
|
5883
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
5884
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5885
|
+
width: 16,
|
|
5886
|
+
height: 16
|
|
5887
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
5888
|
+
fill: "currentColor",
|
|
5889
|
+
d: "M13 12v2H3v-2H2v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2zm0-5-.705-.705-3.795 3.79V1h-1v9.085l-3.795-3.79L3 7l5 5z"
|
|
5890
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
5891
|
+
d: "M0 0h16v16H0z",
|
|
5892
|
+
style: {
|
|
5893
|
+
fill: "none"
|
|
5894
|
+
}
|
|
5895
|
+
}));
|
|
5896
|
+
};
|
|
5897
|
+
|
|
5898
|
+
const type = 'documentPreview';
|
|
5899
|
+
|
|
5900
|
+
/**
|
|
5901
|
+
* @typedef DocumentMetadata
|
|
5902
|
+
* @property {string} documentId
|
|
5903
|
+
* @property {Object} metadata
|
|
5904
|
+
* @property {string|undefined} [metadata.contentType]
|
|
5905
|
+
* @property {string} metadata.fileName
|
|
5906
|
+
*
|
|
5907
|
+
* @typedef Field
|
|
5908
|
+
* @property {string} id
|
|
5909
|
+
* @property {string} [title]
|
|
5910
|
+
* @property {string} [dataSource]
|
|
5911
|
+
* @property {string} [endpointKey]
|
|
5912
|
+
* @property {number} [maxHeight]
|
|
5913
|
+
* @property {string} [label]
|
|
5914
|
+
*
|
|
5915
|
+
* @typedef Props
|
|
5916
|
+
* @property {Field} field
|
|
5917
|
+
* @property {string} domId
|
|
5918
|
+
*
|
|
5919
|
+
* @param {Props} props
|
|
5920
|
+
* @returns {import("preact").JSX.Element}
|
|
5921
|
+
*/
|
|
5922
|
+
function DocumentPreview(props) {
|
|
5923
|
+
const {
|
|
5924
|
+
field,
|
|
5925
|
+
domId
|
|
5926
|
+
} = props;
|
|
5927
|
+
const {
|
|
5928
|
+
dataSource,
|
|
5929
|
+
endpointKey,
|
|
5930
|
+
maxHeight,
|
|
5931
|
+
label
|
|
5932
|
+
} = field;
|
|
5933
|
+
const errorMessageId = `${domId}-error-message`;
|
|
5934
|
+
const endpoint = useExpressionEvaluation(endpointKey || '');
|
|
5935
|
+
const data = useValidDocumentData(dataSource || '');
|
|
5936
|
+
const evaluatedLabel = useSingleLineTemplateEvaluation(label, {
|
|
5937
|
+
debug: true
|
|
5938
|
+
});
|
|
5939
|
+
return jsxs("div", {
|
|
5940
|
+
class: formFieldClasses(type),
|
|
5941
|
+
children: [jsx(Label, {
|
|
5942
|
+
htmlFor: domId,
|
|
5943
|
+
label: evaluatedLabel
|
|
5944
|
+
}), jsx("div", {
|
|
5945
|
+
class: `fjs-${type}-document-container`,
|
|
5946
|
+
id: domId,
|
|
5947
|
+
children: isValidDocumentEndpoint(endpoint) ? data.map((document, index) => jsx(DocumentRenderer, {
|
|
5948
|
+
documentMetadata: document,
|
|
5949
|
+
endpoint: endpoint,
|
|
5950
|
+
maxHeight: maxHeight,
|
|
5951
|
+
domId: `${domId}-${index}`
|
|
5952
|
+
}, document.documentId)) : null
|
|
5953
|
+
}), jsx(Errors, {
|
|
5954
|
+
id: errorMessageId,
|
|
5955
|
+
errors: getErrors({
|
|
5956
|
+
dataSource,
|
|
5957
|
+
endpoint,
|
|
5958
|
+
endpointKey
|
|
5959
|
+
})
|
|
5960
|
+
})]
|
|
5961
|
+
});
|
|
5962
|
+
}
|
|
5963
|
+
DocumentPreview.config = {
|
|
5964
|
+
type,
|
|
5965
|
+
keyed: false,
|
|
5966
|
+
group: 'presentation',
|
|
5967
|
+
name: 'Document preview',
|
|
5968
|
+
create: (options = {}) => ({
|
|
5969
|
+
label: 'Document preview',
|
|
5970
|
+
endpointKey: DEFAULT_ENDPOINT_KEY,
|
|
5971
|
+
...options
|
|
5972
|
+
})
|
|
5973
|
+
};
|
|
5974
|
+
|
|
5975
|
+
// helpers /////////////////////////////
|
|
5976
|
+
|
|
5977
|
+
const DOCUMENT_ID_PLACEHOLDER = '{documentId}';
|
|
5978
|
+
const DEFAULT_ENDPOINT_KEY = '=defaultDocumentsEndpointKey';
|
|
5979
|
+
|
|
5980
|
+
/**
|
|
5981
|
+
* @typedef GetErrorOptions
|
|
5982
|
+
* @property {string|undefined} dataSource
|
|
5983
|
+
* @property {string|undefined} endpointKey
|
|
5984
|
+
* @property {string|null} endpoint
|
|
5985
|
+
*
|
|
5986
|
+
* @param {GetErrorOptions} options
|
|
5987
|
+
* @returns {string[]}
|
|
5988
|
+
*/
|
|
5989
|
+
function getErrors(options) {
|
|
5990
|
+
const {
|
|
5991
|
+
dataSource,
|
|
5992
|
+
endpointKey,
|
|
5993
|
+
endpoint
|
|
5994
|
+
} = options;
|
|
5995
|
+
let errors = [];
|
|
5996
|
+
if (!isString(dataSource) || dataSource.length < 1) {
|
|
5997
|
+
errors.push('Document reference is not defined.');
|
|
5998
|
+
}
|
|
5999
|
+
if (!isString(endpointKey) || endpointKey.length < 1) {
|
|
6000
|
+
errors.push('Endpoint key is not defined.');
|
|
6001
|
+
}
|
|
6002
|
+
if (endpointKey !== DEFAULT_ENDPOINT_KEY && !URL.canParse(endpoint)) {
|
|
6003
|
+
errors.push(`If you change the endpoint key from "${DEFAULT_ENDPOINT_KEY}", the document preview won't work with Camunda Tasklist and you must provide a valid URL.`);
|
|
6004
|
+
} else if (endpointKey !== DEFAULT_ENDPOINT_KEY && !isValidDocumentEndpoint(endpoint)) {
|
|
6005
|
+
errors.push('Endpoint must contain "{documentId}".');
|
|
6006
|
+
}
|
|
6007
|
+
return errors;
|
|
6008
|
+
}
|
|
6009
|
+
|
|
6010
|
+
/**
|
|
6011
|
+
*
|
|
6012
|
+
* @param {unknown} endpoint
|
|
6013
|
+
* @returns boolean
|
|
6014
|
+
*/
|
|
6015
|
+
function isValidDocumentEndpoint(endpoint) {
|
|
6016
|
+
return typeof endpoint === 'string' && URL.canParse(endpoint) && endpoint.includes(DOCUMENT_ID_PLACEHOLDER);
|
|
6017
|
+
}
|
|
6018
|
+
|
|
6019
|
+
/**
|
|
6020
|
+
* @param {unknown} document
|
|
6021
|
+
* @returns {metadata is DocumentMetadata}
|
|
6022
|
+
*/
|
|
6023
|
+
function isValidDocument(document) {
|
|
6024
|
+
return typeof document === 'object' && 'documentId' in document && 'metadata' in document && typeof document.metadata === 'object' && 'fileName' in document.metadata;
|
|
6025
|
+
}
|
|
6026
|
+
|
|
6027
|
+
/**
|
|
6028
|
+
* @param {string} dataSource
|
|
6029
|
+
* @returns {DocumentMetadata[]}
|
|
6030
|
+
*/
|
|
6031
|
+
function useValidDocumentData(dataSource) {
|
|
6032
|
+
const data = useExpressionEvaluation(dataSource);
|
|
6033
|
+
if (!Array.isArray(data)) {
|
|
6034
|
+
return [];
|
|
6035
|
+
}
|
|
6036
|
+
return data.filter(isValidDocument);
|
|
6037
|
+
}
|
|
6038
|
+
|
|
6039
|
+
/**
|
|
6040
|
+
*
|
|
6041
|
+
* @param {Object} props
|
|
6042
|
+
* @param {DocumentMetadata} props.documentMetadata
|
|
6043
|
+
* @param {string} props.endpoint
|
|
6044
|
+
* @param {string} props.domId
|
|
6045
|
+
* @param {number|undefined} props.maxHeight
|
|
6046
|
+
*
|
|
6047
|
+
* @returns {import("preact").JSX.Element}
|
|
6048
|
+
*/
|
|
6049
|
+
function DocumentRenderer(props) {
|
|
6050
|
+
const {
|
|
6051
|
+
documentMetadata,
|
|
6052
|
+
endpoint,
|
|
6053
|
+
maxHeight,
|
|
6054
|
+
domId
|
|
6055
|
+
} = props;
|
|
6056
|
+
const {
|
|
6057
|
+
metadata
|
|
6058
|
+
} = documentMetadata;
|
|
6059
|
+
const [hasError, setHasError] = useState(false);
|
|
6060
|
+
const ref = useRef(null);
|
|
6061
|
+
const isInViewport = useInViewport(ref);
|
|
6062
|
+
const fullUrl = endpoint.replace(DOCUMENT_ID_PLACEHOLDER, documentMetadata.documentId);
|
|
6063
|
+
const singleDocumentContainerClassName = `fjs-${type}-single-document-container`;
|
|
6064
|
+
const errorMessageId = `${domId}-error-message`;
|
|
6065
|
+
const errorMessage = 'Unable to download document';
|
|
6066
|
+
const isContentTypePresent = typeof metadata.contentType === 'string';
|
|
6067
|
+
if (isContentTypePresent && metadata.contentType.toLowerCase().startsWith('image/') && isInViewport) {
|
|
6068
|
+
return jsxs("div", {
|
|
6069
|
+
class: singleDocumentContainerClassName,
|
|
6070
|
+
style: {
|
|
6071
|
+
maxHeight
|
|
6072
|
+
},
|
|
6073
|
+
"aria-describedby": hasError ? errorMessageId : undefined,
|
|
6074
|
+
children: [jsx("img", {
|
|
6075
|
+
src: fullUrl,
|
|
6076
|
+
alt: metadata.fileName,
|
|
6077
|
+
class: `fjs-${type}-image`
|
|
6078
|
+
}), jsx(DownloadButton, {
|
|
6079
|
+
endpoint: fullUrl,
|
|
6080
|
+
fileName: metadata.fileName,
|
|
6081
|
+
onDownloadError: () => {
|
|
6082
|
+
setHasError(true);
|
|
6083
|
+
}
|
|
6084
|
+
}), hasError ? jsx(Errors, {
|
|
6085
|
+
id: errorMessageId,
|
|
6086
|
+
errors: [errorMessage]
|
|
6087
|
+
}) : null]
|
|
6088
|
+
});
|
|
6089
|
+
}
|
|
6090
|
+
if (isContentTypePresent && metadata.contentType.toLowerCase() === 'application/pdf' && isInViewport) {
|
|
6091
|
+
return jsxs("div", {
|
|
6092
|
+
class: singleDocumentContainerClassName,
|
|
6093
|
+
style: {
|
|
6094
|
+
maxHeight
|
|
6095
|
+
},
|
|
6096
|
+
"aria-describedby": hasError ? errorMessageId : undefined,
|
|
6097
|
+
children: [jsx("embed", {
|
|
6098
|
+
src: fullUrl,
|
|
6099
|
+
type: "application/pdf",
|
|
6100
|
+
class: `fjs-${type}-pdf-viewer`
|
|
6101
|
+
}), hasError ? jsx(Errors, {
|
|
6102
|
+
id: errorMessageId,
|
|
6103
|
+
errors: [errorMessage]
|
|
6104
|
+
}) : null]
|
|
6105
|
+
});
|
|
6106
|
+
}
|
|
6107
|
+
return jsxs("div", {
|
|
6108
|
+
class: classNames(`fjs-${type}-non-preview-item`, `fjs-${type}-single-document-container`),
|
|
6109
|
+
ref: ref,
|
|
6110
|
+
"aria-describedby": hasError ? errorMessageId : undefined,
|
|
6111
|
+
children: [jsxs("div", {
|
|
6112
|
+
children: [jsx("div", {
|
|
6113
|
+
class: "fjs-document-preview-title",
|
|
6114
|
+
children: metadata.fileName
|
|
6115
|
+
}), hasError ? jsx(Errors, {
|
|
6116
|
+
id: errorMessageId,
|
|
6117
|
+
errors: [errorMessage]
|
|
6118
|
+
}) : null]
|
|
6119
|
+
}), jsx(DownloadButton, {
|
|
6120
|
+
endpoint: fullUrl,
|
|
6121
|
+
fileName: metadata.fileName,
|
|
6122
|
+
onDownloadError: () => {
|
|
6123
|
+
setHasError(true);
|
|
6124
|
+
}
|
|
6125
|
+
})]
|
|
6126
|
+
});
|
|
6127
|
+
}
|
|
6128
|
+
|
|
6129
|
+
/**
|
|
6130
|
+
* @param {Object} props
|
|
6131
|
+
* @param {string} props.endpoint
|
|
6132
|
+
* @param {string} props.fileName
|
|
6133
|
+
* @param {Function} props.onDownloadError
|
|
6134
|
+
*
|
|
6135
|
+
* @returns {import("preact").JSX.Element}
|
|
6136
|
+
*/
|
|
6137
|
+
function DownloadButton(props) {
|
|
6138
|
+
const {
|
|
6139
|
+
endpoint,
|
|
6140
|
+
fileName,
|
|
6141
|
+
onDownloadError
|
|
6142
|
+
} = props;
|
|
6143
|
+
const handleDownload = async () => {
|
|
6144
|
+
try {
|
|
6145
|
+
const response = await fetch(endpoint);
|
|
6146
|
+
if (!response.ok) {
|
|
6147
|
+
onDownloadError();
|
|
6148
|
+
return;
|
|
6149
|
+
}
|
|
6150
|
+
const blob = await response.blob();
|
|
6151
|
+
const url = window.URL.createObjectURL(blob);
|
|
6152
|
+
const link = document.createElement('a');
|
|
6153
|
+
link.href = url;
|
|
6154
|
+
link.download = fileName;
|
|
6155
|
+
link.click();
|
|
6156
|
+
window.URL.revokeObjectURL(url);
|
|
6157
|
+
} catch {
|
|
6158
|
+
onDownloadError();
|
|
6159
|
+
}
|
|
6160
|
+
};
|
|
6161
|
+
return jsx("button", {
|
|
6162
|
+
type: "button",
|
|
6163
|
+
onClick: handleDownload,
|
|
6164
|
+
class: classNames(`fjs-${type}-download-button`),
|
|
6165
|
+
"aria-label": `Download ${fileName}`,
|
|
6166
|
+
children: jsx(SvgDownload, {})
|
|
6167
|
+
});
|
|
6168
|
+
}
|
|
6169
|
+
|
|
6170
|
+
/**
|
|
6171
|
+
*
|
|
6172
|
+
* @param {import("preact").RefObject<HTMLElement>} ref
|
|
6173
|
+
* @returns boolean
|
|
6174
|
+
*/
|
|
6175
|
+
function useInViewport(ref) {
|
|
6176
|
+
const [isInViewport, setIsInViewport] = useState(false);
|
|
6177
|
+
useEffect(() => {
|
|
6178
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
6179
|
+
if (entry.isIntersecting) {
|
|
6180
|
+
setIsInViewport(true);
|
|
6181
|
+
}
|
|
6182
|
+
}, {
|
|
6183
|
+
threshold: 0
|
|
6184
|
+
});
|
|
6185
|
+
if (ref.current) {
|
|
6186
|
+
observer.observe(ref.current);
|
|
6187
|
+
}
|
|
6188
|
+
return () => {
|
|
6189
|
+
if (ref.current) {
|
|
6190
|
+
observer.unobserve(ref.current);
|
|
6191
|
+
}
|
|
6192
|
+
};
|
|
6193
|
+
}, [ref]);
|
|
6194
|
+
return isInViewport;
|
|
6195
|
+
}
|
|
6196
|
+
|
|
5855
6197
|
/**
|
|
5856
6198
|
* This file must not be changed or exchanged.
|
|
5857
6199
|
*
|
|
@@ -5990,7 +6332,7 @@ function FormComponent(props) {
|
|
|
5990
6332
|
const formFields = [/* Input */
|
|
5991
6333
|
Textfield, Textarea, Numberfield, Datetime, ExpressionField, FilePicker, /* Selection */
|
|
5992
6334
|
Checkbox, Checklist, Radio, Select, Taglist, /* Presentation */
|
|
5993
|
-
Text, Image, Table, Html, Spacer, Separator, /* Containers */
|
|
6335
|
+
Text, Image, Table, Html, Spacer, Separator, DocumentPreview, /* Containers */
|
|
5994
6336
|
Group, DynamicList, IFrame, /* Other */
|
|
5995
6337
|
Button, Default];
|
|
5996
6338
|
|
|
@@ -6009,8 +6351,8 @@ class FormFields {
|
|
|
6009
6351
|
}
|
|
6010
6352
|
}
|
|
6011
6353
|
|
|
6012
|
-
const EXPRESSION_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'conditional.hide', 'description', 'label', 'source', 'readonly', 'text', 'validate.min', 'validate.max', 'validate.minLength', 'validate.maxLength', 'valuesExpression', 'url', 'dataSource', 'columnsExpression', 'expression', 'multiple', 'accept'];
|
|
6013
|
-
const TEMPLATE_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'description', 'label', 'source', 'text', 'content', 'url'];
|
|
6354
|
+
const EXPRESSION_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'conditional.hide', 'description', 'label', 'source', 'readonly', 'text', 'validate.min', 'validate.max', 'validate.minLength', 'validate.maxLength', 'valuesExpression', 'url', 'dataSource', 'columnsExpression', 'expression', 'multiple', 'accept', 'endpointKey', 'title'];
|
|
6355
|
+
const TEMPLATE_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'description', 'label', 'source', 'text', 'content', 'url', 'title'];
|
|
6014
6356
|
|
|
6015
6357
|
/**
|
|
6016
6358
|
* @typedef { import('../types').Schema } Schema
|
|
@@ -9402,7 +9744,7 @@ class Form {
|
|
|
9402
9744
|
}
|
|
9403
9745
|
}
|
|
9404
9746
|
|
|
9405
|
-
const schemaVersion =
|
|
9747
|
+
const schemaVersion = 18;
|
|
9406
9748
|
|
|
9407
9749
|
/**
|
|
9408
9750
|
* @typedef { import('./types').CreateFormOptions } CreateFormOptions
|
|
@@ -9427,5 +9769,5 @@ function createForm(options) {
|
|
|
9427
9769
|
});
|
|
9428
9770
|
}
|
|
9429
9771
|
|
|
9430
|
-
export { ALLOW_ATTRIBUTE, Button, Checkbox, Checklist, ConditionChecker, DATETIME_SUBTYPES, DATETIME_SUBTYPES_LABELS, DATETIME_SUBTYPE_PATH, DATE_DISALLOW_PAST_PATH, DATE_LABEL_PATH, Datetime, Default, Description, DynamicList, Errors, ExpressionField, ExpressionFieldModule, ExpressionLanguageModule, ExpressionLoopPreventer, FeelExpressionLanguage, FeelersTemplating, FieldFactory, FilePicker, Form, FormComponent, FormContext, FormField, FormFieldRegistry, FormFields, FormLayouter, FormRenderContext, Group, Html, IFrame, Image, Importer, Label, LocalExpressionContext, MINUTES_IN_DAY, MarkdownRenderer, MarkdownRendererModule, Numberfield, OPTIONS_SOURCES, OPTIONS_SOURCES_DEFAULTS, OPTIONS_SOURCES_LABELS, OPTIONS_SOURCES_PATHS, OPTIONS_SOURCE_DEFAULT, PathRegistry, Radio, RenderModule, RepeatRenderManager, RepeatRenderModule, SANDBOX_ATTRIBUTE, SECURITY_ATTRIBUTES_DEFINITIONS, Select, Separator, Spacer, TIME_INTERVAL_PATH, TIME_LABEL_PATH, TIME_SERIALISINGFORMAT_LABELS, TIME_SERIALISING_FORMATS, TIME_SERIALISING_FORMAT_PATH, TIME_USE24H_PATH, Table, Taglist, Text, Textarea, Textfield, ViewerCommands, ViewerCommandsModule, buildExpressionContext, clone, createForm, createFormContainer, createInjector, escapeHTML, formFields, generateIdForType, generateIndexForType, getAncestryList, getOptionsSource, getSchemaVariables, getScrollContainer, hasEqualValue, iconsByType, isRequired, pathParse, pathsEqual, runExpressionEvaluation, runRecursively, sanitizeDateTimePickerValue, sanitizeHTML, sanitizeIFrameSource, sanitizeImageSource, sanitizeMultiSelectValue, sanitizeSingleSelectValue, schemaVersion, useExpressionEvaluation, useSingleLineTemplateEvaluation, useTemplateEvaluation, wrapCSSStyles, wrapObjectKeysWithUnderscores };
|
|
9772
|
+
export { ALLOW_ATTRIBUTE, Button, Checkbox, Checklist, ConditionChecker, DATETIME_SUBTYPES, DATETIME_SUBTYPES_LABELS, DATETIME_SUBTYPE_PATH, DATE_DISALLOW_PAST_PATH, DATE_LABEL_PATH, Datetime, Default, Description, DocumentPreview, DynamicList, Errors, ExpressionField, ExpressionFieldModule, ExpressionLanguageModule, ExpressionLoopPreventer, FeelExpressionLanguage, FeelersTemplating, FieldFactory, FilePicker, Form, FormComponent, FormContext, FormField, FormFieldRegistry, FormFields, FormLayouter, FormRenderContext, Group, Html, IFrame, Image, Importer, Label, LocalExpressionContext, MINUTES_IN_DAY, MarkdownRenderer, MarkdownRendererModule, Numberfield, OPTIONS_SOURCES, OPTIONS_SOURCES_DEFAULTS, OPTIONS_SOURCES_LABELS, OPTIONS_SOURCES_PATHS, OPTIONS_SOURCE_DEFAULT, PathRegistry, Radio, RenderModule, RepeatRenderManager, RepeatRenderModule, SANDBOX_ATTRIBUTE, SECURITY_ATTRIBUTES_DEFINITIONS, Select, Separator, Spacer, TIME_INTERVAL_PATH, TIME_LABEL_PATH, TIME_SERIALISINGFORMAT_LABELS, TIME_SERIALISING_FORMATS, TIME_SERIALISING_FORMAT_PATH, TIME_USE24H_PATH, Table, Taglist, Text, Textarea, Textfield, ViewerCommands, ViewerCommandsModule, buildExpressionContext, clone, createForm, createFormContainer, createInjector, escapeHTML, formFields, generateIdForType, generateIndexForType, getAncestryList, getOptionsSource, getSchemaVariables, getScrollContainer, hasEqualValue, iconsByType, isRequired, pathParse, pathsEqual, runExpressionEvaluation, runRecursively, sanitizeDateTimePickerValue, sanitizeHTML, sanitizeIFrameSource, sanitizeImageSource, sanitizeMultiSelectValue, sanitizeSingleSelectValue, schemaVersion, useExpressionEvaluation, useSingleLineTemplateEvaluation, useTemplateEvaluation, wrapCSSStyles, wrapObjectKeysWithUnderscores };
|
|
9431
9773
|
//# sourceMappingURL=index.es.js.map
|