nuxt-glorious 1.2.9-8-8 → 1.2.9-9-0

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.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.9-8-8"
4
+ "version": "1.2.9-9-0"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { computed, GloriousStore, ref, watch } from '#imports'
2
+ import { computed, ref, watch } from '#imports'
3
3
  import { hasValidationError } from '../helper'
4
4
  import { useGloriousCore } from '../../composables/useGloriousCore'
5
5
  import _props from '../props/Input'
@@ -112,8 +112,6 @@ const inputClicked = (event: any) => {
112
112
  optionsElement.classList.remove('hidden')
113
113
  }
114
114
  }
115
-
116
- const gs = GloriousStore()
117
115
  </script>
118
116
 
119
117
  <template>
@@ -184,13 +182,13 @@ const gs = GloriousStore()
184
182
  :key="index"
185
183
  @click="addTagViaOption(option, $event)"
186
184
  >
187
- {{ option.text }}
185
+ {{ option[props.displayTextKey] }}
188
186
  </div>
189
187
  </template>
190
188
  </div>
191
189
  </div>
192
190
  <div
193
- v-if="tags.length !== 0"
191
+ v-if="tags?.length !== 0"
194
192
  class="glorious-input-tag"
195
193
  >
196
194
  <div
@@ -72,6 +72,11 @@ declare const _default: {
72
72
  default: string;
73
73
  type: StringConstructor;
74
74
  };
75
+ displayTextKey: {
76
+ required: boolean;
77
+ default: string;
78
+ type: StringConstructor;
79
+ };
75
80
  size: {
76
81
  required: boolean;
77
82
  default: import("../../../types").sizes;
@@ -7,13 +7,15 @@ import {
7
7
  icon,
8
8
  disabled,
9
9
  options,
10
- required
10
+ required,
11
+ displayTextKey
11
12
  } from "./common/index.mjs";
12
13
  export default {
13
14
  ...color(),
14
15
  ...placeholder(),
15
16
  ...title(),
16
17
  ...size(),
18
+ ...displayTextKey(),
17
19
  ...error,
18
20
  ...icon,
19
21
  ...disabled,
@@ -1,9 +1,4 @@
1
1
  declare const _default: {
2
- displayTextKey: {
3
- required: boolean;
4
- default: string;
5
- type: StringConstructor;
6
- };
7
2
  options: {
8
3
  required: boolean;
9
4
  default: never[];
@@ -37,6 +32,11 @@ declare const _default: {
37
32
  default: string;
38
33
  type: StringConstructor;
39
34
  };
35
+ displayTextKey: {
36
+ required: boolean;
37
+ default: string;
38
+ type: StringConstructor;
39
+ };
40
40
  required: {
41
41
  required: boolean;
42
42
  default: boolean;
@@ -6,7 +6,8 @@ import {
6
6
  error,
7
7
  disabled,
8
8
  placeholder,
9
- required
9
+ required,
10
+ displayTextKey
10
11
  } from "./common/index.mjs";
11
12
  export default {
12
13
  ...size(),
@@ -14,12 +15,8 @@ export default {
14
15
  ...placeholder(),
15
16
  ...color(),
16
17
  ...required(),
18
+ ...displayTextKey(),
17
19
  ...error,
18
20
  ...disabled,
19
- ...options,
20
- displayTextKey: {
21
- required: false,
22
- default: "text",
23
- type: String
24
- }
21
+ ...options
25
22
  };
@@ -166,3 +166,10 @@ export declare const required: () => {
166
166
  type: BooleanConstructor;
167
167
  };
168
168
  };
169
+ export declare const displayTextKey: () => {
170
+ displayTextKey: {
171
+ required: boolean;
172
+ default: string;
173
+ type: StringConstructor;
174
+ };
175
+ };
@@ -152,3 +152,10 @@ export const required = () => ({
152
152
  type: Boolean
153
153
  }
154
154
  });
155
+ export const displayTextKey = () => ({
156
+ displayTextKey: {
157
+ required: false,
158
+ default: "text",
159
+ type: String
160
+ }
161
+ });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.9-8-8",
2
+ "version": "1.2.9-9-0",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",