@ironsource/shared-ui 2.1.3-rc.2 → 2.1.3-rc.3

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.
Files changed (27) hide show
  1. package/FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css +1 -0
  2. package/TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css +1 -0
  3. package/TextAreaV4.vue_vue_type_style_index_0_scoped_6e91a617_lang.css +1 -0
  4. package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +1 -0
  5. package/components/input/v4/TextField.vue.d.ts +1 -1
  6. package/components/input/v4/TextField.vue.js +3 -3
  7. package/components/input/v4/TextField.vue2.js +83 -90
  8. package/components/input/v4/index.d.ts +20 -20
  9. package/components/shared/FieldMaxLength.vue.d.ts +34 -0
  10. package/components/shared/FieldMaxLength.vue.js +7 -0
  11. package/components/shared/FieldMaxLength.vue2.js +24 -0
  12. package/components/textArea/v3/TextArea.vue.js +7 -0
  13. package/components/textArea/{TextArea.vue2.js → v3/TextArea.vue2.js} +4 -4
  14. package/components/textArea/v4/TextAreaV4.vue.d.ts +90 -0
  15. package/components/textArea/v4/TextAreaV4.vue.js +7 -0
  16. package/components/textArea/v4/TextAreaV4.vue2.js +74 -0
  17. package/components/textArea/v4/index.d.ts +118 -0
  18. package/components/textArea/v4/index.js +6 -0
  19. package/index.d.ts +272 -41
  20. package/index.js +67 -67
  21. package/package.json +3 -2
  22. package/TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css +0 -1
  23. package/TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css +0 -1
  24. package/components/textArea/TextArea.vue.js +0 -7
  25. /package/components/textArea/{TextArea.vue.d.ts → v3/TextArea.vue.d.ts} +0 -0
  26. /package/components/textArea/{index.d.ts → v3/index.d.ts} +0 -0
  27. /package/components/textArea/{index.js → v3/index.js} +0 -0
@@ -0,0 +1 @@
1
+ .max-length[data-v-f3c4001a]{display:flex;justify-content:flex-end;color:var(--text-secondary)}.max-length__divider[data-v-f3c4001a]{margin:0 -3px}
@@ -0,0 +1 @@
1
+ .label[data-v-eb62e4c0]{color:#41454d}.disabled[data-v-eb62e4c0]{opacity:70%}.textarea-with-label-container[data-v-eb62e4c0]{display:flex;flex-direction:column}.textarea-with-label-container .label-container[data-v-eb62e4c0]{white-space:nowrap;display:flex;align-items:center;height:24px}.textarea-with-label-container .label-container .label[data-v-eb62e4c0]{margin-bottom:4px}.textarea-with-label-container .textarea[data-v-eb62e4c0]{padding:.5rem 12px;height:96px;border:none;border-radius:.5rem;background:#f1f3f4;color:#53575b;font-family:HelveticaNeue,sans-serif;font-size:.8125rem}.textarea-with-label-container .textarea[data-v-eb62e4c0]:focus{outline:none;background:linear-gradient(0deg,#3083ff 0,#3083ff 2px,#f1f3f4 0)}.textarea-with-label-container .textarea[data-v-eb62e4c0]:disabled{color:#8e959d}.textarea-with-label-container .textarea[data-v-eb62e4c0]::placeholder{color:#8e959d}.textarea-with-label-container .extra-text-container[data-v-eb62e4c0]{line-height:16px;margin-left:4px}.textarea-with-label-container .extra-text-container .error[data-v-eb62e4c0]{color:#da564f}.textarea-with-label-container .extra-text-container .help[data-v-eb62e4c0]{color:#696a6b}
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-6e91a617],.font-chart-2[data-v-6e91a617],.font-chart-1[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-6e91a617],.font-table-label[data-v-6e91a617],.font-button[data-v-6e91a617],.font-heading-6[data-v-6e91a617],.font-heading-5[data-v-6e91a617],.font-heading-4[data-v-6e91a617],.font-heading-3[data-v-6e91a617],.font-heading-2[data-v-6e91a617],.font-heading-1[data-v-6e91a617],.font-title[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-6e91a617],.font-input-label[data-v-6e91a617],.font-overline[data-v-6e91a617],.font-subtitle-2[data-v-6e91a617],.font-subtitle-1[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-6e91a617],.font-body-2[data-v-6e91a617],.textarea[data-v-6e91a617],.font-body-1[data-v-6e91a617]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-6e91a617]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-6e91a617]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-6e91a617]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-6e91a617]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-6e91a617]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-6e91a617]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-6e91a617]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.textarea[data-v-6e91a617],.font-body-1[data-v-6e91a617]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-6e91a617]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-6e91a617]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-6e91a617]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-6e91a617]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-6e91a617]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-6e91a617]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-6e91a617]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-6e91a617]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-6e91a617]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-6e91a617]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-6e91a617],.font-tab-label2[data-v-6e91a617]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-6e91a617]{font-size:.75rem;line-height:1rem}h1[data-v-6e91a617],h2[data-v-6e91a617],h3[data-v-6e91a617],h4[data-v-6e91a617],h5[data-v-6e91a617],h6[data-v-6e91a617]{margin:0}.textarea-field[data-v-6e91a617]{display:flex;flex-direction:column}.textarea[data-v-6e91a617]{background:var(--default-main);color:var(--text-primary);padding:var(--spacing-125) var(--spacing-100);height:calc(var(--spacing-900) - 1px);width:100%;border:none;border-radius:var(--border-radius-md);outline:1px solid var(--action-outlined-border)}.textarea[data-v-6e91a617]:hover{outline:1px solid var(--action-active)}.textarea[data-v-6e91a617]:focus{outline:2px solid var(--primary-main)}.textarea[data-v-6e91a617]::placeholder{color:var(--text-secondary)}.textarea--disabled[data-v-6e91a617]{color:var(--text-disabled)}.textarea--disabled[data-v-6e91a617]::placeholder{color:var(--text-disabled)}.textarea--disabled[data-v-6e91a617]:hover{outline:1px solid var(--action-outlined-border)}.textarea--variant-success[data-v-6e91a617],.textarea--variant-success[data-v-6e91a617]:hover,.textarea--variant-success[data-v-6e91a617]:focus{outline:2px solid var(--success-dark)}.textarea--variant-error[data-v-6e91a617],.textarea--variant-error[data-v-6e91a617]:hover,.textarea--variant-error[data-v-6e91a617]:focus{outline:2px solid var(--error-main)}.textarea--variant-warning[data-v-6e91a617],.textarea--variant-warning[data-v-6e91a617]:hover,.textarea--variant-warning[data-v-6e91a617]:focus{outline:2px solid var(--warning-dark)}.footer[data-v-6e91a617]{display:flex;justify-content:flex-end;align-items:center;margin:var(--spacing-50) 0}
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.font-tab-label2[data-v-dca4c102],.font-chart-2[data-v-dca4c102],.font-chart-1[data-v-dca4c102]{font-family:Inter,sans-serif;font-weight:700}.font-chip-label[data-v-dca4c102],.font-table-label[data-v-dca4c102],.font-button[data-v-dca4c102],.font-heading-6[data-v-dca4c102],.font-heading-5[data-v-dca4c102],.font-heading-4[data-v-dca4c102],.font-heading-3[data-v-dca4c102],.font-heading-2[data-v-dca4c102],.font-heading-1[data-v-dca4c102],.font-title[data-v-dca4c102]{font-family:Inter,sans-serif;font-weight:600}.font-tab-label1[data-v-dca4c102],.font-input-label[data-v-dca4c102],.font-overline[data-v-dca4c102],.font-subtitle-2[data-v-dca4c102],.font-subtitle-1[data-v-dca4c102]{font-family:Inter,sans-serif;font-weight:500}.font-caption[data-v-dca4c102],.font-body-2[data-v-dca4c102],.input-container .input[data-v-dca4c102],.font-body-1[data-v-dca4c102]{font-family:Inter,sans-serif;font-weight:400}.font-title[data-v-dca4c102]{font-size:2.5rem;line-height:3rem;letter-spacing:-.055rem}.font-heading-1[data-v-dca4c102]{font-size:1.5rem;line-height:1.75rem;letter-spacing:-.0285rem}.font-heading-2[data-v-dca4c102]{font-size:1.125rem;line-height:1.75rem;letter-spacing:-.01575rem}.font-heading-3[data-v-dca4c102]{font-size:1rem;line-height:1.5rem;letter-spacing:-.011rem}.font-heading-4[data-v-dca4c102]{font-size:.875rem;line-height:1rem;letter-spacing:unset}.font-heading-5[data-v-dca4c102]{font-size:.8125rem;line-height:16px;letter-spacing:unset}.font-heading-6[data-v-dca4c102]{font-size:.75rem;line-height:.75rem;letter-spacing:0}.input-container .input[data-v-dca4c102],.font-body-1[data-v-dca4c102]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-body-2[data-v-dca4c102]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-subtitle-1[data-v-dca4c102]{font-size:.875rem;line-height:1.25rem;letter-spacing:-.00525rem}.font-subtitle-2[data-v-dca4c102]{font-size:.8125rem;line-height:1.25rem;letter-spacing:-.00244rem}.font-chart-1[data-v-dca4c102]{font-size:1.5rem;line-height:1.5rem;letter-spacing:-.015rem}.font-chart-2[data-v-dca4c102]{font-size:1.25rem;line-height:1.25rem;letter-spacing:-.0125rem}.font-button[data-v-dca4c102]{font-size:.875rem;line-height:1.25rem;letter-spacing:.00875rem}.font-overline[data-v-dca4c102]{font-size:.75rem;line-height:1rem;letter-spacing:.045rem;text-transform:uppercase}.font-caption[data-v-dca4c102]{font-size:.75rem;line-height:1rem}.font-table-label[data-v-dca4c102]{font-size:.8125rem;line-height:1.25rem;letter-spacing:.00813rem}.font-input-label[data-v-dca4c102]{font-size:.8125rem;line-height:1rem;letter-spacing:.00813rem}.font-tab-label1[data-v-dca4c102],.font-tab-label2[data-v-dca4c102]{font-size:.875rem;line-height:1rem}.font-chip-label[data-v-dca4c102]{font-size:.75rem;line-height:1rem}h1[data-v-dca4c102],h2[data-v-dca4c102],h3[data-v-dca4c102],h4[data-v-dca4c102],h5[data-v-dca4c102],h6[data-v-dca4c102]{margin:0}.disabled .input[data-v-dca4c102]::placeholder{color:var(--text-disabled)}.disabled .input-container[data-v-dca4c102]{cursor:no-drop;background-color:var(--action-disabled-background)}.disabled .input-container[data-v-dca4c102]:hover{outline:1px solid var(--action-outlined-border);background-color:var(--action-disabled-background)}.input-size-small[data-v-dca4c102]{height:28px}.input-size-medium[data-v-dca4c102]{height:32px}.input-size-large[data-v-dca4c102]{height:40px}.input-with-label-container[data-v-dca4c102]{display:flex;flex-direction:column}.input-container[data-v-dca4c102]{flex-grow:2;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);background:var(--default-main);outline:1px solid var(--action-outlined-border);outline-offset:-1px;padding:0 var(--spacing-100)}.input-container[data-v-dca4c102]:hover{outline:1px solid var(--action-active);background-color:var(--action-hover)}.input-container .input[data-v-dca4c102]{padding:0;width:100%;border:none;background:transparent;color:var(--text-primary);line-height:normal}.input-container .input[data-v-dca4c102]:focus{outline:none}.input-container .input[data-v-dca4c102]:disabled{color:var(--text-disabled);cursor:no-drop}.input-container .input.view-only[data-v-dca4c102]{color:var(--text-disabled)}.input-container .input[type=number][data-v-dca4c102]::-webkit-inner-spin-button{opacity:.7;transform:scale(1.1)}.input-container .hide-arrows.input[type=number][data-v-dca4c102]::-webkit-inner-spin-button,.input-container .hide-arrows.input[type=number][data-v-dca4c102]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.input-container .input[type=password][data-v-dca4c102]{letter-spacing:4px}.input-container[data-v-dca4c102] ::placeholder{color:var(--text-secondary);letter-spacing:normal}.input-container .label-inside[data-v-dca4c102]::placeholder{color:var(--text-primary)}.input-container .icon-container[data-v-dca4c102]{display:flex;align-items:center;color:var(--text-secondary)}.input-container .icon-before[data-v-dca4c102]{padding-right:var(--spacing-100)}.input-container .icon-after[data-v-dca4c102]{padding-left:var(--spacing-100)}.prefix-text[data-v-dca4c102]{color:var(--text-secondary, #646464);margin-right:var(--spacing-100)}.suffix-text[data-v-dca4c102]{color:var(--text-secondary, #646464);margin-left:var(--spacing-100)}.focused[data-v-dca4c102],.focused[data-v-dca4c102]:hover{outline:2px solid var(--primary-main);background-color:var(--action-hover)}.error-icon.error-icon[data-v-dca4c102],.error-icon.error-icon[data-v-dca4c102]:hover{color:var(--error-main)}.confirm-icon.confirm-icon[data-v-dca4c102]{padding-left:.25rem}.confirm-icon.confirm-icon[data-v-dca4c102]:hover{color:var(--primary-main)}.label-direction-left[data-v-dca4c102]{flex-direction:row;align-items:center;justify-content:space-between}.apply-button[data-v-dca4c102]{cursor:pointer;color:var(--primary-main);width:var(--spacing-250);height:var(--spacing-250)}.inline-error[data-v-dca4c102]{cursor:pointer;color:var(--error-main);display:flex;justify-content:center;align-items:center}.footer[data-v-dca4c102]{display:flex;justify-content:flex-end;align-items:center;margin:var(--spacing-50) 0}.password-visibility-toggle[data-v-dca4c102]{cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-secondary)}.variant-success .input-container[data-v-dca4c102],.variant-success .input-container[data-v-dca4c102]:hover{outline:2px solid var(--success-dark)}.variant-error .input-container[data-v-dca4c102],.variant-error .input-container[data-v-dca4c102]:hover{outline:2px solid var(--error-main)}.variant-warning .input-container[data-v-dca4c102],.variant-warning .input-container[data-v-dca4c102]:hover{outline:2px solid var(--warning-dark)}
@@ -128,13 +128,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
128
128
  hoverHelpTextPlacement: TooltipPositions;
129
129
  feedbackText: string;
130
130
  feedbackVariant: FeedbackVariant;
131
+ maxLength: number;
131
132
  viewOnly: boolean;
132
133
  labelDirection: LabelDirection;
133
134
  hideNumberArrows: boolean;
134
135
  step: number;
135
136
  onlyDigits: boolean;
136
137
  suffix: string;
137
- maxLength: number;
138
138
  showApply: boolean;
139
139
  inlineError: boolean;
140
140
  inlineErrorText: string;
@@ -1,7 +1,7 @@
1
1
  import e from "./TextField.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css"; //*');
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-473bab9b"]]);
3
+ // import "../../../TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-dca4c102"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -1,31 +1,29 @@
1
- import "../../../TextField.vue_vue_type_style_index_0_scoped_473bab9b_lang.css"; import { defineComponent as K, computed as w, ref as G, openBlock as l, createElementBlock as o, mergeProps as y, unref as t, createBlock as u, createCommentVNode as n, createElementVNode as g, normalizeClass as M, renderSlot as F, withCtx as v, createTextVNode as h, toDisplayString as x, withKeys as W, withModifiers as S, createVNode as b, pushScopeId as j, popScopeId as q } from "vue";
2
- import p from "../../icon/v4/IconV4.vue.js";
3
- import J from "../../tooltip/v4/TooltipV4.vue.js";
4
- import T from "../../typography/v4/Typography.vue.js";
1
+ import "../../../TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css"; import { defineComponent as K, computed as h, ref as M, openBlock as l, createElementBlock as r, mergeProps as y, unref as t, createBlock as d, createCommentVNode as n, createElementVNode as L, normalizeClass as G, renderSlot as V, withCtx as b, createTextVNode as C, toDisplayString as E, withKeys as W, withModifiers as F, createVNode as p } from "vue";
2
+ import v from "../../icon/v4/IconV4.vue.js";
3
+ import j from "../../tooltip/v4/TooltipV4.vue.js";
4
+ import $ from "../../typography/v4/Typography.vue.js";
5
5
  import { InputTestIdModifiers as f } from "../../../testids/index.js";
6
- import { inputCommon as Q } from "../common/Input.common.js";
7
- import U from "../../shared/FieldLabel.vue.js";
8
- import X from "../../shared/FieldHelpText.vue.js";
9
- import { useTestIdAttrs as Y } from "../../../utils/testIds.js";
10
- const Z = (e) => (j("data-v-473bab9b"), e = e(), q(), e), _ = {
6
+ import { inputCommon as q } from "../common/Input.common.js";
7
+ import J from "../../shared/FieldLabel.vue.js";
8
+ import Q from "../../shared/FieldHelpText.vue.js";
9
+ import U from "../../shared/FieldMaxLength.vue.js";
10
+ import { useTestIdAttrs as X } from "../../../utils/testIds.js";
11
+ const Y = {
11
12
  key: 0,
12
13
  class: "icon-container icon-before"
13
- }, ee = ["value", "placeholder", "disabled", "type", "step", "maxlength"], te = ["onClick"], le = {
14
+ }, Z = ["value", "placeholder", "disabled", "type", "step", "maxlength"], _ = ["onClick"], ee = {
14
15
  key: 3,
15
16
  class: "inline-error"
16
- }, ae = {
17
+ }, te = {
17
18
  key: 6,
18
19
  class: "icon-container icon-after"
19
- }, ne = {
20
+ }, le = {
20
21
  key: 1,
21
22
  class: "footer"
22
- }, ie = {
23
- key: 1,
24
- class: "max-length"
25
- }, oe = /* @__PURE__ */ Z(() => /* @__PURE__ */ g("span", { class: "max-length__divider" }, "/", -1)), de = {
23
+ }, ae = {
26
24
  inheritAttrs: !1
27
- }, xe = /* @__PURE__ */ K({
28
- ...de,
25
+ }, ye = /* @__PURE__ */ K({
26
+ ...ae,
29
27
  __name: "TextField",
30
28
  props: {
31
29
  modelValue: { default: "" },
@@ -55,31 +53,31 @@ const Z = (e) => (j("data-v-473bab9b"), e = e(), q(), e), _ = {
55
53
  inlineErrorText: { default: "" }
56
54
  },
57
55
  emits: ["update:modelValue", "apply"],
58
- setup(e, { expose: $, emit: I }) {
59
- const s = e, c = Y(s.testId, f), P = () => {
60
- s.showApply ? I("apply") : d?.confirmable && O();
61
- }, z = () => A.value.focus(), {
62
- onConfirm: O,
63
- onEnter: B,
64
- inputRef: A,
65
- isFocused: k,
66
- showLabelInside: V,
67
- api: d,
68
- labelText: D,
69
- sizeClass: N,
70
- handleInput: C,
71
- handleKeypress: E
72
- } = Q(s, I), L = w(() => d.value?.value ?? s.modelValue), H = w(() => (L.value || "").length), m = G(!1), R = w(() => m.value && s.type === "password" ? "text" : s.type);
73
- return $({
74
- manualFocus: z
75
- }), (r, a) => (l(), o("div", y({
56
+ setup(e, { expose: P, emit: k }) {
57
+ const s = e, c = X(s.testId, f), z = () => {
58
+ s.showApply ? k("apply") : o?.confirmable && D();
59
+ }, O = () => T.value.focus(), {
60
+ onConfirm: D,
61
+ onEnter: w,
62
+ inputRef: T,
63
+ isFocused: x,
64
+ showLabelInside: g,
65
+ api: o,
66
+ labelText: N,
67
+ sizeClass: S,
68
+ handleInput: I,
69
+ handleKeypress: B
70
+ } = q(s, k), A = h(() => o.value?.value ?? s.modelValue), H = h(() => (A.value || "").length), m = M(!1), R = h(() => m.value && s.type === "password" ? "text" : s.type);
71
+ return P({
72
+ manualFocus: O
73
+ }), (u, a) => (l(), r("div", y({
76
74
  class: {
77
75
  "input-with-label-container": !0,
78
76
  disabled: e.disabled,
79
77
  [`variant-${e.feedbackVariant}`]: !0
80
78
  }
81
79
  }, t(c)[t(f).WRAPPER]), [
82
- e.label && e.labelDirection !== "inside" ? (l(), u(U, {
80
+ e.label && e.labelDirection !== "inside" ? (l(), d(J, {
83
81
  key: 0,
84
82
  label: e.label,
85
83
  mandatory: e.mandatory,
@@ -88,72 +86,72 @@ const Z = (e) => (j("data-v-473bab9b"), e = e(), q(), e), _ = {
88
86
  disabled: e.disabled,
89
87
  "test-id": e.testId
90
88
  }, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
91
- g("div", {
92
- class: M({
89
+ L("div", {
90
+ class: G({
93
91
  "input-container": !0,
94
- "label-inside": t(V),
95
- focused: t(k)
92
+ "label-inside": t(g),
93
+ focused: t(x)
96
94
  })
97
95
  }, [
98
- r.$slots.iconBefore ? (l(), o("div", _, [
99
- F(r.$slots, "iconBefore", {}, void 0, !0)
96
+ u.$slots.iconBefore ? (l(), r("div", Y, [
97
+ V(u.$slots, "iconBefore", {}, void 0, !0)
100
98
  ])) : n("", !0),
101
- e.prefix ? (l(), u(t(T), {
99
+ e.prefix ? (l(), d(t($), {
102
100
  key: 1,
103
101
  class: "prefix-text",
104
102
  variant: "body1"
105
103
  }, {
106
- default: v(() => [
107
- h(x(e.prefix), 1)
104
+ default: b(() => [
105
+ C(E(e.prefix), 1)
108
106
  ]),
109
107
  _: 1
110
108
  })) : n("", !0),
111
- g("input", y({ ...r.$attrs, ...t(c)[t(f).FIELD] }, {
109
+ L("input", y({ ...u.$attrs, ...t(c)[t(f).FIELD] }, {
112
110
  ref_key: "inputRef",
113
- ref: A,
114
- value: t(L),
115
- placeholder: t(D),
111
+ ref: T,
112
+ value: t(A),
113
+ placeholder: t(N),
116
114
  disabled: e.disabled || e.viewOnly,
117
115
  type: t(R),
118
116
  class: ["input", {
119
- [t(N)]: !0,
117
+ [t(S)]: !0,
120
118
  "view-only": e.viewOnly,
121
- "label-inside": t(V),
119
+ "label-inside": t(g),
122
120
  "hide-arrows": e.hideNumberArrows,
123
121
  "input-type": e.type
124
122
  }],
125
123
  step: e.step,
126
124
  maxlength: e.maxLength,
127
125
  onInput: a[0] || (a[0] = //@ts-ignore
128
- (...i) => t(C) && t(C)(...i)),
129
- onFocus: a[1] || (a[1] = (i) => k.value = !0),
130
- onBlur: a[2] || (a[2] = (i) => k.value = !1),
131
- onKeyup: a[3] || (a[3] = W(S(
126
+ (...i) => t(I) && t(I)(...i)),
127
+ onFocus: a[1] || (a[1] = (i) => x.value = !0),
128
+ onBlur: a[2] || (a[2] = (i) => x.value = !1),
129
+ onKeyup: a[3] || (a[3] = W(F(
132
130
  //@ts-ignore
133
- (...i) => t(B) && t(B)(...i),
131
+ (...i) => t(w) && t(w)(...i),
134
132
  ["prevent"]
135
133
  ), ["enter"])),
136
134
  onKeypress: a[4] || (a[4] = //@ts-ignore
137
- (...i) => t(E) && t(E)(...i))
138
- }), null, 16, ee),
139
- e.showApply || t(d)?.confirmable && !t(d)?.error?.value ? (l(), o("div", {
135
+ (...i) => t(B) && t(B)(...i))
136
+ }), null, 16, Z),
137
+ e.showApply || t(o)?.confirmable && !t(o)?.error?.value ? (l(), r("div", {
140
138
  key: 2,
141
139
  class: "apply-button",
142
- onClick: S(P, ["stop", "prevent"])
140
+ onClick: F(z, ["stop", "prevent"])
143
141
  }, [
144
- b(t(p), {
142
+ p(t(v), {
145
143
  name: "check",
146
144
  size: "20px"
147
145
  })
148
- ], 8, te)) : n("", !0),
149
- e.inlineError || t(d)?.error?.value ? (l(), o("div", le, [
150
- b(t(J), y({
151
- disabled: !e.inlineErrorText && !t(d)?.error?.value,
152
- text: e.inlineErrorText || t(d)?.error?.value,
146
+ ], 8, _)) : n("", !0),
147
+ e.inlineError || t(o)?.error?.value ? (l(), r("div", ee, [
148
+ p(t(j), y({
149
+ disabled: !e.inlineErrorText && !t(o)?.error?.value,
150
+ text: e.inlineErrorText || t(o)?.error?.value,
153
151
  "test-id": e.testId
154
152
  }, t(c)[t(f).TOOLTIP]), {
155
- default: v(() => [
156
- b(t(p), {
153
+ default: b(() => [
154
+ p(t(v), {
157
155
  name: "warning-circle",
158
156
  size: "16px"
159
157
  })
@@ -161,58 +159,53 @@ const Z = (e) => (j("data-v-473bab9b"), e = e(), q(), e), _ = {
161
159
  _: 1
162
160
  }, 16, ["disabled", "text", "test-id"])
163
161
  ])) : n("", !0),
164
- e.suffix ? (l(), u(t(T), {
162
+ e.suffix ? (l(), d(t($), {
165
163
  key: 4,
166
164
  class: "suffix-text",
167
165
  variant: "body1"
168
166
  }, {
169
- default: v(() => [
170
- h(x(e.suffix), 1)
167
+ default: b(() => [
168
+ C(E(e.suffix), 1)
171
169
  ]),
172
170
  _: 1
173
171
  })) : n("", !0),
174
- e.type === "password" ? (l(), o("div", y({
172
+ e.type === "password" ? (l(), r("div", y({
175
173
  key: 5,
176
174
  class: "password-visibility-toggle"
177
175
  }, t(c)[t(f).TOGGLE_PASSWORD], {
178
176
  onClick: a[5] || (a[5] = (i) => m.value = !m.value)
179
177
  }), [
180
- m.value ? (l(), u(t(p), {
178
+ m.value ? (l(), d(t(v), {
181
179
  key: 0,
182
180
  name: "eye",
183
181
  size: "16px"
184
- })) : (l(), u(t(p), {
182
+ })) : (l(), d(t(v), {
185
183
  key: 1,
186
184
  name: "eye-slash",
187
185
  size: "16px"
188
186
  }))
189
187
  ], 16)) : n("", !0),
190
- r.$slots.iconAfter ? (l(), o("div", ae, [
191
- F(r.$slots, "iconAfter", {}, void 0, !0)
188
+ u.$slots.iconAfter ? (l(), r("div", te, [
189
+ V(u.$slots, "iconAfter", {}, void 0, !0)
192
190
  ])) : n("", !0)
193
191
  ], 2),
194
- e.feedbackText || e.maxLength ? (l(), o("div", ne, [
195
- e.feedbackText ? (l(), u(X, {
192
+ e.feedbackText || e.maxLength ? (l(), r("div", le, [
193
+ e.feedbackText ? (l(), d(Q, {
196
194
  key: 0,
197
195
  text: e.feedbackText,
198
196
  variant: e.feedbackVariant,
199
197
  "show-icon": e.showFeedbackTextIcon,
200
198
  "test-id": e.testId
201
199
  }, null, 8, ["text", "variant", "show-icon", "test-id"])) : n("", !0),
202
- e.maxLength ? (l(), o("div", ie, [
203
- b(t(T), { variant: "caption" }, {
204
- default: v(() => [
205
- h(x(t(H)) + " ", 1),
206
- oe,
207
- h(" " + x(e.maxLength), 1)
208
- ]),
209
- _: 1
210
- })
211
- ])) : n("", !0)
200
+ e.maxLength ? (l(), d(U, {
201
+ key: 1,
202
+ "current-length": t(H),
203
+ "max-length": e.maxLength
204
+ }, null, 8, ["current-length", "max-length"])) : n("", !0)
212
205
  ])) : n("", !0)
213
206
  ], 16));
214
207
  }
215
208
  });
216
209
  export {
217
- xe as default
210
+ ye as default
218
211
  };
@@ -18,13 +18,13 @@ declare const TextFieldTypes: () => ({
18
18
  hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
19
19
  feedbackText: string;
20
20
  feedbackVariant: "success" | "warning" | "error";
21
+ maxLength: number;
21
22
  viewOnly: boolean;
22
23
  labelDirection: "top" | "inside";
23
24
  hideNumberArrows: boolean;
24
25
  step: number;
25
26
  onlyDigits: boolean;
26
27
  suffix: string;
27
- maxLength: number;
28
28
  showApply: boolean;
29
29
  inlineError: boolean;
30
30
  inlineErrorText: string;
@@ -86,6 +86,10 @@ declare const TextFieldTypes: () => ({
86
86
  type: import("vue").PropType<"success" | "warning" | "error">;
87
87
  default: any;
88
88
  };
89
+ maxLength: {
90
+ type: import("vue").PropType<number>;
91
+ default: any;
92
+ };
89
93
  viewOnly: {
90
94
  type: import("vue").PropType<boolean>;
91
95
  default: boolean;
@@ -110,10 +114,6 @@ declare const TextFieldTypes: () => ({
110
114
  type: import("vue").PropType<string>;
111
115
  default: string;
112
116
  };
113
- maxLength: {
114
- type: import("vue").PropType<number>;
115
- default: any;
116
- };
117
117
  showApply: {
118
118
  type: import("vue").PropType<boolean>;
119
119
  default: boolean;
@@ -133,7 +133,7 @@ declare const TextFieldTypes: () => ({
133
133
  }>> & {
134
134
  "onUpdate:modelValue"?: (value: string | number) => any;
135
135
  onApply?: () => any;
136
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "modelValue" | "placeholder" | "autoFocus" | "prefix" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "viewOnly" | "labelDirection" | "hideNumberArrows" | "step" | "onlyDigits" | "suffix" | "maxLength" | "showApply" | "inlineError" | "inlineErrorText" | "showFeedbackTextIcon">;
136
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "modelValue" | "placeholder" | "autoFocus" | "prefix" | "hoverHelpText" | "hoverHelpTextPlacement" | "feedbackText" | "feedbackVariant" | "maxLength" | "viewOnly" | "labelDirection" | "hideNumberArrows" | "step" | "onlyDigits" | "suffix" | "showApply" | "inlineError" | "inlineErrorText" | "showFeedbackTextIcon">;
137
137
  $attrs: {
138
138
  [x: string]: unknown;
139
139
  };
@@ -204,6 +204,10 @@ declare const TextFieldTypes: () => ({
204
204
  type: import("vue").PropType<"success" | "warning" | "error">;
205
205
  default: any;
206
206
  };
207
+ maxLength: {
208
+ type: import("vue").PropType<number>;
209
+ default: any;
210
+ };
207
211
  viewOnly: {
208
212
  type: import("vue").PropType<boolean>;
209
213
  default: boolean;
@@ -228,10 +232,6 @@ declare const TextFieldTypes: () => ({
228
232
  type: import("vue").PropType<string>;
229
233
  default: string;
230
234
  };
231
- maxLength: {
232
- type: import("vue").PropType<number>;
233
- default: any;
234
- };
235
235
  showApply: {
236
236
  type: import("vue").PropType<boolean>;
237
237
  default: boolean;
@@ -271,13 +271,13 @@ declare const TextFieldTypes: () => ({
271
271
  hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
272
272
  feedbackText: string;
273
273
  feedbackVariant: "success" | "warning" | "error";
274
+ maxLength: number;
274
275
  viewOnly: boolean;
275
276
  labelDirection: "top" | "inside";
276
277
  hideNumberArrows: boolean;
277
278
  step: number;
278
279
  onlyDigits: boolean;
279
280
  suffix: string;
280
- maxLength: number;
281
281
  showApply: boolean;
282
282
  inlineError: boolean;
283
283
  inlineErrorText: string;
@@ -359,6 +359,10 @@ declare const TextFieldTypes: () => ({
359
359
  type: import("vue").PropType<"success" | "warning" | "error">;
360
360
  default: any;
361
361
  };
362
+ maxLength: {
363
+ type: import("vue").PropType<number>;
364
+ default: any;
365
+ };
362
366
  viewOnly: {
363
367
  type: import("vue").PropType<boolean>;
364
368
  default: boolean;
@@ -383,10 +387,6 @@ declare const TextFieldTypes: () => ({
383
387
  type: import("vue").PropType<string>;
384
388
  default: string;
385
389
  };
386
- maxLength: {
387
- type: import("vue").PropType<number>;
388
- default: any;
389
- };
390
390
  showApply: {
391
391
  type: import("vue").PropType<boolean>;
392
392
  default: boolean;
@@ -469,6 +469,10 @@ declare const TextFieldTypes: () => ({
469
469
  type: import("vue").PropType<"success" | "warning" | "error">;
470
470
  default: any;
471
471
  };
472
+ maxLength: {
473
+ type: import("vue").PropType<number>;
474
+ default: any;
475
+ };
472
476
  viewOnly: {
473
477
  type: import("vue").PropType<boolean>;
474
478
  default: boolean;
@@ -493,10 +497,6 @@ declare const TextFieldTypes: () => ({
493
497
  type: import("vue").PropType<string>;
494
498
  default: string;
495
499
  };
496
- maxLength: {
497
- type: import("vue").PropType<number>;
498
- default: any;
499
- };
500
500
  showApply: {
501
501
  type: import("vue").PropType<boolean>;
502
502
  default: boolean;
@@ -536,13 +536,13 @@ declare const TextFieldTypes: () => ({
536
536
  hoverHelpTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
537
537
  feedbackText: string;
538
538
  feedbackVariant: "success" | "warning" | "error";
539
+ maxLength: number;
539
540
  viewOnly: boolean;
540
541
  labelDirection: "top" | "inside";
541
542
  hideNumberArrows: boolean;
542
543
  step: number;
543
544
  onlyDigits: boolean;
544
545
  suffix: string;
545
- maxLength: number;
546
546
  showApply: boolean;
547
547
  inlineError: boolean;
548
548
  inlineErrorText: string;
@@ -0,0 +1,34 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ currentLength: number;
3
+ maxLength?: number;
4
+ }>, {
5
+ currentLength: number;
6
+ maxLength: number;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ currentLength: number;
9
+ maxLength?: number;
10
+ }>, {
11
+ currentLength: number;
12
+ maxLength: number;
13
+ }>>>, {
14
+ currentLength: number;
15
+ maxLength: number;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,7 @@
1
+ import e from "./FieldMaxLength.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-f3c4001a"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,24 @@
1
+ import "../../FieldMaxLength.vue_vue_type_style_index_0_scoped_f3c4001a_lang.css"; import { defineComponent as n, openBlock as o, createElementBlock as c, createVNode as r, unref as d, withCtx as p, createTextVNode as t, toDisplayString as a, pushScopeId as i, popScopeId as s, createElementVNode as h } from "vue";
2
+ import l from "../typography/v4/Typography.vue.js";
3
+ const m = (e) => (i("data-v-f3c4001a"), e = e(), s(), e), _ = { class: "max-length" }, u = /* @__PURE__ */ m(() => /* @__PURE__ */ h("span", { class: "max-length__divider" }, "/", -1)), v = /* @__PURE__ */ n({
4
+ __name: "FieldMaxLength",
5
+ props: {
6
+ currentLength: { default: 0 },
7
+ maxLength: { default: 100 }
8
+ },
9
+ setup(e) {
10
+ return (f, g) => (o(), c("div", _, [
11
+ r(d(l), { variant: "caption" }, {
12
+ default: p(() => [
13
+ t(a(e.currentLength) + " ", 1),
14
+ u,
15
+ t(" " + a(e.maxLength), 1)
16
+ ]),
17
+ _: 1
18
+ })
19
+ ]));
20
+ }
21
+ });
22
+ export {
23
+ v as default
24
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./TextArea.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eb62e4c0"]]);
5
+ export {
6
+ c as default
7
+ };
@@ -1,7 +1,7 @@
1
- import "../../TextArea.vue_vue_type_style_index_0_scoped_889b62ac_lang.css"; import { defineComponent as x, openBlock as d, createElementBlock as l, normalizeClass as s, unref as t, createVNode as i, withCtx as c, createTextVNode as o, toDisplayString as n, createCommentVNode as u, createElementVNode as T } from "vue";
2
- import "../typography/Heading.vue.js";
3
- import f from "../typography/Text.vue.js";
4
- import { TextAreaTestIdModifiers as a } from "../../testids/index.js";
1
+ import "../../../TextArea.vue_vue_type_style_index_0_scoped_eb62e4c0_lang.css"; import { defineComponent as x, openBlock as d, createElementBlock as l, normalizeClass as s, unref as t, createVNode as i, withCtx as c, createTextVNode as o, toDisplayString as n, createCommentVNode as u, createElementVNode as T } from "vue";
2
+ import "../../typography/Heading.vue.js";
3
+ import f from "../../typography/Text.vue.js";
4
+ import { TextAreaTestIdModifiers as a } from "../../../testids/index.js";
5
5
  const h = ["data-testid"], k = ["data-testid"], E = ["value", "placeholder", "disabled", "data-testid"], I = {
6
6
  key: 1,
7
7
  class: "extra-text-container"