dolphin-components 2.0.0 → 2.0.2

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.
package/README.md CHANGED
@@ -16,10 +16,10 @@ npm install dolphin-components
16
16
 
17
17
  ### 1. Import Styles
18
18
 
19
- Make sure to import the CSS styles in your main entry file (e.g., `main.ts` or `main.js`):
19
+ Make sure to import the CSS styles in your main entry file (e.g., `main.css`):
20
20
 
21
- ```ts
22
- import 'dolphin-components/dist/dolphin-components.css';
21
+ ```css
22
+ @import 'dolphin-components/dolphin-components.css';
23
23
  ```
24
24
 
25
25
  ### 2. Register Components
@@ -51,7 +51,7 @@ app.mount('#app');
51
51
 
52
52
  **Props:**
53
53
  - `title` (Array of `ContentTitle[]`, required) - Defines the content titles with optional links.
54
- - `action` (Array of `ContentAction[]`, optional) - Defines actions with a title, emit event, and optional class.
54
+ - `actions` (Array of `ContentAction[]`, optional) - Defines actions with a title, emit event, and optional class.
55
55
  - `bodyClass` (String, optional) - Additional class for the body.
56
56
  - `titleClass` (String, optional) - Additional class for the title.
57
57
 
@@ -59,7 +59,7 @@ app.mount('#app');
59
59
 
60
60
  **Props:**
61
61
  - `title` (Array of `ModalTitle[]`, required) - Defines modal titles with optional links.
62
- - `action` (Array of `ModalAction[]`, required) - Defines actions with an emit event and optional class.
62
+ - `actions` (Array of `ModalAction[]`, required) - Defines actions with an emit event and optional class.
63
63
  - `show` (Boolean, required) - Controls modal visibility.
64
64
  - `width` (String, optional) - Defines modal width.
65
65
 
@@ -96,7 +96,7 @@ app.mount('#app');
96
96
  **Props:**
97
97
  - `show` (Boolean, required) - Controls visibility.
98
98
  - `title` (Array of `TowserTitle[]`, required) - Defines the titles with optional links.
99
- - `action` (Array of `TowserAction[]`, optional) - Defines actions.
99
+ - `actions` (Array of `TowserAction[]`, optional) - Defines actions.
100
100
  - `double` (Boolean, optional) - Enables double-pane layout.
101
101
  - `bodyWidth` (Number, optional) - Width of the main body.
102
102
  - `body2Width` (Number, optional) - Width of the secondary body.
@@ -1,28 +1,50 @@
1
1
  import type { ContentAction, ContentProps } from '../types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- 'action-before'?(_: {}): any;
6
- 'action-after'?(_: {}): any;
7
- default?(_: {}): any;
8
- };
9
- refs: {};
10
- rootEl: HTMLDivElement;
2
+ type __VLS_Emit = {
3
+ (event: string, data?: string | number): void;
11
4
  };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
5
+ declare const emit: __VLS_Emit;
6
+ declare const currentActions: import("vue").Ref<{
7
+ title: string;
8
+ emit: string;
9
+ class?: string;
10
+ }[], ContentAction[] | {
11
+ title: string;
12
+ emit: string;
13
+ class?: string;
14
+ }[]>;
15
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
16
+ declare var __VLS_5: {}, __VLS_7: {}, __VLS_9: {};
17
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
18
+ 'action-before'?: (props: typeof __VLS_5) => any;
19
+ } & {
20
+ 'action-after'?: (props: typeof __VLS_7) => any;
21
+ } & {
22
+ body?: (props: typeof __VLS_9) => any;
23
+ }>;
24
+ declare const __VLS_self: import("vue").DefineComponent<ContentProps, {
25
+ emit: typeof emit;
26
+ currentActions: typeof currentActions;
27
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
28
+ [x: string]: never;
29
+ }, string, import("vue").PublicProps, Readonly<ContentProps> & Readonly<{
30
+ [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
31
+ }>, {
32
+ title: import("../types").ContentTitle[];
33
+ bodyClass: string;
34
+ titleClass: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
36
  declare const __VLS_component: import("vue").DefineComponent<ContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
37
  [x: string]: never;
15
38
  }, string, import("vue").PublicProps, Readonly<ContentProps> & Readonly<{
16
39
  [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
17
40
  }>, {
18
41
  title: import("../types").ContentTitle[];
19
- action: ContentAction[];
20
42
  bodyClass: string;
21
43
  titleClass: string;
22
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
46
  export default _default;
25
- type __VLS_WithTemplateSlots<T, S> = T & {
47
+ type __VLS_WithSlots<T, S> = T & {
26
48
  new (): {
27
49
  $slots: S;
28
50
  };
@@ -1,15 +1,43 @@
1
- import type { ModalProps } from '../types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {
8
- dynamicDiv: HTMLDivElement;
9
- };
10
- rootEl: any;
1
+ import type { ModalAction, ModalProps } from '../types';
2
+ type __VLS_Emit = {
3
+ (event: string, data?: string | number): void;
11
4
  };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
5
+ declare const emit: __VLS_Emit;
6
+ declare const screenHeight: import("vue").Ref<number, number>;
7
+ declare const dynamicDiv: import("vue").Ref<HTMLElement, HTMLElement>;
8
+ declare const shouldApplyOverflow: import("vue").Ref<boolean, boolean>;
9
+ declare const handleAction: (action: ModalAction) => void;
10
+ declare const currentActions: import("vue").Ref<{
11
+ emit: string;
12
+ title: string;
13
+ class?: string;
14
+ }[], ModalAction[] | {
15
+ emit: string;
16
+ title: string;
17
+ class?: string;
18
+ }[]>;
19
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
20
+ declare var __VLS_9: {};
21
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
22
+ default?: (props: typeof __VLS_9) => any;
23
+ }>;
24
+ declare const __VLS_self: import("vue").DefineComponent<ModalProps, {
25
+ emit: typeof emit;
26
+ screenHeight: typeof screenHeight;
27
+ dynamicDiv: typeof dynamicDiv;
28
+ shouldApplyOverflow: typeof shouldApplyOverflow;
29
+ handleAction: typeof handleAction;
30
+ currentActions: typeof currentActions;
31
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
32
+ [x: string]: never;
33
+ }, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
34
+ [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
35
+ }>, {
36
+ show: boolean;
37
+ width: string;
38
+ title: import("../types").ModalTitle[];
39
+ actions: ModalAction[];
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
41
  declare const __VLS_component: import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
42
  [x: string]: never;
15
43
  }, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
@@ -18,12 +46,11 @@ declare const __VLS_component: import("vue").DefineComponent<ModalProps, {}, {},
18
46
  show: boolean;
19
47
  width: string;
20
48
  title: import("../types").ModalTitle[];
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
22
- dynamicDiv: HTMLDivElement;
23
- }, any>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
49
+ actions: ModalAction[];
50
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
52
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
53
+ type __VLS_WithSlots<T, S> = T & {
27
54
  new (): {
28
55
  $slots: S;
29
56
  };
@@ -7,5 +7,5 @@ declare const _default: import("vue").DefineComponent<SwitchProps, {}, {}, {}, {
7
7
  background: string;
8
8
  modelValue: boolean;
9
9
  disable: boolean;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -12,7 +12,5 @@ declare const _default: import("vue").DefineComponent<TabulatorProps, {}, {}, {}
12
12
  paginationSizeSelector: number[];
13
13
  actionButtons: import("../types").TabulatorAction[];
14
14
  heightOffset: number;
15
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
16
- table: HTMLDivElement;
17
- }, HTMLDivElement>;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
16
  export default _default;
@@ -9,5 +9,5 @@ declare const _default: import("vue").DefineComponent<ToggleProps, {}, {}, {}, {
9
9
  disable: boolean;
10
10
  onText: string;
11
11
  offText: string;
12
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -1,29 +1,44 @@
1
1
  import type { TowserProps } from '../types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- body2?(_: {}): any;
7
- };
8
- refs: {};
9
- rootEl: any;
2
+ type __VLS_Emit = {
3
+ (event: string, data?: string | number): void;
10
4
  };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
5
+ declare const emit: __VLS_Emit;
6
+ declare const bodyStyle: import("vue").ComputedRef<string>;
7
+ declare const body2Style: import("vue").ComputedRef<string>;
8
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
9
+ declare var __VLS_9: {}, __VLS_11: {};
10
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
11
+ default?: (props: typeof __VLS_9) => any;
12
+ } & {
13
+ body2?: (props: typeof __VLS_11) => any;
14
+ }>;
15
+ declare const __VLS_self: import("vue").DefineComponent<TowserProps, {
16
+ emit: typeof emit;
17
+ bodyStyle: typeof bodyStyle;
18
+ body2Style: typeof body2Style;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
+ [x: string]: never;
21
+ }, string, import("vue").PublicProps, Readonly<TowserProps> & Readonly<{
22
+ [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
23
+ }>, {
24
+ show: boolean;
25
+ double: boolean;
26
+ bodyWidth: number;
27
+ body2Width: number;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
29
  declare const __VLS_component: import("vue").DefineComponent<TowserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
30
  [x: string]: never;
14
31
  }, string, import("vue").PublicProps, Readonly<TowserProps> & Readonly<{
15
32
  [x: `on${Capitalize<string>}`]: (...args: unknown[]) => any;
16
33
  }>, {
17
34
  show: boolean;
18
- title: import("../types").TowserTitle[];
19
- action: import("../types").TowserAction[];
20
35
  double: boolean;
21
36
  bodyWidth: number;
22
37
  body2Width: number;
23
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
40
  export default _default;
26
- type __VLS_WithTemplateSlots<T, S> = T & {
41
+ type __VLS_WithSlots<T, S> = T & {
27
42
  new (): {
28
43
  $slots: S;
29
44
  };