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,166 +0,0 @@
1
- /*!
2
- * TextPlugin 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 { emojiSafeSplit, getText, splitInnerHTML } from "./utils/strings.js";
13
-
14
- var gsap,
15
- _tempDiv,
16
- _getGSAP = function _getGSAP() {
17
- return gsap || typeof window !== "undefined" && (gsap = window.gsap) && gsap.registerPlugin && gsap;
18
- };
19
-
20
- export var TextPlugin = {
21
- version: "3.12.5",
22
- name: "text",
23
- init: function init(target, value, tween) {
24
- typeof value !== "object" && (value = {
25
- value: value
26
- });
27
-
28
- var i = target.nodeName.toUpperCase(),
29
- data = this,
30
- _value = value,
31
- newClass = _value.newClass,
32
- oldClass = _value.oldClass,
33
- preserveSpaces = _value.preserveSpaces,
34
- rtl = _value.rtl,
35
- delimiter = data.delimiter = value.delimiter || "",
36
- fillChar = data.fillChar = value.fillChar || (value.padSpace ? " " : ""),
37
- _short,
38
- text,
39
- original,
40
- j,
41
- condensedText,
42
- condensedOriginal,
43
- aggregate,
44
- s;
45
-
46
- data.svg = target.getBBox && (i === "TEXT" || i === "TSPAN");
47
-
48
- if (!("innerHTML" in target) && !data.svg) {
49
- return false;
50
- }
51
-
52
- data.target = target;
53
-
54
- if (!("value" in value)) {
55
- data.text = data.original = [""];
56
- return;
57
- }
58
-
59
- original = splitInnerHTML(target, delimiter, false, preserveSpaces);
60
- _tempDiv || (_tempDiv = document.createElement("div"));
61
- _tempDiv.innerHTML = value.value;
62
- text = splitInnerHTML(_tempDiv, delimiter, false, preserveSpaces);
63
- data.from = tween._from;
64
-
65
- if ((data.from || rtl) && !(rtl && data.from)) {
66
- // right-to-left or "from()" tweens should invert things (but if it's BOTH .from() and rtl, inverting twice equals not inverting at all :)
67
- i = original;
68
- original = text;
69
- text = i;
70
- }
71
-
72
- data.hasClass = !!(newClass || oldClass);
73
- data.newClass = rtl ? oldClass : newClass;
74
- data.oldClass = rtl ? newClass : oldClass;
75
- i = original.length - text.length;
76
- _short = i < 0 ? original : text;
77
-
78
- if (i < 0) {
79
- i = -i;
80
- }
81
-
82
- while (--i > -1) {
83
- _short.push(fillChar);
84
- }
85
-
86
- if (value.type === "diff") {
87
- j = 0;
88
- condensedText = [];
89
- condensedOriginal = [];
90
- aggregate = "";
91
-
92
- for (i = 0; i < text.length; i++) {
93
- s = text[i];
94
-
95
- if (s === original[i]) {
96
- aggregate += s;
97
- } else {
98
- condensedText[j] = aggregate + s;
99
- condensedOriginal[j++] = aggregate + original[i];
100
- aggregate = "";
101
- }
102
- }
103
-
104
- text = condensedText;
105
- original = condensedOriginal;
106
-
107
- if (aggregate) {
108
- text.push(aggregate);
109
- original.push(aggregate);
110
- }
111
- }
112
-
113
- value.speed && tween.duration(Math.min(0.05 / value.speed * _short.length, value.maxDuration || 9999));
114
- data.rtl = rtl;
115
- data.original = original;
116
- data.text = text;
117
-
118
- data._props.push("text");
119
- },
120
- render: function render(ratio, data) {
121
- if (ratio > 1) {
122
- ratio = 1;
123
- } else if (ratio < 0) {
124
- ratio = 0;
125
- }
126
-
127
- if (data.from) {
128
- ratio = 1 - ratio;
129
- }
130
-
131
- var text = data.text,
132
- hasClass = data.hasClass,
133
- newClass = data.newClass,
134
- oldClass = data.oldClass,
135
- delimiter = data.delimiter,
136
- target = data.target,
137
- fillChar = data.fillChar,
138
- original = data.original,
139
- rtl = data.rtl,
140
- l = text.length,
141
- i = (rtl ? 1 - ratio : ratio) * l + 0.5 | 0,
142
- applyNew,
143
- applyOld,
144
- str;
145
-
146
- if (hasClass && ratio) {
147
- applyNew = newClass && i;
148
- applyOld = oldClass && i !== l;
149
- str = (applyNew ? "<span class='" + newClass + "'>" : "") + text.slice(0, i).join(delimiter) + (applyNew ? "</span>" : "") + (applyOld ? "<span class='" + oldClass + "'>" : "") + delimiter + original.slice(i).join(delimiter) + (applyOld ? "</span>" : "");
150
- } else {
151
- str = text.slice(0, i).join(delimiter) + delimiter + original.slice(i).join(delimiter);
152
- }
153
-
154
- if (data.svg) {
155
- //SVG text elements don't have an "innerHTML" in Microsoft browsers.
156
- target.textContent = str;
157
- } else {
158
- target.innerHTML = fillChar === "&nbsp;" && ~str.indexOf(" ") ? str.split(" ").join("&nbsp;&nbsp;") : str;
159
- }
160
- }
161
- };
162
- TextPlugin.splitInnerHTML = splitInnerHTML;
163
- TextPlugin.emojiSafeSplit = emojiSafeSplit;
164
- TextPlugin.getText = getText;
165
- _getGSAP() && gsap.registerPlugin(TextPlugin);
166
- export { TextPlugin as default };
File without changes
@@ -1,31 +0,0 @@
1
- import gsap 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, TweenMaxWithCSS as TweenMax, CSSPlugin };
7
- export { TweenLite, TimelineMax, TimelineLite, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, mapRange, pipe, unitize, interpolate, shuffle, selector } from "./gsap-core.js";
8
- export * from "./CustomEase.js";
9
- export * from "./Draggable.js";
10
- export * from "./CSSRulePlugin.js";
11
- export * from "./EaselPlugin.js";
12
- export * from "./EasePack.js";
13
- export * from "./Flip.js";
14
- export * from "./MotionPathPlugin.js";
15
- export * from "./Observer.js";
16
- export * from "./PixiPlugin.js";
17
- export * from "./ScrollToPlugin.js";
18
- export * from "./ScrollTrigger.js";
19
- export * from "./TextPlugin.js"; //BONUS EXPORTS
20
- // export * from "./DrawSVGPlugin.js";
21
- // export * from "./Physics2DPlugin.js";
22
- // export * from "./PhysicsPropsPlugin.js";
23
- // export * from "./ScrambleTextPlugin.js";
24
- // export * from "./CustomBounce.js";
25
- // export * from "./CustomWiggle.js";
26
- // export * from "./GSDevTools.js";
27
- // export * from "./InertiaPlugin.js";
28
- // export * from "./MorphSVGPlugin.js";
29
- // export * from "./MotionPathHelper.js";
30
- // export * from "./ScrollSmoother.js";
31
- // export * from "./SplitText.js";