dolphin-components 2.0.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.
@@ -0,0 +1,11 @@
1
+ import './assets/css/main.css';
2
+ import ContentLayout from './components/ContentLayout.vue';
3
+ import Modal from './components/Modal.vue';
4
+ import Switch from './components/Switch.vue';
5
+ import Tabulator from './components/Tabulator.vue';
6
+ import Toggle from './components/Toggle.vue';
7
+ import Towser from './components/Towser.vue';
8
+ export { ContentLayout, Modal, Switch, Tabulator, Toggle, Towser };
9
+ export type { ContentTitle, ContentAction, ContentProps, ModalProps, ModalTitle, ModalAction, SwitchProps, TabulatorProps, TabulatorModalSettings, TabulatorHeader, TabulatorData, TabulatorAction, TowserTitle, TowserAction, TowserProps, ToggleProps, } from './types';
10
+ import { InputError } from './Directives/ErrorDirective';
11
+ export { InputError };
@@ -0,0 +1,103 @@
1
+ export interface ContentProps {
2
+ title: ContentTitle[];
3
+ action?: ContentAction[];
4
+ bodyClass?: string;
5
+ titleClass?: string;
6
+ }
7
+ export interface ContentTitle {
8
+ name: string;
9
+ link?: string;
10
+ }
11
+ export interface ContentAction {
12
+ title: string;
13
+ emit: string;
14
+ class?: string;
15
+ }
16
+ export interface ModalProps {
17
+ title: ModalTitle[];
18
+ action: ModalAction[];
19
+ show: boolean;
20
+ width?: string;
21
+ }
22
+ export interface ModalTitle {
23
+ name: string;
24
+ link?: string;
25
+ }
26
+ export interface ModalAction {
27
+ emit: string;
28
+ title: string;
29
+ class?: string;
30
+ }
31
+ export interface SwitchProps {
32
+ modelValue: boolean;
33
+ background?: string;
34
+ disable?: boolean;
35
+ }
36
+ import type { VerticalAlign, ColumnDefinitionAlign, Editor, CellComponent } from "tabulator-tables";
37
+ export interface TabulatorProps {
38
+ data: TabulatorData[];
39
+ columns: TabulatorHeader[];
40
+ placeholder: string;
41
+ paginationSize: number;
42
+ paginationSizeSelector: number[];
43
+ action: boolean;
44
+ actionButtons: TabulatorAction[];
45
+ heightOffset: number;
46
+ }
47
+ export interface TabulatorModalSettings {
48
+ title: Array<{
49
+ name: string;
50
+ }>;
51
+ action: Array<{
52
+ title: string;
53
+ emit: string;
54
+ class?: string;
55
+ }>;
56
+ }
57
+ export interface TabulatorHeader {
58
+ title: string;
59
+ field: string;
60
+ headerFilter?: Editor;
61
+ headerFilterPlaceholder?: string;
62
+ isNotMandatory?: boolean;
63
+ width?: number;
64
+ vertAlign?: VerticalAlign;
65
+ hozAlign?: ColumnDefinitionAlign;
66
+ headerSort?: boolean;
67
+ formatter?: (cell: CellComponent) => string;
68
+ cellClick?: (e: UIEvent, cell: CellComponent) => void;
69
+ }
70
+ export interface TabulatorData {
71
+ id: string | number;
72
+ [key: string]: any;
73
+ }
74
+ export interface TabulatorAction {
75
+ name: string;
76
+ emit: string;
77
+ class: string;
78
+ hide: boolean;
79
+ }
80
+ export interface ToggleProps {
81
+ modelValue: boolean;
82
+ onText?: string;
83
+ offText?: string;
84
+ width?: string;
85
+ disable?: boolean;
86
+ }
87
+ export interface TowserProps {
88
+ show: boolean;
89
+ title: TowserTitle[];
90
+ action?: TowserAction[];
91
+ double?: boolean;
92
+ bodyWidth?: number;
93
+ body2Width?: number;
94
+ }
95
+ export interface TowserTitle {
96
+ name: string;
97
+ link?: string;
98
+ }
99
+ export interface TowserAction {
100
+ emit: string;
101
+ title: string;
102
+ class?: string;
103
+ }
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "dolphin-components",
3
+ "private": false,
4
+ "version": "2.0.0",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "author": "<Mavorion Systems> (https://mavorion.com/)",
10
+ "homepage": "https://mavorion.com/",
11
+ "license" : "Apache-2.0",
12
+ "main": "./dist/dolphin-components.umd.cjs",
13
+ "module": "./dist/dolphin-components.es.js",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/dolphin-components.es.js",
18
+ "require": "./dist/dolphin-components.umd.cjs"
19
+ },
20
+ "./dolphin-components.css": "./dist/dolphin-components.css"
21
+ },
22
+ "types": "./dist/index.d.ts",
23
+ "scripts": {
24
+ "dev": "vite",
25
+ "build": "vite build && vue-tsc --declaration --emitDeclarationOnly",
26
+ "preview": "vite preview"
27
+ },
28
+ "dependencies": {
29
+ "@tailwindcss/vite": "^4.0.3",
30
+ "@types/tabulator-tables": "^6.2.3",
31
+ "sweetalert2": "^11.15.10",
32
+ "tabulator-tables": "^6.3.1",
33
+ "tailwindcss": "^4.0.3",
34
+ "vue": "^3.5.13",
35
+ "vue-multiselect": "^3.2.0"
36
+ },
37
+ "peerDependencies": {
38
+ "vue-router": "^4.5.0"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "^22.13.1",
42
+ "@vitejs/plugin-vue": "^5.2.1",
43
+ "@vue/tsconfig": "^0.7.0",
44
+ "path": "^0.12.7",
45
+ "rollup-plugin-typescript2": "^0.36.0",
46
+ "typescript": "~5.7.3",
47
+ "vite": "^6.1.0",
48
+ "vite-plugin-dts": "^4.5.0",
49
+ "vue-tsc": "^2.2.0"
50
+ },
51
+ "keywords": ["mavorion", "dolphin"]
52
+ }