cic-kit 0.0.15 → 0.0.18
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/cic-kit.css +1 -1
- package/dist/cmp/Btn/BtnMoveIcon.vue.d.ts +28 -0
- package/dist/cmp/Container/{ContainerSubSettings.vue.d.ts → ContainerSub.vue.d.ts} +3 -1
- package/dist/cmp/utils/copyToClipboard.d.ts +1 -0
- package/dist/cmp/{useDebounce → utils}/useDebounce.d.ts +1 -1
- package/dist/cmp/utils/useRouteTo.d.ts +35 -0
- package/dist/cmp/viewer/{ObjectDataViewer.vue.d.ts → ObjectViewer.vue.d.ts} +1 -0
- package/dist/defaultViews/ErrorView.vue.d.ts +1 -0
- package/dist/index.cjs +52 -22
- package/dist/index.d.ts +15 -3
- package/dist/index.mjs +36580 -12083
- package/docs/Modal.md +43 -43
- package/docs/toast.md +29 -29
- package/package.json +4 -3
- package/scss/_style.scss +2 -2
- package/src/styles/fonts/Cal_Sans/OFL.txt +93 -93
- package/src/styles/fonts/Monoton/OFL.txt +94 -94
- package/src/styles/main.scss +5 -5
- package/src/styles/partials/_bootsrap_overwriting.scss +247 -239
- package/src/styles/partials/_common.scss +8 -8
- package/src/styles/partials/_font_icon.scss +69 -69
- package/src/styles/partials/_layout.scss +35 -35
- package/src/styles/partials/_reset.scss +72 -72
- package/src/styles/partials/_utilities.scss +40 -40
- package/src/vue-shim.d.ts +4 -4
- /package/dist/cmp/{testUtility → test}/generaColore.d.ts +0 -0
- /package/dist/cmp/{testUtility → test}/generaDate.d.ts +0 -0
- /package/dist/cmp/{testUtility → test}/generaDatiPersonali.d.ts +0 -0
- /package/dist/cmp/{testUtility → test}/generaNumero.d.ts +0 -0
- /package/dist/cmp/{testUtility → test}/generaTesto.d.ts +0 -0
- /package/dist/cmp/{testUtility → utils}/delay.d.ts +0 -0
- /package/dist/cmp/{testUtility → utils}/pickRandom.d.ts +0 -0
package/dist/cic-kit.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.spinner-border[data-v-
|
|
1
|
+
@charset "UTF-8";.spinner-border[data-v-a24f0a34]{vertical-align:middle}.btn-ms-link[data-v-a24f0a34]{background-color:transparent!important;border:none;color:var(--bs-btn-color)!important}.btn-ms-link[data-v-a24f0a34]:hover{text-decoration:underline}.hideAfter[data-v-a24f0a34]:after{display:none}.toast-wrapper[data-v-e724e2c2]{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:6px;z-index:999999}.toast-card[data-v-e724e2c2]{width:330px;min-height:80px;border-radius:8px;padding:10px 12px;background-color:#fff;box-shadow:0 8px 24px #00000026;display:flex;align-items:center;justify-content:center;gap:12px;cursor:default;transition:all .3s ease,transform .3s ease;overflow:hidden;opacity:1}.toast-card .icon-container[data-v-e724e2c2]{width:35px;height:35px;display:flex;justify-content:center;align-items:center;border-radius:50%;flex-shrink:0;transition:all .3s ease}.toast-card .message-text[data-v-e724e2c2]{font-size:17px;font-weight:700}.toast-card .sub-text[data-v-e724e2c2]{color:#555;font-size:14px}.toast-card .cross-icon[data-v-e724e2c2]{width:18px;height:18px;color:#555;cursor:pointer;flex-shrink:0}.toast-card[data-v-e724e2c2]:not(.expanded){min-height:40px;max-height:40px;padding-top:6px;padding-bottom:6px;opacity:.7}.toast-card:not(.expanded) .icon-container[data-v-e724e2c2]{width:18px;height:18px}.toast-card:not(.expanded) .message-text[data-v-e724e2c2]{font-size:14px}.toast-card:not(.expanded) .sub-content[data-v-e724e2c2]{display:none}.toast-card:not(.expanded) .cross-icon[data-v-e724e2c2]{width:14px;height:14px}.toast-fade-enter-from[data-v-e724e2c2],.toast-fade-leave-to[data-v-e724e2c2]{opacity:0;transform:translateY(20px)}.toast-fade-enter-active[data-v-e724e2c2],.toast-fade-leave-active[data-v-e724e2c2]{transition:all .3s ease}.message-text-container[data-v-e724e2c2]{flex-grow:1}.toast-card.info[data-v-e724e2c2]{border-right:5px solid var(--bs-info)}.toast-card.info .icon-container[data-v-e724e2c2]{color:var(--bs-info)}.toast-card.success[data-v-e724e2c2]{border-right:5px solid var(--bs-success)}.toast-card.success .icon-container[data-v-e724e2c2]{color:var(--bs-success)}.toast-card.warning[data-v-e724e2c2]{border-right:5px solid var(--bs-warning)}.toast-card.warning .icon-container[data-v-e724e2c2]{color:var(--bs-warning)}.toast-card.error[data-v-e724e2c2]{border-right:5px solid var(--bs-danger)}.toast-card.error .icon-container[data-v-e724e2c2]{color:var(--bs-danger)}.toast-card.primary[data-v-e724e2c2]{border-right:5px solid var(--bs-primary)}.toast-card.primary .icon-container[data-v-e724e2c2]{color:var(--bs-primary)}.toast-card.secondary[data-v-e724e2c2]{border-right:5px solid var(--bs-secondary)}.toast-card.secondary .icon-container[data-v-e724e2c2]{color:var(--bs-secondary)}.prefix-width[data-v-a5d73642]{width:60px}.bg-glass[data-v-afaa8e7a]{width:100%;z-index:1;background:var(--colors-theme-bg-accent-hover-alpha, rgba(0, 0, 0, .0235294118));-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);box-shadow:0 6px 24px #00000014;border-radius:4px}.scope-btn[data-v-c7de8944]{border-radius:4px;border:none;transition:all .5s ease-in-out;display:flex;align-items:center;background:var(--colors-theme-bg-accent-hover-alpha, rgba(0, 0, 0, .0235294118));-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);box-shadow:0 6px 24px #00000014;position:relative;padding:4px 8px}.scope-btn .scope-icon[data-v-c7de8944]{position:absolute;left:8px;transition:all .1s}.scope-btn .scope-text[data-v-c7de8944]{margin-left:24px}.scope-btn[data-v-c7de8944]:hover,.scope-btn.loading[data-v-c7de8944]{box-shadow:0 0 20px #2e2e2e3a}.scope-btn:hover .scope-icon[data-v-c7de8944],.scope-btn.loading .scope-icon[data-v-c7de8944]{transition:all .3s;left:50%;transform:translate(-50%)}.scope-btn:hover .scope-text[data-v-c7de8944],.scope-btn.loading .scope-text[data-v-c7de8944]{transition:all .2s;transform:translate(50%);opacity:0}.scope-btn:active .scope-icon[data-v-c7de8944]{transform:scale(.6) translate(-50%)}.scope-btn[data-v-c7de8944]:focus{outline:none}.fix-to-top[data-v-570e865d]{position:sticky;z-index:1}.ms_tab[data-v-5204c1f0]{width:100%;text-align:left;display:flex;align-items:center;gap:.5em;padding:.25em .5em;border-radius:6px;cursor:pointer;transition:background-color .16s ease,transform .14s ease,box-shadow .16s ease;transform:translate(0)}.ms_tab[data-v-5204c1f0]:hover{transform:translate(2px)}.ms_tab.active[data-v-5204c1f0]{font-weight:700;transform:translate(2px)}.bg-glass[data-v-9cb9fc53]{width:100%;z-index:1;background:var(--colors-theme-bg-accent-hover-alpha, rgba(0, 0, 0, .0235294118));-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);box-shadow:0 6px 24px #00000014;border-radius:4px}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ShareLink } from "cic-kit";
|
|
2
|
+
import { type RouteLocationRaw } from "vue-router";
|
|
3
|
+
import type { IconGoogle } from "./typeBtn";
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
type?: "button" | "submit" | "reset";
|
|
7
|
+
to?: RouteLocationRaw;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
icon: IconGoogle | string;
|
|
10
|
+
share?: ShareLink;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
+
click: (ev: MouseEvent) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onClick?: ((ev: MouseEvent) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyToClipboard(text: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function useDebounce<T extends (...args: any[]) => any>(fn: T, delay?: number): (...args: Parameters<T>) => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type RouteLocationRaw } from 'vue-router';
|
|
2
|
+
/**
|
|
3
|
+
* Opzioni per la navigazione tramite `routeTo`.
|
|
4
|
+
*
|
|
5
|
+
* - params: parametri di route (/:id)
|
|
6
|
+
* - query: querystring (?page=1)
|
|
7
|
+
* - hash: ancora (#section)
|
|
8
|
+
* - replace: se true usa router.replace invece di push
|
|
9
|
+
* - state: history state (HTML5 history)
|
|
10
|
+
* - raw: RouteLocationRaw completo (bypassa name)
|
|
11
|
+
* - catchError: se true intercetta e ignora NavigationDuplicated
|
|
12
|
+
*/
|
|
13
|
+
export interface RouteToOpts {
|
|
14
|
+
params?: Record<string, any>;
|
|
15
|
+
query?: Record<string, any>;
|
|
16
|
+
hash?: string;
|
|
17
|
+
replace?: boolean;
|
|
18
|
+
state?: any;
|
|
19
|
+
raw?: RouteLocationRaw;
|
|
20
|
+
catchError?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Composable di utilità per navigare per `name`
|
|
24
|
+
* senza ripetere ogni volta `router.push`.
|
|
25
|
+
*
|
|
26
|
+
* Esempi:
|
|
27
|
+
*
|
|
28
|
+
* routeTo('Home')
|
|
29
|
+
* routeTo('UserDetail', { params: { id: 123 } })
|
|
30
|
+
* routeTo('List', { query: { page: 2 }, replace: true })
|
|
31
|
+
* routeTo('Profile', { hash: '#settings' })
|
|
32
|
+
*/
|
|
33
|
+
export declare function useRouteTo(): {
|
|
34
|
+
routeTo: (name: string | RouteLocationRaw, opts?: RouteToOpts) => Promise<void | import("vue-router").NavigationFailure>;
|
|
35
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
obj: any;
|
|
3
|
+
top?: number | string;
|
|
3
4
|
};
|
|
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>;
|
|
5
6
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
kind: '404' | 'unauthorized';
|
|
3
3
|
attemptedPath?: string;
|
|
4
|
+
homeRoute?: string;
|
|
4
5
|
};
|
|
5
6
|
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
7
|
declare const _default: typeof __VLS_export;
|