@cloudparker/moldex.js 0.0.17 → 0.0.20
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/actions/ripple.js +1 -1
- package/dist/index.d.ts +12 -13
- package/dist/index.js +12 -13
- package/dist/services/dialog/dialog-service.d.ts +2 -0
- package/dist/{dialog/services → services/dialog}/dialog-service.js +1 -1
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.js +6 -0
- package/dist/services/navigation/navigation-service.d.ts +18 -0
- package/dist/services/navigation/navigation-service.js +51 -0
- package/dist/services/screen/screen-service.d.ts +14 -0
- package/dist/services/screen/screen-service.js +35 -0
- package/dist/{toast/services → services/toast}/toast-service.d.ts +1 -1
- package/dist/{toast/services → services/toast}/toast-service.js +1 -1
- package/dist/{utils/services → services/utils}/utils-service.d.ts +0 -1
- package/dist/{utils/services → services/utils}/utils-service.js +1 -4
- package/dist/stores/referrer-store/referrer-store.svelte.d.ts +3 -0
- package/dist/stores/referrer-store/referrer-store.svelte.js +11 -0
- package/dist/stores/screen-size/screen-size-store.svelte.d.ts +17 -0
- package/dist/stores/screen-size/screen-size-store.svelte.js +38 -0
- package/dist/{button → views/button}/components/button/button.svelte +2 -2
- package/dist/{button → views/button}/components/button/button.svelte.d.ts +1 -1
- package/dist/{button → views/button}/components/button-list-item/button-list-item.svelte +2 -2
- package/dist/{button → views/button}/components/button-list-item/button-list-item.svelte.d.ts +1 -1
- package/dist/{button → views/button}/components/button-menu/button-menu.svelte +2 -2
- package/dist/{button → views/button}/components/button-menu/button-menu.svelte.d.ts +1 -1
- package/dist/{dialog → views/dialog}/components/dialog/dialog.svelte +1 -1
- package/dist/{dialog → views/dialog}/components/dialog/dialog.svelte.d.ts +1 -1
- package/dist/{dialog → views/dialog}/index.d.ts +0 -1
- package/dist/{dialog → views/dialog}/index.js +0 -1
- package/dist/{drawer → views/drawer}/components/drawer/drawer.svelte +1 -1
- package/dist/{drawer → views/drawer}/components/drawer/drawer.svelte.d.ts +1 -1
- package/dist/{icon → views/icon}/components/icon/icon.svelte +1 -1
- package/dist/{icon → views/icon}/components/icon/icon.svelte.d.ts +1 -1
- package/dist/{navbar → views/navbar}/components/navbar/navbar.svelte +1 -1
- package/dist/{navbar → views/navbar}/components/navbar/navbar.svelte.d.ts +1 -1
- package/dist/{pagination → views/pagination}/components/pagination/pagination.svelte +2 -1
- package/dist/{pagination → views/pagination}/components/pagination/pagination.svelte.d.ts +1 -0
- package/dist/{progressbar → views/progressbar}/components/progressbar/progressbar.svelte +2 -1
- package/dist/{progressbar → views/progressbar}/components/progressbar/progressbar.svelte.d.ts +1 -0
- package/dist/views/referrer/referrer.svelte +14 -0
- package/dist/views/referrer/referrer.svelte.d.ts +18 -0
- package/dist/{ruler → views/ruler}/components/vertical-ruler/verticcal-ruler.svelte +1 -1
- package/dist/{ruler → views/ruler}/components/vertical-ruler/verticcal-ruler.svelte.d.ts +1 -1
- package/dist/views/screen-detector/screen-detector.svelte +12 -0
- package/dist/views/screen-detector/screen-detector.svelte.d.ts +18 -0
- package/dist/{spinner → views/spinner}/components/spinner/spinner.svelte +1 -1
- package/dist/{spinner → views/spinner}/components/spinner/spinner.svelte.d.ts +1 -1
- package/dist/{text → views/text}/components/text-copy/text-copy.svelte +1 -1
- package/dist/{text → views/text}/components/text-date/text-date.svelte +1 -1
- package/dist/{text → views/text}/components/text-email/text-email.svelte +1 -1
- package/dist/{toast → views/toast}/components/toast/toast.svelte +2 -1
- package/dist/{toast → views/toast}/components/toast/toast.svelte.d.ts +1 -0
- package/dist/{toast → views/toast}/index.d.ts +0 -1
- package/dist/views/toast/index.js +1 -0
- package/package.json +1 -1
- package/dist/date/index.d.ts +0 -1
- package/dist/date/index.js +0 -1
- package/dist/dialog/services/dialog-service.d.ts +0 -2
- package/dist/toast/index.js +0 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- /package/dist/{date/services → services/date}/date-service.d.ts +0 -0
- /package/dist/{date/services → services/date}/date-service.js +0 -0
- /package/dist/{button → views/button}/index.d.ts +0 -0
- /package/dist/{button → views/button}/index.js +0 -0
- /package/dist/{drawer → views/drawer}/index.d.ts +0 -0
- /package/dist/{drawer → views/drawer}/index.js +0 -0
- /package/dist/{icon → views/icon}/index.d.ts +0 -0
- /package/dist/{icon → views/icon}/index.js +0 -0
- /package/dist/{icon → views/icon}/services/icon-path-service.d.ts +0 -0
- /package/dist/{icon → views/icon}/services/icon-path-service.js +0 -0
- /package/dist/{navbar → views/navbar}/index.d.ts +0 -0
- /package/dist/{navbar → views/navbar}/index.js +0 -0
- /package/dist/{pagination → views/pagination}/index.d.ts +0 -0
- /package/dist/{pagination → views/pagination}/index.js +0 -0
- /package/dist/{progressbar → views/progressbar}/index.d.ts +0 -0
- /package/dist/{progressbar → views/progressbar}/index.js +0 -0
- /package/dist/{ruler → views/ruler}/index.d.ts +0 -0
- /package/dist/{ruler → views/ruler}/index.js +0 -0
- /package/dist/{spinner → views/spinner}/index.d.ts +0 -0
- /package/dist/{spinner → views/spinner}/index.js +0 -0
- /package/dist/{text → views/text}/components/text-await/text-await.svelte +0 -0
- /package/dist/{text → views/text}/components/text-await/text-await.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-copy/text-copy.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-country/text-country.svelte +0 -0
- /package/dist/{text → views/text}/components/text-country/text-country.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-country-state/text-country-state.svelte +0 -0
- /package/dist/{text → views/text}/components/text-country-state/text-country-state.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-currency/text-currency.svelte +0 -0
- /package/dist/{text → views/text}/components/text-currency/text-currency.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-date/text-date.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-email/text-email.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-html/text-html.svelte +0 -0
- /package/dist/{text → views/text}/components/text-html/text-html.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/components/text-phone/text-phone.svelte +0 -0
- /package/dist/{text → views/text}/components/text-phone/text-phone.svelte.d.ts +0 -0
- /package/dist/{text → views/text}/index.d.ts +0 -0
- /package/dist/{text → views/text}/index.js +0 -0
package/dist/actions/ripple.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export * from './actions/index.js';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './dialog/index.js';
|
|
5
|
-
export * from './drawer/index.js';
|
|
6
|
-
export * from './icon/index.js';
|
|
7
|
-
export * from './navbar/index.js';
|
|
8
|
-
export * from './pagination/index.js';
|
|
9
|
-
export * from './progressbar/index.js';
|
|
10
|
-
export * from './ruler/index.js';
|
|
11
|
-
export * from './spinner/index.js';
|
|
12
|
-
export * from './text/index.js';
|
|
13
|
-
export * from './toast/index.js';
|
|
14
|
-
export * from './utils/index.js';
|
|
2
|
+
export * from './services/index.js';
|
|
3
|
+
export * from './views/button/index.js';
|
|
4
|
+
export * from './views/dialog/index.js';
|
|
5
|
+
export * from './views/drawer/index.js';
|
|
6
|
+
export * from './views/icon/index.js';
|
|
7
|
+
export * from './views/navbar/index.js';
|
|
8
|
+
export * from './views/pagination/index.js';
|
|
9
|
+
export * from './views/progressbar/index.js';
|
|
10
|
+
export * from './views/ruler/index.js';
|
|
11
|
+
export * from './views/spinner/index.js';
|
|
12
|
+
export * from './views/text/index.js';
|
|
13
|
+
export * from './views/toast/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export * from './actions/index.js';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './dialog/index.js';
|
|
5
|
-
export * from './drawer/index.js';
|
|
6
|
-
export * from './icon/index.js';
|
|
7
|
-
export * from './navbar/index.js';
|
|
8
|
-
export * from './pagination/index.js';
|
|
9
|
-
export * from './progressbar/index.js';
|
|
10
|
-
export * from './ruler/index.js';
|
|
11
|
-
export * from './spinner/index.js';
|
|
12
|
-
export * from './text/index.js';
|
|
13
|
-
export * from './toast/index.js';
|
|
14
|
-
export * from './utils/index.js';
|
|
2
|
+
export * from './services/index.js';
|
|
3
|
+
export * from './views/button/index.js';
|
|
4
|
+
export * from './views/dialog/index.js';
|
|
5
|
+
export * from './views/drawer/index.js';
|
|
6
|
+
export * from './views/icon/index.js';
|
|
7
|
+
export * from './views/navbar/index.js';
|
|
8
|
+
export * from './views/pagination/index.js';
|
|
9
|
+
export * from './views/progressbar/index.js';
|
|
10
|
+
export * from './views/ruler/index.js';
|
|
11
|
+
export * from './views/spinner/index.js';
|
|
12
|
+
export * from './views/text/index.js';
|
|
13
|
+
export * from './views/toast/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount, unmount } from 'svelte';
|
|
2
|
-
import Dialog, {} from '
|
|
2
|
+
import Dialog, {} from '../../views/dialog/components/dialog/dialog.svelte';
|
|
3
3
|
function addDialog(props) {
|
|
4
4
|
const dialog = mount(Dialog, { target: document.getElementsByTagName('body')[0], props });
|
|
5
5
|
dialog.openDialog();
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './date/date-service.js';
|
|
2
|
+
export * from './dialog/dialog-service.js';
|
|
3
|
+
export * from './navigation/navigation-service.js';
|
|
4
|
+
export * from './screen/screen-service.js';
|
|
5
|
+
export * from './toast/toast-service.js';
|
|
6
|
+
export * from './utils/utils-service.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './date/date-service.js';
|
|
2
|
+
export * from './dialog/dialog-service.js';
|
|
3
|
+
export * from './navigation/navigation-service.js';
|
|
4
|
+
export * from './screen/screen-service.js';
|
|
5
|
+
export * from './toast/toast-service.js';
|
|
6
|
+
export * from './utils/utils-service.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type BackStateType = {
|
|
2
|
+
_id: string;
|
|
3
|
+
isModal?: boolean;
|
|
4
|
+
isOffcanvas?: boolean;
|
|
5
|
+
listener: (state: BackStateType) => void;
|
|
6
|
+
data?: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const referrer: {
|
|
9
|
+
referer: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const pushBackState: (obj: BackStateType) => void;
|
|
12
|
+
export declare const popBackState: () => BackStateType | undefined;
|
|
13
|
+
export declare const registerBackPress: (state: BackStateType) => void;
|
|
14
|
+
export declare const addBackKeyListener: (callback: (event?: PopStateEvent) => boolean) => ((event: PopStateEvent) => void) | undefined;
|
|
15
|
+
export declare const removeBackKeyListener: (listener: () => boolean) => void;
|
|
16
|
+
export declare function goBack(): void;
|
|
17
|
+
export declare function goHome(): void;
|
|
18
|
+
export declare function createRedirectUrl(): string | null;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { goto, pushState } from '$app/navigation';
|
|
2
|
+
import { createRefererStore } from '../../stores/referrer-store/referrer-store.svelte';
|
|
3
|
+
import { BROWSER } from 'esm-env';
|
|
4
|
+
import { writable } from 'svelte/store';
|
|
5
|
+
export const referrer = createRefererStore();
|
|
6
|
+
let backStateArray = [];
|
|
7
|
+
export const pushBackState = (obj) => {
|
|
8
|
+
backStateArray.push(obj);
|
|
9
|
+
};
|
|
10
|
+
export const popBackState = () => {
|
|
11
|
+
return backStateArray.pop();
|
|
12
|
+
};
|
|
13
|
+
export const registerBackPress = (state) => {
|
|
14
|
+
if (BROWSER) {
|
|
15
|
+
pushBackState(state);
|
|
16
|
+
pushState('', {});
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export const addBackKeyListener = (callback) => {
|
|
20
|
+
if (BROWSER) {
|
|
21
|
+
let listener = (event) => {
|
|
22
|
+
if (callback) {
|
|
23
|
+
let result = callback(event);
|
|
24
|
+
if (result) {
|
|
25
|
+
pushState('', {});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
pushState('', {});
|
|
30
|
+
window.addEventListener('popstate', listener);
|
|
31
|
+
return listener;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export const removeBackKeyListener = (listener) => {
|
|
35
|
+
if (BROWSER) {
|
|
36
|
+
window.removeEventListener('popstate', listener);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export function goBack() {
|
|
40
|
+
history.back();
|
|
41
|
+
}
|
|
42
|
+
export function goHome() {
|
|
43
|
+
goto('/', { replaceState: true });
|
|
44
|
+
}
|
|
45
|
+
;
|
|
46
|
+
export function createRedirectUrl() {
|
|
47
|
+
let pathname = window.location.pathname;
|
|
48
|
+
let redirectUrl = pathname + window.location.search || '';
|
|
49
|
+
let redirectInSearchParams = new URLSearchParams(window.location.search).get('redirect');
|
|
50
|
+
return redirectInSearchParams || redirectUrl || '';
|
|
51
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ScreenSizeEnum } from "../../stores/screen-size/screen-size-store.svelte";
|
|
2
|
+
export declare const screenSize: {
|
|
3
|
+
size: ScreenSizeEnum;
|
|
4
|
+
readonly isXXL: boolean;
|
|
5
|
+
readonly isXL: boolean;
|
|
6
|
+
readonly isLg: boolean;
|
|
7
|
+
readonly isMd: boolean;
|
|
8
|
+
readonly isSm: boolean;
|
|
9
|
+
readonly isXs: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const handleScreenSizeUpdate: (size: number) => void;
|
|
12
|
+
export declare function isSmallScreen(): boolean;
|
|
13
|
+
export declare function isMobileScreen(): boolean;
|
|
14
|
+
export declare function isTouchDevice(): boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createScreenSizeStore, ScreenSizeEnum } from "../../stores/screen-size/screen-size-store.svelte";
|
|
2
|
+
import { BROWSER } from "esm-env";
|
|
3
|
+
export const screenSize = createScreenSizeStore();
|
|
4
|
+
export const handleScreenSizeUpdate = (size) => {
|
|
5
|
+
// console.log('screenSizeChanged', size)
|
|
6
|
+
if (BROWSER && size) {
|
|
7
|
+
if (size >= 1400) {
|
|
8
|
+
screenSize.size = ScreenSizeEnum.XXL;
|
|
9
|
+
}
|
|
10
|
+
else if (size >= 1200) {
|
|
11
|
+
screenSize.size = ScreenSizeEnum.XL;
|
|
12
|
+
}
|
|
13
|
+
else if (size >= 992) {
|
|
14
|
+
screenSize.size = ScreenSizeEnum.LG;
|
|
15
|
+
}
|
|
16
|
+
else if (size >= 768) {
|
|
17
|
+
screenSize.size = ScreenSizeEnum.MD;
|
|
18
|
+
}
|
|
19
|
+
else if (size >= 576) {
|
|
20
|
+
screenSize.size = ScreenSizeEnum.SM;
|
|
21
|
+
}
|
|
22
|
+
else if (size < 576) {
|
|
23
|
+
screenSize.size = ScreenSizeEnum.SM;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export function isSmallScreen() {
|
|
28
|
+
return screenSize.isSm || screenSize.isXs;
|
|
29
|
+
}
|
|
30
|
+
export function isMobileScreen() {
|
|
31
|
+
return isSmallScreen();
|
|
32
|
+
}
|
|
33
|
+
export function isTouchDevice() {
|
|
34
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0 || window.matchMedia("(pointer: coarse)").matches;
|
|
35
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ToastPropsType } from "
|
|
1
|
+
import { type ToastPropsType } from "../../views/toast/components/toast/toast.svelte";
|
|
2
2
|
export declare function showToast(props: ToastPropsType | string): void;
|
|
3
3
|
export declare function showSuccessToast(): void;
|
|
4
4
|
export declare function showFailedToast(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mount } from "svelte";
|
|
2
|
-
import Toast, {} from "
|
|
2
|
+
import Toast, {} from "../../views/toast/components/toast/toast.svelte";
|
|
3
3
|
function addToast(props) {
|
|
4
4
|
const toast = mount(Toast, { target: document.getElementsByTagName('body')[0], props });
|
|
5
5
|
toast.openToast();
|
|
@@ -66,7 +66,6 @@ export declare function playClickEffect(): void;
|
|
|
66
66
|
export declare function toArrayByKey(key: string, obj?: any): any[];
|
|
67
67
|
export declare function convertNumToAlphabates(num: number): string;
|
|
68
68
|
export declare function fetchText(url: string): Promise<string>;
|
|
69
|
-
export declare function isTouchDevice(): any;
|
|
70
69
|
export declare function toCurrency(value?: number, symbol?: string): string;
|
|
71
70
|
export declare function inchToPixel(inches: number): number;
|
|
72
71
|
export declare function pixelToInch(pixels: number): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BROWSER } from 'esm-env';
|
|
2
|
-
import { toDate } from '
|
|
2
|
+
import { toDate } from '../date/date-service';
|
|
3
3
|
const KEY_GEO_INFO = 'geo.info';
|
|
4
4
|
export const FILE_VIEWER_HOST = 'https://viewer.cloudparker.com';
|
|
5
5
|
export const CODE_FILE_EXTENTIONS = [
|
|
@@ -347,9 +347,6 @@ export async function fetchText(url) {
|
|
|
347
347
|
// console.log(text)
|
|
348
348
|
return text;
|
|
349
349
|
}
|
|
350
|
-
export function isTouchDevice() {
|
|
351
|
-
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0 || window.matchMedia("(pointer: coarse)").matches;
|
|
352
|
-
}
|
|
353
350
|
export function toCurrency(value = 0, symbol = '$') {
|
|
354
351
|
let currency = Math.abs(value);
|
|
355
352
|
let result = '';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum ScreenSizeEnum {
|
|
2
|
+
XS = "xs",
|
|
3
|
+
SM = "sm",
|
|
4
|
+
MD = "md",
|
|
5
|
+
LG = "lg",
|
|
6
|
+
XL = "xl",
|
|
7
|
+
XXL = "2xl"
|
|
8
|
+
}
|
|
9
|
+
export declare function createScreenSizeStore(initial?: ScreenSizeEnum): {
|
|
10
|
+
size: ScreenSizeEnum;
|
|
11
|
+
readonly isXXL: boolean;
|
|
12
|
+
readonly isXL: boolean;
|
|
13
|
+
readonly isLg: boolean;
|
|
14
|
+
readonly isMd: boolean;
|
|
15
|
+
readonly isSm: boolean;
|
|
16
|
+
readonly isXs: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export var ScreenSizeEnum;
|
|
2
|
+
(function (ScreenSizeEnum) {
|
|
3
|
+
ScreenSizeEnum["XS"] = "xs";
|
|
4
|
+
ScreenSizeEnum["SM"] = "sm";
|
|
5
|
+
ScreenSizeEnum["MD"] = "md";
|
|
6
|
+
ScreenSizeEnum["LG"] = "lg";
|
|
7
|
+
ScreenSizeEnum["XL"] = "xl";
|
|
8
|
+
ScreenSizeEnum["XXL"] = "2xl";
|
|
9
|
+
})(ScreenSizeEnum || (ScreenSizeEnum = {}));
|
|
10
|
+
export function createScreenSizeStore(initial = ScreenSizeEnum.XXL) {
|
|
11
|
+
let _size = $state(initial);
|
|
12
|
+
return {
|
|
13
|
+
get size() {
|
|
14
|
+
return _size;
|
|
15
|
+
},
|
|
16
|
+
get isXXL() {
|
|
17
|
+
return _size === ScreenSizeEnum.XXL;
|
|
18
|
+
},
|
|
19
|
+
get isXL() {
|
|
20
|
+
return _size === ScreenSizeEnum.XL;
|
|
21
|
+
},
|
|
22
|
+
get isLg() {
|
|
23
|
+
return _size === ScreenSizeEnum.LG;
|
|
24
|
+
},
|
|
25
|
+
get isMd() {
|
|
26
|
+
return _size === ScreenSizeEnum.MD;
|
|
27
|
+
},
|
|
28
|
+
get isSm() {
|
|
29
|
+
return _size === ScreenSizeEnum.SM;
|
|
30
|
+
},
|
|
31
|
+
get isXs() {
|
|
32
|
+
return _size === ScreenSizeEnum.XS;
|
|
33
|
+
},
|
|
34
|
+
set size(size) {
|
|
35
|
+
_size = size;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<script lang="ts">import "
|
|
2
|
-
import { ripple } from "
|
|
1
|
+
<script lang="ts">import "../../../../tailwind.css";
|
|
2
|
+
import { ripple } from "../../../../actions/ripple.js";
|
|
3
3
|
import Icon from "../../../icon/components/icon/icon.svelte";
|
|
4
4
|
import { Spinner } from "../../../spinner/index.js";
|
|
5
5
|
let {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../../tailwind.css';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
4
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script context="module" lang="ts"></script>
|
|
2
2
|
|
|
3
|
-
<script lang="ts">import "
|
|
4
|
-
import { ripple } from "
|
|
3
|
+
<script lang="ts">import "../../../../tailwind.css";
|
|
4
|
+
import { ripple } from "../../../../actions/ripple.js";
|
|
5
5
|
import Icon from "../../../icon/components/icon/icon.svelte";
|
|
6
6
|
import {
|
|
7
7
|
mdiCheckCircle,
|
package/dist/{button → views/button}/components/button-list-item/button-list-item.svelte.d.ts
RENAMED
|
@@ -18,7 +18,7 @@ export type ListItemType = {
|
|
|
18
18
|
arrowIconPath?: string;
|
|
19
19
|
arrowClassName?: string;
|
|
20
20
|
};
|
|
21
|
-
import '
|
|
21
|
+
import '../../../../tailwind.css';
|
|
22
22
|
import type { Snippet } from 'svelte';
|
|
23
23
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
24
24
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script lang="ts">import "
|
|
1
|
+
<script lang="ts">import "../../../../tailwind.css";
|
|
2
2
|
import Icon from "../../../icon/components/icon/icon.svelte";
|
|
3
3
|
import {
|
|
4
4
|
mdiCheckCircle,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
mdiChevronDown
|
|
7
7
|
} from "../../../icon/services/icon-path-service.js";
|
|
8
8
|
import ButtonListItem from "../button-list-item/button-list-item.svelte";
|
|
9
|
-
import { ripple } from "
|
|
9
|
+
import { ripple } from "../../../../actions/ripple.js";
|
|
10
10
|
var MenuStateEnum = /* @__PURE__ */ ((MenuStateEnum2) => {
|
|
11
11
|
MenuStateEnum2[MenuStateEnum2["OPENED"] = 0] = "OPENED";
|
|
12
12
|
MenuStateEnum2[MenuStateEnum2["CLOSED"] = 1] = "CLOSED";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../../tailwind.css';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
import type { ListItemType } from '../button-list-item/button-list-item.svelte';
|
|
4
4
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" context="module"></script>
|
|
2
2
|
|
|
3
|
-
<script lang="ts">import "
|
|
3
|
+
<script lang="ts">import "../../../../tailwind.css";
|
|
4
4
|
import Button from "../../../button/components/button/button.svelte";
|
|
5
5
|
import { mdiArrowLeft, mdiClose } from "../../../icon/services/icon-path-service.js";
|
|
6
6
|
import {} from "svelte";
|
|
@@ -52,7 +52,7 @@ export type DialogExportsType = {
|
|
|
52
52
|
setOkSpinner: (value: boolean) => void;
|
|
53
53
|
setOkDisabled: (value: boolean) => void;
|
|
54
54
|
};
|
|
55
|
-
import '
|
|
55
|
+
import '../../../../tailwind.css';
|
|
56
56
|
import { type Snippet } from 'svelte';
|
|
57
57
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
58
58
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../../tailwind.css';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
4
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../../tailwind.css';
|
|
2
2
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script lang="ts">import "
|
|
1
|
+
<script lang="ts">import "../../../../tailwind.css";
|
|
2
2
|
import Button from "../../../button/components/button/button.svelte";
|
|
3
3
|
import Icon from "../../../icon/components/icon/icon.svelte";
|
|
4
4
|
import { mdiMenu } from "../../../icon/services/icon-path-service.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../../tailwind.css';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
4
4
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
<script lang="ts">import
|
|
1
|
+
<script lang="ts">import "../../../../tailwind.css";
|
|
2
|
+
import { ripple } from "../../../../actions";
|
|
2
3
|
import ButtonMenu from "../../../button/components/button-menu/button-menu.svelte";
|
|
3
4
|
import Button from "../../../button/components/button/button.svelte";
|
|
4
5
|
import { mdiChevronLeft, mdiChevronRight, mdiPageFirst, mdiPageLast } from "../../../icon";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../../../../tailwind.css';
|
|
1
2
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
4
|
$$bindings?: Bindings;
|
package/dist/{progressbar → views/progressbar}/components/progressbar/progressbar.svelte.d.ts
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../../../../tailwind.css';
|
|
1
2
|
import type { Snippet } from 'svelte';
|
|
2
3
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
4
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script lang="ts">import { page } from "$app/stores";
|
|
2
|
+
import { referrer } from "../../services/navigation/navigation-service";
|
|
3
|
+
import { BROWSER } from "esm-env";
|
|
4
|
+
$effect(() => {
|
|
5
|
+
if (BROWSER) {
|
|
6
|
+
const unsubscribe = page.subscribe((_) => {
|
|
7
|
+
referrer.referer = referrer.referer === location.href ? referrer.referer : location.href;
|
|
8
|
+
});
|
|
9
|
+
return () => {
|
|
10
|
+
unsubscribe && unsubscribe();
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const Referrer: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, "">;
|
|
17
|
+
type Referrer = InstanceType<typeof Referrer>;
|
|
18
|
+
export default Referrer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../../tailwind.css';
|
|
2
2
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">import { handleScreenSizeUpdate } from "../../services";
|
|
2
|
+
import { BROWSER } from "esm-env";
|
|
3
|
+
let innerWidth = $state(0);
|
|
4
|
+
function screenSizeChanged(size) {
|
|
5
|
+
handleScreenSizeUpdate(size);
|
|
6
|
+
}
|
|
7
|
+
$effect(() => {
|
|
8
|
+
BROWSER && screenSizeChanged(innerWidth);
|
|
9
|
+
});
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<svelte:window bind:innerWidth />
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const ScreenDetector: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, "">;
|
|
17
|
+
type ScreenDetector = InstanceType<typeof ScreenDetector>;
|
|
18
|
+
export default ScreenDetector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../../tailwind.css';
|
|
2
2
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">import Button from "../../../button/components/button/button.svelte";
|
|
2
2
|
import { mdiContentCopy } from "../../../icon/index.js";
|
|
3
3
|
import { showToast } from "../../../toast/index.js";
|
|
4
|
-
import { copyText } from "
|
|
4
|
+
import { copyText } from "../../../../services/index.js";
|
|
5
5
|
let {
|
|
6
6
|
input,
|
|
7
7
|
containerClassName = "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script lang="ts">import { dateFormat, dateToAgo, toDate } from "
|
|
1
|
+
<script lang="ts">import { dateFormat, dateToAgo, toDate } from "../../../../services/date";
|
|
2
2
|
import { BROWSER } from "esm-env";
|
|
3
3
|
let { input, format = "DD-MM-YYYY hh:mm a" } = $props();
|
|
4
4
|
let dateString = $state("");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script lang="ts">import { ripple } from "
|
|
1
|
+
<script lang="ts">import { ripple } from "../../../../actions";
|
|
2
2
|
import { mdiEmailOutline } from "../../../icon";
|
|
3
3
|
import Icon from "../../../icon/components/icon/icon.svelte";
|
|
4
4
|
let { input, buttonClassName, iconClassName, iconPath = mdiEmailOutline } = $props();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script context="module" lang="ts"></script>
|
|
2
2
|
|
|
3
|
-
<script lang="ts">
|
|
3
|
+
<script lang="ts">import "../../../../tailwind.css";
|
|
4
|
+
let isPlaced = $state(false);
|
|
4
5
|
let isOpened = $state(false);
|
|
5
6
|
let { id, msg, duration = 3e3, className, children } = $props();
|
|
6
7
|
export function openToast() {
|
|
@@ -6,6 +6,7 @@ export type ToastPropsType = {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
children?: Snippet;
|
|
8
8
|
};
|
|
9
|
+
import '../../../../tailwind.css';
|
|
9
10
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
10
11
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
11
12
|
$$bindings?: Bindings;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/dist/date/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './services/date-service.js';
|
package/dist/date/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './services/date-service.js';
|
package/dist/toast/index.js
DELETED
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './services/utils-service.js';
|
package/dist/utils/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './services/utils-service.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{text → views/text}/components/text-country-state/text-country-state.svelte.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|