itube-specs 0.0.553 → 0.0.555

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.
@@ -16,6 +16,11 @@
16
16
  class="s-input__label"
17
17
  :for="name"
18
18
  >
19
+ <SIcon
20
+ v-if="labelIcon"
21
+ :name="labelIcon"
22
+ size="16"
23
+ />
19
24
  {{ label }}
20
25
  </label>
21
26
  <div class="s-input__wrapper">
@@ -46,7 +51,7 @@
46
51
  :autofocus="autofocus"
47
52
  :tabindex="disabled ? '-1' : '0'"
48
53
  autocapitalize="off"
49
- :placeholder="label"
54
+ :placeholder="placeholder"
50
55
  spellcheck="false"
51
56
  v-bind="$attrs"
52
57
  @input="onInput"
@@ -95,7 +100,9 @@ const props = withDefaults(defineProps<{
95
100
  autocomplete?: string
96
101
  name?: string
97
102
  label?: string
103
+ placeholder?: string
98
104
  icon?: string
105
+ labelIcon?: string
99
106
  }>(), {
100
107
  type: 'text',
101
108
  inputmode: 'text',
@@ -13,31 +13,31 @@ export const reportFormsScheme: Array<IReportScheme> = [
13
13
  {
14
14
  type: 'text',
15
15
  value: 'firstName',
16
- label: 'first_name',
16
+ placeholder: 'first_name',
17
17
  required: true,
18
18
  },
19
19
  {
20
20
  type: 'text',
21
21
  value: 'lastName',
22
- label: 'last_name',
22
+ placeholder: 'last_name',
23
23
  required: true,
24
24
  },
25
25
  {
26
26
  type: 'text',
27
27
  value: 'company',
28
- label: 'your_company',
28
+ placeholder: 'your_company',
29
29
  wide: true,
30
30
  },
31
31
  {
32
32
  type: 'text',
33
33
  value: 'address',
34
- label: 'address',
34
+ placeholder: 'address',
35
35
  required: true,
36
36
  },
37
37
  {
38
38
  type: 'tel',
39
39
  value: 'phone',
40
- label: 'phone',
40
+ placeholder: 'phone',
41
41
  required: true,
42
42
  },
43
43
  {
@@ -50,7 +50,7 @@ export const reportFormsScheme: Array<IReportScheme> = [
50
50
  {
51
51
  type: 'text',
52
52
  value: 'from',
53
- label: 'email',
53
+ placeholder: 'email',
54
54
  required: true,
55
55
  wide: true,
56
56
  },
@@ -91,13 +91,13 @@ export const reportFormsScheme: Array<IReportScheme> = [
91
91
  {
92
92
  type: 'text',
93
93
  value: 'from',
94
- label: 'email',
94
+ placeholder: 'email',
95
95
  required: true,
96
96
  },
97
97
  {
98
98
  type: 'text',
99
99
  value: 'name',
100
- label: 'name',
100
+ placeholder: 'name',
101
101
  },
102
102
  ]
103
103
  },
@@ -123,13 +123,13 @@ export const reportFormsScheme: Array<IReportScheme> = [
123
123
  {
124
124
  type: 'text',
125
125
  value: 'from',
126
- label: 'email',
126
+ placeholder: 'email',
127
127
  required: true,
128
128
  },
129
129
  {
130
130
  type: 'text',
131
131
  value: 'name',
132
- label: 'name',
132
+ placeholder: 'name',
133
133
  },
134
134
  ],
135
135
  },
@@ -148,13 +148,13 @@ export const reportFormsScheme: Array<IReportScheme> = [
148
148
  {
149
149
  type: 'text',
150
150
  value: 'from',
151
- label: 'email',
151
+ placeholder: 'email',
152
152
  required: true,
153
153
  },
154
154
  {
155
155
  type: 'text',
156
156
  value: 'name',
157
- label: 'name',
157
+ placeholder: 'name',
158
158
  },
159
159
  ],
160
160
  },
@@ -186,20 +186,20 @@ export const reportFormsScheme: Array<IReportScheme> = [
186
186
  {
187
187
  type: 'text',
188
188
  value: 'antivirus',
189
- label: 'antivirus',
189
+ placeholder: 'antivirus',
190
190
  required: true,
191
191
  wide: true,
192
192
  },
193
193
  {
194
194
  type: 'text',
195
195
  value: 'from',
196
- label: 'email',
196
+ placeholder: 'email',
197
197
  required: true,
198
198
  },
199
199
  {
200
200
  type: 'text',
201
201
  value: 'name',
202
- label: 'name',
202
+ placeholder: 'name',
203
203
  },
204
204
  ],
205
205
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.553",
4
+ "version": "0.0.555",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -14,6 +14,8 @@ export interface IReportScheme {
14
14
  type: InputTypes | string
15
15
  value: string
16
16
  label?: string
17
+ placeholder?: string
18
+ hideLabel?: boolean
17
19
  required?: boolean
18
20
  wide?: boolean
19
21
  text?: string