nuxt-glorious 1.2.9-8-9 → 1.2.9-9-1

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-9"
4
+ "version": "1.2.9-9-1"
5
5
  }
@@ -182,7 +182,7 @@ const inputClicked = (event: any) => {
182
182
  :key="index"
183
183
  @click="addTagViaOption(option, $event)"
184
184
  >
185
- {{ option.text }}
185
+ {{ option[props.displayTextKey] }}
186
186
  </div>
187
187
  </template>
188
188
  </div>
@@ -195,7 +195,7 @@ const inputClicked = (event: any) => {
195
195
  v-for="(item, index) in tags"
196
196
  :key="index"
197
197
  >
198
- {{ typeof item === 'object' ? item.text : item }}
198
+ {{ typeof item === 'object' ? item[props.displayTextKey] : item }}
199
199
  <GIcon
200
200
  name="glorious-x"
201
201
  :size="10"
@@ -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-9",
2
+ "version": "1.2.9-9-1",
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",