@factoringplus/pl-components-pack-v3 0.4.52 → 0.4.54

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.
@@ -24718,9 +24718,9 @@ const _sfc_main$z = {
24718
24718
  prop: __props.prop
24719
24719
  }, {
24720
24720
  default: withCtx(() => [
24721
- !unref(currency) ? (openBlock(), createBlock(_component_el_input, {
24721
+ !unref(currency) ? (openBlock(), createBlock(_component_el_input, mergeProps({
24722
24722
  key: 0,
24723
- class: normalizeClass({ padding: props.prefix }),
24723
+ class: { padding: props.prefix },
24724
24724
  minlength: __props.minLength,
24725
24725
  maxlength: __props.maxLength,
24726
24726
  disabled: props.disabled,
@@ -24728,11 +24728,12 @@ const _sfc_main$z = {
24728
24728
  modelValue: unref(modelValue),
24729
24729
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
24730
24730
  type: unref(getTypeInput),
24731
- resize: "none",
24731
+ resize: "none"
24732
+ }, _ctx.$attrs, {
24732
24733
  autosize: { minRows: 3, maxRows: 6 },
24733
24734
  clearable: props.clearable,
24734
24735
  onInput: updateValue
24735
- }, null, 8, ["class", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
24736
+ }), null, 16, ["class", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
24736
24737
  key: 1,
24737
24738
  onKeydown: keydown,
24738
24739
  class: { padding: props.prefix },
@@ -36237,24 +36238,23 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign(__default__$2, {
36237
36238
  modelValue: { type: Array, default: () => [] },
36238
36239
  header: { type: Boolean, default: true },
36239
36240
  main: { type: Boolean, default: true },
36240
- height: { type: String, default: "150" }
36241
+ height: { type: String, default: "150" },
36242
+ limit: { type: Number }
36241
36243
  },
36242
36244
  emits: [
36243
36245
  "on-files-not-attached",
36244
36246
  "on-file-not-accept",
36245
36247
  "on-file-size-exceeded",
36246
36248
  "on-file-empty",
36247
- "on-change",
36248
- "on-success",
36249
- "input",
36250
- "on-error"
36249
+ "on-file-not-limit",
36250
+ "on-change"
36251
36251
  ],
36252
36252
  setup(__props, { emit: emit2 }) {
36253
36253
  const props = __props;
36254
36254
  ref(false);
36255
36255
  const fileList = ref(props.modelValue);
36256
36256
  const el = ref(null);
36257
- const { modelValue } = toRefs(props);
36257
+ const { modelValue, limit } = toRefs(props);
36258
36258
  watch(modelValue, (newValue) => {
36259
36259
  fileList.value = newValue;
36260
36260
  });
@@ -36263,6 +36263,11 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign(__default__$2, {
36263
36263
  emit2("on-files-not-attached", file, fileList2);
36264
36264
  return;
36265
36265
  }
36266
+ if (fileList2.length > limit.value) {
36267
+ fileList2.splice(-1);
36268
+ emit2("on-file-not-limit", file, fileList2);
36269
+ return;
36270
+ }
36266
36271
  if (props.accept !== "any" || props.accept !== "\u043B\u044E\u0431\u043E\u0439") {
36267
36272
  const fileArr = file.name.split(".");
36268
36273
  const fileExtension = "." + fileArr[fileArr.length - 1].toLowerCase();
@@ -36573,7 +36578,8 @@ const ApiJs = function(optionsRequest, isGetResourse = false, token) {
36573
36578
  ...options.headers
36574
36579
  },
36575
36580
  data: formatDateObj(options.data, true),
36576
- responseType: options.responseType
36581
+ responseType: options.responseType,
36582
+ signal: options.signal
36577
36583
  }).then((resourse) => {
36578
36584
  if (isGetResourse)
36579
36585
  resolve(formatDateObj(resourse));