beanbagdb-components 0.2.5 → 0.2.7
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.
- package/dist/app.js +8 -1
- package/dist/app.style.css +1 -1
- package/dist/doc.html +5 -1
- package/dist/main.js +11165 -10176
- package/dist/main.js.map +1 -1
- package/dist/main.umd.cjs +88 -33
- package/dist/main.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -68,7 +68,7 @@ const initPage = async (page_name,params) => {
|
|
|
68
68
|
let result = { dbObj, parsedDocCriteria }
|
|
69
69
|
if(page_name=="doc"){
|
|
70
70
|
//for the document page, if db is provided show search bar, if doc provided do not show the search bar
|
|
71
|
-
result["single_record"] = !parsedDocCriteria==null
|
|
71
|
+
result["single_record"] = !(parsedDocCriteria==null)
|
|
72
72
|
result["new_record"] = parsedDocCriteria==null
|
|
73
73
|
}
|
|
74
74
|
return result;
|
|
@@ -121,6 +121,13 @@ const handle_bbdb_action = (action_data)=>{
|
|
|
121
121
|
const all_actions = {
|
|
122
122
|
"message":()=>{
|
|
123
123
|
showMessage(action.type,action.message)
|
|
124
|
+
},
|
|
125
|
+
"message_link":()=>{
|
|
126
|
+
let message = `${action.message} Doc Link : <a href='doc.html?doc=${action.link}' target='_blank'>View</a>`
|
|
127
|
+
showMessage(action.type,message)
|
|
128
|
+
},
|
|
129
|
+
"open_link":()=>{
|
|
130
|
+
window.open(`doc.html?doc=${action.link}`, '_blank');
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
133
|
all_actions[action.name]()
|
package/dist/app.style.css
CHANGED
package/dist/doc.html
CHANGED
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
|
|
31
31
|
const doc_element = document.createElement("bbdb-doc");
|
|
32
32
|
doc_element.BBDB = DB;
|
|
33
|
+
doc_element.new_doc = db_details.new_record
|
|
34
|
+
if(db_details.single_record){
|
|
35
|
+
doc_element.search_criteria = db_details.parsedDocCriteria
|
|
36
|
+
}
|
|
33
37
|
console.log(doc_element);
|
|
34
38
|
doc_element.addEventListener("action",handle_bbdb_action);
|
|
35
39
|
|
|
@@ -41,7 +45,7 @@
|
|
|
41
45
|
</script>
|
|
42
46
|
</head>
|
|
43
47
|
<body>
|
|
44
|
-
<div class="container-fluid
|
|
48
|
+
<div class="container-fluid">
|
|
45
49
|
<div class="row">
|
|
46
50
|
<div class="col-12">
|
|
47
51
|
<div id="pane_doc_editor"></div>
|