layerpro 0.6.85 → 0.7.1

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "layerpro",
3
3
  "displayName": "layerpro",
4
- "version": "0.6.85",
5
- "description": "Manage your popups and customize them",
4
+ "version": "0.7.1",
5
+ "description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
6
6
  "copyright": "Dario Passariello",
7
7
  "license": "MIT",
8
8
  "relaseType": "gold",
@@ -84,9 +84,7 @@
84
84
  },
85
85
  "typings": "./types/*",
86
86
  "globals": {
87
- "layerpro": {},
88
- "jQuery": {},
89
- "$": {}
87
+ "layerpro": {}
90
88
  },
91
89
  "browserslist": {
92
90
  "production": [
@@ -210,8 +208,5 @@
210
208
  "webpack": "^5.93.0",
211
209
  "webpack-cli": "^5.1.4",
212
210
  "webpack-dev-server": "^5.0.4"
213
- },
214
- "dependencies": {
215
- "moment": "2.30.1"
216
211
  }
217
212
  }
@@ -5,15 +5,79 @@ License: MIT
5
5
 
6
6
  declare module 'layerpro' { }
7
7
 
8
- // Remove popup errors about number of paramentes or existence
8
+ /** Generate custom alert using alert([text]) */
9
+ declare function alert(f1?)
10
+
11
+ /** Generate custom confirm using confirm([text],[callback for YES],[optional callback for NO]) */
9
12
  declare function confirm(f1?, func1?, func2?)
13
+
14
+ /** Generate custom message using message([text],[callback]) and option callback */
10
15
  declare function message(f1?, func1?)
16
+
17
+ /** Generate custom message using message([text],[callback]) and option callback */
11
18
  declare function prompt(f1?, string?)
12
19
 
13
- interface dpLayerPro {
20
+ ////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ declare var pupop: Object
23
+
24
+ interface openProp {
25
+ /** Add identificator */
26
+ id: string,
27
+ /** Add name of popup (also as title) */
28
+ name: string,
29
+ /** Add text / html or a React Component (no useEffect or useState) */
30
+ body: any,
31
+ /** Give the size in width px (exmple "500px") */
32
+ width: string | percentage,
33
+ /** Give the size in width px (exmple "300px") */
34
+ height: string | percentage,
35
+ /** icon from html symbol table */
36
+ icon?: string,
37
+ /** you want the top/right maximize button */
38
+ maximize?: boolean,
39
+ /** you want the top/right parking button */
40
+ iconize?: boolean,
41
+ /** you want the top/right close button */
42
+ close?: any,
43
+ /** you want at top of everything */
44
+ raised?: boolean,
45
+ /** move it? */
46
+ movable?: boolean,
47
+ /** resizable it? */
48
+ resizable?: boolean,
49
+ /** Run it maximized */
50
+ isMaximize?: boolean,
51
+ /** You want to see rthe layerpro dock */
52
+ dockable?: bolean,
53
+ /** You want to memorize last position */
54
+ store?: boolean,
55
+ /** Add timer to your popup */
56
+ timer?: number,
57
+
58
+ /** Position in to screen */
59
+ top?: number | percentage,
60
+ left?: number | percentage,
61
+ right?: number | percentage,
62
+ bottom?: number | percentage,
63
+
64
+ /** Max and Min sizes */
65
+ minWidth?: number | percentage,
66
+ maxWidth?: number | percentage,
67
+ minHeight?: number | percentage,
68
+ maxHeight?: number | percentage,
69
+
70
+ /** Fading time */
71
+ fadeIn?: number,
72
+ fadeOut?: number,
14
73
 
15
- readonly credits: (name: string) => any
16
- readonly purge: (name: Any) => any
74
+ // TODO
75
+ source?: "",
76
+ className?: string,
77
+ style?: string
78
+ }
79
+
80
+ interface dpLayerPro {
17
81
 
18
82
  readonly alert: (txt: String) => any
19
83
  readonly prompt: (txt: String, function_: Function, event: Event) => any
@@ -21,59 +85,31 @@ interface dpLayerPro {
21
85
  readonly confirm: (txt: String, function_: Function, noFunction_: Func) => any
22
86
 
23
87
  readonly popup: {
24
- readonly close: (value: any) => {}
25
- readonly center: (value: any) => {}
26
- readonly maximize: (value: any) => {}
27
- readonly iconize: (value: any) => {}
28
- readonly raised: (value: any) => {}
29
- readonly movable: (value: any) => {}
30
- readonly resizable: (value: any) => {}
31
- readonly dockable: (value: any) => {}
32
- readonly store: (value: any) => {}
33
- readonly index: (value: any) => {}
34
- readonly zIndex: (value: any) => {}
35
- readonly open: (prop: {
36
- id: string
37
- name: string
38
- body: any
39
- width: string | percentage
40
- height: string | percentage
41
- top: string | percentage
42
- left: string | percentage
43
-
44
- source?: ""
45
- icon?: string
46
- maximize?: boolean
47
- iconize: boolean
48
- close?: any
49
- raised?: boolean
50
- movable?: boolean
51
- resizable?: boolean
52
- isMaximize?: boolean
53
- dockable?: bolean
54
- store?: boolean
55
- fadeIn?: number
56
- fadeOut?: number
57
-
58
- top?: number | percentage
59
- left?: number | percentage
60
- right?: number | percentage
61
- bottom?: number | percentage
62
- minWidth?: number | percentage
63
- maxWidth?: number | percentage
64
- minHeight?: number | percentage
65
- maxHeight?: number | percentage
66
-
67
- // TODO
68
- className?: string
69
- style?: string
70
- }) => {}
88
+ [key: string]: any
89
+
90
+ /** Open a popup with rules! */
91
+ readonly open: (props: openProp) => Any,
92
+
93
+ /** Put same id and you can close it from another func */
94
+ readonly close: (id: String) => {}
71
95
 
96
+ // readonly credits: (name: string) => any
97
+ // readonly purge: (name: Any) => any
98
+ // readonly center: (value: any) => {}
99
+ // readonly maximize: (value: any) => {}
100
+ // readonly iconize: (value: any) => {}
101
+ // readonly raised: (value: any) => {}
102
+ // readonly movable: (value: any) => {}
103
+ // readonly resizable: (value: any) => {}
104
+ // readonly dockable: (value: any) => {}
105
+ // readonly store: (value: any) => {}
106
+ // readonly index: (value: any) => {}
107
+ // readonly zIndex: (value: any) => {}
72
108
  }
73
109
  }
74
110
 
75
111
  declare var layerpro: dpLayerPro
76
112
 
77
- layerpro = {}
78
-
79
113
  type layerpro = dpLayerPro
114
+
115
+ layerpro = {}
@@ -1,40 +0,0 @@
1
- /*!
2
- * jQuery JavaScript Library v3.7.1
3
- * https://jquery.com/
4
- *
5
- * Copyright OpenJS Foundation and other contributors
6
- * Released under the MIT license
7
- * https://jquery.org/license
8
- *
9
- * Date: 2023-08-28T13:37Z
10
- */
11
-
12
- /**
13
- * @license React
14
- * react-dom.production.min.js
15
- *
16
- * Copyright (c) Facebook, Inc. and its affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
-
22
- /**
23
- * @license React
24
- * react.production.min.js
25
- *
26
- * Copyright (c) Facebook, Inc. and its affiliates.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */
31
-
32
- /**
33
- * @license React
34
- * scheduler.production.min.js
35
- *
36
- * Copyright (c) Facebook, Inc. and its affiliates.
37
- *
38
- * This source code is licensed under the MIT license found in the
39
- * LICENSE file in the root directory of this source tree.
40
- */
File without changes
File without changes