@tekkare/auriga 0.1.11 → 0.1.12

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.
@@ -88,10 +88,10 @@ declare const _default: import("vue").DefineComponent<{
88
88
  FM: string;
89
89
  FR: string;
90
90
  GA: string;
91
- 'GB-ENG': string;
92
- 'GB-NIR': string;
93
- 'GB-SCT': string;
94
- 'GB-WLS': string;
91
+ "GB-ENG": string;
92
+ "GB-NIR": string;
93
+ "GB-SCT": string;
94
+ "GB-WLS": string;
95
95
  GB: string;
96
96
  GD: string;
97
97
  GE: string;
@@ -187,13 +187,13 @@ export default defineComponent({
187
187
  cursor: pointer;
188
188
  }
189
189
  .action_right {
190
- top: -1px;
191
- right: -1px;
190
+ top: -1.5px;
191
+ right: -1.5px;
192
192
  }
193
193
 
194
194
  .action_left {
195
- top: -1px;
196
- left: -1px;
195
+ top: -1.5px;
196
+ left: -1.5px;
197
197
  }
198
198
 
199
199
  .number_input_style {
@@ -37,8 +37,7 @@ export default defineComponent({
37
37
  },
38
38
  value: {
39
39
  type: String,
40
- default: "",
41
- required: true
40
+ default: ""
42
41
  }
43
42
  },
44
43
  emits: ["update:Value", "submitSearch"],
@@ -6,7 +6,6 @@ declare const _default: import("vue").DefineComponent<{
6
6
  value: {
7
7
  type: StringConstructor;
8
8
  default: string;
9
- required: true;
10
9
  };
11
10
  }, {
12
11
  searchValue: import("vue").Ref<string>;
@@ -21,7 +20,6 @@ declare const _default: import("vue").DefineComponent<{
21
20
  value: {
22
21
  type: StringConstructor;
23
22
  default: string;
24
- required: true;
25
23
  };
26
24
  }>> & {
27
25
  "onUpdate:Value"?: ((...args: any[]) => any) | undefined;
@@ -1,5 +1,6 @@
1
1
  <template>
2
- <div>
2
+ <div class="oip_filter_display">
3
+ <p class="oip_filter_label">{{ inputLabel }}</p>
3
4
  <input
4
5
  class="oip_simple_input"
5
6
  :placeholder="placeholderValue"
@@ -32,6 +33,10 @@ export default defineComponent({
32
33
  defaultValue: {
33
34
  type: [String, Number],
34
35
  default: ""
36
+ },
37
+ inputLabel: {
38
+ type: String,
39
+ required: true
35
40
  }
36
41
  },
37
42
  emits: ["update:Value", "changeValue", "submitInput"],
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: (StringConstructor | NumberConstructor)[];
12
12
  default: string;
13
13
  };
14
+ inputLabel: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
14
18
  }, {
15
19
  inputValue: import("vue").Ref<string | number>;
16
20
  changeInput: (event: any) => void;
@@ -28,6 +32,10 @@ declare const _default: import("vue").DefineComponent<{
28
32
  type: (StringConstructor | NumberConstructor)[];
29
33
  default: string;
30
34
  };
35
+ inputLabel: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
31
39
  }>> & {
32
40
  "onUpdate:Value"?: ((...args: any[]) => any) | undefined;
33
41
  onChangeValue?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,34 @@
1
+ <template>
2
+ <div class="arg_source_container">
3
+ <slot />
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import {
9
+ defineComponent
10
+ } from "vue";
11
+ export default defineComponent({
12
+ name: "argSourceContainer"
13
+ });
14
+ </script>
15
+
16
+ <style scoped>
17
+ .arg_source_container {
18
+ padding: 4px 0;
19
+ display: flex;
20
+ align-items: center;
21
+ gap: 8px;
22
+ font-style: normal;
23
+ font-weight: 400;
24
+ font-size: 12px;
25
+ line-height: 14px;
26
+ color: var(--primary);
27
+ white-space: nowrap;
28
+ text-overflow: ellipsis;
29
+ overflow: hidden;
30
+ display: flex;
31
+ align-items: center;
32
+ height: 14px;
33
+ }
34
+ </style>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -6,7 +6,7 @@
6
6
  :value="searchKey"
7
7
  :placeHolderValue="getPlaceHolder"
8
8
  class="table_input"
9
- @submitSearch="searchSubmit = true"
9
+ @submitSearch="sendSearch"
10
10
  />
11
11
  <div :class="fullTableScroll ? 'full scroll_table' : 'full'">
12
12
  <div
@@ -107,7 +107,13 @@
107
107
  :name="columnTypeNonProps[valIndex]"
108
108
  v-bind:value="value"
109
109
  ></slot>
110
- <p v-else>{{ value }}</p>
110
+ <p v-else>
111
+ {{
112
+ typeof value === "number"
113
+ ? Intl.NumberFormat("us-US").format(value)
114
+ : value
115
+ }}
116
+ </p>
111
117
  </td>
112
118
  </tr>
113
119
  <tr
@@ -117,7 +123,10 @@
117
123
  :class="greyBG(contIndex) ? 'grey_bg' : 'white_bg'"
118
124
  >
119
125
  <td class="more_section" :colspan="heads.length.toString()">
120
- <slot name="showMore" v-bind:value="contIndex" />
126
+ <slot
127
+ name="showMore"
128
+ v-bind:value="[contIndex, finalTable[contIndex][0]]"
129
+ />
121
130
  </td>
122
131
  </tr>
123
132
  </template>
@@ -128,7 +137,11 @@
128
137
  </div>
129
138
  <div v-else-if="loadingData" class="empty_table">
130
139
  <arg-tekkare-loader v-if="loaderType === 'tekkare'" />
131
- <arg-data-loader v-else />
140
+ <arg-data-loader
141
+ v-else
142
+ :text="loaderValues[0]"
143
+ :sub-text="loaderValues[1]"
144
+ />
132
145
  </div>
133
146
  <div
134
147
  v-if="
@@ -198,6 +211,9 @@ import argIcon from "./argIcon.vue";
198
211
  import argNoData from "./argNoData.vue";
199
212
  import argDataLoader from "./argDataLoader.vue";
200
213
  import argTekkareLoader from "./argTekkareLoader.vue";
214
+ import argSearchInput from "./argSearchInput.vue";
215
+ import argTooltip from "./argTooltip.vue";
216
+ import argBtn from "./argBtn.vue";
201
217
  import {
202
218
  ref,
203
219
  computed,
@@ -206,7 +222,15 @@ import {
206
222
  } from "vue";
207
223
  export default defineComponent({
208
224
  name: "argTable",
209
- components: { argIcon, argNoData, argDataLoader, argTekkareLoader },
225
+ components: {
226
+ argIcon,
227
+ argNoData,
228
+ argDataLoader,
229
+ argTekkareLoader,
230
+ argSearchInput,
231
+ argTooltip,
232
+ argBtn
233
+ },
210
234
  props: {
211
235
  heads: {
212
236
  type: Array,
@@ -219,7 +243,7 @@ export default defineComponent({
219
243
  default: () => [{ values: Array }]
220
244
  },
221
245
  // data values
222
- pageSize: { type: Number, default: 3 },
246
+ pageSize: { type: Number, default: 10 },
223
247
  // number of rows to be displayed in table
224
248
  sort: { type: Boolean, default: true },
225
249
  // allow for table sorting
@@ -261,6 +285,10 @@ export default defineComponent({
261
285
  "Change or empty your search."
262
286
  ]
263
287
  },
288
+ loaderValues: {
289
+ type: Array,
290
+ default: () => ["Doing data science", "Thanks for waiting"]
291
+ },
264
292
  loadingData: {
265
293
  type: Boolean,
266
294
  default: false
@@ -278,7 +306,8 @@ export default defineComponent({
278
306
  default: "300"
279
307
  }
280
308
  },
281
- setup(props) {
309
+ emits: ["changeInputValue"],
310
+ setup(props, { emit }) {
282
311
  const dataValues = ref();
283
312
  const sortCol = ref();
284
313
  const sortDir = ref();
@@ -310,6 +339,9 @@ export default defineComponent({
310
339
  );
311
340
  watch(searchKey, (newSearchKey) => {
312
341
  setPage(1);
342
+ if (!props.searchFullWord || props.searchFullWord && newSearchKey.length === 0) {
343
+ emit("changeInputValue", newSearchKey);
344
+ }
313
345
  if (newSearchKey.length === 0) {
314
346
  searchSubmit.value = false;
315
347
  }
@@ -407,6 +439,10 @@ export default defineComponent({
407
439
  }
408
440
  searchIndex.value = index;
409
441
  }
442
+ function sendSearch() {
443
+ searchSubmit.value = true;
444
+ emit("changeInputValue", searchKey.value);
445
+ }
410
446
  function viewSearchInput(index) {
411
447
  if (searchIndex.value === index && showSearch) {
412
448
  return true;
@@ -618,7 +654,8 @@ export default defineComponent({
618
654
  resultCount,
619
655
  totalPages,
620
656
  getPlaceHolder,
621
- getHeight
657
+ getHeight,
658
+ sendSearch
622
659
  };
623
660
  }
624
661
  });
@@ -132,6 +132,10 @@ declare const _default: import("vue").DefineComponent<{
132
132
  type: ArrayConstructor;
133
133
  default: () => string[];
134
134
  };
135
+ loaderValues: {
136
+ type: ArrayConstructor;
137
+ default: () => string[];
138
+ };
135
139
  loadingData: {
136
140
  type: BooleanConstructor;
137
141
  default: boolean;
@@ -186,7 +190,8 @@ declare const _default: import("vue").DefineComponent<{
186
190
  totalPages: import("vue").ComputedRef<number>;
187
191
  getPlaceHolder: import("vue").ComputedRef<string>;
188
192
  getHeight: import("vue").ComputedRef<string>;
189
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
193
+ sendSearch: () => void;
194
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeInputValue"[], "changeInputValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
190
195
  heads: {
191
196
  type: {
192
197
  (arrayLength: number): string[];
@@ -320,6 +325,10 @@ declare const _default: import("vue").DefineComponent<{
320
325
  type: ArrayConstructor;
321
326
  default: () => string[];
322
327
  };
328
+ loaderValues: {
329
+ type: ArrayConstructor;
330
+ default: () => string[];
331
+ };
323
332
  loadingData: {
324
333
  type: BooleanConstructor;
325
334
  default: boolean;
@@ -336,7 +345,9 @@ declare const _default: import("vue").DefineComponent<{
336
345
  type: (StringConstructor | NumberConstructor)[];
337
346
  default: string;
338
347
  };
339
- }>>, {
348
+ }>> & {
349
+ onChangeInputValue?: ((...args: any[]) => any) | undefined;
350
+ }, {
340
351
  sort: boolean;
341
352
  search: boolean;
342
353
  contents: Object[];
@@ -349,6 +360,7 @@ declare const _default: import("vue").DefineComponent<{
349
360
  toggleDisplay: boolean;
350
361
  pagesPosition: string;
351
362
  noDataValues: unknown[];
363
+ loaderValues: unknown[];
352
364
  loadingData: boolean;
353
365
  loaderType: string;
354
366
  fullTableScroll: boolean;
@@ -106,24 +106,25 @@ export default defineComponent({
106
106
  background-color: transparent;
107
107
  transition: all ease 0.5s;
108
108
  position: fixed;
109
- width: 100%;
110
- height: 100%;
111
109
  left: 0;
112
- top: 0;
113
110
  bottom: 0;
111
+ height: 0px;
112
+ width: 0px;
114
113
  padding: 53px 82px;
115
- z-index: 0;
114
+ z-index: -5;
116
115
  }
117
116
 
118
117
  .arg_tuto_modal_open {
119
118
  z-index: 2000;
120
119
  background-color: rgba(0, 0, 0, 0.4);
120
+ width: 100%;
121
+ height: calc(100% - 106px);
121
122
  }
122
123
 
123
124
  .arg_tuto_modal {
124
125
  display: flex;
125
126
  width: calc(100% - 164px);
126
- height: calc(100% - 106px);
127
+ height: 100%;
127
128
  flex-direction: column;
128
129
  align-items: flex-start;
129
130
  flex-shrink: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,6 +32,7 @@
32
32
  "dependencies": {
33
33
  "@esbuild/darwin-x64": "^0.19.8",
34
34
  "@nuxt/kit": "^3.7.3",
35
+ "@pinia/nuxt": "^0.5.1",
35
36
  "apexcharts": "^3.43.0",
36
37
  "vue-apexcharts": "^1.6.2",
37
38
  "vue3-apexcharts": "^1.4.4"