@factoringplus/pl-components-pack-v3 0.4.33 → 0.4.35

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.
@@ -24496,6 +24496,10 @@ const _sfc_main$y = {
24496
24496
  type: String,
24497
24497
  default: "name"
24498
24498
  },
24499
+ getValid: {
24500
+ type: Boolean,
24501
+ default: false
24502
+ },
24499
24503
  maxLength: {
24500
24504
  type: Number,
24501
24505
  default: 210
@@ -24551,10 +24555,12 @@ const _sfc_main$y = {
24551
24555
  default: "100px"
24552
24556
  }
24553
24557
  },
24554
- emits: ["update:modelValue", "validate"],
24558
+ emits: ["update:modelValue", "validate", "isValid"],
24555
24559
  setup(__props, { emit: emit2 }) {
24556
24560
  const props = __props;
24561
+ const refInput = ref();
24557
24562
  let { modelValue } = toRefs(props);
24563
+ const { getValid } = toRefs(props);
24558
24564
  const ruleForm = reactive({
24559
24565
  [props.prop]: modelValue
24560
24566
  });
@@ -24576,6 +24582,12 @@ const _sfc_main$y = {
24576
24582
  const label = document.getElementById(`${id}`);
24577
24583
  widthLabel.value = label.children[0].children[0].clientWidth;
24578
24584
  }, 0);
24585
+ watch(getValid, (val) => {
24586
+ if (val) {
24587
+ refInput.value.validate();
24588
+ emit2("isValid");
24589
+ }
24590
+ });
24579
24591
  return (_ctx, _cache) => {
24580
24592
  const _component_el_input = ElInput;
24581
24593
  const _component_el_form_item = ElFormItem;
@@ -24585,7 +24597,8 @@ const _sfc_main$y = {
24585
24597
  onValidate: validateInp,
24586
24598
  "label-position": "top",
24587
24599
  model: ruleForm,
24588
- ref: "form",
24600
+ ref_key: "refInput",
24601
+ ref: refInput,
24589
24602
  rules: __props.rules
24590
24603
  }, {
24591
24604
  default: withCtx(() => [
@@ -43896,9 +43909,14 @@ const PlCardPlugin = {
43896
43909
  app.component("PlCard", _sfc_main);
43897
43910
  }
43898
43911
  };
43912
+ const PlCheckboxPlugin = {
43913
+ install(app) {
43914
+ app.component("PlCheckbox", _sfc_main$5);
43915
+ }
43916
+ };
43899
43917
  const PlPlugin = {
43900
43918
  install(app) {
43901
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
43919
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
43902
43920
  (_a2 = PlCurrencyPlugin.install) == null ? void 0 : _a2.call(PlCurrencyPlugin, app);
43903
43921
  (_b = PlFormItemPlugin.install) == null ? void 0 : _b.call(PlFormItemPlugin, app);
43904
43922
  (_c = PlFormPlugin.install) == null ? void 0 : _c.call(PlFormPlugin, app);
@@ -43917,8 +43935,9 @@ const PlPlugin = {
43917
43935
  (_p = PlSelectPlugin.install) == null ? void 0 : _p.call(PlSelectPlugin, app);
43918
43936
  (_q = PlDatePickerPlusPlugin.install) == null ? void 0 : _q.call(PlDatePickerPlusPlugin, app);
43919
43937
  (_r = PlCardPlugin.install) == null ? void 0 : _r.call(PlCardPlugin, app);
43938
+ (_s = PlCheckboxPlugin.install) == null ? void 0 : _s.call(PlCheckboxPlugin, app);
43920
43939
  },
43921
43940
  apiJs: ApiJs,
43922
43941
  loader: loadingAndSetup
43923
43942
  };
43924
- export { PlButton, PlButtonPlugin, _sfc_main as PlCard, PlCardPlugin, _sfc_main$r as PlCertDialog, PlCertDialogPlugin, _sfc_main$A as PlCurrency, PlCurrencyPlugin, _sfc_main$s as PlDatePicker, PlDatePickerPlugin, _sfc_main$d as PlDatePickerPlus, PlDatePickerPlusPlugin, _sfc_main$t as PlDatePickerRange, _sfc_main$z as PlForm, PlFormItem, PlFormItemPlugin, PlFormPlugin, _sfc_main$y as PlInput, _sfc_main$x as PlInputNative, PlInputNativePlugin, PlInputPlugin, _sfc_main$2 as PlStepper, PlStepperPlugin, _sfc_main$q as PlTable, _sfc_main$p as PlTableColumn, PlTablePlugin, _sfc_main$o as PlUpload, PlUploadPlugin, _sfc_main$v as TestViteNpmComponent, TestViteNpmComponentPlugin, PlPlugin as default };
43943
+ export { PlButton, PlButtonPlugin, _sfc_main as PlCard, PlCardPlugin, _sfc_main$r as PlCertDialog, PlCertDialogPlugin, _sfc_main$5 as PlCheckbox, PlCheckboxPlugin, _sfc_main$A as PlCurrency, PlCurrencyPlugin, _sfc_main$s as PlDatePicker, PlDatePickerPlugin, _sfc_main$d as PlDatePickerPlus, PlDatePickerPlusPlugin, _sfc_main$t as PlDatePickerRange, _sfc_main$z as PlForm, PlFormItem, PlFormItemPlugin, PlFormPlugin, _sfc_main$y as PlInput, _sfc_main$x as PlInputNative, PlInputNativePlugin, PlInputPlugin, _sfc_main$2 as PlStepper, PlStepperPlugin, _sfc_main$q as PlTable, _sfc_main$p as PlTableColumn, PlTablePlugin, _sfc_main$o as PlUpload, PlUploadPlugin, _sfc_main$v as TestViteNpmComponent, TestViteNpmComponentPlugin, PlPlugin as default };