@bpmn-io/form-js-viewer 1.11.3 → 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 +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1710,7 +1710,7 @@ function useCleanupMultiSelectValue(props) {
|
|
|
1710
1710
|
}, [field, options, onChange, memoizedValues, loadState]);
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
|
-
const type$
|
|
1713
|
+
const type$j = 'button';
|
|
1714
1714
|
function Button(props) {
|
|
1715
1715
|
const {
|
|
1716
1716
|
disabled,
|
|
@@ -1725,7 +1725,7 @@ function Button(props) {
|
|
|
1725
1725
|
debug: true
|
|
1726
1726
|
});
|
|
1727
1727
|
return jsxRuntime.jsx("div", {
|
|
1728
|
-
class: formFieldClasses(type$
|
|
1728
|
+
class: formFieldClasses(type$j),
|
|
1729
1729
|
children: jsxRuntime.jsx("button", {
|
|
1730
1730
|
class: "fjs-button",
|
|
1731
1731
|
type: action,
|
|
@@ -1737,7 +1737,7 @@ function Button(props) {
|
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
1739
|
Button.config = {
|
|
1740
|
-
type: type$
|
|
1740
|
+
type: type$j,
|
|
1741
1741
|
keyed: false,
|
|
1742
1742
|
name: 'Button',
|
|
1743
1743
|
group: 'action',
|
|
@@ -1766,6 +1766,14 @@ function Description(props) {
|
|
|
1766
1766
|
});
|
|
1767
1767
|
}
|
|
1768
1768
|
|
|
1769
|
+
/**
|
|
1770
|
+
* @typedef Props
|
|
1771
|
+
* @property {string} id
|
|
1772
|
+
* @property {string[]} errors
|
|
1773
|
+
*
|
|
1774
|
+
* @param {Props} props
|
|
1775
|
+
* @returns {import("preact").JSX.Element}
|
|
1776
|
+
*/
|
|
1769
1777
|
function Errors(props) {
|
|
1770
1778
|
const {
|
|
1771
1779
|
errors,
|
|
@@ -1813,7 +1821,7 @@ function Label(props) {
|
|
|
1813
1821
|
});
|
|
1814
1822
|
}
|
|
1815
1823
|
|
|
1816
|
-
const type$
|
|
1824
|
+
const type$i = 'checkbox';
|
|
1817
1825
|
function Checkbox(props) {
|
|
1818
1826
|
const {
|
|
1819
1827
|
disabled,
|
|
@@ -1843,7 +1851,7 @@ function Checkbox(props) {
|
|
|
1843
1851
|
const descriptionId = `${domId}-description`;
|
|
1844
1852
|
const errorMessageId = `${domId}-error-message`;
|
|
1845
1853
|
return jsxRuntime.jsxs("div", {
|
|
1846
|
-
class: classNames(formFieldClasses(type$
|
|
1854
|
+
class: classNames(formFieldClasses(type$i, {
|
|
1847
1855
|
errors,
|
|
1848
1856
|
disabled,
|
|
1849
1857
|
readonly
|
|
@@ -1880,7 +1888,7 @@ function Checkbox(props) {
|
|
|
1880
1888
|
});
|
|
1881
1889
|
}
|
|
1882
1890
|
Checkbox.config = {
|
|
1883
|
-
type: type$
|
|
1891
|
+
type: type$i,
|
|
1884
1892
|
keyed: true,
|
|
1885
1893
|
name: 'Checkbox',
|
|
1886
1894
|
group: 'selection',
|
|
@@ -1894,7 +1902,7 @@ Checkbox.config = {
|
|
|
1894
1902
|
})
|
|
1895
1903
|
};
|
|
1896
1904
|
|
|
1897
|
-
const type$
|
|
1905
|
+
const type$h = 'checklist';
|
|
1898
1906
|
function Checklist(props) {
|
|
1899
1907
|
const {
|
|
1900
1908
|
disabled,
|
|
@@ -1949,7 +1957,7 @@ function Checklist(props) {
|
|
|
1949
1957
|
const descriptionId = `${domId}-description`;
|
|
1950
1958
|
const errorMessageId = `${domId}-error-message`;
|
|
1951
1959
|
return jsxRuntime.jsxs("div", {
|
|
1952
|
-
class: classNames(formFieldClasses(type$
|
|
1960
|
+
class: classNames(formFieldClasses(type$h, {
|
|
1953
1961
|
errors,
|
|
1954
1962
|
disabled,
|
|
1955
1963
|
readonly
|
|
@@ -1994,7 +2002,7 @@ function Checklist(props) {
|
|
|
1994
2002
|
});
|
|
1995
2003
|
}
|
|
1996
2004
|
Checklist.config = {
|
|
1997
|
-
type: type$
|
|
2005
|
+
type: type$h,
|
|
1998
2006
|
keyed: true,
|
|
1999
2007
|
name: 'Checkbox group',
|
|
2000
2008
|
group: 'selection',
|
|
@@ -2313,16 +2321,16 @@ Default.config = {
|
|
|
2313
2321
|
getSubheading: field => field.id
|
|
2314
2322
|
};
|
|
2315
2323
|
|
|
2316
|
-
var _path$
|
|
2317
|
-
function _extends$
|
|
2324
|
+
var _path$z;
|
|
2325
|
+
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); }
|
|
2318
2326
|
var SvgCalendar = function SvgCalendar(props) {
|
|
2319
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2327
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
2320
2328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2321
2329
|
width: 14,
|
|
2322
2330
|
height: 15,
|
|
2323
2331
|
fill: "none",
|
|
2324
2332
|
viewBox: "0 0 28 30"
|
|
2325
|
-
}, props), _path$
|
|
2333
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2326
2334
|
fill: "currentColor",
|
|
2327
2335
|
fillRule: "evenodd",
|
|
2328
2336
|
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",
|
|
@@ -2591,16 +2599,16 @@ function Datepicker(props) {
|
|
|
2591
2599
|
});
|
|
2592
2600
|
}
|
|
2593
2601
|
|
|
2594
|
-
var _path$
|
|
2595
|
-
function _extends$
|
|
2602
|
+
var _path$y, _path2$4;
|
|
2603
|
+
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); }
|
|
2596
2604
|
var SvgClock = function SvgClock(props) {
|
|
2597
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2605
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
2598
2606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2599
2607
|
width: 16,
|
|
2600
2608
|
height: 16,
|
|
2601
2609
|
fill: "none",
|
|
2602
2610
|
viewBox: "0 0 28 29"
|
|
2603
|
-
}, props), _path$
|
|
2611
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2604
2612
|
fill: "currentColor",
|
|
2605
2613
|
d: "M13 14.41 18.59 20 20 18.59l-5-5.01V5h-2z"
|
|
2606
2614
|
})), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -2873,7 +2881,7 @@ function Timepicker(props) {
|
|
|
2873
2881
|
});
|
|
2874
2882
|
}
|
|
2875
2883
|
|
|
2876
|
-
const type$
|
|
2884
|
+
const type$g = 'datetime';
|
|
2877
2885
|
function Datetime(props) {
|
|
2878
2886
|
const {
|
|
2879
2887
|
disabled,
|
|
@@ -3044,7 +3052,7 @@ function Datetime(props) {
|
|
|
3044
3052
|
'aria-describedby': [descriptionId, errorMessageId].join(' ')
|
|
3045
3053
|
};
|
|
3046
3054
|
return jsxRuntime.jsxs("div", {
|
|
3047
|
-
class: formFieldClasses(type$
|
|
3055
|
+
class: formFieldClasses(type$g, {
|
|
3048
3056
|
errors: allErrors,
|
|
3049
3057
|
disabled,
|
|
3050
3058
|
readonly
|
|
@@ -3069,7 +3077,7 @@ function Datetime(props) {
|
|
|
3069
3077
|
});
|
|
3070
3078
|
}
|
|
3071
3079
|
Datetime.config = {
|
|
3072
|
-
type: type$
|
|
3080
|
+
type: type$g,
|
|
3073
3081
|
keyed: true,
|
|
3074
3082
|
name: 'Date time',
|
|
3075
3083
|
group: 'basic-input',
|
|
@@ -3135,7 +3143,7 @@ Group.config = {
|
|
|
3135
3143
|
})
|
|
3136
3144
|
};
|
|
3137
3145
|
|
|
3138
|
-
const type$
|
|
3146
|
+
const type$f = 'iframe';
|
|
3139
3147
|
const DEFAULT_HEIGHT = 300;
|
|
3140
3148
|
function IFrame(props) {
|
|
3141
3149
|
const {
|
|
@@ -3165,7 +3173,7 @@ function IFrame(props) {
|
|
|
3165
3173
|
setIframeRefresh(count => count + 1);
|
|
3166
3174
|
}, [sandbox, allow]);
|
|
3167
3175
|
return jsxRuntime.jsxs("div", {
|
|
3168
|
-
class: formFieldClasses(type$
|
|
3176
|
+
class: formFieldClasses(type$f, {
|
|
3169
3177
|
disabled,
|
|
3170
3178
|
readonly
|
|
3171
3179
|
}),
|
|
@@ -3200,7 +3208,7 @@ function IFramePlaceholder(props) {
|
|
|
3200
3208
|
});
|
|
3201
3209
|
}
|
|
3202
3210
|
IFrame.config = {
|
|
3203
|
-
type: type$
|
|
3211
|
+
type: type$f,
|
|
3204
3212
|
keyed: false,
|
|
3205
3213
|
name: 'iFrame',
|
|
3206
3214
|
group: 'container',
|
|
@@ -3213,42 +3221,42 @@ IFrame.config = {
|
|
|
3213
3221
|
})
|
|
3214
3222
|
};
|
|
3215
3223
|
|
|
3216
|
-
var _path$
|
|
3217
|
-
function _extends$
|
|
3224
|
+
var _path$x;
|
|
3225
|
+
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); }
|
|
3218
3226
|
var SvgButton = function SvgButton(props) {
|
|
3219
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3227
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
3220
3228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3221
3229
|
width: 54,
|
|
3222
3230
|
height: 54,
|
|
3223
3231
|
fill: "currentcolor"
|
|
3224
|
-
}, props), _path$
|
|
3232
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3225
3233
|
fillRule: "evenodd",
|
|
3226
3234
|
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"
|
|
3227
3235
|
})));
|
|
3228
3236
|
};
|
|
3229
3237
|
|
|
3230
|
-
var _path$
|
|
3231
|
-
function _extends$
|
|
3238
|
+
var _path$w;
|
|
3239
|
+
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); }
|
|
3232
3240
|
var SvgCheckbox = function SvgCheckbox(props) {
|
|
3233
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3241
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
3234
3242
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3235
3243
|
width: 54,
|
|
3236
3244
|
height: 54,
|
|
3237
3245
|
fill: "currentcolor"
|
|
3238
|
-
}, props), _path$
|
|
3246
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3239
3247
|
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"
|
|
3240
3248
|
})));
|
|
3241
3249
|
};
|
|
3242
3250
|
|
|
3243
|
-
var _path$
|
|
3244
|
-
function _extends$
|
|
3251
|
+
var _path$v;
|
|
3252
|
+
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); }
|
|
3245
3253
|
var SvgChecklist = function SvgChecklist(props) {
|
|
3246
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3254
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
3247
3255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3248
3256
|
width: 54,
|
|
3249
3257
|
height: 54,
|
|
3250
3258
|
fill: "none"
|
|
3251
|
-
}, props), _path$
|
|
3259
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3252
3260
|
fill: "currentColor",
|
|
3253
3261
|
fillRule: "evenodd",
|
|
3254
3262
|
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",
|
|
@@ -3256,15 +3264,15 @@ var SvgChecklist = function SvgChecklist(props) {
|
|
|
3256
3264
|
})));
|
|
3257
3265
|
};
|
|
3258
3266
|
|
|
3259
|
-
var _path$
|
|
3260
|
-
function _extends$
|
|
3267
|
+
var _path$u, _path2$3, _path3;
|
|
3268
|
+
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); }
|
|
3261
3269
|
var SvgDatetime = function SvgDatetime(props) {
|
|
3262
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3270
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
3263
3271
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3264
3272
|
width: 54,
|
|
3265
3273
|
height: 54,
|
|
3266
3274
|
fill: "currentcolor"
|
|
3267
|
-
}, props), _path$
|
|
3275
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3268
3276
|
fillRule: "evenodd",
|
|
3269
3277
|
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"
|
|
3270
3278
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -3275,15 +3283,15 @@ var SvgDatetime = function SvgDatetime(props) {
|
|
|
3275
3283
|
})));
|
|
3276
3284
|
};
|
|
3277
3285
|
|
|
3278
|
-
var _path$
|
|
3279
|
-
function _extends$
|
|
3286
|
+
var _path$t, _path2$2;
|
|
3287
|
+
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); }
|
|
3280
3288
|
var SvgTaglist = function SvgTaglist(props) {
|
|
3281
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3289
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
3282
3290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3283
3291
|
width: 54,
|
|
3284
3292
|
height: 54,
|
|
3285
3293
|
fill: "currentcolor"
|
|
3286
|
-
}, props), _path$
|
|
3294
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3287
3295
|
fillRule: "evenodd",
|
|
3288
3296
|
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"
|
|
3289
3297
|
})), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -3292,9 +3300,9 @@ var SvgTaglist = function SvgTaglist(props) {
|
|
|
3292
3300
|
};
|
|
3293
3301
|
|
|
3294
3302
|
var _rect, _rect2, _rect3;
|
|
3295
|
-
function _extends$
|
|
3303
|
+
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); }
|
|
3296
3304
|
var SvgForm = function SvgForm(props) {
|
|
3297
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3305
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
3298
3306
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3299
3307
|
width: 54,
|
|
3300
3308
|
height: 54
|
|
@@ -3319,15 +3327,15 @@ var SvgForm = function SvgForm(props) {
|
|
|
3319
3327
|
})));
|
|
3320
3328
|
};
|
|
3321
3329
|
|
|
3322
|
-
var _path$
|
|
3323
|
-
function _extends$
|
|
3330
|
+
var _path$s;
|
|
3331
|
+
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); }
|
|
3324
3332
|
var SvgGroup = function SvgGroup(props) {
|
|
3325
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3333
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
3326
3334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3327
3335
|
width: 54,
|
|
3328
3336
|
height: 54,
|
|
3329
3337
|
fill: "none"
|
|
3330
|
-
}, props), _path$
|
|
3338
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3331
3339
|
fill: "#000",
|
|
3332
3340
|
fillRule: "evenodd",
|
|
3333
3341
|
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",
|
|
@@ -3335,84 +3343,84 @@ var SvgGroup = function SvgGroup(props) {
|
|
|
3335
3343
|
})));
|
|
3336
3344
|
};
|
|
3337
3345
|
|
|
3338
|
-
var _path$
|
|
3339
|
-
function _extends$
|
|
3346
|
+
var _path$r;
|
|
3347
|
+
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); }
|
|
3340
3348
|
var SvgNumber = function SvgNumber(props) {
|
|
3341
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3349
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
3342
3350
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3343
3351
|
width: 54,
|
|
3344
3352
|
height: 54,
|
|
3345
3353
|
fill: "currentcolor"
|
|
3346
|
-
}, props), _path$
|
|
3354
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3347
3355
|
fillRule: "evenodd",
|
|
3348
3356
|
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"
|
|
3349
3357
|
})));
|
|
3350
3358
|
};
|
|
3351
3359
|
|
|
3352
|
-
var _path$
|
|
3353
|
-
function _extends$
|
|
3360
|
+
var _path$q;
|
|
3361
|
+
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); }
|
|
3354
3362
|
var SvgRadio = function SvgRadio(props) {
|
|
3355
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3363
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
3356
3364
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3357
3365
|
width: 54,
|
|
3358
3366
|
height: 54,
|
|
3359
3367
|
fill: "currentcolor"
|
|
3360
|
-
}, props), _path$
|
|
3368
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3361
3369
|
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"
|
|
3362
3370
|
})));
|
|
3363
3371
|
};
|
|
3364
3372
|
|
|
3365
|
-
var _path$
|
|
3366
|
-
function _extends$
|
|
3373
|
+
var _path$p;
|
|
3374
|
+
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); }
|
|
3367
3375
|
var SvgSelect = function SvgSelect(props) {
|
|
3368
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3376
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
3369
3377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3370
3378
|
width: 54,
|
|
3371
3379
|
height: 54,
|
|
3372
3380
|
fill: "currentcolor"
|
|
3373
|
-
}, props), _path$
|
|
3381
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3374
3382
|
fillRule: "evenodd",
|
|
3375
3383
|
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"
|
|
3376
3384
|
})));
|
|
3377
3385
|
};
|
|
3378
3386
|
|
|
3379
|
-
var _path$
|
|
3380
|
-
function _extends$
|
|
3387
|
+
var _path$o;
|
|
3388
|
+
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); }
|
|
3381
3389
|
var SvgSeparator = function SvgSeparator(props) {
|
|
3382
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3390
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
3383
3391
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3384
3392
|
width: 54,
|
|
3385
3393
|
height: 54,
|
|
3386
3394
|
fill: "none"
|
|
3387
|
-
}, props), _path$
|
|
3395
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3388
3396
|
fill: "currentColor",
|
|
3389
3397
|
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"
|
|
3390
3398
|
})));
|
|
3391
3399
|
};
|
|
3392
3400
|
|
|
3393
|
-
var _path$
|
|
3394
|
-
function _extends$
|
|
3401
|
+
var _path$n;
|
|
3402
|
+
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); }
|
|
3395
3403
|
var SvgSpacer = function SvgSpacer(props) {
|
|
3396
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3404
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
3397
3405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3398
3406
|
width: 54,
|
|
3399
3407
|
height: 54,
|
|
3400
3408
|
fill: "none"
|
|
3401
|
-
}, props), _path$
|
|
3409
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3402
3410
|
fill: "currentColor",
|
|
3403
3411
|
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"
|
|
3404
3412
|
})));
|
|
3405
3413
|
};
|
|
3406
3414
|
|
|
3407
|
-
var _path$
|
|
3408
|
-
function _extends$
|
|
3415
|
+
var _path$m;
|
|
3416
|
+
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); }
|
|
3409
3417
|
var SvgDynamicList = function SvgDynamicList(props) {
|
|
3410
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3418
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
3411
3419
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3412
3420
|
width: 54,
|
|
3413
3421
|
height: 54,
|
|
3414
3422
|
fill: "none"
|
|
3415
|
-
}, props), _path$
|
|
3423
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3416
3424
|
fill: "currentColor",
|
|
3417
3425
|
fillRule: "evenodd",
|
|
3418
3426
|
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",
|
|
@@ -3420,28 +3428,28 @@ var SvgDynamicList = function SvgDynamicList(props) {
|
|
|
3420
3428
|
})));
|
|
3421
3429
|
};
|
|
3422
3430
|
|
|
3423
|
-
var _path$
|
|
3424
|
-
function _extends$
|
|
3431
|
+
var _path$l;
|
|
3432
|
+
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); }
|
|
3425
3433
|
var SvgText = function SvgText(props) {
|
|
3426
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3434
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
3427
3435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3428
3436
|
width: 54,
|
|
3429
3437
|
height: 54,
|
|
3430
3438
|
fill: "currentcolor"
|
|
3431
|
-
}, props), _path$
|
|
3439
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3432
3440
|
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"
|
|
3433
3441
|
})));
|
|
3434
3442
|
};
|
|
3435
3443
|
|
|
3436
|
-
var _path$
|
|
3437
|
-
function _extends$
|
|
3444
|
+
var _path$k;
|
|
3445
|
+
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); }
|
|
3438
3446
|
var SvgHtml = function SvgHtml(props) {
|
|
3439
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3447
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
3440
3448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3441
3449
|
width: 54,
|
|
3442
3450
|
height: 54,
|
|
3443
3451
|
fill: "none"
|
|
3444
|
-
}, props), _path$
|
|
3452
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3445
3453
|
fill: "currentColor",
|
|
3446
3454
|
fillRule: "evenodd",
|
|
3447
3455
|
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",
|
|
@@ -3449,15 +3457,15 @@ var SvgHtml = function SvgHtml(props) {
|
|
|
3449
3457
|
})));
|
|
3450
3458
|
};
|
|
3451
3459
|
|
|
3452
|
-
var _path$
|
|
3453
|
-
function _extends$
|
|
3460
|
+
var _path$j;
|
|
3461
|
+
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); }
|
|
3454
3462
|
var SvgExpressionField = function SvgExpressionField(props) {
|
|
3455
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3463
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
3456
3464
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3457
3465
|
width: 54,
|
|
3458
3466
|
height: 54,
|
|
3459
3467
|
fill: "none"
|
|
3460
|
-
}, props), _path$
|
|
3468
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3461
3469
|
fill: "currentcolor",
|
|
3462
3470
|
fillRule: "evenodd",
|
|
3463
3471
|
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",
|
|
@@ -3465,43 +3473,43 @@ var SvgExpressionField = function SvgExpressionField(props) {
|
|
|
3465
3473
|
})));
|
|
3466
3474
|
};
|
|
3467
3475
|
|
|
3468
|
-
var _path$
|
|
3469
|
-
function _extends$
|
|
3476
|
+
var _path$i;
|
|
3477
|
+
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); }
|
|
3470
3478
|
var SvgTextfield = function SvgTextfield(props) {
|
|
3471
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3479
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
3472
3480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3473
3481
|
width: 54,
|
|
3474
3482
|
height: 54,
|
|
3475
3483
|
fill: "currentcolor"
|
|
3476
|
-
}, props), _path$
|
|
3484
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3477
3485
|
fillRule: "evenodd",
|
|
3478
3486
|
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"
|
|
3479
3487
|
})));
|
|
3480
3488
|
};
|
|
3481
3489
|
|
|
3482
|
-
var _path$
|
|
3483
|
-
function _extends$
|
|
3490
|
+
var _path$h;
|
|
3491
|
+
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); }
|
|
3484
3492
|
var SvgTextarea = function SvgTextarea(props) {
|
|
3485
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3493
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
3486
3494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3487
3495
|
width: 54,
|
|
3488
3496
|
height: 54,
|
|
3489
3497
|
fill: "currentcolor"
|
|
3490
|
-
}, props), _path$
|
|
3498
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3491
3499
|
fillRule: "evenodd",
|
|
3492
3500
|
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"
|
|
3493
3501
|
})));
|
|
3494
3502
|
};
|
|
3495
3503
|
|
|
3496
|
-
var _path$
|
|
3497
|
-
function _extends$
|
|
3504
|
+
var _path$g;
|
|
3505
|
+
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); }
|
|
3498
3506
|
var SvgIFrame = function SvgIFrame(props) {
|
|
3499
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3507
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
3500
3508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3501
3509
|
width: 54,
|
|
3502
3510
|
height: 54,
|
|
3503
3511
|
fill: "none"
|
|
3504
|
-
}, props), _path$
|
|
3512
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3505
3513
|
fill: "currentColor",
|
|
3506
3514
|
fillRule: "evenodd",
|
|
3507
3515
|
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",
|
|
@@ -3509,15 +3517,15 @@ var SvgIFrame = function SvgIFrame(props) {
|
|
|
3509
3517
|
})));
|
|
3510
3518
|
};
|
|
3511
3519
|
|
|
3512
|
-
var _path$
|
|
3513
|
-
function _extends$
|
|
3520
|
+
var _path$f, _path2$1;
|
|
3521
|
+
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); }
|
|
3514
3522
|
var SvgImage = function SvgImage(props) {
|
|
3515
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3523
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
3516
3524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3517
3525
|
width: 54,
|
|
3518
3526
|
height: 54,
|
|
3519
3527
|
fill: "currentcolor"
|
|
3520
|
-
}, props), _path$
|
|
3528
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3521
3529
|
fillRule: "evenodd",
|
|
3522
3530
|
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",
|
|
3523
3531
|
clipRule: "evenodd"
|
|
@@ -3528,14 +3536,14 @@ var SvgImage = function SvgImage(props) {
|
|
|
3528
3536
|
})));
|
|
3529
3537
|
};
|
|
3530
3538
|
|
|
3531
|
-
var _path$
|
|
3532
|
-
function _extends$
|
|
3539
|
+
var _path$e;
|
|
3540
|
+
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); }
|
|
3533
3541
|
var SvgTable = function SvgTable(props) {
|
|
3534
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3542
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
3535
3543
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3536
3544
|
fill: "none",
|
|
3537
3545
|
viewBox: "0 0 54 54"
|
|
3538
|
-
}, props), _path$
|
|
3546
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3539
3547
|
fill: "currentcolor",
|
|
3540
3548
|
fillRule: "evenodd",
|
|
3541
3549
|
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",
|
|
@@ -3543,15 +3551,15 @@ var SvgTable = function SvgTable(props) {
|
|
|
3543
3551
|
})));
|
|
3544
3552
|
};
|
|
3545
3553
|
|
|
3546
|
-
var _path$
|
|
3547
|
-
function _extends$
|
|
3554
|
+
var _path$d;
|
|
3555
|
+
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); }
|
|
3548
3556
|
var SvgFilePicker = function SvgFilePicker(props) {
|
|
3549
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3557
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
3550
3558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3551
3559
|
width: 54,
|
|
3552
3560
|
height: 54,
|
|
3553
3561
|
fill: "none"
|
|
3554
|
-
}, props), _path$
|
|
3562
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3555
3563
|
fill: "currentcolor",
|
|
3556
3564
|
fillRule: "evenodd",
|
|
3557
3565
|
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",
|
|
@@ -3559,6 +3567,22 @@ var SvgFilePicker = function SvgFilePicker(props) {
|
|
|
3559
3567
|
})));
|
|
3560
3568
|
};
|
|
3561
3569
|
|
|
3570
|
+
var _path$c;
|
|
3571
|
+
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); }
|
|
3572
|
+
var SvgDocumentPreview = function SvgDocumentPreview(props) {
|
|
3573
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
3574
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3575
|
+
width: 54,
|
|
3576
|
+
height: 54,
|
|
3577
|
+
fill: "none"
|
|
3578
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3579
|
+
fill: "currentcolor",
|
|
3580
|
+
fillRule: "evenodd",
|
|
3581
|
+
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",
|
|
3582
|
+
clipRule: "evenodd"
|
|
3583
|
+
})));
|
|
3584
|
+
};
|
|
3585
|
+
|
|
3562
3586
|
const iconsByType = type => {
|
|
3563
3587
|
return {
|
|
3564
3588
|
button: SvgButton,
|
|
@@ -3583,11 +3607,12 @@ const iconsByType = type => {
|
|
|
3583
3607
|
textarea: SvgTextarea,
|
|
3584
3608
|
table: SvgTable,
|
|
3585
3609
|
filepicker: SvgFilePicker,
|
|
3610
|
+
documentPreview: SvgDocumentPreview,
|
|
3586
3611
|
default: SvgForm
|
|
3587
3612
|
}[type];
|
|
3588
3613
|
};
|
|
3589
3614
|
|
|
3590
|
-
const type$
|
|
3615
|
+
const type$e = 'image';
|
|
3591
3616
|
function Image(props) {
|
|
3592
3617
|
const {
|
|
3593
3618
|
field
|
|
@@ -3609,7 +3634,7 @@ function Image(props) {
|
|
|
3609
3634
|
formId
|
|
3610
3635
|
} = hooks.useContext(FormContext);
|
|
3611
3636
|
return jsxRuntime.jsxs("div", {
|
|
3612
|
-
class: formFieldClasses(type$
|
|
3637
|
+
class: formFieldClasses(type$e),
|
|
3613
3638
|
children: [safeSource && jsxRuntime.jsx("div", {
|
|
3614
3639
|
class: "fjs-image-container",
|
|
3615
3640
|
children: jsxRuntime.jsx("img", {
|
|
@@ -3633,7 +3658,7 @@ function Image(props) {
|
|
|
3633
3658
|
});
|
|
3634
3659
|
}
|
|
3635
3660
|
Image.config = {
|
|
3636
|
-
type: type$
|
|
3661
|
+
type: type$e,
|
|
3637
3662
|
keyed: false,
|
|
3638
3663
|
name: 'Image view',
|
|
3639
3664
|
group: 'presentation',
|
|
@@ -3659,14 +3684,14 @@ function TemplatedInputAdorner(props) {
|
|
|
3659
3684
|
});
|
|
3660
3685
|
}
|
|
3661
3686
|
|
|
3662
|
-
var _path$
|
|
3663
|
-
function _extends$
|
|
3687
|
+
var _path$b;
|
|
3688
|
+
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); }
|
|
3664
3689
|
var SvgAngelDown = function SvgAngelDown(props) {
|
|
3665
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3690
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
3666
3691
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3667
3692
|
width: 8,
|
|
3668
3693
|
height: 8
|
|
3669
|
-
}, props), _path$
|
|
3694
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3670
3695
|
fill: "currentColor",
|
|
3671
3696
|
fillRule: "evenodd",
|
|
3672
3697
|
stroke: "currentColor",
|
|
@@ -3676,14 +3701,14 @@ var SvgAngelDown = function SvgAngelDown(props) {
|
|
|
3676
3701
|
})));
|
|
3677
3702
|
};
|
|
3678
3703
|
|
|
3679
|
-
var _path$
|
|
3680
|
-
function _extends$
|
|
3704
|
+
var _path$a;
|
|
3705
|
+
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); }
|
|
3681
3706
|
var SvgAngelUp = function SvgAngelUp(props) {
|
|
3682
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
3707
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
3683
3708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3684
3709
|
width: 8,
|
|
3685
3710
|
height: 8
|
|
3686
|
-
}, props), _path$
|
|
3711
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
3687
3712
|
fill: "currentColor",
|
|
3688
3713
|
fillRule: "evenodd",
|
|
3689
3714
|
stroke: "currentColor",
|
|
@@ -3722,7 +3747,7 @@ function isNullEquivalentValue(value) {
|
|
|
3722
3747
|
return value === undefined || value === null || value === '';
|
|
3723
3748
|
}
|
|
3724
3749
|
|
|
3725
|
-
const type$
|
|
3750
|
+
const type$d = 'number';
|
|
3726
3751
|
function Numberfield(props) {
|
|
3727
3752
|
const {
|
|
3728
3753
|
disabled,
|
|
@@ -3869,7 +3894,7 @@ function Numberfield(props) {
|
|
|
3869
3894
|
const descriptionId = `${domId}-description`;
|
|
3870
3895
|
const errorMessageId = `${domId}-error-message`;
|
|
3871
3896
|
return jsxRuntime.jsxs("div", {
|
|
3872
|
-
class: formFieldClasses(type$
|
|
3897
|
+
class: formFieldClasses(type$d, {
|
|
3873
3898
|
errors,
|
|
3874
3899
|
disabled,
|
|
3875
3900
|
readonly
|
|
@@ -3945,7 +3970,7 @@ function Numberfield(props) {
|
|
|
3945
3970
|
});
|
|
3946
3971
|
}
|
|
3947
3972
|
Numberfield.config = {
|
|
3948
|
-
type: type$
|
|
3973
|
+
type: type$d,
|
|
3949
3974
|
keyed: true,
|
|
3950
3975
|
name: 'Number',
|
|
3951
3976
|
group: 'basic-input',
|
|
@@ -3966,7 +3991,7 @@ Numberfield.config = {
|
|
|
3966
3991
|
})
|
|
3967
3992
|
};
|
|
3968
3993
|
|
|
3969
|
-
const type$
|
|
3994
|
+
const type$c = 'radio';
|
|
3970
3995
|
function Radio(props) {
|
|
3971
3996
|
const {
|
|
3972
3997
|
disabled,
|
|
@@ -4020,7 +4045,7 @@ function Radio(props) {
|
|
|
4020
4045
|
const descriptionId = `${domId}-description`;
|
|
4021
4046
|
const errorMessageId = `${domId}-error-message`;
|
|
4022
4047
|
return jsxRuntime.jsxs("div", {
|
|
4023
|
-
class: formFieldClasses(type$
|
|
4048
|
+
class: formFieldClasses(type$c, {
|
|
4024
4049
|
errors,
|
|
4025
4050
|
disabled,
|
|
4026
4051
|
readonly
|
|
@@ -4069,7 +4094,7 @@ function Radio(props) {
|
|
|
4069
4094
|
});
|
|
4070
4095
|
}
|
|
4071
4096
|
Radio.config = {
|
|
4072
|
-
type: type$
|
|
4097
|
+
type: type$c,
|
|
4073
4098
|
keyed: true,
|
|
4074
4099
|
name: 'Radio group',
|
|
4075
4100
|
group: 'selection',
|
|
@@ -4081,14 +4106,14 @@ Radio.config = {
|
|
|
4081
4106
|
})
|
|
4082
4107
|
};
|
|
4083
4108
|
|
|
4084
|
-
var _path$
|
|
4085
|
-
function _extends$
|
|
4109
|
+
var _path$9;
|
|
4110
|
+
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); }
|
|
4086
4111
|
var SvgXMark = function SvgXMark(props) {
|
|
4087
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
4112
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
4088
4113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4089
4114
|
width: 8,
|
|
4090
4115
|
height: 8
|
|
4091
|
-
}, props), _path$
|
|
4116
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4092
4117
|
fill: "currentColor",
|
|
4093
4118
|
fillRule: "evenodd",
|
|
4094
4119
|
stroke: "currentColor",
|
|
@@ -4386,7 +4411,7 @@ function SimpleSelect(props) {
|
|
|
4386
4411
|
});
|
|
4387
4412
|
}
|
|
4388
4413
|
|
|
4389
|
-
const type$
|
|
4414
|
+
const type$b = 'select';
|
|
4390
4415
|
function Select(props) {
|
|
4391
4416
|
const {
|
|
4392
4417
|
disabled,
|
|
@@ -4425,7 +4450,7 @@ function Select(props) {
|
|
|
4425
4450
|
'aria-describedby': [descriptionId, errorMessageId].join(' ')
|
|
4426
4451
|
};
|
|
4427
4452
|
return jsxRuntime.jsxs("div", {
|
|
4428
|
-
class: formFieldClasses(type$
|
|
4453
|
+
class: formFieldClasses(type$b, {
|
|
4429
4454
|
errors,
|
|
4430
4455
|
disabled,
|
|
4431
4456
|
readonly
|
|
@@ -4454,7 +4479,7 @@ function Select(props) {
|
|
|
4454
4479
|
});
|
|
4455
4480
|
}
|
|
4456
4481
|
Select.config = {
|
|
4457
|
-
type: type$
|
|
4482
|
+
type: type$b,
|
|
4458
4483
|
keyed: true,
|
|
4459
4484
|
name: 'Select',
|
|
4460
4485
|
group: 'selection',
|
|
@@ -4466,15 +4491,15 @@ Select.config = {
|
|
|
4466
4491
|
})
|
|
4467
4492
|
};
|
|
4468
4493
|
|
|
4469
|
-
const type$
|
|
4494
|
+
const type$a = 'separator';
|
|
4470
4495
|
function Separator() {
|
|
4471
4496
|
return jsxRuntime.jsx("div", {
|
|
4472
|
-
class: formFieldClasses(type$
|
|
4497
|
+
class: formFieldClasses(type$a),
|
|
4473
4498
|
children: jsxRuntime.jsx("hr", {})
|
|
4474
4499
|
});
|
|
4475
4500
|
}
|
|
4476
4501
|
Separator.config = {
|
|
4477
|
-
type: type$
|
|
4502
|
+
type: type$a,
|
|
4478
4503
|
keyed: false,
|
|
4479
4504
|
name: 'Separator',
|
|
4480
4505
|
group: 'presentation',
|
|
@@ -4483,7 +4508,7 @@ Separator.config = {
|
|
|
4483
4508
|
})
|
|
4484
4509
|
};
|
|
4485
4510
|
|
|
4486
|
-
const type$
|
|
4511
|
+
const type$9 = 'spacer';
|
|
4487
4512
|
function Spacer(props) {
|
|
4488
4513
|
const {
|
|
4489
4514
|
field
|
|
@@ -4492,14 +4517,14 @@ function Spacer(props) {
|
|
|
4492
4517
|
height = 60
|
|
4493
4518
|
} = field;
|
|
4494
4519
|
return jsxRuntime.jsx("div", {
|
|
4495
|
-
class: formFieldClasses(type$
|
|
4520
|
+
class: formFieldClasses(type$9),
|
|
4496
4521
|
style: {
|
|
4497
4522
|
height: height
|
|
4498
4523
|
}
|
|
4499
4524
|
});
|
|
4500
4525
|
}
|
|
4501
4526
|
Spacer.config = {
|
|
4502
|
-
type: type$
|
|
4527
|
+
type: type$9,
|
|
4503
4528
|
keyed: false,
|
|
4504
4529
|
name: 'Spacer',
|
|
4505
4530
|
group: 'presentation',
|
|
@@ -4581,7 +4606,7 @@ function SkipLink(props) {
|
|
|
4581
4606
|
});
|
|
4582
4607
|
}
|
|
4583
4608
|
|
|
4584
|
-
const type$
|
|
4609
|
+
const type$8 = 'taglist';
|
|
4585
4610
|
function Taglist(props) {
|
|
4586
4611
|
const {
|
|
4587
4612
|
disabled,
|
|
@@ -4727,7 +4752,7 @@ function Taglist(props) {
|
|
|
4727
4752
|
const errorMessageId = `${domId}-error-message`;
|
|
4728
4753
|
return jsxRuntime.jsxs("div", {
|
|
4729
4754
|
ref: focusScopeRef,
|
|
4730
|
-
class: formFieldClasses(type$
|
|
4755
|
+
class: formFieldClasses(type$8, {
|
|
4731
4756
|
errors,
|
|
4732
4757
|
disabled,
|
|
4733
4758
|
readonly
|
|
@@ -4812,7 +4837,7 @@ function Taglist(props) {
|
|
|
4812
4837
|
});
|
|
4813
4838
|
}
|
|
4814
4839
|
Taglist.config = {
|
|
4815
|
-
type: type$
|
|
4840
|
+
type: type$8,
|
|
4816
4841
|
keyed: true,
|
|
4817
4842
|
name: 'Tag list',
|
|
4818
4843
|
group: 'selection',
|
|
@@ -4936,7 +4961,7 @@ function isValidAttribute(lcTag, lcName, value) {
|
|
|
4936
4961
|
return true;
|
|
4937
4962
|
}
|
|
4938
4963
|
|
|
4939
|
-
const type$
|
|
4964
|
+
const type$7 = 'text';
|
|
4940
4965
|
function Text(props) {
|
|
4941
4966
|
const form = useService('form');
|
|
4942
4967
|
const {
|
|
@@ -4983,12 +5008,12 @@ function Text(props) {
|
|
|
4983
5008
|
sanitizeStyleTags: false
|
|
4984
5009
|
});
|
|
4985
5010
|
return jsxRuntime.jsx("div", {
|
|
4986
|
-
class: formFieldClasses(type$
|
|
5011
|
+
class: formFieldClasses(type$7),
|
|
4987
5012
|
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
4988
5013
|
});
|
|
4989
5014
|
}
|
|
4990
5015
|
Text.config = {
|
|
4991
|
-
type: type$
|
|
5016
|
+
type: type$7,
|
|
4992
5017
|
keyed: false,
|
|
4993
5018
|
name: 'Text view',
|
|
4994
5019
|
group: 'presentation',
|
|
@@ -5001,7 +5026,7 @@ Text.config = {
|
|
|
5001
5026
|
}
|
|
5002
5027
|
};
|
|
5003
5028
|
|
|
5004
|
-
const type$
|
|
5029
|
+
const type$6 = 'html';
|
|
5005
5030
|
function Html(props) {
|
|
5006
5031
|
const form = useService('form');
|
|
5007
5032
|
const {
|
|
@@ -5052,12 +5077,12 @@ function Html(props) {
|
|
|
5052
5077
|
sanitizeStyleTags: false
|
|
5053
5078
|
});
|
|
5054
5079
|
return jsxRuntime.jsx("div", {
|
|
5055
|
-
class: classNames(formFieldClasses(type$
|
|
5080
|
+
class: classNames(formFieldClasses(type$6), styleScope),
|
|
5056
5081
|
dangerouslySetInnerHTML: dangerouslySetInnerHTML
|
|
5057
5082
|
});
|
|
5058
5083
|
}
|
|
5059
5084
|
Html.config = {
|
|
5060
|
-
type: type$
|
|
5085
|
+
type: type$6,
|
|
5061
5086
|
keyed: false,
|
|
5062
5087
|
name: 'HTML view',
|
|
5063
5088
|
group: 'presentation',
|
|
@@ -5067,7 +5092,7 @@ Html.config = {
|
|
|
5067
5092
|
})
|
|
5068
5093
|
};
|
|
5069
5094
|
|
|
5070
|
-
const type$
|
|
5095
|
+
const type$5 = 'expression';
|
|
5071
5096
|
function ExpressionField(props) {
|
|
5072
5097
|
const {
|
|
5073
5098
|
field,
|
|
@@ -5104,7 +5129,7 @@ function ExpressionField(props) {
|
|
|
5104
5129
|
return null;
|
|
5105
5130
|
}
|
|
5106
5131
|
ExpressionField.config = {
|
|
5107
|
-
type: type$
|
|
5132
|
+
type: type$5,
|
|
5108
5133
|
name: 'Expression',
|
|
5109
5134
|
group: 'basic-input',
|
|
5110
5135
|
keyed: true,
|
|
@@ -5116,7 +5141,7 @@ ExpressionField.config = {
|
|
|
5116
5141
|
})
|
|
5117
5142
|
};
|
|
5118
5143
|
|
|
5119
|
-
const type$
|
|
5144
|
+
const type$4 = 'textfield';
|
|
5120
5145
|
function Textfield(props) {
|
|
5121
5146
|
const {
|
|
5122
5147
|
disabled,
|
|
@@ -5158,7 +5183,7 @@ function Textfield(props) {
|
|
|
5158
5183
|
const descriptionId = `${domId}-description`;
|
|
5159
5184
|
const errorMessageId = `${domId}-error-message`;
|
|
5160
5185
|
return jsxRuntime.jsxs("div", {
|
|
5161
|
-
class: formFieldClasses(type$
|
|
5186
|
+
class: formFieldClasses(type$4, {
|
|
5162
5187
|
errors,
|
|
5163
5188
|
disabled,
|
|
5164
5189
|
readonly
|
|
@@ -5196,7 +5221,7 @@ function Textfield(props) {
|
|
|
5196
5221
|
});
|
|
5197
5222
|
}
|
|
5198
5223
|
Textfield.config = {
|
|
5199
|
-
type: type$
|
|
5224
|
+
type: type$4,
|
|
5200
5225
|
keyed: true,
|
|
5201
5226
|
name: 'Text field',
|
|
5202
5227
|
group: 'basic-input',
|
|
@@ -5220,7 +5245,7 @@ Textfield.config = {
|
|
|
5220
5245
|
})
|
|
5221
5246
|
};
|
|
5222
5247
|
|
|
5223
|
-
const type$
|
|
5248
|
+
const type$3 = 'textarea';
|
|
5224
5249
|
function Textarea(props) {
|
|
5225
5250
|
const {
|
|
5226
5251
|
disabled,
|
|
@@ -5270,7 +5295,7 @@ function Textarea(props) {
|
|
|
5270
5295
|
const descriptionId = `${domId}-description`;
|
|
5271
5296
|
const errorMessageId = `${domId}-error-message`;
|
|
5272
5297
|
return jsxRuntime.jsxs("div", {
|
|
5273
|
-
class: formFieldClasses(type$
|
|
5298
|
+
class: formFieldClasses(type$3, {
|
|
5274
5299
|
errors,
|
|
5275
5300
|
disabled,
|
|
5276
5301
|
readonly
|
|
@@ -5302,7 +5327,7 @@ function Textarea(props) {
|
|
|
5302
5327
|
});
|
|
5303
5328
|
}
|
|
5304
5329
|
Textarea.config = {
|
|
5305
|
-
type: type$
|
|
5330
|
+
type: type$3,
|
|
5306
5331
|
keyed: true,
|
|
5307
5332
|
name: 'Text area',
|
|
5308
5333
|
group: 'basic-input',
|
|
@@ -5334,57 +5359,57 @@ const autoSizeTextarea = textarea => {
|
|
|
5334
5359
|
textarea.style.overflow = calculatedHeight > maxHeight ? 'visible' : 'hidden';
|
|
5335
5360
|
};
|
|
5336
5361
|
|
|
5337
|
-
var _path$
|
|
5338
|
-
function _extends$
|
|
5362
|
+
var _path$8;
|
|
5363
|
+
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); }
|
|
5339
5364
|
var SvgArrowDown = function SvgArrowDown(props) {
|
|
5340
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
5365
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
5341
5366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5342
5367
|
viewBox: "0 0 32 32"
|
|
5343
|
-
}, props), _path$
|
|
5368
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
5344
5369
|
fill: "currentcolor",
|
|
5345
5370
|
d: "M24.59 16.59 17 24.17V4h-2v20.17l-7.59-7.58L6 18l10 10 10-10z"
|
|
5346
5371
|
})));
|
|
5347
5372
|
};
|
|
5348
5373
|
|
|
5349
|
-
var _path$
|
|
5350
|
-
function _extends$
|
|
5374
|
+
var _path$7;
|
|
5375
|
+
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); }
|
|
5351
5376
|
var SvgArrowUp = function SvgArrowUp(props) {
|
|
5352
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
5377
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
5353
5378
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5354
5379
|
viewBox: "0 0 32 32"
|
|
5355
|
-
}, props), _path$
|
|
5380
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
5356
5381
|
fill: "currentcolor",
|
|
5357
5382
|
d: "M16 4 6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14z"
|
|
5358
5383
|
})));
|
|
5359
5384
|
};
|
|
5360
5385
|
|
|
5361
|
-
var _path$
|
|
5362
|
-
function _extends$
|
|
5386
|
+
var _path$6;
|
|
5387
|
+
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); }
|
|
5363
5388
|
var SvgCaretLeft = function SvgCaretLeft(props) {
|
|
5364
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
5389
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
5365
5390
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5366
5391
|
xmlSpace: "preserve",
|
|
5367
5392
|
viewBox: "0 0 32 32"
|
|
5368
|
-
}, props), _path$
|
|
5393
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
5369
5394
|
fill: "currentcolor",
|
|
5370
5395
|
d: "m20 24-10-8 10-8z"
|
|
5371
5396
|
})));
|
|
5372
5397
|
};
|
|
5373
5398
|
|
|
5374
|
-
var _path$
|
|
5375
|
-
function _extends$
|
|
5399
|
+
var _path$5;
|
|
5400
|
+
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); }
|
|
5376
5401
|
var SvgCaretRight = function SvgCaretRight(props) {
|
|
5377
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
5402
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
5378
5403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5379
5404
|
xmlSpace: "preserve",
|
|
5380
5405
|
viewBox: "0 0 32 32"
|
|
5381
|
-
}, props), _path$
|
|
5406
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
5382
5407
|
fill: "currentcolor",
|
|
5383
5408
|
d: "m12 8 10 8-10 8z"
|
|
5384
5409
|
})));
|
|
5385
5410
|
};
|
|
5386
5411
|
|
|
5387
|
-
const type$
|
|
5412
|
+
const type$2 = 'table';
|
|
5388
5413
|
|
|
5389
5414
|
/**
|
|
5390
5415
|
* @typedef {('asc'|'desc')} Direction
|
|
@@ -5465,7 +5490,7 @@ function Table(props) {
|
|
|
5465
5490
|
});
|
|
5466
5491
|
}
|
|
5467
5492
|
return jsxRuntime.jsxs("div", {
|
|
5468
|
-
class: formFieldClasses(type$
|
|
5493
|
+
class: formFieldClasses(type$2),
|
|
5469
5494
|
children: [jsxRuntime.jsx(Label, {
|
|
5470
5495
|
htmlFor: prefixId(id),
|
|
5471
5496
|
label: label
|
|
@@ -5562,7 +5587,7 @@ function Table(props) {
|
|
|
5562
5587
|
});
|
|
5563
5588
|
}
|
|
5564
5589
|
Table.config = {
|
|
5565
|
-
type: type$
|
|
5590
|
+
type: type$2,
|
|
5566
5591
|
keyed: false,
|
|
5567
5592
|
name: 'Table',
|
|
5568
5593
|
group: 'presentation',
|
|
@@ -5717,7 +5742,7 @@ function getHeaderAriaLabel(sortBy, key, label) {
|
|
|
5717
5742
|
|
|
5718
5743
|
const FILE_PICKER_FILE_KEY_PREFIX = 'files::';
|
|
5719
5744
|
|
|
5720
|
-
const type = 'filepicker';
|
|
5745
|
+
const type$1 = 'filepicker';
|
|
5721
5746
|
const ids$1 = new Ids();
|
|
5722
5747
|
const EMPTY_ARRAY$1 = [];
|
|
5723
5748
|
|
|
@@ -5805,7 +5830,7 @@ function FilePicker(props) {
|
|
|
5805
5830
|
};
|
|
5806
5831
|
const isInputDisabled = disabled || readonly || fileRegistry === null;
|
|
5807
5832
|
return jsxRuntime.jsxs("div", {
|
|
5808
|
-
className: formFieldClasses(type, {
|
|
5833
|
+
className: formFieldClasses(type$1, {
|
|
5809
5834
|
errors,
|
|
5810
5835
|
disabled,
|
|
5811
5836
|
readonly
|
|
@@ -5872,6 +5897,323 @@ function getSelectedFilesLabel(files) {
|
|
|
5872
5897
|
return `${files.length} files selected`;
|
|
5873
5898
|
}
|
|
5874
5899
|
|
|
5900
|
+
var _path$4;
|
|
5901
|
+
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); }
|
|
5902
|
+
var SvgDownload = function SvgDownload(props) {
|
|
5903
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
5904
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5905
|
+
width: 16,
|
|
5906
|
+
height: 16
|
|
5907
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
5908
|
+
fill: "currentColor",
|
|
5909
|
+
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"
|
|
5910
|
+
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
5911
|
+
d: "M0 0h16v16H0z",
|
|
5912
|
+
style: {
|
|
5913
|
+
fill: "none"
|
|
5914
|
+
}
|
|
5915
|
+
}));
|
|
5916
|
+
};
|
|
5917
|
+
|
|
5918
|
+
const type = 'documentPreview';
|
|
5919
|
+
|
|
5920
|
+
/**
|
|
5921
|
+
* @typedef DocumentMetadata
|
|
5922
|
+
* @property {string} documentId
|
|
5923
|
+
* @property {Object} metadata
|
|
5924
|
+
* @property {string|undefined} [metadata.contentType]
|
|
5925
|
+
* @property {string} metadata.fileName
|
|
5926
|
+
*
|
|
5927
|
+
* @typedef Field
|
|
5928
|
+
* @property {string} id
|
|
5929
|
+
* @property {string} [title]
|
|
5930
|
+
* @property {string} [dataSource]
|
|
5931
|
+
* @property {string} [endpointKey]
|
|
5932
|
+
* @property {number} [maxHeight]
|
|
5933
|
+
* @property {string} [label]
|
|
5934
|
+
*
|
|
5935
|
+
* @typedef Props
|
|
5936
|
+
* @property {Field} field
|
|
5937
|
+
* @property {string} domId
|
|
5938
|
+
*
|
|
5939
|
+
* @param {Props} props
|
|
5940
|
+
* @returns {import("preact").JSX.Element}
|
|
5941
|
+
*/
|
|
5942
|
+
function DocumentPreview(props) {
|
|
5943
|
+
const {
|
|
5944
|
+
field,
|
|
5945
|
+
domId
|
|
5946
|
+
} = props;
|
|
5947
|
+
const {
|
|
5948
|
+
dataSource,
|
|
5949
|
+
endpointKey,
|
|
5950
|
+
maxHeight,
|
|
5951
|
+
label
|
|
5952
|
+
} = field;
|
|
5953
|
+
const errorMessageId = `${domId}-error-message`;
|
|
5954
|
+
const endpoint = useExpressionEvaluation(endpointKey || '');
|
|
5955
|
+
const data = useValidDocumentData(dataSource || '');
|
|
5956
|
+
const evaluatedLabel = useSingleLineTemplateEvaluation(label, {
|
|
5957
|
+
debug: true
|
|
5958
|
+
});
|
|
5959
|
+
return jsxRuntime.jsxs("div", {
|
|
5960
|
+
class: formFieldClasses(type),
|
|
5961
|
+
children: [jsxRuntime.jsx(Label, {
|
|
5962
|
+
htmlFor: domId,
|
|
5963
|
+
label: evaluatedLabel
|
|
5964
|
+
}), jsxRuntime.jsx("div", {
|
|
5965
|
+
class: `fjs-${type}-document-container`,
|
|
5966
|
+
id: domId,
|
|
5967
|
+
children: isValidDocumentEndpoint(endpoint) ? data.map((document, index) => jsxRuntime.jsx(DocumentRenderer, {
|
|
5968
|
+
documentMetadata: document,
|
|
5969
|
+
endpoint: endpoint,
|
|
5970
|
+
maxHeight: maxHeight,
|
|
5971
|
+
domId: `${domId}-${index}`
|
|
5972
|
+
}, document.documentId)) : null
|
|
5973
|
+
}), jsxRuntime.jsx(Errors, {
|
|
5974
|
+
id: errorMessageId,
|
|
5975
|
+
errors: getErrors({
|
|
5976
|
+
dataSource,
|
|
5977
|
+
endpoint,
|
|
5978
|
+
endpointKey
|
|
5979
|
+
})
|
|
5980
|
+
})]
|
|
5981
|
+
});
|
|
5982
|
+
}
|
|
5983
|
+
DocumentPreview.config = {
|
|
5984
|
+
type,
|
|
5985
|
+
keyed: false,
|
|
5986
|
+
group: 'presentation',
|
|
5987
|
+
name: 'Document preview',
|
|
5988
|
+
create: (options = {}) => ({
|
|
5989
|
+
label: 'Document preview',
|
|
5990
|
+
endpointKey: DEFAULT_ENDPOINT_KEY,
|
|
5991
|
+
...options
|
|
5992
|
+
})
|
|
5993
|
+
};
|
|
5994
|
+
|
|
5995
|
+
// helpers /////////////////////////////
|
|
5996
|
+
|
|
5997
|
+
const DOCUMENT_ID_PLACEHOLDER = '{documentId}';
|
|
5998
|
+
const DEFAULT_ENDPOINT_KEY = '=defaultDocumentsEndpointKey';
|
|
5999
|
+
|
|
6000
|
+
/**
|
|
6001
|
+
* @typedef GetErrorOptions
|
|
6002
|
+
* @property {string|undefined} dataSource
|
|
6003
|
+
* @property {string|undefined} endpointKey
|
|
6004
|
+
* @property {string|null} endpoint
|
|
6005
|
+
*
|
|
6006
|
+
* @param {GetErrorOptions} options
|
|
6007
|
+
* @returns {string[]}
|
|
6008
|
+
*/
|
|
6009
|
+
function getErrors(options) {
|
|
6010
|
+
const {
|
|
6011
|
+
dataSource,
|
|
6012
|
+
endpointKey,
|
|
6013
|
+
endpoint
|
|
6014
|
+
} = options;
|
|
6015
|
+
let errors = [];
|
|
6016
|
+
if (!minDash.isString(dataSource) || dataSource.length < 1) {
|
|
6017
|
+
errors.push('Document reference is not defined.');
|
|
6018
|
+
}
|
|
6019
|
+
if (!minDash.isString(endpointKey) || endpointKey.length < 1) {
|
|
6020
|
+
errors.push('Endpoint key is not defined.');
|
|
6021
|
+
}
|
|
6022
|
+
if (endpointKey !== DEFAULT_ENDPOINT_KEY && !URL.canParse(endpoint)) {
|
|
6023
|
+
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.`);
|
|
6024
|
+
} else if (endpointKey !== DEFAULT_ENDPOINT_KEY && !isValidDocumentEndpoint(endpoint)) {
|
|
6025
|
+
errors.push('Endpoint must contain "{documentId}".');
|
|
6026
|
+
}
|
|
6027
|
+
return errors;
|
|
6028
|
+
}
|
|
6029
|
+
|
|
6030
|
+
/**
|
|
6031
|
+
*
|
|
6032
|
+
* @param {unknown} endpoint
|
|
6033
|
+
* @returns boolean
|
|
6034
|
+
*/
|
|
6035
|
+
function isValidDocumentEndpoint(endpoint) {
|
|
6036
|
+
return typeof endpoint === 'string' && URL.canParse(endpoint) && endpoint.includes(DOCUMENT_ID_PLACEHOLDER);
|
|
6037
|
+
}
|
|
6038
|
+
|
|
6039
|
+
/**
|
|
6040
|
+
* @param {unknown} document
|
|
6041
|
+
* @returns {metadata is DocumentMetadata}
|
|
6042
|
+
*/
|
|
6043
|
+
function isValidDocument(document) {
|
|
6044
|
+
return typeof document === 'object' && 'documentId' in document && 'metadata' in document && typeof document.metadata === 'object' && 'fileName' in document.metadata;
|
|
6045
|
+
}
|
|
6046
|
+
|
|
6047
|
+
/**
|
|
6048
|
+
* @param {string} dataSource
|
|
6049
|
+
* @returns {DocumentMetadata[]}
|
|
6050
|
+
*/
|
|
6051
|
+
function useValidDocumentData(dataSource) {
|
|
6052
|
+
const data = useExpressionEvaluation(dataSource);
|
|
6053
|
+
if (!Array.isArray(data)) {
|
|
6054
|
+
return [];
|
|
6055
|
+
}
|
|
6056
|
+
return data.filter(isValidDocument);
|
|
6057
|
+
}
|
|
6058
|
+
|
|
6059
|
+
/**
|
|
6060
|
+
*
|
|
6061
|
+
* @param {Object} props
|
|
6062
|
+
* @param {DocumentMetadata} props.documentMetadata
|
|
6063
|
+
* @param {string} props.endpoint
|
|
6064
|
+
* @param {string} props.domId
|
|
6065
|
+
* @param {number|undefined} props.maxHeight
|
|
6066
|
+
*
|
|
6067
|
+
* @returns {import("preact").JSX.Element}
|
|
6068
|
+
*/
|
|
6069
|
+
function DocumentRenderer(props) {
|
|
6070
|
+
const {
|
|
6071
|
+
documentMetadata,
|
|
6072
|
+
endpoint,
|
|
6073
|
+
maxHeight,
|
|
6074
|
+
domId
|
|
6075
|
+
} = props;
|
|
6076
|
+
const {
|
|
6077
|
+
metadata
|
|
6078
|
+
} = documentMetadata;
|
|
6079
|
+
const [hasError, setHasError] = hooks.useState(false);
|
|
6080
|
+
const ref = hooks.useRef(null);
|
|
6081
|
+
const isInViewport = useInViewport(ref);
|
|
6082
|
+
const fullUrl = endpoint.replace(DOCUMENT_ID_PLACEHOLDER, documentMetadata.documentId);
|
|
6083
|
+
const singleDocumentContainerClassName = `fjs-${type}-single-document-container`;
|
|
6084
|
+
const errorMessageId = `${domId}-error-message`;
|
|
6085
|
+
const errorMessage = 'Unable to download document';
|
|
6086
|
+
const isContentTypePresent = typeof metadata.contentType === 'string';
|
|
6087
|
+
if (isContentTypePresent && metadata.contentType.toLowerCase().startsWith('image/') && isInViewport) {
|
|
6088
|
+
return jsxRuntime.jsxs("div", {
|
|
6089
|
+
class: singleDocumentContainerClassName,
|
|
6090
|
+
style: {
|
|
6091
|
+
maxHeight
|
|
6092
|
+
},
|
|
6093
|
+
"aria-describedby": hasError ? errorMessageId : undefined,
|
|
6094
|
+
children: [jsxRuntime.jsx("img", {
|
|
6095
|
+
src: fullUrl,
|
|
6096
|
+
alt: metadata.fileName,
|
|
6097
|
+
class: `fjs-${type}-image`
|
|
6098
|
+
}), jsxRuntime.jsx(DownloadButton, {
|
|
6099
|
+
endpoint: fullUrl,
|
|
6100
|
+
fileName: metadata.fileName,
|
|
6101
|
+
onDownloadError: () => {
|
|
6102
|
+
setHasError(true);
|
|
6103
|
+
}
|
|
6104
|
+
}), hasError ? jsxRuntime.jsx(Errors, {
|
|
6105
|
+
id: errorMessageId,
|
|
6106
|
+
errors: [errorMessage]
|
|
6107
|
+
}) : null]
|
|
6108
|
+
});
|
|
6109
|
+
}
|
|
6110
|
+
if (isContentTypePresent && metadata.contentType.toLowerCase() === 'application/pdf' && isInViewport) {
|
|
6111
|
+
return jsxRuntime.jsxs("div", {
|
|
6112
|
+
class: singleDocumentContainerClassName,
|
|
6113
|
+
style: {
|
|
6114
|
+
maxHeight
|
|
6115
|
+
},
|
|
6116
|
+
"aria-describedby": hasError ? errorMessageId : undefined,
|
|
6117
|
+
children: [jsxRuntime.jsx("embed", {
|
|
6118
|
+
src: fullUrl,
|
|
6119
|
+
type: "application/pdf",
|
|
6120
|
+
class: `fjs-${type}-pdf-viewer`
|
|
6121
|
+
}), hasError ? jsxRuntime.jsx(Errors, {
|
|
6122
|
+
id: errorMessageId,
|
|
6123
|
+
errors: [errorMessage]
|
|
6124
|
+
}) : null]
|
|
6125
|
+
});
|
|
6126
|
+
}
|
|
6127
|
+
return jsxRuntime.jsxs("div", {
|
|
6128
|
+
class: classNames(`fjs-${type}-non-preview-item`, `fjs-${type}-single-document-container`),
|
|
6129
|
+
ref: ref,
|
|
6130
|
+
"aria-describedby": hasError ? errorMessageId : undefined,
|
|
6131
|
+
children: [jsxRuntime.jsxs("div", {
|
|
6132
|
+
children: [jsxRuntime.jsx("div", {
|
|
6133
|
+
class: "fjs-document-preview-title",
|
|
6134
|
+
children: metadata.fileName
|
|
6135
|
+
}), hasError ? jsxRuntime.jsx(Errors, {
|
|
6136
|
+
id: errorMessageId,
|
|
6137
|
+
errors: [errorMessage]
|
|
6138
|
+
}) : null]
|
|
6139
|
+
}), jsxRuntime.jsx(DownloadButton, {
|
|
6140
|
+
endpoint: fullUrl,
|
|
6141
|
+
fileName: metadata.fileName,
|
|
6142
|
+
onDownloadError: () => {
|
|
6143
|
+
setHasError(true);
|
|
6144
|
+
}
|
|
6145
|
+
})]
|
|
6146
|
+
});
|
|
6147
|
+
}
|
|
6148
|
+
|
|
6149
|
+
/**
|
|
6150
|
+
* @param {Object} props
|
|
6151
|
+
* @param {string} props.endpoint
|
|
6152
|
+
* @param {string} props.fileName
|
|
6153
|
+
* @param {Function} props.onDownloadError
|
|
6154
|
+
*
|
|
6155
|
+
* @returns {import("preact").JSX.Element}
|
|
6156
|
+
*/
|
|
6157
|
+
function DownloadButton(props) {
|
|
6158
|
+
const {
|
|
6159
|
+
endpoint,
|
|
6160
|
+
fileName,
|
|
6161
|
+
onDownloadError
|
|
6162
|
+
} = props;
|
|
6163
|
+
const handleDownload = async () => {
|
|
6164
|
+
try {
|
|
6165
|
+
const response = await fetch(endpoint);
|
|
6166
|
+
if (!response.ok) {
|
|
6167
|
+
onDownloadError();
|
|
6168
|
+
return;
|
|
6169
|
+
}
|
|
6170
|
+
const blob = await response.blob();
|
|
6171
|
+
const url = window.URL.createObjectURL(blob);
|
|
6172
|
+
const link = document.createElement('a');
|
|
6173
|
+
link.href = url;
|
|
6174
|
+
link.download = fileName;
|
|
6175
|
+
link.click();
|
|
6176
|
+
window.URL.revokeObjectURL(url);
|
|
6177
|
+
} catch {
|
|
6178
|
+
onDownloadError();
|
|
6179
|
+
}
|
|
6180
|
+
};
|
|
6181
|
+
return jsxRuntime.jsx("button", {
|
|
6182
|
+
type: "button",
|
|
6183
|
+
onClick: handleDownload,
|
|
6184
|
+
class: classNames(`fjs-${type}-download-button`),
|
|
6185
|
+
"aria-label": `Download ${fileName}`,
|
|
6186
|
+
children: jsxRuntime.jsx(SvgDownload, {})
|
|
6187
|
+
});
|
|
6188
|
+
}
|
|
6189
|
+
|
|
6190
|
+
/**
|
|
6191
|
+
*
|
|
6192
|
+
* @param {import("preact").RefObject<HTMLElement>} ref
|
|
6193
|
+
* @returns boolean
|
|
6194
|
+
*/
|
|
6195
|
+
function useInViewport(ref) {
|
|
6196
|
+
const [isInViewport, setIsInViewport] = hooks.useState(false);
|
|
6197
|
+
hooks.useEffect(() => {
|
|
6198
|
+
const observer = new IntersectionObserver(([entry]) => {
|
|
6199
|
+
if (entry.isIntersecting) {
|
|
6200
|
+
setIsInViewport(true);
|
|
6201
|
+
}
|
|
6202
|
+
}, {
|
|
6203
|
+
threshold: 0
|
|
6204
|
+
});
|
|
6205
|
+
if (ref.current) {
|
|
6206
|
+
observer.observe(ref.current);
|
|
6207
|
+
}
|
|
6208
|
+
return () => {
|
|
6209
|
+
if (ref.current) {
|
|
6210
|
+
observer.unobserve(ref.current);
|
|
6211
|
+
}
|
|
6212
|
+
};
|
|
6213
|
+
}, [ref]);
|
|
6214
|
+
return isInViewport;
|
|
6215
|
+
}
|
|
6216
|
+
|
|
5875
6217
|
/**
|
|
5876
6218
|
* This file must not be changed or exchanged.
|
|
5877
6219
|
*
|
|
@@ -6010,7 +6352,7 @@ function FormComponent(props) {
|
|
|
6010
6352
|
const formFields = [/* Input */
|
|
6011
6353
|
Textfield, Textarea, Numberfield, Datetime, ExpressionField, FilePicker, /* Selection */
|
|
6012
6354
|
Checkbox, Checklist, Radio, Select, Taglist, /* Presentation */
|
|
6013
|
-
Text, Image, Table, Html, Spacer, Separator, /* Containers */
|
|
6355
|
+
Text, Image, Table, Html, Spacer, Separator, DocumentPreview, /* Containers */
|
|
6014
6356
|
Group, DynamicList, IFrame, /* Other */
|
|
6015
6357
|
Button, Default];
|
|
6016
6358
|
|
|
@@ -6029,8 +6371,8 @@ class FormFields {
|
|
|
6029
6371
|
}
|
|
6030
6372
|
}
|
|
6031
6373
|
|
|
6032
|
-
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'];
|
|
6033
|
-
const TEMPLATE_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'description', 'label', 'source', 'text', 'content', 'url'];
|
|
6374
|
+
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'];
|
|
6375
|
+
const TEMPLATE_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'description', 'label', 'source', 'text', 'content', 'url', 'title'];
|
|
6034
6376
|
|
|
6035
6377
|
/**
|
|
6036
6378
|
* @typedef { import('../types').Schema } Schema
|
|
@@ -9422,7 +9764,7 @@ class Form {
|
|
|
9422
9764
|
}
|
|
9423
9765
|
}
|
|
9424
9766
|
|
|
9425
|
-
const schemaVersion =
|
|
9767
|
+
const schemaVersion = 18;
|
|
9426
9768
|
|
|
9427
9769
|
/**
|
|
9428
9770
|
* @typedef { import('./types').CreateFormOptions } CreateFormOptions
|
|
@@ -9460,6 +9802,7 @@ exports.DATE_LABEL_PATH = DATE_LABEL_PATH;
|
|
|
9460
9802
|
exports.Datetime = Datetime;
|
|
9461
9803
|
exports.Default = Default;
|
|
9462
9804
|
exports.Description = Description;
|
|
9805
|
+
exports.DocumentPreview = DocumentPreview;
|
|
9463
9806
|
exports.DynamicList = DynamicList;
|
|
9464
9807
|
exports.Errors = Errors;
|
|
9465
9808
|
exports.ExpressionField = ExpressionField;
|