@bigbinary/neeto-approvals-frontend 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +13 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4381,17 +4381,20 @@ var Form$2 = function Form(_ref) {
|
|
|
4381
4381
|
}, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4382
4382
|
className: "w-full space-y-6"
|
|
4383
4383
|
}, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
4384
|
+
required: true,
|
|
4384
4385
|
className: "w-full",
|
|
4385
4386
|
label: t("inputs.labels.firstName"),
|
|
4386
4387
|
name: "firstName",
|
|
4387
4388
|
placeholder: t("inputs.placeholders.firstName"),
|
|
4388
4389
|
ref: inputReference
|
|
4389
4390
|
}), /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
4391
|
+
required: true,
|
|
4390
4392
|
className: "w-full",
|
|
4391
4393
|
label: t("inputs.labels.lastName"),
|
|
4392
4394
|
name: "lastName",
|
|
4393
4395
|
placeholder: t("inputs.placeholders.lastName")
|
|
4394
4396
|
}), /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
4397
|
+
required: true,
|
|
4395
4398
|
className: "w-full",
|
|
4396
4399
|
label: t("common.email"),
|
|
4397
4400
|
name: "email",
|
|
@@ -5284,10 +5287,14 @@ function _toConsumableArray(arr) {
|
|
|
5284
5287
|
|
|
5285
5288
|
var _t;
|
|
5286
5289
|
var VALID_VARIABLE_NAME_REGEX = /^[a-z](?:\w*[a-z0-9])*$/i;
|
|
5290
|
+
var EVERYONE_VISIBILITY = {
|
|
5291
|
+
label: t$2("select.visibility.everyone"),
|
|
5292
|
+
value: "everyone"
|
|
5293
|
+
};
|
|
5287
5294
|
var TEMPLATE_FORM_INITIAL_VALUES = {
|
|
5288
5295
|
name: "",
|
|
5289
5296
|
description: "",
|
|
5290
|
-
visibility:
|
|
5297
|
+
visibility: EVERYONE_VISIBILITY,
|
|
5291
5298
|
approver: "",
|
|
5292
5299
|
variables: [],
|
|
5293
5300
|
message: ""
|
|
@@ -5308,10 +5315,6 @@ var TEMPLATE_FORM_VALIDATION_SCHEMA = yup__namespace.object().shape({
|
|
|
5308
5315
|
})).matches(VALID_VARIABLE_NAME_REGEX, t$2("validations.variableName"))
|
|
5309
5316
|
}))
|
|
5310
5317
|
});
|
|
5311
|
-
var EVERYONE_VISIBILITY = {
|
|
5312
|
-
label: t$2("select.visibility.everyone"),
|
|
5313
|
-
value: "everyone"
|
|
5314
|
-
};
|
|
5315
5318
|
|
|
5316
5319
|
var DynamicBlock = function DynamicBlock() {
|
|
5317
5320
|
var _useTranslation = useTranslation(),
|
|
@@ -5344,6 +5347,7 @@ var DynamicBlock = function DynamicBlock() {
|
|
|
5344
5347
|
key: index
|
|
5345
5348
|
}, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
5346
5349
|
autoFocus: true,
|
|
5350
|
+
required: true,
|
|
5347
5351
|
label: t("common.variable_", {
|
|
5348
5352
|
number: index + 1
|
|
5349
5353
|
}),
|
|
@@ -5368,6 +5372,7 @@ var DynamicBlock = function DynamicBlock() {
|
|
|
5368
5372
|
}
|
|
5369
5373
|
}));
|
|
5370
5374
|
})), /*#__PURE__*/React__default["default"].createElement(neetoEditor.FormikEditor, {
|
|
5375
|
+
required: true,
|
|
5371
5376
|
key: variables,
|
|
5372
5377
|
label: t("inputs.labels.message"),
|
|
5373
5378
|
name: "message",
|
|
@@ -5424,6 +5429,7 @@ var Form$1 = function Form(_ref) {
|
|
|
5424
5429
|
className: "flex w-full flex-col space-y-6"
|
|
5425
5430
|
}, /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
5426
5431
|
autoFocus: true,
|
|
5432
|
+
required: true,
|
|
5427
5433
|
className: "w-1/2",
|
|
5428
5434
|
label: t("common.name"),
|
|
5429
5435
|
name: "name",
|
|
@@ -5436,6 +5442,7 @@ var Form$1 = function Form(_ref) {
|
|
|
5436
5442
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5437
5443
|
className: "flex space-x-6"
|
|
5438
5444
|
}, /*#__PURE__*/React__default["default"].createElement(formik.Select, {
|
|
5445
|
+
required: true,
|
|
5439
5446
|
label: t("inputs.labels.approver"),
|
|
5440
5447
|
name: "approver",
|
|
5441
5448
|
options: approvers.map(function (approver) {
|
|
@@ -6101,6 +6108,7 @@ var Form = function Form(_ref) {
|
|
|
6101
6108
|
}, function () {
|
|
6102
6109
|
return variables.map(function (variable, index) {
|
|
6103
6110
|
return /*#__PURE__*/React__default["default"].createElement(formik.Input, {
|
|
6111
|
+
required: true,
|
|
6104
6112
|
className: "w-full",
|
|
6105
6113
|
key: variable,
|
|
6106
6114
|
label: variable,
|