@opengis/table 0.0.26 → 0.0.27

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.
@@ -1,48 +1,51 @@
1
1
  import type { Column, InternalDataTableProps, TableSize, SortConfig } from '../types';
2
2
  declare var __VLS_1: {
3
3
  asc: boolean;
4
- }, __VLS_3: {
4
+ }, __VLS_10: {
5
5
  row: any;
6
- }, __VLS_5: {
6
+ }, __VLS_12: {
7
7
  row: any;
8
8
  value: any;
9
- }, __VLS_7: {
9
+ }, __VLS_14: {
10
10
  row: any;
11
11
  value: any;
12
- }, __VLS_9: {
12
+ }, __VLS_16: {
13
13
  row: any;
14
14
  value: any;
15
- }, __VLS_27: {
15
+ }, __VLS_34: {
16
16
  row: any;
17
17
  };
18
18
  type __VLS_Slots = {} & {
19
19
  sort?: (props: typeof __VLS_1) => any;
20
20
  } & {
21
- action?: (props: typeof __VLS_3) => any;
21
+ action?: (props: typeof __VLS_10) => any;
22
22
  } & {
23
- number?: (props: typeof __VLS_5) => any;
23
+ number?: (props: typeof __VLS_12) => any;
24
24
  } & {
25
- badge?: (props: typeof __VLS_7) => any;
25
+ badge?: (props: typeof __VLS_14) => any;
26
26
  } & {
27
- array?: (props: typeof __VLS_9) => any;
27
+ array?: (props: typeof __VLS_16) => any;
28
28
  } & {
29
- action?: (props: typeof __VLS_27) => any;
29
+ action?: (props: typeof __VLS_34) => any;
30
30
  };
31
31
  declare const __VLS_component: import("vue").DefineComponent<InternalDataTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
32
  sort: (sortConfig: SortConfig[]) => any;
33
33
  "update:page": (page: number) => any;
34
34
  "update:selectedRows": (rows: any[]) => any;
35
35
  "row-click": (row: any) => any;
36
+ "cell-update": (row: any, key: string, value: any) => any;
36
37
  }, string, import("vue").PublicProps, Readonly<InternalDataTableProps> & Readonly<{
37
38
  onSort?: ((sortConfig: SortConfig[]) => any) | undefined;
38
39
  "onUpdate:page"?: ((page: number) => any) | undefined;
39
40
  "onUpdate:selectedRows"?: ((rows: any[]) => any) | undefined;
40
41
  "onRow-click"?: ((row: any) => any) | undefined;
42
+ "onCell-update"?: ((row: any, key: string, value: any) => any) | undefined;
41
43
  }>, {
42
44
  columns: Column[];
43
45
  sortable: boolean;
44
46
  getCellData: import("../types").GetCellDataHook;
45
47
  size: TableSize;
48
+ color: string;
46
49
  page: number;
47
50
  limit: number;
48
51
  total: number;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.vue"],"names":[],"mappings":"AAmyBA,OAAO,KAAK,EACV,MAAM,EAAE,sBAAsB,EAAE,SAAS,EAAiB,UAAU,EACrE,MAAM,UAAU,CAAC;AAu9BlB,QAAA,IAAI,OAAO;;CAAU,EAAE,OAAO;;CAAU,EAAE,OAAO;;;CAAU,EAAE,OAAO;;;CAAU,EAAE,OAAO;;;CAAU,EAAE,QAAQ;;CAAY,CAAE;AACzH,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuD/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;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AA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,38 @@
1
+ type Accent = 'cyan' | 'blue' | 'violet' | 'amber' | 'rose';
2
+ interface Option {
3
+ value: string | number | boolean;
4
+ label: string;
5
+ color?: string;
6
+ id?: string | number;
7
+ text?: string;
8
+ }
9
+ type __VLS_Props = {
10
+ row: any;
11
+ column: any;
12
+ value: any;
13
+ format?: 'text' | 'number' | 'date' | 'select' | 'boolean' | string;
14
+ options?: Option[];
15
+ accent?: Accent;
16
+ editable?: boolean;
17
+ color?: string;
18
+ fetchOptions?: (fieldName: string) => Promise<Option[]>;
19
+ };
20
+ declare var __VLS_1: {};
21
+ type __VLS_Slots = {} & {
22
+ default?: (props: typeof __VLS_1) => any;
23
+ };
24
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
25
+ edit: (row: any, key: string, value: any) => any;
26
+ update: (row: any, key: string, value: any) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onEdit?: ((row: any, key: string, value: any) => any) | undefined;
29
+ onUpdate?: ((row: any, key: string, value: any) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
38
+ //# sourceMappingURL=EditableCell.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditableCell.vue.d.ts","sourceRoot":"","sources":["../../src/components/EditableCell.vue"],"names":[],"mappings":"AAiYA,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5D,UAAU,MAAM;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAC;IACT,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACpE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAC,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACxD,CAAC;AAkjBF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoC/C,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { FormatComponentProps } from '../types';
2
+ declare const _default: import("vue").DefineComponent<FormatComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormatComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
4
+ //# sourceMappingURL=BooleanFormat.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BooleanFormat.vue.d.ts","sourceRoot":"","sources":["../../src/formats/BooleanFormat.vue"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;;AAyFrD,wBAMG"}
@@ -4,6 +4,7 @@ import TextFormat from './TextFormat.vue';
4
4
  import BadgeFormat from './BadgeFormat.vue';
5
5
  import ArrayFormat from './ArrayFormat.vue';
6
6
  import SelectFormat from './SelectFormat.vue';
7
+ import BooleanFormat from './BooleanFormat.vue';
7
8
  export declare const formatComponents: {
8
9
  number: import("vue").DefineComponent<import("../index.js").FormatComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../index.js").FormatComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
10
  date: import("vue").DefineComponent<import("../index.js").FormatComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../index.js").FormatComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -11,6 +12,7 @@ export declare const formatComponents: {
11
12
  badge: import("vue").DefineComponent<import("../index.js").FormatComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../index.js").FormatComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
13
  array: import("vue").DefineComponent<import("../index.js").FormatComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../index.js").FormatComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
14
  select: import("vue").DefineComponent<import("../index.js").FormatComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../index.js").FormatComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ boolean: import("vue").DefineComponent<import("../index.js").FormatComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../index.js").FormatComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
16
  };
15
- export { NumberFormat, DateFormat, TextFormat, BadgeFormat, SelectFormat, ArrayFormat };
17
+ export { NumberFormat, DateFormat, TextFormat, BadgeFormat, SelectFormat, ArrayFormat, BooleanFormat };
16
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/formats/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C,eAAO,MAAM,gBAAgB;;;;;;;CAO5B,CAAC;AAEF,OAAO,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,WAAW,EACZ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/formats/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAE5C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAEhD,eAAO,MAAM,gBAAgB;;;;;;;;CAQ5B,CAAC;AAEF,OAAO,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAa,EACd,CAAC"}