layers-design-system 2.7.1 → 2.7.2

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.
@@ -39946,7 +39946,7 @@ var nJ = /* @__PURE__ */ Ge(
39946
39946
  tJ,
39947
39947
  !1,
39948
39948
  null,
39949
- "ec2e3097",
39949
+ "d79b218b",
39950
39950
  null,
39951
39951
  null
39952
39952
  );
@@ -40017,7 +40017,10 @@ const aJ = {
40017
40017
  const n = { extension: "FIL", color: "danger" };
40018
40018
  return {
40019
40019
  "application/zip": { extension: "ZIP", color: "danger" },
40020
- "application/x-rar-compressed": { extension: "RAR", color: "danger" },
40020
+ "application/x-rar-compressed": {
40021
+ extension: "RAR",
40022
+ color: "danger"
40023
+ },
40021
40024
  "application/pdf": { extension: "PDF", color: "danger" },
40022
40025
  "application/xml": { extension: "XML", color: "danger" },
40023
40026
  "application/javascript": { extension: "JS", color: "success" },
@@ -40025,7 +40028,10 @@ const aJ = {
40025
40028
  // Office tools
40026
40029
  "application/msword": { extension: "DOC", color: "link" },
40027
40030
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { extension: "DOC", color: "link" },
40028
- "application/vnd.ms-powerpoint": { extension: "PPT", color: "salmon" },
40031
+ "application/vnd.ms-powerpoint": {
40032
+ extension: "PPT",
40033
+ color: "salmon"
40034
+ },
40029
40035
  "application/vnd.openxmlformats-officedocument.presentationml.presentation": { extension: "PPT", color: "info" },
40030
40036
  "application/vnd.ms-excel": { extension: "XLS", color: "success" },
40031
40037
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { extension: "XLS", color: "success" }
@@ -40320,7 +40326,7 @@ var XJ = function() {
40320
40326
  ZJ,
40321
40327
  !1,
40322
40328
  null,
40323
- "1b45ad85",
40329
+ "ced27337",
40324
40330
  null,
40325
40331
  null
40326
40332
  );
@@ -40379,7 +40385,9 @@ const mee = {
40379
40385
  }
40380
40386
  },
40381
40387
  mounted() {
40382
- this.separated && (this.$el.classList.add("l-checkbox-group-separated"), this.$el.children && this.$el.children.length && Array.from(this.$el.children).forEach((n) => n.classList.add("l-checkbox-button-separated")));
40388
+ this.separated && (this.$el.classList.add("l-checkbox-group-separated"), this.$el.children && this.$el.children.length && Array.from(this.$el.children).forEach(
40389
+ (n) => n.classList.add("l-checkbox-button-separated")
40390
+ ));
40383
40391
  }
40384
40392
  }, gee = null, vee = null;
40385
40393
  var yee = /* @__PURE__ */ Ge(
@@ -40455,7 +40463,11 @@ const wee = {
40455
40463
  };
40456
40464
  var Nee = function() {
40457
40465
  var e = this, t = e._self._c;
40458
- return t("div", { staticClass: "loader-container", class: { dark: e.type === "dark" }, style: { width: `${e.width}px`, height: `${e.height}px`, "border-radius": `${e.width}px` } }, [t("div", { staticClass: "loader", style: { width: `${e.width * 0.66}px` } }, [t("svg", { staticClass: "circular", attrs: { viewBox: "25 25 50 50" } }, [t("circle", { staticClass: "path", attrs: { cx: "50", cy: "50", r: "20", fill: "none", "stroke-width": "5", "stroke-miterlimit": "10" } })])])]);
40466
+ return t("div", { staticClass: "loader-container", class: { dark: e.type === "dark" }, style: {
40467
+ width: `${e.width}px`,
40468
+ height: `${e.height}px`,
40469
+ "border-radius": `${e.width}px`
40470
+ } }, [t("div", { staticClass: "loader", style: { width: `${e.width * 0.66}px` } }, [t("svg", { staticClass: "circular", attrs: { viewBox: "25 25 50 50" } }, [t("circle", { staticClass: "path", attrs: { cx: "50", cy: "50", r: "20", fill: "none", "stroke-width": "5", "stroke-miterlimit": "10" } })])])]);
40459
40471
  }, kee = [], Oee = /* @__PURE__ */ Ge(
40460
40472
  wee,
40461
40473
  Nee,
@@ -40640,7 +40652,7 @@ var Cte = function() {
40640
40652
  Ste,
40641
40653
  !1,
40642
40654
  null,
40643
- "b5311a4a",
40655
+ "4c8937f1",
40644
40656
  null,
40645
40657
  null
40646
40658
  );
@@ -40746,9 +40758,15 @@ const Wte = {
40746
40758
  const t = e.props.icon || e.data.domProps && e.data.domProps.textContent || e.children && e.children[0] && e.children[0].text, i = e.parent.$L ? e.parent.$L.Icons.get(t) : t, s = i ? i.split("-")[0] : null;
40747
40759
  if (!t || !i)
40748
40760
  return null;
40749
- const o = n("i", Object.assign({
40750
- staticStyle: {}
40751
- }, e.data));
40761
+ const o = n(
40762
+ "i",
40763
+ Object.assign(
40764
+ {
40765
+ staticStyle: {}
40766
+ },
40767
+ e.data
40768
+ )
40769
+ );
40752
40770
  o.data.domProps = {};
40753
40771
  const u = `l-icon ${s} ${i}`;
40754
40772
  if (o.data.staticClass = o.data.staticClass ? `${o.data.staticClass} ${u}` : u, e.props.size) {
@@ -40811,9 +40829,12 @@ const ine = {
40811
40829
  };
40812
40830
  },
40813
40831
  mounted() {
40814
- aD = document.querySelectorAll("[observer-targets]"), this.intersectionObserver = new IntersectionObserver((e) => this.onChangeVisibility(e[0]), {
40815
- threshold: [0.9, 1]
40816
- }), aD.forEach((e) => {
40832
+ aD = document.querySelectorAll("[observer-targets]"), this.intersectionObserver = new IntersectionObserver(
40833
+ (e) => this.onChangeVisibility(e[0]),
40834
+ {
40835
+ threshold: [0.9, 1]
40836
+ }
40837
+ ), aD.forEach((e) => {
40817
40838
  this.intersectionObserver.observe(e);
40818
40839
  });
40819
40840
  const n = parseInt(this.index) || 0;
@@ -40883,7 +40904,7 @@ const ine = {
40883
40904
  };
40884
40905
  var rne = function() {
40885
40906
  var e = this, t = e._self._c;
40886
- return t("div", { staticClass: "image-viewer", staticStyle: { position: "relative" } }, [t("div", { staticClass: "header", class: { colapsed: !e.showCommands } }, [t("l-button", { staticClass: "header-button", attrs: { circle: "", icon: "uil-arrow-left" }, on: { click: e.back } }), e.images.length !== 1 ? t("div", [e._v(e._s(parseInt(e.selected) + 1) + "/" + e._s(e.images.length))]) : e._e(), t("l-button", { staticClass: "header-button", attrs: { circle: "", icon: "el-icon-download" }, on: { click: e.download } })], 1), t("transition", { attrs: { name: "el-notification-fade" } }, [e.selected > 0 && e.showCommands ? t("l-button", { staticClass: "nav-button left", attrs: { circle: "", icon: "uil-angle-left" }, on: { click: e.previous, touchstart: e.previous } }) : e._e()], 1), t("transition", { attrs: { name: "el-notification-fade" } }, [e.selected < e.images.length - 1 && e.showCommands ? t("l-button", { staticClass: "nav-button right", attrs: { circle: "", icon: "uil-angle-right" }, on: { click: e.next } }) : e._e()], 1), t("div", { staticClass: "row scroll-container", style: { overflow: e.zoomed ? "hidden" : "auto" }, attrs: { id: "gallery-container" } }, e._l(e.images, function(i, s) {
40907
+ return t("div", { staticClass: "image-viewer", staticStyle: { position: "relative" } }, [t("div", { staticClass: "header", class: { colapsed: !e.showCommands } }, [t("l-button", { staticClass: "header-button", attrs: { circle: "", icon: "uil-arrow-left" }, on: { click: e.back } }), e.images.length !== 1 ? t("div", [e._v(" " + e._s(parseInt(e.selected) + 1) + "/" + e._s(e.images.length) + " ")]) : e._e(), t("l-button", { staticClass: "header-button", attrs: { circle: "", icon: "el-icon-download" }, on: { click: e.download } })], 1), t("transition", { attrs: { name: "el-notification-fade" } }, [e.selected > 0 && e.showCommands ? t("l-button", { staticClass: "nav-button left", attrs: { circle: "", icon: "uil-angle-left" }, on: { click: e.previous, touchstart: e.previous } }) : e._e()], 1), t("transition", { attrs: { name: "el-notification-fade" } }, [e.selected < e.images.length - 1 && e.showCommands ? t("l-button", { staticClass: "nav-button right", attrs: { circle: "", icon: "uil-angle-right" }, on: { click: e.next } }) : e._e()], 1), t("div", { staticClass: "row scroll-container", style: { overflow: e.zoomed ? "hidden" : "auto" }, attrs: { id: "gallery-container" } }, e._l(e.images, function(i, s) {
40887
40908
  return t("div", { key: s, ref: `${i.id}-${s}`, refInFor: !0, staticClass: "image-container", attrs: { "observer-targets": "", id: s }, on: { click: e.toggleCommands, mousedown: e.updateMouseDown, mouseup: e.updateMouseUp } }, [t("v-zoomer", { ref: "zoomer", refInFor: !0, staticClass: "image", attrs: { zoomed: e.zoomed }, on: { "update:zoomed": function(o) {
40888
40909
  e.zoomed = o;
40889
40910
  } } }, [t("img", { staticClass: "image", attrs: { alt: "Box image", src: i.src } })])], 1);
@@ -40898,7 +40919,7 @@ var rne = function() {
40898
40919
  sne,
40899
40920
  !1,
40900
40921
  null,
40901
- "66588283",
40922
+ "58d1aa4d",
40902
40923
  null,
40903
40924
  null
40904
40925
  );
@@ -40912,13 +40933,7 @@ const une = {
40912
40933
  name: "Linput"
40913
40934
  };
40914
40935
  var cne = function(e, t) {
40915
- return e("div", { staticClass: "l-input-wrapper", class: [
40916
- t.data.class,
40917
- t.data.staticClass
40918
- ], style: [
40919
- t.data.style,
40920
- t.data.staticStyle
40921
- ] }, [e("el-input", t._g(t._b({ staticClass: "l-input", class: { "l-input-error": t.props.error } }, "el-input", t.data.attrs, !1), t.listeners), [t._t("default")], 2), t.props.errorMessage ? e("div", { staticClass: "l-input-error-message" }, [t._v(" " + t._s(t.props.errorMessage) + " ")]) : t._e()], 1);
40936
+ return e("div", { staticClass: "l-input-wrapper", class: [t.data.class, t.data.staticClass], style: [t.data.style, t.data.staticStyle] }, [e("el-input", t._g(t._b({ staticClass: "l-input", class: { "l-input-error": t.props.error } }, "el-input", t.data.attrs, !1), t.listeners), [t._t("default")], 2), t.props.errorMessage ? e("div", { staticClass: "l-input-error-message" }, [t._v(" " + t._s(t.props.errorMessage) + " ")]) : t._e()], 1);
40922
40937
  }, dne = [], fne = /* @__PURE__ */ Ge(
40923
40938
  une,
40924
40939
  cne,
@@ -40942,14 +40957,7 @@ const mne = {
40942
40957
  }
40943
40958
  };
40944
40959
  var gne = function(e, t) {
40945
- return e("div", { staticClass: "l-linear-progress", class: [
40946
- t.data.class,
40947
- t.data.staticClass
40948
- ], style: [
40949
- t.data.style,
40950
- t.data.staticStyle,
40951
- { height: t.props.height + "px" }
40952
- ] }, [e("div", { staticClass: "l-linear-progress-background", style: { "--color": t.parent.$L.getColor(t.props.background) } }), e("div", { staticClass: "l-linear-progress-indeterminate", class: [t.props.color], style: { "--color": t.parent.$L.getColor(t.props.color) } })]);
40960
+ return e("div", { staticClass: "l-linear-progress", class: [t.data.class, t.data.staticClass], style: [t.data.style, t.data.staticStyle, { height: t.props.height + "px" }] }, [e("div", { staticClass: "l-linear-progress-background", style: { "--color": t.parent.$L.getColor(t.props.background) } }), e("div", { staticClass: "l-linear-progress-indeterminate", class: [t.props.color], style: { "--color": t.parent.$L.getColor(t.props.color) } })]);
40953
40961
  }, vne = [], yne = /* @__PURE__ */ Ge(
40954
40962
  mne,
40955
40963
  gne,
@@ -41111,7 +41119,10 @@ var Nne = function() {
41111
41119
  return e.clearTimer();
41112
41120
  }, mouseleave: function(i) {
41113
41121
  return e.startTimer();
41114
- }, click: e.click } }, [e.loading && e.loadingPosition == "left" ? t("l-circular-loader", { staticClass: "el-notification__loadingLeft", attrs: { type: e.loadingType } }) : e.typeClass || e.iconClass ? t("i", { staticClass: "el-notification__icon", class: [e.typeClass, e.iconClass] }) : e._e(), t("div", { staticClass: "el-notification__group", class: { "is-with-icon": e.typeClass || e.iconClass, "not-closeable": !e.showClose } }, [t("div", { staticClass: "el-notification__wrapper" }, [e.title ? t("h2", { staticClass: "el-notification__title", domProps: { textContent: e._s(e.title) } }) : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.message, expression: "message" }], staticClass: "el-notification__content text-regular" }, [e._t("default", function() {
41122
+ }, click: e.click } }, [e.loading && e.loadingPosition == "left" ? t("l-circular-loader", { staticClass: "el-notification__loadingLeft", attrs: { type: e.loadingType } }) : e.typeClass || e.iconClass ? t("i", { staticClass: "el-notification__icon", class: [e.typeClass, e.iconClass] }) : e._e(), t("div", { staticClass: "el-notification__group", class: {
41123
+ "is-with-icon": e.typeClass || e.iconClass,
41124
+ "not-closeable": !e.showClose
41125
+ } }, [t("div", { staticClass: "el-notification__wrapper" }, [e.title ? t("h2", { staticClass: "el-notification__title", domProps: { textContent: e._s(e.title) } }) : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.message, expression: "message" }], staticClass: "el-notification__content text-regular" }, [e._t("default", function() {
41115
41126
  return [e.dangerouslyUseHTMLString ? t("p", { domProps: { innerHTML: e._s(e.message) } }) : t("p", [e._v(e._s(e.message))])];
41116
41127
  })], 2)]), e.actionLabel ? t("l-button", { staticClass: "el-notification__actionBtn", class: e.actionColor + "--text", attrs: { type: "text" }, on: { click: function(i) {
41117
41128
  return e.callAction();
@@ -41224,7 +41235,7 @@ var Hne = function() {
41224
41235
  Wne,
41225
41236
  !1,
41226
41237
  null,
41227
- "22479f6e",
41238
+ "c58c93b9",
41228
41239
  null,
41229
41240
  null
41230
41241
  );
@@ -41289,7 +41300,7 @@ var iie = function() {
41289
41300
  rie,
41290
41301
  !1,
41291
41302
  null,
41292
- "6edb08da",
41303
+ "115c0031",
41293
41304
  null,
41294
41305
  null
41295
41306
  );
@@ -41307,7 +41318,7 @@ var cie = /* @__PURE__ */ Ge(
41307
41318
  uie,
41308
41319
  !1,
41309
41320
  null,
41310
- "273d8ed8",
41321
+ "e3c4265e",
41311
41322
  null,
41312
41323
  null
41313
41324
  );
@@ -41348,7 +41359,9 @@ const _ie = {
41348
41359
  }
41349
41360
  },
41350
41361
  mounted() {
41351
- this.separated && (this.$el.classList.add("l-radio-group-separated"), this.$el.children && this.$el.children.length && Array.from(this.$el.children).forEach((n) => n.classList.add("l-radio-button-separated")));
41362
+ this.separated && (this.$el.classList.add("l-radio-group-separated"), this.$el.children && this.$el.children.length && Array.from(this.$el.children).forEach(
41363
+ (n) => n.classList.add("l-radio-button-separated")
41364
+ ));
41352
41365
  }
41353
41366
  }, Mie = null, xie = null;
41354
41367
  var Cie = /* @__PURE__ */ Ge(
@@ -42218,7 +42231,7 @@ var rle = function() {
42218
42231
  var e = this, t = e._self._c;
42219
42232
  return t("l-form", { ref: "form", attrs: { model: e.form, rules: e.rules }, nativeOn: { submit: function(i) {
42220
42233
  i.preventDefault();
42221
- } } }, [t("div", [t("l-icon", [e._v(e._s(e.$L.Icons.get(e.schema)))]), e._v(" " + e._s(e.schema.title))], 1), t("br"), t("l-form-item", { attrs: { prop: "value" } }, [t("el-input", { ref: "valueInput", attrs: { size: "small" }, on: { change: e.changeInput }, model: { value: e.inputValue, callback: function(i) {
42234
+ } } }, [t("div", [t("l-icon", [e._v(e._s(e.$L.Icons.get(e.schema)))]), e._v(" " + e._s(e.schema.title) + " ")], 1), t("br"), t("l-form-item", { attrs: { prop: "value" } }, [t("el-input", { ref: "valueInput", attrs: { size: "small" }, on: { change: e.changeInput }, model: { value: e.inputValue, callback: function(i) {
42222
42235
  e.inputValue = i;
42223
42236
  }, expression: "inputValue" } }, [t("template", { slot: "prepend" }, [e._v("R$")])], 2)], 1), t("l-form-item", { attrs: { prop: "comparison" } }, [t("l-radio", { attrs: { label: "gt" }, model: { value: e.form.comparison, callback: function(i) {
42224
42237
  e.$set(e.form, "comparison", i);
@@ -42437,13 +42450,13 @@ var ple = function() {
42437
42450
  e.$set(e.form, "comparison", s);
42438
42451
  }, expression: "form.comparison" } }, [e._v(e._s(i.label))]), e.form.comparison == i.value ? t("l-form-item", { staticStyle: { "margin-left": "24px", "margin-bottom": "8px" }, attrs: { prop: "value" } }, [t("div", { staticClass: "row" }, [t("l-input", { ref: "valueInput", refInFor: !0, attrs: { type: "number", min: "1", size: "small" }, model: { value: e.form.value, callback: function(s) {
42439
42452
  e.$set(e.form, "value", e._n(s));
42440
- }, expression: "form.value" } }), t("div", { staticStyle: { "margin-left": "8px", "white-space": "nowrap" } }, [e._v(e._s(e.form.value > 1 ? "dias" : "dia"))])], 1)]) : e._e()], 1);
42453
+ }, expression: "form.value" } }), t("div", { staticStyle: { "margin-left": "8px", "white-space": "nowrap" } }, [e._v(" " + e._s(e.form.value > 1 ? "dias" : "dia") + " ")])], 1)]) : e._e()], 1);
42441
42454
  }), t("strong", [e._v("Relativo - Futuro")]), e._l(e.relativeFutureComparisons, function(i) {
42442
42455
  return t("div", { key: i.value }, [t("l-radio", { attrs: { label: i.value }, model: { value: e.form.comparison, callback: function(s) {
42443
42456
  e.$set(e.form, "comparison", s);
42444
42457
  }, expression: "form.comparison" } }, [e._v(e._s(i.label))]), e.form.comparison == i.value ? t("l-form-item", { staticStyle: { "margin-left": "24px", "margin-bottom": "8px" }, attrs: { prop: "value" } }, [t("div", { staticClass: "row" }, [t("l-input", { ref: "valueInput", refInFor: !0, attrs: { type: "number", min: "1", size: "small" }, model: { value: e.form.value, callback: function(s) {
42445
42458
  e.$set(e.form, "value", e._n(s));
42446
- }, expression: "form.value" } }), t("div", { staticStyle: { "margin-left": "8px", "white-space": "nowrap" } }, [e._v(e._s(e.form.value > 1 ? "dias" : "dia"))])], 1)]) : e._e()], 1);
42459
+ }, expression: "form.value" } }), t("div", { staticStyle: { "margin-left": "8px", "white-space": "nowrap" } }, [e._v(" " + e._s(e.form.value > 1 ? "dias" : "dia") + " ")])], 1)]) : e._e()], 1);
42447
42460
  }), t("strong", [e._v("Absoluto")]), e._l(e.absoluteComparisons, function(i) {
42448
42461
  return t("div", { key: i.value }, [t("l-radio", { attrs: { label: i.value }, model: { value: e.form.comparison, callback: function(s) {
42449
42462
  e.$set(e.form, "comparison", s);
@@ -42471,7 +42484,9 @@ function PP(n) {
42471
42484
  const oM = /* @__PURE__ */ new Map();
42472
42485
  function yle(n, e) {
42473
42486
  if (!n)
42474
- throw new Error(`Received ${n} fieldSchema, componentType ${e}`);
42487
+ throw new Error(
42488
+ `Received ${n} fieldSchema, componentType ${e}`
42489
+ );
42475
42490
  if (n.components && n.components[e])
42476
42491
  return n.components[e];
42477
42492
  const t = PP(n);
@@ -42480,7 +42495,11 @@ function yle(n, e) {
42480
42495
  if (s)
42481
42496
  return s;
42482
42497
  }
42483
- throw new Error(`Component not found for field schema ${JSON.stringify(n)} and component type ${e}`);
42498
+ throw new Error(
42499
+ `Component not found for field schema ${JSON.stringify(
42500
+ n
42501
+ )} and component type ${e}`
42502
+ );
42484
42503
  }
42485
42504
  function ble(n, e, t) {
42486
42505
  const s = `${PP(n)[0]}:${e}`;
@@ -42495,7 +42514,23 @@ RP.install = function(n) {
42495
42514
  };
42496
42515
  const FP = {};
42497
42516
  FP.register = function() {
42498
- gr.register({ type: "String" }, "filterChipEditor", Zoe), gr.register({ type: "Number" }, "filterChipEditor", fle), gr.register({ type: "Date" }, "filterChipEditor", vle), gr.register({ format: "Amount" }, "filterChipEditor", ole);
42517
+ gr.register(
42518
+ { type: "String" },
42519
+ "filterChipEditor",
42520
+ Zoe
42521
+ ), gr.register(
42522
+ { type: "Number" },
42523
+ "filterChipEditor",
42524
+ fle
42525
+ ), gr.register(
42526
+ { type: "Date" },
42527
+ "filterChipEditor",
42528
+ vle
42529
+ ), gr.register(
42530
+ { format: "Amount" },
42531
+ "filterChipEditor",
42532
+ ole
42533
+ );
42499
42534
  };
42500
42535
  const _le = {
42501
42536
  model: {
@@ -42923,7 +42958,19 @@ var zle = function() {
42923
42958
  );
42924
42959
  const Fle = Rle.exports, UP = {};
42925
42960
  UP.register = function() {
42926
- gr.register({ type: "String" }, "filterChipView", Sle), gr.register({ type: "Number" }, "filterChipView", jle), gr.register({ type: "Date" }, "filterChipView", Fle), gr.register({ format: "Amount" }, "filterChipView", kle);
42961
+ gr.register(
42962
+ { type: "String" },
42963
+ "filterChipView",
42964
+ Sle
42965
+ ), gr.register(
42966
+ { type: "Number" },
42967
+ "filterChipView",
42968
+ jle
42969
+ ), gr.register({ type: "Date" }, "filterChipView", Fle), gr.register(
42970
+ { format: "Amount" },
42971
+ "filterChipView",
42972
+ kle
42973
+ );
42927
42974
  };
42928
42975
  FP.register();
42929
42976
  UP.register();
@@ -43372,6 +43419,9 @@ const vce = {
43372
43419
  },
43373
43420
  checked: {
43374
43421
  type: Boolean
43422
+ },
43423
+ selectedTopicKind: {
43424
+ type: String
43375
43425
  }
43376
43426
  },
43377
43427
  data: function() {
@@ -43404,11 +43454,11 @@ const vce = {
43404
43454
  tag: "Esta tag ainda não tem turmas"
43405
43455
  }[this.topic.kind];
43406
43456
  },
43407
- isUserKind() {
43408
- return this.topic.kind === "user";
43457
+ isSelectedEntityKind() {
43458
+ return this.topic.kind === this.selectedTopicKind;
43409
43459
  },
43410
43460
  chanShowCheckbox() {
43411
- return this.multipleTargets || this.isUserKind && !this.multipleTargets;
43461
+ return this.multipleTargets || this.isSelectedEntityKind && !this.multipleTargets;
43412
43462
  }
43413
43463
  },
43414
43464
  methods: {
@@ -43442,14 +43492,20 @@ const vce = {
43442
43492
  }
43443
43493
  break;
43444
43494
  }
43445
- return { results: this.buffer.splice(0, n), hasMore: this.buffer.length > 0 };
43495
+ return {
43496
+ results: this.buffer.splice(0, n),
43497
+ hasMore: this.buffer.length > 0
43498
+ };
43446
43499
  },
43447
43500
  async fetch() {
43448
43501
  const n = Ca(this.includes);
43449
43502
  this.fetchingIncludes = !0;
43450
43503
  try {
43451
43504
  const { results: e, hasMore: t } = await this.fetchPage();
43452
- this.includes = [...n, ...e], this.includesMapData = { ...this.includesMapData, [this.topic.id]: this.includes }, this.$emit("includes", { topic: this.topic, includes: this.includes }), this.hasMore = t;
43505
+ this.includes = [...n, ...e], this.includesMapData = {
43506
+ ...this.includesMapData,
43507
+ [this.topic.id]: this.includes
43508
+ }, this.$emit("includes", { topic: this.topic, includes: this.includes }), this.hasMore = t;
43453
43509
  } catch (e) {
43454
43510
  this.error = e, this.$notify({
43455
43511
  ...TM.errorHandler("Erro ao carregar mais."),
@@ -43501,16 +43557,16 @@ const vce = {
43501
43557
  };
43502
43558
  var yce = function() {
43503
43559
  var e = this, t = e._self._c;
43504
- return t("div", { staticClass: "topic-item-group" }, [t("div", { class: "topic-item-group-header depth-" + e.depth + " l-d-flex l-align-items-center pl-3" + (e.isUserKind && e.depth > 0 ? " user-topic-item-group-header" : "") }, [t("div", { staticClass: "l-flex l-d-flex l-align-items-center", on: { click: function(i) {
43505
- i.stopPropagation(), e.isUserKind || e.toggleShowIncludes();
43506
- } } }, [e.isUserKind ? e._e() : t("div", { staticClass: "topic-chevron mr-2" }, [t("l-icon", { staticClass: "gray-60--text", attrs: { size: "24" } }, [e._v(" " + e._s(e.showIncludes ? "uil-angle-down" : "uil-angle-right") + " ")])], 1), t("div", { staticClass: "topic-icon" }, [t("div", { staticClass: "bg-icon", class: e.color(e.topic.kind) }), t("l-icon", { class: e.color(e.topic.kind) + "--text" }, [e._v(" " + e._s(e.icon(e.topic.kind)) + " ")])], 1), t("div", { staticClass: "l-flex ml-2 mr-3 l-text-regular ellipsis-2", class: e.disabled ? "gray-70--text" : "lead-light--text" }, [e._v(" " + e._s(e.topic.name) + " ")])]), t("l-checkbox", { key: e.isCheckedFunction(e.topic), staticClass: "p-3", class: {
43560
+ return t("div", { staticClass: "topic-item-group" }, [t("div", { class: "topic-item-group-header depth-" + e.depth + " l-d-flex l-align-items-center pl-3" + (e.isSelectedEntityKind && e.depth > 0 ? " user-topic-item-group-header" : "") }, [t("div", { staticClass: "l-flex l-d-flex l-align-items-center", on: { click: function(i) {
43561
+ i.stopPropagation(), e.isSelectedEntityKind || e.toggleShowIncludes();
43562
+ } } }, [e.isSelectedEntityKind ? e._e() : t("div", { staticClass: "topic-chevron mr-2" }, [t("l-icon", { staticClass: "gray-60--text", attrs: { size: "24" } }, [e._v(" " + e._s(e.showIncludes ? "uil-angle-down" : "uil-angle-right") + " ")])], 1), t("div", { staticClass: "topic-icon" }, [t("div", { staticClass: "bg-icon", class: e.color(e.topic.kind) }), t("l-icon", { class: e.color(e.topic.kind) + "--text" }, [e._v(" " + e._s(e.icon(e.topic.kind)) + " ")])], 1), t("div", { staticClass: "l-flex ml-2 mr-3 l-text-regular ellipsis-2", class: e.disabled ? "gray-70--text" : "lead-light--text" }, [e._v(" " + e._s(e.topic.name) + " ")])]), t("l-checkbox", { key: e.isCheckedFunction(e.topic), staticClass: "p-3", class: {
43507
43563
  "circular-checkbox": !e.multipleTargets
43508
43564
  }, style: {
43509
43565
  display: e.chanShowCheckbox ? "block" : "none"
43510
43566
  }, attrs: { disabled: e.disabled, checked: e.isCheckedFunction(e.topic), indeterminate: e.hasChildChecked(e.topic) && !e.isCheckedFunction(e.topic) }, on: { change: function(i) {
43511
43567
  e.parentsTopic.length ? e.topicIncludedChanged(e.topic, i) : e.updateSelectedTopics(e.topic, i);
43512
43568
  } } })], 1), t("hr"), t("l-transition-expand", [e.showIncludes ? t("div", [e.initialFetching ? [t("div", { staticClass: "l-d-flex l-align-items-center my-2", staticStyle: { "justify-content": "center", width: "100%", height: "40px" } }, [t("l-circular-loader", { attrs: { width: 40, height: 40 } })], 1), t("hr")] : t("div", [!e.includes.length && !e.hasMore || e.error ? [t("div", { staticClass: "no-data-includes l-text-regular gray-60--text" }, [e._v(" " + e._s(e.includesNoData) + " ")]), t("hr")] : t("div", [e._l(e.includes, function(i) {
43513
- return t("TopicItem", { key: i.id, attrs: { propagateIncludes: e.propagateIncludes, hasChildChecked: e.hasChildChecked, isCheckedFunction: e.isChildChecked, checked: e.isChildChecked(i), depth: e.depth + 1, topic: i, parentsTopic: [...e.parentsTopic, e.topic], parentIncludes: e.includes, includesMap: e.includesMapData, parentChecked: e.checked, populateTopic: e.populateTopic, propagate: e.propagate, disabled: e.disabled, multipleTargets: e.multipleTargets }, on: { input: function(s) {
43569
+ return t("TopicItem", { key: i.id, attrs: { propagateIncludes: e.propagateIncludes, hasChildChecked: e.hasChildChecked, isCheckedFunction: e.isChildChecked, checked: e.isChildChecked(i), depth: e.depth + 1, topic: i, selectedTopicKind: e.selectedTopicKind, parentsTopic: [...e.parentsTopic, e.topic], parentIncludes: e.includes, includesMap: e.includesMapData, parentChecked: e.checked, populateTopic: e.populateTopic, propagate: e.propagate, disabled: e.disabled, multipleTargets: e.multipleTargets }, on: { input: function(s) {
43514
43570
  return e.propagate(s);
43515
43571
  }, includes: function(s) {
43516
43572
  return e.propagateIncludes(s);
@@ -43524,7 +43580,7 @@ var yce = function() {
43524
43580
  bce,
43525
43581
  !1,
43526
43582
  null,
43527
- "982c1ee8",
43583
+ "58104e4f",
43528
43584
  null,
43529
43585
  null
43530
43586
  );
@@ -43547,7 +43603,7 @@ var Cce = function() {
43547
43603
  Sce,
43548
43604
  !1,
43549
43605
  null,
43550
- "9a0d87e2",
43606
+ "ba04fa8c",
43551
43607
  null,
43552
43608
  null
43553
43609
  );
@@ -43651,7 +43707,7 @@ var Nce = function() {
43651
43707
  kce,
43652
43708
  !1,
43653
43709
  null,
43654
- "d969ed02",
43710
+ "d0c3708c",
43655
43711
  null,
43656
43712
  null
43657
43713
  );
@@ -47288,6 +47344,10 @@ const $ce = {
47288
47344
  },
47289
47345
  recentTopicsSearched: {
47290
47346
  type: Object
47347
+ },
47348
+ selectedTopicKind: {
47349
+ type: String,
47350
+ default: "user"
47291
47351
  }
47292
47352
  },
47293
47353
  // data
@@ -47622,7 +47682,11 @@ const $ce = {
47622
47682
  this.$emit("answer", n);
47623
47683
  },
47624
47684
  async onClose() {
47625
- const n = Ca(this.alreadySelectedTopics).map((s) => s.kind + s.id), e = Ca(this.selectedTopics).map((s) => s.kind + s.id);
47685
+ const n = Ca(this.alreadySelectedTopics).map(
47686
+ (s) => s.kind + s.id
47687
+ ), e = Ca(this.selectedTopics).map(
47688
+ (s) => s.kind + s.id
47689
+ );
47626
47690
  if (mce(e, n).length === 0) {
47627
47691
  this.$emit("close");
47628
47692
  return;
@@ -47646,7 +47710,7 @@ var zce = function() {
47646
47710
  e.forAllTag = i;
47647
47711
  }, expression: "forAllTag" } })], 1) : e._e(), e.total >= 1 && e.hasQuery ? t("div", { staticClass: "results-total mb-2 px-3" }, [e._v(" " + e._s(e.totalLabel) + " ")]) : e._e(), e._l(e.resultKinds, function(i) {
47648
47712
  return t("div", { key: i, staticClass: "topics-searched mb-3" }, [e.isAllEntities ? t("h6", { staticClass: "topic-kind-title gray-70--text mb-2 px-3" }, [e._v(" " + e._s(e.getKindNamePlural(i)) + " (" + e._s(e.getTopicTotal(i)) + ") ")]) : e._e(), e._l(e.getTopicHits(i), function(s) {
47649
- return t("TopicItemGroup", { key: s.id, attrs: { propagateIncludes: e.updateIncludesMap, propagate: e.updateSelectedTopics, hasChildChecked: e.hasChildChecked, topic: s, parentTopic: s, populateTopic: e.populateTopic, disabled: e.forAllTagChecked, checked: e.isChecked(s), isCheckedFunction: e.isChecked, multipleTargets: e.multipleTargets }, on: { input: function(o) {
47713
+ return t("TopicItemGroup", { key: s.id, attrs: { propagateIncludes: e.updateIncludesMap, propagate: e.updateSelectedTopics, hasChildChecked: e.hasChildChecked, topic: s, selectedTopicKind: e.selectedTopicKind, parentTopic: s, populateTopic: e.populateTopic, disabled: e.forAllTagChecked, checked: e.isChecked(s), isCheckedFunction: e.isChecked, multipleTargets: e.multipleTargets }, on: { input: function(o) {
47650
47714
  return e.updateSelectedTopics(o);
47651
47715
  }, includes: e.updateIncludesMap } });
47652
47716
  }), e.isAllEntities && e.needShowMore(i) ? t("div", { staticClass: "m-3" }, [t("l-button", { attrs: { loading: e.loading, plain: "", fill: "" }, nativeOn: { click: function(s) {
@@ -47676,7 +47740,7 @@ var zce = function() {
47676
47740
  Pce,
47677
47741
  !1,
47678
47742
  null,
47679
- "347ff296",
47743
+ "64853cec",
47680
47744
  null,
47681
47745
  null
47682
47746
  );
@@ -47735,7 +47799,7 @@ var rde = /* @__PURE__ */ Ge(
47735
47799
  ide,
47736
47800
  !1,
47737
47801
  null,
47738
- "a8ac0bc4",
47802
+ "dce054c3",
47739
47803
  null,
47740
47804
  null
47741
47805
  );
@@ -48104,7 +48168,10 @@ const Pde = zde.exports, Rde = {
48104
48168
  props: ["value", "schema"],
48105
48169
  methods: {
48106
48170
  formatValue(n, e) {
48107
- return isNaN(n) || n === null || n === void 0 ? "-" : e.$n ? e.$n(n / 100, "currency") : Number(n / 100).toLocaleString("pt-BR", { style: "currency", currency: "BRL" });
48171
+ return isNaN(n) || n === null || n === void 0 ? "-" : e.$n ? e.$n(n / 100, "currency") : Number(n / 100).toLocaleString("pt-BR", {
48172
+ style: "currency",
48173
+ currency: "BRL"
48174
+ });
48108
48175
  }
48109
48176
  }
48110
48177
  };
@@ -48345,7 +48412,12 @@ const cfe = {
48345
48412
  };
48346
48413
  var dfe = function() {
48347
48414
  var e = this, t = e._self._c;
48348
- return t("th", { staticClass: "l-table-header-cell l-table-cell", style: { "--l-table-col-width": e.spec.column.width ? `${e.spec.column.width}px` : "auto" } }, [e.spec.sortable ? t("a", { staticClass: "l-table-header-cell-content", class: [e.spec.column.sortDirection ? "active" : null, `l-table-header-align-${e.spec.align}`], attrs: { href: "#" }, on: { click: function(i) {
48415
+ return t("th", { staticClass: "l-table-header-cell l-table-cell", style: {
48416
+ "--l-table-col-width": e.spec.column.width ? `${e.spec.column.width}px` : "auto"
48417
+ } }, [e.spec.sortable ? t("a", { staticClass: "l-table-header-cell-content", class: [
48418
+ e.spec.column.sortDirection ? "active" : null,
48419
+ `l-table-header-align-${e.spec.align}`
48420
+ ], attrs: { href: "#" }, on: { click: function(i) {
48349
48421
  return i.preventDefault(), e.toggleSorting();
48350
48422
  } } }, [t("l-tooltip", { key: "tooltip", attrs: { disabled: !e.spec.description, content: e.spec.description, placement: "top", "open-delay": 600, offset: 0 } }, [t("span", [e.icon ? t("l-icon", { staticClass: "l-table-header-icon" }, [e._v(e._s(e.icon))]) : e._e(), e._v("   " + e._s(e.spec.title) + " ")], 1)]), t("i", { staticClass: "l-table-sorter-icon uil uil-arrow-down", class: `l-table-sorter-${e.spec.column.sortDirection || "default"}` })], 1) : t("span", { staticClass: "l-table-header-cell-content" }, [t("l-tooltip", { attrs: { disabled: !e.spec.description, content: e.spec.description, placement: "top", "open-delay": 600, offset: 0 } }, [t("span", [e.icon ? t("l-icon", { staticClass: "l-table-header-icon" }, [e._v(e._s(e.icon))]) : e._e(), e._v("   " + e._s(e.spec.title) + " ")], 1)])], 1), t("span", { staticStyle: { width: "12px" } }), e.resizable ? t("LTableHeaderResizer", { on: { resize: function(i) {
48351
48423
  return e.resizeColumn(e.spec.column, i);
@@ -48592,7 +48664,14 @@ function hhe(n) {
48592
48664
  var phe = hhe;
48593
48665
  const mhe = /* @__PURE__ */ Ii(phe);
48594
48666
  function ghe({ key: n, selected: e }, t) {
48595
- let { loadedPages: i, allowInvertedSelection: s, includedIds: o, excludedIds: u, multiselect: d, itemToId: f = (y) => y } = t;
48667
+ let {
48668
+ loadedPages: i,
48669
+ allowInvertedSelection: s,
48670
+ includedIds: o,
48671
+ excludedIds: u,
48672
+ multiselect: d,
48673
+ itemToId: f = (y) => y
48674
+ } = t;
48596
48675
  if (!n === void 0 || n === null)
48597
48676
  return {
48598
48677
  includedIds: o,
@@ -48600,7 +48679,9 @@ function ghe({ key: n, selected: e }, t) {
48600
48679
  };
48601
48680
  if (n === "*") {
48602
48681
  if (o.splice(0, o.length), u.splice(0, u.length), e && d && s && o.push("*"), e && d && !s) {
48603
- let y = Kfe(i.filter((N) => N.data).map((N) => N.data));
48682
+ let y = Kfe(
48683
+ i.filter((N) => N.data).map((N) => N.data)
48684
+ );
48604
48685
  o = mhe(y.map((N) => f(N)));
48605
48686
  }
48606
48687
  return {
@@ -48988,7 +49069,10 @@ const Che = 100, She = 3e4, The = 3, Dhe = "scrollBehavior" in document.document
48988
49069
  },
48989
49070
  spacing() {
48990
49071
  let n = 0, e = 0, t = this.display, i = this.totalCount;
48991
- return t === "more" && (i = this.loadedPages.length * this.perPage), (t === "all" || t === "more") && (n = this.firstPageRendered * this.perPage * this.rowHeight, e = Math.max(0, (i - (this.lastPageRendered + 1) * this.perPage) * this.rowHeight)), {
49072
+ return t === "more" && (i = this.loadedPages.length * this.perPage), (t === "all" || t === "more") && (n = this.firstPageRendered * this.perPage * this.rowHeight, e = Math.max(
49073
+ 0,
49074
+ (i - (this.lastPageRendered + 1) * this.perPage) * this.rowHeight
49075
+ )), {
48992
49076
  top: Math.max(0, n),
48993
49077
  bottom: Math.max(0, e)
48994
49078
  };
@@ -49062,7 +49146,9 @@ const Che = 100, She = 3e4, The = 3, Dhe = "scrollBehavior" in document.document
49062
49146
  let i = Math.abs(t - n);
49063
49147
  if (n > 2 && t > 2 && i < 150 || (this.lastComputedOffsetY = n, this.display === "paged"))
49064
49148
  return;
49065
- let o = this.rect.height - this.headerHeight, u = Math.max(0, Math.floor(n / this.rowHeight)), d = Math.ceil(o / this.rowHeight), f = u + d, p = this.extraRows, v = this.perPage, b = Math.floor((u - p) / this.perPage), _ = Math.floor((f + p) / v), y = _ >= this.pagesCount - 1 ? d : d / 2, x = Math.floor((u + y) / this.perPage);
49149
+ let o = this.rect.height - this.headerHeight, u = Math.max(0, Math.floor(n / this.rowHeight)), d = Math.ceil(o / this.rowHeight), f = u + d, p = this.extraRows, v = this.perPage, b = Math.floor((u - p) / this.perPage), _ = Math.floor((f + p) / v), y = _ >= this.pagesCount - 1 ? d : d / 2, x = Math.floor(
49150
+ (u + y) / this.perPage
49151
+ );
49066
49152
  if (this.display === "more") {
49067
49153
  for (b = Math.min(b, this.lastLoadedPage); !this.loadedPages[b] && b > 0; )
49068
49154
  b--;
@@ -49094,7 +49180,10 @@ const Che = 100, She = 3e4, The = 3, Dhe = "scrollBehavior" in document.document
49094
49180
  });
49095
49181
  },
49096
49182
  changeSelection({ key: n, selected: e }) {
49097
- const { includedIds: t, excludedIds: i } = ghe({ key: n, selected: e }, this);
49183
+ const { includedIds: t, excludedIds: i } = ghe(
49184
+ { key: n, selected: e },
49185
+ this
49186
+ );
49098
49187
  this.includedIds = t, this.excludedIds = i, this.$nextTick(() => {
49099
49188
  this.$emit("changeSelection", {
49100
49189
  includedIds: this.includedIds,
@@ -49172,7 +49261,7 @@ const Che = 100, She = 3e4, The = 3, Dhe = "scrollBehavior" in document.document
49172
49261
  };
49173
49262
  var Nhe = function() {
49174
49263
  var e = this, t = e._self._c;
49175
- return t("div", { ref: "container", staticClass: "l-table-container", class: e.contentClasses, style: e.contentStyle, on: { scroll: e.onScroll } }, [t("table", { staticClass: "l-table-table", attrs: { border: "0" } }, [t("caption", { staticStyle: { display: "none" } }, [e._v("Table Header")]), t("LTableHeader", { attrs: { height: e.headerHeight, selectable: e.selectable, columnSpecs: e.columnSpecs, loading: !!e.fetching, total: e.totalCount, includedIds: e.includedIds, excludedIds: e.excludedIds, multiselect: e.multiselect }, on: { selected: function(i) {
49264
+ return t("div", { ref: "container", staticClass: "l-table-container", class: e.contentClasses, style: e.contentStyle, on: { scroll: e.onScroll } }, [t("table", { staticClass: "l-table-table", attrs: { border: "0" } }, [t("caption", { staticStyle: { display: "none" } }, [e._v(" Table Header ")]), t("LTableHeader", { attrs: { height: e.headerHeight, selectable: e.selectable, columnSpecs: e.columnSpecs, loading: !!e.fetching, total: e.totalCount, includedIds: e.includedIds, excludedIds: e.excludedIds, multiselect: e.multiselect }, on: { selected: function(i) {
49176
49265
  return e.changeSelection(i);
49177
49266
  } } }), t("LTableBodySpacer", { attrs: { height: e.spacing.top } }), e._l(e.visiblePages, function(i) {
49178
49267
  return t("LTableBody", { key: i.index, attrs: { page: i, perPage: e.perPage, pagesCount: e.pagesCount, totalCount: e.totalCount, selectable: e.selectable, clickable: e.clickable, columnSpecs: e.columnSpecs, includedIds: e.includedIds, excludedIds: e.excludedIds, multiselect: e.multiselect }, on: { "click-item": function(s) {
@@ -49333,7 +49422,7 @@ var Whe = function() {
49333
49422
  Qhe,
49334
49423
  !1,
49335
49424
  null,
49336
- "69080a2f",
49425
+ "c86a8d6f",
49337
49426
  null,
49338
49427
  null
49339
49428
  );
@@ -66569,7 +66658,7 @@ var J0e = function() {
66569
66658
  eCe,
66570
66659
  !1,
66571
66660
  null,
66572
- "594513ec",
66661
+ "2a90efa2",
66573
66662
  null,
66574
66663
  null
66575
66664
  );
@@ -66617,7 +66706,7 @@ var rCe = function() {
66617
66706
  sCe,
66618
66707
  !1,
66619
66708
  null,
66620
- "2afc380d",
66709
+ "f864bb83",
66621
66710
  null,
66622
66711
  null
66623
66712
  );
@@ -67285,7 +67374,7 @@ var VCe = function() {
67285
67374
  YCe,
67286
67375
  !1,
67287
67376
  null,
67288
- "29547478",
67377
+ "c590d839",
67289
67378
  null,
67290
67379
  null
67291
67380
  );
@@ -67432,7 +67521,7 @@ var hSe = function() {
67432
67521
  pSe,
67433
67522
  !1,
67434
67523
  null,
67435
- "fc95fe01",
67524
+ "3a6a6053",
67436
67525
  null,
67437
67526
  null
67438
67527
  );
@@ -67704,16 +67793,16 @@ RSe.setLanguage = async function(n) {
67704
67793
  let t;
67705
67794
  switch (n) {
67706
67795
  case "en":
67707
- t = await import("./en-1dfabd60.js").then((s) => s.e), await import("./en-f7ab1bad.js").then((s) => s.e);
67796
+ t = await import("./en-1dfabd60.js").then((s) => s.e), await import("./en-56f9f48c.js").then((s) => s.e);
67708
67797
  break;
67709
67798
  case "es":
67710
- t = await import("./es-0f380c5b.js").then((s) => s.e), await import("./es-63b7aa17.js").then((s) => s.e);
67799
+ t = await import("./es-0f380c5b.js").then((s) => s.e), await import("./es-60ab9ed1.js").then((s) => s.e);
67711
67800
  break;
67712
67801
  default:
67713
- t = await import("./pt-br-1fb57058.js").then((s) => s.p), await import("./pt-br-c857ad5d.js").then((s) => s.p);
67802
+ t = await import("./pt-br-1fb57058.js").then((s) => s.p), await import("./pt-br-6395fdf7.js").then((s) => s.p);
67714
67803
  break;
67715
67804
  }
67716
- const { default: i } = await import("./index-5dd63b7b.js").then((s) => s.i);
67805
+ const { default: i } = await import("./index-690e5302.js").then((s) => s.i);
67717
67806
  i.use(t.default), Fx.locale(n);
67718
67807
  };
67719
67808
  const hF = {};
package/dist/main.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export default LayersDesignSystem;
2
- import Notification from "./helpers/Notification";
3
- import Language from "./helpers/I18n";
2
+ import Notification from './helpers/Notification';
3
+ import Language from './helpers/I18n';
4
4
  declare namespace LayersDesignSystem {
5
5
  function install(Vue: any): void;
6
6
  }
@@ -1,4 +1,4 @@
1
- import { d as s, c as m } from "./main-9cad9e4b.js";
1
+ import { d as s, c as m } from "./main-53368021.js";
2
2
  var n = { exports: {} };
3
3
  (function(r, d) {
4
4
  (function(t, o) {