dothtml 5.2.1 → 5.2.3

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 (94) hide show
  1. package/lib/dothtml.js +1 -1
  2. package/package.json +2 -1
  3. package/.vscode/launch.json +0 -34
  4. package/.vscode/settings.json +0 -6
  5. package/azure-pipelines.yml +0 -14
  6. package/babel.config.js +0 -1
  7. package/jest.config.ts +0 -207
  8. package/lib/arg-callback-obj.d.ts +0 -29
  9. package/lib/built-in-components/nav-link.d.ts +0 -8
  10. package/lib/built-in-components/router.d.ts +0 -57
  11. package/lib/component.d.ts +0 -82
  12. package/lib/dot-util.d.ts +0 -26
  13. package/lib/dot.d.ts +0 -5
  14. package/lib/dothtml.d.ts +0 -25
  15. package/lib/dothtml.js.LICENSE.txt +0 -1
  16. package/lib/err.d.ts +0 -2
  17. package/lib/event-bus.d.ts +0 -10
  18. package/lib/i-dot.d.ts +0 -674
  19. package/lib/node-polyfill.d.ts +0 -2
  20. package/lib/observable-array.d.ts +0 -49
  21. package/lib/styling/css-types.ts/css-angle.d.ts +0 -7
  22. package/lib/styling/css-types.ts/css-color.d.ts +0 -9
  23. package/lib/styling/css-types.ts/css-complex.d.ts +0 -7
  24. package/lib/styling/css-types.ts/css-data-type.d.ts +0 -5
  25. package/lib/styling/css-types.ts/css-filter.d.ts +0 -22
  26. package/lib/styling/css-types.ts/css-length.d.ts +0 -7
  27. package/lib/styling/css-types.ts/css-number.d.ts +0 -6
  28. package/lib/styling/css-types.ts/css-percentage.d.ts +0 -5
  29. package/lib/styling/css-types.ts/css-transform.d.ts +0 -38
  30. package/lib/styling/css-types.ts/css-unknown.d.ts +0 -6
  31. package/lib/styling/css-types.ts/css-url.d.ts +0 -6
  32. package/lib/styling/i-dotcss.d.ts +0 -1069
  33. package/lib/styling/style-builder.d.ts +0 -24
  34. package/lib/styling/unit-function-tables.d.ts +0 -10
  35. package/out.md +0 -1340
  36. package/src/arg-callback-obj.ts +0 -76
  37. package/src/built-in-components/nav-link.ts +0 -21
  38. package/src/built-in-components/router.ts +0 -315
  39. package/src/component.ts +0 -415
  40. package/src/dot-util.ts +0 -69
  41. package/src/dot.ts +0 -1147
  42. package/src/dothtml.ts +0 -37
  43. package/src/err.ts +0 -22
  44. package/src/event-bus.ts +0 -39
  45. package/src/i-dot.ts +0 -787
  46. package/src/node-polyfill.ts +0 -11
  47. package/src/observable-array.ts +0 -289
  48. package/src/styling/css-types.ts/css-angle.ts +0 -18
  49. package/src/styling/css-types.ts/css-color.ts +0 -233
  50. package/src/styling/css-types.ts/css-complex.ts +0 -20
  51. package/src/styling/css-types.ts/css-data-type.ts +0 -9
  52. package/src/styling/css-types.ts/css-filter.ts +0 -134
  53. package/src/styling/css-types.ts/css-length.ts +0 -20
  54. package/src/styling/css-types.ts/css-number.ts +0 -12
  55. package/src/styling/css-types.ts/css-percentage.ts +0 -10
  56. package/src/styling/css-types.ts/css-transform.ts +0 -220
  57. package/src/styling/css-types.ts/css-unknown.ts +0 -13
  58. package/src/styling/css-types.ts/css-url.ts +0 -41
  59. package/src/styling/i-dotcss.ts +0 -1181
  60. package/src/styling/style-builder.ts +0 -966
  61. package/src/styling/unit-function-tables.ts +0 -24
  62. package/tsconfig.json +0 -99
  63. package/unittests/advanced-bindings.test.ts +0 -421
  64. package/unittests/array-evaluation.test.ts +0 -7
  65. package/unittests/basic-functionality.test.ts +0 -88
  66. package/unittests/calc.test.ts +0 -6
  67. package/unittests/class-binding.test.ts +0 -227
  68. package/unittests/components/component-decorator.-.ts +0 -14
  69. package/unittests/components/components-data.test.ts +0 -153
  70. package/unittests/components/components.test.ts +0 -258
  71. package/unittests/computed.test.ts +0 -35
  72. package/unittests/core.ts +0 -66
  73. package/unittests/element-and-attribute-coverage.test.ts +0 -472
  74. package/unittests/hooks.test.ts +0 -67
  75. package/unittests/immutable-if.test.ts +0 -19
  76. package/unittests/input-bindings.test.ts +0 -166
  77. package/unittests/integration.test.ts +0 -5
  78. package/unittests/iterations.test.ts +0 -18
  79. package/unittests/logic.test.ts +0 -18
  80. package/unittests/non-function-props-rerender.test.ts +0 -86
  81. package/unittests/refs.test.ts +0 -36
  82. package/unittests/routing.-.ts +0 -56
  83. package/unittests/scopes.test.ts +0 -22
  84. package/unittests/special-tags.test.ts +0 -39
  85. package/unittests/styles.test.ts +0 -9
  86. package/unittests/styling/animations.test.ts +0 -14
  87. package/unittests/styling/filters.test.ts +0 -23
  88. package/unittests/styling/inline-styling.test.ts +0 -18
  89. package/unittests/styling/pseudo-selectors.test.ts +0 -33
  90. package/unittests/styling/transformations.test.ts +0 -234
  91. package/unittests/styling/value-interpretation.test.ts +0 -3
  92. package/unittests/testpage.ts +0 -5
  93. package/unittests/wait.test.ts +0 -31
  94. package/webpack.config.js +0 -28
package/src/dothtml.ts DELETED
@@ -1,37 +0,0 @@
1
-
2
- import dot from "./dot";
3
- import Component from "./component";
4
-
5
- dot.version = "5.2.1";
6
- dot.Component = Component;
7
-
8
- /*! DOThtml (c) Joshua Sideris | dothtml.org/license */
9
-
10
- /**
11
- * Changes:
12
- * - Converted to typescript.
13
- * - Removed if, IF, elseif, ELSEIF, else, and ELSE functions, replacing them with when, otherwiseWhen, and otherwise. Improves compatibility for IE 8.
14
- * - Also took some shortcuts that may not have polyfill with older browsers. Will get back to adding reverse compatibility in a future update.
15
- * - Created several type interfaces.
16
- * - Changed the names to HTML tags and attributes to pascal case.
17
- * - Removed most E and A suffixes from tag and attribute names.
18
- * - Removed special selection behavior for overlapping HTML names. Instead, all conflicts were renamed.
19
- * - Added attribute-element associations.
20
- * - Added `as` function for casting (mostly useful when adding attributes via the dot selector).
21
- * - Started the long process of adding comment documentation for custom built-in functions.
22
- * - Re-imagined components from the ground up. Components are now classes that inherit from `Component`. Plays very nicely with TS and ES6.
23
- * - Added interfaces for new methods that can be invoked on various elements. For instance, play, pause, and stop on audio and video elements.
24
- * - Updated scopeClass method to put the optional parameter last.
25
- * - Fixed some color bugs.
26
- * - Added a filter builder.
27
- * - Added flex gap.
28
- */
29
-
30
-
31
-
32
- export default dot;
33
- export {default as DotComponent} from "./component";
34
- export {IDotElement} from "./i-dot";
35
- export {default as IDotCss} from "./styling/i-dotcss";
36
-
37
- // https://www.youtube.com/JoshSideris
package/src/err.ts DELETED
@@ -1,22 +0,0 @@
1
- var ERR = function(c: string, ...p: Array<string>){throw "DOThtml usage error code " + c + ". Use an unminified version for more information."};
2
- ;;;ERR = function(c: string, ...p: Array<string>){
3
- p = p || [];
4
- throw {
5
- "A": `Can't append "${p[0]}".`,
6
- // "CC": "The name \"" + p[0] + "\" conflicts with an existing DOThtml function.",
7
- "CB": "Unable to build the same component twice. Ensure each component is only used once.",
8
- "CU": "Invalid usage: a component should at least have a name and a builder function.",
9
- "C#": `Component "${p[0]}" must return exactly one child node.`,
10
- "F": `Element "${p[0]}" not found.`,
11
- "MC": "Can't mix static conditions with dynamic conditional rendering.",
12
- "R": "Router must be passed a JSON object that contains an 'routes' array containing objects with a 'path', 'title', and 'component'.",
13
- "S": "SVG is not supported by DOThtml.",
14
- "UE": `Unknown event name "${p[0]}".`,
15
- "XS": "Expected a string.",
16
- "XF": `Expected a function in "${p[0]}".`,
17
- //"SF": "The style property of a component must be a string, a function that returns a string, or a JSON collection of those things."
18
- }[c] || "Unknown error.";
19
-
20
- };
21
-
22
- export default ERR;
package/src/event-bus.ts DELETED
@@ -1,39 +0,0 @@
1
- import { eachK, isF } from "./dot-util";
2
-
3
- class _EventBus{
4
- private _callbacks = {};
5
-
6
- _checkAddEvent = function(event){
7
- var e = this._callbacks[event];
8
- if(!e) this._callbacks[event] = e = [];
9
- return e;
10
-
11
- }
12
-
13
- on (event, callback){
14
- var e = this._checkAddEvent(event);
15
- e.push(callback);
16
- }
17
-
18
- off (event, callback){
19
- var e = this._checkAddEvent(event);
20
- for(var i = e.length -1; e >=0; i--){
21
- if(e[i] == callback) e.splice(i, 1);
22
- }
23
- }
24
-
25
- emit (event, ...args){
26
- var e = this._checkAddEvent(event);
27
- eachK(e, function(k, v){
28
- v(...args);
29
- });
30
- }
31
-
32
- flush (event){
33
- this._checkAddEvent(event).length = 0;
34
- }
35
- }
36
-
37
-
38
- const EventBus = new _EventBus();
39
- export default EventBus;