vue-lib-exo-corrected 1.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.
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ ## Part 1: Project Architecture
2
+
3
+ ### Component Architecture
4
+ Our project follows a strict component architecture based on Atomic Design principles. This architecture emphasizes:
5
+ - Pure, stateless components for better maintainability
6
+ - Clear separation of concerns
7
+ - Predictable component behavior
8
+ - Easy testing and debugging
9
+
10
+ For detailed information about our component architecture and guidelines, please refer to the [Component Architecture Guide](./src/components/README.md).
11
+
12
+ By following these instructions, you can efficiently set up and run the project in both production and development environments. Feel free to explore the scripts for more details on what each command does.
@@ -0,0 +1,26 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import type { MarkdownTextSize } from "../../../types/sizes.ts";
3
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ contentMd: {
5
+ type: __PropType<string>;
6
+ required: true;
7
+ };
8
+ size: {
9
+ type: __PropType<MarkdownTextSize | undefined>;
10
+ required: false;
11
+ default: string;
12
+ };
13
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ contentMd: {
15
+ type: __PropType<string>;
16
+ required: true;
17
+ };
18
+ size: {
19
+ type: __PropType<MarkdownTextSize | undefined>;
20
+ required: false;
21
+ default: string;
22
+ };
23
+ }>> & Readonly<{}>, {
24
+ size: MarkdownTextSize | undefined;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _sfc_main;
@@ -0,0 +1,13 @@
1
+ import MarkdownText from "./components/Molecules/MarkdownText/MarkdownText.vue";
2
+ import Layout from "./components/Organisms/Layout/Layout.vue";
3
+ import { DEFAULT_VUETIFY_CONFIG } from "./lidinAppKitConfig/vuetifyConfig/defaultVuetifyConfig";
4
+ import { createLidinAppKit } from "./lidinAppKitConfig/createLidinAppKit.ts";
5
+ import { useLanguage } from "./modules/globalAppData/composables/useLanguage.ts";
6
+ import { useTheme } from "./modules/globalAppData/composables/useTheme.ts";
7
+ import { generateRandomUuid } from "./services/utils/randomId.ts";
8
+ export { useLanguage, useTheme, createLidinAppKit, DEFAULT_VUETIFY_CONFIG, MarkdownText, Layout, generateRandomUuid, };
9
+
10
+ import type { DefineComponent } from 'vue';
11
+
12
+ export declare const MarkdownText: DefineComponent<{}, {}, any>;
13
+ export declare const Layout: DefineComponent<{}, {}, any>;
@@ -0,0 +1,85 @@
1
+ import { type VuetifyOptions } from "vuetify";
2
+ export declare function createLidinAppKit(vuetify: VuetifyOptions): {
3
+ install: (app: import("vue").App<any>) => void;
4
+ unmount: () => void;
5
+ defaults: import("vue").Ref<import("vuetify").DefaultsInstance, import("vuetify").DefaultsInstance>;
6
+ display: import("vuetify").DisplayInstance;
7
+ theme: import("vuetify").ThemeInstance & {
8
+ install: (app: import("vue").App<any>) => void;
9
+ };
10
+ icons: {
11
+ defaultSet: string;
12
+ aliases: Partial<import("vuetify").IconAliases>;
13
+ sets: Record<string, import("vuetify").IconSet>;
14
+ };
15
+ locale: {
16
+ name: string;
17
+ decimalSeparator: import("vue").ShallowRef<string>;
18
+ messages: import("vue").Ref<import("vuetify").LocaleMessages, import("vuetify").LocaleMessages>;
19
+ current: import("vue").Ref<string, string>;
20
+ fallback: import("vue").Ref<string, string>;
21
+ t: (key: string, ...params: unknown[]) => string;
22
+ n: (value: number) => string;
23
+ provide: (props: import("vuetify").LocaleOptions) => import("vuetify").LocaleInstance;
24
+ isRtl: import("vue").Ref<boolean, boolean>;
25
+ rtl: import("vue").Ref<Record<string, boolean>, Record<string, boolean>>;
26
+ rtlClasses: import("vue").Ref<string, string>;
27
+ };
28
+ date: {
29
+ options: {
30
+ adapter: (new (options: {
31
+ locale: any;
32
+ formats?: any;
33
+ }) => import("vuetify").DateInstance) | import("vuetify").DateInstance;
34
+ formats?: Record<string, any> | undefined;
35
+ locale: Record<string, any>;
36
+ };
37
+ instance: {
38
+ date: (value?: any) => unknown;
39
+ format: (date: unknown, formatString: string) => string;
40
+ toJsDate: (value: unknown) => Date;
41
+ parseISO: (date: string) => unknown;
42
+ toISO: (date: unknown) => string;
43
+ startOfDay: (date: unknown) => unknown;
44
+ endOfDay: (date: unknown) => unknown;
45
+ startOfWeek: (date: unknown, firstDayOfWeek?: string | number | undefined) => unknown;
46
+ endOfWeek: (date: unknown) => unknown;
47
+ startOfMonth: (date: unknown) => unknown;
48
+ endOfMonth: (date: unknown) => unknown;
49
+ startOfYear: (date: unknown) => unknown;
50
+ endOfYear: (date: unknown) => unknown;
51
+ isAfter: (date: unknown, comparing: unknown) => boolean;
52
+ isAfterDay: (date: unknown, comparing: unknown) => boolean;
53
+ isSameDay: (date: unknown, comparing: unknown) => boolean;
54
+ isSameMonth: (date: unknown, comparing: unknown) => boolean;
55
+ isSameYear: (date: unknown, comparing: unknown) => boolean;
56
+ isBefore: (date: unknown, comparing: unknown) => boolean;
57
+ isEqual: (date: unknown, comparing: unknown) => boolean;
58
+ isValid: (date: any) => boolean;
59
+ isWithinRange: (date: unknown, range: [unknown, unknown]) => boolean;
60
+ addMinutes: (date: unknown, amount: number) => unknown;
61
+ addHours: (date: unknown, amount: number) => unknown;
62
+ addDays: (date: unknown, amount: number) => unknown;
63
+ addWeeks: (date: unknown, amount: number) => unknown;
64
+ addMonths: (date: unknown, amount: number) => unknown;
65
+ getYear: (date: unknown) => number;
66
+ setYear: (date: unknown, year: number) => unknown;
67
+ getDiff: (date: unknown, comparing: unknown, unit?: string | undefined) => number;
68
+ getWeekArray: (date: unknown, firstDayOfWeek?: string | number | undefined) => unknown[][];
69
+ getWeekdays: (firstDayOfWeek?: string | number | undefined, weekdayFormat?: "long" | "narrow" | "short" | undefined) => string[];
70
+ getWeek: (date: unknown, firstDayOfWeek?: string | number | undefined, firstDayOfYear?: string | number | undefined) => number;
71
+ getMonth: (date: unknown) => number;
72
+ setMonth: (date: unknown, month: number) => unknown;
73
+ getDate: (date: unknown) => number;
74
+ setDate: (date: unknown, day: number) => unknown;
75
+ getNextMonth: (date: unknown) => unknown;
76
+ getPreviousMonth: (date: unknown) => unknown;
77
+ getHours: (date: unknown) => number;
78
+ setHours: (date: unknown, hours: number) => unknown;
79
+ getMinutes: (date: unknown) => number;
80
+ setMinutes: (date: unknown, minutes: number) => unknown;
81
+ locale?: any;
82
+ };
83
+ };
84
+ goTo: import("vuetify").GoToInstance;
85
+ };
@@ -0,0 +1,62 @@
1
+ import * as components from "vuetify/components";
2
+ import * as directives from "vuetify/directives";
3
+ export declare const DEFAULT_VUETIFY_CONFIG: {
4
+ ssr: boolean;
5
+ theme: {
6
+ defaultTheme: string;
7
+ themes: {
8
+ light: {
9
+ dark?: boolean | undefined;
10
+ colors?: {
11
+ [x: string]: string | undefined;
12
+ background?: string | undefined;
13
+ surface?: string | undefined;
14
+ primary?: string | undefined;
15
+ secondary?: string | undefined;
16
+ success?: string | undefined;
17
+ warning?: string | undefined;
18
+ error?: string | undefined;
19
+ info?: string | undefined;
20
+ 'on-background'?: string | undefined;
21
+ 'on-surface'?: string | undefined;
22
+ 'on-primary'?: string | undefined;
23
+ 'on-secondary'?: string | undefined;
24
+ 'on-success'?: string | undefined;
25
+ 'on-warning'?: string | undefined;
26
+ 'on-error'?: string | undefined;
27
+ 'on-info'?: string | undefined;
28
+ } | undefined;
29
+ variables?: {
30
+ [x: string]: string | number | undefined;
31
+ } | undefined;
32
+ };
33
+ dark: {
34
+ dark?: boolean | undefined;
35
+ colors?: {
36
+ [x: string]: string | undefined;
37
+ background?: string | undefined;
38
+ surface?: string | undefined;
39
+ primary?: string | undefined;
40
+ secondary?: string | undefined;
41
+ success?: string | undefined;
42
+ warning?: string | undefined;
43
+ error?: string | undefined;
44
+ info?: string | undefined;
45
+ 'on-background'?: string | undefined;
46
+ 'on-surface'?: string | undefined;
47
+ 'on-primary'?: string | undefined;
48
+ 'on-secondary'?: string | undefined;
49
+ 'on-success'?: string | undefined;
50
+ 'on-warning'?: string | undefined;
51
+ 'on-error'?: string | undefined;
52
+ 'on-info'?: string | undefined;
53
+ } | undefined;
54
+ variables?: {
55
+ [x: string]: string | number | undefined;
56
+ } | undefined;
57
+ };
58
+ };
59
+ };
60
+ components: typeof components;
61
+ directives: typeof directives;
62
+ };
@@ -0,0 +1,5 @@
1
+ import type { ThemeDefinition } from "vuetify";
2
+ export declare const LIGHT_THEME = "light";
3
+ export declare const light: ThemeDefinition;
4
+ export declare const DARK_THEME = "dark";
5
+ export declare const dark: ThemeDefinition;
@@ -0,0 +1,290 @@
1
+ export declare const twColors: {
2
+ black: string;
3
+ white: string;
4
+ slate: {
5
+ 50: string;
6
+ 100: string;
7
+ 200: string;
8
+ 300: string;
9
+ 400: string;
10
+ 500: string;
11
+ 600: string;
12
+ 700: string;
13
+ 800: string;
14
+ 900: string;
15
+ 950: string;
16
+ };
17
+ gray: {
18
+ 50: string;
19
+ 100: string;
20
+ 200: string;
21
+ 300: string;
22
+ 400: string;
23
+ 500: string;
24
+ 600: string;
25
+ 700: string;
26
+ 800: string;
27
+ 900: string;
28
+ 950: string;
29
+ };
30
+ zinc: {
31
+ 50: string;
32
+ 100: string;
33
+ 200: string;
34
+ 300: string;
35
+ 400: string;
36
+ 500: string;
37
+ 600: string;
38
+ 700: string;
39
+ 800: string;
40
+ 900: string;
41
+ 950: string;
42
+ };
43
+ neutral: {
44
+ 50: string;
45
+ 100: string;
46
+ 200: string;
47
+ 300: string;
48
+ 400: string;
49
+ 500: string;
50
+ 600: string;
51
+ 700: string;
52
+ 800: string;
53
+ 900: string;
54
+ 950: string;
55
+ };
56
+ stone: {
57
+ 50: string;
58
+ 100: string;
59
+ 200: string;
60
+ 300: string;
61
+ 400: string;
62
+ 500: string;
63
+ 600: string;
64
+ 700: string;
65
+ 800: string;
66
+ 900: string;
67
+ 950: string;
68
+ };
69
+ red: {
70
+ 50: string;
71
+ 100: string;
72
+ 200: string;
73
+ 300: string;
74
+ 400: string;
75
+ 500: string;
76
+ 600: string;
77
+ 700: string;
78
+ 800: string;
79
+ 900: string;
80
+ 950: string;
81
+ };
82
+ orange: {
83
+ 50: string;
84
+ 100: string;
85
+ 200: string;
86
+ 300: string;
87
+ 400: string;
88
+ 500: string;
89
+ 600: string;
90
+ 700: string;
91
+ 800: string;
92
+ 900: string;
93
+ 950: string;
94
+ };
95
+ amber: {
96
+ 50: string;
97
+ 100: string;
98
+ 200: string;
99
+ 300: string;
100
+ 400: string;
101
+ 500: string;
102
+ 600: string;
103
+ 700: string;
104
+ 800: string;
105
+ 900: string;
106
+ 950: string;
107
+ };
108
+ yellow: {
109
+ 50: string;
110
+ 100: string;
111
+ 200: string;
112
+ 300: string;
113
+ 400: string;
114
+ 500: string;
115
+ 600: string;
116
+ 700: string;
117
+ 800: string;
118
+ 900: string;
119
+ 950: string;
120
+ };
121
+ lime: {
122
+ 50: string;
123
+ 100: string;
124
+ 200: string;
125
+ 300: string;
126
+ 400: string;
127
+ 500: string;
128
+ 600: string;
129
+ 700: string;
130
+ 800: string;
131
+ 900: string;
132
+ 950: string;
133
+ };
134
+ green: {
135
+ 50: string;
136
+ 100: string;
137
+ 200: string;
138
+ 300: string;
139
+ 400: string;
140
+ 500: string;
141
+ 600: string;
142
+ 700: string;
143
+ 800: string;
144
+ 900: string;
145
+ 950: string;
146
+ };
147
+ emerald: {
148
+ 50: string;
149
+ 100: string;
150
+ 200: string;
151
+ 300: string;
152
+ 400: string;
153
+ 500: string;
154
+ 600: string;
155
+ 700: string;
156
+ 800: string;
157
+ 900: string;
158
+ 950: string;
159
+ };
160
+ teal: {
161
+ 50: string;
162
+ 100: string;
163
+ 200: string;
164
+ 300: string;
165
+ 400: string;
166
+ 500: string;
167
+ 600: string;
168
+ 700: string;
169
+ 800: string;
170
+ 900: string;
171
+ 950: string;
172
+ };
173
+ cyan: {
174
+ 50: string;
175
+ 100: string;
176
+ 200: string;
177
+ 300: string;
178
+ 400: string;
179
+ 500: string;
180
+ 600: string;
181
+ 700: string;
182
+ 800: string;
183
+ 900: string;
184
+ 950: string;
185
+ };
186
+ sky: {
187
+ 50: string;
188
+ 100: string;
189
+ 200: string;
190
+ 300: string;
191
+ 400: string;
192
+ 500: string;
193
+ 600: string;
194
+ 700: string;
195
+ 800: string;
196
+ 900: string;
197
+ 950: string;
198
+ };
199
+ blue: {
200
+ 50: string;
201
+ 100: string;
202
+ 200: string;
203
+ 300: string;
204
+ 400: string;
205
+ 500: string;
206
+ 600: string;
207
+ 700: string;
208
+ 800: string;
209
+ 900: string;
210
+ 950: string;
211
+ };
212
+ indigo: {
213
+ 50: string;
214
+ 100: string;
215
+ 200: string;
216
+ 300: string;
217
+ 400: string;
218
+ 500: string;
219
+ 600: string;
220
+ 700: string;
221
+ 800: string;
222
+ 900: string;
223
+ 950: string;
224
+ };
225
+ violet: {
226
+ 50: string;
227
+ 100: string;
228
+ 200: string;
229
+ 300: string;
230
+ 400: string;
231
+ 500: string;
232
+ 600: string;
233
+ 700: string;
234
+ 800: string;
235
+ 900: string;
236
+ 950: string;
237
+ };
238
+ purple: {
239
+ 50: string;
240
+ 100: string;
241
+ 200: string;
242
+ 300: string;
243
+ 400: string;
244
+ 500: string;
245
+ 600: string;
246
+ 700: string;
247
+ 800: string;
248
+ 900: string;
249
+ 950: string;
250
+ };
251
+ fuchsia: {
252
+ 50: string;
253
+ 100: string;
254
+ 200: string;
255
+ 300: string;
256
+ 400: string;
257
+ 500: string;
258
+ 600: string;
259
+ 700: string;
260
+ 800: string;
261
+ 900: string;
262
+ 950: string;
263
+ };
264
+ pink: {
265
+ 50: string;
266
+ 100: string;
267
+ 200: string;
268
+ 300: string;
269
+ 400: string;
270
+ 500: string;
271
+ 600: string;
272
+ 700: string;
273
+ 800: string;
274
+ 900: string;
275
+ 950: string;
276
+ };
277
+ rose: {
278
+ 50: string;
279
+ 100: string;
280
+ 200: string;
281
+ 300: string;
282
+ 400: string;
283
+ 500: string;
284
+ 600: string;
285
+ 700: string;
286
+ 800: string;
287
+ 900: string;
288
+ 950: string;
289
+ };
290
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useLanguage(): {
2
+ languageRef: import("vue").WritableComputedRef<string, string>;
3
+ isEnglishRef: import("vue").WritableComputedRef<boolean, boolean>;
4
+ };
@@ -0,0 +1,6 @@
1
+ import { type ColorMode } from "../store/globalAppDataStore.ts";
2
+ export declare function useTheme(): {
3
+ isDarkRef: import("vue").WritableComputedRef<boolean, boolean>;
4
+ colorRef: import("vue").WritableComputedRef<ColorMode, ColorMode>;
5
+ initTheme: () => void;
6
+ };
@@ -0,0 +1,20 @@
1
+ export type ColorMode = "dark" | "light" | "red";
2
+ export declare const useGlobalAppDataStore: import("pinia").StoreDefinition<"globalAppData", Pick<{
3
+ colorMode: import("vue").Ref<ColorMode, ColorMode>;
4
+ isDark: import("vue").ComputedRef<boolean>;
5
+ color: import("vue").ComputedRef<ColorMode>;
6
+ toggleTheme: () => void;
7
+ manuallySwitchThemeColor: (mode: ColorMode) => void;
8
+ }, "colorMode">, Pick<{
9
+ colorMode: import("vue").Ref<ColorMode, ColorMode>;
10
+ isDark: import("vue").ComputedRef<boolean>;
11
+ color: import("vue").ComputedRef<ColorMode>;
12
+ toggleTheme: () => void;
13
+ manuallySwitchThemeColor: (mode: ColorMode) => void;
14
+ }, "color" | "isDark">, Pick<{
15
+ colorMode: import("vue").Ref<ColorMode, ColorMode>;
16
+ isDark: import("vue").ComputedRef<boolean>;
17
+ color: import("vue").ComputedRef<ColorMode>;
18
+ toggleTheme: () => void;
19
+ manuallySwitchThemeColor: (mode: ColorMode) => void;
20
+ }, "toggleTheme" | "manuallySwitchThemeColor">>;
@@ -0,0 +1 @@
1
+ export declare function generateRandomUuid(): string;