@wisemen/vue-core-components 1.1.0 → 1.2.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.
Files changed (59) hide show
  1. package/dist/ArrowDownIcon-DWaQsf4B.js +24 -0
  2. package/dist/ArrowLeftIcon-DlzleO-l.js +24 -0
  3. package/dist/ArrowRightIcon-iuiaLVSH.js +24 -0
  4. package/dist/ArrowUpIcon-CrYr7bw_.js +24 -0
  5. package/dist/{CalendarIcon-ov4oOm7t.js → CalendarIcon-Bt-3wJKk.js} +1 -1
  6. package/dist/{CheckIcon-DKCCStaL.js → CheckIcon-DUmywOLj.js} +1 -1
  7. package/dist/{ChevronLeftDoubleIcon-aG6nY5th.js → ChevronLeftDoubleIcon-DFhRoloZ.js} +1 -1
  8. package/dist/{ChevronLeftIcon-DDaRHPWC.js → ChevronLeftIcon-Drc1Behh.js} +1 -1
  9. package/dist/{ChevronRightDoubleIcon-4x90Up7e.js → ChevronRightDoubleIcon-BGW-ppJ6.js} +1 -1
  10. package/dist/{ChevronRightIcon-CZU8oyxa.js → ChevronRightIcon-BIPuKLxj.js} +1 -1
  11. package/dist/{CloseIcon-D5_g4SV_.js → CloseIcon-Du78ZogN.js} +1 -1
  12. package/dist/{EyeIcon-CrVFkfjP.js → EyeIcon-D30xRv5w.js} +1 -1
  13. package/dist/{EyeOffIcon-Bvizr3GN.js → EyeOffIcon-BFuyT_Tu.js} +1 -1
  14. package/dist/{MinusIcon-Pe6gCl8K.js → MinusIcon-7pwYCfqi.js} +1 -1
  15. package/dist/{PlusIcon-B1aDBCI4.js → PlusIcon-CjzGzWpf.js} +1 -1
  16. package/dist/{SearchIcon-COf6exDf.js → SearchIcon-Ctn_nA0e.js} +1 -1
  17. package/dist/{SelectIconRight-CxNBaYb7.js → SelectIconRight-CK02xnax.js} +1 -1
  18. package/dist/{StarsIcon-C-7HxOG7.js → StarsIcon-BN2_zogm.js} +1 -1
  19. package/dist/SwitchVerticalIcon-DTpqgpER.js +24 -0
  20. package/dist/{TranslateIcon-B1EUrG0F.js → TranslateIcon-Dlon9z1-.js} +1 -1
  21. package/dist/components/index.d.ts +1 -0
  22. package/dist/components/internal/ProgressiveBlur.d.ts +2 -0
  23. package/dist/components/table/Table.d.ts +24 -0
  24. package/dist/components/table/index.d.ts +7 -0
  25. package/dist/components/table/parts/Subgrid.d.ts +17 -0
  26. package/dist/components/table/parts/TableBody.d.ts +2 -0
  27. package/dist/components/table/parts/TableCell.d.ts +26 -0
  28. package/dist/components/table/parts/TableCellLayout.d.ts +21 -0
  29. package/dist/components/table/parts/TableContent.d.ts +17 -0
  30. package/dist/components/table/parts/TableEmptyOrLoadingState.d.ts +19 -0
  31. package/dist/components/table/parts/TableHeader.d.ts +2 -0
  32. package/dist/components/table/parts/TableHeaderCell.d.ts +22 -0
  33. package/dist/components/table/parts/TableHiddenResultsHint.d.ts +2 -0
  34. package/dist/components/table/parts/TableInteractiveElement.d.ts +17 -0
  35. package/dist/components/table/parts/TableRoot.d.ts +20 -0
  36. package/dist/components/table/parts/TableRow.d.ts +5 -0
  37. package/dist/components/table/parts/TableScrollContainer.d.ts +21 -0
  38. package/dist/components/table/table.composable.d.ts +16 -0
  39. package/dist/components/table/table.context.d.ts +19 -0
  40. package/dist/components/table/table.emits.d.ts +3 -0
  41. package/dist/components/table/table.props.d.ts +60 -0
  42. package/dist/components/table/table.style.d.ts +31 -0
  43. package/dist/components/table/table.type.d.ts +44 -0
  44. package/dist/composables/index.d.ts +2 -0
  45. package/dist/composables/pagination/pagination.composable.d.ts +2 -0
  46. package/dist/composables/pagination/pagination.type.d.ts +87 -0
  47. package/dist/composables/pagination/pagination.util.d.ts +2 -0
  48. package/dist/customClassVariants.d.ts +2 -0
  49. package/dist/icons/ArrowDownIcon.d.ts +2 -0
  50. package/dist/icons/ArrowLeftIcon.d.ts +2 -0
  51. package/dist/icons/ArrowRightIcon.d.ts +2 -0
  52. package/dist/icons/ArrowUpIcon.d.ts +2 -0
  53. package/dist/icons/SwitchVerticalIcon.d.ts +2 -0
  54. package/dist/icons/icons.d.ts +5 -0
  55. package/dist/{index-CUZPwdwp.js → index-DR0LDaTA.js} +7165 -6123
  56. package/dist/index.js +63 -57
  57. package/dist/index.umd +17 -17
  58. package/dist/style.css +1 -1
  59. package/package.json +3 -1
@@ -0,0 +1,24 @@
1
+ import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
+ const s = {}, c = {
4
+ width: "100%",
5
+ height: "100%",
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function i(l, o) {
11
+ return t(), e("svg", c, o[0] || (o[0] = [
12
+ r("path", {
13
+ d: "M12 5V19M12 19L19 12M12 19L5 12",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2",
16
+ "stroke-linecap": "round",
17
+ "stroke-linejoin": "round"
18
+ }, null, -1)
19
+ ]));
20
+ }
21
+ const _ = /* @__PURE__ */ n(s, [["render", i]]);
22
+ export {
23
+ _ as default
24
+ };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
+ const s = {}, c = {
4
+ width: "100%",
5
+ height: "100%",
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function i(l, e) {
11
+ return t(), o("svg", c, e[0] || (e[0] = [
12
+ r("path", {
13
+ d: "M19 12H5M5 12L12 19M5 12L12 5",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2",
16
+ "stroke-linecap": "round",
17
+ "stroke-linejoin": "round"
18
+ }, null, -1)
19
+ ]));
20
+ }
21
+ const _ = /* @__PURE__ */ n(s, [["render", i]]);
22
+ export {
23
+ _ as default
24
+ };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
+ const s = {}, i = {
4
+ width: "100%",
5
+ height: "100%",
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function c(l, o) {
11
+ return t(), e("svg", i, o[0] || (o[0] = [
12
+ r("path", {
13
+ d: "M5 12H19M19 12L12 5M19 12L12 19",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2",
16
+ "stroke-linecap": "round",
17
+ "stroke-linejoin": "round"
18
+ }, null, -1)
19
+ ]));
20
+ }
21
+ const f = /* @__PURE__ */ n(s, [["render", c]]);
22
+ export {
23
+ f as default
24
+ };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
+ const s = {}, c = {
4
+ width: "100%",
5
+ height: "100%",
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function i(l, o) {
11
+ return t(), e("svg", c, o[0] || (o[0] = [
12
+ r("path", {
13
+ d: "M12 19V5M12 5L5 12M12 5L19 12",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2",
16
+ "stroke-linecap": "round",
17
+ "stroke-linejoin": "round"
18
+ }, null, -1)
19
+ ]));
20
+ }
21
+ const _ = /* @__PURE__ */ n(s, [["render", i]]);
22
+ export {
23
+ _ as default
24
+ };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, c = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  width: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as r, createElementVNode as e } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, C = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as n } from "vue";
2
- import { _ as r } from "./index-CUZPwdwp.js";
2
+ import { _ as r } from "./index-DR0LDaTA.js";
3
3
  const s = {}, i = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, c = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -0,0 +1,24 @@
1
+ import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
+ const s = {}, c = {
4
+ width: "100%",
5
+ height: "100%",
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function i(l, e) {
11
+ return o(), t("svg", c, e[0] || (e[0] = [
12
+ r("path", {
13
+ d: "M17 4V20M17 20L13 16M17 20L21 16M7 20V4M7 4L3 8M7 4L11 8",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2",
16
+ "stroke-linecap": "round",
17
+ "stroke-linejoin": "round"
18
+ }, null, -1)
19
+ ]));
20
+ }
21
+ const a = /* @__PURE__ */ n(s, [["render", i]]);
22
+ export {
23
+ a as default
24
+ };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as t, createElementVNode as r } from "vue";
2
- import { _ as n } from "./index-CUZPwdwp.js";
2
+ import { _ as n } from "./index-DR0LDaTA.js";
3
3
  const s = {}, l = {
4
4
  width: "100%",
5
5
  height: "100%",
@@ -23,6 +23,7 @@ export * from './radio-group-item';
23
23
  export * from './select';
24
24
  export * from './spinner';
25
25
  export * from './switch';
26
+ export * from './table';
26
27
  export * from './tabs';
27
28
  export * from './text-field';
28
29
  export * from './textarea';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { TableEmits } from './table.emits';
2
+ import { TableProps } from './table.props';
3
+ import { BasePagination } from '../../composables/pagination/pagination.type';
4
+ declare const _default: <TSchema, TPagination extends BasePagination>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onNextPage?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onNextPage"> & TableProps<TSchema, TPagination> & Partial<{}>> & import('vue').PublicProps;
8
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ attrs: any;
10
+ slots: {
11
+ top?(_: {}): any;
12
+ 'empty-state'?(_: {
13
+ activeFilterCount: number;
14
+ }): any;
15
+ bottom?(_: {}): any;
16
+ };
17
+ emit: TableEmits;
18
+ }>) => import('vue').VNode & {
19
+ __ctx?: Awaited<typeof __VLS_setup>;
20
+ };
21
+ export default _default;
22
+ type __VLS_PrettifyLocal<T> = {
23
+ [K in keyof T]: T[K];
24
+ } & {};
@@ -0,0 +1,7 @@
1
+ export { default as VcTableCell } from './parts/TableCell';
2
+ export { default as VcTableHeadercell } from './parts/TableHeaderCell';
3
+ export { default as VcTableInteractiveElement } from './parts/TableInteractiveElement';
4
+ export { default as VcTableRow } from './parts/TableRow';
5
+ export type { TableProps as VcTableProps } from './table.props';
6
+ export type { TableColumn } from './table.type';
7
+ export { default as VcTable } from './Table';
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * When set to true, the cell will have the primary text color to make it stand out
4
+ * @default false
5
+ */
6
+ isPrimaryCell?: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: HTMLDivElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ isPrimaryCell: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,21 @@
1
+ import { TableColumn } from '../table.type';
2
+ type __VLS_Props = {
3
+ column: TableColumn<any>;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ 'empty-state'?(_: {
5
+ activeFilterCount: number;
6
+ }): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { TableColumn } from '../table.type';
2
+ type __VLS_Props = {
3
+ column: TableColumn<any>;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ left?(_: {}): any;
9
+ right?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLSpanElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,20 @@
1
+ import { TableEmits } from '../table.emits';
2
+ import { TableProps } from '../table.props';
3
+ import { BasePagination } from '../../../composables/pagination/pagination.type';
4
+ declare const _default: <TSchema, TPagination extends BasePagination>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onNextPage?: (() => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onNextPage"> & TableProps<TSchema, TPagination> & Partial<{}>> & import('vue').PublicProps;
8
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
+ attrs: any;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ emit: TableEmits;
14
+ }>) => import('vue').VNode & {
15
+ __ctx?: Awaited<typeof __VLS_setup>;
16
+ };
17
+ export default _default;
18
+ type __VLS_PrettifyLocal<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ data: any;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {
7
+ tableScrollContainerRef: HTMLDivElement;
8
+ };
9
+ rootEl: HTMLDivElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
13
+ tableScrollContainerRef: HTMLDivElement;
14
+ }, HTMLDivElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,16 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { TableColumn } from './table.type';
3
+ interface UseTableOptions {
4
+ columns: ComputedRef<TableColumn<any>[]>;
5
+ rowCount: ComputedRef<number>;
6
+ onNextPage: () => void;
7
+ }
8
+ interface UseTable {
9
+ hasReachedHorizontalEnd: ComputedRef<boolean>;
10
+ hasVerticalOverflow: ComputedRef<boolean>;
11
+ isScrolledHorizontally: ComputedRef<boolean>;
12
+ gridTemplateColumns: ComputedRef<string>;
13
+ setTableScrollContainerRef: (el: HTMLElement) => void;
14
+ }
15
+ export declare function useTable({ columns, rowCount, onNextPage, }: UseTableOptions): UseTable;
16
+ export {};
@@ -0,0 +1,19 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { TableProps } from './table.props';
3
+ import { CreateTableStyle } from './table.style';
4
+ import { ClassConfig } from '../../customClassVariants';
5
+ import { PropsToComputed } from '../../utils/props.util';
6
+ interface TableContext extends PropsToComputed<TableProps<any, any>> {
7
+ hasReachedHorizontalEnd: ComputedRef<boolean>;
8
+ hasVerticalOverflow: ComputedRef<boolean>;
9
+ isEmpty: ComputedRef<boolean>;
10
+ isScrolledHorizontally: ComputedRef<boolean>;
11
+ activeFilterCount: ComputedRef<number>;
12
+ customClassConfig: ComputedRef<ClassConfig<'table'>>;
13
+ gridTemplateColumns: ComputedRef<string>;
14
+ setTableScrollContainerRef: (el: HTMLElement) => void;
15
+ style: ComputedRef<CreateTableStyle>;
16
+ onClearFiltersAndSearch: () => void;
17
+ }
18
+ export declare const useProvideTableContext: (context: TableContext) => TableContext, useInjectTableContext: <TFallback extends TableContext | null = TableContext>(fallback?: TFallback | undefined) => TFallback extends null ? TableContext | null : TableContext;
19
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface TableEmits {
2
+ (event: 'nextPage'): void;
3
+ }
@@ -0,0 +1,60 @@
1
+ import { TableColumn } from './table.type';
2
+ import { BasePagination, PaginatedData, Pagination } from '../../composables/pagination/pagination.type';
3
+ import { GetComponentPropCustomValues } from '../../customClassVariants';
4
+ import { Routes } from '../../types/routes.type';
5
+ import { CustomizableElement } from '../../utils/props.util';
6
+ interface LinkAction<TSchema> {
7
+ label: (data: TSchema) => string;
8
+ to: (data: TSchema) => Routes[number];
9
+ type: 'link';
10
+ }
11
+ interface ButtonAction<TSchema> {
12
+ label: (data: TSchema) => string;
13
+ type: 'button';
14
+ onClick: (data: TSchema) => void;
15
+ }
16
+ type RowAction<TSchema> = ButtonAction<TSchema> | LinkAction<TSchema>;
17
+ export interface TableProps<TSchema, TPagination extends BasePagination> extends CustomizableElement<'table', [
18
+ {
19
+ name: 'headerCellButton';
20
+ component: 'button';
21
+ }
22
+ ]> {
23
+ /**
24
+ * Makes the first column sticky (fixed) when horizontally scrolling.
25
+ * @default false
26
+ */
27
+ isFirstColumnSticky?: boolean;
28
+ /**
29
+ * Makes the last column sticky when horizontally scrolling.
30
+ * @default false
31
+ */
32
+ isLastColumnSticky?: boolean;
33
+ /**
34
+ * Controls whether a loading state is shown.
35
+ */
36
+ isLoading: boolean;
37
+ /**
38
+ * An array of column definitions that describe how to render each column.
39
+ */
40
+ columns: TableColumn<TSchema>[];
41
+ /**
42
+ * The paginated data to be displayed in the table.
43
+ */
44
+ data: PaginatedData<TSchema> | null;
45
+ /**
46
+ * Pagination object used for managing current page, size, and total count.
47
+ */
48
+ pagination: Pagination<TPagination>;
49
+ /**
50
+ * Optional row-level action. When using other interactable elements inside cells,
51
+ * make sure to user the `TableInteractiveElement` component.
52
+ * @default null
53
+ */
54
+ rowAction?: RowAction<TSchema> | null;
55
+ /**
56
+ *
57
+ */
58
+ variant?: GetComponentPropCustomValues<'table', 'variant'> | null;
59
+ }
60
+ export {};