cleek 2.11.33 → 2.11.35

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 (53) hide show
  1. package/dist/main.cjs.js +1 -1
  2. package/dist/main.css +1 -1
  3. package/dist/main.es.js +1982 -2391
  4. package/dist/types/cleek-options/cleek-options.types.d.ts +1 -1
  5. package/dist/types/cleek-options/default-cleek-options.d.ts +0 -1
  6. package/dist/types/components/ck-button.vue.d.ts +17 -41
  7. package/dist/types/components/ck-card.vue.d.ts +17 -27
  8. package/dist/types/components/ck-checkbox.vue.d.ts +26 -61
  9. package/dist/types/components/ck-chip.vue.d.ts +16 -32
  10. package/dist/types/components/ck-circle.vue.d.ts +16 -26
  11. package/dist/types/components/ck-div.vue.d.ts +16 -23
  12. package/dist/types/components/ck-dropdown/ck-dropdown.vue.d.ts +22 -23
  13. package/dist/types/components/ck-dropdown-button.vue.d.ts +7 -17
  14. package/dist/types/components/ck-icon.vue.d.ts +7 -26
  15. package/dist/types/components/ck-img.vue.d.ts +6 -30
  16. package/dist/types/components/ck-input/ck-input-date.vue.d.ts +9 -30
  17. package/dist/types/components/ck-input/ck-input-time.vue.d.ts +7 -23
  18. package/dist/types/components/ck-input.vue.d.ts +57 -234
  19. package/dist/types/components/ck-label.vue.d.ts +13 -20
  20. package/dist/types/components/ck-navbar/ck-navbar.vue.d.ts +12 -19
  21. package/dist/types/components/ck-notify/components/CkConfirm.vue.d.ts +1 -1
  22. package/dist/types/components/ck-popup.vue.d.ts +50 -157
  23. package/dist/types/components/ck-radio.vue.d.ts +8 -25
  24. package/dist/types/components/ck-select.vue.d.ts +52 -243
  25. package/dist/types/components/ck-sidebar.vue.d.ts +30 -69
  26. package/dist/types/components/ck-switch-options.vue.d.ts +27 -115
  27. package/dist/types/components/ck-switch.vue.d.ts +35 -102
  28. package/dist/types/components/ck-table/ck-pagination/ck-pagination.vue.d.ts +6 -25
  29. package/dist/types/components/ck-table/ck-table.vue.d.ts +60 -182
  30. package/dist/types/components/ck-table/ck-td.vue.d.ts +12 -27
  31. package/dist/types/components/ck-table/ck-th.vue.d.ts +12 -20
  32. package/dist/types/components/ck-table/ck-tr.vue.d.ts +9 -3
  33. package/dist/types/components/ck-table/inner-components/ck-table__columns-manager-btn.vue.d.ts +3 -14
  34. package/dist/types/components/ck-table/inner-components/ck-table__columns-manager.vue.d.ts +6 -19
  35. package/dist/types/components/ck-table/inner-components/ck-table__header-items.vue.d.ts +25 -58
  36. package/dist/types/components/ck-table/inner-components/ck-table__items-per-page.vue.d.ts +3 -16
  37. package/dist/types/components/ck-table/inner-components/ck-table__pagination.vue.d.ts +7 -23
  38. package/dist/types/components/ck-table/loading-and-no-results-text/LoadingAndNoResultsText.vue.d.ts +3 -16
  39. package/dist/types/components/ck-tabs/ck-tab.vue.d.ts +12 -18
  40. package/dist/types/components/ck-tabs/ck-tabs.vue.d.ts +19 -19
  41. package/dist/types/components/ck-textarea.vue.d.ts +14 -42
  42. package/dist/types/components/ck-tile-picker.vue.d.ts +33 -85
  43. package/dist/types/components/ck-toggle/ck-toggle.vue.d.ts +16 -27
  44. package/dist/types/components/ck-toggle-group/ck-toggle-group.vue.d.ts +28 -65
  45. package/dist/types/components/showers/ck-datetime-shower.vue.d.ts +5 -20
  46. package/dist/types/components/showers/ck-time-shower.vue.d.ts +3 -14
  47. package/dist/types/composables/use-scroll-listener.composable.d.ts +0 -1
  48. package/dist/types/main.d.ts +0 -1
  49. package/dist/types/types/table.d.ts +0 -1
  50. package/dist/types/utils/date-helpers.d.ts +6 -0
  51. package/dist/types/utils/global-hooks.d.ts +0 -1
  52. package/dist/types/utils/string-helpers.d.ts +3 -0
  53. package/package.json +79 -85
@@ -1,68 +1,31 @@
1
1
  import { IconPack, Layout, Align } from '../../cleek-options/cleek-options.types';
2
-
3
- type Option = {
4
- id: any;
5
- name: string | number;
6
- icon?: string;
2
+ declare const _default: <T extends string | number>(__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<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onChange?: () => any;
5
+ readonly "onUpdate:modelValue"?: (value: T | T[]) => any;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & ({
7
+ modelValue: T | T[];
8
+ } & {
9
+ options: {
10
+ id: T;
11
+ name: string | number;
12
+ icon?: string;
13
+ }[];
14
+ layout?: Layout;
15
+ label?: string;
16
+ labelAlign?: Align;
17
+ gap?: string;
18
+ multipleSelection?: boolean;
19
+ iconPack?: IconPack;
20
+ }) & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: {};
24
+ emit: ((evt: "change") => void) & ((evt: "update:modelValue", value: T | T[]) => void);
25
+ }>) => import('vue').VNode & {
26
+ __ctx?: Awaited<typeof __VLS_setup>;
7
27
  };
8
- type OptionValue = Option['id'];
9
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
- modelValue: {
11
- required: true;
12
- type: import('vue').PropType<OptionValue | OptionValue[]>;
13
- };
14
- options: {
15
- type: import('vue').PropType<Option[]>;
16
- required: true;
17
- };
18
- layout: {
19
- type: import('vue').PropType<Layout>;
20
- };
21
- label: {
22
- type: import('vue').PropType<string>;
23
- };
24
- labelAlign: {
25
- type: import('vue').PropType<Align>;
26
- };
27
- gap: {
28
- type: import('vue').PropType<string>;
29
- };
30
- multipleSelection: {
31
- type: import('vue').PropType<boolean>;
32
- };
33
- iconPack: {
34
- type: import('vue').PropType<IconPack>;
35
- };
36
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
- change: () => void;
38
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
39
- modelValue: {
40
- required: true;
41
- type: import('vue').PropType<OptionValue | OptionValue[]>;
42
- };
43
- options: {
44
- type: import('vue').PropType<Option[]>;
45
- required: true;
46
- };
47
- layout: {
48
- type: import('vue').PropType<Layout>;
49
- };
50
- label: {
51
- type: import('vue').PropType<string>;
52
- };
53
- labelAlign: {
54
- type: import('vue').PropType<Align>;
55
- };
56
- gap: {
57
- type: import('vue').PropType<string>;
58
- };
59
- multipleSelection: {
60
- type: import('vue').PropType<boolean>;
61
- };
62
- iconPack: {
63
- type: import('vue').PropType<IconPack>;
64
- };
65
- }>> & Readonly<{
66
- onChange?: () => any;
67
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
68
28
  export default _default;
29
+ type __VLS_PrettifyLocal<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
@@ -1,29 +1,14 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
1
+ type __VLS_Props = {
2
2
  datetime?: string | null;
3
3
  date?: string | null;
4
4
  time?: string | number | null;
5
5
  timeInMinutes?: boolean;
6
6
  noDateMsg?: string;
7
7
  split?: boolean;
8
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- click: (event: Event) => void;
10
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
- datetime?: string | null;
12
- date?: string | null;
13
- time?: string | number | null;
14
- timeInMinutes?: boolean;
15
- noDateMsg?: string;
16
- split?: boolean;
17
- }>>> & Readonly<{
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ click: (event: Event) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
12
  onClick?: (event: Event) => any;
19
13
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
14
  export default _default;
21
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
- type __VLS_TypePropsToRuntimeProps<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
@@ -1,18 +1,7 @@
1
1
  type TsTime = string;
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ type __VLS_Props = {
3
3
  time?: TsTime;
4
4
  minutes?: number;
5
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- time?: TsTime;
7
- minutes?: number;
8
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('vue').PropType<T[K]>;
16
- required: true;
17
- };
18
5
  };
6
+ 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, true, {}, HTMLSpanElement>;
7
+ export default _default;
@@ -1,3 +1,2 @@
1
1
  import { Ref } from 'vue';
2
-
3
2
  export declare function useScrollListener(element: Ref<HTMLElement>, handleScroll: (event: Event) => void): void;
@@ -2,7 +2,6 @@ import { App } from 'vue';
2
2
  import { PartialDeep } from './types';
3
3
  import { CleekOptions } from './cleek-options/cleek-options.types';
4
4
  import { useCleekOptionsStore } from './cleek-options/cleek-options.store';
5
-
6
5
  declare function install(app: App, userOptions?: PartialDeep<CleekOptions>): void;
7
6
  export default install;
8
7
  export * from './components';
@@ -1,5 +1,4 @@
1
1
  import { Align, AlignVertical } from './cleek-options';
2
-
3
2
  export type ColumnItem = {
4
3
  name: string;
5
4
  title: string;
@@ -0,0 +1,6 @@
1
+ type DateFormat = 'dd/mm' | 'dd/mm/yy' | 'dd/mm/yyyy';
2
+ export declare function hourToMin(time?: string | null): number | "";
3
+ export declare function minToHour(minutes: number): string;
4
+ export declare function presentDate(date?: string | null, format?: DateFormat): string;
5
+ export declare function presentTime(datetime?: string | null): string;
6
+ export {};
@@ -1,6 +1,5 @@
1
1
  import { ColumnItem } from '../types/table';
2
2
  import { Align, AlignVertical, WidthBreaks } from '../cleek-options/cleek-options.types';
3
-
4
3
  declare const _default: {
5
4
  getGroupClass({ group, groupVertical, widthBreaks, }: {
6
5
  group?: Align;
@@ -1 +1,4 @@
1
1
  export declare function normalizeText(text: string): string;
2
+ export declare function capitalize(str: string): string;
3
+ export declare function padZeros(num: number, size?: number): string;
4
+ export declare function checkContainsStr(str: string, subStr: string): boolean;
package/package.json CHANGED
@@ -1,85 +1,79 @@
1
- {
2
- "name": "cleek",
3
- "description": "Complete UX Vue library",
4
- "version": "2.11.33",
5
- "author": "Quantic Onion",
6
- "license": "MIT",
7
- "repository": "",
8
- "type": "module",
9
- "files": [
10
- "dist"
11
- ],
12
- "main": "./dist/main.cjs.js",
13
- "module": "./dist/main.es.js",
14
- "exports": {
15
- ".": {
16
- "require": "./dist/main.cjs.js",
17
- "import": "./dist/main.es.js",
18
- "types": "./dist/types/main.d.ts"
19
- },
20
- "./main.css": "./dist/main.css",
21
- "./package.json": "./package.json"
22
- },
23
- "types": "./dist/types/main.d.ts",
24
- "scripts": {
25
- "dev": "vitepress dev docs",
26
- "typecheck": "vue-tsc --noEmit -p tsconfig.json --composite false",
27
- "build": "vite build",
28
- "build:full": "vite build && vue-tsc --declaration --emitDeclarationOnly",
29
- "build:docs": "vitepress build docs",
30
- "serve": "vitepress serve docs",
31
- "analyze": "vite build --config analyze.config.js",
32
- "patch-publish": "npm run build && npm version patch && npm publish",
33
- "lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
34
- "stylelint": "stylelint . --fix --ignore-path .stylelintignore",
35
- "format": "prettier . --write",
36
- "deploy": "node deploy.js"
37
- },
38
- "dependencies": {
39
- "@fortawesome/fontawesome-svg-core": "^6.1.1",
40
- "@fortawesome/free-brands-svg-icons": "^6.1.1",
41
- "@fortawesome/free-regular-svg-icons": "^6.1.1",
42
- "@fortawesome/free-solid-svg-icons": "^6.1.1",
43
- "@fortawesome/vue-fontawesome": "^3.0.0-5",
44
- "@vuepic/vue-datepicker": "^3.5.3",
45
- "click-outside-vue3": "^4.0.1",
46
- "floating-vue": "^5.2.2",
47
- "mitt": "^3.0.0",
48
- "pinia": "^3.0.2",
49
- "pinia-plugin-persistedstate": "^3.2.1",
50
- "quantic-methods": "^1.6.87",
51
- "tabbable": "^5.2.0",
52
- "tippy.js": "^6.3.1",
53
- "vue": "^3.5.12",
54
- "vue-perfect-scrollbar": "^0.2.1",
55
- "vue3-datepicker": "^0.4.0"
56
- },
57
- "devDependencies": {
58
- "@prettier/plugin-pug": "^2.5.1",
59
- "@types/node": "^20.14.9",
60
- "@vitejs/plugin-vue": "^4.2.3",
61
- "@vue/compiler-sfc": "^3.1.5",
62
- "@vue/eslint-config-prettier": "^7.1.0",
63
- "@vue/eslint-config-typescript": "^11.0.3",
64
- "@vue/language-plugin-pug": "^1.8.15",
65
- "@vue/tsconfig": "^0.1.3",
66
- "eslint": "^7.31.0",
67
- "eslint-config-prettier": "^8.3.0",
68
- "eslint-plugin-vue": "^7.14.0",
69
- "prettier": "^2.3.2",
70
- "prettier-plugin-stylus": "^0.1.0",
71
- "pug": "^3.0.2",
72
- "pug-plain-loader": "^1.1.0",
73
- "rollup-plugin-visualizer": "^6.0.5",
74
- "stylelint": "^15.9.0",
75
- "stylelint-config-prettier": "^9.0.5",
76
- "stylelint-config-recommended": "^12.0.0",
77
- "stylelint-stylus": "^0.18.0",
78
- "stylus": "^0.59.0",
79
- "typescript": "^5.5.3",
80
- "vite": "^4.3.9",
81
- "vite-plugin-dts": "^3.9.1",
82
- "vitepress": "^0.21.4",
83
- "vue-tsc": "^2"
84
- }
85
- }
1
+ {
2
+ "name": "cleek",
3
+ "description": "Complete UX Vue library",
4
+ "version": "2.11.35",
5
+ "author": "Quantic Onion",
6
+ "license": "MIT",
7
+ "repository": "github:quantic-core/cleek",
8
+ "type": "module",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "main": "./dist/main.cjs.js",
13
+ "module": "./dist/main.es.js",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/types/main.d.ts",
17
+ "import": "./dist/main.es.js",
18
+ "require": "./dist/main.cjs.js"
19
+ },
20
+ "./main.css": "./dist/main.css",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "types": "./dist/types/main.d.ts",
24
+ "scripts": {
25
+ "typecheck": "vue-tsc --noEmit -p tsconfig.json --composite false",
26
+ "build": "vite build",
27
+ "build:full": "vite build && vue-tsc --declaration --emitDeclarationOnly",
28
+ "analyze": "vite build --config analyze.config.js",
29
+ "patch-publish": "npm run build && npm version patch && npm publish",
30
+ "lint": "eslint --fix src",
31
+ "stylelint": "stylelint . --fix --ignore-path .stylelintignore",
32
+ "format": "prettier . --write",
33
+ "deploy": "node deploy.js"
34
+ },
35
+ "dependencies": {
36
+ "@fortawesome/fontawesome-svg-core": "^6.1.1",
37
+ "@fortawesome/free-brands-svg-icons": "^6.1.1",
38
+ "@fortawesome/free-regular-svg-icons": "^6.1.1",
39
+ "@fortawesome/free-solid-svg-icons": "^6.1.1",
40
+ "@fortawesome/vue-fontawesome": "^3.0.0-5",
41
+ "@vuepic/vue-datepicker": "^3.5.3",
42
+ "click-outside-vue3": "^4.0.1",
43
+ "date-fns": "^2.30.0",
44
+ "floating-vue": "^5.2.2",
45
+ "mitt": "^3.0.0",
46
+ "pinia": "^3.0.2",
47
+ "tabbable": "^5.2.0",
48
+ "tippy.js": "^6.3.1",
49
+ "vue": "^3.5.12",
50
+ "vue-perfect-scrollbar": "^0.2.1",
51
+ "vue3-datepicker": "^0.4.0"
52
+ },
53
+ "devDependencies": {
54
+ "@eslint/js": "^9.39.0",
55
+ "@prettier/plugin-pug": "^3.4.2",
56
+ "@types/node": "^20.14.9",
57
+ "@vitejs/plugin-vue": "^5.2.4",
58
+ "@vue/compiler-sfc": "^3.1.5",
59
+ "@vue/eslint-config-typescript": "^14.9.0",
60
+ "@vue/language-plugin-pug": "^1.8.15",
61
+ "@vue/tsconfig": "^0.1.3",
62
+ "eslint": "^9.39.0",
63
+ "eslint-config-prettier": "^10.1.8",
64
+ "eslint-plugin-vue": "^10.10.0",
65
+ "prettier": "^3.6.2",
66
+ "prettier-plugin-stylus": "^0.1.0",
67
+ "pug": "^3.0.2",
68
+ "pug-plain-loader": "^1.1.0",
69
+ "rollup-plugin-visualizer": "^6.0.5",
70
+ "stylelint": "^15.9.0",
71
+ "stylelint-config-recommended": "^12.0.0",
72
+ "stylelint-stylus": "^0.18.0",
73
+ "stylus": "^0.59.0",
74
+ "typescript": "^5.5.3",
75
+ "vite": "^6.3.5",
76
+ "vite-plugin-dts": "^4.5.4",
77
+ "vue-tsc": "^2"
78
+ }
79
+ }