ex4nicegui 0.8.10__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 (49) hide show
  1. ex4nicegui/bi/dataSource.py +1 -2
  2. ex4nicegui/bi/elements/ui_aggrid.py +1 -2
  3. ex4nicegui/layout/rxFlex/index.py +0 -1
  4. ex4nicegui/reactive/EChartsComponent/ECharts.js +1 -1
  5. ex4nicegui/reactive/EChartsComponent/ECharts.py +1 -5
  6. ex4nicegui/reactive/__init__.py +2 -3
  7. ex4nicegui/reactive/_vmodel.py +150 -0
  8. ex4nicegui/reactive/base.py +2 -3
  9. ex4nicegui/reactive/deferredTask.py +2 -5
  10. ex4nicegui/reactive/mermaid/mermaid.js +1 -1
  11. ex4nicegui/reactive/mermaid/mermaid.py +0 -5
  12. ex4nicegui/reactive/vfor.py +1 -0
  13. ex4nicegui/toolbox/core/vue_use.py +1 -1
  14. ex4nicegui/utils/clientScope.py +5 -8
  15. ex4nicegui/utils/proxy/descriptor.py +0 -1
  16. ex4nicegui/utils/signals.py +2 -1
  17. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.0.dist-info}/METADATA +11 -21
  18. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.0.dist-info}/RECORD +45 -73
  19. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.0.dist-info}/WHEEL +1 -1
  20. ex4nicegui/gsap/__init__.py +0 -23
  21. ex4nicegui/gsap/gsap.py +0 -145
  22. ex4nicegui/gsap/timeline.js +0 -56
  23. ex4nicegui/gsap/timeline.py +0 -78
  24. ex4nicegui/gsap/wrapGsap.js +0 -48
  25. ex4nicegui/libs/gsap/.DS_Store +0 -0
  26. ex4nicegui/libs/gsap/CSSPlugin.js +0 -1577
  27. ex4nicegui/libs/gsap/CSSRulePlugin.js +0 -134
  28. ex4nicegui/libs/gsap/CustomEase.js +0 -371
  29. ex4nicegui/libs/gsap/Draggable.js +0 -2699
  30. ex4nicegui/libs/gsap/EasePack.js +0 -212
  31. ex4nicegui/libs/gsap/EaselPlugin.js +0 -341
  32. ex4nicegui/libs/gsap/Flip.js +0 -1518
  33. ex4nicegui/libs/gsap/MotionPathPlugin.js +0 -368
  34. ex4nicegui/libs/gsap/Observer.js +0 -686
  35. ex4nicegui/libs/gsap/PixiPlugin.js +0 -461
  36. ex4nicegui/libs/gsap/ScrollToPlugin.js +0 -273
  37. ex4nicegui/libs/gsap/ScrollTrigger.js +0 -2658
  38. ex4nicegui/libs/gsap/TextPlugin.js +0 -166
  39. ex4nicegui/libs/gsap/__init__.py +0 -0
  40. ex4nicegui/libs/gsap/all.js +0 -31
  41. ex4nicegui/libs/gsap/gsap-core.js +0 -4487
  42. ex4nicegui/libs/gsap/gsap.mjs +0 -6
  43. ex4nicegui/libs/gsap/utils/__init__.py +0 -0
  44. ex4nicegui/libs/gsap/utils/matrix.js +0 -420
  45. ex4nicegui/libs/gsap/utils/paths.js +0 -1487
  46. ex4nicegui/libs/gsap/utils/strings.js +0 -107
  47. ex4nicegui/reactive/local_file_picker.py +0 -208
  48. ex4nicegui/reactive/vmodel.py +0 -237
  49. {ex4nicegui-0.8.10.dist-info → ex4nicegui-0.9.0.dist-info/licenses}/LICENSE +0 -0
@@ -1,461 +0,0 @@
1
- /*!
2
- * PixiPlugin 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
- _splitColor,
14
- _coreInitted,
15
- _PIXI,
16
- PropTween,
17
- _getSetter,
18
- _isV4,
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
- _isFunction = function _isFunction(value) {
26
- return typeof value === "function";
27
- },
28
- _warn = function _warn(message) {
29
- return console.warn(message);
30
- },
31
- _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0],
32
- _lumR = 0.212671,
33
- _lumG = 0.715160,
34
- _lumB = 0.072169,
35
- _filterClass = function _filterClass(name) {
36
- return _isFunction(_PIXI[name]) ? _PIXI[name] : _PIXI.filters[name];
37
- },
38
- // in PIXI 7.1, filters moved from PIXI.filters to just PIXI
39
- _applyMatrix = function _applyMatrix(m, m2) {
40
- var temp = [],
41
- i = 0,
42
- z = 0,
43
- y,
44
- x;
45
-
46
- for (y = 0; y < 4; y++) {
47
- for (x = 0; x < 5; x++) {
48
- z = x === 4 ? m[i + 4] : 0;
49
- 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;
50
- }
51
-
52
- i += 5;
53
- }
54
-
55
- return temp;
56
- },
57
- _setSaturation = function _setSaturation(m, n) {
58
- var inv = 1 - n,
59
- r = inv * _lumR,
60
- g = inv * _lumG,
61
- b = inv * _lumB;
62
- 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);
63
- },
64
- _colorize = function _colorize(m, color, amount) {
65
- var c = _splitColor(color),
66
- r = c[0] / 255,
67
- g = c[1] / 255,
68
- b = c[2] / 255,
69
- inv = 1 - amount;
70
-
71
- 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);
72
- },
73
- _setHue = function _setHue(m, n) {
74
- n *= Math.PI / 180;
75
- var c = Math.cos(n),
76
- s = Math.sin(n);
77
- 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);
78
- },
79
- _setContrast = function _setContrast(m, n) {
80
- return _applyMatrix([n, 0, 0, 0, 0.5 * (1 - n), 0, n, 0, 0, 0.5 * (1 - n), 0, 0, n, 0, 0.5 * (1 - n), 0, 0, 0, 1, 0], m);
81
- },
82
- _getFilter = function _getFilter(target, type) {
83
- var filterClass = _filterClass(type),
84
- filters = target.filters || [],
85
- i = filters.length,
86
- filter;
87
-
88
- filterClass || _warn(type + " not found. PixiPlugin.registerPIXI(PIXI)");
89
-
90
- while (--i > -1) {
91
- if (filters[i] instanceof filterClass) {
92
- return filters[i];
93
- }
94
- }
95
-
96
- filter = new filterClass();
97
-
98
- if (type === "BlurFilter") {
99
- filter.blur = 0;
100
- }
101
-
102
- filters.push(filter);
103
- target.filters = filters;
104
- return filter;
105
- },
106
- _addColorMatrixFilterCacheTween = function _addColorMatrixFilterCacheTween(p, plugin, cache, vars) {
107
- //we cache the ColorMatrixFilter components in a _gsColorMatrixFilter object attached to the target object so that it's easy to grab the current value at any time.
108
- plugin.add(cache, p, cache[p], vars[p]);
109
-
110
- plugin._props.push(p);
111
- },
112
- _applyBrightnessToMatrix = function _applyBrightnessToMatrix(brightness, matrix) {
113
- var filterClass = _filterClass("ColorMatrixFilter"),
114
- temp = new filterClass();
115
-
116
- temp.matrix = matrix;
117
- temp.brightness(brightness, true);
118
- return temp.matrix;
119
- },
120
- _copy = function _copy(obj) {
121
- var copy = {},
122
- p;
123
-
124
- for (p in obj) {
125
- copy[p] = obj[p];
126
- }
127
-
128
- return copy;
129
- },
130
- _CMFdefaults = {
131
- contrast: 1,
132
- saturation: 1,
133
- colorizeAmount: 0,
134
- colorize: "rgb(255,255,255)",
135
- hue: 0,
136
- brightness: 1
137
- },
138
- _parseColorMatrixFilter = function _parseColorMatrixFilter(target, v, pg) {
139
- var filter = _getFilter(target, "ColorMatrixFilter"),
140
- cache = target._gsColorMatrixFilter = target._gsColorMatrixFilter || _copy(_CMFdefaults),
141
- combine = v.combineCMF && !("colorMatrixFilter" in v && !v.colorMatrixFilter),
142
- i,
143
- matrix,
144
- startMatrix;
145
-
146
- startMatrix = filter.matrix;
147
-
148
- if (v.resolution) {
149
- filter.resolution = v.resolution;
150
- }
151
-
152
- if (v.matrix && v.matrix.length === startMatrix.length) {
153
- matrix = v.matrix;
154
-
155
- if (cache.contrast !== 1) {
156
- _addColorMatrixFilterCacheTween("contrast", pg, cache, _CMFdefaults);
157
- }
158
-
159
- if (cache.hue) {
160
- _addColorMatrixFilterCacheTween("hue", pg, cache, _CMFdefaults);
161
- }
162
-
163
- if (cache.brightness !== 1) {
164
- _addColorMatrixFilterCacheTween("brightness", pg, cache, _CMFdefaults);
165
- }
166
-
167
- if (cache.colorizeAmount) {
168
- _addColorMatrixFilterCacheTween("colorize", pg, cache, _CMFdefaults);
169
-
170
- _addColorMatrixFilterCacheTween("colorizeAmount", pg, cache, _CMFdefaults);
171
- }
172
-
173
- if (cache.saturation !== 1) {
174
- _addColorMatrixFilterCacheTween("saturation", pg, cache, _CMFdefaults);
175
- }
176
- } else {
177
- matrix = _idMatrix.slice();
178
-
179
- if (v.contrast != null) {
180
- matrix = _setContrast(matrix, +v.contrast);
181
-
182
- _addColorMatrixFilterCacheTween("contrast", pg, cache, v);
183
- } else if (cache.contrast !== 1) {
184
- if (combine) {
185
- matrix = _setContrast(matrix, cache.contrast);
186
- } else {
187
- _addColorMatrixFilterCacheTween("contrast", pg, cache, _CMFdefaults);
188
- }
189
- }
190
-
191
- if (v.hue != null) {
192
- matrix = _setHue(matrix, +v.hue);
193
-
194
- _addColorMatrixFilterCacheTween("hue", pg, cache, v);
195
- } else if (cache.hue) {
196
- if (combine) {
197
- matrix = _setHue(matrix, cache.hue);
198
- } else {
199
- _addColorMatrixFilterCacheTween("hue", pg, cache, _CMFdefaults);
200
- }
201
- }
202
-
203
- if (v.brightness != null) {
204
- matrix = _applyBrightnessToMatrix(+v.brightness, matrix);
205
-
206
- _addColorMatrixFilterCacheTween("brightness", pg, cache, v);
207
- } else if (cache.brightness !== 1) {
208
- if (combine) {
209
- matrix = _applyBrightnessToMatrix(cache.brightness, matrix);
210
- } else {
211
- _addColorMatrixFilterCacheTween("brightness", pg, cache, _CMFdefaults);
212
- }
213
- }
214
-
215
- if (v.colorize != null) {
216
- v.colorizeAmount = "colorizeAmount" in v ? +v.colorizeAmount : 1;
217
- matrix = _colorize(matrix, v.colorize, v.colorizeAmount);
218
-
219
- _addColorMatrixFilterCacheTween("colorize", pg, cache, v);
220
-
221
- _addColorMatrixFilterCacheTween("colorizeAmount", pg, cache, v);
222
- } else if (cache.colorizeAmount) {
223
- if (combine) {
224
- matrix = _colorize(matrix, cache.colorize, cache.colorizeAmount);
225
- } else {
226
- _addColorMatrixFilterCacheTween("colorize", pg, cache, _CMFdefaults);
227
-
228
- _addColorMatrixFilterCacheTween("colorizeAmount", pg, cache, _CMFdefaults);
229
- }
230
- }
231
-
232
- if (v.saturation != null) {
233
- matrix = _setSaturation(matrix, +v.saturation);
234
-
235
- _addColorMatrixFilterCacheTween("saturation", pg, cache, v);
236
- } else if (cache.saturation !== 1) {
237
- if (combine) {
238
- matrix = _setSaturation(matrix, cache.saturation);
239
- } else {
240
- _addColorMatrixFilterCacheTween("saturation", pg, cache, _CMFdefaults);
241
- }
242
- }
243
- }
244
-
245
- i = matrix.length;
246
-
247
- while (--i > -1) {
248
- if (matrix[i] !== startMatrix[i]) {
249
- pg.add(startMatrix, i, startMatrix[i], matrix[i], "colorMatrixFilter");
250
- }
251
- }
252
-
253
- pg._props.push("colorMatrixFilter");
254
- },
255
- _renderColor = function _renderColor(ratio, _ref) {
256
- var t = _ref.t,
257
- p = _ref.p,
258
- color = _ref.color,
259
- set = _ref.set;
260
- set(t, p, color[0] << 16 | color[1] << 8 | color[2]);
261
- },
262
- _renderDirtyCache = function _renderDirtyCache(ratio, _ref2) {
263
- var g = _ref2.g;
264
-
265
- if (g) {
266
- //in order for PixiJS to actually redraw GraphicsData, we've gotta increment the "dirty" and "clearDirty" values. If we don't do this, the values will be tween properly, but not rendered.
267
- g.dirty++;
268
- g.clearDirty++;
269
- }
270
- },
271
- _renderAutoAlpha = function _renderAutoAlpha(ratio, data) {
272
- data.t.visible = !!data.t.alpha;
273
- },
274
- _addColorTween = function _addColorTween(target, p, value, plugin) {
275
- var currentValue = target[p],
276
- startColor = _splitColor(_isFunction(currentValue) ? target[p.indexOf("set") || !_isFunction(target["get" + p.substr(3)]) ? p : "get" + p.substr(3)]() : currentValue),
277
- endColor = _splitColor(value);
278
-
279
- plugin._pt = new PropTween(plugin._pt, target, p, 0, 0, _renderColor, {
280
- t: target,
281
- p: p,
282
- color: startColor,
283
- set: _getSetter(target, p)
284
- });
285
- plugin.add(startColor, 0, startColor[0], endColor[0]);
286
- plugin.add(startColor, 1, startColor[1], endColor[1]);
287
- plugin.add(startColor, 2, startColor[2], endColor[2]);
288
- },
289
- _colorProps = {
290
- tint: 1,
291
- lineColor: 1,
292
- fillColor: 1
293
- },
294
- _xyContexts = "position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),
295
- _contexts = {
296
- x: "position",
297
- y: "position",
298
- tileX: "tilePosition",
299
- tileY: "tilePosition"
300
- },
301
- _colorMatrixFilterProps = {
302
- colorMatrixFilter: 1,
303
- saturation: 1,
304
- contrast: 1,
305
- hue: 1,
306
- colorize: 1,
307
- colorizeAmount: 1,
308
- brightness: 1,
309
- combineCMF: 1
310
- },
311
- _DEG2RAD = Math.PI / 180,
312
- _isString = function _isString(value) {
313
- return typeof value === "string";
314
- },
315
- _degreesToRadians = function _degreesToRadians(value) {
316
- return _isString(value) && value.charAt(1) === "=" ? value.substr(0, 2) + parseFloat(value.substr(2)) * _DEG2RAD : value * _DEG2RAD;
317
- },
318
- _renderPropWithEnd = function _renderPropWithEnd(ratio, data) {
319
- return data.set(data.t, data.p, ratio === 1 ? data.e : Math.round((data.s + data.c * ratio) * 100000) / 100000, data);
320
- },
321
- _addRotationalPropTween = function _addRotationalPropTween(plugin, target, property, startNum, endValue, radians) {
322
- var cap = 360 * (radians ? _DEG2RAD : 1),
323
- isString = _isString(endValue),
324
- relative = isString && endValue.charAt(1) === "=" ? +(endValue.charAt(0) + "1") : 0,
325
- endNum = parseFloat(relative ? endValue.substr(2) : endValue) * (radians ? _DEG2RAD : 1),
326
- change = relative ? endNum * relative : endNum - startNum,
327
- finalValue = startNum + change,
328
- direction,
329
- pt;
330
-
331
- if (isString) {
332
- direction = endValue.split("_")[1];
333
-
334
- if (direction === "short") {
335
- change %= cap;
336
-
337
- if (change !== change % (cap / 2)) {
338
- change += change < 0 ? cap : -cap;
339
- }
340
- }
341
-
342
- if (direction === "cw" && change < 0) {
343
- change = (change + cap * 1e10) % cap - ~~(change / cap) * cap;
344
- } else if (direction === "ccw" && change > 0) {
345
- change = (change - cap * 1e10) % cap - ~~(change / cap) * cap;
346
- }
347
- }
348
-
349
- plugin._pt = pt = new PropTween(plugin._pt, target, property, startNum, change, _renderPropWithEnd);
350
- pt.e = finalValue;
351
- return pt;
352
- },
353
- _initCore = function _initCore() {
354
- if (!_coreInitted) {
355
- gsap = _getGSAP();
356
- _PIXI = _coreInitted = _PIXI || _windowExists() && window.PIXI;
357
- _isV4 = _PIXI && _PIXI.VERSION && _PIXI.VERSION.charAt(0) === "4";
358
-
359
- _splitColor = function _splitColor(color) {
360
- return gsap.utils.splitColor((color + "").substr(0, 2) === "0x" ? "#" + color.substr(2) : color);
361
- }; // some colors in PIXI are reported as "0xFF4421" instead of "#FF4421".
362
-
363
- }
364
- },
365
- i,
366
- p; //context setup...
367
-
368
-
369
- for (i = 0; i < _xyContexts.length; i++) {
370
- p = _xyContexts[i];
371
- _contexts[p + "X"] = p;
372
- _contexts[p + "Y"] = p;
373
- }
374
-
375
- export var PixiPlugin = {
376
- version: "3.12.5",
377
- name: "pixi",
378
- register: function register(core, Plugin, propTween) {
379
- gsap = core;
380
- PropTween = propTween;
381
- _getSetter = Plugin.getSetter;
382
-
383
- _initCore();
384
- },
385
- headless: true,
386
- // doesn't need window
387
- registerPIXI: function registerPIXI(pixi) {
388
- _PIXI = pixi;
389
- },
390
- init: function init(target, values, tween, index, targets) {
391
- _PIXI || _initCore();
392
-
393
- if (!_PIXI) {
394
- _warn("PIXI was not found. PixiPlugin.registerPIXI(PIXI);");
395
-
396
- return false;
397
- }
398
-
399
- var context, axis, value, colorMatrix, filter, p, padding, i, data;
400
-
401
- for (p in values) {
402
- context = _contexts[p];
403
- value = values[p];
404
-
405
- if (context) {
406
- axis = ~p.charAt(p.length - 1).toLowerCase().indexOf("x") ? "x" : "y";
407
- this.add(target[context], axis, target[context][axis], context === "skew" ? _degreesToRadians(value) : value, 0, 0, 0, 0, 0, 1);
408
- } else if (p === "scale" || p === "anchor" || p === "pivot" || p === "tileScale") {
409
- this.add(target[p], "x", target[p].x, value);
410
- this.add(target[p], "y", target[p].y, value);
411
- } else if (p === "rotation" || p === "angle") {
412
- //PIXI expects rotation in radians, but as a convenience we let folks define it in degrees and we do the conversion.
413
- _addRotationalPropTween(this, target, p, target[p], value, p === "rotation");
414
- } else if (_colorMatrixFilterProps[p]) {
415
- if (!colorMatrix) {
416
- _parseColorMatrixFilter(target, values.colorMatrixFilter || values, this);
417
-
418
- colorMatrix = true;
419
- }
420
- } else if (p === "blur" || p === "blurX" || p === "blurY" || p === "blurPadding") {
421
- filter = _getFilter(target, "BlurFilter");
422
- this.add(filter, p, filter[p], value);
423
-
424
- if (values.blurPadding !== 0) {
425
- padding = values.blurPadding || Math.max(filter[p], value) * 2;
426
- i = target.filters.length;
427
-
428
- while (--i > -1) {
429
- target.filters[i].padding = Math.max(target.filters[i].padding, padding); //if we don't expand the padding on all the filters, it can look clipped.
430
- }
431
- }
432
- } else if (_colorProps[p]) {
433
- if ((p === "lineColor" || p === "fillColor") && target instanceof _PIXI.Graphics) {
434
- data = (target.geometry || target).graphicsData; //"geometry" was introduced in PIXI version 5
435
-
436
- this._pt = new PropTween(this._pt, target, p, 0, 0, _renderDirtyCache, {
437
- g: target.geometry || target
438
- });
439
- i = data.length;
440
-
441
- while (--i > -1) {
442
- _addColorTween(_isV4 ? data[i] : data[i][p.substr(0, 4) + "Style"], _isV4 ? p : "color", value, this);
443
- }
444
- } else {
445
- _addColorTween(target, p, value, this);
446
- }
447
- } else if (p === "autoAlpha") {
448
- this._pt = new PropTween(this._pt, target, "visible", 0, 0, _renderAutoAlpha);
449
- this.add(target, "alpha", target.alpha, value);
450
-
451
- this._props.push("alpha", "visible");
452
- } else if (p !== "resolution") {
453
- this.add(target, p, "get", value);
454
- }
455
-
456
- this._props.push(p);
457
- }
458
- }
459
- };
460
- _getGSAP() && gsap.registerPlugin(PixiPlugin);
461
- export { PixiPlugin as default };