sep-yui 0.1.18 → 0.1.19

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.
@@ -7,6 +7,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  max: number;
8
8
  size: SizesEnum;
9
9
  dataTestid: string;
10
+ isInteger: boolean;
10
11
  modelModifiers: () => {};
11
12
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
13
  "update:modelValue": (value: string | number) => void;
@@ -16,6 +17,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
16
17
  max: number;
17
18
  size: SizesEnum;
18
19
  dataTestid: string;
20
+ isInteger: boolean;
19
21
  modelModifiers: () => {};
20
22
  }>>> & {
21
23
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
@@ -24,6 +26,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
24
26
  size: SizesEnum.small | SizesEnum.medium;
25
27
  modelValue: number;
26
28
  modelModifiers: object;
29
+ isInteger: boolean;
27
30
  min: number;
28
31
  max: number;
29
32
  }, {}>;
@@ -5,6 +5,7 @@ export interface IInputNumberProps extends IDataTestIdProp {
5
5
  inputMessage: string;
6
6
  modelValue?: number;
7
7
  required?: boolean;
8
+ isInteger?: boolean;
8
9
  min?: number;
9
10
  max?: number;
10
11
  size?: SizesEnum.small | SizesEnum.medium;
@@ -14494,6 +14494,7 @@ const VE = ["data-testid"], YE = ["data-testid"], BE = ["data-testid"], WE = ["t
14494
14494
  inputMessage: {},
14495
14495
  modelValue: { default: 0 },
14496
14496
  required: { type: Boolean },
14497
+ isInteger: { type: Boolean, default: !1 },
14497
14498
  min: { default: 0 },
14498
14499
  max: { default: 1 / 0 },
14499
14500
  size: { default: as.medium },
@@ -14508,7 +14509,7 @@ const VE = ["data-testid"], YE = ["data-testid"], BE = ["data-testid"], WE = ["t
14508
14509
  prevValue: ""
14509
14510
  }), l = /^-?\d{0,10}(\.\d{0,7})?$/, u = te(null), c = (g) => {
14510
14511
  let b = g.target.value.replace(",", ".");
14511
- b === "." ? b = "0" + b : b === "-." && (b = "-0." + b.slice(2)), /[^\d.]/.test(b) && (b = b.replace(
14512
+ i.isInteger && b.includes(".") && (b = b.replace(".", "")), b === "." ? b = "0" + b : b === "-." && (b = "-0." + b.slice(2)), /[^\d.]/.test(b) && (b = b.replace(
14512
14513
  i.min >= 0 ? /[^0-9.]/g : /[^0-9.-]/g,
14513
14514
  ""
14514
14515
  )), b.includes("-") && (b = (b.startsWith("-") ? "-" : "") + b.replace(/-/g, "")), b.startsWith("0") && b.length > 1 && !b.startsWith("0.") && (b = b.replace(/^0+/, "")), b.startsWith("-0") && b.length > 2 && !b.startsWith("-0.") && (b = "-" + b.slice(2).replace(/^0+/, "")), (b.match(/\./g) || []).length > 1 && (b = b.slice(0, b.lastIndexOf(".")) + b.slice(b.lastIndexOf(".") + 1)), Number(b) > i.max ? s.inputElement = i.max : Number(b) < i.min ? s.inputElement = i.min : s.inputElement = b, s.inputElement !== "" && !l.test(`${s.inputElement}`) && (s.inputElement = s.prevValue), isNaN(+s.inputElement) || n("update:modelValue", s.inputElement);
@@ -14593,7 +14594,7 @@ const VE = ["data-testid"], YE = ["data-testid"], BE = ["data-testid"], WE = ["t
14593
14594
  ], 8, ZE)
14594
14595
  ], 42, FE));
14595
14596
  }
14596
- }), ep = /* @__PURE__ */ Ce(XE, [["__scopeId", "data-v-82b4bbfe"]]), KE = "data:image/svg+xml,%3csvg%20width='111'%20height='111'%20viewBox='0%200%20111%20111'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M106.375%2087.875C106.375%2090.3283%20105.4%2092.681%20103.666%2094.4157C101.931%2096.1504%2099.5783%2097.125%2097.125%2097.125H13.875C11.4217%2097.125%209.06897%2096.1504%207.33426%2094.4157C5.59955%2092.681%204.625%2090.3283%204.625%2087.875V37C4.625%2034.5467%205.59955%2032.194%207.33426%2030.4593C9.06897%2028.7246%2011.4217%2027.75%2013.875%2027.75H32.375L41.625%2013.875H69.375L78.625%2027.75H97.125C99.5783%2027.75%20101.931%2028.7246%20103.666%2030.4593C105.4%2032.194%20106.375%2034.5467%20106.375%2037V87.875Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M55.5%2078.625C65.7173%2078.625%2074%2070.3423%2074%2060.125C74%2049.9077%2065.7173%2041.625%2055.5%2041.625C45.2827%2041.625%2037%2049.9077%2037%2060.125C37%2070.3423%2045.2827%2078.625%2055.5%2078.625Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", JE = "data:image/svg+xml,%3csvg%20width='147'%20height='111'%20viewBox='0%200%20147%20111'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M132.938%2087.875C132.938%2090.3283%20131.871%2092.681%20129.973%2094.4157C128.074%2096.1504%20125.499%2097.125%20122.814%2097.125H31.6978C29.0128%2097.125%2026.4377%2096.1504%2024.5391%2094.4157C22.6405%2092.681%2021.5738%2090.3283%2021.5738%2087.875V37C21.5738%2034.5467%2022.6405%2032.194%2024.5391%2030.4593C26.4377%2028.7246%2029.0128%2027.75%2031.6978%2027.75H51.9459L62.0699%2013.875H92.4419L102.566%2027.75H122.814C125.499%2027.75%20128.074%2028.7246%20129.973%2030.4593C131.871%2032.194%20132.938%2034.5467%20132.938%2037V87.875Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M77.2559%2078.625C88.4386%2078.625%2097.5039%2070.3423%2097.5039%2060.125C97.5039%2049.9077%2088.4386%2041.625%2077.2559%2041.625C66.0732%2041.625%2057.0079%2049.9077%2057.0079%2060.125C57.0079%2070.3423%2066.0732%2078.625%2077.2559%2078.625Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15%2026L138.699%2097.4178'%20stroke='%23A6A3AD'%20stroke-width='10'%20stroke-linecap='round'/%3e%3c/svg%3e";
14597
+ }), ep = /* @__PURE__ */ Ce(XE, [["__scopeId", "data-v-90586337"]]), KE = "data:image/svg+xml,%3csvg%20width='111'%20height='111'%20viewBox='0%200%20111%20111'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M106.375%2087.875C106.375%2090.3283%20105.4%2092.681%20103.666%2094.4157C101.931%2096.1504%2099.5783%2097.125%2097.125%2097.125H13.875C11.4217%2097.125%209.06897%2096.1504%207.33426%2094.4157C5.59955%2092.681%204.625%2090.3283%204.625%2087.875V37C4.625%2034.5467%205.59955%2032.194%207.33426%2030.4593C9.06897%2028.7246%2011.4217%2027.75%2013.875%2027.75H32.375L41.625%2013.875H69.375L78.625%2027.75H97.125C99.5783%2027.75%20101.931%2028.7246%20103.666%2030.4593C105.4%2032.194%20106.375%2034.5467%20106.375%2037V87.875Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M55.5%2078.625C65.7173%2078.625%2074%2070.3423%2074%2060.125C74%2049.9077%2065.7173%2041.625%2055.5%2041.625C45.2827%2041.625%2037%2049.9077%2037%2060.125C37%2070.3423%2045.2827%2078.625%2055.5%2078.625Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", JE = "data:image/svg+xml,%3csvg%20width='147'%20height='111'%20viewBox='0%200%20147%20111'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M132.938%2087.875C132.938%2090.3283%20131.871%2092.681%20129.973%2094.4157C128.074%2096.1504%20125.499%2097.125%20122.814%2097.125H31.6978C29.0128%2097.125%2026.4377%2096.1504%2024.5391%2094.4157C22.6405%2092.681%2021.5738%2090.3283%2021.5738%2087.875V37C21.5738%2034.5467%2022.6405%2032.194%2024.5391%2030.4593C26.4377%2028.7246%2029.0128%2027.75%2031.6978%2027.75H51.9459L62.0699%2013.875H92.4419L102.566%2027.75H122.814C125.499%2027.75%20128.074%2028.7246%20129.973%2030.4593C131.871%2032.194%20132.938%2034.5467%20132.938%2037V87.875Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M77.2559%2078.625C88.4386%2078.625%2097.5039%2070.3423%2097.5039%2060.125C97.5039%2049.9077%2088.4386%2041.625%2077.2559%2041.625C66.0732%2041.625%2057.0079%2049.9077%2057.0079%2060.125C57.0079%2070.3423%2066.0732%2078.625%2077.2559%2078.625Z'%20stroke='%23A6A3AD'%20stroke-width='9.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15%2026L138.699%2097.4178'%20stroke='%23A6A3AD'%20stroke-width='10'%20stroke-linecap='round'/%3e%3c/svg%3e";
14597
14598
  var tp = /* @__PURE__ */ ((e) => (e.jpg = "jpg", e.png = "png", e.jpeg = "jpeg", e.webp = "webp", e.svg = "svg", e.pdf = "pdf", e))(tp || {}), np = /* @__PURE__ */ ((e) => (e.mp4 = "mp4", e.mp3 = "mp3", e.avif = "avif", e))(np || {});
14598
14599
  const $u = (e) => (is("data-v-7383f96e"), e = e(), ss(), e), QE = ["data-testid"], eR = {
14599
14600
  class: "slider-yui-kit__wrapper",