cic-kit 0.0.11 → 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 (84) hide show
  1. package/README.md +5 -3
  2. package/dist/cic-kit.css +1 -1
  3. package/dist/cmp/Accordion/Accordion.vue.d.ts +25 -0
  4. package/dist/cmp/Avatar/Avatar.vue.d.ts +23 -0
  5. package/dist/cmp/Avatar/AvatarUser.d.ts +51 -0
  6. package/dist/cmp/Avatar/AvatarUserCmp.vue.d.ts +7 -0
  7. package/dist/cmp/Avatar/AvatarUserEditor.vue.d.ts +3 -0
  8. package/dist/cmp/Avatar/AvatarUserPicker.vue.d.ts +16 -0
  9. package/dist/cmp/Avatar/AvatarUserPickerGender.vue.d.ts +18 -0
  10. package/dist/cmp/Btn/Btn.vue.d.ts +34 -0
  11. package/dist/cmp/Btn/BtnGoogleLogin.vue.d.ts +3 -0
  12. package/dist/cmp/Btn/PwaUpdateButton.vue.d.ts +3 -0
  13. package/dist/cmp/Container/ContainerSideTabs.vue.d.ts +120 -0
  14. package/dist/cmp/Container/ContainerSubSettings.vue.d.ts +17 -0
  15. package/dist/cmp/Container/SideTabCmp.vue.d.ts +59 -0
  16. package/dist/cmp/Container/SideTabs.d.ts +13 -0
  17. package/dist/cmp/Container/SideTabsList.vue.d.ts +46 -0
  18. package/dist/cmp/File/FirebaseStrorage.d.ts +61 -0
  19. package/dist/cmp/File/ImgUploader.vue.d.ts +34 -0
  20. package/dist/cmp/Logo/Logo.vue.d.ts +11 -0
  21. package/dist/cmp/Modal/Modal.vue.d.ts +85 -0
  22. package/dist/cmp/ModalDev/HomeViewDev.vue.d.ts +3 -0
  23. package/dist/cmp/ModalDev/ModalDev.vue.d.ts +26 -0
  24. package/dist/cmp/ModalDev/view/AppConfigViewDev.vue.d.ts +3 -0
  25. package/dist/cmp/ModalDev/view/FireStoreDevView.vue.d.ts +7 -0
  26. package/dist/cmp/ModalDev/view/LSViewDev.vue.d.ts +3 -0
  27. package/dist/cmp/ModalDev/view/MsgPushViewDev.vue.d.ts +3 -0
  28. package/dist/cmp/RegisterSW.vue.d.ts +13 -0
  29. package/dist/cmp/checkVersionPkg/checkVersionPkg.d.ts +1 -0
  30. package/dist/cmp/firebase/FirestoreStore.d.ts +2 -2
  31. package/dist/cmp/form-validator/InputValueParser.d.ts +1 -1
  32. package/dist/cmp/header/useChangeHeader.d.ts +2 -0
  33. package/dist/cmp/header/useHeaderExtra.d.ts +2 -0
  34. package/dist/cmp/header/useHideHeader.d.ts +1 -0
  35. package/dist/cmp/input/Gender/FieldGender.vue.d.ts +31 -0
  36. package/dist/cmp/input/PhoneNumber/FieldPhoneNumber.vue.d.ts +37 -0
  37. package/dist/cmp/input/Tag/ColorTag.d.ts +6 -0
  38. package/dist/cmp/input/Tag/ColorTagInput.vue.d.ts +37 -0
  39. package/dist/cmp/input/Tag/TagInput.vue.d.ts +27 -0
  40. package/dist/cmp/input/Tag/colorTagDB/foodPreferenceTags.d.ts +2 -0
  41. package/dist/cmp/input/Text/InputField.vue.d.ts +34 -0
  42. package/dist/cmp/input/Tiptap/TiptapField.vue.d.ts +15 -0
  43. package/dist/cmp/layout/FooterApp.vue.d.ts +3 -0
  44. package/dist/cmp/layout/HeaderApp.vue.d.ts +3 -0
  45. package/dist/cmp/layout/ToolbarTab.vue.d.ts +10 -0
  46. package/dist/cmp/loading/LoaderCmp.vue.d.ts +3 -0
  47. package/dist/cmp/loading/LoadingText.vue.d.ts +3 -0
  48. package/dist/cmp/loading/loadingController.d.ts +8 -0
  49. package/dist/cmp/offCanvas/Offcanvas.vue.d.ts +45 -0
  50. package/dist/cmp/offCanvas/OffcanvasCmp.vue.d.ts +78 -0
  51. package/dist/cmp/offCanvas/useSetOffCanvasTabs.d.ts +2 -0
  52. package/dist/cmp/testUtility/delay.d.ts +5 -0
  53. package/dist/cmp/testUtility/generaColore.d.ts +6 -0
  54. package/dist/cmp/testUtility/generaDate.d.ts +55 -0
  55. package/dist/cmp/testUtility/generaDatiPersonali.d.ts +35 -0
  56. package/dist/cmp/testUtility/generaNumero.d.ts +5 -0
  57. package/dist/cmp/testUtility/generaTesto.d.ts +17 -0
  58. package/dist/cmp/testUtility/pickRandom.d.ts +5 -0
  59. package/dist/cmp/toast/ToastCmp.vue.d.ts +3 -0
  60. package/dist/cmp/toolbar/useChangeToolbar.d.ts +3 -0
  61. package/dist/cmp/useDebounce/useDebounce.d.ts +1 -0
  62. package/dist/cmp/viewer/ObjectDataViewer.vue.d.ts +6 -0
  63. package/dist/defaultViews/ErrorView.vue.d.ts +7 -0
  64. package/dist/defaultViews/user/LoginView.vue.d.ts +3 -0
  65. package/dist/defaultViews/user/RegisterView.vue.d.ts +3 -0
  66. package/dist/defaultViews/user/ResetPasswordView.vue.d.ts +3 -0
  67. package/dist/defaultViews/user/UserView.vue.d.ts +3 -0
  68. package/dist/defaultViews/user/usersettings/UserFormPersonalInfo.vue.d.ts +3 -0
  69. package/dist/defaultViews/user/usersettings/UserFormPersonalInfoTest.vue.d.ts +3 -0
  70. package/dist/index.cjs +20 -20
  71. package/dist/index.d.ts +9 -6
  72. package/dist/index.mjs +9752 -6081
  73. package/dist/models/AppConfig.d.ts +18 -0
  74. package/dist/models/UserPublic.d.ts +27 -0
  75. package/dist/stores/appConfigStore.d.ts +9 -0
  76. package/dist/stores/currentUserStore.d.ts +189 -0
  77. package/dist/stores/store.d.ts +233 -0
  78. package/dist/stores/userPublicStore.d.ts +524 -0
  79. package/docs/Btn.md +26 -0
  80. package/docs/LS.md +27 -0
  81. package/docs/Modal.md +43 -0
  82. package/docs/_.md +0 -0
  83. package/docs/toast.md +29 -0
  84. package/package.json +4 -2
@@ -0,0 +1,524 @@
1
+ import { UserPublic, type UserPublicData } from '../models/UserPublic';
2
+ export declare const userPublicStore: {
3
+ items: Record<string, UserPublic>;
4
+ snapshotFnStop: (() => void) | null;
5
+ isFirstRun: boolean;
6
+ prevStartQuery: string | null;
7
+ readonly live: boolean;
8
+ readonly ref: {
9
+ readonly type: "collection";
10
+ readonly id: string;
11
+ readonly path: string;
12
+ readonly parent: {
13
+ readonly converter: {
14
+ toFirestore: {
15
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
16
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
17
+ };
18
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
19
+ } | null;
20
+ readonly type: "document";
21
+ readonly firestore: {
22
+ type: "firestore-lite" | "firestore";
23
+ readonly app: {
24
+ readonly name: string;
25
+ readonly options: {
26
+ apiKey?: string | undefined;
27
+ authDomain?: string | undefined;
28
+ databaseURL?: string | undefined;
29
+ projectId?: string | undefined;
30
+ storageBucket?: string | undefined;
31
+ messagingSenderId?: string | undefined;
32
+ appId?: string | undefined;
33
+ measurementId?: string | undefined;
34
+ };
35
+ automaticDataCollectionEnabled: boolean;
36
+ };
37
+ toJSON: () => object;
38
+ };
39
+ readonly id: string;
40
+ readonly path: string;
41
+ readonly parent: /*elided*/ any;
42
+ withConverter: {
43
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").DocumentReference<NewAppModelType, NewDbModelType>;
44
+ (converter: null): import("@firebase/firestore").DocumentReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
45
+ };
46
+ toJSON: () => object;
47
+ } | null;
48
+ withConverter: {
49
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").CollectionReference<NewAppModelType, NewDbModelType>;
50
+ (converter: null): import("@firebase/firestore").CollectionReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
51
+ };
52
+ readonly converter: {
53
+ toFirestore: {
54
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
55
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
56
+ };
57
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
58
+ } | null;
59
+ readonly firestore: {
60
+ type: "firestore-lite" | "firestore";
61
+ readonly app: {
62
+ readonly name: string;
63
+ readonly options: {
64
+ apiKey?: string | undefined;
65
+ authDomain?: string | undefined;
66
+ databaseURL?: string | undefined;
67
+ projectId?: string | undefined;
68
+ storageBucket?: string | undefined;
69
+ messagingSenderId?: string | undefined;
70
+ appId?: string | undefined;
71
+ measurementId?: string | undefined;
72
+ };
73
+ automaticDataCollectionEnabled: boolean;
74
+ };
75
+ toJSON: () => object;
76
+ };
77
+ };
78
+ readonly name: string;
79
+ readonly itemsActive: Record<string, UserPublic>;
80
+ readonly itemsDeleted: Record<string, UserPublic>;
81
+ readonly itemsArray: {
82
+ name: string;
83
+ surname: string;
84
+ email?: string | undefined;
85
+ birthDate?: string | undefined;
86
+ phoneNumber?: [prefix: string, number: string] | undefined;
87
+ photoURL?: string | undefined;
88
+ description?: string | undefined;
89
+ gender?: string | undefined;
90
+ toData: () => UserPublicData;
91
+ readonly fullName: string;
92
+ id: string;
93
+ createdAt: {
94
+ readonly seconds: number;
95
+ readonly nanoseconds: number;
96
+ toDate: () => Date;
97
+ toMillis: () => number;
98
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
99
+ toString: () => string;
100
+ toJSON: () => {
101
+ seconds: number;
102
+ nanoseconds: number;
103
+ type: string;
104
+ };
105
+ valueOf: () => string;
106
+ };
107
+ updatedAt: {
108
+ readonly seconds: number;
109
+ readonly nanoseconds: number;
110
+ toDate: () => Date;
111
+ toMillis: () => number;
112
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
113
+ toString: () => string;
114
+ toJSON: () => {
115
+ seconds: number;
116
+ nanoseconds: number;
117
+ type: string;
118
+ };
119
+ valueOf: () => string;
120
+ };
121
+ deleteAt: {
122
+ readonly seconds: number;
123
+ readonly nanoseconds: number;
124
+ toDate: () => Date;
125
+ toMillis: () => number;
126
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
127
+ toString: () => string;
128
+ toJSON: () => {
129
+ seconds: number;
130
+ nanoseconds: number;
131
+ type: string;
132
+ };
133
+ valueOf: () => string;
134
+ } | null;
135
+ readonly ref: {
136
+ readonly converter: {
137
+ toFirestore: {
138
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
139
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
140
+ };
141
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
142
+ } | null;
143
+ readonly type: "document";
144
+ readonly firestore: {
145
+ type: "firestore-lite" | "firestore";
146
+ readonly app: {
147
+ readonly name: string;
148
+ readonly options: {
149
+ apiKey?: string | undefined;
150
+ authDomain?: string | undefined;
151
+ databaseURL?: string | undefined;
152
+ projectId?: string | undefined;
153
+ storageBucket?: string | undefined;
154
+ messagingSenderId?: string | undefined;
155
+ appId?: string | undefined;
156
+ measurementId?: string | undefined;
157
+ };
158
+ automaticDataCollectionEnabled: boolean;
159
+ };
160
+ toJSON: () => object;
161
+ };
162
+ readonly id: string;
163
+ readonly path: string;
164
+ readonly parent: {
165
+ readonly type: "collection";
166
+ readonly id: string;
167
+ readonly path: string;
168
+ readonly parent: /*elided*/ any | null;
169
+ withConverter: {
170
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").CollectionReference<NewAppModelType, NewDbModelType>;
171
+ (converter: null): import("@firebase/firestore").CollectionReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
172
+ };
173
+ readonly converter: {
174
+ toFirestore: {
175
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
176
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
177
+ };
178
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
179
+ } | null;
180
+ readonly firestore: {
181
+ type: "firestore-lite" | "firestore";
182
+ readonly app: {
183
+ readonly name: string;
184
+ readonly options: {
185
+ apiKey?: string | undefined;
186
+ authDomain?: string | undefined;
187
+ databaseURL?: string | undefined;
188
+ projectId?: string | undefined;
189
+ storageBucket?: string | undefined;
190
+ messagingSenderId?: string | undefined;
191
+ appId?: string | undefined;
192
+ measurementId?: string | undefined;
193
+ };
194
+ automaticDataCollectionEnabled: boolean;
195
+ };
196
+ toJSON: () => object;
197
+ };
198
+ };
199
+ withConverter: {
200
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").DocumentReference<NewAppModelType, NewDbModelType>;
201
+ (converter: null): import("@firebase/firestore").DocumentReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
202
+ };
203
+ toJSON: () => object;
204
+ };
205
+ onGetBeforeStoreSet: <U extends import("..").FirestoreModel<UserPublicData>>(instance: U) => Promise<U>;
206
+ save: ({ offlineAllow, touchUpdate, localSet }?: import("..").OptionFireModel) => Promise<void>;
207
+ update: (data: Partial<Omit<UserPublicData, "id">>, { offlineAllow, touchUpdate, localSet }?: import("..").OptionFireModel) => Promise<void>;
208
+ delete: (store: {
209
+ delete: (id: string, opts?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
210
+ }, opts?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
211
+ deleteJustOnline_NotLocalStore: ({ offlineAllow, localSet }?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
212
+ readonly isDeleted: boolean;
213
+ timestampbleProps: () => import("..").Timestampble;
214
+ touchUpdated: () => import("@firebase/firestore").Timestamp;
215
+ softDelete: (optionFireModel?: import("..").OptionFireModel) => Promise<void>;
216
+ restore: (optionFireModel?: import("..").OptionFireModel) => Promise<void>;
217
+ canLocalSave: (localSet?: boolean) => boolean;
218
+ localSet: (_delete?: boolean) => void;
219
+ }[];
220
+ readonly itemsActiveArray: {
221
+ name: string;
222
+ surname: string;
223
+ email?: string | undefined;
224
+ birthDate?: string | undefined;
225
+ phoneNumber?: [prefix: string, number: string] | undefined;
226
+ photoURL?: string | undefined;
227
+ description?: string | undefined;
228
+ gender?: string | undefined;
229
+ toData: () => UserPublicData;
230
+ readonly fullName: string;
231
+ id: string;
232
+ createdAt: {
233
+ readonly seconds: number;
234
+ readonly nanoseconds: number;
235
+ toDate: () => Date;
236
+ toMillis: () => number;
237
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
238
+ toString: () => string;
239
+ toJSON: () => {
240
+ seconds: number;
241
+ nanoseconds: number;
242
+ type: string;
243
+ };
244
+ valueOf: () => string;
245
+ };
246
+ updatedAt: {
247
+ readonly seconds: number;
248
+ readonly nanoseconds: number;
249
+ toDate: () => Date;
250
+ toMillis: () => number;
251
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
252
+ toString: () => string;
253
+ toJSON: () => {
254
+ seconds: number;
255
+ nanoseconds: number;
256
+ type: string;
257
+ };
258
+ valueOf: () => string;
259
+ };
260
+ deleteAt: {
261
+ readonly seconds: number;
262
+ readonly nanoseconds: number;
263
+ toDate: () => Date;
264
+ toMillis: () => number;
265
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
266
+ toString: () => string;
267
+ toJSON: () => {
268
+ seconds: number;
269
+ nanoseconds: number;
270
+ type: string;
271
+ };
272
+ valueOf: () => string;
273
+ } | null;
274
+ readonly ref: {
275
+ readonly converter: {
276
+ toFirestore: {
277
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
278
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
279
+ };
280
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
281
+ } | null;
282
+ readonly type: "document";
283
+ readonly firestore: {
284
+ type: "firestore-lite" | "firestore";
285
+ readonly app: {
286
+ readonly name: string;
287
+ readonly options: {
288
+ apiKey?: string | undefined;
289
+ authDomain?: string | undefined;
290
+ databaseURL?: string | undefined;
291
+ projectId?: string | undefined;
292
+ storageBucket?: string | undefined;
293
+ messagingSenderId?: string | undefined;
294
+ appId?: string | undefined;
295
+ measurementId?: string | undefined;
296
+ };
297
+ automaticDataCollectionEnabled: boolean;
298
+ };
299
+ toJSON: () => object;
300
+ };
301
+ readonly id: string;
302
+ readonly path: string;
303
+ readonly parent: {
304
+ readonly type: "collection";
305
+ readonly id: string;
306
+ readonly path: string;
307
+ readonly parent: /*elided*/ any | null;
308
+ withConverter: {
309
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").CollectionReference<NewAppModelType, NewDbModelType>;
310
+ (converter: null): import("@firebase/firestore").CollectionReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
311
+ };
312
+ readonly converter: {
313
+ toFirestore: {
314
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
315
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
316
+ };
317
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
318
+ } | null;
319
+ readonly firestore: {
320
+ type: "firestore-lite" | "firestore";
321
+ readonly app: {
322
+ readonly name: string;
323
+ readonly options: {
324
+ apiKey?: string | undefined;
325
+ authDomain?: string | undefined;
326
+ databaseURL?: string | undefined;
327
+ projectId?: string | undefined;
328
+ storageBucket?: string | undefined;
329
+ messagingSenderId?: string | undefined;
330
+ appId?: string | undefined;
331
+ measurementId?: string | undefined;
332
+ };
333
+ automaticDataCollectionEnabled: boolean;
334
+ };
335
+ toJSON: () => object;
336
+ };
337
+ };
338
+ withConverter: {
339
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").DocumentReference<NewAppModelType, NewDbModelType>;
340
+ (converter: null): import("@firebase/firestore").DocumentReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
341
+ };
342
+ toJSON: () => object;
343
+ };
344
+ onGetBeforeStoreSet: <U extends import("..").FirestoreModel<UserPublicData>>(instance: U) => Promise<U>;
345
+ save: ({ offlineAllow, touchUpdate, localSet }?: import("..").OptionFireModel) => Promise<void>;
346
+ update: (data: Partial<Omit<UserPublicData, "id">>, { offlineAllow, touchUpdate, localSet }?: import("..").OptionFireModel) => Promise<void>;
347
+ delete: (store: {
348
+ delete: (id: string, opts?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
349
+ }, opts?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
350
+ deleteJustOnline_NotLocalStore: ({ offlineAllow, localSet }?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
351
+ readonly isDeleted: boolean;
352
+ timestampbleProps: () => import("..").Timestampble;
353
+ touchUpdated: () => import("@firebase/firestore").Timestamp;
354
+ softDelete: (optionFireModel?: import("..").OptionFireModel) => Promise<void>;
355
+ restore: (optionFireModel?: import("..").OptionFireModel) => Promise<void>;
356
+ canLocalSave: (localSet?: boolean) => boolean;
357
+ localSet: (_delete?: boolean) => void;
358
+ }[];
359
+ readonly itemsDeletedArray: {
360
+ name: string;
361
+ surname: string;
362
+ email?: string | undefined;
363
+ birthDate?: string | undefined;
364
+ phoneNumber?: [prefix: string, number: string] | undefined;
365
+ photoURL?: string | undefined;
366
+ description?: string | undefined;
367
+ gender?: string | undefined;
368
+ toData: () => UserPublicData;
369
+ readonly fullName: string;
370
+ id: string;
371
+ createdAt: {
372
+ readonly seconds: number;
373
+ readonly nanoseconds: number;
374
+ toDate: () => Date;
375
+ toMillis: () => number;
376
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
377
+ toString: () => string;
378
+ toJSON: () => {
379
+ seconds: number;
380
+ nanoseconds: number;
381
+ type: string;
382
+ };
383
+ valueOf: () => string;
384
+ };
385
+ updatedAt: {
386
+ readonly seconds: number;
387
+ readonly nanoseconds: number;
388
+ toDate: () => Date;
389
+ toMillis: () => number;
390
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
391
+ toString: () => string;
392
+ toJSON: () => {
393
+ seconds: number;
394
+ nanoseconds: number;
395
+ type: string;
396
+ };
397
+ valueOf: () => string;
398
+ };
399
+ deleteAt: {
400
+ readonly seconds: number;
401
+ readonly nanoseconds: number;
402
+ toDate: () => Date;
403
+ toMillis: () => number;
404
+ isEqual: (other: import("@firebase/firestore").Timestamp) => boolean;
405
+ toString: () => string;
406
+ toJSON: () => {
407
+ seconds: number;
408
+ nanoseconds: number;
409
+ type: string;
410
+ };
411
+ valueOf: () => string;
412
+ } | null;
413
+ readonly ref: {
414
+ readonly converter: {
415
+ toFirestore: {
416
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
417
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
418
+ };
419
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
420
+ } | null;
421
+ readonly type: "document";
422
+ readonly firestore: {
423
+ type: "firestore-lite" | "firestore";
424
+ readonly app: {
425
+ readonly name: string;
426
+ readonly options: {
427
+ apiKey?: string | undefined;
428
+ authDomain?: string | undefined;
429
+ databaseURL?: string | undefined;
430
+ projectId?: string | undefined;
431
+ storageBucket?: string | undefined;
432
+ messagingSenderId?: string | undefined;
433
+ appId?: string | undefined;
434
+ measurementId?: string | undefined;
435
+ };
436
+ automaticDataCollectionEnabled: boolean;
437
+ };
438
+ toJSON: () => object;
439
+ };
440
+ readonly id: string;
441
+ readonly path: string;
442
+ readonly parent: {
443
+ readonly type: "collection";
444
+ readonly id: string;
445
+ readonly path: string;
446
+ readonly parent: /*elided*/ any | null;
447
+ withConverter: {
448
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").CollectionReference<NewAppModelType, NewDbModelType>;
449
+ (converter: null): import("@firebase/firestore").CollectionReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
450
+ };
451
+ readonly converter: {
452
+ toFirestore: {
453
+ (modelObject: import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>): import("@firebase/firestore").WithFieldValue<import("@firebase/firestore").DocumentData>;
454
+ (modelObject: import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>, options: import("@firebase/firestore").SetOptions): import("@firebase/firestore").PartialWithFieldValue<import("@firebase/firestore").DocumentData>;
455
+ };
456
+ fromFirestore: (snapshot: import("@firebase/firestore").QueryDocumentSnapshot<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>, options?: import("@firebase/firestore").SnapshotOptions) => import("@firebase/firestore").DocumentData;
457
+ } | null;
458
+ readonly firestore: {
459
+ type: "firestore-lite" | "firestore";
460
+ readonly app: {
461
+ readonly name: string;
462
+ readonly options: {
463
+ apiKey?: string | undefined;
464
+ authDomain?: string | undefined;
465
+ databaseURL?: string | undefined;
466
+ projectId?: string | undefined;
467
+ storageBucket?: string | undefined;
468
+ messagingSenderId?: string | undefined;
469
+ appId?: string | undefined;
470
+ measurementId?: string | undefined;
471
+ };
472
+ automaticDataCollectionEnabled: boolean;
473
+ };
474
+ toJSON: () => object;
475
+ };
476
+ };
477
+ withConverter: {
478
+ <NewAppModelType, NewDbModelType extends import("@firebase/firestore").DocumentData = import("@firebase/firestore").DocumentData>(converter: import("@firebase/firestore").FirestoreDataConverter<NewAppModelType, NewDbModelType>): import("@firebase/firestore").DocumentReference<NewAppModelType, NewDbModelType>;
479
+ (converter: null): import("@firebase/firestore").DocumentReference<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>;
480
+ };
481
+ toJSON: () => object;
482
+ };
483
+ onGetBeforeStoreSet: <U extends import("..").FirestoreModel<UserPublicData>>(instance: U) => Promise<U>;
484
+ save: ({ offlineAllow, touchUpdate, localSet }?: import("..").OptionFireModel) => Promise<void>;
485
+ update: (data: Partial<Omit<UserPublicData, "id">>, { offlineAllow, touchUpdate, localSet }?: import("..").OptionFireModel) => Promise<void>;
486
+ delete: (store: {
487
+ delete: (id: string, opts?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
488
+ }, opts?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
489
+ deleteJustOnline_NotLocalStore: ({ offlineAllow, localSet }?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
490
+ readonly isDeleted: boolean;
491
+ timestampbleProps: () => import("..").Timestampble;
492
+ touchUpdated: () => import("@firebase/firestore").Timestamp;
493
+ softDelete: (optionFireModel?: import("..").OptionFireModel) => Promise<void>;
494
+ restore: (optionFireModel?: import("..").OptionFireModel) => Promise<void>;
495
+ canLocalSave: (localSet?: boolean) => boolean;
496
+ localSet: (_delete?: boolean) => void;
497
+ }[];
498
+ readonly isEmpty: boolean;
499
+ readonly isActiveEmpty: boolean;
500
+ readonly isDeletedEmpty: boolean;
501
+ readonly localStorageKey: any;
502
+ itemsArrayOrderedBy: (option: "createdAt" | "updatedAt" | "deleteAt", deleted?: boolean) => UserPublic[];
503
+ findItemsById: (id: string | false | null | undefined) => UserPublic | undefined;
504
+ get: (opts?: import("..").GetProps) => Promise<Record<string, UserPublic>>;
505
+ getIds: (ids: string[]) => Promise<{
506
+ foundIds: string[] | false;
507
+ notFoundIds: string[] | false;
508
+ }>;
509
+ localGet: () => void;
510
+ start: (opts?: import("..").GetProps) => Promise<void>;
511
+ onStartFirstRun: (snapDocs: import("@firebase/firestore").DocumentChange<import("@firebase/firestore").DocumentData, import("@firebase/firestore").DocumentData>[], forceLocalSet?: boolean) => void;
512
+ stop: () => void;
513
+ add: {
514
+ (data: Omit<UserPublicData, "id">, options?: Omit<import("..").OptionFireModel, "touchUpdate">): Promise<UserPublic>;
515
+ (data: Omit<UserPublicData, "id"> & {
516
+ id?: string;
517
+ }, options?: Omit<import("..").OptionFireModel, "touchUpdate">): Promise<UserPublic>;
518
+ };
519
+ delete: (id: string, opts?: Omit<import("..").OptionFireModel, "touchUpdate">) => Promise<void>;
520
+ findByUid: (uid: string) => UserPublic | undefined;
521
+ getOne: (id: string, options?: import("..").OptionFireModel) => Promise<UserPublic | undefined>;
522
+ ensureOne: (id: string) => Promise<UserPublic | undefined>;
523
+ localClear: () => void;
524
+ };
package/docs/Btn.md ADDED
@@ -0,0 +1,26 @@
1
+ #### Btn
2
+
3
+ Button Bootstrap con varianti, icona, loading e navigazione router.
4
+
5
+ | prop | default | type | utilizzo |
6
+ | ---------- | -------- | ----------------------------------------------------------------------------------------------- | --------------------------- |
7
+ | `variant` | `solid` | `"solid" \| "outline" \| "ghost" \| "link"` | stile del bottone |
8
+ | `color` | `dark` | `"primary" \| "secondary" \| "success" \| "danger" \| "warning" \| "info" \| "light" \| "dark"` | cambia colore Bootstrap |
9
+ | `size` | — | `"sm" \| "lg"` | dimensione Bootstrap |
10
+ | `block` | `false` | `boolean` | full width (`w-100`) |
11
+ | `disabled` | `false` | `boolean` | disabilita click |
12
+ | `type` | `button` | `"button" \| "submit" \| "reset"` | tipo HTML button |
13
+ | `to` | — | `RouteLocationRaw` | naviga con `router.push` |
14
+ | `loading` | `false` | `boolean` | mostra spinner e disabilita |
15
+ | `icon` | — | `string` | icona Material Symbols |
16
+ | `share` | — | `ShareLink` | condivide link al click |
17
+
18
+ ```vue
19
+ <script setup lang="ts">
20
+ import { Btn } from "cic-kit";
21
+ </script>
22
+
23
+ <template>
24
+ <Btn color="primary">Salva</Btn>
25
+ </template>
26
+ ```
package/docs/LS.md ADDED
@@ -0,0 +1,27 @@
1
+ #### LS
2
+
3
+ Wrapper tipizzato e robusto per localStorage con gestione errori e toast.
4
+
5
+ | prop | default | type | utilizzo |
6
+ | ----------- | ------- | ---------------------------------------------------- | ------------------ |
7
+ | `getStr` | — | `(key: LocalStorageKeyType) => string \| undefined` | legge valore raw |
8
+ | `getParsed` | — | `(key: LocalStorageKeyType) => any` | parse JSON sicuro |
9
+ | `set` | — | `(key: LocalStorageKeyType, value: any) => any` | salva serializzato |
10
+ | `update` | — | `(key: LocalStorageKeyType, data: any) => any` | merge o push |
11
+ | `push` | — | `(key: LocalStorageKeyType, ...items: any[]) => any` | aggiunge ad array |
12
+ | `remove` | — | `(key: LocalStorageKeyType) => void` | rimuove chiave |
13
+ | `delete` | — | `(key: LocalStorageKeyType) => void` | alias remove |
14
+ | `has` | — | `(key: LocalStorageKeyType) => boolean` | verifica esistenza |
15
+ | `keys` | — | `() => LocalStorageKeyType[]` | chiavi enum |
16
+ | `clearAll` | — | `() => void` | pulizia storage |
17
+ | `migrate` | — | `(oldKey, newKey) => void` | migrazione valore |
18
+
19
+ ```vue
20
+ <script setup lang="ts">
21
+ import { LS } from "@/shared/utils/LS";
22
+ import { LocalStorageKey } from "@shared/enums/LocalStorageKey";
23
+
24
+ LS.set(LocalStorageKey.User, { name: "Mario" });
25
+ const user = LS.getParsed(LocalStorageKey.User);
26
+ </script>
27
+ ```
package/docs/Modal.md ADDED
@@ -0,0 +1,43 @@
1
+ #### Modal
2
+
3
+ Modal Bootstrap 5 controllata via `v-model`, con header/footer opzionali e bottoni default.
4
+
5
+ | prop | default | type | utilizzo |
6
+ | ----------------- | --------- | ----------------------------------------------- | ------------------------------ |
7
+ | `modelValue` | — | `boolean \| string \| number` | v-model apertura/chiusura |
8
+ | `title` | — | `string` | titolo header di default |
9
+ | `size` | — | `"sm" \| "lg" \| "xl"` | dimensione dialog |
10
+ | `fullscreen` | — | `true \| "sm" \| "md" \| "lg" \| "xl" \| "xxl"` | fullscreen responsive |
11
+ | `centered` | — | `boolean` | centra verticalmente |
12
+ | `scrollable` | — | `boolean` | body scrollabile |
13
+ | `backdrop` | `true` | `boolean \| "static"` | backdrop e comportamento |
14
+ | `keyboard` | `true` | `boolean` | chiusura con ESC |
15
+ | `teleportTo` | `"body"` | `string` | destinazione teleport |
16
+ | `okText` | — | `string` | se undefined, OK nascosto |
17
+ | `cancelText` | — | `string` | se undefined, Annulla nascosto |
18
+ | `okClass` | — | `string` | classi extra bottone OK |
19
+ | `cancelClass` | — | `string` | classi extra bottone Annulla |
20
+ | `okColor` | — | `BtnColor` | colore Btn OK |
21
+ | `cancelColor` | — | `BtnColor` | colore Btn Annulla |
22
+ | `okVariant` | — | `BtnVariant` | variante Btn OK |
23
+ | `cancelVariant` | `"ghost"` | `BtnVariant` | variante Btn Annulla |
24
+ | `closeOnOk` | `true` | `boolean` | chiude dopo OK |
25
+ | `hideHeaderClose` | — | `boolean` | nasconde la X |
26
+ | `id` | — | `string` | id del root modal |
27
+ | `onOk` | — | `() => void \| Promise<void>` | azione su OK |
28
+
29
+ ```vue
30
+ <script setup lang="ts">
31
+ import { ref } from "vue";
32
+
33
+ const open = ref(false);
34
+ </script>
35
+
36
+ <template>
37
+ <button class="btn btn-primary" @click="open = true">Apri</button>
38
+
39
+ <ModalCmp v-model="open" title="Titolo" cancelText="Annulla" okText="OK">
40
+ Contenuto della modal
41
+ </ModalCmp>
42
+ </template>
43
+ ```
package/docs/_.md ADDED
File without changes