@factoringplus/pl-components-pack-v3 0.5.30-pre-1 → 0.5.30-pre-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.
@@ -2177,7 +2177,7 @@ var export_helper_default = (sfc, props) => {
2177
2177
  var arrow_down_vue_vue_type_script_lang_default = {
2178
2178
  name: "ArrowDown"
2179
2179
  };
2180
- var _hoisted_16$3 = {
2180
+ var _hoisted_16$4 = {
2181
2181
  viewBox: "0 0 1024 1024",
2182
2182
  xmlns: "http://www.w3.org/2000/svg"
2183
2183
  }, _hoisted_26$1 = /* @__PURE__ */ createElementVNode("path", {
@@ -2187,13 +2187,13 @@ var _hoisted_16$3 = {
2187
2187
  _hoisted_26$1
2188
2188
  ];
2189
2189
  function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
2190
- return openBlock(), createElementBlock("svg", _hoisted_16$3, _hoisted_36);
2190
+ return openBlock(), createElementBlock("svg", _hoisted_16$4, _hoisted_36);
2191
2191
  }
2192
2192
  var arrow_down_default = /* @__PURE__ */ export_helper_default(arrow_down_vue_vue_type_script_lang_default, [["render", _sfc_render6], ["__file", "arrow-down.vue"]]);
2193
2193
  var arrow_left_vue_vue_type_script_lang_default = {
2194
2194
  name: "ArrowLeft"
2195
2195
  };
2196
- var _hoisted_18$2 = {
2196
+ var _hoisted_18$3 = {
2197
2197
  viewBox: "0 0 1024 1024",
2198
2198
  xmlns: "http://www.w3.org/2000/svg"
2199
2199
  }, _hoisted_28$1 = /* @__PURE__ */ createElementVNode("path", {
@@ -2203,7 +2203,7 @@ var _hoisted_18$2 = {
2203
2203
  _hoisted_28$1
2204
2204
  ];
2205
2205
  function _sfc_render8(_ctx, _cache, $props, $setup, $data, $options) {
2206
- return openBlock(), createElementBlock("svg", _hoisted_18$2, _hoisted_38);
2206
+ return openBlock(), createElementBlock("svg", _hoisted_18$3, _hoisted_38);
2207
2207
  }
2208
2208
  var arrow_left_default = /* @__PURE__ */ export_helper_default(arrow_left_vue_vue_type_script_lang_default, [["render", _sfc_render8], ["__file", "arrow-left.vue"]]);
2209
2209
  var arrow_right_vue_vue_type_script_lang_default = {
@@ -3833,12 +3833,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3833
3833
  const props = __props;
3834
3834
  const ns2 = useNamespace("icon");
3835
3835
  const style = computed$1(() => {
3836
- const { size, color } = props;
3837
- if (!size && !color)
3836
+ const { size, color: color2 } = props;
3837
+ if (!size && !color2)
3838
3838
  return {};
3839
3839
  return {
3840
3840
  fontSize: isUndefined$1(size) ? void 0 : addUnit(size),
3841
- "--color": color
3841
+ "--color": color2
3842
3842
  };
3843
3843
  });
3844
3844
  return (_ctx, _cache) => {
@@ -7238,11 +7238,11 @@ function convertHexToDecimal(h2) {
7238
7238
  function parseIntFromHex(val) {
7239
7239
  return parseInt(val, 16);
7240
7240
  }
7241
- function numberInputToObject(color) {
7241
+ function numberInputToObject(color2) {
7242
7242
  return {
7243
- r: color >> 16,
7244
- g: (color & 65280) >> 8,
7245
- b: color & 255
7243
+ r: color2 >> 16,
7244
+ g: (color2 & 65280) >> 8,
7245
+ b: color2 & 255
7246
7246
  };
7247
7247
  }
7248
7248
  var names = {
@@ -7395,7 +7395,7 @@ var names = {
7395
7395
  yellow: "#ffff00",
7396
7396
  yellowgreen: "#9acd32"
7397
7397
  };
7398
- function inputToRGB(color) {
7398
+ function inputToRGB(color2) {
7399
7399
  var rgb = { r: 0, g: 0, b: 0 };
7400
7400
  var a2 = 1;
7401
7401
  var s2 = null;
@@ -7403,35 +7403,35 @@ function inputToRGB(color) {
7403
7403
  var l2 = null;
7404
7404
  var ok = false;
7405
7405
  var format2 = false;
7406
- if (typeof color === "string") {
7407
- color = stringInputToObject(color);
7406
+ if (typeof color2 === "string") {
7407
+ color2 = stringInputToObject(color2);
7408
7408
  }
7409
- if (typeof color === "object") {
7410
- if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
7411
- rgb = rgbToRgb(color.r, color.g, color.b);
7409
+ if (typeof color2 === "object") {
7410
+ if (isValidCSSUnit(color2.r) && isValidCSSUnit(color2.g) && isValidCSSUnit(color2.b)) {
7411
+ rgb = rgbToRgb(color2.r, color2.g, color2.b);
7412
7412
  ok = true;
7413
- format2 = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
7414
- } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
7415
- s2 = convertToPercentage(color.s);
7416
- v2 = convertToPercentage(color.v);
7417
- rgb = hsvToRgb(color.h, s2, v2);
7413
+ format2 = String(color2.r).substr(-1) === "%" ? "prgb" : "rgb";
7414
+ } else if (isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.v)) {
7415
+ s2 = convertToPercentage(color2.s);
7416
+ v2 = convertToPercentage(color2.v);
7417
+ rgb = hsvToRgb(color2.h, s2, v2);
7418
7418
  ok = true;
7419
7419
  format2 = "hsv";
7420
- } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
7421
- s2 = convertToPercentage(color.s);
7422
- l2 = convertToPercentage(color.l);
7423
- rgb = hslToRgb(color.h, s2, l2);
7420
+ } else if (isValidCSSUnit(color2.h) && isValidCSSUnit(color2.s) && isValidCSSUnit(color2.l)) {
7421
+ s2 = convertToPercentage(color2.s);
7422
+ l2 = convertToPercentage(color2.l);
7423
+ rgb = hslToRgb(color2.h, s2, l2);
7424
7424
  ok = true;
7425
7425
  format2 = "hsl";
7426
7426
  }
7427
- if (Object.prototype.hasOwnProperty.call(color, "a")) {
7428
- a2 = color.a;
7427
+ if (Object.prototype.hasOwnProperty.call(color2, "a")) {
7428
+ a2 = color2.a;
7429
7429
  }
7430
7430
  }
7431
7431
  a2 = boundAlpha(a2);
7432
7432
  return {
7433
7433
  ok,
7434
- format: color.format || format2,
7434
+ format: color2.format || format2,
7435
7435
  r: Math.min(255, Math.max(rgb.r, 0)),
7436
7436
  g: Math.min(255, Math.max(rgb.g, 0)),
7437
7437
  b: Math.min(255, Math.max(rgb.b, 0)),
@@ -7456,43 +7456,43 @@ var matchers = {
7456
7456
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
7457
7457
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
7458
7458
  };
7459
- function stringInputToObject(color) {
7460
- color = color.trim().toLowerCase();
7461
- if (color.length === 0) {
7459
+ function stringInputToObject(color2) {
7460
+ color2 = color2.trim().toLowerCase();
7461
+ if (color2.length === 0) {
7462
7462
  return false;
7463
7463
  }
7464
7464
  var named = false;
7465
- if (names[color]) {
7466
- color = names[color];
7465
+ if (names[color2]) {
7466
+ color2 = names[color2];
7467
7467
  named = true;
7468
- } else if (color === "transparent") {
7468
+ } else if (color2 === "transparent") {
7469
7469
  return { r: 0, g: 0, b: 0, a: 0, format: "name" };
7470
7470
  }
7471
- var match = matchers.rgb.exec(color);
7471
+ var match = matchers.rgb.exec(color2);
7472
7472
  if (match) {
7473
7473
  return { r: match[1], g: match[2], b: match[3] };
7474
7474
  }
7475
- match = matchers.rgba.exec(color);
7475
+ match = matchers.rgba.exec(color2);
7476
7476
  if (match) {
7477
7477
  return { r: match[1], g: match[2], b: match[3], a: match[4] };
7478
7478
  }
7479
- match = matchers.hsl.exec(color);
7479
+ match = matchers.hsl.exec(color2);
7480
7480
  if (match) {
7481
7481
  return { h: match[1], s: match[2], l: match[3] };
7482
7482
  }
7483
- match = matchers.hsla.exec(color);
7483
+ match = matchers.hsla.exec(color2);
7484
7484
  if (match) {
7485
7485
  return { h: match[1], s: match[2], l: match[3], a: match[4] };
7486
7486
  }
7487
- match = matchers.hsv.exec(color);
7487
+ match = matchers.hsv.exec(color2);
7488
7488
  if (match) {
7489
7489
  return { h: match[1], s: match[2], v: match[3] };
7490
7490
  }
7491
- match = matchers.hsva.exec(color);
7491
+ match = matchers.hsva.exec(color2);
7492
7492
  if (match) {
7493
7493
  return { h: match[1], s: match[2], v: match[3], a: match[4] };
7494
7494
  }
7495
- match = matchers.hex8.exec(color);
7495
+ match = matchers.hex8.exec(color2);
7496
7496
  if (match) {
7497
7497
  return {
7498
7498
  r: parseIntFromHex(match[1]),
@@ -7502,7 +7502,7 @@ function stringInputToObject(color) {
7502
7502
  format: named ? "name" : "hex8"
7503
7503
  };
7504
7504
  }
7505
- match = matchers.hex6.exec(color);
7505
+ match = matchers.hex6.exec(color2);
7506
7506
  if (match) {
7507
7507
  return {
7508
7508
  r: parseIntFromHex(match[1]),
@@ -7511,7 +7511,7 @@ function stringInputToObject(color) {
7511
7511
  format: named ? "name" : "hex"
7512
7512
  };
7513
7513
  }
7514
- match = matchers.hex4.exec(color);
7514
+ match = matchers.hex4.exec(color2);
7515
7515
  if (match) {
7516
7516
  return {
7517
7517
  r: parseIntFromHex(match[1] + match[1]),
@@ -7521,7 +7521,7 @@ function stringInputToObject(color) {
7521
7521
  format: named ? "name" : "hex8"
7522
7522
  };
7523
7523
  }
7524
- match = matchers.hex3.exec(color);
7524
+ match = matchers.hex3.exec(color2);
7525
7525
  if (match) {
7526
7526
  return {
7527
7527
  r: parseIntFromHex(match[1] + match[1]),
@@ -7532,27 +7532,27 @@ function stringInputToObject(color) {
7532
7532
  }
7533
7533
  return false;
7534
7534
  }
7535
- function isValidCSSUnit(color) {
7536
- return Boolean(matchers.CSS_UNIT.exec(String(color)));
7535
+ function isValidCSSUnit(color2) {
7536
+ return Boolean(matchers.CSS_UNIT.exec(String(color2)));
7537
7537
  }
7538
7538
  var TinyColor = function() {
7539
- function TinyColor2(color, opts) {
7540
- if (color === void 0) {
7541
- color = "";
7539
+ function TinyColor2(color2, opts) {
7540
+ if (color2 === void 0) {
7541
+ color2 = "";
7542
7542
  }
7543
7543
  if (opts === void 0) {
7544
7544
  opts = {};
7545
7545
  }
7546
7546
  var _a2;
7547
- if (color instanceof TinyColor2) {
7548
- return color;
7547
+ if (color2 instanceof TinyColor2) {
7548
+ return color2;
7549
7549
  }
7550
- if (typeof color === "number") {
7551
- color = numberInputToObject(color);
7550
+ if (typeof color2 === "number") {
7551
+ color2 = numberInputToObject(color2);
7552
7552
  }
7553
- this.originalInput = color;
7554
- var rgb = inputToRGB(color);
7555
- this.originalInput = color;
7553
+ this.originalInput = color2;
7554
+ var rgb = inputToRGB(color2);
7555
+ this.originalInput = color2;
7556
7556
  this.r = rgb.r;
7557
7557
  this.g = rgb.g;
7558
7558
  this.b = rgb.b;
@@ -7821,12 +7821,12 @@ var TinyColor = function() {
7821
7821
  hsl.h = hue < 0 ? 360 + hue : hue;
7822
7822
  return new TinyColor2(hsl);
7823
7823
  };
7824
- TinyColor2.prototype.mix = function(color, amount) {
7824
+ TinyColor2.prototype.mix = function(color2, amount) {
7825
7825
  if (amount === void 0) {
7826
7826
  amount = 50;
7827
7827
  }
7828
7828
  var rgb1 = this.toRgb();
7829
- var rgb2 = new TinyColor2(color).toRgb();
7829
+ var rgb2 = new TinyColor2(color2).toRgb();
7830
7830
  var p2 = amount / 100;
7831
7831
  var rgba = {
7832
7832
  r: (rgb2.r - rgb1.r) * p2 + rgb1.r,
@@ -7907,13 +7907,13 @@ var TinyColor = function() {
7907
7907
  }
7908
7908
  return result;
7909
7909
  };
7910
- TinyColor2.prototype.equals = function(color) {
7911
- return this.toRgbString() === new TinyColor2(color).toRgbString();
7910
+ TinyColor2.prototype.equals = function(color2) {
7911
+ return this.toRgbString() === new TinyColor2(color2).toRgbString();
7912
7912
  };
7913
7913
  return TinyColor2;
7914
7914
  }();
7915
- function darken(color, amount = 20) {
7916
- return color.mix("#141414", amount).toString();
7915
+ function darken(color2, amount = 20) {
7916
+ return color2.mix("#141414", amount).toString();
7917
7917
  }
7918
7918
  function useButtonCustomStyle(props) {
7919
7919
  const _disabled = useDisabled();
@@ -7922,13 +7922,13 @@ function useButtonCustomStyle(props) {
7922
7922
  let styles = {};
7923
7923
  const buttonColor = props.color;
7924
7924
  if (buttonColor) {
7925
- const color = new TinyColor(buttonColor);
7926
- const activeBgColor = props.dark ? color.tint(20).toString() : darken(color, 20);
7925
+ const color2 = new TinyColor(buttonColor);
7926
+ const activeBgColor = props.dark ? color2.tint(20).toString() : darken(color2, 20);
7927
7927
  if (props.plain) {
7928
7928
  styles = ns2.cssVarBlock({
7929
- "bg-color": props.dark ? darken(color, 90) : color.tint(90).toString(),
7929
+ "bg-color": props.dark ? darken(color2, 90) : color2.tint(90).toString(),
7930
7930
  "text-color": buttonColor,
7931
- "border-color": props.dark ? darken(color, 50) : color.tint(50).toString(),
7931
+ "border-color": props.dark ? darken(color2, 50) : color2.tint(50).toString(),
7932
7932
  "hover-text-color": `var(${ns2.cssVarName("color-white")})`,
7933
7933
  "hover-bg-color": buttonColor,
7934
7934
  "hover-border-color": buttonColor,
@@ -7937,13 +7937,13 @@ function useButtonCustomStyle(props) {
7937
7937
  "active-border-color": activeBgColor
7938
7938
  });
7939
7939
  if (_disabled.value) {
7940
- styles[ns2.cssVarBlockName("disabled-bg-color")] = props.dark ? darken(color, 90) : color.tint(90).toString();
7941
- styles[ns2.cssVarBlockName("disabled-text-color")] = props.dark ? darken(color, 50) : color.tint(50).toString();
7942
- styles[ns2.cssVarBlockName("disabled-border-color")] = props.dark ? darken(color, 80) : color.tint(80).toString();
7940
+ styles[ns2.cssVarBlockName("disabled-bg-color")] = props.dark ? darken(color2, 90) : color2.tint(90).toString();
7941
+ styles[ns2.cssVarBlockName("disabled-text-color")] = props.dark ? darken(color2, 50) : color2.tint(50).toString();
7942
+ styles[ns2.cssVarBlockName("disabled-border-color")] = props.dark ? darken(color2, 80) : color2.tint(80).toString();
7943
7943
  }
7944
7944
  } else {
7945
- const hoverBgColor = props.dark ? darken(color, 30) : color.tint(30).toString();
7946
- const textColor = color.isDark() ? `var(${ns2.cssVarName("color-white")})` : `var(${ns2.cssVarName("color-black")})`;
7945
+ const hoverBgColor = props.dark ? darken(color2, 30) : color2.tint(30).toString();
7946
+ const textColor = color2.isDark() ? `var(${ns2.cssVarName("color-white")})` : `var(${ns2.cssVarName("color-black")})`;
7947
7947
  styles = ns2.cssVarBlock({
7948
7948
  "bg-color": buttonColor,
7949
7949
  "text-color": textColor,
@@ -7955,7 +7955,7 @@ function useButtonCustomStyle(props) {
7955
7955
  "active-border-color": activeBgColor
7956
7956
  });
7957
7957
  if (_disabled.value) {
7958
- const disabledButtonColor = props.dark ? darken(color, 50) : color.tint(50).toString();
7958
+ const disabledButtonColor = props.dark ? darken(color2, 50) : color2.tint(50).toString();
7959
7959
  styles[ns2.cssVarBlockName("disabled-bg-color")] = disabledButtonColor;
7960
7960
  styles[ns2.cssVarBlockName("disabled-text-color")] = props.dark ? "rgba(255, 255, 255, 0.5)" : `var(${ns2.cssVarName("color-white")})`;
7961
7961
  styles[ns2.cssVarBlockName("disabled-border-color")] = disabledButtonColor;
@@ -18249,9 +18249,9 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
18249
18249
  return props.type === "line" ? 12 + props.strokeWidth * 0.4 : props.width * 0.111111 + 2;
18250
18250
  });
18251
18251
  const content = computed$1(() => props.format(props.percentage));
18252
- function getColors(color) {
18253
- const span = 100 / color.length;
18254
- const seriesColors = color.map((seriesColor, index) => {
18252
+ function getColors(color2) {
18253
+ const span = 100 / color2.length;
18254
+ const seriesColors = color2.map((seriesColor, index) => {
18255
18255
  if (isString$1(seriesColor)) {
18256
18256
  return {
18257
18257
  color: seriesColor,
@@ -18264,16 +18264,16 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
18264
18264
  }
18265
18265
  const getCurrentColor = (percentage) => {
18266
18266
  var _a2;
18267
- const { color } = props;
18268
- if (isFunction$1(color)) {
18269
- return color(percentage);
18270
- } else if (isString$1(color)) {
18271
- return color;
18267
+ const { color: color2 } = props;
18268
+ if (isFunction$1(color2)) {
18269
+ return color2(percentage);
18270
+ } else if (isString$1(color2)) {
18271
+ return color2;
18272
18272
  } else {
18273
- const colors = getColors(color);
18274
- for (const color2 of colors) {
18275
- if (color2.percentage > percentage)
18276
- return color2.color;
18273
+ const colors = getColors(color2);
18274
+ for (const color22 of colors) {
18275
+ if (color22.percentage > percentage)
18276
+ return color22.color;
18277
18277
  }
18278
18278
  return (_a2 = colors[colors.length - 1]) == null ? void 0 : _a2.color;
18279
18279
  }
@@ -25376,7 +25376,7 @@ const _sfc_main$E = {
25376
25376
  const { model, rules: rules2 } = toRefs(props);
25377
25377
  const errorsState = ref([]);
25378
25378
  provide("errorsState", errorsState);
25379
- const validate = async (callback) => {
25379
+ const validate = (callback) => {
25380
25380
  return new Promise((resolve, reject) => {
25381
25381
  const validator2 = new Schema(rules2.value);
25382
25382
  validator2.validate(model.value, (errors, fields) => {
@@ -25392,6 +25392,19 @@ const _sfc_main$E = {
25392
25392
  });
25393
25393
  });
25394
25394
  };
25395
+ const validateField = (prop) => {
25396
+ const rulesValidate = {};
25397
+ const source2 = {};
25398
+ rulesValidate[prop] = rules2.value[prop];
25399
+ source2[prop] = model.value[prop];
25400
+ const validator2 = new Schema(rulesValidate);
25401
+ validator2.validate(source2, (errors, fields) => {
25402
+ errorsState.value = errorsState.value.filter((error2) => error2.field !== prop);
25403
+ if (errors) {
25404
+ errorsState.value = errorsState.value.concat(errors);
25405
+ }
25406
+ });
25407
+ };
25395
25408
  const clearValidate = (props2 = []) => {
25396
25409
  if (Array.isArray(props2) && props2.length > 0) {
25397
25410
  props2.forEach((prop) => {
@@ -25413,25 +25426,12 @@ const _sfc_main$E = {
25413
25426
  clearValidate(props2);
25414
25427
  model.value[props2] = null;
25415
25428
  } else {
25429
+ clearValidate(props2);
25416
25430
  for (let prop in model.value) {
25417
25431
  model.value[prop] = null;
25418
25432
  }
25419
- clearValidate(props2);
25420
25433
  }
25421
25434
  };
25422
- const validateField = (prop) => {
25423
- const rulesValidate = {};
25424
- const source2 = {};
25425
- rulesValidate[prop] = rules2.value[prop];
25426
- source2[prop] = model.value[prop];
25427
- const validator2 = new Schema(rulesValidate);
25428
- validator2.validate(source2, (errors, fields) => {
25429
- errorsState.value = errorsState.value.filter((error2) => error2.field !== prop);
25430
- if (errors) {
25431
- errorsState.value = errorsState.value.concat(errors);
25432
- }
25433
- });
25434
- };
25435
25435
  const plFormRef = ref(null);
25436
25436
  onMounted(() => {
25437
25437
  const ref2 = plFormRef.value;
@@ -25901,7 +25901,7 @@ var _export_sfc = (sfc, props) => {
25901
25901
  }
25902
25902
  return target;
25903
25903
  };
25904
- const _withScopeId$1 = (n2) => (pushScopeId("data-v-50fa79da"), n2 = n2(), popScopeId(), n2);
25904
+ const _withScopeId$1 = (n2) => (pushScopeId("data-v-71920af7"), n2 = n2(), popScopeId(), n2);
25905
25905
  const _hoisted_1$y = { class: "pl-input__container" };
25906
25906
  const _hoisted_2$t = {
25907
25907
  key: 0,
@@ -25911,20 +25911,45 @@ const _hoisted_3$o = {
25911
25911
  key: 1,
25912
25912
  class: "pl-input__optional"
25913
25913
  };
25914
- const _hoisted_4$i = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-input__currency" }, "\u20BD", -1));
25914
+ const _hoisted_4$i = { class: "pl-input__wrapper" };
25915
25915
  const _hoisted_5$c = {
25916
+ key: 0,
25917
+ class: "pl-input__prefix"
25918
+ };
25919
+ const _hoisted_6$8 = ["disabled"];
25920
+ const _hoisted_7$6 = {
25921
+ key: 1,
25922
+ class: "pl-input__suffix"
25923
+ };
25924
+ const _hoisted_8$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "pl-input__currency" }, "\u20BD", -1));
25925
+ const _hoisted_9$5 = [
25926
+ _hoisted_8$5
25927
+ ];
25928
+ const _hoisted_10$4 = { class: "pl-input__wrapper" };
25929
+ const _hoisted_11$4 = {
25930
+ key: 0,
25931
+ class: "pl-input__prefix"
25932
+ };
25933
+ const _hoisted_12$4 = ["type", "disabled"];
25934
+ const _hoisted_13$4 = {
25916
25935
  key: 1,
25917
- class: "el-input"
25936
+ class: "pl-input__suffix"
25918
25937
  };
25919
- const _hoisted_6$8 = { class: "el-input__wrapper" };
25920
- const _hoisted_7$6 = ["type"];
25921
- const _hoisted_8$5 = {
25938
+ const _hoisted_14$4 = {
25922
25939
  key: 0,
25923
25940
  class: "pl-input__eye-container"
25924
25941
  };
25925
- const _hoisted_9$5 = { class: "pl-input__helpertext" };
25926
- const _hoisted_10$4 = { key: 0 };
25927
- const _hoisted_11$4 = { key: 1 };
25942
+ const _hoisted_15$3 = {
25943
+ key: 2,
25944
+ class: "pl-input__count"
25945
+ };
25946
+ const _hoisted_16$3 = { class: "pl-input__count-inner" };
25947
+ const _hoisted_17$2 = { class: "pl-input__helpertext" };
25948
+ const _hoisted_18$2 = {
25949
+ key: 0,
25950
+ class: "pl-form-item__error"
25951
+ };
25952
+ const _hoisted_19$2 = { key: 1 };
25928
25953
  const _sfc_main$B = {
25929
25954
  __name: "pl-input-plus",
25930
25955
  props: {
@@ -25986,20 +26011,30 @@ const _sfc_main$B = {
25986
26011
  currencyInputOptions: {
25987
26012
  type: Object,
25988
26013
  default: () => ({})
26014
+ },
26015
+ "show-word-limit": {
26016
+ type: Boolean,
26017
+ default: false
26018
+ },
26019
+ disabled: {
26020
+ type: Boolean,
26021
+ default: false
25989
26022
  }
25990
26023
  },
25991
26024
  emits: ["update:modelValue"],
25992
26025
  setup(__props, { emit: emit2 }) {
25993
26026
  const props = __props;
25994
26027
  useCssVars((_ctx) => ({
25995
- "56b7b87d": props.width
26028
+ "e2f9bf06": props.width
25996
26029
  }));
25997
26030
  const attrs = useAttrs$1();
25998
26031
  const errors = ref([]);
25999
- const errorsState = inject("errorsState");
26000
- watch(errorsState, () => {
26001
- errors.value = errorsState.value.filter((error2) => error2.field === props.prop);
26002
- }, { deep: true });
26032
+ if (props.prop) {
26033
+ const errorsState = inject("errorsState");
26034
+ watch(errorsState, () => {
26035
+ errors.value = errorsState.value.filter((error2) => error2.field === props.prop);
26036
+ }, { deep: true });
26037
+ }
26003
26038
  const id = `id-${Math.random()}`;
26004
26039
  const options = reactive({
26005
26040
  currency: "RUB",
@@ -26030,10 +26065,9 @@ const _sfc_main$B = {
26030
26065
  }
26031
26066
  hiddenPassword.value = !hiddenPassword.value;
26032
26067
  };
26033
- const showRightIcon = computed$1(() => !("show-word-limit" in attrs) && props.rightIcon);
26068
+ const showRightIcon = computed$1(() => !props.showWordLimit && props.rightIcon);
26034
26069
  return (_ctx, _cache) => {
26035
26070
  const _component_inline_svg = resolveComponent("inline-svg");
26036
- const _component_el_input = ElInput;
26037
26071
  return openBlock(), createElementBlock("div", _hoisted_1$y, [
26038
26072
  createElementVNode("label", {
26039
26073
  class: "pl-input__label-container",
@@ -26055,48 +26089,54 @@ const _sfc_main$B = {
26055
26089
  _: 1
26056
26090
  }, 8, ["modelValue"])) : createCommentVNode("", true)
26057
26091
  ]),
26058
- props.currency ? (openBlock(), createBlock(_component_el_input, mergeProps({
26092
+ props.currency ? (openBlock(), createElementBlock("div", {
26059
26093
  key: 0,
26060
- ref_key: "inputRef",
26061
- ref: inputRef,
26062
- id,
26063
- name: id
26064
- }, unref(attrs), {
26065
- modelValue: unref(formattedValue),
26066
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null)
26067
- }), createSlots({ _: 2 }, [
26068
- props.leftIcon ? {
26069
- name: "prefix",
26070
- fn: withCtx(() => [
26094
+ class: normalizeClass(["pl-input", { "is-disabled": props.disabled }])
26095
+ }, [
26096
+ createElementVNode("div", _hoisted_4$i, [
26097
+ props.leftIcon ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
26071
26098
  createVNode(_component_inline_svg, {
26072
26099
  src: props.leftIcon
26073
26100
  }, null, 8, ["src"])
26074
- ])
26075
- } : void 0,
26076
- props.currency ? {
26077
- name: "suffix",
26078
- fn: withCtx(() => [
26079
- _hoisted_4$i
26080
- ])
26081
- } : void 0
26082
- ]), 1040, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_5$c, [
26083
- createElementVNode("div", _hoisted_6$8, [
26084
- props.leftIcon ? (openBlock(), createBlock(_component_inline_svg, {
26085
- key: 0,
26086
- src: props.leftIcon
26087
- }, null, 8, ["src"])) : createCommentVNode("", true),
26101
+ ])) : createCommentVNode("", true),
26102
+ withDirectives(createElementVNode("input", mergeProps({
26103
+ class: "pl-input__inner",
26104
+ ref_key: "inputRef",
26105
+ ref: inputRef,
26106
+ id,
26107
+ name: id
26108
+ }, unref(attrs), {
26109
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(formattedValue) ? formattedValue.value = $event : null),
26110
+ disabled: props.disabled
26111
+ }), null, 16, _hoisted_6$8), [
26112
+ [vModelDynamic, unref(formattedValue)]
26113
+ ]),
26114
+ props.currency ? (openBlock(), createElementBlock("div", _hoisted_7$6, _hoisted_9$5)) : createCommentVNode("", true)
26115
+ ])
26116
+ ], 2)) : (openBlock(), createElementBlock("div", {
26117
+ key: 1,
26118
+ class: normalizeClass(["pl-input", { "is-disabled": props.disabled }])
26119
+ }, [
26120
+ createElementVNode("div", _hoisted_10$4, [
26121
+ props.leftIcon ? (openBlock(), createElementBlock("div", _hoisted_11$4, [
26122
+ createVNode(_component_inline_svg, {
26123
+ src: props.leftIcon
26124
+ }, null, 8, ["src"])
26125
+ ])) : createCommentVNode("", true),
26088
26126
  withDirectives(createElementVNode("input", mergeProps({
26127
+ class: "pl-input__inner",
26089
26128
  id,
26090
26129
  name: id,
26091
26130
  type: unref(passwordType) ? "password" : "text"
26092
26131
  }, unref(attrs), {
26093
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
26094
- }), null, 16, _hoisted_7$6), [
26132
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
26133
+ disabled: props.disabled
26134
+ }), null, 16, _hoisted_12$4), [
26095
26135
  [vModelDynamic, unref(modelValue)]
26096
26136
  ]),
26097
- props.password || unref(showRightIcon) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26098
- props.password ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
26099
- createVNode(Transition, { name: "el-zoom-in-top" }, {
26137
+ props.password || unref(showRightIcon) ? (openBlock(), createElementBlock("div", _hoisted_13$4, [
26138
+ props.password ? (openBlock(), createElementBlock("div", _hoisted_14$4, [
26139
+ createVNode(Transition, { name: "pl-zoom-in-top" }, {
26100
26140
  default: withCtx(() => [
26101
26141
  unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
26102
26142
  key: 0,
@@ -26107,7 +26147,7 @@ const _sfc_main$B = {
26107
26147
  ]),
26108
26148
  _: 1
26109
26149
  }),
26110
- createVNode(Transition, { name: "el-zoom-in-top" }, {
26150
+ createVNode(Transition, { name: "pl-zoom-in-top" }, {
26111
26151
  default: withCtx(() => [
26112
26152
  !unref(passwordType) ? (openBlock(), createBlock(_component_inline_svg, {
26113
26153
  key: 0,
@@ -26122,11 +26162,13 @@ const _sfc_main$B = {
26122
26162
  key: 1,
26123
26163
  src: props.rightIcon
26124
26164
  }, null, 8, ["src"])) : createCommentVNode("", true)
26125
- ], 64)) : createCommentVNode("", true)
26165
+ ])) : props.showWordLimit ? (openBlock(), createElementBlock("div", _hoisted_15$3, [
26166
+ createElementVNode("span", _hoisted_16$3, toDisplayString(unref(modelValue).length) + "/" + toDisplayString(unref(attrs).maxlength), 1)
26167
+ ])) : createCommentVNode("", true)
26126
26168
  ])
26127
- ])),
26128
- withDirectives(createElementVNode("span", _hoisted_9$5, [
26129
- errors.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_10$4, toDisplayString(errors.value[0].message), 1)) : props.helpertext ? (openBlock(), createElementBlock("span", _hoisted_11$4, toDisplayString(props.helpertext), 1)) : createCommentVNode("", true)
26169
+ ], 2)),
26170
+ withDirectives(createElementVNode("span", _hoisted_17$2, [
26171
+ errors.value.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_18$2, toDisplayString(errors.value[0].message), 1)) : props.helpertext ? (openBlock(), createElementBlock("span", _hoisted_19$2, toDisplayString(props.helpertext), 1)) : createCommentVNode("", true)
26130
26172
  ], 512), [
26131
26173
  [vShow, props.helpertext || errors.value.length > 0]
26132
26174
  ])
@@ -26134,7 +26176,7 @@ const _sfc_main$B = {
26134
26176
  };
26135
26177
  }
26136
26178
  };
26137
- var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-50fa79da"]]);
26179
+ var PlInputPlus = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-71920af7"]]);
26138
26180
  const PlInputPlusPlugin = {
26139
26181
  install(app) {
26140
26182
  app.component("PlInputPlus", PlInputPlus);
@@ -39026,7 +39068,7 @@ const _hoisted_4$b = { class: "demo-progress" };
39026
39068
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
39027
39069
  __name: "pl-form-progress",
39028
39070
  setup(__props) {
39029
- const color = "#FF7D1F";
39071
+ const color2 = "#FF7D1F";
39030
39072
  return (_ctx, _cache) => {
39031
39073
  const _component_el_progress = ElProgress;
39032
39074
  return openBlock(), createElementBlock("div", _hoisted_1$k, [
@@ -39034,7 +39076,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
39034
39076
  _hoisted_3$g,
39035
39077
  createElementVNode("div", _hoisted_4$b, [
39036
39078
  createVNode(_component_el_progress, {
39037
- color,
39079
+ color: color2,
39038
39080
  percentage: 50
39039
39081
  })
39040
39082
  ])
@@ -42909,6 +42951,7 @@ const PlTooltipPlugin = {
42909
42951
  var bootstrapCustom = "";
42910
42952
  var root = "";
42911
42953
  var inter = "";
42954
+ var color = "";
42912
42955
  const PlPlugin = {
42913
42956
  install(app) {
42914
42957
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v, _w;