@processmaker/screen-builder 3.0.7 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47278,6 +47278,7 @@ const pl = Z_.exports, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
47278
47278
  "collectionId",
47279
47279
  "labelField",
47280
47280
  "valueField",
47281
+ "ariaLabelField",
47281
47282
  "pmql",
47282
47283
  "unique"
47283
47284
  ], K_ = {
@@ -47285,7 +47286,7 @@ const pl = Z_.exports, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
47285
47286
  MustacheHelper: sn,
47286
47287
  ScreenVariableSelector: Nu
47287
47288
  },
47288
- props: ["value"],
47289
+ props: ["value", "renderAs"],
47289
47290
  data() {
47290
47291
  return {
47291
47292
  collections: [],
@@ -47293,6 +47294,7 @@ const pl = Z_.exports, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
47293
47294
  collectionId: null,
47294
47295
  labelField: null,
47295
47296
  valueField: null,
47297
+ ariaLabelField: null,
47296
47298
  pmql: "",
47297
47299
  unique: !1
47298
47300
  };
@@ -47333,7 +47335,7 @@ const pl = Z_.exports, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
47333
47335
  },
47334
47336
  methods: {
47335
47337
  resetFields() {
47336
- this.labelField = null, this.valueField = null;
47338
+ this.labelField = null, this.valueField = null, this.ariaLabelField = null;
47337
47339
  },
47338
47340
  getCollections() {
47339
47341
  this.$dataProvider.getCollections().then((t) => {
@@ -47374,7 +47376,9 @@ var __ = function() {
47374
47376
  e.labelField = i;
47375
47377
  }, expression: "labelField" } })], 1) : e._e(), e.fields.length > 1 ? r("div", { staticClass: "mt-3" }, [r("label", { attrs: { for: "value" } }, [e._v(e._s(e.$t("Value")))]), r("b-form-select", { attrs: { id: "value", options: e.fields, "data-cy": "inspector-collection-value" }, model: { value: e.valueField, callback: function(i) {
47376
47378
  e.valueField = i;
47377
- }, expression: "valueField" } })], 1) : e._e(), e.fields.length > 1 ? r("div", { staticClass: "mt-3" }, [r("pmql-input", { staticClass: "mb-1", attrs: { "search-type": "collections_w_mustaches", "data-cy": "inspector-collection-pmql", "input-label": "PMQL", condensed: !0, "ai-enabled": !0, placeholder: e.$t("PMQL") }, model: { value: e.pmql, callback: function(i) {
47379
+ }, expression: "valueField" } })], 1) : e._e(), e.fields.length > 1 && e.renderAs === "checkbox" ? r("div", { staticClass: "mt-3" }, [r("label", { attrs: { for: "aria-label" } }, [e._v(e._s(e.$t("Aria Label")))]), r("b-form-select", { attrs: { id: "aria-label", options: e.fields, "data-cy": "inspector-collection-aria-label" }, model: { value: e.ariaLabelField, callback: function(i) {
47380
+ e.ariaLabelField = i;
47381
+ }, expression: "ariaLabelField" } })], 1) : e._e(), e.fields.length > 1 ? r("div", { staticClass: "mt-3" }, [r("pmql-input", { staticClass: "mb-1", attrs: { "search-type": "collections_w_mustaches", "data-cy": "inspector-collection-pmql", "input-label": "PMQL", condensed: !0, "ai-enabled": !0, placeholder: e.$t("PMQL") }, model: { value: e.pmql, callback: function(i) {
47378
47382
  e.pmql = i;
47379
47383
  }, expression: "pmql" } }), r("small", { staticClass: "form-text text-muted" }, [e._v(e._s(e.$t("Advanced data search")))])], 1) : e._e(), e.fields.length > 1 ? r("div", { staticClass: "mt-3" }, [r("form-checkbox", { attrs: { label: e.$t("Ignore duplicates in list"), helper: e.$t(
47380
47384
  "Select to show only distinct list entries if labels are repeated. Only the first value will be used if duplicate labels have different values."
@@ -48786,6 +48790,7 @@ const gee = {
48786
48790
  removeIndex: null,
48787
48791
  optionValue: "",
48788
48792
  optionContent: "",
48793
+ optionAriaLabel: "",
48789
48794
  showRenderAs: !1,
48790
48795
  renderAs: "dropdown",
48791
48796
  allowMultiSelect: !1,
@@ -48882,6 +48887,9 @@ const gee = {
48882
48887
  valueField() {
48883
48888
  return this.value || "content";
48884
48889
  },
48890
+ ariaLabelField() {
48891
+ return this.optionAriaLabel || "ariaLabel";
48892
+ },
48885
48893
  currentItemToDelete() {
48886
48894
  if (this.removeIndex !== null && this.optionsList.length > 0 && this.optionsList[this.removeIndex] !== void 0) {
48887
48895
  let t = this.optionsList[this.removeIndex][this.valueField];
@@ -48911,7 +48919,8 @@ const gee = {
48911
48919
  showJsonEditor: this.showJsonEditor,
48912
48920
  editIndex: this.editIndex,
48913
48921
  removeIndex: this.removeIndex,
48914
- valueTypeReturned: this.valueTypeReturned
48922
+ valueTypeReturned: this.valueTypeReturned,
48923
+ optionAriaLabel: this.optionAriaLabel
48915
48924
  };
48916
48925
  }
48917
48926
  },
@@ -48921,7 +48930,7 @@ const gee = {
48921
48930
  }, 1500);
48922
48931
  },
48923
48932
  mounted() {
48924
- this.dataSource = this.options.dataSource, this.jsonData = this.options.jsonData, this.dataName = this.options.dataName, this.collectionOptions = this.options.collectionOptions, this.selectedDataSource = this.options.selectedDataSource, this.selectedEndPoint = this.options.selectedEndPoint, this.key = this.options.key, this.value = this.options.value, this.pmqlQuery = this.options.pmqlQuery, this.defaultOptionKey = this.options.defaultOptionKey, this.selectedOptions = this.options.selectedOptions, this.optionsList = this.options.optionsList ? this.options.optionsList : [], this.jsonData = JSON.stringify(this.optionsList), this.showRenderAs = this.options.showRenderAs, this.renderAs = this.options.renderAs, this.allowMultiSelect = this.options.allowMultiSelect, this.valueTypeReturned = this.options.valueTypeReturned;
48933
+ this.dataSource = this.options.dataSource, this.jsonData = this.options.jsonData, this.dataName = this.options.dataName, this.collectionOptions = this.options.collectionOptions, this.selectedDataSource = this.options.selectedDataSource, this.selectedEndPoint = this.options.selectedEndPoint, this.key = this.options.key, this.value = this.options.value, this.optionAriaLabel = this.options.optionAriaLabel, this.pmqlQuery = this.options.pmqlQuery, this.defaultOptionKey = this.options.defaultOptionKey, this.selectedOptions = this.options.selectedOptions, this.optionsList = this.options.optionsList ? this.options.optionsList : [], this.jsonData = JSON.stringify(this.optionsList), this.showRenderAs = this.options.showRenderAs, this.renderAs = this.options.renderAs, this.allowMultiSelect = this.options.allowMultiSelect, this.valueTypeReturned = this.options.valueTypeReturned;
48925
48934
  },
48926
48935
  methods: {
48927
48936
  monacoMounted(t) {
@@ -48966,7 +48975,8 @@ const gee = {
48966
48975
  t.forEach((r) => {
48967
48976
  e.optionsList.push({
48968
48977
  [e.keyField]: r[e.keyField],
48969
- [e.valueField]: r[e.valueField]
48978
+ [e.valueField]: r[e.valueField],
48979
+ [e.ariaLabelField]: r[e.ariaLabelField]
48970
48980
  });
48971
48981
  }), this.jsonError = "";
48972
48982
  },
@@ -48986,10 +48996,10 @@ const gee = {
48986
48996
  this.jsonData = JSON.stringify(this.optionsList), this.$emit("change", this.dataObjectOptions);
48987
48997
  },
48988
48998
  showEditOption(t) {
48989
- this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.optionError = "";
48999
+ this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.optionAriaLabel = this.optionsList[t][this.ariaLabelField], this.optionError = "";
48990
49000
  },
48991
49001
  showAddOption() {
48992
- this.optionCardType = "insert", this.optionContent = "", this.optionValue = "", this.showOptionCard = !0, this.optionError = "", this.editIndex = null;
49002
+ this.optionCardType = "insert", this.optionContent = "", this.optionValue = "", this.optionAriaLabel = "", this.showOptionCard = !0, this.optionError = "", this.editIndex = null;
48993
49003
  },
48994
49004
  addOption() {
48995
49005
  const t = this;
@@ -49001,7 +49011,8 @@ const gee = {
49001
49011
  this.optionsList.push(
49002
49012
  {
49003
49013
  [this.valueField]: this.optionContent,
49004
- [this.keyField]: this.optionValue
49014
+ [this.keyField]: this.optionValue,
49015
+ [this.ariaLabelField]: this.optionAriaLabel
49005
49016
  }
49006
49017
  );
49007
49018
  } else {
@@ -49009,7 +49020,7 @@ const gee = {
49009
49020
  this.optionError = "An item with the same key already exists";
49010
49021
  return;
49011
49022
  }
49012
- this.optionsList[this.editIndex][this.keyField] = this.optionValue, this.optionsList[this.editIndex][this.valueField] = this.optionContent;
49023
+ this.optionsList[this.editIndex][this.keyField] = this.optionValue, this.optionsList[this.editIndex][this.valueField] = this.optionContent, this.optionsList[this.editIndex][this.ariaLabelField] = this.optionAriaLabel;
49013
49024
  }
49014
49025
  this.jsonData = JSON.stringify(this.optionsList), this.showOptionCard = !1, this.optionError = "", this.editIndex = null;
49015
49026
  },
@@ -49041,7 +49052,9 @@ var bee = function() {
49041
49052
  e.optionValue = i;
49042
49053
  }, expression: "optionValue" } }), e.optionError ? r("div", { staticClass: "invalid-feedback d-block text-right" }, [r("div", [e._v(e._s(e.optionError))])]) : e._e(), r("label", { staticClass: "mt-3", attrs: { for: "option-content" } }, [e._v(e._s(e.$t("Content")))]), r("b-form-input", { attrs: { id: "option-content", "data-cy": "inspector-option-content" }, model: { value: e.optionContent, callback: function(i) {
49043
49054
  e.optionContent = i;
49044
- }, expression: "optionContent" } })], 1), r("div", { staticClass: "card-footer text-right p-2" }, [r("button", { staticClass: "btn btn-sm btn-outline-secondary mr-2", attrs: { type: "button", "data-cy": "inspector-option-cancel" }, on: { click: function(i) {
49055
+ }, expression: "optionContent" } }), e.renderAs === "checkbox" ? r("label", { staticClass: "mt-3", attrs: { for: "option-aria-label" } }, [e._v(e._s(e.$t("Aria Label")))]) : e._e(), e.renderAs === "checkbox" ? r("b-form-input", { attrs: { id: "option-aria-label", "data-cy": "inspector-option-aria-label" }, model: { value: e.optionAriaLabel, callback: function(i) {
49056
+ e.optionAriaLabel = i;
49057
+ }, expression: "optionAriaLabel" } }) : e._e()], 1), r("div", { staticClass: "card-footer text-right p-2" }, [r("button", { staticClass: "btn btn-sm btn-outline-secondary mr-2", attrs: { type: "button", "data-cy": "inspector-option-cancel" }, on: { click: function(i) {
49045
49058
  e.showOptionCard = !1;
49046
49059
  } } }, [e._v(" " + e._s(e.$t("Cancel")) + " ")]), r("button", { staticClass: "btn btn-sm btn-secondary", attrs: { type: "button", "data-cy": "inspector-option-save" }, on: { click: function(i) {
49047
49060
  return e.addOption();
@@ -49060,7 +49073,9 @@ var bee = function() {
49060
49073
  e.optionValue = n;
49061
49074
  }, expression: "optionValue" } }), e.optionError ? r("div", { staticClass: "invalid-feedback d-block text-right" }, [r("div", [e._v(e._s(e.optionError))])]) : e._e(), r("label", { staticClass: "mt-3", attrs: { for: "option-content" } }, [e._v(e._s(e.$t("Content")))]), r("b-form-input", { attrs: { id: "option-content", "data-cy": "inspector-option-content" }, model: { value: e.optionContent, callback: function(n) {
49062
49075
  e.optionContent = n;
49063
- }, expression: "optionContent" } })], 1), r("div", { staticClass: "card-footer text-right p-2" }, [r("button", { staticClass: "btn btn-sm btn-outline-secondary mr-2", attrs: { type: "button" }, on: { click: function(n) {
49076
+ }, expression: "optionContent" } }), e.renderAs === "checkbox" ? r("label", { staticClass: "mt-3", attrs: { for: "option-aria-label" } }, [e._v(e._s(e.$t("Aria Label")))]) : e._e(), e.renderAs === "checkbox" ? r("b-form-input", { attrs: { id: "option-aria-label", "data-cy": "inspector-option-aria-label" }, model: { value: e.optionAriaLabel, callback: function(n) {
49077
+ e.optionAriaLabel = n;
49078
+ }, expression: "optionAriaLabel" } }) : e._e()], 1), r("div", { staticClass: "card-footer text-right p-2" }, [r("button", { staticClass: "btn btn-sm btn-outline-secondary mr-2", attrs: { type: "button" }, on: { click: function(n) {
49064
49079
  e.editIndex = null;
49065
49080
  } } }, [e._v(" " + e._s(e.$t("Cancel")) + " ")]), r("button", { staticClass: "btn btn-sm btn-secondary", attrs: { type: "button", "data-cy": "inspector-option-save" }, on: { click: function(n) {
49066
49081
  return e.addOption();
@@ -49077,7 +49092,7 @@ var bee = function() {
49077
49092
  e.dataName = i;
49078
49093
  }, expression: "dataName" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Get options from this variable. Must be an array.")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.dataObject ? r("div", [r("label", { attrs: { for: "value" } }, [e._v(e._s(e.$t("Option Label Shown")))]), r("b-form-input", { attrs: { id: "value", placeholder: "Request Variable Property", "data-cy": "inspector-options-label" }, on: { change: e.valueChanged }, model: { value: e.value, callback: function(i) {
49079
49094
  e.value = i;
49080
- }, expression: "value" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Enter the property name from the Request data variable that displays to the user on the screen.")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.collection ? r("div", [r("collection-select-list", { model: { value: e.collectionOptions, callback: function(i) {
49095
+ }, expression: "value" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Enter the property name from the Request data variable that displays to the user on the screen.")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.collection ? r("div", [r("collection-select-list", { attrs: { renderAs: e.renderAs }, model: { value: e.collectionOptions, callback: function(i) {
49081
49096
  e.collectionOptions = i;
49082
49097
  }, expression: "collectionOptions" } })], 1) : e._e(), e.showRenderAs ? r("div", [r("div", { staticClass: "row mb-3" }, [r("div", { staticClass: "col" }, [r("label", { attrs: { for: "render-as" } }, [e._v(e._s(e.$t("Show Control As")))]), r("b-form-select", { attrs: { id: "render-as", options: e.renderAsOptions, "data-cy": "inspector-render-as" }, model: { value: e.renderAs, callback: function(i) {
49083
49098
  e.renderAs = i;
@@ -49102,9 +49117,13 @@ var bee = function() {
49102
49117
  e.key = i;
49103
49118
  }, expression: "key" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Key name in the selected object to use as the value of this control. Leave blank to use the entire selected value.")))])], 1) : e._e(), r("label", { attrs: { for: "value" } }, [e._v(e._s(e.$t("Content")))]), r("mustache-helper"), r("b-form-input", { attrs: { id: "value", "data-cy": "inspector-datasource-content" }, on: { change: e.valueChanged }, model: { value: e.value, callback: function(i) {
49104
49119
  e.value = i;
49105
- }, expression: "value" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Content to display to the user in the select list.")))])], 1) : e._e(), e.valueTypeReturned === "single" && e.dataSource === e.dataSourceValues.dataObject ? r("div", [r("label", { attrs: { for: "key" } }, [e._v(e._s(e.$t("Variable Data Property")))]), r("b-form-input", { attrs: { id: "key", placeholder: "Request Variable Property", "data-cy": "inspector-options-value" }, on: { change: e.keyChanged }, model: { value: e.key, callback: function(i) {
49120
+ }, expression: "value" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Content to display to the user in the select list.")))]), e.renderAs === "checkbox" ? r("label", { attrs: { for: "aria-label" } }, [e._v(e._s(e.$t("Aria Label")))]) : e._e(), e.renderAs === "checkbox" ? r("mustache-helper") : e._e(), e.renderAs === "checkbox" ? r("b-form-input", { attrs: { id: "aria-label", "data-cy": "inspector-datasource-aria-label" }, model: { value: e.optionAriaLabel, callback: function(i) {
49121
+ e.optionAriaLabel = i;
49122
+ }, expression: "optionAriaLabel" } }) : e._e(), e.renderAs === "checkbox" ? r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Aria label for accessibility support.")))]) : e._e()], 1) : e._e(), e.valueTypeReturned === "single" && e.dataSource === e.dataSourceValues.dataObject ? r("div", [r("label", { attrs: { for: "key" } }, [e._v(e._s(e.$t("Variable Data Property")))]), r("b-form-input", { attrs: { id: "key", placeholder: "Request Variable Property", "data-cy": "inspector-options-value" }, on: { change: e.keyChanged }, model: { value: e.key, callback: function(i) {
49106
49123
  e.key = i;
49107
- }, expression: "key" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Enter the property name from the Request data variable that will be passed as the value when selected.")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.dataConnector ? r("div", [r("label", { attrs: { for: "data-sources-list" } }, [e._v(e._s(e.$t("Data Connector")))]), r("b-form-select", { class: e.selectedDataSource ? "" : "is-invalid", attrs: { id: "data-sources-list", options: e.dataSourcesList, "data-cy": "inspector-data-connector" }, model: { value: e.selectedDataSource, callback: function(i) {
49124
+ }, expression: "key" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Enter the property name from the Request data variable that will be passed as the value when selected.")))]), e.renderAs === "checkbox" ? r("label", { attrs: { for: "aria-label" } }, [e._v(e._s(e.$t("Aria Label")))]) : e._e(), e.renderAs === "checkbox" ? r("b-form-input", { attrs: { id: "aria-label", placeholder: "Aria Label Property", "data-cy": "inspector-options-aria-label" }, model: { value: e.optionAriaLabel, callback: function(i) {
49125
+ e.optionAriaLabel = i;
49126
+ }, expression: "optionAriaLabel" } }) : e._e(), e.renderAs === "checkbox" ? r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Enter the property name for the aria label from the Request data variable.")))]) : e._e()], 1) : e._e(), e.dataSource === e.dataSourceValues.dataConnector ? r("div", [r("label", { attrs: { for: "data-sources-list" } }, [e._v(e._s(e.$t("Data Connector")))]), r("b-form-select", { class: e.selectedDataSource ? "" : "is-invalid", attrs: { id: "data-sources-list", options: e.dataSourcesList, "data-cy": "inspector-data-connector" }, model: { value: e.selectedDataSource, callback: function(i) {
49108
49127
  e.selectedDataSource = i;
49109
49128
  }, expression: "selectedDataSource" } }), e.selectedDataSource ? e._e() : r("div", { staticClass: "invalid-feedback" }, [e._v(e._s(e.$t("An Data Connector must be selected")))]), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Data Connector to use")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.dataConnector ? r("div", [r("label", { attrs: { for: "endpoint-list" } }, [e._v(e._s(e.$t("End Point")))]), r("b-form-select", { class: e.selectedDataSource && !e.selectedEndPoint ? "is-invalid" : "", attrs: { id: "endpoint-list", options: e.endPointList, "data-cy": "inspector-endpoint" }, model: { value: e.selectedEndPoint, callback: function(i) {
49110
49129
  e.selectedEndPoint = i;
@@ -49117,7 +49136,7 @@ var bee = function() {
49117
49136
  yee,
49118
49137
  !1,
49119
49138
  null,
49120
- "d8fa58ec",
49139
+ "c8dcdddb",
49121
49140
  null,
49122
49141
  null
49123
49142
  );