cic-kit 0.0.12 → 0.0.15

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 (78) hide show
  1. package/dist/cic-kit.css +1 -1
  2. package/dist/cmp/Accordion/Accordion.vue.d.ts +25 -0
  3. package/dist/cmp/Avatar/Avatar.vue.d.ts +23 -0
  4. package/dist/cmp/Avatar/AvatarUser.d.ts +51 -0
  5. package/dist/cmp/Avatar/AvatarUserCmp.vue.d.ts +7 -0
  6. package/dist/cmp/Avatar/AvatarUserEditor.vue.d.ts +3 -0
  7. package/dist/cmp/Avatar/AvatarUserPicker.vue.d.ts +16 -0
  8. package/dist/cmp/Avatar/AvatarUserPickerGender.vue.d.ts +18 -0
  9. package/dist/cmp/Btn/Btn.vue.d.ts +34 -0
  10. package/dist/cmp/Btn/BtnGoogleLogin.vue.d.ts +3 -0
  11. package/dist/cmp/Btn/PwaUpdateButton.vue.d.ts +3 -0
  12. package/dist/cmp/Container/ContainerSideTabs.vue.d.ts +120 -0
  13. package/dist/cmp/Container/ContainerSubSettings.vue.d.ts +17 -0
  14. package/dist/cmp/Container/SideTabCmp.vue.d.ts +59 -0
  15. package/dist/cmp/Container/SideTabs.d.ts +13 -0
  16. package/dist/cmp/Container/SideTabsList.vue.d.ts +46 -0
  17. package/dist/cmp/File/FirebaseStrorage.d.ts +61 -0
  18. package/dist/cmp/File/ImgUploader.vue.d.ts +34 -0
  19. package/dist/cmp/Logo/Logo.vue.d.ts +11 -0
  20. package/dist/cmp/Modal/Modal.vue.d.ts +85 -0
  21. package/dist/cmp/ModalDev/HomeViewDev.vue.d.ts +3 -0
  22. package/dist/cmp/ModalDev/ModalDev.vue.d.ts +26 -0
  23. package/dist/cmp/ModalDev/view/AppConfigViewDev.vue.d.ts +3 -0
  24. package/dist/cmp/ModalDev/view/FireStoreDevView.vue.d.ts +7 -0
  25. package/dist/cmp/ModalDev/view/LSViewDev.vue.d.ts +3 -0
  26. package/dist/cmp/ModalDev/view/MsgPushViewDev.vue.d.ts +3 -0
  27. package/dist/cmp/RegisterSW.vue.d.ts +13 -0
  28. package/dist/cmp/checkVersionPkg/checkVersionPkg.d.ts +1 -0
  29. package/dist/cmp/firebase/FirestoreStore.d.ts +2 -2
  30. package/dist/cmp/form-validator/InputValueParser.d.ts +1 -1
  31. package/dist/cmp/header/useChangeHeader.d.ts +2 -0
  32. package/dist/cmp/header/useHeaderExtra.d.ts +2 -0
  33. package/dist/cmp/header/useHideHeader.d.ts +1 -0
  34. package/dist/cmp/input/Gender/FieldGender.vue.d.ts +31 -0
  35. package/dist/cmp/input/PhoneNumber/FieldPhoneNumber.vue.d.ts +37 -0
  36. package/dist/cmp/input/Tag/ColorTag.d.ts +6 -0
  37. package/dist/cmp/input/Tag/ColorTagInput.vue.d.ts +37 -0
  38. package/dist/cmp/input/Tag/TagInput.vue.d.ts +27 -0
  39. package/dist/cmp/input/Tag/colorTagDB/foodPreferenceTags.d.ts +2 -0
  40. package/dist/cmp/input/Text/InputField.vue.d.ts +34 -0
  41. package/dist/cmp/input/Tiptap/TiptapField.vue.d.ts +15 -0
  42. package/dist/cmp/layout/FooterApp.vue.d.ts +3 -0
  43. package/dist/cmp/layout/HeaderApp.vue.d.ts +3 -0
  44. package/dist/cmp/layout/ToolbarTab.vue.d.ts +10 -0
  45. package/dist/cmp/loading/LoaderCmp.vue.d.ts +3 -0
  46. package/dist/cmp/loading/LoadingText.vue.d.ts +3 -0
  47. package/dist/cmp/loading/loadingController.d.ts +8 -0
  48. package/dist/cmp/offCanvas/Offcanvas.vue.d.ts +45 -0
  49. package/dist/cmp/offCanvas/OffcanvasCmp.vue.d.ts +78 -0
  50. package/dist/cmp/offCanvas/useSetOffCanvasTabs.d.ts +2 -0
  51. package/dist/cmp/testUtility/delay.d.ts +5 -0
  52. package/dist/cmp/testUtility/generaColore.d.ts +6 -0
  53. package/dist/cmp/testUtility/generaDate.d.ts +55 -0
  54. package/dist/cmp/testUtility/generaDatiPersonali.d.ts +35 -0
  55. package/dist/cmp/testUtility/generaNumero.d.ts +5 -0
  56. package/dist/cmp/testUtility/generaTesto.d.ts +17 -0
  57. package/dist/cmp/testUtility/pickRandom.d.ts +5 -0
  58. package/dist/cmp/toast/ToastCmp.vue.d.ts +3 -0
  59. package/dist/cmp/toolbar/useChangeToolbar.d.ts +3 -0
  60. package/dist/cmp/useDebounce/useDebounce.d.ts +1 -0
  61. package/dist/cmp/viewer/ObjectDataViewer.vue.d.ts +6 -0
  62. package/dist/defaultViews/ErrorView.vue.d.ts +7 -0
  63. package/dist/defaultViews/user/LoginView.vue.d.ts +3 -0
  64. package/dist/defaultViews/user/RegisterView.vue.d.ts +3 -0
  65. package/dist/defaultViews/user/ResetPasswordView.vue.d.ts +3 -0
  66. package/dist/defaultViews/user/UserView.vue.d.ts +3 -0
  67. package/dist/defaultViews/user/usersettings/UserFormPersonalInfo.vue.d.ts +3 -0
  68. package/dist/defaultViews/user/usersettings/UserFormPersonalInfoTest.vue.d.ts +3 -0
  69. package/dist/index.cjs +20 -20
  70. package/dist/index.d.ts +9 -6
  71. package/dist/index.mjs +9752 -6081
  72. package/dist/models/AppConfig.d.ts +18 -0
  73. package/dist/models/UserPublic.d.ts +27 -0
  74. package/dist/stores/appConfigStore.d.ts +9 -0
  75. package/dist/stores/currentUserStore.d.ts +189 -0
  76. package/dist/stores/store.d.ts +233 -0
  77. package/dist/stores/userPublicStore.d.ts +524 -0
  78. package/package.json +3 -2
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { type Component } from 'vue';
2
+ import type { AnyFirestoreStoreReactive } from '../firebase/FirestoreStore';
3
+ type TabBase = {
4
+ name: string;
5
+ icon: string;
6
+ justIcon?: true;
7
+ };
8
+ type TabWithComponent = TabBase & {
9
+ component: Component;
10
+ obj?: never;
11
+ store?: never;
12
+ };
13
+ type TabWithObj = TabBase & {
14
+ obj: {};
15
+ component?: never;
16
+ store?: never;
17
+ };
18
+ type TabWithFirestore = TabBase & {
19
+ store: AnyFirestoreStoreReactive;
20
+ component?: never;
21
+ obj?: never;
22
+ };
23
+ export type Tab = TabWithComponent | TabWithObj | TabWithFirestore;
24
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { AnyFirestoreStoreReactive } from '../../firebase/FirestoreStore';
2
+ type __VLS_Props = {
3
+ store: AnyFirestoreStoreReactive;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare var __VLS_12: {};
2
+ type __VLS_Slots = {} & {
3
+ changelog?: (props: typeof __VLS_12) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1 @@
1
+ export default function checkVersionPkg(): Promise<void>;
@@ -66,7 +66,7 @@ export declare class FirestoreStore<M extends FirestoreModel<D>, D extends {
66
66
  * @returns Array ordinato in ordine discendente (più recente prima)
67
67
  */
68
68
  itemsArrayOrderedBy(option: 'createdAt' | 'updatedAt' | 'deleteAt', deleted?: boolean): M[];
69
- findItemsById(id: string | false | null | undefined): M;
69
+ findItemsById(id: string | false | null | undefined): M | undefined;
70
70
  get(opts?: GetProps): Promise<Record<string, M>>;
71
71
  /**
72
72
  * Legge doc per ids usando `documentId() in (...)`
@@ -96,7 +96,7 @@ export declare class FirestoreStore<M extends FirestoreModel<D>, D extends {
96
96
  id?: string;
97
97
  }, options?: Omit<OptionFireModel, 'touchUpdate'>): Promise<M>;
98
98
  delete(id: string, opts?: Omit<OptionFireModel, 'touchUpdate'>): Promise<void>;
99
- findByUid(uid: string): M;
99
+ findByUid(uid: string): M | undefined;
100
100
  /**
101
101
  * Legge un singolo documento da Firestore e aggiorna items[id].
102
102
  * Ritorna l'istanza oppure undefined se non esiste.
@@ -20,6 +20,6 @@ export declare function valueToStringArray(v: unknown): string[];
20
20
  /** Normalizza value per <select> (evita undefined) */
21
21
  export declare function valueToSelect<T extends string>(v: unknown, allowed?: readonly T[]): T | '';
22
22
  /** Timestamp | Date → locale string breve */
23
- export declare function timestampToLocale(v: Timestamp | Date | null | undefined, locale?: any): string;
23
+ export declare function timestampToLocale(v: Timestamp | Date | null | undefined, locale?: undefined): string;
24
24
  /** Stringa vuota → placeholder visivo */
25
25
  export declare function emptyToDash(v: unknown): string;
@@ -0,0 +1,2 @@
1
+ import type { RouteLocationRaw } from 'vue-router';
2
+ export declare function useChangeHeader(title: string, backTo?: RouteLocationRaw, logoUrl?: string): void;
@@ -0,0 +1,2 @@
1
+ import { type Component } from 'vue';
2
+ export declare function useHeaderExtra(component?: Component | null, props?: Record<string, unknown>): void;
@@ -0,0 +1 @@
1
+ export declare function useHideHeader(): void;
@@ -0,0 +1,31 @@
1
+ import { type Component } from 'vue';
2
+ import type { FormValidator } from '../../form-validator/FormValidator';
3
+ import type { Gender } from './Gender';
4
+ type __VLS_Props = {
5
+ modelValue: Gender;
6
+ field: string;
7
+ fv: FormValidator<any>;
8
+ label?: string | boolean | Component;
9
+ placeholder?: string;
10
+ errors?: boolean;
11
+ disabled?: boolean;
12
+ readonly?: boolean;
13
+ required?: boolean;
14
+ class?: any;
15
+ style?: any;
16
+ classLabel?: any;
17
+ };
18
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
+ "update:modelValue": (v: Gender) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ "onUpdate:modelValue"?: ((v: Gender) => any) | undefined;
22
+ }>, {
23
+ disabled: boolean;
24
+ label: string | boolean | Component;
25
+ placeholder: string;
26
+ errors: boolean;
27
+ readonly: boolean;
28
+ required: boolean;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import type { FormValidator } from '../../form-validator/FormValidator';
2
+ import type { PhoneNumber } from './PhoneNumber';
3
+ type __VLS_Props = {
4
+ modelValue: PhoneNumber;
5
+ field: string;
6
+ fv: FormValidator<any>;
7
+ label?: string | boolean;
8
+ placeholder?: string;
9
+ placeholderPrefix?: string;
10
+ errors?: boolean;
11
+ disabled?: boolean;
12
+ readonly?: boolean;
13
+ class?: any;
14
+ style?: any;
15
+ disabledPrefix?: boolean;
16
+ disabledNumber?: boolean;
17
+ readonlyPrefix?: boolean;
18
+ readonlyNumber?: boolean;
19
+ classPrefix?: any;
20
+ classNumber?: any;
21
+ stylePrefix?: any;
22
+ styleNumber?: any;
23
+ };
24
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
25
+ "update:modelValue": (v: PhoneNumber) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ "onUpdate:modelValue"?: ((v: PhoneNumber) => any) | undefined;
28
+ }>, {
29
+ disabled: boolean;
30
+ label: string | boolean;
31
+ placeholder: string;
32
+ errors: boolean;
33
+ readonly: boolean;
34
+ placeholderPrefix: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export type ColorTag = {
2
+ label: string;
3
+ color: string;
4
+ };
5
+ export declare const toColorTag: (it: unknown) => ColorTag | null;
6
+ export declare const toColorTagArray: (x: unknown) => ColorTag[];
@@ -0,0 +1,37 @@
1
+ import type { ColorTag } from './ColorTag';
2
+ export type OnChangeColorTag = 'add' | 'edit' | 'delete';
3
+ type __VLS_Props = {
4
+ modelValue?: ColorTag[];
5
+ suggestions?: ColorTag[];
6
+ placeholder?: string;
7
+ allowDuplicates?: boolean;
8
+ caseSensitive?: boolean;
9
+ maxTags?: number | null;
10
+ /** Colore assegnato ai tag creati da input libero */
11
+ defaultColor?: string;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ add: (tag: ColorTag) => any;
15
+ remove: (tag: ColorTag) => any;
16
+ "update:modelValue": (value: ColorTag[]) => any;
17
+ change: (type: OnChangeColorTag, changedTag: ColorTag, value: ColorTag[]) => any;
18
+ newSuggestion: (tag: ColorTag) => any;
19
+ deleteSuggestion: (tag: ColorTag) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onAdd?: ((tag: ColorTag) => any) | undefined;
22
+ onRemove?: ((tag: ColorTag) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: ColorTag[]) => any) | undefined;
24
+ onChange?: ((type: OnChangeColorTag, changedTag: ColorTag, value: ColorTag[]) => any) | undefined;
25
+ onNewSuggestion?: ((tag: ColorTag) => any) | undefined;
26
+ onDeleteSuggestion?: ((tag: ColorTag) => any) | undefined;
27
+ }>, {
28
+ modelValue: ColorTag[];
29
+ placeholder: string;
30
+ suggestions: ColorTag[];
31
+ allowDuplicates: boolean;
32
+ caseSensitive: boolean;
33
+ maxTags: number | null;
34
+ defaultColor: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ modelValue: string[];
3
+ suggestions?: string[];
4
+ placeholder?: string;
5
+ allowDuplicates?: boolean;
6
+ caseSensitive?: boolean;
7
+ maxTags?: number | null;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ add: (tag: string) => any;
11
+ remove: (tag: string) => any;
12
+ "update:modelValue": (value: string[]) => any;
13
+ change: (value: string[]) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onAdd?: ((tag: string) => any) | undefined;
16
+ onRemove?: ((tag: string) => any) | undefined;
17
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
18
+ onChange?: ((value: string[]) => any) | undefined;
19
+ }>, {
20
+ placeholder: string;
21
+ suggestions: string[];
22
+ allowDuplicates: boolean;
23
+ caseSensitive: boolean;
24
+ maxTags: number | null;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { ColorTag } from "../ColorTag";
2
+ export declare const foodPreferenceTags: ColorTag[];
@@ -0,0 +1,34 @@
1
+ import { type Component } from 'vue';
2
+ import type { FormValidator } from '../../form-validator/FormValidator';
3
+ type __VLS_Props = {
4
+ modelValue: string | number;
5
+ field: string;
6
+ fv: FormValidator<any>;
7
+ label?: string | boolean | Component;
8
+ placeholder?: string;
9
+ errors?: boolean;
10
+ disabled?: boolean;
11
+ readonly?: boolean;
12
+ required?: boolean;
13
+ class?: any;
14
+ style?: any;
15
+ classLabel?: any;
16
+ type?: string;
17
+ autocomplete?: string;
18
+ inputmode?: "email" | "text" | "search" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined;
19
+ };
20
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ "update:modelValue": (v: string | number) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ "onUpdate:modelValue"?: ((v: string | number) => any) | undefined;
24
+ }>, {
25
+ disabled: boolean;
26
+ label: string | boolean | Component;
27
+ type: string;
28
+ placeholder: string;
29
+ errors: boolean;
30
+ readonly: boolean;
31
+ required: boolean;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
@@ -0,0 +1,15 @@
1
+ interface Props {
2
+ modelValue: string;
3
+ placeholder?: string;
4
+ toolbarStickyOn?: 'top' | 'bottom';
5
+ }
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (v: string) => any;
8
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
+ "onUpdate:modelValue"?: ((v: string) => any) | undefined;
10
+ }>, {
11
+ modelValue: string;
12
+ placeholder: string;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { ToolbarTab } from '../../stores/store';
2
+ type __VLS_Props = {
3
+ tab: ToolbarTab;
4
+ tabName: string;
5
+ i: number;
6
+ active: boolean;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export declare const loading: {
2
+ state: boolean;
3
+ msg: string;
4
+ defaultMsg: string[];
5
+ on: (msg?: string) => void;
6
+ off: () => void;
7
+ run: <T>(fn: () => T | Promise<T>, msg?: string) => Promise<T>;
8
+ };
@@ -0,0 +1,45 @@
1
+ import { type Component, type PropType } from "vue";
2
+ type OffcanvasHeader = Record<'title', string> | Component;
3
+ declare var __VLS_6: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_6) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ modelValue: {
9
+ type: BooleanConstructor;
10
+ required: true;
11
+ };
12
+ header: {
13
+ type: PropType<OffcanvasHeader>;
14
+ required: false;
15
+ };
16
+ id: {
17
+ type: StringConstructor;
18
+ requred: boolean;
19
+ };
20
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ "update:modelValue": (v: boolean) => any;
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ modelValue: {
24
+ type: BooleanConstructor;
25
+ required: true;
26
+ };
27
+ header: {
28
+ type: PropType<OffcanvasHeader>;
29
+ required: false;
30
+ };
31
+ id: {
32
+ type: StringConstructor;
33
+ requred: boolean;
34
+ };
35
+ }>> & Readonly<{
36
+ "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
37
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
38
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,78 @@
1
+ import type { BtnColor, BtnVariant } from "../Btn/typeBtn";
2
+ type Placement = "start" | "end" | "top" | "bottom";
3
+ type Backdrop = boolean | "static";
4
+ type __VLS_Props = {
5
+ /** v-model: apre/chiude l'offcanvas */
6
+ modelValue?: boolean | string | number;
7
+ /** Titolo di default se non usi lo slot header */
8
+ title?: string;
9
+ /** start | end | top | bottom (default end) */
10
+ placement?: Placement;
11
+ /** Permette scroll body mentre è aperto (default false) */
12
+ scroll?: boolean;
13
+ /** Backdrop: true/false/'static' (default true) */
14
+ backdrop?: Backdrop;
15
+ /** Chiudi con ESC (default true) */
16
+ keyboard?: boolean;
17
+ /** Teleport destination (default 'body') */
18
+ teleportTo?: string;
19
+ /** ID opzionale del root */
20
+ id?: string;
21
+ /** Nasconde la X in header (se si usa header di default) */
22
+ hideHeaderClose?: boolean;
23
+ /** Footer default (opzionale) */
24
+ okText?: string;
25
+ cancelText?: string;
26
+ okClass?: string;
27
+ cancelClass?: string;
28
+ okColor?: BtnColor;
29
+ cancelColor?: BtnColor;
30
+ okVariant?: BtnVariant;
31
+ cancelVariant?: BtnVariant;
32
+ closeOnOk?: boolean;
33
+ onOk?: () => void | Promise<void>;
34
+ };
35
+ declare function open(): void;
36
+ declare function close(): void;
37
+ declare function toggle(): void;
38
+ declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
39
+ type __VLS_Slots = {} & {
40
+ header?: (props: typeof __VLS_7) => any;
41
+ } & {
42
+ default?: (props: typeof __VLS_9) => any;
43
+ } & {
44
+ footer?: (props: typeof __VLS_11) => any;
45
+ };
46
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
47
+ open: typeof open;
48
+ close: typeof close;
49
+ toggle: typeof toggle;
50
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
51
+ close: () => any;
52
+ "update:modelValue": (v: boolean) => any;
53
+ hidden: () => any;
54
+ show: () => any;
55
+ hide: () => any;
56
+ cancel: () => any;
57
+ shown: () => any;
58
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
59
+ onClose?: (() => any) | undefined;
60
+ "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
61
+ onHidden?: (() => any) | undefined;
62
+ onShow?: (() => any) | undefined;
63
+ onHide?: (() => any) | undefined;
64
+ onCancel?: (() => any) | undefined;
65
+ onShown?: (() => any) | undefined;
66
+ }>, {
67
+ scroll: boolean;
68
+ closeOnOk: boolean;
69
+ placement: Placement;
70
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
71
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
72
+ declare const _default: typeof __VLS_export;
73
+ export default _default;
74
+ type __VLS_WithSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };
@@ -0,0 +1,2 @@
1
+ import { type OffcanvasTab } from '../../stores/store';
2
+ export declare function useSetOffCanvasTabs(tabs: OffcanvasTab[]): void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * rallenta qualche function async per test.
3
+ * @returns void.
4
+ */
5
+ export declare function delay(millis: number): Promise<unknown>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Genera un colore esadecimale casuale (ad esempio: #A3B1F2).
3
+ * * @returns {string} Il codice colore esadecimale, incluso il '#'.
4
+ */
5
+ export declare function generaColoreEsadecimale(): string;
6
+ export declare function generaColoreDarkenHex(hex: string, percent?: number): string;
@@ -0,0 +1,55 @@
1
+ import { Timestamp } from 'firebase/firestore';
2
+ /** Range default: ultimi 365 giorni fino ad adesso */
3
+ export declare const _defaultRange: {
4
+ from: () => Date;
5
+ to: () => Date;
6
+ };
7
+ type DateRangeInput = {
8
+ from?: Date | Timestamp | string | number;
9
+ to?: Date | Timestamp | string | number;
10
+ };
11
+ /** Date casuale in un range (default: ultimi 365 giorni → oggi) */
12
+ export declare function dateCasuale(range?: DateRangeInput): Date;
13
+ /** Timestamp Firestore casuale in un range */
14
+ export declare function timestampCasuale(range?: DateRangeInput): Timestamp;
15
+ /** Milliseconds (epoch) casuali in un range */
16
+ export declare function msCasuali(range?: DateRangeInput): number;
17
+ /** 'YYYY-MM-DD' da una Date */
18
+ export declare function dateToInputDate(d: Date): string;
19
+ /** 'HH:mm' da una Date */
20
+ export declare function dateToInputTime(d: Date): string;
21
+ /** 'YYYY-MM-DDTHH:mm' da una Date (input datetime-local) */
22
+ export declare function dateToInputDateTimeLocal(d: Date): string;
23
+ /** 'YYYY-MM-DD' casuale (range su giorno, l’ora viene ignorata) */
24
+ export declare function inputDateCasuale(range?: DateRangeInput): string;
25
+ /** 'HH:mm' casuale (range opzionale su minuti/ore) */
26
+ export declare function inputTimeCasuale(opts?: {
27
+ hourFrom?: number;
28
+ hourTo?: number;
29
+ minuteStep?: number;
30
+ }): string;
31
+ /** 'YYYY-MM-DDTHH:mm' casuale, con range data e opzioni ora */
32
+ export declare function inputDateTimeLocalCasuale(range?: DateRangeInput, optsTime?: {
33
+ hourFrom?: number;
34
+ hourTo?: number;
35
+ minuteStep?: number;
36
+ }): string;
37
+ /** Date casuale negli ultimi N giorni (default 30) */
38
+ export declare function dateCasualeUltimiGiorni(days?: number): Date;
39
+ /** Date casuale nei prossimi N giorni (default 30) */
40
+ export declare function dateCasualeProssimiGiorni(days?: number): Date;
41
+ /** Timestamp casuale negli ultimi N giorni */
42
+ export declare function timestampCasualeUltimiGiorni(days?: number): Timestamp;
43
+ /** Timestamp casuale nei prossimi N giorni */
44
+ export declare function timestampCasualeProssimiGiorni(days?: number): Timestamp;
45
+ /** Crea un range “giorno intero” (00:00 → 23:59:59.999) da una data */
46
+ export declare function rangeGiorno(d: Date | Timestamp | string | number): {
47
+ from: Date;
48
+ to: Date;
49
+ };
50
+ /** Normalizza e ritorna un range valido (con default) */
51
+ export declare function normalizeRange(range?: DateRangeInput): {
52
+ from: Date;
53
+ to: Date;
54
+ };
55
+ export {};
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Utility per la generazione di dati anagrafici fittizi (mock).
3
+ *
4
+ * - generaNome(genere?: 'm' | 'f'):
5
+ * restituisce un nome casuale. Se il genere è specificato, il nome viene scelto
6
+ * dalla lista maschile o femminile; se omesso, il nome è scelto da entrambe.
7
+ *
8
+ * - generaCognome():
9
+ * restituisce un cognome italiano casuale da una lista predefinita.
10
+ *
11
+ * - generaFullName(genere?: 'm' | 'f'):
12
+ * restituisce un nome completo nel formato "Nome Cognome", combinando
13
+ * generaNome e generaCognome; il genere è opzionale e influenza solo il nome.
14
+ *
15
+ * - generaEmail(nome?: string, cognome?: string, dominio?: string):
16
+ * genera un indirizzo email realistico. Se nome e cognome sono forniti,
17
+ * l’email viene costruita nel formato "nome.cognome@dominio".
18
+ * In assenza di nome e/o cognome, vengono generati automaticamente.
19
+ * Il dominio è opzionale e di default viene usato "example.com".
20
+ *
21
+ */
22
+ import type { Gender } from "../input/Gender/Gender";
23
+ import type { PhoneNumber } from "../input/PhoneNumber/PhoneNumber";
24
+ export declare const _nomiM: string[];
25
+ export declare const _nomiF: string[];
26
+ export declare function generaNome(genere?: 'm' | 'f'): string;
27
+ export declare const _cognomi: string[];
28
+ export declare function generaCognome(): string;
29
+ export declare function generaFullName(genere?: 'm' | 'f'): string;
30
+ export declare const _dominio: string[];
31
+ export declare function generaEmail(nome?: string, cognome?: string): string;
32
+ export declare function generaIndirizzo(): string;
33
+ export declare function generaNumeroTelefono(formato?: 'mobile' | 'fisso'): string;
34
+ export declare function generaPhoneNumber(): PhoneNumber;
35
+ export declare function generaGender(): Gender;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Genera un numero intero casuale tra min e max (inclusi).
3
+ * Default: 0–100
4
+ */
5
+ export declare function randomInt(min?: number, max?: number): number;
@@ -0,0 +1,17 @@
1
+ export declare const _testoSorgente = "Comportatevi sempre in modo che il vostro capo si senta superiore a chi lo circonda. Per compiacerlo e far su di lui buona impressione non dovete eccedere nel mostrare capacit\u00E0 o talento, in questo modo rischiate di ottenere il contrario: ispirare timore e insicurezza.\nFate s\u00EC che i superiori appaiano pi\u00F9 brillanti di quanto sono in realt\u00E0 e raggiungerete le vette del potere.\nTutti hanno delle insicurezze: quando ci si espone e si mostrano agli altri le proprie capacit\u00E0 \u00E8 facile suscitare risentimento, invidia e altre manifestazioni di insicurezza; \u00E8 normale e non si pu\u00F2 passare la vita a preoccuparsi delle meschinit\u00E0 altrui, ma con i propri superiori \u00E8 diverso, in presenza del potere offuscare l\u2019immagine del proprio capo \u00E8 l\u2019errore peggiore che si possa commettere.\nL\u2019uomo ha un profondo bisogno di credere in qualcosa. Diventate il punto focale di questo desiderio dando agli altri una causa, una nuova fede da seguire. Rimanete sul vago con le parole, ma siate prodighi di promesse, insistendo sul valore della razionalit\u00E0 e del pensiero conseguente. Date ai vostri nuovi discepoli dei rituali da seguire, chiedete che facciano sacrifici in vostro nome. In assenza di una religione organizzata o di grandi cause, questo sistema fideistico vi conferir\u00E0 un potere inaspettato.\nLa ciarlataneria scientifica, ovvero come creare un culto in cinque facili mosse.\nSe cercate un metodo per conquistare il massimo del potere con il minimo sforzo, vi accorgerete che uno dei pi\u00F9 efficaci \u00E8 quello di crearsi un seguito di natura carismatica.\nAvere un grande seguito offrir\u00E0 incommensurabili opportunit\u00E0 alla capacit\u00E0 di illudere la gente, i vostri seguaci non solo vi adoreranno ma vi proteggeranno dai vostri nemici e si assumeranno volentieri il compito di reclutare nuovi adepti.\nQuesto tipo di potere vi trasporter\u00E0 in un nuovo mondo, non dovrete pi\u00F9 lottare o ricorrere a sotterfugi per imporre la vostra volont\u00E0, vi adorano e per loro niente di quel che fate \u00E8 sbagliato.\nCrearsi un seguito non \u00E8 un\u2019impresa titanica: \u00E8 semplice, tutti gli esseri umani hanno un disperato bisogno di credere in qualcosa e questo li rende estremamente suggestionabili; semplicemente non possono sopportare il dubbio, o il senso di vuoto che nasce dalla mancanza di qualcosa in cui credere per periodi troppo prolungati.";
2
+ /**
3
+ * 1. Genera una stringa casuale da un testo sorgente fino a raggiungere
4
+ * la lunghezza massima di caratteri specificata.
5
+ * @param {number} maxLunghezzaCaratteri - La lunghezza massima in caratteri della stringa risultante.
6
+ * @param {string} testoSorgente - Il testo lungo da cui ricavare le parole.
7
+ * @returns {string} La stringa di parole casuali generata.
8
+ */
9
+ export declare function testoXCaratteri(maxLunghezzaCaratteri: number, testoSorgente?: string): string;
10
+ /**
11
+ * 2. Genera una stringa casuale da un testo sorgente fino a raggiungere
12
+ * il numero massimo di parole specificato.
13
+ * @param {number} maxQuantitaParole - Il numero massimo di parole da includere.
14
+ * @param {string} testoSorgente - Il testo lungo da cui ricavare le parole.
15
+ * @returns {string} La stringa di parole casuali generata.
16
+ */
17
+ export declare function testoXParole(maxQuantitaParole: number, testoSorgente?: string): string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Ritorna un valore casuale da un array.
3
+ * È possibile escludere uno specifico valore.
4
+ */
5
+ export declare function pickRandom<T>(items: readonly T[], exclude?: T): T | undefined;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { type ToolbarState, type ToolbarTabName } from '../../stores/store';
2
+ export declare function useChangeToolbar(type: ToolbarState['type'], currentTab?: ToolbarTabName): void;
3
+ export declare function setToolbarTab(currentTab?: ToolbarTabName): void;