layerpro 1.0.21 → 1.1.2
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/LICENSE.md +21 -0
- package/docs/index.md +208 -0
- package/documents/empty +0 -0
- package/index.js +1 -1
- package/package.json +4 -4
- package/index.d.ts +0 -9
- package/types/jquery.d.ts +0 -22
- package/types/layerpro.d.ts +0 -107
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layerpro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Custom modals, alert, confirm, prompt... by Dario Passariello",
|
|
5
5
|
"copyright": "Dario Passariello",
|
|
6
6
|
"license": "MIT",
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
"@types/jest": "^30.0.0",
|
|
136
136
|
"@types/node": "^24.10.1",
|
|
137
137
|
"@types/webpack-env": "1.18.8",
|
|
138
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
139
|
-
"@typescript-eslint/parser": "8.
|
|
138
|
+
"@typescript-eslint/eslint-plugin": "8.48.1",
|
|
139
|
+
"@typescript-eslint/parser": "8.48.1",
|
|
140
140
|
"copy-webpack-plugin": "^13.0.1",
|
|
141
141
|
"css-loader": "7.1.2",
|
|
142
142
|
"eslint": "9.39.1",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"sass-loader": "^16.0.6",
|
|
149
149
|
"style-loader": "^4.0.0",
|
|
150
150
|
"terser-webpack-plugin": "^5.3.14",
|
|
151
|
-
"ts-jest": "29.4.
|
|
151
|
+
"ts-jest": "29.4.6",
|
|
152
152
|
"ts-loader": "^9.5.4",
|
|
153
153
|
"ts-node": "10.9.2",
|
|
154
154
|
"tslib": "^2.8.1",
|
package/index.d.ts
DELETED
package/types/jquery.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
layerpro
|
|
3
|
-
Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
-
Licensed under MIT License, see
|
|
5
|
-
https://dario.passariello.ca
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare module 'jquery'
|
|
10
|
-
|
|
11
|
-
declare var $: any
|
|
12
|
-
declare var jQuery: any
|
|
13
|
-
|
|
14
|
-
// ////////////////////////////////////////////////////////////////
|
|
15
|
-
|
|
16
|
-
interface window {
|
|
17
|
-
$: any
|
|
18
|
-
jQuery: any
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type $ = {}
|
|
22
|
-
type jQuery = {}
|
package/types/layerpro.d.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
layerpro
|
|
3
|
-
Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
-
Licensed under MIT License, see
|
|
5
|
-
https://dario.passariello.ca
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** Generate custom alert using alert([text]) */
|
|
10
|
-
declare function alert(f1?: string): any
|
|
11
|
-
|
|
12
|
-
/** Generate custom confirm using confirm([text],[callback for YES],[optional callback for NO]) */
|
|
13
|
-
declare function confirm(message: string, func1: Function, func2?: Function): boolean
|
|
14
|
-
|
|
15
|
-
/** Generate custom message using message([text],[callback]) and option callback */
|
|
16
|
-
declare function message(f1?: string, func1?: Function): any
|
|
17
|
-
|
|
18
|
-
/** Generate custom message using message([text],[callback]) and option callback */
|
|
19
|
-
declare function prompt(f1?: string, func1?: Function): any
|
|
20
|
-
|
|
21
|
-
////////////////////////////////////////////////////////////////////////////////////
|
|
22
|
-
|
|
23
|
-
interface GenLayerProps {
|
|
24
|
-
|
|
25
|
-
id: string
|
|
26
|
-
body?: any
|
|
27
|
-
name?: string
|
|
28
|
-
style?: any
|
|
29
|
-
class?: string
|
|
30
|
-
icon?: string
|
|
31
|
-
|
|
32
|
-
buttons?: {
|
|
33
|
-
confirm?: {
|
|
34
|
-
text: string
|
|
35
|
-
cb?: () => void
|
|
36
|
-
}
|
|
37
|
-
cancel?: {
|
|
38
|
-
text: string
|
|
39
|
-
cb?: () => void
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
top?: number | string
|
|
45
|
-
left?: number | string
|
|
46
|
-
right?: number | string
|
|
47
|
-
bottom?: number | string
|
|
48
|
-
|
|
49
|
-
width?: number | string
|
|
50
|
-
height?: number | string
|
|
51
|
-
|
|
52
|
-
minWidth?: number
|
|
53
|
-
minHeight?: number
|
|
54
|
-
maxWidth?: number
|
|
55
|
-
maxHeight?: number
|
|
56
|
-
|
|
57
|
-
fadeIn?: number
|
|
58
|
-
fadeOut?: number
|
|
59
|
-
timer?: number
|
|
60
|
-
|
|
61
|
-
maximize?: boolean
|
|
62
|
-
isMaximize?: boolean
|
|
63
|
-
dockable?: boolean
|
|
64
|
-
movable?: boolean
|
|
65
|
-
|
|
66
|
-
resizable?: boolean
|
|
67
|
-
close?: boolean
|
|
68
|
-
raised?: boolean
|
|
69
|
-
iconize?: boolean
|
|
70
|
-
|
|
71
|
-
source?: string
|
|
72
|
-
store?: any
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Interface for the layerpro object
|
|
78
|
-
*/
|
|
79
|
-
interface _layerpro {
|
|
80
|
-
|
|
81
|
-
readonly alert: (txt: string) => void
|
|
82
|
-
readonly prompt: (txt: string, callback: (input: string) => void, event: Event) => void
|
|
83
|
-
readonly message: (txt: string, callback: () => void) => void
|
|
84
|
-
readonly confirm: (txt: string, yesCallback: () => void, noCallback: () => void) => void
|
|
85
|
-
readonly purge: (document: Document) => void
|
|
86
|
-
readonly credits: (txt: string) => void
|
|
87
|
-
|
|
88
|
-
readonly popup: {
|
|
89
|
-
readonly open: (props: GenLayerProps) => GenLayerProps
|
|
90
|
-
readonly center: (props: any) => void
|
|
91
|
-
readonly maximize: (props: any) => void
|
|
92
|
-
readonly iconize: (props: any) => void
|
|
93
|
-
readonly raised: (props: any) => void
|
|
94
|
-
readonly movable: (props: any) => void
|
|
95
|
-
readonly resizable: (props: any) => void
|
|
96
|
-
readonly dockable: (props: any) => void
|
|
97
|
-
readonly store: (props: any) => void
|
|
98
|
-
readonly index: (props: any) => void
|
|
99
|
-
readonly zIndex: (props: any) => number
|
|
100
|
-
readonly close: (props: any) => any
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
declare var layerpro: _layerpro
|
|
105
|
-
type layerpro = _layerpro
|
|
106
|
-
|
|
107
|
-
type process = {}
|