ex4nicegui 0.8.9__py3-none-any.whl → 0.9.0__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 (50) hide show
  1. ex4nicegui/__init__.py +2 -0
  2. ex4nicegui/bi/dataSource.py +1 -2
  3. ex4nicegui/bi/elements/ui_aggrid.py +1 -2
  4. ex4nicegui/layout/rxFlex/index.py +0 -1
  5. ex4nicegui/reactive/EChartsComponent/ECharts.js +1 -1
  6. ex4nicegui/reactive/EChartsComponent/ECharts.py +22 -5
  7. ex4nicegui/reactive/__init__.py +2 -3
  8. ex4nicegui/reactive/_vmodel.py +150 -0
  9. ex4nicegui/reactive/base.py +2 -3
  10. ex4nicegui/reactive/deferredTask.py +2 -5
  11. ex4nicegui/reactive/mermaid/mermaid.js +1 -1
  12. ex4nicegui/reactive/mermaid/mermaid.py +0 -5
  13. ex4nicegui/reactive/vfor.py +1 -0
  14. ex4nicegui/toolbox/core/vue_use.py +1 -1
  15. ex4nicegui/utils/clientScope.py +5 -8
  16. ex4nicegui/utils/proxy/descriptor.py +0 -1
  17. ex4nicegui/utils/signals.py +2 -1
  18. {ex4nicegui-0.8.9.dist-info → ex4nicegui-0.9.0.dist-info}/METADATA +11 -21
  19. {ex4nicegui-0.8.9.dist-info → ex4nicegui-0.9.0.dist-info}/RECORD +46 -74
  20. {ex4nicegui-0.8.9.dist-info → ex4nicegui-0.9.0.dist-info}/WHEEL +1 -1
  21. ex4nicegui/gsap/__init__.py +0 -23
  22. ex4nicegui/gsap/gsap.py +0 -145
  23. ex4nicegui/gsap/timeline.js +0 -56
  24. ex4nicegui/gsap/timeline.py +0 -78
  25. ex4nicegui/gsap/wrapGsap.js +0 -48
  26. ex4nicegui/libs/gsap/.DS_Store +0 -0
  27. ex4nicegui/libs/gsap/CSSPlugin.js +0 -1577
  28. ex4nicegui/libs/gsap/CSSRulePlugin.js +0 -134
  29. ex4nicegui/libs/gsap/CustomEase.js +0 -371
  30. ex4nicegui/libs/gsap/Draggable.js +0 -2699
  31. ex4nicegui/libs/gsap/EasePack.js +0 -212
  32. ex4nicegui/libs/gsap/EaselPlugin.js +0 -341
  33. ex4nicegui/libs/gsap/Flip.js +0 -1518
  34. ex4nicegui/libs/gsap/MotionPathPlugin.js +0 -368
  35. ex4nicegui/libs/gsap/Observer.js +0 -686
  36. ex4nicegui/libs/gsap/PixiPlugin.js +0 -461
  37. ex4nicegui/libs/gsap/ScrollToPlugin.js +0 -273
  38. ex4nicegui/libs/gsap/ScrollTrigger.js +0 -2658
  39. ex4nicegui/libs/gsap/TextPlugin.js +0 -166
  40. ex4nicegui/libs/gsap/__init__.py +0 -0
  41. ex4nicegui/libs/gsap/all.js +0 -31
  42. ex4nicegui/libs/gsap/gsap-core.js +0 -4487
  43. ex4nicegui/libs/gsap/gsap.mjs +0 -6
  44. ex4nicegui/libs/gsap/utils/__init__.py +0 -0
  45. ex4nicegui/libs/gsap/utils/matrix.js +0 -420
  46. ex4nicegui/libs/gsap/utils/paths.js +0 -1487
  47. ex4nicegui/libs/gsap/utils/strings.js +0 -107
  48. ex4nicegui/reactive/local_file_picker.py +0 -208
  49. ex4nicegui/reactive/vmodel.py +0 -237
  50. {ex4nicegui-0.8.9.dist-info → ex4nicegui-0.9.0.dist-info/licenses}/LICENSE +0 -0
@@ -1,134 +0,0 @@
1
- /*!
2
- * CSSRulePlugin 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
- _doc,
16
- CSSPlugin,
17
- _windowExists = function _windowExists() {
18
- return typeof window !== "undefined";
19
- },
20
- _getGSAP = function _getGSAP() {
21
- return gsap || _windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap;
22
- },
23
- _checkRegister = function _checkRegister() {
24
- if (!_coreInitted) {
25
- _initCore();
26
-
27
- if (!CSSPlugin) {
28
- console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)");
29
- }
30
- }
31
-
32
- return _coreInitted;
33
- },
34
- _initCore = function _initCore(core) {
35
- gsap = core || _getGSAP();
36
-
37
- if (_windowExists()) {
38
- _win = window;
39
- _doc = document;
40
- }
41
-
42
- if (gsap) {
43
- CSSPlugin = gsap.plugins.css;
44
-
45
- if (CSSPlugin) {
46
- _coreInitted = 1;
47
- }
48
- }
49
- };
50
-
51
- export var CSSRulePlugin = {
52
- version: "3.12.5",
53
- name: "cssRule",
54
- init: function init(target, value, tween, index, targets) {
55
- if (!_checkRegister() || typeof target.cssText === "undefined") {
56
- return false;
57
- }
58
-
59
- var div = target._gsProxy = target._gsProxy || _doc.createElement("div");
60
-
61
- this.ss = target;
62
- this.style = div.style;
63
- div.style.cssText = target.cssText;
64
- CSSPlugin.prototype.init.call(this, div, value, tween, index, targets); //we just offload all the work to the regular CSSPlugin and then copy the cssText back over to the rule in the render() method. This allows us to have all of the updates to CSSPlugin automatically flow through to CSSRulePlugin instead of having to maintain both
65
- },
66
- render: function render(ratio, data) {
67
- var pt = data._pt,
68
- style = data.style,
69
- ss = data.ss,
70
- i;
71
-
72
- while (pt) {
73
- pt.r(ratio, pt.d);
74
- pt = pt._next;
75
- }
76
-
77
- i = style.length;
78
-
79
- while (--i > -1) {
80
- ss[style[i]] = style[style[i]];
81
- }
82
- },
83
- getRule: function getRule(selector) {
84
- _checkRegister();
85
-
86
- var ruleProp = _doc.all ? "rules" : "cssRules",
87
- styleSheets = _doc.styleSheets,
88
- i = styleSheets.length,
89
- pseudo = selector.charAt(0) === ":",
90
- j,
91
- curSS,
92
- cs,
93
- a;
94
- selector = (pseudo ? "" : ",") + selector.split("::").join(":").toLowerCase() + ","; //note: old versions of IE report tag name selectors as upper case, so we just change everything to lowercase.
95
-
96
- if (pseudo) {
97
- a = [];
98
- }
99
-
100
- while (i--) {
101
- //Firefox may throw insecure operation errors when css is loaded from other domains, so try/catch.
102
- try {
103
- curSS = styleSheets[i][ruleProp];
104
-
105
- if (!curSS) {
106
- continue;
107
- }
108
-
109
- j = curSS.length;
110
- } catch (e) {
111
- console.warn(e);
112
- continue;
113
- }
114
-
115
- while (--j > -1) {
116
- cs = curSS[j];
117
-
118
- if (cs.selectorText && ("," + cs.selectorText.split("::").join(":").toLowerCase() + ",").indexOf(selector) !== -1) {
119
- //note: IE adds an extra ":" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.
120
- if (pseudo) {
121
- a.push(cs.style);
122
- } else {
123
- return cs.style;
124
- }
125
- }
126
- }
127
- }
128
-
129
- return a;
130
- },
131
- register: _initCore
132
- };
133
- _getGSAP() && gsap.registerPlugin(CSSRulePlugin);
134
- export { CSSRulePlugin as default };
@@ -1,371 +0,0 @@
1
- /*!
2
- * CustomEase 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
- import { stringToRawPath, rawPathToString, transformRawPath } from "./utils/paths.js";
13
-
14
- var gsap,
15
- _coreInitted,
16
- _getGSAP = function _getGSAP() {
17
- return gsap || typeof window !== "undefined" && (gsap = window.gsap) && gsap.registerPlugin && gsap;
18
- },
19
- _initCore = function _initCore() {
20
- gsap = _getGSAP();
21
-
22
- if (gsap) {
23
- gsap.registerEase("_CE", CustomEase.create);
24
- _coreInitted = 1;
25
- } else {
26
- console.warn("Please gsap.registerPlugin(CustomEase)");
27
- }
28
- },
29
- _bigNum = 1e20,
30
- _round = function _round(value) {
31
- return ~~(value * 1000 + (value < 0 ? -.5 : .5)) / 1000;
32
- },
33
- _bonusValidated = 1,
34
- //<name>CustomEase</name>
35
- _numExp = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,
36
- //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.
37
- _needsParsingExp = /[cLlsSaAhHvVtTqQ]/g,
38
- _findMinimum = function _findMinimum(values) {
39
- var l = values.length,
40
- min = _bigNum,
41
- i;
42
-
43
- for (i = 1; i < l; i += 6) {
44
- +values[i] < min && (min = +values[i]);
45
- }
46
-
47
- return min;
48
- },
49
- //takes all the points and translates/scales them so that the x starts at 0 and ends at 1.
50
- _normalize = function _normalize(values, height, originY) {
51
- if (!originY && originY !== 0) {
52
- originY = Math.max(+values[values.length - 1], +values[1]);
53
- }
54
-
55
- var tx = +values[0] * -1,
56
- ty = -originY,
57
- l = values.length,
58
- sx = 1 / (+values[l - 2] + tx),
59
- sy = -height || (Math.abs(+values[l - 1] - +values[1]) < 0.01 * (+values[l - 2] - +values[0]) ? _findMinimum(values) + ty : +values[l - 1] + ty),
60
- i;
61
-
62
- if (sy) {
63
- //typically y ends at 1 (so that the end values are reached)
64
- sy = 1 / sy;
65
- } else {
66
- //in case the ease returns to its beginning value, scale everything proportionally
67
- sy = -sx;
68
- }
69
-
70
- for (i = 0; i < l; i += 2) {
71
- values[i] = (+values[i] + tx) * sx;
72
- values[i + 1] = (+values[i + 1] + ty) * sy;
73
- }
74
- },
75
- //note that this function returns point objects like {x, y} rather than working with segments which are arrays with alternating x, y values as in the similar function in paths.js
76
- _bezierToPoints = function _bezierToPoints(x1, y1, x2, y2, x3, y3, x4, y4, threshold, points, index) {
77
- var x12 = (x1 + x2) / 2,
78
- y12 = (y1 + y2) / 2,
79
- x23 = (x2 + x3) / 2,
80
- y23 = (y2 + y3) / 2,
81
- x34 = (x3 + x4) / 2,
82
- y34 = (y3 + y4) / 2,
83
- x123 = (x12 + x23) / 2,
84
- y123 = (y12 + y23) / 2,
85
- x234 = (x23 + x34) / 2,
86
- y234 = (y23 + y34) / 2,
87
- x1234 = (x123 + x234) / 2,
88
- y1234 = (y123 + y234) / 2,
89
- dx = x4 - x1,
90
- dy = y4 - y1,
91
- d2 = Math.abs((x2 - x4) * dy - (y2 - y4) * dx),
92
- d3 = Math.abs((x3 - x4) * dy - (y3 - y4) * dx),
93
- length;
94
-
95
- if (!points) {
96
- points = [{
97
- x: x1,
98
- y: y1
99
- }, {
100
- x: x4,
101
- y: y4
102
- }];
103
- index = 1;
104
- }
105
-
106
- points.splice(index || points.length - 1, 0, {
107
- x: x1234,
108
- y: y1234
109
- });
110
-
111
- if ((d2 + d3) * (d2 + d3) > threshold * (dx * dx + dy * dy)) {
112
- length = points.length;
113
-
114
- _bezierToPoints(x1, y1, x12, y12, x123, y123, x1234, y1234, threshold, points, index);
115
-
116
- _bezierToPoints(x1234, y1234, x234, y234, x34, y34, x4, y4, threshold, points, index + 1 + (points.length - length));
117
- }
118
-
119
- return points;
120
- };
121
-
122
- export var CustomEase = /*#__PURE__*/function () {
123
- function CustomEase(id, data, config) {
124
- _coreInitted || _initCore();
125
- this.id = id;
126
- _bonusValidated && this.setData(data, config);
127
- }
128
-
129
- var _proto = CustomEase.prototype;
130
-
131
- _proto.setData = function setData(data, config) {
132
- config = config || {};
133
- data = data || "0,0,1,1";
134
- var values = data.match(_numExp),
135
- closest = 1,
136
- points = [],
137
- lookup = [],
138
- precision = config.precision || 1,
139
- fast = precision <= 1,
140
- l,
141
- a1,
142
- a2,
143
- i,
144
- inc,
145
- j,
146
- point,
147
- prevPoint,
148
- p;
149
- this.data = data;
150
-
151
- if (_needsParsingExp.test(data) || ~data.indexOf("M") && data.indexOf("C") < 0) {
152
- values = stringToRawPath(data)[0];
153
- }
154
-
155
- l = values.length;
156
-
157
- if (l === 4) {
158
- values.unshift(0, 0);
159
- values.push(1, 1);
160
- l = 8;
161
- } else if ((l - 2) % 6) {
162
- throw "Invalid CustomEase";
163
- }
164
-
165
- if (+values[0] !== 0 || +values[l - 2] !== 1) {
166
- _normalize(values, config.height, config.originY);
167
- }
168
-
169
- this.segment = values;
170
-
171
- for (i = 2; i < l; i += 6) {
172
- a1 = {
173
- x: +values[i - 2],
174
- y: +values[i - 1]
175
- };
176
- a2 = {
177
- x: +values[i + 4],
178
- y: +values[i + 5]
179
- };
180
- points.push(a1, a2);
181
-
182
- _bezierToPoints(a1.x, a1.y, +values[i], +values[i + 1], +values[i + 2], +values[i + 3], a2.x, a2.y, 1 / (precision * 200000), points, points.length - 1);
183
- }
184
-
185
- l = points.length;
186
-
187
- for (i = 0; i < l; i++) {
188
- point = points[i];
189
- prevPoint = points[i - 1] || point;
190
-
191
- if ((point.x > prevPoint.x || prevPoint.y !== point.y && prevPoint.x === point.x || point === prevPoint) && point.x <= 1) {
192
- //if a point goes BACKWARD in time or is a duplicate, just drop it. Also it shouldn't go past 1 on the x axis, as could happen in a string like "M0,0 C0,0 0.12,0.68 0.18,0.788 0.195,0.845 0.308,1 0.32,1 0.403,1.005 0.398,1 0.5,1 0.602,1 0.816,1.005 0.9,1 0.91,1 0.948,0.69 0.962,0.615 1.003,0.376 1,0 1,0".
193
- prevPoint.cx = point.x - prevPoint.x; //change in x between this point and the next point (performance optimization)
194
-
195
- prevPoint.cy = point.y - prevPoint.y;
196
- prevPoint.n = point;
197
- prevPoint.nx = point.x; //next point's x value (performance optimization, making lookups faster in getRatio()). Remember, the lookup will always land on a spot where it's either this point or the very next one (never beyond that)
198
-
199
- if (fast && i > 1 && Math.abs(prevPoint.cy / prevPoint.cx - points[i - 2].cy / points[i - 2].cx) > 2) {
200
- //if there's a sudden change in direction, prioritize accuracy over speed. Like a bounce ease - you don't want to risk the sampling chunks landing on each side of the bounce anchor and having it clipped off.
201
- fast = 0;
202
- }
203
-
204
- if (prevPoint.cx < closest) {
205
- if (!prevPoint.cx) {
206
- prevPoint.cx = 0.001; //avoids math problems in getRatio() (dividing by zero)
207
-
208
- if (i === l - 1) {
209
- //in case the final segment goes vertical RIGHT at the end, make sure we end at the end.
210
- prevPoint.x -= 0.001;
211
- closest = Math.min(closest, 0.001);
212
- fast = 0;
213
- }
214
- } else {
215
- closest = prevPoint.cx;
216
- }
217
- }
218
- } else {
219
- points.splice(i--, 1);
220
- l--;
221
- }
222
- }
223
-
224
- l = 1 / closest + 1 | 0;
225
- inc = 1 / l;
226
- j = 0;
227
- point = points[0];
228
-
229
- if (fast) {
230
- for (i = 0; i < l; i++) {
231
- //for fastest lookups, we just sample along the path at equal x (time) distance. Uses more memory and is slightly less accurate for anchors that don't land on the sampling points, but for the vast majority of eases it's excellent (and fast).
232
- p = i * inc;
233
-
234
- if (point.nx < p) {
235
- point = points[++j];
236
- }
237
-
238
- a1 = point.y + (p - point.x) / point.cx * point.cy;
239
- lookup[i] = {
240
- x: p,
241
- cx: inc,
242
- y: a1,
243
- cy: 0,
244
- nx: 9
245
- };
246
-
247
- if (i) {
248
- lookup[i - 1].cy = a1 - lookup[i - 1].y;
249
- }
250
- }
251
-
252
- lookup[l - 1].cy = points[points.length - 1].y - a1;
253
- } else {
254
- //this option is more accurate, ensuring that EVERY anchor is hit perfectly. Clipping across a bounce, for example, would never happen.
255
- for (i = 0; i < l; i++) {
256
- //build a lookup table based on the smallest distance so that we can instantly find the appropriate point (well, it'll either be that point or the very next one). We'll look up based on the linear progress. So it's it's 0.5 and the lookup table has 100 elements, it'd be like lookup[Math.floor(0.5 * 100)]
257
- if (point.nx < i * inc) {
258
- point = points[++j];
259
- }
260
-
261
- lookup[i] = point;
262
- }
263
-
264
- if (j < points.length - 1) {
265
- lookup[i - 1] = points[points.length - 2];
266
- }
267
- } //this._calcEnd = (points[points.length-1].y !== 1 || points[0].y !== 0); //ensures that we don't run into floating point errors. As long as we're starting at 0 and ending at 1, tell GSAP to skip the final calculation and use 0/1 as the factor.
268
-
269
-
270
- this.ease = function (p) {
271
- var point = lookup[p * l | 0] || lookup[l - 1];
272
-
273
- if (point.nx < p) {
274
- point = point.n;
275
- }
276
-
277
- return point.y + (p - point.x) / point.cx * point.cy;
278
- };
279
-
280
- this.ease.custom = this;
281
- this.id && gsap && gsap.registerEase(this.id, this.ease);
282
- return this;
283
- };
284
-
285
- _proto.getSVGData = function getSVGData(config) {
286
- return CustomEase.getSVGData(this, config);
287
- };
288
-
289
- CustomEase.create = function create(id, data, config) {
290
- return new CustomEase(id, data, config).ease;
291
- };
292
-
293
- CustomEase.register = function register(core) {
294
- gsap = core;
295
-
296
- _initCore();
297
- };
298
-
299
- CustomEase.get = function get(id) {
300
- return gsap.parseEase(id);
301
- };
302
-
303
- CustomEase.getSVGData = function getSVGData(ease, config) {
304
- config = config || {};
305
- var width = config.width || 100,
306
- height = config.height || 100,
307
- x = config.x || 0,
308
- y = (config.y || 0) + height,
309
- e = gsap.utils.toArray(config.path)[0],
310
- a,
311
- slope,
312
- i,
313
- inc,
314
- tx,
315
- ty,
316
- precision,
317
- threshold,
318
- prevX,
319
- prevY;
320
-
321
- if (config.invert) {
322
- height = -height;
323
- y = 0;
324
- }
325
-
326
- if (typeof ease === "string") {
327
- ease = gsap.parseEase(ease);
328
- }
329
-
330
- if (ease.custom) {
331
- ease = ease.custom;
332
- }
333
-
334
- if (ease instanceof CustomEase) {
335
- a = rawPathToString(transformRawPath([ease.segment], width, 0, 0, -height, x, y));
336
- } else {
337
- a = [x, y];
338
- precision = Math.max(5, (config.precision || 1) * 200);
339
- inc = 1 / precision;
340
- precision += 2;
341
- threshold = 5 / precision;
342
- prevX = _round(x + inc * width);
343
- prevY = _round(y + ease(inc) * -height);
344
- slope = (prevY - y) / (prevX - x);
345
-
346
- for (i = 2; i < precision; i++) {
347
- tx = _round(x + i * inc * width);
348
- ty = _round(y + ease(i * inc) * -height);
349
-
350
- if (Math.abs((ty - prevY) / (tx - prevX) - slope) > threshold || i === precision - 1) {
351
- //only add points when the slope changes beyond the threshold
352
- a.push(prevX, prevY);
353
- slope = (ty - prevY) / (tx - prevX);
354
- }
355
-
356
- prevX = tx;
357
- prevY = ty;
358
- }
359
-
360
- a = "M" + a.join(",");
361
- }
362
-
363
- e && e.setAttribute("d", a);
364
- return a;
365
- };
366
-
367
- return CustomEase;
368
- }();
369
- _getGSAP() && gsap.registerPlugin(CustomEase);
370
- CustomEase.version = "3.12.5";
371
- export { CustomEase as default };