@jinntec/fore 1.0.0-5 → 1.0.0

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 (63) hide show
  1. package/README.md +6 -27
  2. package/dist/fore-dev.js +43 -0
  3. package/dist/fore-dev.js.map +1 -0
  4. package/dist/fore.js +37 -0
  5. package/dist/fore.js.map +1 -0
  6. package/index.js +2 -1
  7. package/package.json +35 -39
  8. package/resources/fore.css +22 -54
  9. package/src/DependencyNotifyingDomFacade.js +5 -13
  10. package/src/ForeElementMixin.js +13 -20
  11. package/src/actions/abstract-action.js +14 -9
  12. package/src/actions/fx-action.js +6 -5
  13. package/src/actions/fx-append.js +8 -17
  14. package/src/actions/fx-confirm.js +3 -1
  15. package/src/actions/fx-delete.js +6 -3
  16. package/src/actions/fx-dispatch.js +9 -8
  17. package/src/actions/fx-hide.js +9 -6
  18. package/src/actions/fx-insert.js +27 -14
  19. package/src/actions/fx-message.js +3 -1
  20. package/src/actions/fx-refresh.js +11 -1
  21. package/src/actions/fx-replace.js +68 -0
  22. package/src/actions/fx-return.js +42 -0
  23. package/src/actions/fx-send.js +3 -1
  24. package/src/actions/fx-setvalue.js +58 -51
  25. package/src/actions/fx-show.js +8 -4
  26. package/src/actions/fx-toggle.js +13 -9
  27. package/src/actions/fx-update.js +3 -1
  28. package/src/dep_graph.js +1 -1
  29. package/src/drawdown.js +67 -82
  30. package/src/fore.js +141 -25
  31. package/src/functions/fx-function.js +11 -3
  32. package/src/fx-bind.js +39 -199
  33. package/src/fx-fore.js +101 -68
  34. package/src/fx-header.js +3 -1
  35. package/src/fx-instance.js +9 -1
  36. package/src/fx-model.js +31 -23
  37. package/src/fx-submission.js +73 -47
  38. package/src/fx-var.js +7 -4
  39. package/src/getInScopeContext.js +23 -16
  40. package/src/modelitem.js +4 -4
  41. package/src/relevance.js +65 -0
  42. package/src/ui/abstract-control.js +55 -35
  43. package/src/ui/fx-alert.js +7 -1
  44. package/src/ui/fx-case.js +3 -1
  45. package/src/ui/fx-container.js +4 -2
  46. package/src/ui/fx-control.js +283 -33
  47. package/src/ui/fx-dialog.js +50 -45
  48. package/src/ui/fx-group.js +3 -1
  49. package/src/ui/fx-hint.js +4 -1
  50. package/src/ui/fx-inspector.js +117 -17
  51. package/src/ui/fx-items.js +7 -5
  52. package/src/ui/fx-output.js +14 -5
  53. package/src/ui/fx-repeat.js +13 -26
  54. package/src/ui/fx-repeatitem.js +10 -4
  55. package/src/ui/fx-switch.js +3 -1
  56. package/src/ui/fx-trigger.js +3 -1
  57. package/src/xpath-evaluation.js +114 -102
  58. package/src/xpath-util.js +1 -5
  59. package/dist/fore-all.js +0 -140
  60. package/dist/fore-debug.js +0 -140
  61. package/src/.DS_Store +0 -0
  62. package/src/actions/.DS_Store +0 -0
  63. package/src/ui/.DS_Store +0 -0
package/README.md CHANGED
@@ -6,24 +6,17 @@
6
6
  ![GitHub top language](https://img.shields.io/github/languages/top/jinntec/fore)
7
7
 
8
8
 
9
- [Fore Element Reference](https://jinntec.github.io/Fore/doc/reference.html)
10
-
11
- ![logo](resources/images/light-200.png)
9
+ <img src="resources/images/light7.png" width="400">
12
10
 
13
11
  >'situated in front of something else' - Merriam Webster
14
12
 
15
13
  [![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2FJinnForeTec)](https://twitter.com/JinnForeTec)
16
14
 
17
- ## [Demos Demos Demos Demos Demos](https://jinntec.github.io/Fore)
18
-
19
- ^^^ Sorry for being loud - some people complaining not finding demos. ^^^
20
-
21
- > ATTENTION: Demos are out of sync with latest release. If you want latest and greatest checkout your local copy please. Demos will be updated
22
- > for final release.
15
+ [Homepage](https://jinntec.github.io/Fore/) |
16
+ [Documentation](https://jinntec.github.io/fore-docs/) |
23
17
 
24
- For latest and greatest please use a local installation. See 'Running demos and docs'
25
18
 
26
- # What it does
19
+ # Declarative user interfaces in plain HTML
27
20
 
28
21
  Fore lets you write data-driven front-end applications in a declarative way
29
22
  just using HTML5 Web Components.
@@ -64,8 +57,7 @@ Standard but applies those to the world of HTML5 Web Components.
64
57
  Going beyond just forms it nicely integrates with Web Components, allowing to configure,
65
58
  ochestrate and interact with them by binding their properties to data instances.
66
59
 
67
- Fore uses XML as it's main data model but allows to use JSON alternatively or at the same time. Accessing and mutating JSON data with declarative
68
- actions makes JSON processing even easier than in native JavaScript.
60
+ Fore uses XML as it's main data model but allows to use JSON alternatively or at the same time.
69
61
 
70
62
  Through the wonderful [fontoXPath library](https://github.com/FontoXML/fontoxpath) Fore is able to process XML in the client with XPath 3.1 and
71
63
  XQuery 3.1 support.
@@ -110,19 +102,6 @@ customize the wiring of the widget you use.
110
102
  More examples are found in the demos (see running)
111
103
 
112
104
 
113
- ## Documentation
114
-
115
- ### Element Reference
116
-
117
- The [Element Reference](https://jinntec.github.io/Fore/doc/reference.html) lists all exsting Fore elements (Web Components) in categories and documents their attributes. For each element one or more demos are linked
118
- to see the element in action.
119
-
120
- ### Demos
121
- The demos are considered a major resource when it comes to learn how to use the featues (see 'demo' folder). All files listed on the demo.html page are expected to work and hopefully show the way to features and solutions.
122
-
123
- Some of them also offer some explanations and should give you an idea of building your own.
124
-
125
-
126
105
  ## Development and Contributions
127
106
 
128
107
  Default branch of development is 'dev'.
@@ -157,7 +136,7 @@ Include the following snippet at end of body:
157
136
 
158
137
  Run
159
138
 
160
- ```npm install @jintec/fore```
139
+ ```npm install @jinntec/fore```
161
140
 
162
141
  in your project to install it.
163
142