@factoringplus/pl-components-pack-v3 0.1.92 → 0.1.93

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.
@@ -1408,7 +1408,7 @@ function debounceFilter(ms, options = {}) {
1408
1408
  function useDebounceFn(fn2, ms = 200, options = {}) {
1409
1409
  return createFilterWrapper(debounceFilter(ms, options), fn2);
1410
1410
  }
1411
- function refDebounced(value, ms = 200, options = {}) {
1411
+ function refDebounced(value, ms, options = {}) {
1412
1412
  if (ms <= 0)
1413
1413
  return value;
1414
1414
  const debounced = ref(value.value);
@@ -2360,7 +2360,7 @@ const generateId = () => Math.floor(Math.random() * 1e4);
2360
2360
  const mutable = (val) => val;
2361
2361
  const DEFAULT_EXCLUDE_KEYS = ["class", "style"];
2362
2362
  const LISTENER_PREFIX = /^on[A-Z]/;
2363
- const useAttrs = (params = {}) => {
2363
+ const useAttrs = (params) => {
2364
2364
  const { excludeListeners = false, excludeKeys } = params;
2365
2365
  const allExcludeKeys = computed(() => {
2366
2366
  return ((excludeKeys == null ? void 0 : excludeKeys.value) || []).concat(DEFAULT_EXCLUDE_KEYS);
@@ -2450,7 +2450,7 @@ const useDisabled$1 = (fallback) => {
2450
2450
  const form2 = inject(formContextKey, void 0);
2451
2451
  return computed(() => disabled.value || unref(fallback) || (form2 == null ? void 0 : form2.disabled) || false);
2452
2452
  };
2453
- const useDeprecated = ({ from: from2, replacement, scope, version, ref: ref2, type: type4 = "API" }, condition) => {
2453
+ const useDeprecated = ({ from: from2, replacement, scope, version, ref: ref2, type: type4 }, condition) => {
2454
2454
  watch(() => unref(condition), (val) => {
2455
2455
  }, {
2456
2456
  immediate: true
@@ -5088,7 +5088,7 @@ const createFocusableStack = () => {
5088
5088
  remove
5089
5089
  };
5090
5090
  };
5091
- const focusFirstDescendant = (elements, shouldSelect = false) => {
5091
+ const focusFirstDescendant = (elements, shouldSelect) => {
5092
5092
  const prevFocusedElement = document.activeElement;
5093
5093
  for (const element of elements) {
5094
5094
  tryFocus(element, shouldSelect);
@@ -7098,7 +7098,7 @@ var TinyColor = function() {
7098
7098
  };
7099
7099
  return TinyColor2;
7100
7100
  }();
7101
- function darken(color, amount = 20) {
7101
+ function darken(color, amount) {
7102
7102
  return color.mix("#141414", amount).toString();
7103
7103
  }
7104
7104
  function useButtonCustomStyle(props) {
@@ -13312,7 +13312,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
13312
13312
  return filteredFields;
13313
13313
  };
13314
13314
  const validate = async (callback) => validateField(void 0, callback);
13315
- const doValidateField = async (props2 = []) => {
13315
+ const doValidateField = async (props2) => {
13316
13316
  if (!isValidatable.value)
13317
13317
  return false;
13318
13318
  const fields2 = obtainValidateFields(props2);
@@ -14460,7 +14460,7 @@ var FormLabelWrap = defineComponent({
14460
14460
  return 0;
14461
14461
  }
14462
14462
  };
14463
- const updateLabelWidth = (action = "update") => {
14463
+ const updateLabelWidth = (action) => {
14464
14464
  nextTick(() => {
14465
14465
  if (slots.default && props.isAutoWidth) {
14466
14466
  if (action === "update") {
@@ -22401,7 +22401,7 @@ const useHandlers = (props, uploadRef) => {
22401
22401
  var _a2;
22402
22402
  (_a2 = uploadRef.value) == null ? void 0 : _a2.abort(file);
22403
22403
  }
22404
- function clearFiles(states = ["ready", "uploading", "success", "fail"]) {
22404
+ function clearFiles(states) {
22405
22405
  uploadFiles.value = uploadFiles.value.filter((row) => !states.includes(row.status));
22406
22406
  }
22407
22407
  const handleError = (err, rawFile) => {
@@ -37129,7 +37129,10 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign(__default__$4, {
37129
37129
  const hide2 = () => visible.value = false;
37130
37130
  const onAppendClickSingle = () => {
37131
37131
  hide2();
37132
- const certInfo = _.find(validCerts.value, ["thumbprint", dataForm.thumbprint]);
37132
+ const certInfo = _.find(validCerts.value, [
37133
+ "thumbprint",
37134
+ dataForm.thumbprint
37135
+ ]);
37133
37136
  if (certInfo == null) {
37134
37137
  ElMessage.error("\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u0435.");
37135
37138
  } else {
@@ -37144,7 +37147,10 @@ const _sfc_main$4 = /* @__PURE__ */ Object.assign(__default__$4, {
37144
37147
  form2.value.validate((isFormValid) => {
37145
37148
  if (isFormValid) {
37146
37149
  hide2();
37147
- const certInfo = _.find(validCerts.value, ["thumbprint", dataForm.thumbprint]);
37150
+ const certInfo = _.find(validCerts.value, [
37151
+ "thumbprint",
37152
+ dataForm.thumbprint
37153
+ ]);
37148
37154
  if (certInfo == null) {
37149
37155
  ElMessage.error("\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u0435.");
37150
37156
  } else {
@@ -38582,7 +38588,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign(__default__$1, {
38582
38588
  drag: { type: Boolean, default: true },
38583
38589
  multiple: { type: Boolean, default: true },
38584
38590
  buttonText: { type: String, default: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0444\u0430\u0439\u043B..." },
38585
- accept: { type: String, default: ".doc, .docx, .pdf, .jpeg, .png, .xlsx, .xls, .txt" },
38591
+ accept: { type: String, default: ".doc, .docx, .pdf, .jpeg, .jpg, .png, .xlsx, .xls, .txt" },
38586
38592
  fileSize: { type: Number, default: 20 },
38587
38593
  modelValue: { type: Array, default: () => [] },
38588
38594
  header: { type: Boolean, default: true },
@@ -38642,7 +38648,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign(__default__$1, {
38642
38648
  }
38643
38649
  if (props.accept !== "any" || props.accept !== "\u043B\u044E\u0431\u043E\u0439") {
38644
38650
  const fileArr = file.name.split(".");
38645
- const fileExtension = "." + fileArr[fileArr.length - 1];
38651
+ const fileExtension = "." + fileArr[fileArr.length - 1].toLowerCase();
38646
38652
  const acceptedArr = props.accept.split(", ");
38647
38653
  if (acceptedArr.indexOf(fileExtension) === -1) {
38648
38654
  fileList2.splice(-1);
@@ -39046,7 +39052,6 @@ const PlPlugin = {
39046
39052
  (_h = PlSuggestionsPlugin.install) == null ? void 0 : _h.call(PlSuggestionsPlugin, app);
39047
39053
  },
39048
39054
  apiJs: ApiJs,
39049
- loader: loadingAndSetup,
39050
- test: "test"
39055
+ loader: loadingAndSetup
39051
39056
  };
39052
39057
  export { PlButton, PlButtonPlugin, _sfc_main$4 as PlCertDialog, PlCertDialogPlugin, _sfc_main$8 as PlCurrency, PlCurrencyPlugin, _sfc_main$5 as PlDatePickerRange, PlDatePickerRangePlugin, _sfc_main$3 as PlTable, _sfc_main$2 as PlTableColumn, PlTablePlugin, _sfc_main$1 as PlUpload, PlUploadPlugin, _sfc_main$7 as TestViteNpmComponent, TestViteNpmComponentPlugin, PlPlugin as default };