pangea-lib 4.0.178 → 4.0.180
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/dist/main.cjs.js +69 -69
- package/dist/main.css +2 -2
- package/dist/main.es.js +16742 -16793
- package/dist/types/components/{PgaCalendar.vue.d.ts → calendar/PgaCalendar.vue.d.ts} +17 -38
- package/dist/types/components/calendar/calendar.types.d.ts +30 -0
- package/dist/types/components/calendar/config-modal/config-form.rules.d.ts +20 -0
- package/dist/types/components/form/inputs/PgaInputSelect.vue.d.ts +6 -6
- package/dist/types/components/form/inputs/PgaTextarea.vue.d.ts +6 -6
- package/dist/types/components/image/PgaImage.vue.d.ts +6 -6
- package/dist/types/components/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StrOrFn } from '../../types';
|
|
2
|
+
import { CalConfig, CalEvent, CalVacation, CalRange } from './calendar.types';
|
|
2
3
|
|
|
3
|
-
type Event = {
|
|
4
|
-
id: Id;
|
|
5
|
-
start: Date;
|
|
6
|
-
end: Date;
|
|
7
|
-
toString(): string;
|
|
8
|
-
toStringFull(): string;
|
|
9
|
-
};
|
|
10
|
-
type DateStr = string;
|
|
11
|
-
type Vacation = {
|
|
12
|
-
start: DateStr;
|
|
13
|
-
end: DateStr;
|
|
14
|
-
};
|
|
15
|
-
type Range = {
|
|
16
|
-
start: Date;
|
|
17
|
-
end: Date;
|
|
18
|
-
};
|
|
19
|
-
type CalConfig = {
|
|
20
|
-
hideWeekends: boolean;
|
|
21
|
-
timeFrom: number;
|
|
22
|
-
timeTo: number;
|
|
23
|
-
timeStep: number;
|
|
24
|
-
};
|
|
25
4
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
26
5
|
modelValue: {
|
|
27
6
|
required: true;
|
|
28
|
-
type: import('vue').PropType<
|
|
7
|
+
type: import('vue').PropType<CalEvent[]>;
|
|
29
8
|
};
|
|
30
|
-
searchRange: import('vue').PropType<
|
|
9
|
+
searchRange: import('vue').PropType<CalRange>;
|
|
31
10
|
config: {
|
|
32
11
|
type: import('vue').PropType<CalConfig>;
|
|
33
12
|
required: true;
|
|
@@ -42,22 +21,22 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
42
21
|
type: import('vue').PropType<string[]>;
|
|
43
22
|
};
|
|
44
23
|
vacations: {
|
|
45
|
-
type: import('vue').PropType<
|
|
24
|
+
type: import('vue').PropType<CalVacation[]>;
|
|
46
25
|
};
|
|
47
26
|
updateDatesFn: {
|
|
48
|
-
type: import('vue').PropType<(event:
|
|
27
|
+
type: import('vue').PropType<(event: CalEvent) => Promise<void>>;
|
|
49
28
|
};
|
|
50
29
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
-
createEvent: (range:
|
|
52
|
-
eventClicked: (event: Event) => void;
|
|
53
|
-
refreshList: (range: Range) => void;
|
|
30
|
+
createEvent: (range: CalRange) => void;
|
|
54
31
|
configChanged: () => void;
|
|
32
|
+
eventClicked: (event: CalEvent) => void;
|
|
33
|
+
refreshList: (range: CalRange) => void;
|
|
55
34
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
56
35
|
modelValue: {
|
|
57
36
|
required: true;
|
|
58
|
-
type: import('vue').PropType<
|
|
37
|
+
type: import('vue').PropType<CalEvent[]>;
|
|
59
38
|
};
|
|
60
|
-
searchRange: import('vue').PropType<
|
|
39
|
+
searchRange: import('vue').PropType<CalRange>;
|
|
61
40
|
config: {
|
|
62
41
|
type: import('vue').PropType<CalConfig>;
|
|
63
42
|
required: true;
|
|
@@ -72,19 +51,19 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
72
51
|
type: import('vue').PropType<string[]>;
|
|
73
52
|
};
|
|
74
53
|
vacations: {
|
|
75
|
-
type: import('vue').PropType<
|
|
54
|
+
type: import('vue').PropType<CalVacation[]>;
|
|
76
55
|
};
|
|
77
56
|
updateDatesFn: {
|
|
78
|
-
type: import('vue').PropType<(event:
|
|
57
|
+
type: import('vue').PropType<(event: CalEvent) => Promise<void>>;
|
|
79
58
|
};
|
|
80
59
|
}>> & {
|
|
81
|
-
onCreateEvent?: (range:
|
|
82
|
-
onEventClicked?: (event: Event) => any;
|
|
83
|
-
onRefreshList?: (range: Range) => any;
|
|
60
|
+
onCreateEvent?: (range: CalRange) => any;
|
|
84
61
|
onConfigChanged?: () => any;
|
|
62
|
+
onEventClicked?: (event: CalEvent) => any;
|
|
63
|
+
onRefreshList?: (range: CalRange) => any;
|
|
85
64
|
}, {}, {}>, {
|
|
86
65
|
event?(_: {
|
|
87
|
-
event:
|
|
66
|
+
event: CalEvent;
|
|
88
67
|
}): any;
|
|
89
68
|
}>;
|
|
90
69
|
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Id } from '../../types';
|
|
2
|
+
|
|
3
|
+
export type CalConfig = {
|
|
4
|
+
hideWeekends: boolean;
|
|
5
|
+
timeFrom: number;
|
|
6
|
+
timeTo: number;
|
|
7
|
+
timeStep: number;
|
|
8
|
+
};
|
|
9
|
+
export type CalEvent = {
|
|
10
|
+
id: Id;
|
|
11
|
+
start: Date;
|
|
12
|
+
end: Date;
|
|
13
|
+
toString(): string;
|
|
14
|
+
toStringFull(): string;
|
|
15
|
+
};
|
|
16
|
+
export type VueCalEvent = {
|
|
17
|
+
id: Id;
|
|
18
|
+
start: string;
|
|
19
|
+
end: string;
|
|
20
|
+
};
|
|
21
|
+
export type CalDate = string;
|
|
22
|
+
export type CalVacation = {
|
|
23
|
+
start: CalDate;
|
|
24
|
+
end: CalDate;
|
|
25
|
+
};
|
|
26
|
+
export type CalView = 'month' | 'week' | 'day';
|
|
27
|
+
export type CalRange = {
|
|
28
|
+
start: Date;
|
|
29
|
+
end: Date;
|
|
30
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const configFormRules: {
|
|
2
|
+
timeFrom: {
|
|
3
|
+
requiredRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
4
|
+
integerRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
5
|
+
greaterEqualRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
6
|
+
lessEqualRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
7
|
+
};
|
|
8
|
+
timeTo: {
|
|
9
|
+
requiredRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
10
|
+
integerRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
11
|
+
greaterEqualRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
12
|
+
lessEqualRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
13
|
+
};
|
|
14
|
+
timeStep: {
|
|
15
|
+
requiredRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
16
|
+
integerRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
17
|
+
greaterEqualRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
18
|
+
lessEqualRule: import('@vuelidate/core').ValidationRuleWithParams<object, any>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -26,6 +26,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
26
|
disabled: {
|
|
27
27
|
type: import('vue').PropType<boolean>;
|
|
28
28
|
};
|
|
29
|
+
notClearable: {
|
|
30
|
+
type: import('vue').PropType<boolean>;
|
|
31
|
+
};
|
|
29
32
|
withRequiredLabel: {
|
|
30
33
|
type: import('vue').PropType<boolean>;
|
|
31
34
|
};
|
|
@@ -44,9 +47,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
44
47
|
placeholder: {
|
|
45
48
|
type: import('vue').PropType<StrOrFn>;
|
|
46
49
|
};
|
|
47
|
-
notClearable: {
|
|
48
|
-
type: import('vue').PropType<boolean>;
|
|
49
|
-
};
|
|
50
50
|
descriptionField: {
|
|
51
51
|
type: import('vue').PropType<string>;
|
|
52
52
|
default: string;
|
|
@@ -80,6 +80,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
80
80
|
disabled: {
|
|
81
81
|
type: import('vue').PropType<boolean>;
|
|
82
82
|
};
|
|
83
|
+
notClearable: {
|
|
84
|
+
type: import('vue').PropType<boolean>;
|
|
85
|
+
};
|
|
83
86
|
withRequiredLabel: {
|
|
84
87
|
type: import('vue').PropType<boolean>;
|
|
85
88
|
};
|
|
@@ -98,9 +101,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
98
101
|
placeholder: {
|
|
99
102
|
type: import('vue').PropType<StrOrFn>;
|
|
100
103
|
};
|
|
101
|
-
notClearable: {
|
|
102
|
-
type: import('vue').PropType<boolean>;
|
|
103
|
-
};
|
|
104
104
|
descriptionField: {
|
|
105
105
|
type: import('vue').PropType<string>;
|
|
106
106
|
default: string;
|
|
@@ -22,6 +22,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
disabled: {
|
|
23
23
|
type: import('vue').PropType<boolean>;
|
|
24
24
|
};
|
|
25
|
+
maxLength: {
|
|
26
|
+
type: import('vue').PropType<number>;
|
|
27
|
+
};
|
|
25
28
|
withRequiredLabel: {
|
|
26
29
|
type: import('vue').PropType<boolean>;
|
|
27
30
|
};
|
|
@@ -43,9 +46,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
43
46
|
autofocus: {
|
|
44
47
|
type: import('vue').PropType<boolean>;
|
|
45
48
|
};
|
|
46
|
-
maxLength: {
|
|
47
|
-
type: import('vue').PropType<number>;
|
|
48
|
-
};
|
|
49
49
|
}, {
|
|
50
50
|
focus: typeof focus;
|
|
51
51
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -71,6 +71,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
71
71
|
disabled: {
|
|
72
72
|
type: import('vue').PropType<boolean>;
|
|
73
73
|
};
|
|
74
|
+
maxLength: {
|
|
75
|
+
type: import('vue').PropType<number>;
|
|
76
|
+
};
|
|
74
77
|
withRequiredLabel: {
|
|
75
78
|
type: import('vue').PropType<boolean>;
|
|
76
79
|
};
|
|
@@ -92,9 +95,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
92
95
|
autofocus: {
|
|
93
96
|
type: import('vue').PropType<boolean>;
|
|
94
97
|
};
|
|
95
|
-
maxLength: {
|
|
96
|
-
type: import('vue').PropType<number>;
|
|
97
|
-
};
|
|
98
98
|
}>> & {
|
|
99
99
|
onChange?: (newValue: string) => any;
|
|
100
100
|
}, {
|
|
@@ -17,15 +17,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
17
17
|
width: {
|
|
18
18
|
type: import('vue').PropType<string>;
|
|
19
19
|
};
|
|
20
|
-
height: {
|
|
21
|
-
type: import('vue').PropType<string>;
|
|
22
|
-
};
|
|
23
20
|
uploadFn: {
|
|
24
21
|
type: import('vue').PropType<(params: UploadFileParams) => Promise<string>>;
|
|
25
22
|
};
|
|
26
23
|
deleteFn: {
|
|
27
24
|
type: import('vue').PropType<() => Promise<void>>;
|
|
28
25
|
};
|
|
26
|
+
height: {
|
|
27
|
+
type: import('vue').PropType<string>;
|
|
28
|
+
};
|
|
29
29
|
defaultImage: {
|
|
30
30
|
type: import('vue').PropType<string>;
|
|
31
31
|
};
|
|
@@ -50,15 +50,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
50
50
|
width: {
|
|
51
51
|
type: import('vue').PropType<string>;
|
|
52
52
|
};
|
|
53
|
-
height: {
|
|
54
|
-
type: import('vue').PropType<string>;
|
|
55
|
-
};
|
|
56
53
|
uploadFn: {
|
|
57
54
|
type: import('vue').PropType<(params: UploadFileParams) => Promise<string>>;
|
|
58
55
|
};
|
|
59
56
|
deleteFn: {
|
|
60
57
|
type: import('vue').PropType<() => Promise<void>>;
|
|
61
58
|
};
|
|
59
|
+
height: {
|
|
60
|
+
type: import('vue').PropType<string>;
|
|
61
|
+
};
|
|
62
62
|
defaultImage: {
|
|
63
63
|
type: import('vue').PropType<string>;
|
|
64
64
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as PgaBadge } from './PgaBadge.vue';
|
|
2
|
-
export { default as PgaCalendar } from './PgaCalendar.vue';
|
|
3
2
|
export { default as PgaColorCircle } from './PgaColorCircle.vue';
|
|
4
3
|
export { default as PgaDropdown } from './PgaDropdown.vue';
|
|
5
4
|
export { default as PgaDropdownMenu } from './PgaDropdownMenu.vue';
|
|
@@ -32,6 +31,7 @@ export { default as PgaRouterLink } from './button/PgaRouterLink.vue';
|
|
|
32
31
|
export { default as PgaRouterLinkButton } from './button/PgaRouterLinkButton.vue';
|
|
33
32
|
export { default as PgaSeeDetailsButton } from './button/PgaSeeDetailsButton.vue';
|
|
34
33
|
export { default as PgaToggleButton } from './button/PgaToggleButton.vue';
|
|
34
|
+
export { default as PgaCalendar } from './calendar/PgaCalendar.vue';
|
|
35
35
|
export { default as PgaBarChart } from './chart/PgaBarChart.vue';
|
|
36
36
|
export { default as PgaDoughnutChart } from './chart/PgaDoughnutChart.vue';
|
|
37
37
|
export { default as PgaDisplayBarcodes } from './display/PgaDisplayBarcodes.vue';
|