@vc-shell/framework 1.0.265 → 1.0.267

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 (35) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/framework.js +7363 -7338
  3. package/dist/index.css +1 -1
  4. package/dist/locales/en.json +3 -0
  5. package/dist/shared/modules/dynamic/types/index.d.ts +2 -1
  6. package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
  7. package/dist/tsconfig.tsbuildinfo +1 -1
  8. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +19 -0
  9. package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts.map +1 -1
  10. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +19 -0
  11. package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -1
  12. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +4 -0
  13. package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
  14. package/dist/ui/components/molecules/vc-pagination/index.d.ts +9 -0
  15. package/dist/ui/components/molecules/vc-pagination/index.d.ts.map +1 -1
  16. package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts +18 -0
  17. package/dist/ui/components/molecules/vc-pagination/vc-pagination.stories.d.ts.map +1 -1
  18. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +4 -0
  19. package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
  20. package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +30 -0
  21. package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts.map +1 -1
  22. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -0
  23. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  24. package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +15 -0
  25. package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
  26. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +5 -0
  27. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  28. package/package.json +4 -4
  29. package/shared/modules/dynamic/pages/dynamic-blade-list.vue +1 -0
  30. package/shared/modules/dynamic/types/index.ts +2 -0
  31. package/ui/components/molecules/vc-input/vc-input.vue +11 -2
  32. package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
  33. package/ui/components/molecules/vc-pagination/vc-pagination.vue +148 -91
  34. package/ui/components/molecules/vc-select/vc-select.vue +8 -1
  35. package/ui/components/organisms/vc-table/vc-table.vue +4 -0
@@ -101,6 +101,7 @@ export declare const Loading: StoryFn<(<T extends string | import("./vc-table.vu
101
101
  show: boolean;
102
102
  title: string;
103
103
  } | undefined;
104
+ paginationVariant?: "default" | "minimal" | undefined;
104
105
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
105
106
  attrs: any;
106
107
  slots: Readonly<{
@@ -209,6 +210,7 @@ export declare const Loading: StoryFn<(<T extends string | import("./vc-table.vu
209
210
  show: boolean;
210
211
  title: string;
211
212
  } | undefined;
213
+ paginationVariant?: "default" | "minimal" | undefined;
212
214
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
213
215
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
214
216
  attrs: any;
@@ -321,6 +323,7 @@ export declare const Loading: StoryFn<(<T extends string | import("./vc-table.vu
321
323
  show: boolean;
322
324
  title: string;
323
325
  } | undefined;
326
+ paginationVariant?: "default" | "minimal" | undefined;
324
327
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
325
328
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
326
329
  attrs: any;
@@ -431,6 +434,7 @@ export declare const WithoutHeader: StoryFn<(<T extends string | import("./vc-ta
431
434
  show: boolean;
432
435
  title: string;
433
436
  } | undefined;
437
+ paginationVariant?: "default" | "minimal" | undefined;
434
438
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
435
439
  attrs: any;
436
440
  slots: Readonly<{
@@ -539,6 +543,7 @@ export declare const WithoutHeader: StoryFn<(<T extends string | import("./vc-ta
539
543
  show: boolean;
540
544
  title: string;
541
545
  } | undefined;
546
+ paginationVariant?: "default" | "minimal" | undefined;
542
547
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
543
548
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
544
549
  attrs: any;
@@ -651,6 +656,7 @@ export declare const WithoutHeader: StoryFn<(<T extends string | import("./vc-ta
651
656
  show: boolean;
652
657
  title: string;
653
658
  } | undefined;
659
+ paginationVariant?: "default" | "minimal" | undefined;
654
660
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
655
661
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
656
662
  attrs: any;
@@ -761,6 +767,7 @@ export declare const WithoutFooter: StoryFn<(<T extends string | import("./vc-ta
761
767
  show: boolean;
762
768
  title: string;
763
769
  } | undefined;
770
+ paginationVariant?: "default" | "minimal" | undefined;
764
771
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
765
772
  attrs: any;
766
773
  slots: Readonly<{
@@ -869,6 +876,7 @@ export declare const WithoutFooter: StoryFn<(<T extends string | import("./vc-ta
869
876
  show: boolean;
870
877
  title: string;
871
878
  } | undefined;
879
+ paginationVariant?: "default" | "minimal" | undefined;
872
880
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
873
881
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
874
882
  attrs: any;
@@ -981,6 +989,7 @@ export declare const WithoutFooter: StoryFn<(<T extends string | import("./vc-ta
981
989
  show: boolean;
982
990
  title: string;
983
991
  } | undefined;
992
+ paginationVariant?: "default" | "minimal" | undefined;
984
993
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
985
994
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
986
995
  attrs: any;
@@ -1091,6 +1100,7 @@ export declare const DisabledColumnsResizing: StoryFn<(<T extends string | impor
1091
1100
  show: boolean;
1092
1101
  title: string;
1093
1102
  } | undefined;
1103
+ paginationVariant?: "default" | "minimal" | undefined;
1094
1104
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
1095
1105
  attrs: any;
1096
1106
  slots: Readonly<{
@@ -1199,6 +1209,7 @@ export declare const DisabledColumnsResizing: StoryFn<(<T extends string | impor
1199
1209
  show: boolean;
1200
1210
  title: string;
1201
1211
  } | undefined;
1212
+ paginationVariant?: "default" | "minimal" | undefined;
1202
1213
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
1203
1214
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
1204
1215
  attrs: any;
@@ -1311,6 +1322,7 @@ export declare const DisabledColumnsResizing: StoryFn<(<T extends string | impor
1311
1322
  show: boolean;
1312
1323
  title: string;
1313
1324
  } | undefined;
1325
+ paginationVariant?: "default" | "minimal" | undefined;
1314
1326
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
1315
1327
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
1316
1328
  attrs: any;
@@ -1421,6 +1433,7 @@ export declare const DisabledColumnsReordering: StoryFn<(<T extends string | imp
1421
1433
  show: boolean;
1422
1434
  title: string;
1423
1435
  } | undefined;
1436
+ paginationVariant?: "default" | "minimal" | undefined;
1424
1437
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
1425
1438
  attrs: any;
1426
1439
  slots: Readonly<{
@@ -1529,6 +1542,7 @@ export declare const DisabledColumnsReordering: StoryFn<(<T extends string | imp
1529
1542
  show: boolean;
1530
1543
  title: string;
1531
1544
  } | undefined;
1545
+ paginationVariant?: "default" | "minimal" | undefined;
1532
1546
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
1533
1547
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
1534
1548
  attrs: any;
@@ -1641,6 +1655,7 @@ export declare const DisabledColumnsReordering: StoryFn<(<T extends string | imp
1641
1655
  show: boolean;
1642
1656
  title: string;
1643
1657
  } | undefined;
1658
+ paginationVariant?: "default" | "minimal" | undefined;
1644
1659
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
1645
1660
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
1646
1661
  attrs: any;
@@ -1 +1 @@
1
- {"version":3,"file":"vc-table.stories.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK7B,wBAsEiC;AAEjC,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,OAAO,OAAO,CAe1C,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAKxD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAC;AAK1D,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,OAAO,OAAO,CAmEtD,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,OAAO,OAAO,CAuBjD,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import { MaybeRef, Ref } from "vue";
2
+ import { VcPagination } from "./../../";
2
3
  import { IActionBuilderResult, ITableColumns } from "./../../../../core/types";
3
4
  import "core-js/actual/array/to-spliced";
4
5
  import "core-js/actual/array/to-sorted";
6
+ import type { ComponentProps } from "vue-component-type-helpers";
5
7
  export interface StatusImage {
6
8
  image?: string;
7
9
  text: string | Ref<string>;
@@ -68,6 +70,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
68
70
  show: boolean;
69
71
  title: string;
70
72
  } | undefined;
73
+ paginationVariant?: ComponentProps<typeof VcPagination>["variant"];
71
74
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
72
75
  attrs: any;
73
76
  slots: Readonly<{
@@ -176,6 +179,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
176
179
  show: boolean;
177
180
  title: string;
178
181
  } | undefined;
182
+ paginationVariant?: ComponentProps<typeof VcPagination>["variant"];
179
183
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
180
184
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
181
185
  attrs: any;
@@ -288,6 +292,7 @@ declare const _default: <T extends string | TableItem>(__VLS_props: {
288
292
  show: boolean;
289
293
  title: string;
290
294
  } | undefined;
295
+ paginationVariant?: ComponentProps<typeof VcPagination>["variant"];
291
296
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
292
297
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
293
298
  attrs: any;
@@ -1 +1 @@
1
- {"version":3,"file":"vc-table.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/organisms/vc-table/vc-table.vue.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,GAAG,EAWJ,MAAM,KAAK,CAAC;AAGb,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO/E,OAAO,iCAAiC,CAAC;AACzC,OAAO,gCAAgC,CAAC;AAIxC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG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SAAS;mBAAS,MAAM;;;;AA9E7D,wBAysE2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.0.265",
3
+ "version": "1.0.267",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -61,9 +61,9 @@
61
61
  "devDependencies": {
62
62
  "@types/dompurify": "^3.0.5",
63
63
  "@types/quill": "^2.0.14",
64
- "@vc-shell/api-client-generator": "^1.0.265",
65
- "@vc-shell/config-generator": "^1.0.265",
66
- "@vc-shell/ts-config": "^1.0.265",
64
+ "@vc-shell/api-client-generator": "^1.0.267",
65
+ "@vc-shell/config-generator": "^1.0.267",
66
+ "@vc-shell/ts-config": "^1.0.267",
67
67
  "@vitejs/plugin-vue": "^5.0.3",
68
68
  "cypress-signalr-mock": "^1.5.0",
69
69
  "sass": "^1.69.6",
@@ -60,6 +60,7 @@
60
60
  :reorderable-rows="isWidgetView ? false : tableData?.reorderableRows"
61
61
  :pull-to-reload="!isWidgetView"
62
62
  :select-all="tableData?.selectAll"
63
+ :pagination-variant="tableData?.paginationVariant"
63
64
  @item-click="onItemClick"
64
65
  @pagination-click="onPaginationClick"
65
66
  @selection-changed="onSelectionChanged"
@@ -10,6 +10,7 @@ import {
10
10
  VcRating,
11
11
  VcStatus,
12
12
  VcVideo,
13
+ VcPagination,
13
14
  } from "./../../../../ui/components";
14
15
  import { ITableColumns, IValidationRules, MenuItemConfig } from "../../../../core/types";
15
16
  import type { ComponentProps } from "./../../../utilities/vueUtils";
@@ -182,6 +183,7 @@ export interface ListContentSchema {
182
183
  };
183
184
  })[];
184
185
  reorderableRows?: boolean;
186
+ paginationVariant?: ComponentProps<typeof VcPagination>["variant"];
185
187
  // TODO Add to documentation
186
188
  selectAll?: boolean;
187
189
  // TODO Add to documentation
@@ -38,7 +38,13 @@
38
38
  ></slot>
39
39
  </div>
40
40
  <div class="tw-flex tw-flex-col tw-flex-nowrap tw-flex-auto tw-relative">
41
- <div class="vc-input__field-wrapper">
41
+ <div
42
+ class="vc-input__field-wrapper"
43
+ :class="{
44
+ 'tw-h-[var(--input-height)]': size === 'default',
45
+ 'tw-h-[var(--input-height-small)]': size === 'small',
46
+ }"
47
+ >
42
48
  <div class="tw-flex tw-flex-nowrap tw-flex-auto tw-h-full">
43
49
  <div
44
50
  v-if="$slots['prepend-inner']"
@@ -321,6 +327,7 @@ export interface Props {
321
327
  * @see https://vue3datepicker.com/
322
328
  */
323
329
  datePickerOptions?: VueDatePickerProps;
330
+ size?: "default" | "small";
324
331
  }
325
332
 
326
333
  export interface Emits {
@@ -336,6 +343,7 @@ const props = withDefaults(defineProps<Props>(), {
336
343
  name: "Field",
337
344
  maxlength: "1024",
338
345
  step: "1",
346
+ size: "default",
339
347
  });
340
348
 
341
349
  const emit = defineEmits<Emits>();
@@ -540,6 +548,7 @@ function focus() {
540
548
  <style lang="scss">
541
549
  :root {
542
550
  --input-height: 38px;
551
+ --input-height-small: 30px;
543
552
  --input-border-radius: 3px;
544
553
  --input-border-color: #d3dbe9;
545
554
  --input-border-color-error: #f14e4e;
@@ -564,7 +573,7 @@ function focus() {
564
573
  }
565
574
 
566
575
  &__field-wrapper {
567
- @apply tw-px-3 tw-relative tw-flex tw-flex-nowrap tw-w-full tw-outline-none tw-h-[var(--input-height)] tw-min-w-0 tw-box-border tw-grow tw-border tw-border-solid tw-border-[color:var(--input-border-color)] tw-rounded-[var(--input-border-radius)] tw-bg-[color:var(--input-background-color)];
576
+ @apply tw-px-3 tw-relative tw-flex tw-flex-nowrap tw-w-full tw-outline-none tw-min-w-0 tw-box-border tw-grow tw-border tw-border-solid tw-border-[color:var(--input-border-color)] tw-rounded-[var(--input-border-radius)] tw-bg-[color:var(--input-background-color)];
568
577
  }
569
578
 
570
579
  &_error &__field-wrapper {
@@ -20,5 +20,5 @@ export const Template: StoryFn<typeof VcPagination> = (args) => ({
20
20
 
21
21
  export const Expanded = Template.bind({});
22
22
  Expanded.args = {
23
- expanded: true,
23
+ // expanded: true,
24
24
  };
@@ -1,127 +1,154 @@
1
1
  <template>
2
- <div class="vc-pagination tw-flex">
3
- <!-- To first page chevron -->
4
- <div
5
- class="vc-pagination__item"
6
- :class="{
7
- 'vc-pagination__item_disabled': currentPage === 1,
8
- }"
9
- @click="currentPage !== 1 && $emit('itemClick', 1)"
10
- >
11
- <VcIcon
12
- size="xs"
13
- icon="fas fa-angle-double-left"
14
- ></VcIcon>
15
- </div>
16
-
17
- <!-- To previous page arrow -->
18
- <div
19
- class="vc-pagination__item"
20
- :class="{
21
- 'vc-pagination__item_disabled': currentPage === 1,
22
- }"
23
- @click="currentPage !== 1 && $emit('itemClick', currentPage - 1)"
24
- >
25
- <VcIcon
26
- size="xs"
27
- icon="fas fa-arrow-left"
28
- ></VcIcon>
29
- </div>
30
-
31
- <template v-if="expanded && $isDesktop.value">
32
- <!-- To preprevious page with number -->
2
+ <div class="vc-pagination">
3
+ <!-- Pagination Controls -->
4
+ <div class="vc-pagination__controls">
33
5
  <div
34
- v-if="currentPage > 2"
35
6
  class="vc-pagination__item"
36
- @click="$emit('itemClick', currentPage - 2)"
7
+ :class="{ 'vc-pagination__item_disabled': currentPage === 1 }"
8
+ @click="currentPage !== 1 && setPage(currentPage - 1)"
37
9
  >
38
- {{ currentPage - 2 }}
10
+ <VcIcon
11
+ size="xs"
12
+ icon="fas fa-arrow-left"
13
+ ></VcIcon>
39
14
  </div>
40
15
 
41
- <!-- To previous page with number -->
42
16
  <div
43
- v-if="currentPage > 1"
17
+ v-for="page in pagesToShow"
18
+ :key="page"
44
19
  class="vc-pagination__item"
45
- @click="$emit('itemClick', currentPage - 1)"
20
+ :class="{
21
+ 'vc-pagination__item_current': page === currentPage,
22
+ 'vc-pagination__item_hover': page !== '...' && page !== currentPage,
23
+ }"
24
+ @click="setPage(page)"
46
25
  >
47
- {{ currentPage - 1 }}
26
+ {{ page }}
48
27
  </div>
49
- </template>
50
-
51
- <!-- Current page -->
52
- <div class="vc-pagination__item vc-pagination__item_current">
53
- {{ currentPage }}
54
- </div>
55
28
 
56
- <template v-if="expanded && $isDesktop.value">
57
- <!-- To next page with number -->
58
29
  <div
59
- v-if="currentPage < pages"
60
30
  class="vc-pagination__item"
61
- @click="$emit('itemClick', currentPage + 1)"
31
+ :class="{ 'vc-pagination__item_disabled': currentPage === pages }"
32
+ @click="currentPage !== pages && setPage(currentPage + 1)"
62
33
  >
63
- {{ currentPage + 1 }}
34
+ <VcIcon
35
+ size="xs"
36
+ icon="fas fa-arrow-right"
37
+ ></VcIcon>
64
38
  </div>
65
39
 
66
- <!-- To postnext page with number -->
40
+ <!-- Jump to page input -->
67
41
  <div
68
- v-if="currentPage < pages - 1"
69
- class="vc-pagination__item"
70
- @click="$emit('itemClick', currentPage + 2)"
42
+ v-if="variant === 'default' && pages > 5"
43
+ class="vc-pagination__jump"
71
44
  >
72
- {{ currentPage + 2 }}
45
+ <p class="tw-mr-3">{{ $t("COMPONENTS.MOLECULES.VC_PAGINATION.JUMP") }}</p>
46
+
47
+ <VcInput
48
+ type="number"
49
+ size="small"
50
+ :model-value="jumpPage"
51
+ @update:model-value="handleInputChange"
52
+ >
53
+ <template #control="{ modelValue }">
54
+ <input
55
+ :value="modelValue"
56
+ class="tw-w-full"
57
+ :max="props.pages"
58
+ @input="(event) => handleInputChange((event.target as HTMLInputElement)?.value)"
59
+ @keyup.enter="setPage(jumpPage)"
60
+ @keydown="onKeyDown"
61
+ />
62
+ </template>
63
+ </VcInput>
73
64
  </div>
74
- </template>
75
-
76
- <!-- To next page arrow -->
77
- <div
78
- class="vc-pagination__item"
79
- :class="{
80
- 'vc-pagination__item_disabled': currentPage === pages,
81
- }"
82
- @click="currentPage !== pages && $emit('itemClick', currentPage + 1)"
83
- >
84
- <VcIcon
85
- size="xs"
86
- icon="fas fa-arrow-right"
87
- ></VcIcon>
88
- </div>
89
-
90
- <!-- To last page chevron -->
91
- <div
92
- class="vc-pagination__item"
93
- :class="{
94
- 'vc-pagination__item_disabled': currentPage === pages,
95
- }"
96
- @click="currentPage !== pages && $emit('itemClick', pages)"
97
- >
98
- <VcIcon
99
- size="xs"
100
- icon="fas fa-angle-double-right"
101
- ></VcIcon>
102
65
  </div>
103
66
  </div>
104
67
  </template>
105
68
 
106
69
  <script lang="ts" setup>
107
- import { VcIcon } from "./../../";
70
+ import { ref, computed } from "vue";
71
+ import { VcIcon, VcInput } from "./../../";
108
72
 
109
73
  export interface Props {
110
74
  expanded?: boolean;
111
75
  pages?: number;
112
76
  currentPage?: number;
77
+ variant?: "default" | "minimal";
113
78
  }
114
79
 
115
80
  export interface Emits {
116
81
  (event: "itemClick", pages: number): void;
117
82
  }
118
83
 
119
- withDefaults(defineProps<Props>(), {
84
+ const props = withDefaults(defineProps<Props>(), {
120
85
  pages: 1,
121
86
  currentPage: 1,
87
+ variant: "default",
122
88
  });
123
89
 
124
- defineEmits<Emits>();
90
+ const emit = defineEmits<Emits>();
91
+
92
+ const currentPage = ref(props.currentPage);
93
+ const jumpPage = ref();
94
+
95
+ const setPage = (page: number | string) => {
96
+ if (typeof page === "undefined" || (typeof page === "number" && isNaN(page))) return;
97
+ const pageNumber = typeof page === "string" ? parseInt(page) : page;
98
+ if (pageNumber < 1 || pageNumber > props.pages || page === "...") return;
99
+ currentPage.value = pageNumber;
100
+ emit("itemClick", pageNumber);
101
+ };
102
+
103
+ const handleInputChange = (value: unknown) => {
104
+ const numberValue: number = typeof value === "string" ? parseInt(value) : Number(value);
105
+ let parsedValue = numberValue;
106
+
107
+ if (parsedValue > props.pages) {
108
+ parsedValue = props.pages;
109
+ } else if (parsedValue < 1) {
110
+ parsedValue = 1;
111
+ }
112
+
113
+ jumpPage.value = parsedValue;
114
+ };
115
+
116
+ function onKeyDown(e: KeyboardEvent) {
117
+ const allowedKeys = ["Backspace", "Delete", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
118
+ if (
119
+ (!/^\d$/.test(e.key) && !allowedKeys.includes(e.key)) ||
120
+ (jumpPage.value >= props.pages && e.key !== "Backspace" && e.key !== "Delete")
121
+ ) {
122
+ e.preventDefault();
123
+ }
124
+ }
125
+
126
+ const pagesToShow = computed(() => {
127
+ const pages = [];
128
+ const range = 2;
129
+
130
+ if (props.pages <= 5) {
131
+ for (let i = 1; i <= props.pages; i++) {
132
+ pages.push(i);
133
+ }
134
+ } else {
135
+ if (currentPage.value >= 1) pages.push(1);
136
+ if (currentPage.value > 3) pages.push("...");
137
+
138
+ for (
139
+ let i = Math.max(2, currentPage.value - range);
140
+ i <= Math.min(props.pages - 1, currentPage.value + range);
141
+ i++
142
+ ) {
143
+ pages.push(i);
144
+ }
145
+
146
+ if (currentPage.value < props.pages - 2) pages.push("...");
147
+ if (currentPage.value <= props.pages) pages.push(props.pages);
148
+ }
149
+
150
+ return pages;
151
+ });
125
152
  </script>
126
153
 
127
154
  <style lang="scss">
@@ -144,6 +171,23 @@ defineEmits<Emits>();
144
171
  }
145
172
 
146
173
  .vc-pagination {
174
+ display: flex;
175
+ align-items: center;
176
+ gap: 10px;
177
+
178
+ &__results {
179
+ margin-right: 20px;
180
+ }
181
+
182
+ &__page-size {
183
+ margin-right: 20px;
184
+ }
185
+
186
+ &__controls {
187
+ display: flex;
188
+ align-items: center;
189
+ }
190
+
147
191
  &__item {
148
192
  @apply tw-flex tw-items-center tw-justify-center tw-w-[var(--pagination-item-width)]
149
193
  tw-h-[var(--pagination-item-height)]
@@ -151,13 +195,9 @@ defineEmits<Emits>();
151
195
  tw-border tw-border-solid tw-border-[color:var(--pagination-item-border-color)]
152
196
  tw-rounded-[var(--pagination-item-border-radius)]
153
197
  tw-text-[color:var(--pagination-item-color)]
154
- tw-box-border tw-cursor-pointer
198
+ tw-box-border
155
199
  tw-transition tw-duration-200
156
- tw-mr-3 tw-select-none last:tw-mr-0
157
- hover:tw-bg-[color:var(--pagination-item-background-color-hover)]
158
- hover:tw-text-[color:var(--pagination-item-color-hover)]
159
- hover:tw-border hover:tw-border-solid
160
- hover:tw-border-[color:var(--pagination-item-border-color-hover)];
200
+ tw-mr-3 tw-select-none last:tw-mr-0;
161
201
 
162
202
  &_current,
163
203
  &_current:hover {
@@ -174,6 +214,23 @@ defineEmits<Emits>();
174
214
  tw-border tw-border-solid tw-border-[color:var(--pagination-item-border-color-disabled)]
175
215
  tw-cursor-auto;
176
216
  }
217
+
218
+ &_hover {
219
+ @apply hover:tw-bg-[color:var(--pagination-item-background-color-hover)]
220
+ hover:tw-text-[color:var(--pagination-item-color-hover)]
221
+ hover:tw-border hover:tw-border-solid
222
+ hover:tw-border-[color:var(--pagination-item-border-color-hover)] tw-cursor-pointer;
223
+ }
224
+ }
225
+
226
+ &__jump {
227
+ display: flex;
228
+ align-items: center;
229
+ }
230
+
231
+ &__jump input {
232
+ width: 50px;
233
+ text-align: center;
177
234
  }
178
235
  }
179
236
  </style>
@@ -63,7 +63,11 @@
63
63
  </div>
64
64
  <div
65
65
  data-test-id="dropdown-toggle"
66
- class="tw-appearance-none tw-border-none tw-outline-none tw-min-h-[var(--select-height)] tw-flex tw-items-center tw-w-full tw-box-border tw-cursor-pointer invalid:tw-text-[color:var(--select-placeholder-color)] tw-truncate"
66
+ class="tw-appearance-none tw-border-none tw-outline-none tw-flex tw-items-center tw-w-full tw-box-border tw-cursor-pointer invalid:tw-text-[color:var(--select-placeholder-color)] tw-truncate"
67
+ :class="{
68
+ 'tw-min-h-[var(--select-height)]': size === 'default',
69
+ 'tw-min-h-[var(--select-height-small)]': size === 'small',
70
+ }"
67
71
  @click.stop="toggleDropdown"
68
72
  >
69
73
  <div
@@ -483,6 +487,7 @@ const props = withDefaults(
483
487
  searchable?: boolean;
484
488
  multilanguage?: boolean;
485
489
  currentLanguage?: string;
490
+ size?: "default" | "small";
486
491
  }>(),
487
492
  {
488
493
  optionValue: "id",
@@ -492,6 +497,7 @@ const props = withDefaults(
492
497
  name: "Field",
493
498
  emitValue: true,
494
499
  mapOptions: true,
500
+ size: "default",
495
501
  options: (): T[] => [],
496
502
  },
497
503
  );
@@ -940,6 +946,7 @@ function onReset() {
940
946
  <style lang="scss">
941
947
  :root {
942
948
  --select-height: 38px;
949
+ --select-height-small: 28px;
943
950
  --select-border-radius: 3px;
944
951
  --select-border-color: #d3dbe9;
945
952
  --select-border-color-error: #f14e4e;
@@ -495,6 +495,7 @@
495
495
  :expanded="expanded"
496
496
  :pages="pages"
497
497
  :current-page="currentPage"
498
+ :variant="paginationVariant"
498
499
  @item-click="$emit('paginationClick', $event)"
499
500
  ></VcPagination>
500
501
 
@@ -537,6 +538,7 @@ import "core-js/actual/array/to-spliced";
537
538
  import "core-js/actual/array/to-sorted";
538
539
  import VcTableAddNew from "./_internal/vc-table-add-new/vc-table-add-new.vue";
539
540
  import VcTableEmpty from "./_internal/vc-table-empty/vc-table-empty.vue";
541
+ import type { ComponentProps } from "vue-component-type-helpers";
540
542
 
541
543
  export interface StatusImage {
542
544
  image?: string;
@@ -594,6 +596,7 @@ const props = withDefaults(
594
596
  show: boolean;
595
597
  title: string;
596
598
  };
599
+ paginationVariant?: ComponentProps<typeof VcPagination>["variant"];
597
600
  }>(),
598
601
  {
599
602
  items: () => [],
@@ -606,6 +609,7 @@ const props = withDefaults(
606
609
  activeFilterCount: 0,
607
610
  resizableColumns: true,
608
611
  reorderableColumns: true,
612
+ paginationVariant: "default",
609
613
  },
610
614
  );
611
615