@cregis/ui 1.0.4 → 1.0.7

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.
@@ -211,6 +211,18 @@ export declare interface ConfirmOptions {
211
211
 
212
212
  export declare type ConfirmParam = string | ConfirmOptions;
213
213
 
214
+ declare interface CregisTableProps {
215
+ maxHeight?: string;
216
+ headerHeight?: number;
217
+ headerBg?: string;
218
+ columnHeight?: number;
219
+ loading?: boolean;
220
+ initing?: boolean;
221
+ dataList: DataItem[];
222
+ }
223
+
224
+ export declare type DataItem = Record<string, any>;
225
+
214
226
  declare const _default: DefineComponent<DialogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
215
227
  "update:modelValue": (visible: boolean) => any;
216
228
  "after-leave": () => any;
@@ -483,6 +495,8 @@ export declare const Select: DefineComponent<SelectProps, {}, {}, {}, {}, Compon
483
495
  searchText: string;
484
496
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
485
497
 
498
+ export declare type SelectAllMode = 'none' | 'some' | 'all';
499
+
486
500
  export declare interface SelectContext {
487
501
  modelValue: ComputedRef<StringOrNumber_3 | StringOrNumber_3[] | undefined>;
488
502
  multiple: ComputedRef<boolean>;
@@ -532,6 +546,8 @@ declare type Size = 'large' | 'medium' | 'small' | 'extraSmall';
532
546
 
533
547
  declare type Size_2 = 'large' | 'medium' | 'small' | 'extraSmall';
534
548
 
549
+ export declare type SortValue = 'asc' | 'desc' | '';
550
+
535
551
  export { StringOrNumber }
536
552
 
537
553
  declare type StringOrNumber_2 = string | number;
@@ -564,6 +580,49 @@ export declare interface SwitchProps {
564
580
  beforeChange?: () => boolean | Promise<boolean>;
565
581
  }
566
582
 
583
+ export declare const TableList: DefineComponent<CregisTableProps, {
584
+ openSelect: () => void;
585
+ closeSelect: () => void;
586
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
587
+ "row-click": (...args: any[]) => void;
588
+ "update:selected-list": (...args: any[]) => void;
589
+ "selected-change": (...args: any[]) => void;
590
+ }, string, PublicProps, Readonly<CregisTableProps> & Readonly<{
591
+ "onRow-click"?: (...args: any[]) => any;
592
+ "onUpdate:selected-list"?: (...args: any[]) => any;
593
+ "onSelected-change"?: (...args: any[]) => any;
594
+ }>, {
595
+ columnHeight: number;
596
+ headerHeight: number;
597
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
598
+
599
+ export declare const TableListColumn: DefineComponent<TableListColumnProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
600
+ selectChange: (...args: any[]) => void;
601
+ }, string, PublicProps, Readonly<TableListColumnProps> & Readonly<{
602
+ onSelectChange?: (...args: any[]) => any;
603
+ }>, {
604
+ type: "default" | "select";
605
+ hidden: boolean;
606
+ align: "left" | "center" | "right";
607
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
608
+
609
+ declare interface TableListColumnProps {
610
+ data?: DataItem;
611
+ index?: number;
612
+ columnHeight?: number;
613
+ minTableWidth?: number;
614
+ type?: 'default' | 'select';
615
+ selected?: boolean;
616
+ blank?: boolean;
617
+ prop?: string;
618
+ label?: string;
619
+ width?: string;
620
+ widthPercent?: number;
621
+ minWidth?: string;
622
+ align?: 'left' | 'center' | 'right';
623
+ hidden?: boolean;
624
+ }
625
+
567
626
  export declare const TabPane: DefineComponent<TabPaneProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
568
627
 
569
628
  export declare interface TabPaneProps {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cregis/ui",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.7",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -9,55 +9,55 @@
9
9
  "sideEffects": [
10
10
  "dist/index.css"
11
11
  ],
12
- "main": "./dist/umd/cregis-ui.umd.cjs",
13
- "module": "./dist/es/cregis-ui.js",
12
+ "main": "./dist/index.js",
13
+ "module": "./dist/index.js",
14
14
  "types": "./dist/types/index.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",
18
- "import": "./dist/es/cregis-ui.js",
19
- "require": "./dist/umd/cregis-ui.umd.cjs"
18
+ "import": "./dist/index.js"
20
19
  },
21
- "./dist/": {
22
- "import": "./dist/",
23
- "require": "./dist/"
24
- }
20
+ "./dist/index.css": "./dist/index.css"
25
21
  },
26
22
  "scripts": {
27
23
  "dev": "vite --host",
28
- "build": "npm run build-only && npm run move-style",
29
- "build-only": "run-p build-es build-umd",
30
- "build-umd": "vite build --config vite.umd.config.ts",
31
- "build-es": "vite build --config vite.es.config.ts",
32
- "move-style": "move-file dist/es/index.css dist/index.css",
24
+ "build": "vite build --config vite.es.config.ts",
33
25
  "preview": "vite preview",
34
26
  "prepare": "husky install"
35
27
  },
36
28
  "peerDependencies": {
37
29
  "@cregis/icon": "^0.1.10",
38
- "vue": "^3.5.0"
30
+ "@cregis/tokens": "^1.0.0",
31
+ "vue": "^3.5.0",
32
+ "vue-i18n": "^11.0.0"
39
33
  },
40
34
  "devDependencies": {
41
35
  "@commitlint/cli": "^20.1.0",
42
36
  "@commitlint/config-conventional": "^20.0.0",
43
37
  "@cregis/icon": "^0.1.14",
38
+ "@cregis/tokens": "^1.0.0",
39
+ "@popperjs/core": "^2.11.8",
40
+ "lodash-es": "^4.18.1",
44
41
  "@rushstack/eslint-patch": "^1.14.1",
45
42
  "@types/lodash-es": "^4.17.12",
46
43
  "@types/node": "^24.6.0",
47
44
  "@vitejs/plugin-vue": "^6.0.1",
48
45
  "@vue/eslint-config-typescript": "^14.6.0",
49
46
  "@vue/tsconfig": "^0.8.1",
47
+ "autoprefixer": "^10.5.4",
50
48
  "husky": "^9.1.7",
51
49
  "lint-staged": "^16.2.6",
52
50
  "move-file-cli": "^3.0.0",
53
- "npm-run-all": "^4.1.5",
51
+ "postcss": "^8.5.22",
54
52
  "prettier": "^3.6.2",
55
53
  "stylelint": "^16.25.0",
56
54
  "stylelint-config-standard": "^39.0.1",
55
+ "tailwindcss": "^3.4.19",
57
56
  "typescript": "~5.9.3",
58
57
  "vite": "^7.1.7",
59
58
  "vite-plugin-dts": "^4.5.4",
60
59
  "vue": "^3.5.24",
60
+ "vue-i18n": "^11.4.8",
61
61
  "vue-tsc": "^3.1.0"
62
62
  },
63
63
  "husky": {
@@ -76,9 +76,5 @@
76
76
  "*.{ts,tsx,js,json,html,yml,css,less,scss,md}": [
77
77
  "prettier --write"
78
78
  ]
79
- },
80
- "dependencies": {
81
- "@popperjs/core": "^2.11.8",
82
- "lodash-es": "^4.18.1"
83
79
  }
84
80
  }