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,6 +0,0 @@
1
- import { gsap, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, TweenLite, TimelineLite, TimelineMax } from "./gsap-core.js";
2
- import { CSSPlugin } from "./CSSPlugin.js";
3
- var gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap,
4
- // to protect from tree shaking
5
- TweenMaxWithCSS = gsapWithCSS.core.Tween;
6
- export { gsapWithCSS as gsap, gsapWithCSS as default, CSSPlugin, TweenMaxWithCSS as TweenMax, TweenLite, TimelineMax, TimelineLite, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ };
File without changes
@@ -1,420 +0,0 @@
1
- /*!
2
- * matrix 3.12.5
3
- * https://gsap.com
4
- *
5
- * 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 _doc,
13
- _win,
14
- _docElement,
15
- _body,
16
- _divContainer,
17
- _svgContainer,
18
- _identityMatrix,
19
- _gEl,
20
- _transformProp = "transform",
21
- _transformOriginProp = _transformProp + "Origin",
22
- _hasOffsetBug,
23
- _setDoc = function _setDoc(element) {
24
- var doc = element.ownerDocument || element;
25
-
26
- if (!(_transformProp in element.style) && "msTransform" in element.style) {
27
- //to improve compatibility with old Microsoft browsers
28
- _transformProp = "msTransform";
29
- _transformOriginProp = _transformProp + "Origin";
30
- }
31
-
32
- while (doc.parentNode && (doc = doc.parentNode)) {}
33
-
34
- _win = window;
35
- _identityMatrix = new Matrix2D();
36
-
37
- if (doc) {
38
- _doc = doc;
39
- _docElement = doc.documentElement;
40
- _body = doc.body;
41
- _gEl = _doc.createElementNS("http://www.w3.org/2000/svg", "g"); // prevent any existing CSS from transforming it
42
-
43
- _gEl.style.transform = "none"; // now test for the offset reporting bug. Use feature detection instead of browser sniffing to make things more bulletproof and future-proof. Hopefully Safari will fix their bug soon.
44
-
45
- var d1 = doc.createElement("div"),
46
- d2 = doc.createElement("div"),
47
- root = doc && (doc.body || doc.firstElementChild);
48
-
49
- if (root && root.appendChild) {
50
- root.appendChild(d1);
51
- d1.appendChild(d2);
52
- d1.setAttribute("style", "position:static;transform:translate3d(0,0,1px)");
53
- _hasOffsetBug = d2.offsetParent !== d1;
54
- root.removeChild(d1);
55
- }
56
- }
57
-
58
- return doc;
59
- },
60
- _forceNonZeroScale = function _forceNonZeroScale(e) {
61
- // walks up the element's ancestors and finds any that had their scale set to 0 via GSAP, and changes them to 0.0001 to ensure that measurements work. Firefox has a bug that causes it to incorrectly report getBoundingClientRect() when scale is 0.
62
- var a, cache;
63
-
64
- while (e && e !== _body) {
65
- cache = e._gsap;
66
- cache && cache.uncache && cache.get(e, "x"); // force re-parsing of transforms if necessary
67
-
68
- if (cache && !cache.scaleX && !cache.scaleY && cache.renderTransform) {
69
- cache.scaleX = cache.scaleY = 1e-4;
70
- cache.renderTransform(1, cache);
71
- a ? a.push(cache) : a = [cache];
72
- }
73
-
74
- e = e.parentNode;
75
- }
76
-
77
- return a;
78
- },
79
- // possible future addition: pass an element to _forceDisplay() and it'll walk up all its ancestors and make sure anything with display: none is set to display: block, and if there's no parentNode, it'll add it to the body. It returns an Array that you can then feed to _revertDisplay() to have it revert all the changes it made.
80
- // _forceDisplay = e => {
81
- // let a = [],
82
- // parent;
83
- // while (e && e !== _body) {
84
- // parent = e.parentNode;
85
- // (_win.getComputedStyle(e).display === "none" || !parent) && a.push(e, e.style.display, parent) && (e.style.display = "block");
86
- // parent || _body.appendChild(e);
87
- // e = parent;
88
- // }
89
- // return a;
90
- // },
91
- // _revertDisplay = a => {
92
- // for (let i = 0; i < a.length; i+=3) {
93
- // a[i+1] ? (a[i].style.display = a[i+1]) : a[i].style.removeProperty("display");
94
- // a[i+2] || a[i].parentNode.removeChild(a[i]);
95
- // }
96
- // },
97
- _svgTemps = [],
98
- //we create 3 elements for SVG, and 3 for other DOM elements and cache them for performance reasons. They get nested in _divContainer and _svgContainer so that just one element is added to the DOM on each successive attempt. Again, performance is key.
99
- _divTemps = [],
100
- _getDocScrollTop = function _getDocScrollTop() {
101
- return _win.pageYOffset || _doc.scrollTop || _docElement.scrollTop || _body.scrollTop || 0;
102
- },
103
- _getDocScrollLeft = function _getDocScrollLeft() {
104
- return _win.pageXOffset || _doc.scrollLeft || _docElement.scrollLeft || _body.scrollLeft || 0;
105
- },
106
- _svgOwner = function _svgOwner(element) {
107
- return element.ownerSVGElement || ((element.tagName + "").toLowerCase() === "svg" ? element : null);
108
- },
109
- _isFixed = function _isFixed(element) {
110
- if (_win.getComputedStyle(element).position === "fixed") {
111
- return true;
112
- }
113
-
114
- element = element.parentNode;
115
-
116
- if (element && element.nodeType === 1) {
117
- // avoid document fragments which will throw an error.
118
- return _isFixed(element);
119
- }
120
- },
121
- _createSibling = function _createSibling(element, i) {
122
- if (element.parentNode && (_doc || _setDoc(element))) {
123
- var svg = _svgOwner(element),
124
- ns = svg ? svg.getAttribute("xmlns") || "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml",
125
- type = svg ? i ? "rect" : "g" : "div",
126
- x = i !== 2 ? 0 : 100,
127
- y = i === 3 ? 100 : 0,
128
- css = "position:absolute;display:block;pointer-events:none;margin:0;padding:0;",
129
- e = _doc.createElementNS ? _doc.createElementNS(ns.replace(/^https/, "http"), type) : _doc.createElement(type);
130
-
131
- if (i) {
132
- if (!svg) {
133
- if (!_divContainer) {
134
- _divContainer = _createSibling(element);
135
- _divContainer.style.cssText = css;
136
- }
137
-
138
- e.style.cssText = css + "width:0.1px;height:0.1px;top:" + y + "px;left:" + x + "px";
139
-
140
- _divContainer.appendChild(e);
141
- } else {
142
- _svgContainer || (_svgContainer = _createSibling(element));
143
- e.setAttribute("width", 0.01);
144
- e.setAttribute("height", 0.01);
145
- e.setAttribute("transform", "translate(" + x + "," + y + ")");
146
-
147
- _svgContainer.appendChild(e);
148
- }
149
- }
150
-
151
- return e;
152
- }
153
-
154
- throw "Need document and parent.";
155
- },
156
- _consolidate = function _consolidate(m) {
157
- // replaces SVGTransformList.consolidate() because a bug in Firefox causes it to break pointer events. See https://gsap.com/forums/topic/23248-touch-is-not-working-on-draggable-in-firefox-windows-v324/?tab=comments#comment-109800
158
- var c = new Matrix2D(),
159
- i = 0;
160
-
161
- for (; i < m.numberOfItems; i++) {
162
- c.multiply(m.getItem(i).matrix);
163
- }
164
-
165
- return c;
166
- },
167
- _getCTM = function _getCTM(svg) {
168
- var m = svg.getCTM(),
169
- transform;
170
-
171
- if (!m) {
172
- // Firefox returns null for getCTM() on root <svg> elements, so this is a workaround using a <g> that we temporarily append.
173
- transform = svg.style[_transformProp];
174
- svg.style[_transformProp] = "none"; // a bug in Firefox causes css transforms to contaminate the getCTM()
175
-
176
- svg.appendChild(_gEl);
177
- m = _gEl.getCTM();
178
- svg.removeChild(_gEl);
179
- transform ? svg.style[_transformProp] = transform : svg.style.removeProperty(_transformProp.replace(/([A-Z])/g, "-$1").toLowerCase());
180
- }
181
-
182
- return m || _identityMatrix.clone(); // Firefox will still return null if the <svg> has a width/height of 0 in the browser.
183
- },
184
- _placeSiblings = function _placeSiblings(element, adjustGOffset) {
185
- var svg = _svgOwner(element),
186
- isRootSVG = element === svg,
187
- siblings = svg ? _svgTemps : _divTemps,
188
- parent = element.parentNode,
189
- container,
190
- m,
191
- b,
192
- x,
193
- y,
194
- cs;
195
-
196
- if (element === _win) {
197
- return element;
198
- }
199
-
200
- siblings.length || siblings.push(_createSibling(element, 1), _createSibling(element, 2), _createSibling(element, 3));
201
- container = svg ? _svgContainer : _divContainer;
202
-
203
- if (svg) {
204
- if (isRootSVG) {
205
- b = _getCTM(element);
206
- x = -b.e / b.a;
207
- y = -b.f / b.d;
208
- m = _identityMatrix;
209
- } else if (element.getBBox) {
210
- b = element.getBBox();
211
- m = element.transform ? element.transform.baseVal : {}; // IE11 doesn't follow the spec.
212
-
213
- m = !m.numberOfItems ? _identityMatrix : m.numberOfItems > 1 ? _consolidate(m) : m.getItem(0).matrix; // don't call m.consolidate().matrix because a bug in Firefox makes pointer events not work when consolidate() is called on the same tick as getBoundingClientRect()! See https://gsap.com/forums/topic/23248-touch-is-not-working-on-draggable-in-firefox-windows-v324/?tab=comments#comment-109800
214
-
215
- x = m.a * b.x + m.c * b.y;
216
- y = m.b * b.x + m.d * b.y;
217
- } else {
218
- // may be a <mask> which has no getBBox() so just use defaults instead of throwing errors.
219
- m = new Matrix2D();
220
- x = y = 0;
221
- }
222
-
223
- if (adjustGOffset && element.tagName.toLowerCase() === "g") {
224
- x = y = 0;
225
- }
226
-
227
- (isRootSVG ? svg : parent).appendChild(container);
228
- container.setAttribute("transform", "matrix(" + m.a + "," + m.b + "," + m.c + "," + m.d + "," + (m.e + x) + "," + (m.f + y) + ")");
229
- } else {
230
- x = y = 0;
231
-
232
- if (_hasOffsetBug) {
233
- // some browsers (like Safari) have a bug that causes them to misreport offset values. When an ancestor element has a transform applied, it's supposed to treat it as if it's position: relative (new context). Safari botches this, so we need to find the closest ancestor (between the element and its offsetParent) that has a transform applied and if one is found, grab its offsetTop/Left and subtract them to compensate.
234
- m = element.offsetParent;
235
- b = element;
236
-
237
- while (b && (b = b.parentNode) && b !== m && b.parentNode) {
238
- if ((_win.getComputedStyle(b)[_transformProp] + "").length > 4) {
239
- x = b.offsetLeft;
240
- y = b.offsetTop;
241
- b = 0;
242
- }
243
- }
244
- }
245
-
246
- cs = _win.getComputedStyle(element);
247
-
248
- if (cs.position !== "absolute" && cs.position !== "fixed") {
249
- m = element.offsetParent;
250
-
251
- while (parent && parent !== m) {
252
- // if there's an ancestor element between the element and its offsetParent that's scrolled, we must factor that in.
253
- x += parent.scrollLeft || 0;
254
- y += parent.scrollTop || 0;
255
- parent = parent.parentNode;
256
- }
257
- }
258
-
259
- b = container.style;
260
- b.top = element.offsetTop - y + "px";
261
- b.left = element.offsetLeft - x + "px";
262
- b[_transformProp] = cs[_transformProp];
263
- b[_transformOriginProp] = cs[_transformOriginProp]; // b.border = m.border;
264
- // b.borderLeftStyle = m.borderLeftStyle;
265
- // b.borderTopStyle = m.borderTopStyle;
266
- // b.borderLeftWidth = m.borderLeftWidth;
267
- // b.borderTopWidth = m.borderTopWidth;
268
-
269
- b.position = cs.position === "fixed" ? "fixed" : "absolute";
270
- element.parentNode.appendChild(container);
271
- }
272
-
273
- return container;
274
- },
275
- _setMatrix = function _setMatrix(m, a, b, c, d, e, f) {
276
- m.a = a;
277
- m.b = b;
278
- m.c = c;
279
- m.d = d;
280
- m.e = e;
281
- m.f = f;
282
- return m;
283
- };
284
-
285
- export var Matrix2D = /*#__PURE__*/function () {
286
- function Matrix2D(a, b, c, d, e, f) {
287
- if (a === void 0) {
288
- a = 1;
289
- }
290
-
291
- if (b === void 0) {
292
- b = 0;
293
- }
294
-
295
- if (c === void 0) {
296
- c = 0;
297
- }
298
-
299
- if (d === void 0) {
300
- d = 1;
301
- }
302
-
303
- if (e === void 0) {
304
- e = 0;
305
- }
306
-
307
- if (f === void 0) {
308
- f = 0;
309
- }
310
-
311
- _setMatrix(this, a, b, c, d, e, f);
312
- }
313
-
314
- var _proto = Matrix2D.prototype;
315
-
316
- _proto.inverse = function inverse() {
317
- var a = this.a,
318
- b = this.b,
319
- c = this.c,
320
- d = this.d,
321
- e = this.e,
322
- f = this.f,
323
- determinant = a * d - b * c || 1e-10;
324
- return _setMatrix(this, d / determinant, -b / determinant, -c / determinant, a / determinant, (c * f - d * e) / determinant, -(a * f - b * e) / determinant);
325
- };
326
-
327
- _proto.multiply = function multiply(matrix) {
328
- var a = this.a,
329
- b = this.b,
330
- c = this.c,
331
- d = this.d,
332
- e = this.e,
333
- f = this.f,
334
- a2 = matrix.a,
335
- b2 = matrix.c,
336
- c2 = matrix.b,
337
- d2 = matrix.d,
338
- e2 = matrix.e,
339
- f2 = matrix.f;
340
- return _setMatrix(this, a2 * a + c2 * c, a2 * b + c2 * d, b2 * a + d2 * c, b2 * b + d2 * d, e + e2 * a + f2 * c, f + e2 * b + f2 * d);
341
- };
342
-
343
- _proto.clone = function clone() {
344
- return new Matrix2D(this.a, this.b, this.c, this.d, this.e, this.f);
345
- };
346
-
347
- _proto.equals = function equals(matrix) {
348
- var a = this.a,
349
- b = this.b,
350
- c = this.c,
351
- d = this.d,
352
- e = this.e,
353
- f = this.f;
354
- return a === matrix.a && b === matrix.b && c === matrix.c && d === matrix.d && e === matrix.e && f === matrix.f;
355
- };
356
-
357
- _proto.apply = function apply(point, decoratee) {
358
- if (decoratee === void 0) {
359
- decoratee = {};
360
- }
361
-
362
- var x = point.x,
363
- y = point.y,
364
- a = this.a,
365
- b = this.b,
366
- c = this.c,
367
- d = this.d,
368
- e = this.e,
369
- f = this.f;
370
- decoratee.x = x * a + y * c + e || 0;
371
- decoratee.y = x * b + y * d + f || 0;
372
- return decoratee;
373
- };
374
-
375
- return Matrix2D;
376
- }(); // Feed in an element and it'll return a 2D matrix (optionally inverted) so that you can translate between coordinate spaces.
377
- // Inverting lets you translate a global point into a local coordinate space. No inverting lets you go the other way.
378
- // We needed this to work around various browser bugs, like Firefox doesn't accurately report getScreenCTM() when there
379
- // are transforms applied to ancestor elements.
380
- // The matrix math to convert any x/y coordinate is as follows, which is wrapped in a convenient apply() method of Matrix2D above:
381
- // tx = m.a * x + m.c * y + m.e
382
- // ty = m.b * x + m.d * y + m.f
383
-
384
- export function getGlobalMatrix(element, inverse, adjustGOffset, includeScrollInFixed) {
385
- // adjustGOffset is typically used only when grabbing an element's PARENT's global matrix, and it ignores the x/y offset of any SVG <g> elements because they behave in a special way.
386
- if (!element || !element.parentNode || (_doc || _setDoc(element)).documentElement === element) {
387
- return new Matrix2D();
388
- }
389
-
390
- var zeroScales = _forceNonZeroScale(element),
391
- svg = _svgOwner(element),
392
- temps = svg ? _svgTemps : _divTemps,
393
- container = _placeSiblings(element, adjustGOffset),
394
- b1 = temps[0].getBoundingClientRect(),
395
- b2 = temps[1].getBoundingClientRect(),
396
- b3 = temps[2].getBoundingClientRect(),
397
- parent = container.parentNode,
398
- isFixed = !includeScrollInFixed && _isFixed(element),
399
- m = new Matrix2D((b2.left - b1.left) / 100, (b2.top - b1.top) / 100, (b3.left - b1.left) / 100, (b3.top - b1.top) / 100, b1.left + (isFixed ? 0 : _getDocScrollLeft()), b1.top + (isFixed ? 0 : _getDocScrollTop()));
400
-
401
- parent.removeChild(container);
402
-
403
- if (zeroScales) {
404
- b1 = zeroScales.length;
405
-
406
- while (b1--) {
407
- b2 = zeroScales[b1];
408
- b2.scaleX = b2.scaleY = 0;
409
- b2.renderTransform(1, b2);
410
- }
411
- }
412
-
413
- return inverse ? m.inverse() : m;
414
- }
415
- export { _getDocScrollTop, _getDocScrollLeft, _setDoc, _isFixed, _getCTM }; // export function getMatrix(element) {
416
- // _doc || _setDoc(element);
417
- // let m = (_win.getComputedStyle(element)[_transformProp] + "").substr(7).match(/[-.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g),
418
- // is2D = m && m.length === 6;
419
- // return !m || m.length < 6 ? new Matrix2D() : new Matrix2D(+m[0], +m[1], +m[is2D ? 2 : 4], +m[is2D ? 3 : 5], +m[is2D ? 4 : 12], +m[is2D ? 5 : 13]);
420
- // }