ex4nicegui 0.8.10__py3-none-any.whl → 0.9.1__py3-none-any.whl

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 (62) hide show
  1. ex4nicegui/__init__.py +3 -2
  2. ex4nicegui/bi/dataSource.py +1 -2
  3. ex4nicegui/bi/elements/ui_aggrid.py +1 -2
  4. ex4nicegui/bi/protocols.py +10 -20
  5. ex4nicegui/layout/rxFlex/index.py +0 -1
  6. ex4nicegui/reactive/EChartsComponent/ECharts.js +1 -1
  7. ex4nicegui/reactive/EChartsComponent/ECharts.py +1 -5
  8. ex4nicegui/reactive/UseDraggable/UseDraggable.py +3 -3
  9. ex4nicegui/reactive/__init__.py +2 -3
  10. ex4nicegui/reactive/_vmodel.py +150 -0
  11. ex4nicegui/reactive/base.py +2 -3
  12. ex4nicegui/reactive/deferredTask.py +2 -5
  13. ex4nicegui/reactive/mermaid/{mermaid.js → ex4ng_mermaid.js} +1 -1
  14. ex4nicegui/reactive/mermaid/mermaid.py +1 -6
  15. ex4nicegui/reactive/mixins/flexLayout.py +4 -8
  16. ex4nicegui/reactive/mixins/value_element.py +1 -2
  17. ex4nicegui/reactive/officials/echarts.py +1 -1
  18. ex4nicegui/reactive/systems/object_system.py +2 -4
  19. ex4nicegui/reactive/usePagination.py +2 -4
  20. ex4nicegui/reactive/vfor.py +1 -0
  21. ex4nicegui/toolbox/core/vue_use.py +1 -1
  22. ex4nicegui/utils/apiEffect.py +1 -2
  23. ex4nicegui/utils/clientScope.py +5 -8
  24. ex4nicegui/utils/effect.py +1 -2
  25. ex4nicegui/utils/page_state.py +70 -0
  26. ex4nicegui/utils/proxy/descriptor.py +0 -1
  27. ex4nicegui/utils/refComputed.py +1 -2
  28. ex4nicegui/utils/refreshable.py +122 -0
  29. ex4nicegui/utils/signals.py +5 -88
  30. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.1.dist-info}/METADATA +62 -21
  31. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.1.dist-info}/RECORD +54 -80
  32. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.1.dist-info}/WHEEL +1 -1
  33. ex4nicegui/gsap/__init__.py +0 -23
  34. ex4nicegui/gsap/gsap.py +0 -145
  35. ex4nicegui/gsap/timeline.js +0 -56
  36. ex4nicegui/gsap/timeline.py +0 -78
  37. ex4nicegui/gsap/wrapGsap.js +0 -48
  38. ex4nicegui/libs/gsap/.DS_Store +0 -0
  39. ex4nicegui/libs/gsap/CSSPlugin.js +0 -1577
  40. ex4nicegui/libs/gsap/CSSRulePlugin.js +0 -134
  41. ex4nicegui/libs/gsap/CustomEase.js +0 -371
  42. ex4nicegui/libs/gsap/Draggable.js +0 -2699
  43. ex4nicegui/libs/gsap/EasePack.js +0 -212
  44. ex4nicegui/libs/gsap/EaselPlugin.js +0 -341
  45. ex4nicegui/libs/gsap/Flip.js +0 -1518
  46. ex4nicegui/libs/gsap/MotionPathPlugin.js +0 -368
  47. ex4nicegui/libs/gsap/Observer.js +0 -686
  48. ex4nicegui/libs/gsap/PixiPlugin.js +0 -461
  49. ex4nicegui/libs/gsap/ScrollToPlugin.js +0 -273
  50. ex4nicegui/libs/gsap/ScrollTrigger.js +0 -2658
  51. ex4nicegui/libs/gsap/TextPlugin.js +0 -166
  52. ex4nicegui/libs/gsap/__init__.py +0 -0
  53. ex4nicegui/libs/gsap/all.js +0 -31
  54. ex4nicegui/libs/gsap/gsap-core.js +0 -4487
  55. ex4nicegui/libs/gsap/gsap.mjs +0 -6
  56. ex4nicegui/libs/gsap/utils/__init__.py +0 -0
  57. ex4nicegui/libs/gsap/utils/matrix.js +0 -420
  58. ex4nicegui/libs/gsap/utils/paths.js +0 -1487
  59. ex4nicegui/libs/gsap/utils/strings.js +0 -107
  60. ex4nicegui/reactive/local_file_picker.py +0 -208
  61. ex4nicegui/reactive/vmodel.py +0 -237
  62. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.1.dist-info/licenses}/LICENSE +0 -0
@@ -1,212 +0,0 @@
1
- /*!
2
- * EasePack 3.12.5
3
- * https://gsap.com
4
- *
5
- * @license Copyright 2008-2024, GreenSock. All rights reserved.
6
- * Subject to the terms at https://gsap.com/standard-license or for
7
- * Club GSAP members, the agreement issued with that membership.
8
- * @author: Jack Doyle, jack@greensock.com
9
- */
10
-
11
- /* eslint-disable */
12
- var gsap,
13
- _coreInitted,
14
- _registerEase,
15
- _getGSAP = function _getGSAP() {
16
- return gsap || typeof window !== "undefined" && (gsap = window.gsap) && gsap.registerPlugin && gsap;
17
- },
18
- _boolean = function _boolean(value, defaultValue) {
19
- return !!(typeof value === "undefined" ? defaultValue : value && !~(value + "").indexOf("false"));
20
- },
21
- _initCore = function _initCore(core) {
22
- gsap = core || _getGSAP();
23
-
24
- if (gsap) {
25
- _registerEase = gsap.registerEase; //add weighted ease capabilities to standard eases so users can do "power2.inOut(0.8)" for example to push everything toward the "out", or (-0.8) to push it toward the "in" (0 is neutral)
26
-
27
- var eases = gsap.parseEase(),
28
- createConfig = function createConfig(ease) {
29
- return function (ratio) {
30
- var y = 0.5 + ratio / 2;
31
-
32
- ease.config = function (p) {
33
- return ease(2 * (1 - p) * p * y + p * p);
34
- };
35
- };
36
- },
37
- p;
38
-
39
- for (p in eases) {
40
- if (!eases[p].config) {
41
- createConfig(eases[p]);
42
- }
43
- }
44
-
45
- _registerEase("slow", SlowMo);
46
-
47
- _registerEase("expoScale", ExpoScaleEase);
48
-
49
- _registerEase("rough", RoughEase);
50
-
51
- for (p in EasePack) {
52
- p !== "version" && gsap.core.globals(p, EasePack[p]);
53
- }
54
-
55
- _coreInitted = 1;
56
- }
57
- },
58
- _createSlowMo = function _createSlowMo(linearRatio, power, yoyoMode) {
59
- linearRatio = Math.min(1, linearRatio || 0.7);
60
-
61
- var pow = linearRatio < 1 ? power || power === 0 ? power : 0.7 : 0,
62
- p1 = (1 - linearRatio) / 2,
63
- p3 = p1 + linearRatio,
64
- calcEnd = _boolean(yoyoMode);
65
-
66
- return function (p) {
67
- var r = p + (0.5 - p) * pow;
68
- return p < p1 ? calcEnd ? 1 - (p = 1 - p / p1) * p : r - (p = 1 - p / p1) * p * p * p * r : p > p3 ? calcEnd ? p === 1 ? 0 : 1 - (p = (p - p3) / p1) * p : r + (p - r) * (p = (p - p3) / p1) * p * p * p : calcEnd ? 1 : r;
69
- };
70
- },
71
- _createExpoScale = function _createExpoScale(start, end, ease) {
72
- var p1 = Math.log(end / start),
73
- p2 = end - start;
74
- ease && (ease = gsap.parseEase(ease));
75
- return function (p) {
76
- return (start * Math.exp(p1 * (ease ? ease(p) : p)) - start) / p2;
77
- };
78
- },
79
- EasePoint = function EasePoint(time, value, next) {
80
- this.t = time;
81
- this.v = value;
82
-
83
- if (next) {
84
- this.next = next;
85
- next.prev = this;
86
- this.c = next.v - value;
87
- this.gap = next.t - time;
88
- }
89
- },
90
- _createRoughEase = function _createRoughEase(vars) {
91
- if (typeof vars !== "object") {
92
- //users may pass in via a string, like "rough(30)"
93
- vars = {
94
- points: +vars || 20
95
- };
96
- }
97
-
98
- var taper = vars.taper || "none",
99
- a = [],
100
- cnt = 0,
101
- points = (+vars.points || 20) | 0,
102
- i = points,
103
- randomize = _boolean(vars.randomize, true),
104
- clamp = _boolean(vars.clamp),
105
- template = gsap ? gsap.parseEase(vars.template) : 0,
106
- strength = (+vars.strength || 1) * 0.4,
107
- x,
108
- y,
109
- bump,
110
- invX,
111
- obj,
112
- pnt,
113
- recent;
114
-
115
- while (--i > -1) {
116
- x = randomize ? Math.random() : 1 / points * i;
117
- y = template ? template(x) : x;
118
-
119
- if (taper === "none") {
120
- bump = strength;
121
- } else if (taper === "out") {
122
- invX = 1 - x;
123
- bump = invX * invX * strength;
124
- } else if (taper === "in") {
125
- bump = x * x * strength;
126
- } else if (x < 0.5) {
127
- //"both" (start)
128
- invX = x * 2;
129
- bump = invX * invX * 0.5 * strength;
130
- } else {
131
- //"both" (end)
132
- invX = (1 - x) * 2;
133
- bump = invX * invX * 0.5 * strength;
134
- }
135
-
136
- if (randomize) {
137
- y += Math.random() * bump - bump * 0.5;
138
- } else if (i % 2) {
139
- y += bump * 0.5;
140
- } else {
141
- y -= bump * 0.5;
142
- }
143
-
144
- if (clamp) {
145
- if (y > 1) {
146
- y = 1;
147
- } else if (y < 0) {
148
- y = 0;
149
- }
150
- }
151
-
152
- a[cnt++] = {
153
- x: x,
154
- y: y
155
- };
156
- }
157
-
158
- a.sort(function (a, b) {
159
- return a.x - b.x;
160
- });
161
- pnt = new EasePoint(1, 1, null);
162
- i = points;
163
-
164
- while (i--) {
165
- obj = a[i];
166
- pnt = new EasePoint(obj.x, obj.y, pnt);
167
- }
168
-
169
- recent = new EasePoint(0, 0, pnt.t ? pnt : pnt.next);
170
- return function (p) {
171
- var pnt = recent;
172
-
173
- if (p > pnt.t) {
174
- while (pnt.next && p >= pnt.t) {
175
- pnt = pnt.next;
176
- }
177
-
178
- pnt = pnt.prev;
179
- } else {
180
- while (pnt.prev && p <= pnt.t) {
181
- pnt = pnt.prev;
182
- }
183
- }
184
-
185
- recent = pnt;
186
- return pnt.v + (p - pnt.t) / pnt.gap * pnt.c;
187
- };
188
- };
189
-
190
- export var SlowMo = _createSlowMo(0.7);
191
- SlowMo.ease = SlowMo; //for backward compatibility
192
-
193
- SlowMo.config = _createSlowMo;
194
- export var ExpoScaleEase = _createExpoScale(1, 2);
195
- ExpoScaleEase.config = _createExpoScale;
196
- export var RoughEase = _createRoughEase();
197
- RoughEase.ease = RoughEase; //for backward compatibility
198
-
199
- RoughEase.config = _createRoughEase;
200
- export var EasePack = {
201
- SlowMo: SlowMo,
202
- RoughEase: RoughEase,
203
- ExpoScaleEase: ExpoScaleEase
204
- };
205
-
206
- for (var p in EasePack) {
207
- EasePack[p].register = _initCore;
208
- EasePack[p].version = "3.12.5";
209
- }
210
-
211
- _getGSAP() && gsap.registerPlugin(SlowMo);
212
- export { EasePack as default };
@@ -1,341 +0,0 @@
1
- /*!
2
- * EaselPlugin 3.12.5
3
- * https://gsap.com
4
- *
5
- * @license Copyright 2008-2024, GreenSock. All rights reserved.
6
- * Subject to the terms at https://gsap.com/standard-license or for
7
- * Club GSAP members, the agreement issued with that membership.
8
- * @author: Jack Doyle, jack@greensock.com
9
- */
10
-
11
- /* eslint-disable */
12
- var gsap,
13
- _coreInitted,
14
- _win,
15
- _createJS,
16
- _ColorFilter,
17
- _ColorMatrixFilter,
18
- _colorProps = "redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),
19
- _windowExists = function _windowExists() {
20
- return typeof window !== "undefined";
21
- },
22
- _getGSAP = function _getGSAP() {
23
- return gsap || _windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap;
24
- },
25
- _getCreateJS = function _getCreateJS() {
26
- return _createJS || _win && _win.createjs || _win || {};
27
- },
28
- _warn = function _warn(message) {
29
- return console.warn(message);
30
- },
31
- _cache = function _cache(target) {
32
- var b = target.getBounds && target.getBounds();
33
-
34
- if (!b) {
35
- b = target.nominalBounds || {
36
- x: 0,
37
- y: 0,
38
- width: 100,
39
- height: 100
40
- };
41
- target.setBounds && target.setBounds(b.x, b.y, b.width, b.height);
42
- }
43
-
44
- target.cache && target.cache(b.x, b.y, b.width, b.height);
45
-
46
- _warn("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. " + target);
47
- },
48
- _parseColorFilter = function _parseColorFilter(target, v, plugin) {
49
- if (!_ColorFilter) {
50
- _ColorFilter = _getCreateJS().ColorFilter;
51
-
52
- if (!_ColorFilter) {
53
- _warn("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");
54
- }
55
- }
56
-
57
- var filters = target.filters || [],
58
- i = filters.length,
59
- c,
60
- s,
61
- e,
62
- a,
63
- p,
64
- pt;
65
-
66
- while (i--) {
67
- if (filters[i] instanceof _ColorFilter) {
68
- s = filters[i];
69
- break;
70
- }
71
- }
72
-
73
- if (!s) {
74
- s = new _ColorFilter();
75
- filters.push(s);
76
- target.filters = filters;
77
- }
78
-
79
- e = s.clone();
80
-
81
- if (v.tint != null) {
82
- c = gsap.utils.splitColor(v.tint);
83
- a = v.tintAmount != null ? +v.tintAmount : 1;
84
- e.redOffset = +c[0] * a;
85
- e.greenOffset = +c[1] * a;
86
- e.blueOffset = +c[2] * a;
87
- e.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1 - a;
88
- } else {
89
- for (p in v) {
90
- if (p !== "exposure") if (p !== "brightness") {
91
- e[p] = +v[p];
92
- }
93
- }
94
- }
95
-
96
- if (v.exposure != null) {
97
- e.redOffset = e.greenOffset = e.blueOffset = 255 * (+v.exposure - 1);
98
- e.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1;
99
- } else if (v.brightness != null) {
100
- a = +v.brightness - 1;
101
- e.redOffset = e.greenOffset = e.blueOffset = a > 0 ? a * 255 : 0;
102
- e.redMultiplier = e.greenMultiplier = e.blueMultiplier = 1 - Math.abs(a);
103
- }
104
-
105
- i = 8;
106
-
107
- while (i--) {
108
- p = _colorProps[i];
109
-
110
- if (s[p] !== e[p]) {
111
- pt = plugin.add(s, p, s[p], e[p], 0, 0, 0, 0, 0, 1);
112
-
113
- if (pt) {
114
- pt.op = "easel_colorFilter";
115
- }
116
- }
117
- }
118
-
119
- plugin._props.push("easel_colorFilter");
120
-
121
- if (!target.cacheID) {
122
- _cache(target);
123
- }
124
- },
125
- _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0],
126
- _lumR = 0.212671,
127
- _lumG = 0.715160,
128
- _lumB = 0.072169,
129
- _applyMatrix = function _applyMatrix(m, m2) {
130
- if (!(m instanceof Array) || !(m2 instanceof Array)) {
131
- return m2;
132
- }
133
-
134
- var temp = [],
135
- i = 0,
136
- z = 0,
137
- y,
138
- x;
139
-
140
- for (y = 0; y < 4; y++) {
141
- for (x = 0; x < 5; x++) {
142
- z = x === 4 ? m[i + 4] : 0;
143
- temp[i + x] = m[i] * m2[x] + m[i + 1] * m2[x + 5] + m[i + 2] * m2[x + 10] + m[i + 3] * m2[x + 15] + z;
144
- }
145
-
146
- i += 5;
147
- }
148
-
149
- return temp;
150
- },
151
- _setSaturation = function _setSaturation(m, n) {
152
- if (isNaN(n)) {
153
- return m;
154
- }
155
-
156
- var inv = 1 - n,
157
- r = inv * _lumR,
158
- g = inv * _lumG,
159
- b = inv * _lumB;
160
- return _applyMatrix([r + n, g, b, 0, 0, r, g + n, b, 0, 0, r, g, b + n, 0, 0, 0, 0, 0, 1, 0], m);
161
- },
162
- _colorize = function _colorize(m, color, amount) {
163
- if (isNaN(amount)) {
164
- amount = 1;
165
- }
166
-
167
- var c = gsap.utils.splitColor(color),
168
- r = c[0] / 255,
169
- g = c[1] / 255,
170
- b = c[2] / 255,
171
- inv = 1 - amount;
172
- return _applyMatrix([inv + amount * r * _lumR, amount * r * _lumG, amount * r * _lumB, 0, 0, amount * g * _lumR, inv + amount * g * _lumG, amount * g * _lumB, 0, 0, amount * b * _lumR, amount * b * _lumG, inv + amount * b * _lumB, 0, 0, 0, 0, 0, 1, 0], m);
173
- },
174
- _setHue = function _setHue(m, n) {
175
- if (isNaN(n)) {
176
- return m;
177
- }
178
-
179
- n *= Math.PI / 180;
180
- var c = Math.cos(n),
181
- s = Math.sin(n);
182
- return _applyMatrix([_lumR + c * (1 - _lumR) + s * -_lumR, _lumG + c * -_lumG + s * -_lumG, _lumB + c * -_lumB + s * (1 - _lumB), 0, 0, _lumR + c * -_lumR + s * 0.143, _lumG + c * (1 - _lumG) + s * 0.14, _lumB + c * -_lumB + s * -0.283, 0, 0, _lumR + c * -_lumR + s * -(1 - _lumR), _lumG + c * -_lumG + s * _lumG, _lumB + c * (1 - _lumB) + s * _lumB, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m);
183
- },
184
- _setContrast = function _setContrast(m, n) {
185
- if (isNaN(n)) {
186
- return m;
187
- }
188
-
189
- n += 0.01;
190
- return _applyMatrix([n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0], m);
191
- },
192
- _parseColorMatrixFilter = function _parseColorMatrixFilter(target, v, plugin) {
193
- if (!_ColorMatrixFilter) {
194
- _ColorMatrixFilter = _getCreateJS().ColorMatrixFilter;
195
-
196
- if (!_ColorMatrixFilter) {
197
- _warn("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");
198
- }
199
- }
200
-
201
- var filters = target.filters || [],
202
- i = filters.length,
203
- matrix,
204
- startMatrix,
205
- s,
206
- pg;
207
-
208
- while (--i > -1) {
209
- if (filters[i] instanceof _ColorMatrixFilter) {
210
- s = filters[i];
211
- break;
212
- }
213
- }
214
-
215
- if (!s) {
216
- s = new _ColorMatrixFilter(_idMatrix.slice());
217
- filters.push(s);
218
- target.filters = filters;
219
- }
220
-
221
- startMatrix = s.matrix;
222
- matrix = _idMatrix.slice();
223
-
224
- if (v.colorize != null) {
225
- matrix = _colorize(matrix, v.colorize, Number(v.colorizeAmount));
226
- }
227
-
228
- if (v.contrast != null) {
229
- matrix = _setContrast(matrix, Number(v.contrast));
230
- }
231
-
232
- if (v.hue != null) {
233
- matrix = _setHue(matrix, Number(v.hue));
234
- }
235
-
236
- if (v.saturation != null) {
237
- matrix = _setSaturation(matrix, Number(v.saturation));
238
- }
239
-
240
- i = matrix.length;
241
-
242
- while (--i > -1) {
243
- if (matrix[i] !== startMatrix[i]) {
244
- pg = plugin.add(startMatrix, i, startMatrix[i], matrix[i], 0, 0, 0, 0, 0, 1);
245
-
246
- if (pg) {
247
- pg.op = "easel_colorMatrixFilter";
248
- }
249
- }
250
- }
251
-
252
- plugin._props.push("easel_colorMatrixFilter");
253
-
254
- if (!target.cacheID) {
255
- _cache();
256
- }
257
-
258
- plugin._matrix = startMatrix;
259
- },
260
- _initCore = function _initCore(core) {
261
- gsap = core || _getGSAP();
262
-
263
- if (_windowExists()) {
264
- _win = window;
265
- }
266
-
267
- if (gsap) {
268
- _coreInitted = 1;
269
- }
270
- };
271
-
272
- export var EaselPlugin = {
273
- version: "3.12.5",
274
- name: "easel",
275
- init: function init(target, value, tween, index, targets) {
276
- if (!_coreInitted) {
277
- _initCore();
278
-
279
- if (!gsap) {
280
- _warn("Please gsap.registerPlugin(EaselPlugin)");
281
- }
282
- }
283
-
284
- this.target = target;
285
- var p, pt, tint, colorMatrix, end, labels, i;
286
-
287
- for (p in value) {
288
- end = value[p];
289
-
290
- if (p === "colorFilter" || p === "tint" || p === "tintAmount" || p === "exposure" || p === "brightness") {
291
- if (!tint) {
292
- _parseColorFilter(target, value.colorFilter || value, this);
293
-
294
- tint = true;
295
- }
296
- } else if (p === "saturation" || p === "contrast" || p === "hue" || p === "colorize" || p === "colorizeAmount") {
297
- if (!colorMatrix) {
298
- _parseColorMatrixFilter(target, value.colorMatrixFilter || value, this);
299
-
300
- colorMatrix = true;
301
- }
302
- } else if (p === "frame") {
303
- if (typeof end === "string" && end.charAt(1) !== "=" && (labels = target.labels)) {
304
- for (i = 0; i < labels.length; i++) {
305
- if (labels[i].label === end) {
306
- end = labels[i].position;
307
- }
308
- }
309
- }
310
-
311
- pt = this.add(target, "gotoAndStop", target.currentFrame, end, index, targets, Math.round, 0, 0, 1);
312
-
313
- if (pt) {
314
- pt.op = p;
315
- }
316
- } else if (target[p] != null) {
317
- this.add(target, p, "get", end);
318
- }
319
- }
320
- },
321
- render: function render(ratio, data) {
322
- var pt = data._pt;
323
-
324
- while (pt) {
325
- pt.r(ratio, pt.d);
326
- pt = pt._next;
327
- }
328
-
329
- if (data.target.cacheID) {
330
- data.target.updateCache();
331
- }
332
- },
333
- register: _initCore
334
- };
335
-
336
- EaselPlugin.registerCreateJS = function (createjs) {
337
- _createJS = createjs;
338
- };
339
-
340
- _getGSAP() && gsap.registerPlugin(EaselPlugin);
341
- export { EaselPlugin as default };