@processmaker/screen-builder 3.2.0 → 3.2.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.
@@ -47413,7 +47413,6 @@ const eS = e$.exports, wg = [
47413
47413
  fields: [],
47414
47414
  sourceOptions: "Variable",
47415
47415
  submitCollectionCheck: !0,
47416
- sourceDisplayOptions: [],
47417
47416
  collectionFields: [],
47418
47417
  collectionFieldsColumns: [],
47419
47418
  variableStore: null,
@@ -47452,25 +47451,6 @@ const eS = e$.exports, wg = [
47452
47451
  singleField: null
47453
47452
  };
47454
47453
  },
47455
- methods: {
47456
- displayOptionChange() {
47457
- this.collectionFields = [], this.collectionFieldsColumns = [], this.pmql = null, this.$root.$emit("collection-changed", !0);
47458
- },
47459
- collectionChanged(t) {
47460
- if (Array.isArray(t)) {
47461
- const [e] = t;
47462
- (e == null ? void 0 : e.collection_id) !== this.collectionFields.collectionId && this.$root.$emit("collection-changed", !0);
47463
- }
47464
- },
47465
- getCollectionColumns(t) {
47466
- const [e] = (t == null ? void 0 : t.dataRecordList) || [];
47467
- if (e != null && e.data) {
47468
- const r = e.data;
47469
- for (const [i, a] of Object.entries(r))
47470
- this.singleFieldOptions.push({ text: i, value: i });
47471
- }
47472
- }
47473
- },
47474
47454
  computed: {
47475
47455
  options() {
47476
47456
  return Object.fromEntries(
@@ -47513,19 +47493,41 @@ const eS = e$.exports, wg = [
47513
47493
  dataSelectionOptions() {
47514
47494
  this.singleField = null;
47515
47495
  }
47496
+ },
47497
+ mounted() {
47498
+ this.$root.$emit("record-list-option", this.sourceOptions);
47499
+ },
47500
+ methods: {
47501
+ displayOptionChange() {
47502
+ this.collectionFields = [], this.collectionFieldsColumns = [], this.pmql = null, this.$root.$emit("collection-changed", !0);
47503
+ },
47504
+ collectionChanged(t) {
47505
+ if (Array.isArray(t)) {
47506
+ const [e] = t;
47507
+ (e == null ? void 0 : e.collection_id) !== this.collectionFields.collectionId && this.$root.$emit("collection-changed", !0);
47508
+ }
47509
+ },
47510
+ getCollectionColumns(t) {
47511
+ const [e] = (t == null ? void 0 : t.dataRecordList) || [];
47512
+ if (e != null && e.data) {
47513
+ const r = e.data;
47514
+ for (const [i] of Object.entries(r))
47515
+ this.singleFieldOptions.push({ text: i, value: i });
47516
+ }
47517
+ }
47516
47518
  }
47517
47519
  };
47518
47520
  var r$ = function() {
47519
47521
  var e = this, r = e._self._c;
47520
47522
  return r("div", [r("div", [r("label", { attrs: { for: "collectionsource" } }, [e._v(e._s(e.$t("Source of Record List")))]), r("b-form-select", { attrs: { id: "collectionsource", options: e.sourceDisplayOptions, "data-cy": "inspector-collection-data-source" }, on: { change: e.displayOptionChange }, model: { value: e.sourceOptions, callback: function(i) {
47521
47523
  e.sourceOptions = i;
47522
- }, expression: "sourceOptions" } }), r("small", { staticClass: "mt-3 form-text text-muted" }, [e._v(e._s(e.$t("A record list can display the data of a defined variable or a collection")))])], 1), e.sourceOptions === "Collection" ? r("div", { staticClass: "mt-2" }, [r("CollectionRecordsList", { attrs: { "record-pmql": e.pmql }, on: { change: e.collectionChanged }, model: { value: e.collectionFields, callback: function(i) {
47524
+ }, expression: "sourceOptions" } }), r("small", { staticClass: "mt-3 form-text text-muted" }, [e._v(" " + e._s(e.$t("A record list can display the data of a defined variable or a collection")) + " ")])], 1), e.sourceOptions === "Collection" ? r("div", { staticClass: "mt-2" }, [r("CollectionRecordsList", { attrs: { "record-pmql": e.pmql }, on: { change: e.collectionChanged }, model: { value: e.collectionFields, callback: function(i) {
47523
47525
  e.collectionFields = i;
47524
47526
  }, expression: "collectionFields" } }), r("pmql-input", { staticClass: "mt-3 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) {
47525
47527
  e.pmql = i;
47526
- }, expression: "pmql" } }), r("small", { staticClass: "mt-3 form-text text-muted" }, [e._v(e._s(e.$t("Leave this field empty to show all the records of the collection")))]), r("label", { staticClass: "mt-3", attrs: { id: "data-selection" } }, [e._v(e._s(e.$t("Data Selection")))]), r("b-form-select", { attrs: { id: "data-selection", options: e.dataSelectionDisplayOptions, "data-cy": "inspector-collection-data-selection" }, model: { value: e.dataSelectionOptions, callback: function(i) {
47528
+ }, expression: "pmql" } }), r("small", { staticClass: "mt-3 form-text text-muted" }, [e._v(" " + e._s(e.$t("Leave this field empty to show all the records of the collection")) + " ")]), r("label", { staticClass: "mt-3", attrs: { for: "data-selection" } }, [e._v(e._s(e.$t("Data Selection")))]), r("b-form-select", { attrs: { id: "data-selection", options: e.dataSelectionDisplayOptions, "data-cy": "inspector-collection-data-selection" }, model: { value: e.dataSelectionOptions, callback: function(i) {
47527
47529
  e.dataSelectionOptions = i;
47528
- }, expression: "dataSelectionOptions" } }), r("small", { staticClass: "mt-3 form-text text-muted" }, [e._v(e._s(e.$t("The user can select specific data to be stored into a variable")))]), e.dataSelectionOptions === "single-field" ? r("div", { staticClass: "mt-3" }, [r("label", { attrs: { id: "single-columns" } }, [e._v(e._s(e.$t("Column")))]), r("b-form-select", { attrs: { id: "single-columns", options: e.singleFieldOptions, "data-cy": "inspector-collection-single-field" }, model: { value: e.singleField, callback: function(i) {
47530
+ }, expression: "dataSelectionOptions" } }), r("small", { staticClass: "mt-3 form-text text-muted" }, [e._v(" " + e._s(e.$t("The user can select specific data to be stored into a variable")) + " ")]), e.dataSelectionOptions === "single-field" ? r("div", { staticClass: "mt-3" }, [r("label", { attrs: { for: "single-columns" } }, [e._v(e._s(e.$t("Column")))]), r("b-form-select", { attrs: { id: "single-columns", options: e.singleFieldOptions, "data-cy": "inspector-collection-single-field" }, model: { value: e.singleField, callback: function(i) {
47529
47531
  e.singleField = i;
47530
47532
  }, expression: "singleField" } }, [r("option", { attrs: { disabled: "", value: "" } }, [e._v(e._s(e.$t("Select a column")))])])], 1) : e._e()], 1) : e._e()]);
47531
47533
  }, i$ = [], a$ = /* @__PURE__ */ ee(
@@ -48148,7 +48150,7 @@ var k$ = function() {
48148
48150
  M$,
48149
48151
  !1,
48150
48152
  null,
48151
- "883e127c",
48153
+ "faf2ec78",
48152
48154
  null,
48153
48155
  null
48154
48156
  );