@dao-style/core 1.0.0-beta.6 → 1.0.0-beta.8

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.
@@ -929,7 +929,7 @@ declare const DaoTable: {
929
929
  pageLayout: import("..").PaginationLayoutKey[];
930
930
  hideBatchBar: boolean;
931
931
  hideToolbar: boolean;
932
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new <T_1 extends Record<string, unknown>, Column extends DaoTableColumn, ColumnKey extends Column["id"]>(props: {
932
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new <T_1 extends Record<string, unknown>, Column extends DaoTableColumn, ColumnKey extends Column["id"], DataKey extends keyof T_1, DataStringKey extends DataKey extends string ? DataKey : never>(props: {
933
933
  data?: T_1[] | undefined;
934
934
  columns?: Column[] | undefined;
935
935
  selectable?: boolean | ((row: T_1, index: number) => boolean) | undefined;
@@ -952,13 +952,20 @@ declare const DaoTable: {
952
952
  'batch-action': SlotFn;
953
953
  empty: SlotFn;
954
954
  pagination: SlotFn;
955
- } & { [key in `th-${ColumnKey}`]: ParamsSlotFn<{
955
+ } & { [key in `th-${DataStringKey}`]: ParamsSlotFn<{
956
956
  column: DaoTableColumn;
957
- }>; } & { [key_1 in `td-${ColumnKey}`]: ParamsSlotFn<{
957
+ }>; } & { [key_1 in `td-${DataStringKey}`]: ParamsSlotFn<{
958
958
  column: DaoTableColumn;
959
959
  value: T_1[RemoveTd<key_1>];
960
960
  row: T_1;
961
961
  rowIndex: number;
962
+ }>; } & { [key_2 in `th-${ColumnKey}`]: ParamsSlotFn<{
963
+ column: DaoTableColumn;
964
+ }>; } & { [key_3 in `td-${ColumnKey}`]: ParamsSlotFn<{
965
+ column: DaoTableColumn;
966
+ value: T_1[RemoveTd<key_3>];
967
+ row: T_1;
968
+ rowIndex: number;
962
969
  }>; } & {
963
970
  [x: `th-${string}`]: ParamsSlotFn<{
964
971
  column: DaoTableColumn;
@@ -1,4 +1,4 @@
1
- import { Mutable } from 'utility-types';
1
+ import type { Mutable } from '../../utils/types';
2
2
  export type DefaultWidthType = string | number;
3
3
  export interface DaoTableColumn {
4
4
  id: string;
@@ -14,3 +14,6 @@ export type GetSlots<T> = T extends {
14
14
  } ? InstanceType<T>['$slots'] : {
15
15
  slotText: SlotFn;
16
16
  };
17
+ export type Mutable<T> = {
18
+ -readonly [P in keyof T]: T[P];
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dao-style/core",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.8",
4
4
  "scripts": {
5
5
  "dev": "npm run dev:docs",
6
6
  "dev:docs": "vitepress dev docs",
@@ -77,7 +77,6 @@
77
77
  "tailwindcss": "~3.2.0",
78
78
  "tslib": "^2.4.1",
79
79
  "typescript": "^4.9.4",
80
- "utility-types": "^3.10.0",
81
80
  "vite": "^4.0.3",
82
81
  "vite-plugin-svg-icons": "^2.0.1",
83
82
  "vitepress": "^1.0.0-alpha.33",
@@ -100,16 +99,16 @@
100
99
  "volar.d.ts",
101
100
  "scripts/transform-variable.mjs"
102
101
  ],
103
- "main": "./dist/dao-style.cjs.js",
104
- "module": "./dist/dao-style.es.mjs",
102
+ "main": "./dist/dao-style.js",
103
+ "module": "./dist/dao-style.mjs",
105
104
  "types": "./dist/index.d.ts",
106
105
  "workspaces": [
107
106
  "docs"
108
107
  ],
109
108
  "exports": {
110
109
  ".": {
111
- "import": "./dist/dao-style.es.mjs",
112
- "require": "./dist/dao-style.cjs.js"
110
+ "import": "./dist/dao-style.mjs",
111
+ "require": "./dist/dao-style.js"
113
112
  },
114
113
  "./*": "./*"
115
114
  }
File without changes
File without changes