matestack-ui-vuejs 3.0.0.rc2 → 3.0.0.rc3
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e52e26da94bbe15ad0cf897fd43e29cc00375a7bbd95880644d31fed924e9bc
|
4
|
+
data.tar.gz: 8b252b24637c15fe76bbf3078d110d417dcb63ef0a1dd3179f825f53cdf3568f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492684ca209a2592ea3248b1b4d47867b0095ca8fe8dcf4c8464355b7463ba0248b3724494ffa6df0210fa8003557741679b8ec592dc337f88d0ab3a7eb3e4f5
|
7
|
+
data.tar.gz: 89336d3f3f9d19c5e6b227f4e0a37e3eda82d79e8a3ecbb64efb7427ca81c102090e65676506a43a9de0b93e7e86c342be7c7736779cb639f6eb0f1c1c6b4a0d
|
data/README.md
CHANGED
@@ -10,6 +10,8 @@
|
|
10
10
|
|
11
11
|
Boost your productivity & easily create reactive web UIs in pure Ruby. Easily extend with pure JavaScript if required. No Opal involved.
|
12
12
|
|
13
|
+
**New repo, old git history? This repo was duplicated from `matestack-ui-core` in order to extract Vue.js features into `matestack-ui-vuejs` in Feburary 2022**
|
14
|
+
|
13
15
|
## About
|
14
16
|
|
15
17
|
`matestack-ui-vuejs` ships all you need to build **reactive** UIs in **pure Ruby** orchestrating prebuilt Vue.js components with a simple Ruby DSL.
|
@@ -15,11 +15,19 @@ const componentDef = {
|
|
15
15
|
methods: {
|
16
16
|
addItem: function(key){
|
17
17
|
var templateString = JSON.parse(this.getTemplateElement().querySelector('#prototype-template-for-'+key).dataset[":template"])
|
18
|
-
var
|
19
|
-
|
20
|
-
var
|
21
|
-
|
22
|
-
|
18
|
+
var regex = /"component_uid":"(.+?)"/g
|
19
|
+
var staticComponentUidMatches = templateString.matchAll(regex)
|
20
|
+
var staticComponentUids = []
|
21
|
+
for (const match of staticComponentUidMatches) {
|
22
|
+
staticComponentUids.push(match[1])
|
23
|
+
}
|
24
|
+
staticComponentUids.forEach(function(uid){
|
25
|
+
var newUid = Math.floor(Math.random() * 1000000000);
|
26
|
+
templateString = templateString.replaceAll(uid, newUid);
|
27
|
+
})
|
28
|
+
var tmpDomElem = document.createElement('div')
|
29
|
+
tmpDomElem.innerHTML = templateString
|
30
|
+
|
23
31
|
if (this.parentNestedFormRuntimeTemplateDomElements[key] == null){
|
24
32
|
var dom_elem = document.createElement('div')
|
25
33
|
dom_elem.innerHTML = templateString
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matestack-ui-vuejs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Jabari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: matestack-ui-core
|