@stsdti/funky-ui-kit 1.4.4 → 1.4.6

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.
@@ -20109,7 +20109,13 @@ const _BaseRepository = class _BaseRepository {
20109
20109
  }
20110
20110
  let filterParam = {};
20111
20111
  for (let filter2 of filters) {
20112
- lodashExports.set(filterParam, `filter.${filter2.field}`, filter2.value);
20112
+ if (typeof filter2 === "string") {
20113
+ const [key, value] = filter2.split("=");
20114
+ const normalizedKey = key.replace(/filter\[(.+)\]/, "filter.$1");
20115
+ lodashExports.set(filterParam, normalizedKey, value);
20116
+ } else {
20117
+ lodashExports.set(filterParam, `filter.${filter2.field}`, filter2.value);
20118
+ }
20113
20119
  }
20114
20120
  let limitParam = limit ? { limit } : null;
20115
20121
  let offsetParam = offset2 ? { offset: offset2 } : null;
@@ -20131,6 +20137,10 @@ const _BaseRepository = class _BaseRepository {
20131
20137
  }
20132
20138
  let filters = [];
20133
20139
  for (const filter2 of filterArray) {
20140
+ if (typeof filter2 === "string") {
20141
+ filters.push(filter2);
20142
+ continue;
20143
+ }
20134
20144
  let filterValue = Array.isArray(filter2.value) ? filter2.value.join(",") : filter2.value;
20135
20145
  if (filterValue === null || filterValue === void 0 || filterValue === "") {
20136
20146
  continue;
@@ -81328,8 +81338,8 @@ const _sfc_main$8 = {
81328
81338
  __name: "AppFormModal",
81329
81339
  props: {
81330
81340
  form: {},
81331
- title: {
81332
- default: "Editare / Creare"
81341
+ resourceName: {
81342
+ default: "resursă"
81333
81343
  },
81334
81344
  buttons: {},
81335
81345
  clickToClose: {
@@ -81341,6 +81351,10 @@ const _sfc_main$8 = {
81341
81351
  setup(__props, { expose: __expose, emit: __emit }) {
81342
81352
  const emits = __emit;
81343
81353
  const props2 = __props;
81354
+ const title = computed(() => {
81355
+ var _a3;
81356
+ return (((_a3 = formContext.item) == null ? void 0 : _a3.id) ? "Editare" : "Creare") + " " + props2.resourceName;
81357
+ });
81344
81358
  let formContext = reactive({});
81345
81359
  const isModalVisible = ref(false);
81346
81360
  const button = {
@@ -81397,7 +81411,7 @@ const _sfc_main$8 = {
81397
81411
  class: "animated fadeIn"
81398
81412
  }, {
81399
81413
  title: withCtx(() => [
81400
- createElementVNode("div", null, toDisplayString(__props.title), 1)
81414
+ createElementVNode("div", null, toDisplayString(title.value), 1)
81401
81415
  ]),
81402
81416
  "heading-elements": withCtx(() => [
81403
81417
  createVNode(_component_app_button_group, { value: buttonsList.value }, null, 8, ["value"])
@@ -82695,9 +82709,8 @@ const _sfc_main = {
82695
82709
  return modelValue.value.some((selectedItem) => lodashExports.isEqual(selectedItem, item));
82696
82710
  };
82697
82711
  const selectCell = (item) => {
82698
- let newValue;
82699
- newValue = isSelected(item) ? modelValue.value.filter((selectedItem) => !lodashExports.isEqual(selectedItem, item)) : [...modelValue.value, item];
82700
- newValue = props2.isMultiSelect ? newValue : lodashExports.tail(newValue);
82712
+ let newValue = isSelected(item) ? modelValue.value.filter((selectedItem) => !lodashExports.isEqual(selectedItem, item)) : [...modelValue.value, item];
82713
+ newValue = props2.isMultiSelect ? newValue : [lodashExports.last(newValue)];
82701
82714
  modelValue.value = newValue;
82702
82715
  };
82703
82716
  const boardStyle = computed(() => ({