@bpmn-io/form-js-playground 1.12.0 → 1.13.1

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.
@@ -63585,7 +63585,7 @@
63585
63585
  }
63586
63586
  }, [field, options, onChange, memoizedValues, loadState]);
63587
63587
  }
63588
- const type$i = 'button';
63588
+ const type$j = 'button';
63589
63589
  function Button(props) {
63590
63590
  const {
63591
63591
  disabled,
@@ -63600,7 +63600,7 @@
63600
63600
  debug: true
63601
63601
  });
63602
63602
  return o("div", {
63603
- class: formFieldClasses(type$i),
63603
+ class: formFieldClasses(type$j),
63604
63604
  children: o("button", {
63605
63605
  class: "fjs-button",
63606
63606
  type: action,
@@ -63612,7 +63612,7 @@
63612
63612
  });
63613
63613
  }
63614
63614
  Button.config = {
63615
- type: type$i,
63615
+ type: type$j,
63616
63616
  keyed: false,
63617
63617
  name: 'Button',
63618
63618
  group: 'action',
@@ -63639,6 +63639,15 @@
63639
63639
  children: evaluatedDescription
63640
63640
  });
63641
63641
  }
63642
+
63643
+ /**
63644
+ * @typedef Props
63645
+ * @property {string} id
63646
+ * @property {string[]} errors
63647
+ *
63648
+ * @param {Props} props
63649
+ * @returns {import("preact").JSX.Element}
63650
+ */
63642
63651
  function Errors(props) {
63643
63652
  const {
63644
63653
  errors,
@@ -63684,7 +63693,7 @@
63684
63693
  })]
63685
63694
  });
63686
63695
  }
63687
- const type$h = 'checkbox';
63696
+ const type$i = 'checkbox';
63688
63697
  function Checkbox$1(props) {
63689
63698
  const {
63690
63699
  disabled,
@@ -63714,7 +63723,7 @@
63714
63723
  const descriptionId = `${domId}-description`;
63715
63724
  const errorMessageId = `${domId}-error-message`;
63716
63725
  return o("div", {
63717
- class: classNames(formFieldClasses(type$h, {
63726
+ class: classNames(formFieldClasses(type$i, {
63718
63727
  errors,
63719
63728
  disabled,
63720
63729
  readonly
@@ -63751,7 +63760,7 @@
63751
63760
  });
63752
63761
  }
63753
63762
  Checkbox$1.config = {
63754
- type: type$h,
63763
+ type: type$i,
63755
63764
  keyed: true,
63756
63765
  name: 'Checkbox',
63757
63766
  group: 'selection',
@@ -63764,7 +63773,7 @@
63764
63773
  ...options
63765
63774
  })
63766
63775
  };
63767
- const type$g = 'checklist';
63776
+ const type$h = 'checklist';
63768
63777
  function Checklist(props) {
63769
63778
  const {
63770
63779
  disabled,
@@ -63819,7 +63828,7 @@
63819
63828
  const descriptionId = `${domId}-description`;
63820
63829
  const errorMessageId = `${domId}-error-message`;
63821
63830
  return o("div", {
63822
- class: classNames(formFieldClasses(type$g, {
63831
+ class: classNames(formFieldClasses(type$h, {
63823
63832
  errors,
63824
63833
  disabled,
63825
63834
  readonly
@@ -63864,7 +63873,7 @@
63864
63873
  });
63865
63874
  }
63866
63875
  Checklist.config = {
63867
- type: type$g,
63876
+ type: type$h,
63868
63877
  keyed: true,
63869
63878
  name: 'Checkbox group',
63870
63879
  group: 'selection',
@@ -64179,24 +64188,24 @@
64179
64188
  }),
64180
64189
  getSubheading: field => field.id
64181
64190
  };
64182
- var _path$x;
64183
- function _extends$y() {
64184
- return _extends$y = Object.assign ? Object.assign.bind() : function (n) {
64191
+ var _path$z;
64192
+ function _extends$A() {
64193
+ return _extends$A = Object.assign ? Object.assign.bind() : function (n) {
64185
64194
  for (var e = 1; e < arguments.length; e++) {
64186
64195
  var t = arguments[e];
64187
64196
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
64188
64197
  }
64189
64198
  return n;
64190
- }, _extends$y.apply(null, arguments);
64199
+ }, _extends$A.apply(null, arguments);
64191
64200
  }
64192
64201
  var SvgCalendar = function SvgCalendar(props) {
64193
- return /*#__PURE__*/y$1("svg", _extends$y({
64202
+ return /*#__PURE__*/y$1("svg", _extends$A({
64194
64203
  xmlns: "http://www.w3.org/2000/svg",
64195
64204
  width: 14,
64196
64205
  height: 15,
64197
64206
  fill: "none",
64198
64207
  viewBox: "0 0 28 30"
64199
- }, props), _path$x || (_path$x = /*#__PURE__*/y$1("path", {
64208
+ }, props), _path$z || (_path$z = /*#__PURE__*/y$1("path", {
64200
64209
  fill: "currentColor",
64201
64210
  fillRule: "evenodd",
64202
64211
  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",
@@ -64462,24 +64471,24 @@
64462
64471
  })]
64463
64472
  });
64464
64473
  }
64465
- var _path$w, _path2$4;
64466
- function _extends$x() {
64467
- return _extends$x = Object.assign ? Object.assign.bind() : function (n) {
64474
+ var _path$y, _path2$4;
64475
+ function _extends$z() {
64476
+ return _extends$z = Object.assign ? Object.assign.bind() : function (n) {
64468
64477
  for (var e = 1; e < arguments.length; e++) {
64469
64478
  var t = arguments[e];
64470
64479
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
64471
64480
  }
64472
64481
  return n;
64473
- }, _extends$x.apply(null, arguments);
64482
+ }, _extends$z.apply(null, arguments);
64474
64483
  }
64475
64484
  var SvgClock = function SvgClock(props) {
64476
- return /*#__PURE__*/y$1("svg", _extends$x({
64485
+ return /*#__PURE__*/y$1("svg", _extends$z({
64477
64486
  xmlns: "http://www.w3.org/2000/svg",
64478
64487
  width: 16,
64479
64488
  height: 16,
64480
64489
  fill: "none",
64481
64490
  viewBox: "0 0 28 29"
64482
- }, props), _path$w || (_path$w = /*#__PURE__*/y$1("path", {
64491
+ }, props), _path$y || (_path$y = /*#__PURE__*/y$1("path", {
64483
64492
  fill: "currentColor",
64484
64493
  d: "M13 14.41 18.59 20 20 18.59l-5-5.01V5h-2z"
64485
64494
  })), _path2$4 || (_path2$4 = /*#__PURE__*/y$1("path", {
@@ -64749,7 +64758,7 @@
64749
64758
  })]
64750
64759
  });
64751
64760
  }
64752
- const type$f = 'datetime';
64761
+ const type$g = 'datetime';
64753
64762
  function Datetime(props) {
64754
64763
  const {
64755
64764
  disabled,
@@ -64920,7 +64929,7 @@
64920
64929
  'aria-describedby': [descriptionId, errorMessageId].join(' ')
64921
64930
  };
64922
64931
  return o("div", {
64923
- class: formFieldClasses(type$f, {
64932
+ class: formFieldClasses(type$g, {
64924
64933
  errors: allErrors,
64925
64934
  disabled,
64926
64935
  readonly
@@ -64945,7 +64954,7 @@
64945
64954
  });
64946
64955
  }
64947
64956
  Datetime.config = {
64948
- type: type$f,
64957
+ type: type$g,
64949
64958
  keyed: true,
64950
64959
  name: 'Date time',
64951
64960
  group: 'basic-input',
@@ -65009,7 +65018,7 @@
65009
65018
  ...options
65010
65019
  })
65011
65020
  };
65012
- const type$e = 'iframe';
65021
+ const type$f = 'iframe';
65013
65022
  const DEFAULT_HEIGHT = 300;
65014
65023
  function IFrame(props) {
65015
65024
  const {
@@ -65039,7 +65048,7 @@
65039
65048
  setIframeRefresh(count => count + 1);
65040
65049
  }, [sandbox, allow]);
65041
65050
  return o("div", {
65042
- class: formFieldClasses(type$e, {
65051
+ class: formFieldClasses(type$f, {
65043
65052
  disabled,
65044
65053
  readonly
65045
65054
  }),
@@ -65074,7 +65083,7 @@
65074
65083
  });
65075
65084
  }
65076
65085
  IFrame.config = {
65077
- type: type$e,
65086
+ type: type$f,
65078
65087
  keyed: false,
65079
65088
  name: 'iFrame',
65080
65089
  group: 'container',
@@ -65086,87 +65095,87 @@
65086
65095
  ...options
65087
65096
  })
65088
65097
  };
65089
- var _path$v;
65090
- function _extends$w() {
65091
- return _extends$w = Object.assign ? Object.assign.bind() : function (n) {
65098
+ var _path$x;
65099
+ function _extends$y() {
65100
+ return _extends$y = Object.assign ? Object.assign.bind() : function (n) {
65092
65101
  for (var e = 1; e < arguments.length; e++) {
65093
65102
  var t = arguments[e];
65094
65103
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65095
65104
  }
65096
65105
  return n;
65097
- }, _extends$w.apply(null, arguments);
65106
+ }, _extends$y.apply(null, arguments);
65098
65107
  }
65099
65108
  var SvgButton = function SvgButton(props) {
65100
- return /*#__PURE__*/y$1("svg", _extends$w({
65109
+ return /*#__PURE__*/y$1("svg", _extends$y({
65101
65110
  xmlns: "http://www.w3.org/2000/svg",
65102
65111
  width: 54,
65103
65112
  height: 54,
65104
65113
  fill: "currentcolor"
65105
- }, props), _path$v || (_path$v = /*#__PURE__*/y$1("path", {
65114
+ }, props), _path$x || (_path$x = /*#__PURE__*/y$1("path", {
65106
65115
  fillRule: "evenodd",
65107
65116
  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"
65108
65117
  })));
65109
65118
  };
65110
- var _path$u;
65111
- function _extends$v() {
65112
- return _extends$v = Object.assign ? Object.assign.bind() : function (n) {
65119
+ var _path$w;
65120
+ function _extends$x() {
65121
+ return _extends$x = Object.assign ? Object.assign.bind() : function (n) {
65113
65122
  for (var e = 1; e < arguments.length; e++) {
65114
65123
  var t = arguments[e];
65115
65124
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65116
65125
  }
65117
65126
  return n;
65118
- }, _extends$v.apply(null, arguments);
65127
+ }, _extends$x.apply(null, arguments);
65119
65128
  }
65120
65129
  var SvgCheckbox = function SvgCheckbox(props) {
65121
- return /*#__PURE__*/y$1("svg", _extends$v({
65130
+ return /*#__PURE__*/y$1("svg", _extends$x({
65122
65131
  xmlns: "http://www.w3.org/2000/svg",
65123
65132
  width: 54,
65124
65133
  height: 54,
65125
65134
  fill: "currentcolor"
65126
- }, props), _path$u || (_path$u = /*#__PURE__*/y$1("path", {
65135
+ }, props), _path$w || (_path$w = /*#__PURE__*/y$1("path", {
65127
65136
  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"
65128
65137
  })));
65129
65138
  };
65130
- var _path$t;
65131
- function _extends$u() {
65132
- return _extends$u = Object.assign ? Object.assign.bind() : function (n) {
65139
+ var _path$v;
65140
+ function _extends$w() {
65141
+ return _extends$w = Object.assign ? Object.assign.bind() : function (n) {
65133
65142
  for (var e = 1; e < arguments.length; e++) {
65134
65143
  var t = arguments[e];
65135
65144
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65136
65145
  }
65137
65146
  return n;
65138
- }, _extends$u.apply(null, arguments);
65147
+ }, _extends$w.apply(null, arguments);
65139
65148
  }
65140
65149
  var SvgChecklist = function SvgChecklist(props) {
65141
- return /*#__PURE__*/y$1("svg", _extends$u({
65150
+ return /*#__PURE__*/y$1("svg", _extends$w({
65142
65151
  xmlns: "http://www.w3.org/2000/svg",
65143
65152
  width: 54,
65144
65153
  height: 54,
65145
65154
  fill: "none"
65146
- }, props), _path$t || (_path$t = /*#__PURE__*/y$1("path", {
65155
+ }, props), _path$v || (_path$v = /*#__PURE__*/y$1("path", {
65147
65156
  fill: "currentColor",
65148
65157
  fillRule: "evenodd",
65149
65158
  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",
65150
65159
  clipRule: "evenodd"
65151
65160
  })));
65152
65161
  };
65153
- var _path$s, _path2$3, _path3$1;
65154
- function _extends$t() {
65155
- return _extends$t = Object.assign ? Object.assign.bind() : function (n) {
65162
+ var _path$u, _path2$3, _path3$1;
65163
+ function _extends$v() {
65164
+ return _extends$v = Object.assign ? Object.assign.bind() : function (n) {
65156
65165
  for (var e = 1; e < arguments.length; e++) {
65157
65166
  var t = arguments[e];
65158
65167
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65159
65168
  }
65160
65169
  return n;
65161
- }, _extends$t.apply(null, arguments);
65170
+ }, _extends$v.apply(null, arguments);
65162
65171
  }
65163
65172
  var SvgDatetime = function SvgDatetime(props) {
65164
- return /*#__PURE__*/y$1("svg", _extends$t({
65173
+ return /*#__PURE__*/y$1("svg", _extends$v({
65165
65174
  xmlns: "http://www.w3.org/2000/svg",
65166
65175
  width: 54,
65167
65176
  height: 54,
65168
65177
  fill: "currentcolor"
65169
- }, props), _path$s || (_path$s = /*#__PURE__*/y$1("path", {
65178
+ }, props), _path$u || (_path$u = /*#__PURE__*/y$1("path", {
65170
65179
  fillRule: "evenodd",
65171
65180
  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"
65172
65181
  })), _path2$3 || (_path2$3 = /*#__PURE__*/y$1("path", {
@@ -65176,23 +65185,23 @@
65176
65185
  d: "M23.08 36.962a9.678 9.678 0 1 0 17.883-7.408 9.678 9.678 0 0 0-17.882 7.408Zm4.54-10.292a7.924 7.924 0 1 1 8.805 13.177A7.924 7.924 0 0 1 27.62 26.67"
65177
65186
  })));
65178
65187
  };
65179
- var _path$r, _path2$2;
65180
- function _extends$s() {
65181
- return _extends$s = Object.assign ? Object.assign.bind() : function (n) {
65188
+ var _path$t, _path2$2;
65189
+ function _extends$u() {
65190
+ return _extends$u = Object.assign ? Object.assign.bind() : function (n) {
65182
65191
  for (var e = 1; e < arguments.length; e++) {
65183
65192
  var t = arguments[e];
65184
65193
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65185
65194
  }
65186
65195
  return n;
65187
- }, _extends$s.apply(null, arguments);
65196
+ }, _extends$u.apply(null, arguments);
65188
65197
  }
65189
65198
  var SvgTaglist = function SvgTaglist(props) {
65190
- return /*#__PURE__*/y$1("svg", _extends$s({
65199
+ return /*#__PURE__*/y$1("svg", _extends$u({
65191
65200
  xmlns: "http://www.w3.org/2000/svg",
65192
65201
  width: 54,
65193
65202
  height: 54,
65194
65203
  fill: "currentcolor"
65195
- }, props), _path$r || (_path$r = /*#__PURE__*/y$1("path", {
65204
+ }, props), _path$t || (_path$t = /*#__PURE__*/y$1("path", {
65196
65205
  fillRule: "evenodd",
65197
65206
  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"
65198
65207
  })), _path2$2 || (_path2$2 = /*#__PURE__*/y$1("path", {
@@ -65200,17 +65209,17 @@
65200
65209
  })));
65201
65210
  };
65202
65211
  var _rect$1, _rect2, _rect3;
65203
- function _extends$r() {
65204
- return _extends$r = Object.assign ? Object.assign.bind() : function (n) {
65212
+ function _extends$t() {
65213
+ return _extends$t = Object.assign ? Object.assign.bind() : function (n) {
65205
65214
  for (var e = 1; e < arguments.length; e++) {
65206
65215
  var t = arguments[e];
65207
65216
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65208
65217
  }
65209
65218
  return n;
65210
- }, _extends$r.apply(null, arguments);
65219
+ }, _extends$t.apply(null, arguments);
65211
65220
  }
65212
65221
  var SvgForm = function SvgForm(props) {
65213
- return /*#__PURE__*/y$1("svg", _extends$r({
65222
+ return /*#__PURE__*/y$1("svg", _extends$t({
65214
65223
  xmlns: "http://www.w3.org/2000/svg",
65215
65224
  width: 54,
65216
65225
  height: 54
@@ -65234,29 +65243,70 @@
65234
65243
  rx: 1
65235
65244
  })));
65236
65245
  };
65237
- var _path$q;
65238
- function _extends$q() {
65239
- return _extends$q = Object.assign ? Object.assign.bind() : function (n) {
65246
+ var _path$s;
65247
+ function _extends$s() {
65248
+ return _extends$s = Object.assign ? Object.assign.bind() : function (n) {
65240
65249
  for (var e = 1; e < arguments.length; e++) {
65241
65250
  var t = arguments[e];
65242
65251
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65243
65252
  }
65244
65253
  return n;
65245
- }, _extends$q.apply(null, arguments);
65254
+ }, _extends$s.apply(null, arguments);
65246
65255
  }
65247
65256
  var SvgGroup = function SvgGroup(props) {
65248
- return /*#__PURE__*/y$1("svg", _extends$q({
65257
+ return /*#__PURE__*/y$1("svg", _extends$s({
65249
65258
  xmlns: "http://www.w3.org/2000/svg",
65250
65259
  width: 54,
65251
65260
  height: 54,
65252
65261
  fill: "none"
65253
- }, props), _path$q || (_path$q = /*#__PURE__*/y$1("path", {
65262
+ }, props), _path$s || (_path$s = /*#__PURE__*/y$1("path", {
65254
65263
  fill: "#000",
65255
65264
  fillRule: "evenodd",
65256
65265
  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",
65257
65266
  clipRule: "evenodd"
65258
65267
  })));
65259
65268
  };
65269
+ var _path$r;
65270
+ function _extends$r() {
65271
+ return _extends$r = Object.assign ? Object.assign.bind() : function (n) {
65272
+ for (var e = 1; e < arguments.length; e++) {
65273
+ var t = arguments[e];
65274
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65275
+ }
65276
+ return n;
65277
+ }, _extends$r.apply(null, arguments);
65278
+ }
65279
+ var SvgNumber = function SvgNumber(props) {
65280
+ return /*#__PURE__*/y$1("svg", _extends$r({
65281
+ xmlns: "http://www.w3.org/2000/svg",
65282
+ width: 54,
65283
+ height: 54,
65284
+ fill: "currentcolor"
65285
+ }, props), _path$r || (_path$r = /*#__PURE__*/y$1("path", {
65286
+ fillRule: "evenodd",
65287
+ 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"
65288
+ })));
65289
+ };
65290
+ var _path$q;
65291
+ function _extends$q() {
65292
+ return _extends$q = Object.assign ? Object.assign.bind() : function (n) {
65293
+ for (var e = 1; e < arguments.length; e++) {
65294
+ var t = arguments[e];
65295
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65296
+ }
65297
+ return n;
65298
+ }, _extends$q.apply(null, arguments);
65299
+ }
65300
+ var SvgRadio = function SvgRadio(props) {
65301
+ return /*#__PURE__*/y$1("svg", _extends$q({
65302
+ xmlns: "http://www.w3.org/2000/svg",
65303
+ width: 54,
65304
+ height: 54,
65305
+ fill: "currentcolor"
65306
+ }, props), _path$q || (_path$q = /*#__PURE__*/y$1("path", {
65307
+ 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"
65308
+ })));
65309
+ };
65260
65310
  var _path$p;
65261
65311
  function _extends$p() {
65262
65312
  return _extends$p = Object.assign ? Object.assign.bind() : function (n) {
@@ -65267,7 +65317,7 @@
65267
65317
  return n;
65268
65318
  }, _extends$p.apply(null, arguments);
65269
65319
  }
65270
- var SvgNumber = function SvgNumber(props) {
65320
+ var SvgSelect = function SvgSelect(props) {
65271
65321
  return /*#__PURE__*/y$1("svg", _extends$p({
65272
65322
  xmlns: "http://www.w3.org/2000/svg",
65273
65323
  width: 54,
@@ -65275,7 +65325,7 @@
65275
65325
  fill: "currentcolor"
65276
65326
  }, props), _path$p || (_path$p = /*#__PURE__*/y$1("path", {
65277
65327
  fillRule: "evenodd",
65278
- 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"
65328
+ 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"
65279
65329
  })));
65280
65330
  };
65281
65331
  var _path$o;
@@ -65288,14 +65338,15 @@
65288
65338
  return n;
65289
65339
  }, _extends$o.apply(null, arguments);
65290
65340
  }
65291
- var SvgRadio = function SvgRadio(props) {
65341
+ var SvgSeparator = function SvgSeparator(props) {
65292
65342
  return /*#__PURE__*/y$1("svg", _extends$o({
65293
65343
  xmlns: "http://www.w3.org/2000/svg",
65294
65344
  width: 54,
65295
65345
  height: 54,
65296
- fill: "currentcolor"
65346
+ fill: "none"
65297
65347
  }, props), _path$o || (_path$o = /*#__PURE__*/y$1("path", {
65298
- 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"
65348
+ fill: "currentColor",
65349
+ 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"
65299
65350
  })));
65300
65351
  };
65301
65352
  var _path$n;
@@ -65308,15 +65359,15 @@
65308
65359
  return n;
65309
65360
  }, _extends$n.apply(null, arguments);
65310
65361
  }
65311
- var SvgSelect = function SvgSelect(props) {
65362
+ var SvgSpacer = function SvgSpacer(props) {
65312
65363
  return /*#__PURE__*/y$1("svg", _extends$n({
65313
65364
  xmlns: "http://www.w3.org/2000/svg",
65314
65365
  width: 54,
65315
65366
  height: 54,
65316
- fill: "currentcolor"
65367
+ fill: "none"
65317
65368
  }, props), _path$n || (_path$n = /*#__PURE__*/y$1("path", {
65318
- fillRule: "evenodd",
65319
- 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"
65369
+ fill: "currentColor",
65370
+ 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"
65320
65371
  })));
65321
65372
  };
65322
65373
  var _path$m;
@@ -65329,7 +65380,7 @@
65329
65380
  return n;
65330
65381
  }, _extends$m.apply(null, arguments);
65331
65382
  }
65332
- var SvgSeparator = function SvgSeparator(props) {
65383
+ var SvgDynamicList = function SvgDynamicList(props) {
65333
65384
  return /*#__PURE__*/y$1("svg", _extends$m({
65334
65385
  xmlns: "http://www.w3.org/2000/svg",
65335
65386
  width: 54,
@@ -65337,7 +65388,9 @@
65337
65388
  fill: "none"
65338
65389
  }, props), _path$m || (_path$m = /*#__PURE__*/y$1("path", {
65339
65390
  fill: "currentColor",
65340
- 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"
65391
+ fillRule: "evenodd",
65392
+ 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",
65393
+ clipRule: "evenodd"
65341
65394
  })));
65342
65395
  };
65343
65396
  var _path$l;
@@ -65350,15 +65403,14 @@
65350
65403
  return n;
65351
65404
  }, _extends$l.apply(null, arguments);
65352
65405
  }
65353
- var SvgSpacer = function SvgSpacer(props) {
65406
+ var SvgText = function SvgText(props) {
65354
65407
  return /*#__PURE__*/y$1("svg", _extends$l({
65355
65408
  xmlns: "http://www.w3.org/2000/svg",
65356
65409
  width: 54,
65357
65410
  height: 54,
65358
- fill: "none"
65411
+ fill: "currentcolor"
65359
65412
  }, props), _path$l || (_path$l = /*#__PURE__*/y$1("path", {
65360
- fill: "currentColor",
65361
- 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"
65413
+ 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"
65362
65414
  })));
65363
65415
  };
65364
65416
  var _path$k;
@@ -65371,7 +65423,7 @@
65371
65423
  return n;
65372
65424
  }, _extends$k.apply(null, arguments);
65373
65425
  }
65374
- var SvgDynamicList = function SvgDynamicList(props) {
65426
+ var SvgHtml = function SvgHtml(props) {
65375
65427
  return /*#__PURE__*/y$1("svg", _extends$k({
65376
65428
  xmlns: "http://www.w3.org/2000/svg",
65377
65429
  width: 54,
@@ -65380,7 +65432,7 @@
65380
65432
  }, props), _path$k || (_path$k = /*#__PURE__*/y$1("path", {
65381
65433
  fill: "currentColor",
65382
65434
  fillRule: "evenodd",
65383
- 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",
65435
+ 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",
65384
65436
  clipRule: "evenodd"
65385
65437
  })));
65386
65438
  };
@@ -65394,14 +65446,17 @@
65394
65446
  return n;
65395
65447
  }, _extends$j.apply(null, arguments);
65396
65448
  }
65397
- var SvgText = function SvgText(props) {
65449
+ var SvgExpressionField = function SvgExpressionField(props) {
65398
65450
  return /*#__PURE__*/y$1("svg", _extends$j({
65399
65451
  xmlns: "http://www.w3.org/2000/svg",
65400
65452
  width: 54,
65401
65453
  height: 54,
65402
- fill: "currentcolor"
65454
+ fill: "none"
65403
65455
  }, props), _path$j || (_path$j = /*#__PURE__*/y$1("path", {
65404
- 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"
65456
+ fill: "currentcolor",
65457
+ fillRule: "evenodd",
65458
+ 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",
65459
+ clipRule: "evenodd"
65405
65460
  })));
65406
65461
  };
65407
65462
  var _path$i;
@@ -65414,17 +65469,15 @@
65414
65469
  return n;
65415
65470
  }, _extends$i.apply(null, arguments);
65416
65471
  }
65417
- var SvgHtml = function SvgHtml(props) {
65472
+ var SvgTextfield = function SvgTextfield(props) {
65418
65473
  return /*#__PURE__*/y$1("svg", _extends$i({
65419
65474
  xmlns: "http://www.w3.org/2000/svg",
65420
65475
  width: 54,
65421
65476
  height: 54,
65422
- fill: "none"
65477
+ fill: "currentcolor"
65423
65478
  }, props), _path$i || (_path$i = /*#__PURE__*/y$1("path", {
65424
- fill: "currentColor",
65425
65479
  fillRule: "evenodd",
65426
- 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",
65427
- clipRule: "evenodd"
65480
+ 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"
65428
65481
  })));
65429
65482
  };
65430
65483
  var _path$h;
@@ -65437,17 +65490,15 @@
65437
65490
  return n;
65438
65491
  }, _extends$h.apply(null, arguments);
65439
65492
  }
65440
- var SvgExpressionField = function SvgExpressionField(props) {
65493
+ var SvgTextarea = function SvgTextarea(props) {
65441
65494
  return /*#__PURE__*/y$1("svg", _extends$h({
65442
65495
  xmlns: "http://www.w3.org/2000/svg",
65443
65496
  width: 54,
65444
65497
  height: 54,
65445
- fill: "none"
65498
+ fill: "currentcolor"
65446
65499
  }, props), _path$h || (_path$h = /*#__PURE__*/y$1("path", {
65447
- fill: "currentcolor",
65448
65500
  fillRule: "evenodd",
65449
- 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",
65450
- clipRule: "evenodd"
65501
+ 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"
65451
65502
  })));
65452
65503
  };
65453
65504
  var _path$g;
@@ -65460,18 +65511,20 @@
65460
65511
  return n;
65461
65512
  }, _extends$g.apply(null, arguments);
65462
65513
  }
65463
- var SvgTextfield = function SvgTextfield(props) {
65514
+ var SvgIFrame = function SvgIFrame(props) {
65464
65515
  return /*#__PURE__*/y$1("svg", _extends$g({
65465
65516
  xmlns: "http://www.w3.org/2000/svg",
65466
65517
  width: 54,
65467
65518
  height: 54,
65468
- fill: "currentcolor"
65519
+ fill: "none"
65469
65520
  }, props), _path$g || (_path$g = /*#__PURE__*/y$1("path", {
65521
+ fill: "currentColor",
65470
65522
  fillRule: "evenodd",
65471
- 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"
65523
+ 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",
65524
+ clipRule: "evenodd"
65472
65525
  })));
65473
65526
  };
65474
- var _path$f;
65527
+ var _path$f, _path2$1$1;
65475
65528
  function _extends$f() {
65476
65529
  return _extends$f = Object.assign ? Object.assign.bind() : function (n) {
65477
65530
  for (var e = 1; e < arguments.length; e++) {
@@ -65481,7 +65534,7 @@
65481
65534
  return n;
65482
65535
  }, _extends$f.apply(null, arguments);
65483
65536
  }
65484
- var SvgTextarea = function SvgTextarea(props) {
65537
+ var SvgImage = function SvgImage(props) {
65485
65538
  return /*#__PURE__*/y$1("svg", _extends$f({
65486
65539
  xmlns: "http://www.w3.org/2000/svg",
65487
65540
  width: 54,
@@ -65489,7 +65542,12 @@
65489
65542
  fill: "currentcolor"
65490
65543
  }, props), _path$f || (_path$f = /*#__PURE__*/y$1("path", {
65491
65544
  fillRule: "evenodd",
65492
- 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"
65545
+ 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",
65546
+ clipRule: "evenodd"
65547
+ })), _path2$1$1 || (_path2$1$1 = /*#__PURE__*/y$1("path", {
65548
+ fillRule: "evenodd",
65549
+ d: "M15 13a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V15a2 2 0 0 0-2-2zm24 2H15v12.45l4.71-4.709a1.91 1.91 0 0 1 2.702 0l6.695 6.695 2.656-1.77a1.91 1.91 0 0 1 2.411.239L39 32.73zM15 39v-8.754a1 1 0 0 0 .168-.135l5.893-5.893 6.684 6.685a1.91 1.91 0 0 0 2.41.238l2.657-1.77 6.02 6.02q.078.077.168.135V39z",
65550
+ clipRule: "evenodd"
65493
65551
  })));
65494
65552
  };
65495
65553
  var _path$e;
@@ -65502,20 +65560,19 @@
65502
65560
  return n;
65503
65561
  }, _extends$e.apply(null, arguments);
65504
65562
  }
65505
- var SvgIFrame = function SvgIFrame(props) {
65563
+ var SvgTable = function SvgTable(props) {
65506
65564
  return /*#__PURE__*/y$1("svg", _extends$e({
65507
65565
  xmlns: "http://www.w3.org/2000/svg",
65508
- width: 54,
65509
- height: 54,
65510
- fill: "none"
65566
+ fill: "none",
65567
+ viewBox: "0 0 54 54"
65511
65568
  }, props), _path$e || (_path$e = /*#__PURE__*/y$1("path", {
65512
- fill: "currentColor",
65569
+ fill: "currentcolor",
65513
65570
  fillRule: "evenodd",
65514
- 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",
65571
+ 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",
65515
65572
  clipRule: "evenodd"
65516
65573
  })));
65517
65574
  };
65518
- var _path$d, _path2$1$1;
65575
+ var _path$d;
65519
65576
  function _extends$d() {
65520
65577
  return _extends$d = Object.assign ? Object.assign.bind() : function (n) {
65521
65578
  for (var e = 1; e < arguments.length; e++) {
@@ -65525,19 +65582,16 @@
65525
65582
  return n;
65526
65583
  }, _extends$d.apply(null, arguments);
65527
65584
  }
65528
- var SvgImage = function SvgImage(props) {
65585
+ var SvgFilePicker = function SvgFilePicker(props) {
65529
65586
  return /*#__PURE__*/y$1("svg", _extends$d({
65530
65587
  xmlns: "http://www.w3.org/2000/svg",
65531
65588
  width: 54,
65532
65589
  height: 54,
65533
- fill: "currentcolor"
65590
+ fill: "none"
65534
65591
  }, props), _path$d || (_path$d = /*#__PURE__*/y$1("path", {
65592
+ fill: "currentcolor",
65535
65593
  fillRule: "evenodd",
65536
- 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",
65537
- clipRule: "evenodd"
65538
- })), _path2$1$1 || (_path2$1$1 = /*#__PURE__*/y$1("path", {
65539
- fillRule: "evenodd",
65540
- d: "M15 13a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V15a2 2 0 0 0-2-2zm24 2H15v12.45l4.71-4.709a1.91 1.91 0 0 1 2.702 0l6.695 6.695 2.656-1.77a1.91 1.91 0 0 1 2.411.239L39 32.73zM15 39v-8.754a1 1 0 0 0 .168-.135l5.893-5.893 6.684 6.685a1.91 1.91 0 0 0 2.41.238l2.657-1.77 6.02 6.02q.078.077.168.135V39z",
65594
+ 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",
65541
65595
  clipRule: "evenodd"
65542
65596
  })));
65543
65597
  };
@@ -65551,38 +65605,16 @@
65551
65605
  return n;
65552
65606
  }, _extends$c.apply(null, arguments);
65553
65607
  }
65554
- var SvgTable = function SvgTable(props) {
65608
+ var SvgDocumentPreview = function SvgDocumentPreview(props) {
65555
65609
  return /*#__PURE__*/y$1("svg", _extends$c({
65556
- xmlns: "http://www.w3.org/2000/svg",
65557
- fill: "none",
65558
- viewBox: "0 0 54 54"
65559
- }, props), _path$c || (_path$c = /*#__PURE__*/y$1("path", {
65560
- fill: "currentcolor",
65561
- fillRule: "evenodd",
65562
- 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",
65563
- clipRule: "evenodd"
65564
- })));
65565
- };
65566
- var _path$b;
65567
- function _extends$b() {
65568
- return _extends$b = Object.assign ? Object.assign.bind() : function (n) {
65569
- for (var e = 1; e < arguments.length; e++) {
65570
- var t = arguments[e];
65571
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65572
- }
65573
- return n;
65574
- }, _extends$b.apply(null, arguments);
65575
- }
65576
- var SvgFilePicker = function SvgFilePicker(props) {
65577
- return /*#__PURE__*/y$1("svg", _extends$b({
65578
65610
  xmlns: "http://www.w3.org/2000/svg",
65579
65611
  width: 54,
65580
65612
  height: 54,
65581
65613
  fill: "none"
65582
- }, props), _path$b || (_path$b = /*#__PURE__*/y$1("path", {
65614
+ }, props), _path$c || (_path$c = /*#__PURE__*/y$1("path", {
65583
65615
  fill: "currentcolor",
65584
65616
  fillRule: "evenodd",
65585
- 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",
65617
+ 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",
65586
65618
  clipRule: "evenodd"
65587
65619
  })));
65588
65620
  };
@@ -65610,10 +65642,11 @@
65610
65642
  textarea: SvgTextarea,
65611
65643
  table: SvgTable,
65612
65644
  filepicker: SvgFilePicker,
65645
+ documentPreview: SvgDocumentPreview,
65613
65646
  default: SvgForm
65614
65647
  }[type];
65615
65648
  };
65616
- const type$d = 'image';
65649
+ const type$e = 'image';
65617
65650
  function Image$1(props) {
65618
65651
  const {
65619
65652
  field
@@ -65635,7 +65668,7 @@
65635
65668
  formId
65636
65669
  } = q$1(FormContext);
65637
65670
  return o("div", {
65638
- class: formFieldClasses(type$d),
65671
+ class: formFieldClasses(type$e),
65639
65672
  children: [safeSource && o("div", {
65640
65673
  class: "fjs-image-container",
65641
65674
  children: o("img", {
@@ -65659,7 +65692,7 @@
65659
65692
  });
65660
65693
  }
65661
65694
  Image$1.config = {
65662
- type: type$d,
65695
+ type: type$e,
65663
65696
  keyed: false,
65664
65697
  name: 'Image view',
65665
65698
  group: 'presentation',
@@ -65683,22 +65716,22 @@
65683
65716
  post: evaluatedPost
65684
65717
  });
65685
65718
  }
65686
- var _path$a;
65687
- function _extends$a() {
65688
- return _extends$a = Object.assign ? Object.assign.bind() : function (n) {
65719
+ var _path$b;
65720
+ function _extends$b() {
65721
+ return _extends$b = Object.assign ? Object.assign.bind() : function (n) {
65689
65722
  for (var e = 1; e < arguments.length; e++) {
65690
65723
  var t = arguments[e];
65691
65724
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65692
65725
  }
65693
65726
  return n;
65694
- }, _extends$a.apply(null, arguments);
65727
+ }, _extends$b.apply(null, arguments);
65695
65728
  }
65696
65729
  var SvgAngelDown = function SvgAngelDown(props) {
65697
- return /*#__PURE__*/y$1("svg", _extends$a({
65730
+ return /*#__PURE__*/y$1("svg", _extends$b({
65698
65731
  xmlns: "http://www.w3.org/2000/svg",
65699
65732
  width: 8,
65700
65733
  height: 8
65701
- }, props), _path$a || (_path$a = /*#__PURE__*/y$1("path", {
65734
+ }, props), _path$b || (_path$b = /*#__PURE__*/y$1("path", {
65702
65735
  fill: "currentColor",
65703
65736
  fillRule: "evenodd",
65704
65737
  stroke: "currentColor",
@@ -65707,22 +65740,22 @@
65707
65740
  clipRule: "evenodd"
65708
65741
  })));
65709
65742
  };
65710
- var _path$9;
65711
- function _extends$9() {
65712
- return _extends$9 = Object.assign ? Object.assign.bind() : function (n) {
65743
+ var _path$a;
65744
+ function _extends$a() {
65745
+ return _extends$a = Object.assign ? Object.assign.bind() : function (n) {
65713
65746
  for (var e = 1; e < arguments.length; e++) {
65714
65747
  var t = arguments[e];
65715
65748
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
65716
65749
  }
65717
65750
  return n;
65718
- }, _extends$9.apply(null, arguments);
65751
+ }, _extends$a.apply(null, arguments);
65719
65752
  }
65720
65753
  var SvgAngelUp = function SvgAngelUp(props) {
65721
- return /*#__PURE__*/y$1("svg", _extends$9({
65754
+ return /*#__PURE__*/y$1("svg", _extends$a({
65722
65755
  xmlns: "http://www.w3.org/2000/svg",
65723
65756
  width: 8,
65724
65757
  height: 8
65725
- }, props), _path$9 || (_path$9 = /*#__PURE__*/y$1("path", {
65758
+ }, props), _path$a || (_path$a = /*#__PURE__*/y$1("path", {
65726
65759
  fill: "currentColor",
65727
65760
  fillRule: "evenodd",
65728
65761
  stroke: "currentColor",
@@ -65759,7 +65792,7 @@
65759
65792
  function isNullEquivalentValue(value) {
65760
65793
  return value === undefined || value === null || value === '';
65761
65794
  }
65762
- const type$c = 'number';
65795
+ const type$d = 'number';
65763
65796
  function Numberfield(props) {
65764
65797
  const {
65765
65798
  disabled,
@@ -65906,7 +65939,7 @@
65906
65939
  const descriptionId = `${domId}-description`;
65907
65940
  const errorMessageId = `${domId}-error-message`;
65908
65941
  return o("div", {
65909
- class: formFieldClasses(type$c, {
65942
+ class: formFieldClasses(type$d, {
65910
65943
  errors,
65911
65944
  disabled,
65912
65945
  readonly
@@ -65983,7 +66016,7 @@
65983
66016
  });
65984
66017
  }
65985
66018
  Numberfield.config = {
65986
- type: type$c,
66019
+ type: type$d,
65987
66020
  keyed: true,
65988
66021
  name: 'Number',
65989
66022
  group: 'basic-input',
@@ -66003,7 +66036,7 @@
66003
66036
  ...options
66004
66037
  })
66005
66038
  };
66006
- const type$b = 'radio';
66039
+ const type$c = 'radio';
66007
66040
  function Radio(props) {
66008
66041
  const {
66009
66042
  disabled,
@@ -66057,7 +66090,7 @@
66057
66090
  const descriptionId = `${domId}-description`;
66058
66091
  const errorMessageId = `${domId}-error-message`;
66059
66092
  return o("div", {
66060
- class: formFieldClasses(type$b, {
66093
+ class: formFieldClasses(type$c, {
66061
66094
  errors,
66062
66095
  disabled,
66063
66096
  readonly
@@ -66106,7 +66139,7 @@
66106
66139
  });
66107
66140
  }
66108
66141
  Radio.config = {
66109
- type: type$b,
66142
+ type: type$c,
66110
66143
  keyed: true,
66111
66144
  name: 'Radio group',
66112
66145
  group: 'selection',
@@ -66117,22 +66150,22 @@
66117
66150
  ...createEmptyOptions(options)
66118
66151
  })
66119
66152
  };
66120
- var _path$8;
66121
- function _extends$8() {
66122
- return _extends$8 = Object.assign ? Object.assign.bind() : function (n) {
66153
+ var _path$9;
66154
+ function _extends$9() {
66155
+ return _extends$9 = Object.assign ? Object.assign.bind() : function (n) {
66123
66156
  for (var e = 1; e < arguments.length; e++) {
66124
66157
  var t = arguments[e];
66125
66158
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
66126
66159
  }
66127
66160
  return n;
66128
- }, _extends$8.apply(null, arguments);
66161
+ }, _extends$9.apply(null, arguments);
66129
66162
  }
66130
66163
  var SvgXMark = function SvgXMark(props) {
66131
- return /*#__PURE__*/y$1("svg", _extends$8({
66164
+ return /*#__PURE__*/y$1("svg", _extends$9({
66132
66165
  xmlns: "http://www.w3.org/2000/svg",
66133
66166
  width: 8,
66134
66167
  height: 8
66135
- }, props), _path$8 || (_path$8 = /*#__PURE__*/y$1("path", {
66168
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/y$1("path", {
66136
66169
  fill: "currentColor",
66137
66170
  fillRule: "evenodd",
66138
66171
  stroke: "currentColor",
@@ -66427,7 +66460,7 @@
66427
66460
  })]
66428
66461
  });
66429
66462
  }
66430
- const type$a = 'select';
66463
+ const type$b = 'select';
66431
66464
  function Select$1(props) {
66432
66465
  const {
66433
66466
  disabled,
@@ -66466,7 +66499,7 @@
66466
66499
  'aria-describedby': [descriptionId, errorMessageId].join(' ')
66467
66500
  };
66468
66501
  return o("div", {
66469
- class: formFieldClasses(type$a, {
66502
+ class: formFieldClasses(type$b, {
66470
66503
  errors,
66471
66504
  disabled,
66472
66505
  readonly
@@ -66495,7 +66528,7 @@
66495
66528
  });
66496
66529
  }
66497
66530
  Select$1.config = {
66498
- type: type$a,
66531
+ type: type$b,
66499
66532
  keyed: true,
66500
66533
  name: 'Select',
66501
66534
  group: 'selection',
@@ -66506,15 +66539,15 @@
66506
66539
  ...createEmptyOptions(options)
66507
66540
  })
66508
66541
  };
66509
- const type$9 = 'separator';
66542
+ const type$a = 'separator';
66510
66543
  function Separator() {
66511
66544
  return o("div", {
66512
- class: formFieldClasses(type$9),
66545
+ class: formFieldClasses(type$a),
66513
66546
  children: o("hr", {})
66514
66547
  });
66515
66548
  }
66516
66549
  Separator.config = {
66517
- type: type$9,
66550
+ type: type$a,
66518
66551
  keyed: false,
66519
66552
  name: 'Separator',
66520
66553
  group: 'presentation',
@@ -66522,7 +66555,7 @@
66522
66555
  ...options
66523
66556
  })
66524
66557
  };
66525
- const type$8 = 'spacer';
66558
+ const type$9 = 'spacer';
66526
66559
  function Spacer(props) {
66527
66560
  const {
66528
66561
  field
@@ -66531,14 +66564,14 @@
66531
66564
  height = 60
66532
66565
  } = field;
66533
66566
  return o("div", {
66534
- class: formFieldClasses(type$8),
66567
+ class: formFieldClasses(type$9),
66535
66568
  style: {
66536
66569
  height: height
66537
66570
  }
66538
66571
  });
66539
66572
  }
66540
66573
  Spacer.config = {
66541
- type: type$8,
66574
+ type: type$9,
66542
66575
  keyed: false,
66543
66576
  name: 'Spacer',
66544
66577
  group: 'presentation',
@@ -66617,7 +66650,7 @@
66617
66650
  children: label
66618
66651
  });
66619
66652
  }
66620
- const type$7 = 'taglist';
66653
+ const type$8 = 'taglist';
66621
66654
  function Taglist(props) {
66622
66655
  const {
66623
66656
  disabled,
@@ -66763,7 +66796,7 @@
66763
66796
  const errorMessageId = `${domId}-error-message`;
66764
66797
  return o("div", {
66765
66798
  ref: focusScopeRef,
66766
- class: formFieldClasses(type$7, {
66799
+ class: formFieldClasses(type$8, {
66767
66800
  errors,
66768
66801
  disabled,
66769
66802
  readonly
@@ -66848,7 +66881,7 @@
66848
66881
  });
66849
66882
  }
66850
66883
  Taglist.config = {
66851
- type: type$7,
66884
+ type: type$8,
66852
66885
  keyed: true,
66853
66886
  name: 'Tag list',
66854
66887
  group: 'selection',
@@ -66970,7 +67003,7 @@
66970
67003
  }
66971
67004
  return true;
66972
67005
  }
66973
- const type$6 = 'text';
67006
+ const type$7 = 'text';
66974
67007
  function Text$1(props) {
66975
67008
  const form = useService$2('form');
66976
67009
  const {
@@ -67017,12 +67050,12 @@
67017
67050
  sanitizeStyleTags: false
67018
67051
  });
67019
67052
  return o("div", {
67020
- class: formFieldClasses(type$6),
67053
+ class: formFieldClasses(type$7),
67021
67054
  dangerouslySetInnerHTML: dangerouslySetInnerHTML
67022
67055
  });
67023
67056
  }
67024
67057
  Text$1.config = {
67025
- type: type$6,
67058
+ type: type$7,
67026
67059
  keyed: false,
67027
67060
  name: 'Text view',
67028
67061
  group: 'presentation',
@@ -67034,7 +67067,7 @@
67034
67067
  textToLabel(field.text);
67035
67068
  }
67036
67069
  };
67037
- const type$5 = 'html';
67070
+ const type$6 = 'html';
67038
67071
  function Html(props) {
67039
67072
  const form = useService$2('form');
67040
67073
  const {
@@ -67085,12 +67118,12 @@
67085
67118
  sanitizeStyleTags: false
67086
67119
  });
67087
67120
  return o("div", {
67088
- class: classNames(formFieldClasses(type$5), styleScope),
67121
+ class: classNames(formFieldClasses(type$6), styleScope),
67089
67122
  dangerouslySetInnerHTML: dangerouslySetInnerHTML
67090
67123
  });
67091
67124
  }
67092
67125
  Html.config = {
67093
- type: type$5,
67126
+ type: type$6,
67094
67127
  keyed: false,
67095
67128
  name: 'HTML view',
67096
67129
  group: 'presentation',
@@ -67099,7 +67132,7 @@
67099
67132
  ...options
67100
67133
  })
67101
67134
  };
67102
- const type$4 = 'expression';
67135
+ const type$5 = 'expression';
67103
67136
  function ExpressionField(props) {
67104
67137
  const {
67105
67138
  field,
@@ -67136,7 +67169,7 @@
67136
67169
  return null;
67137
67170
  }
67138
67171
  ExpressionField.config = {
67139
- type: type$4,
67172
+ type: type$5,
67140
67173
  name: 'Expression',
67141
67174
  group: 'basic-input',
67142
67175
  keyed: true,
@@ -67147,7 +67180,7 @@
67147
67180
  ...options
67148
67181
  })
67149
67182
  };
67150
- const type$3 = 'textfield';
67183
+ const type$4 = 'textfield';
67151
67184
  function Textfield$1(props) {
67152
67185
  const {
67153
67186
  disabled,
@@ -67189,7 +67222,7 @@
67189
67222
  const descriptionId = `${domId}-description`;
67190
67223
  const errorMessageId = `${domId}-error-message`;
67191
67224
  return o("div", {
67192
- class: formFieldClasses(type$3, {
67225
+ class: formFieldClasses(type$4, {
67193
67226
  errors,
67194
67227
  disabled,
67195
67228
  readonly
@@ -67227,7 +67260,7 @@
67227
67260
  });
67228
67261
  }
67229
67262
  Textfield$1.config = {
67230
- type: type$3,
67263
+ type: type$4,
67231
67264
  keyed: true,
67232
67265
  name: 'Text field',
67233
67266
  group: 'basic-input',
@@ -67250,7 +67283,7 @@
67250
67283
  ...options
67251
67284
  })
67252
67285
  };
67253
- const type$2 = 'textarea';
67286
+ const type$3 = 'textarea';
67254
67287
  function Textarea(props) {
67255
67288
  const {
67256
67289
  disabled,
@@ -67300,7 +67333,7 @@
67300
67333
  const descriptionId = `${domId}-description`;
67301
67334
  const errorMessageId = `${domId}-error-message`;
67302
67335
  return o("div", {
67303
- class: formFieldClasses(type$2, {
67336
+ class: formFieldClasses(type$3, {
67304
67337
  errors,
67305
67338
  disabled,
67306
67339
  readonly
@@ -67332,7 +67365,7 @@
67332
67365
  });
67333
67366
  }
67334
67367
  Textarea.config = {
67335
- type: type$2,
67368
+ type: type$3,
67336
67369
  keyed: true,
67337
67370
  name: 'Text area',
67338
67371
  group: 'basic-input',
@@ -67363,85 +67396,85 @@
67363
67396
  // Overflow is hidden by default to hide scrollbar flickering
67364
67397
  textarea.style.overflow = calculatedHeight > maxHeight ? 'visible' : 'hidden';
67365
67398
  };
67366
- var _path$7;
67367
- function _extends$7() {
67368
- return _extends$7 = Object.assign ? Object.assign.bind() : function (n) {
67399
+ var _path$8;
67400
+ function _extends$8() {
67401
+ return _extends$8 = Object.assign ? Object.assign.bind() : function (n) {
67369
67402
  for (var e = 1; e < arguments.length; e++) {
67370
67403
  var t = arguments[e];
67371
67404
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
67372
67405
  }
67373
67406
  return n;
67374
- }, _extends$7.apply(null, arguments);
67407
+ }, _extends$8.apply(null, arguments);
67375
67408
  }
67376
67409
  var SvgArrowDown = function SvgArrowDown(props) {
67377
- return /*#__PURE__*/y$1("svg", _extends$7({
67410
+ return /*#__PURE__*/y$1("svg", _extends$8({
67378
67411
  xmlns: "http://www.w3.org/2000/svg",
67379
67412
  viewBox: "0 0 32 32"
67380
- }, props), _path$7 || (_path$7 = /*#__PURE__*/y$1("path", {
67413
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/y$1("path", {
67381
67414
  fill: "currentcolor",
67382
67415
  d: "M24.59 16.59 17 24.17V4h-2v20.17l-7.59-7.58L6 18l10 10 10-10z"
67383
67416
  })));
67384
67417
  };
67385
- var _path$6;
67386
- function _extends$6$1() {
67387
- return _extends$6$1 = Object.assign ? Object.assign.bind() : function (n) {
67418
+ var _path$7;
67419
+ function _extends$7() {
67420
+ return _extends$7 = Object.assign ? Object.assign.bind() : function (n) {
67388
67421
  for (var e = 1; e < arguments.length; e++) {
67389
67422
  var t = arguments[e];
67390
67423
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
67391
67424
  }
67392
67425
  return n;
67393
- }, _extends$6$1.apply(null, arguments);
67426
+ }, _extends$7.apply(null, arguments);
67394
67427
  }
67395
67428
  var SvgArrowUp = function SvgArrowUp(props) {
67396
- return /*#__PURE__*/y$1("svg", _extends$6$1({
67429
+ return /*#__PURE__*/y$1("svg", _extends$7({
67397
67430
  xmlns: "http://www.w3.org/2000/svg",
67398
67431
  viewBox: "0 0 32 32"
67399
- }, props), _path$6 || (_path$6 = /*#__PURE__*/y$1("path", {
67432
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/y$1("path", {
67400
67433
  fill: "currentcolor",
67401
67434
  d: "M16 4 6 14l1.41 1.41L15 7.83V28h2V7.83l7.59 7.58L26 14z"
67402
67435
  })));
67403
67436
  };
67404
- var _path$5$1;
67405
- function _extends$5$1() {
67406
- return _extends$5$1 = Object.assign ? Object.assign.bind() : function (n) {
67437
+ var _path$6;
67438
+ function _extends$6$1() {
67439
+ return _extends$6$1 = Object.assign ? Object.assign.bind() : function (n) {
67407
67440
  for (var e = 1; e < arguments.length; e++) {
67408
67441
  var t = arguments[e];
67409
67442
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
67410
67443
  }
67411
67444
  return n;
67412
- }, _extends$5$1.apply(null, arguments);
67445
+ }, _extends$6$1.apply(null, arguments);
67413
67446
  }
67414
67447
  var SvgCaretLeft = function SvgCaretLeft(props) {
67415
- return /*#__PURE__*/y$1("svg", _extends$5$1({
67448
+ return /*#__PURE__*/y$1("svg", _extends$6$1({
67416
67449
  xmlns: "http://www.w3.org/2000/svg",
67417
67450
  xmlSpace: "preserve",
67418
67451
  viewBox: "0 0 32 32"
67419
- }, props), _path$5$1 || (_path$5$1 = /*#__PURE__*/y$1("path", {
67452
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/y$1("path", {
67420
67453
  fill: "currentcolor",
67421
67454
  d: "m20 24-10-8 10-8z"
67422
67455
  })));
67423
67456
  };
67424
- var _path$4$1;
67425
- function _extends$4$1() {
67426
- return _extends$4$1 = Object.assign ? Object.assign.bind() : function (n) {
67457
+ var _path$5$1;
67458
+ function _extends$5$1() {
67459
+ return _extends$5$1 = Object.assign ? Object.assign.bind() : function (n) {
67427
67460
  for (var e = 1; e < arguments.length; e++) {
67428
67461
  var t = arguments[e];
67429
67462
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
67430
67463
  }
67431
67464
  return n;
67432
- }, _extends$4$1.apply(null, arguments);
67465
+ }, _extends$5$1.apply(null, arguments);
67433
67466
  }
67434
67467
  var SvgCaretRight = function SvgCaretRight(props) {
67435
- return /*#__PURE__*/y$1("svg", _extends$4$1({
67468
+ return /*#__PURE__*/y$1("svg", _extends$5$1({
67436
67469
  xmlns: "http://www.w3.org/2000/svg",
67437
67470
  xmlSpace: "preserve",
67438
67471
  viewBox: "0 0 32 32"
67439
- }, props), _path$4$1 || (_path$4$1 = /*#__PURE__*/y$1("path", {
67472
+ }, props), _path$5$1 || (_path$5$1 = /*#__PURE__*/y$1("path", {
67440
67473
  fill: "currentcolor",
67441
67474
  d: "m12 8 10 8-10 8z"
67442
67475
  })));
67443
67476
  };
67444
- const type$1 = 'table';
67477
+ const type$2 = 'table';
67445
67478
 
67446
67479
  /**
67447
67480
  * @typedef {('asc'|'desc')} Direction
@@ -67522,7 +67555,7 @@
67522
67555
  });
67523
67556
  }
67524
67557
  return o("div", {
67525
- class: formFieldClasses(type$1),
67558
+ class: formFieldClasses(type$2),
67526
67559
  children: [o(Label$3, {
67527
67560
  htmlFor: prefixId$2(id),
67528
67561
  label: label
@@ -67619,7 +67652,7 @@
67619
67652
  });
67620
67653
  }
67621
67654
  Table.config = {
67622
- type: type$1,
67655
+ type: type$2,
67623
67656
  keyed: false,
67624
67657
  name: 'Table',
67625
67658
  group: 'presentation',
@@ -67772,7 +67805,7 @@
67772
67805
  return `Click to sort by ${label} ascending`;
67773
67806
  }
67774
67807
  const FILE_PICKER_FILE_KEY_PREFIX = 'files::';
67775
- const type$j = 'filepicker';
67808
+ const type$1 = 'filepicker';
67776
67809
  const ids$1 = new Ids();
67777
67810
  const EMPTY_ARRAY$1 = [];
67778
67811
 
@@ -67860,7 +67893,7 @@
67860
67893
  };
67861
67894
  const isInputDisabled = disabled || readonly || fileRegistry === null;
67862
67895
  return o("div", {
67863
- className: formFieldClasses(type$j, {
67896
+ className: formFieldClasses(type$1, {
67864
67897
  errors,
67865
67898
  disabled,
67866
67899
  readonly
@@ -67926,6 +67959,329 @@
67926
67959
  }
67927
67960
  return `${files.length} files selected`;
67928
67961
  }
67962
+ var _path$4$1;
67963
+ function _extends$4$1() {
67964
+ return _extends$4$1 = Object.assign ? Object.assign.bind() : function (n) {
67965
+ for (var e = 1; e < arguments.length; e++) {
67966
+ var t = arguments[e];
67967
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
67968
+ }
67969
+ return n;
67970
+ }, _extends$4$1.apply(null, arguments);
67971
+ }
67972
+ var SvgDownload = function SvgDownload(props) {
67973
+ return /*#__PURE__*/y$1("svg", _extends$4$1({
67974
+ xmlns: "http://www.w3.org/2000/svg",
67975
+ width: 16,
67976
+ height: 16
67977
+ }, props), _path$4$1 || (_path$4$1 = /*#__PURE__*/y$1("path", {
67978
+ fill: "currentColor",
67979
+ 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"
67980
+ })), /*#__PURE__*/y$1("path", {
67981
+ d: "M0 0h16v16H0z",
67982
+ style: {
67983
+ fill: "none"
67984
+ }
67985
+ }));
67986
+ };
67987
+ const type$k = 'documentPreview';
67988
+
67989
+ /**
67990
+ * @typedef DocumentMetadata
67991
+ * @property {string} documentId
67992
+ * @property {Object} metadata
67993
+ * @property {string|undefined} [metadata.contentType]
67994
+ * @property {string} metadata.fileName
67995
+ *
67996
+ * @typedef Field
67997
+ * @property {string} id
67998
+ * @property {string} [title]
67999
+ * @property {string} [dataSource]
68000
+ * @property {string} [endpointKey]
68001
+ * @property {number} [maxHeight]
68002
+ * @property {string} [label]
68003
+ *
68004
+ * @typedef Props
68005
+ * @property {Field} field
68006
+ * @property {string} domId
68007
+ *
68008
+ * @param {Props} props
68009
+ * @returns {import("preact").JSX.Element}
68010
+ */
68011
+ function DocumentPreview(props) {
68012
+ const {
68013
+ field,
68014
+ domId
68015
+ } = props;
68016
+ const {
68017
+ dataSource,
68018
+ endpointKey,
68019
+ maxHeight,
68020
+ label
68021
+ } = field;
68022
+ const errorMessageId = `${domId}-error-message`;
68023
+ const endpoint = useExpressionEvaluation(endpointKey || '');
68024
+ const data = useValidDocumentData(dataSource || '');
68025
+ const evaluatedLabel = useSingleLineTemplateEvaluation(label, {
68026
+ debug: true
68027
+ });
68028
+ return o("div", {
68029
+ class: formFieldClasses(type$k),
68030
+ children: [o(Label$3, {
68031
+ htmlFor: domId,
68032
+ label: evaluatedLabel
68033
+ }), o("div", {
68034
+ class: `fjs-${type$k}-document-container`,
68035
+ id: domId,
68036
+ children: isValidDocumentEndpoint(endpoint) ? data.map((document, index) => o(DocumentRenderer, {
68037
+ documentMetadata: document,
68038
+ endpoint: endpoint,
68039
+ maxHeight: maxHeight,
68040
+ domId: `${domId}-${index}`
68041
+ }, document.documentId)) : null
68042
+ }), o(Errors, {
68043
+ id: errorMessageId,
68044
+ errors: getErrors({
68045
+ dataSource,
68046
+ endpoint,
68047
+ endpointKey
68048
+ })
68049
+ })]
68050
+ });
68051
+ }
68052
+ DocumentPreview.config = {
68053
+ type: type$k,
68054
+ keyed: false,
68055
+ group: 'presentation',
68056
+ name: 'Document preview',
68057
+ create: (options = {}) => ({
68058
+ label: 'Document preview',
68059
+ endpointKey: DEFAULT_ENDPOINT_KEY,
68060
+ ...options
68061
+ })
68062
+ };
68063
+
68064
+ // helpers /////////////////////////////
68065
+
68066
+ const DOCUMENT_ID_PLACEHOLDER = '{documentId}';
68067
+ const DEFAULT_ENDPOINT_KEY = '=defaultDocumentsEndpointKey';
68068
+
68069
+ /**
68070
+ * @typedef GetErrorOptions
68071
+ * @property {string|undefined} dataSource
68072
+ * @property {string|undefined} endpointKey
68073
+ * @property {string|null} endpoint
68074
+ *
68075
+ * @param {GetErrorOptions} options
68076
+ * @returns {string[]}
68077
+ */
68078
+ function getErrors(options) {
68079
+ const {
68080
+ dataSource,
68081
+ endpointKey,
68082
+ endpoint
68083
+ } = options;
68084
+ let errors = [];
68085
+ if (!isString$2(dataSource) || dataSource.length < 1) {
68086
+ errors.push('Document reference is not defined.');
68087
+ }
68088
+ if (!isString$2(endpointKey) || endpointKey.length < 1) {
68089
+ errors.push('Endpoint key is not defined.');
68090
+ }
68091
+ if (endpointKey !== DEFAULT_ENDPOINT_KEY && !URL.canParse(endpoint)) {
68092
+ 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.`);
68093
+ } else if (endpointKey !== DEFAULT_ENDPOINT_KEY && !isValidDocumentEndpoint(endpoint)) {
68094
+ errors.push('Endpoint must contain "{documentId}".');
68095
+ }
68096
+ return errors;
68097
+ }
68098
+
68099
+ /**
68100
+ *
68101
+ * @param {unknown} endpoint
68102
+ * @returns boolean
68103
+ */
68104
+ function isValidDocumentEndpoint(endpoint) {
68105
+ return typeof endpoint === 'string' && URL.canParse(endpoint) && endpoint.includes(DOCUMENT_ID_PLACEHOLDER);
68106
+ }
68107
+
68108
+ /**
68109
+ * @param {unknown} document
68110
+ * @returns {metadata is DocumentMetadata}
68111
+ */
68112
+ function isValidDocument(document) {
68113
+ return typeof document === 'object' && 'documentId' in document && 'metadata' in document && typeof document.metadata === 'object' && 'fileName' in document.metadata;
68114
+ }
68115
+
68116
+ /**
68117
+ * @param {string} dataSource
68118
+ * @returns {DocumentMetadata[]}
68119
+ */
68120
+ function useValidDocumentData(dataSource) {
68121
+ const data = useExpressionEvaluation(dataSource);
68122
+ if (!Array.isArray(data)) {
68123
+ return [];
68124
+ }
68125
+ return data.filter(isValidDocument);
68126
+ }
68127
+
68128
+ /**
68129
+ *
68130
+ * @param {Object} props
68131
+ * @param {DocumentMetadata} props.documentMetadata
68132
+ * @param {string} props.endpoint
68133
+ * @param {string} props.domId
68134
+ * @param {number|undefined} props.maxHeight
68135
+ *
68136
+ * @returns {import("preact").JSX.Element}
68137
+ */
68138
+ function DocumentRenderer(props) {
68139
+ const {
68140
+ documentMetadata,
68141
+ endpoint,
68142
+ maxHeight,
68143
+ domId
68144
+ } = props;
68145
+ const {
68146
+ metadata
68147
+ } = documentMetadata;
68148
+ const [hasError, setHasError] = h(false);
68149
+ const ref = _$1(null);
68150
+ const isInViewport = useInViewport(ref);
68151
+ const fullUrl = endpoint.replace(DOCUMENT_ID_PLACEHOLDER, documentMetadata.documentId);
68152
+ const singleDocumentContainerClassName = `fjs-${type$k}-single-document-container`;
68153
+ const errorMessageId = `${domId}-error-message`;
68154
+ const errorMessage = 'Unable to download document';
68155
+ const isContentTypePresent = typeof metadata.contentType === 'string';
68156
+ if (isContentTypePresent && metadata.contentType.toLowerCase().startsWith('image/') && isInViewport) {
68157
+ return o("div", {
68158
+ class: singleDocumentContainerClassName,
68159
+ style: {
68160
+ maxHeight
68161
+ },
68162
+ "aria-describedby": hasError ? errorMessageId : undefined,
68163
+ children: [o("img", {
68164
+ src: fullUrl,
68165
+ alt: metadata.fileName,
68166
+ class: `fjs-${type$k}-image`
68167
+ }), o(DownloadButton, {
68168
+ endpoint: fullUrl,
68169
+ fileName: metadata.fileName,
68170
+ onDownloadError: () => {
68171
+ setHasError(true);
68172
+ }
68173
+ }), hasError ? o(Errors, {
68174
+ id: errorMessageId,
68175
+ errors: [errorMessage]
68176
+ }) : null]
68177
+ });
68178
+ }
68179
+ if (isContentTypePresent && metadata.contentType.toLowerCase() === 'application/pdf' && isInViewport) {
68180
+ return o("div", {
68181
+ class: singleDocumentContainerClassName,
68182
+ style: {
68183
+ maxHeight
68184
+ },
68185
+ "aria-describedby": hasError ? errorMessageId : undefined,
68186
+ children: [o("embed", {
68187
+ src: fullUrl,
68188
+ type: "application/pdf",
68189
+ class: `fjs-${type$k}-pdf-viewer`
68190
+ }), hasError ? o(Errors, {
68191
+ id: errorMessageId,
68192
+ errors: [errorMessage]
68193
+ }) : null]
68194
+ });
68195
+ }
68196
+ return o("div", {
68197
+ class: classNames(`fjs-${type$k}-non-preview-item`, `fjs-${type$k}-single-document-container`),
68198
+ ref: ref,
68199
+ "aria-describedby": hasError ? errorMessageId : undefined,
68200
+ children: [o("div", {
68201
+ children: [o("div", {
68202
+ class: "fjs-document-preview-title",
68203
+ children: metadata.fileName
68204
+ }), hasError ? o(Errors, {
68205
+ id: errorMessageId,
68206
+ errors: [errorMessage]
68207
+ }) : null]
68208
+ }), o(DownloadButton, {
68209
+ endpoint: fullUrl,
68210
+ fileName: metadata.fileName,
68211
+ onDownloadError: () => {
68212
+ setHasError(true);
68213
+ }
68214
+ })]
68215
+ });
68216
+ }
68217
+
68218
+ /**
68219
+ * @param {Object} props
68220
+ * @param {string} props.endpoint
68221
+ * @param {string} props.fileName
68222
+ * @param {Function} props.onDownloadError
68223
+ *
68224
+ * @returns {import("preact").JSX.Element}
68225
+ */
68226
+ function DownloadButton(props) {
68227
+ const {
68228
+ endpoint,
68229
+ fileName,
68230
+ onDownloadError
68231
+ } = props;
68232
+ const handleDownload = async () => {
68233
+ try {
68234
+ const response = await fetch(endpoint);
68235
+ if (!response.ok) {
68236
+ onDownloadError();
68237
+ return;
68238
+ }
68239
+ const blob = await response.blob();
68240
+ const url = window.URL.createObjectURL(blob);
68241
+ const link = document.createElement('a');
68242
+ link.href = url;
68243
+ link.download = fileName;
68244
+ link.click();
68245
+ window.URL.revokeObjectURL(url);
68246
+ } catch {
68247
+ onDownloadError();
68248
+ }
68249
+ };
68250
+ return o("button", {
68251
+ type: "button",
68252
+ onClick: handleDownload,
68253
+ class: classNames(`fjs-${type$k}-download-button`),
68254
+ "aria-label": `Download ${fileName}`,
68255
+ children: o(SvgDownload, {})
68256
+ });
68257
+ }
68258
+
68259
+ /**
68260
+ *
68261
+ * @param {import("preact").RefObject<HTMLElement>} ref
68262
+ * @returns boolean
68263
+ */
68264
+ function useInViewport(ref) {
68265
+ const [isInViewport, setIsInViewport] = h(false);
68266
+ p(() => {
68267
+ const observer = new IntersectionObserver(([entry]) => {
68268
+ if (entry.isIntersecting) {
68269
+ setIsInViewport(true);
68270
+ }
68271
+ }, {
68272
+ threshold: 0
68273
+ });
68274
+ if (ref.current) {
68275
+ observer.observe(ref.current);
68276
+ }
68277
+ return () => {
68278
+ if (ref.current) {
68279
+ observer.unobserve(ref.current);
68280
+ }
68281
+ };
68282
+ }, [ref]);
68283
+ return isInViewport;
68284
+ }
67929
68285
 
67930
68286
  /**
67931
68287
  * This file must not be changed or exchanged.
@@ -68063,7 +68419,7 @@
68063
68419
  const formFields = [/* Input */
68064
68420
  Textfield$1, Textarea, Numberfield, Datetime, ExpressionField, FilePicker, /* Selection */
68065
68421
  Checkbox$1, Checklist, Radio, Select$1, Taglist, /* Presentation */
68066
- Text$1, Image$1, Table, Html, Spacer, Separator, /* Containers */
68422
+ Text$1, Image$1, Table, Html, DocumentPreview, Spacer, Separator, /* Containers */
68067
68423
  Group$1, DynamicList, IFrame, /* Other */
68068
68424
  Button, Default];
68069
68425
  class FormFields {
@@ -68080,8 +68436,8 @@
68080
68436
  return this._formFields[type];
68081
68437
  }
68082
68438
  }
68083
- 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'];
68084
- const TEMPLATE_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'description', 'label', 'source', 'text', 'content', 'url'];
68439
+ 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'];
68440
+ const TEMPLATE_PROPERTIES = ['alt', 'appearance.prefixAdorner', 'appearance.suffixAdorner', 'description', 'label', 'source', 'text', 'content', 'url', 'title'];
68085
68441
 
68086
68442
  /**
68087
68443
  * @typedef { import('../types').Schema } Schema
@@ -69100,23 +69456,23 @@
69100
69456
  d: "M12 7.5H8.5V4h-1v3.5H4v1h3.5V12h1V8.5H12z"
69101
69457
  })));
69102
69458
  };
69103
- var _path$y;
69104
- function _extends$z() {
69105
- return _extends$z = Object.assign ? Object.assign.bind() : function (n) {
69459
+ var _path$A;
69460
+ function _extends$B() {
69461
+ return _extends$B = Object.assign ? Object.assign.bind() : function (n) {
69106
69462
  for (var e = 1; e < arguments.length; e++) {
69107
69463
  var t = arguments[e];
69108
69464
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
69109
69465
  }
69110
69466
  return n;
69111
- }, _extends$z.apply(null, arguments);
69467
+ }, _extends$B.apply(null, arguments);
69112
69468
  }
69113
69469
  var SvgDelete$1 = function SvgDelete(props) {
69114
- return /*#__PURE__*/y$1("svg", _extends$z({
69470
+ return /*#__PURE__*/y$1("svg", _extends$B({
69115
69471
  xmlns: "http://www.w3.org/2000/svg",
69116
69472
  width: 16,
69117
69473
  height: 16,
69118
69474
  fill: "none"
69119
- }, props), _path$y || (_path$y = /*#__PURE__*/y$1("path", {
69475
+ }, props), _path$A || (_path$A = /*#__PURE__*/y$1("path", {
69120
69476
  fill: "currentColor",
69121
69477
  d: "m12 4.7-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z"
69122
69478
  })));
@@ -71481,7 +71837,7 @@
71481
71837
  return get$1(workingData, path, {});
71482
71838
  }
71483
71839
  }
71484
- const schemaVersion = 17;
71840
+ const schemaVersion = 18;
71485
71841
 
71486
71842
  function _e(t) {
71487
71843
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -76676,7 +77032,36 @@
76676
77032
  ...ExpressionField.config,
76677
77033
  escapeGridRender: false
76678
77034
  };
76679
- const editorFormFields = [EditorIFrame, EditorText, EditorHtml, EditorTable, EditorExpressionField];
77035
+ function EditorDocumentPreview(props) {
77036
+ const {
77037
+ field,
77038
+ domId
77039
+ } = props;
77040
+ const {
77041
+ label
77042
+ } = field;
77043
+ const Icon = iconsByType(field.type);
77044
+ return o("div", {
77045
+ class: editorFormFieldClasses(field.type),
77046
+ children: [o(Label$3, {
77047
+ id: domId,
77048
+ label: label
77049
+ }), o("div", {
77050
+ class: "fjs-documentPreview-placeholder",
77051
+ id: domId,
77052
+ children: o("p", {
77053
+ class: "fjs-documentPreview-placeholder-text",
77054
+ children: [o(Icon, {
77055
+ width: "32",
77056
+ height: "24",
77057
+ viewBox: "0 0 56 56"
77058
+ }), "Document preview"]
77059
+ })
77060
+ })]
77061
+ });
77062
+ }
77063
+ EditorDocumentPreview.config = DocumentPreview.config;
77064
+ const editorFormFields = [EditorIFrame, EditorText, EditorHtml, EditorTable, EditorExpressionField, EditorDocumentPreview];
76680
77065
  class EditorFormFields extends FormFields {
76681
77066
  constructor() {
76682
77067
  super();
@@ -84913,7 +85298,7 @@
84913
85298
  const prohibitedSegments = ['__proto__', 'prototype', 'constructor'];
84914
85299
  return path.split('.').some(segment => prohibitedSegments.includes(segment));
84915
85300
  }
84916
- const LABELED_NON_INPUTS = ['button', 'group', 'dynamiclist', 'iframe', 'table'];
85301
+ const LABELED_NON_INPUTS = ['button', 'group', 'dynamiclist', 'iframe', 'table', 'documentPreview'];
84917
85302
  const INPUTS = ['checkbox', 'checklist', 'datetime', 'number', 'radio', 'select', 'taglist', 'textfield', 'textarea', 'filepicker'];
84918
85303
  const OPTIONS_INPUTS = ['checklist', 'radio', 'select', 'taglist'];
84919
85304
  function hasEntryConfigured(formFieldDefinition, entryId) {
@@ -85749,7 +86134,7 @@
85749
86134
  return field.type === 'datetime' && (field.subtype === DATETIME_SUBTYPES.TIME || field.subtype === DATETIME_SUBTYPES.DATETIME);
85750
86135
  }
85751
86136
  });
85752
- const isSimplyLabled = field => {
86137
+ const isSimplyLabeled = field => {
85753
86138
  return [...INPUTS.filter(input => input !== 'datetime'), ...LABELED_NON_INPUTS].includes(field.type);
85754
86139
  };
85755
86140
  entries.push({
@@ -85758,7 +86143,7 @@
85758
86143
  editField,
85759
86144
  field,
85760
86145
  isEdited: isEdited$6,
85761
- isDefaultVisible: isSimplyLabled
86146
+ isDefaultVisible: isSimplyLabeled
85762
86147
  });
85763
86148
  return entries;
85764
86149
  }
@@ -85862,6 +86247,7 @@
85862
86247
  case 'table':
85863
86248
  return 'Table label';
85864
86249
  case 'iframe':
86250
+ case 'documentPreview':
85865
86251
  return 'Title';
85866
86252
  default:
85867
86253
  return 'Field label';
@@ -85917,7 +86303,7 @@
85917
86303
  id,
85918
86304
  getValue,
85919
86305
  setValue,
85920
- validate: validate$7
86306
+ validate: validate$a
85921
86307
  });
85922
86308
  }
85923
86309
 
@@ -85927,7 +86313,7 @@
85927
86313
  * @param {number|void} value
85928
86314
  * @returns {string|null}
85929
86315
  */
85930
- const validate$7 = value => {
86316
+ const validate$a = value => {
85931
86317
  if (typeof value !== 'number') {
85932
86318
  return 'A number is required.';
85933
86319
  }
@@ -85990,7 +86376,7 @@
85990
86376
  setValue,
85991
86377
  singleLine: true,
85992
86378
  tooltip: getTooltip$1(),
85993
- validate: validate$6,
86379
+ validate: validate$9,
85994
86380
  variables
85995
86381
  });
85996
86382
  }
@@ -86017,7 +86403,7 @@
86017
86403
  * @param {string|void} value
86018
86404
  * @returns {string|null}
86019
86405
  */
86020
- const validate$6 = value => {
86406
+ const validate$9 = value => {
86021
86407
  if (!value || value.startsWith('=')) {
86022
86408
  return;
86023
86409
  }
@@ -86106,7 +86492,7 @@
86106
86492
  };
86107
86493
  return FeelTemplatingEntry({
86108
86494
  debounce,
86109
- description: description$2,
86495
+ description: description$4,
86110
86496
  element: field,
86111
86497
  getValue,
86112
86498
  id,
@@ -86116,7 +86502,7 @@
86116
86502
  variables
86117
86503
  });
86118
86504
  }
86119
- const description$2 = o(k$2, {
86505
+ const description$4 = o(k$2, {
86120
86506
  children: ["Supports markdown and templating.", ' ', o("a", {
86121
86507
  href: "https://docs.camunda.io/docs/components/modeler/forms/form-element-library/forms-element-library-text/",
86122
86508
  target: "_blank",
@@ -86157,13 +86543,13 @@
86157
86543
  };
86158
86544
  return FeelTemplatingEntry({
86159
86545
  debounce,
86160
- description: description$1,
86546
+ description: description$3,
86161
86547
  element: field,
86162
86548
  getValue,
86163
86549
  id,
86164
86550
  label: 'Content',
86165
86551
  hostLanguage: 'html',
86166
- validate: validate$5,
86552
+ validate: validate$8,
86167
86553
  setValue,
86168
86554
  variables
86169
86555
  });
@@ -86171,7 +86557,7 @@
86171
86557
 
86172
86558
  // helpers //////////
86173
86559
 
86174
- const description$1 = o(k$2, {
86560
+ const description$3 = o(k$2, {
86175
86561
  children: ["Supports HTML, styling, and templating. Styles are automatically scoped to the HTML component.", ' ', o("a", {
86176
86562
  href: "https://docs.camunda.io/docs/components/modeler/forms/form-element-library/forms-element-library-html/",
86177
86563
  target: "_blank",
@@ -86183,7 +86569,7 @@
86183
86569
  * @param {string|void} value
86184
86570
  * @returns {string|null}
86185
86571
  */
86186
- const validate$5 = value => {
86572
+ const validate$8 = value => {
86187
86573
  // allow empty state
86188
86574
  if (typeof value !== 'string' || value === '') {
86189
86575
  return null;
@@ -87010,7 +87396,7 @@
87010
87396
  id,
87011
87397
  label: 'Input values key',
87012
87398
  setValue,
87013
- validate: validate$4
87399
+ validate: validate$7
87014
87400
  });
87015
87401
  }
87016
87402
 
@@ -87020,7 +87406,7 @@
87020
87406
  * @param {string|void} value
87021
87407
  * @returns {string|null}
87022
87408
  */
87023
- const validate$4 = value => {
87409
+ const validate$7 = value => {
87024
87410
  if (typeof value !== 'string' || value.length === 0) {
87025
87411
  return 'Must not be empty.';
87026
87412
  }
@@ -87455,7 +87841,7 @@
87455
87841
  setValue,
87456
87842
  singleLine: true,
87457
87843
  variables,
87458
- validate: validate$3
87844
+ validate: validate$6
87459
87845
  });
87460
87846
  }
87461
87847
 
@@ -87465,7 +87851,7 @@
87465
87851
  * @param {string|void} value
87466
87852
  * @returns {string|null}
87467
87853
  */
87468
- const validate$3 = value => {
87854
+ const validate$6 = value => {
87469
87855
  if (!isString$2(value) || value.length === 0) {
87470
87856
  return 'Must not be empty.';
87471
87857
  }
@@ -87567,7 +87953,7 @@
87567
87953
  id,
87568
87954
  getValue,
87569
87955
  setValue,
87570
- validate: validate$2
87956
+ validate: validate$5
87571
87957
  });
87572
87958
  }
87573
87959
 
@@ -87577,7 +87963,7 @@
87577
87963
  * @param {string|void} value
87578
87964
  * @returns {string|null}
87579
87965
  */
87580
- const validate$2 = value => {
87966
+ const validate$5 = value => {
87581
87967
  if (isNil(value)) {
87582
87968
  return null;
87583
87969
  }
@@ -87749,7 +88135,7 @@
87749
88135
  setValue,
87750
88136
  singleLine: true,
87751
88137
  variables,
87752
- validate: validate$1
88138
+ validate: validate$4
87753
88139
  });
87754
88140
  }
87755
88141
 
@@ -87759,7 +88145,7 @@
87759
88145
  * @param {string|void} value
87760
88146
  * @returns {string|null}
87761
88147
  */
87762
- const validate$1 = value => {
88148
+ const validate$4 = value => {
87763
88149
  if (!isString$2(value) || value.length === 0 || value === '=') {
87764
88150
  return 'Must not be empty.';
87765
88151
  }
@@ -87856,7 +88242,7 @@
87856
88242
  id,
87857
88243
  label: 'Key',
87858
88244
  setValue,
87859
- validate
88245
+ validate: validate$3
87860
88246
  });
87861
88247
  }
87862
88248
 
@@ -87866,7 +88252,7 @@
87866
88252
  * @param {string|void} value
87867
88253
  * @returns {string|null}
87868
88254
  */
87869
- function validate(value) {
88255
+ function validate$3(value) {
87870
88256
  if (!isString$2(value) || value.length === 0) {
87871
88257
  return 'Must not be empty.';
87872
88258
  }
@@ -88001,13 +88387,13 @@
88001
88387
  singleLine: true,
88002
88388
  setValue,
88003
88389
  variables,
88004
- description
88390
+ description: description$2
88005
88391
  });
88006
88392
  }
88007
88393
 
88008
88394
  // helpers //////////
88009
88395
 
88010
- const description = o(k$2, {
88396
+ const description$2 = o(k$2, {
88011
88397
  children: ["A comma-separated list of", ' ', o("a", {
88012
88398
  href: "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers",
88013
88399
  target: "_blank",
@@ -88059,6 +88445,233 @@
88059
88445
  variables
88060
88446
  });
88061
88447
  }
88448
+ function DocumentsDataSourceEntry(props) {
88449
+ const {
88450
+ editField,
88451
+ field
88452
+ } = props;
88453
+ const entries = [];
88454
+ entries.push({
88455
+ id: 'dataSource',
88456
+ component: DocumentsDataSource,
88457
+ editField: editField,
88458
+ field: field,
88459
+ isEdited: isEdited$6,
88460
+ isDefaultVisible: field => field.type === 'documentPreview'
88461
+ });
88462
+ return entries;
88463
+ }
88464
+ function DocumentsDataSource(props) {
88465
+ const {
88466
+ editField,
88467
+ field,
88468
+ id
88469
+ } = props;
88470
+ const debounce = useService('debounce');
88471
+ const variables = useVariables().map(name => ({
88472
+ name
88473
+ }));
88474
+ const path = ['dataSource'];
88475
+ const getValue = () => {
88476
+ return get$1(field, path, '');
88477
+ };
88478
+ const setValue = value => {
88479
+ return editField(field, path, value);
88480
+ };
88481
+ const schema = `[
88482
+ {
88483
+ "documentId": "u123",
88484
+ "metadata": {
88485
+ "fileName": "Document.pdf",
88486
+ "contentType": "application/pdf"
88487
+ }
88488
+ }
88489
+ ]`;
88490
+ const tooltip = o("div", {
88491
+ children: [o("p", {
88492
+ children: "A source is a JSON object containing metadata for a document or an array of documents."
88493
+ }), o("p", {
88494
+ children: "Each entry must include a document ID, name, and MIME type."
88495
+ }), o("p", {
88496
+ children: "Additional details are optional. The expected format is as follows:"
88497
+ }), o("pre", {
88498
+ children: o("code", {
88499
+ children: schema
88500
+ })
88501
+ })]
88502
+ });
88503
+ return FeelTemplatingEntry({
88504
+ debounce,
88505
+ element: field,
88506
+ getValue,
88507
+ id,
88508
+ label: 'Document reference',
88509
+ feel: 'required',
88510
+ singleLine: true,
88511
+ setValue,
88512
+ variables,
88513
+ tooltip,
88514
+ validate: validate$2
88515
+ });
88516
+ }
88517
+
88518
+ // helpers //////////
88519
+
88520
+ /**
88521
+ * @param {string|undefined} value
88522
+ * @returns {string|null}
88523
+ */
88524
+ const validate$2 = value => {
88525
+ if (typeof value !== 'string' || value.length === 0) {
88526
+ return 'The document data source is required.';
88527
+ }
88528
+ };
88529
+ function EndpointKeyEntry(props) {
88530
+ const {
88531
+ editField,
88532
+ field
88533
+ } = props;
88534
+ const entries = [];
88535
+ entries.push({
88536
+ id: 'endpointKey',
88537
+ component: EndpointKey,
88538
+ editField: editField,
88539
+ field: field,
88540
+ isEdited: isEdited$6,
88541
+ isDefaultVisible: field => field.type === 'documentPreview'
88542
+ });
88543
+ return entries;
88544
+ }
88545
+ function EndpointKey(props) {
88546
+ const {
88547
+ editField,
88548
+ field,
88549
+ id
88550
+ } = props;
88551
+ const debounce = useService('debounce');
88552
+ const variables = useVariables().map(name => ({
88553
+ name
88554
+ }));
88555
+ const path = ['endpointKey'];
88556
+ const getValue = () => {
88557
+ return get$1(field, path, '');
88558
+ };
88559
+ const setValue = value => {
88560
+ return editField(field, path, value);
88561
+ };
88562
+ const tooltip = o("div", {
88563
+ children: [o("p", {
88564
+ children: "Enter a context key that generates a string with the API endpoint to download a document."
88565
+ }), o("p", {
88566
+ children: ["The string must contain ", o("code", {
88567
+ children: '{ documentId }'
88568
+ }), ", which will be replaced with the document ID from the document's reference."]
88569
+ }), o("p", {
88570
+ children: "If you're using the Camunda Tasklist, this variable is automatically added to the context for you."
88571
+ }), o("p", {
88572
+ children: ["For more details, see the", ' ', o("a", {
88573
+ href: "https://docs.camunda.io/docs/next/components/modeler/forms/form-element-library/forms-element-library-document-preview/",
88574
+ rel: "noopener noreferrer",
88575
+ target: "_blank",
88576
+ children: "Camunda documentation"
88577
+ })]
88578
+ })]
88579
+ });
88580
+ return FeelTemplatingEntry({
88581
+ debounce,
88582
+ element: field,
88583
+ getValue,
88584
+ id,
88585
+ label: 'Document URL',
88586
+ feel: 'required',
88587
+ singleLine: true,
88588
+ setValue,
88589
+ variables,
88590
+ description: description$1,
88591
+ tooltip,
88592
+ validate: validate$1
88593
+ });
88594
+ }
88595
+
88596
+ // helpers //////////
88597
+
88598
+ /**
88599
+ * @param {string|undefined} value
88600
+ * @returns {string|null}
88601
+ */
88602
+ const validate$1 = value => {
88603
+ if (typeof value !== 'string' || value.length === 0) {
88604
+ return 'The document reference is required.';
88605
+ }
88606
+ };
88607
+ const description$1 = o(k$2, {
88608
+ children: "Define an API URL for downloading a document"
88609
+ });
88610
+ function MaxHeightEntry(props) {
88611
+ const {
88612
+ editField,
88613
+ field
88614
+ } = props;
88615
+ const entries = [];
88616
+ entries.push({
88617
+ id: 'maxHeight',
88618
+ component: MaxHeight,
88619
+ editField: editField,
88620
+ field: field,
88621
+ isEdited: isEdited$7,
88622
+ isDefaultVisible: field => field.type === 'documentPreview'
88623
+ });
88624
+ return entries;
88625
+ }
88626
+ function MaxHeight(props) {
88627
+ const {
88628
+ editField,
88629
+ field,
88630
+ id
88631
+ } = props;
88632
+ const debounce = useService('debounce');
88633
+ const path = ['maxHeight'];
88634
+ const getValue = () => {
88635
+ return get$1(field, path, '');
88636
+ };
88637
+ const setValue = value => {
88638
+ return editField(field, path, value);
88639
+ };
88640
+ return NumberFieldEntry({
88641
+ debounce,
88642
+ label: 'Max height of preview container',
88643
+ element: field,
88644
+ id,
88645
+ getValue,
88646
+ setValue,
88647
+ validate,
88648
+ description
88649
+ });
88650
+ }
88651
+
88652
+ // helpers //////////
88653
+
88654
+ /**
88655
+ * @param {string|number|undefined} value
88656
+ * @returns {string|null}
88657
+ */
88658
+ const validate = value => {
88659
+ if (value === undefined || value === '') {
88660
+ return null;
88661
+ }
88662
+ if (typeof value === 'string') {
88663
+ return 'Value must be a number.';
88664
+ }
88665
+ if (!Number.isInteger(value)) {
88666
+ return 'Should be an integer.';
88667
+ }
88668
+ if (value < 1) {
88669
+ return 'Should be greater than zero.';
88670
+ }
88671
+ };
88672
+ const description = o(k$2, {
88673
+ children: "Documents with height that exceeds the defined value will be vertically scrollable"
88674
+ });
88062
88675
  function GeneralGroup(field, editField, getService) {
88063
88676
  const entries = [...IdEntry({
88064
88677
  field,
@@ -88146,6 +88759,9 @@
88146
88759
  }), ...RowCountEntry({
88147
88760
  field,
88148
88761
  editField
88762
+ }), ...DocumentsDataSourceEntry({
88763
+ field,
88764
+ editField
88149
88765
  })];
88150
88766
  if (entries.length === 0) {
88151
88767
  return null;
@@ -88597,6 +89213,9 @@
88597
89213
  }), ...LayouterAppearanceEntry({
88598
89214
  field,
88599
89215
  editField
89216
+ }), ...MaxHeightEntry({
89217
+ field,
89218
+ editField
88600
89219
  })];
88601
89220
  if (!entries.length) {
88602
89221
  return null;
@@ -88760,6 +89379,20 @@
88760
89379
 
88761
89380
  "Expression" defines options that are populated from a FEEL expression.
88762
89381
  `;
89382
+ function DownloadSettings(field, editField) {
89383
+ const entries = [...EndpointKeyEntry({
89384
+ field,
89385
+ editField
89386
+ })];
89387
+ if (!entries.length) {
89388
+ return null;
89389
+ }
89390
+ return {
89391
+ id: 'downloadSettings',
89392
+ label: 'Download settings',
89393
+ entries
89394
+ };
89395
+ }
88763
89396
  class PropertiesProvider {
88764
89397
  constructor(propertiesPanel, injector) {
88765
89398
  this._injector = injector;
@@ -88795,7 +89428,7 @@
88795
89428
  return groups;
88796
89429
  }
88797
89430
  const getService = (type, strict = true) => this._injector.get(type, strict);
88798
- groups = [...groups, GeneralGroup(field, editField, getService), ...OptionsGroups(field, editField, getService), ...TableHeaderGroups(field, editField), SecurityAttributesGroup(field, editField), ConditionGroup(field, editField), LayoutGroup(field, editField), AppearanceGroup(field, editField), SerializationGroup(field, editField), ConstraintsGroup(field, editField), ValidationGroup(field, editField), CustomPropertiesGroup(field, editField)].filter(group => group != null);
89431
+ groups = [...groups, GeneralGroup(field, editField, getService), DownloadSettings(field, editField), ...OptionsGroups(field, editField, getService), ...TableHeaderGroups(field, editField), SecurityAttributesGroup(field, editField), ConditionGroup(field, editField), LayoutGroup(field, editField), AppearanceGroup(field, editField), SerializationGroup(field, editField), ConstraintsGroup(field, editField), ValidationGroup(field, editField), CustomPropertiesGroup(field, editField)].filter(group => group != null);
88799
89432
  this._filterVisibleEntries(groups, field, getService);
88800
89433
 
88801
89434
  // contract: if a group has no entries or items, it should not be displayed at all