dothtml 5.2.2 → 5.2.4

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 (67) 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/out.md +0 -1340
  9. package/src/arg-callback-obj.ts +0 -76
  10. package/src/built-in-components/nav-link.ts +0 -21
  11. package/src/built-in-components/router.ts +0 -315
  12. package/src/component.ts +0 -415
  13. package/src/dot-util.ts +0 -69
  14. package/src/dot.ts +0 -1147
  15. package/src/dothtml.ts +0 -39
  16. package/src/err.ts +0 -22
  17. package/src/event-bus.ts +0 -39
  18. package/src/i-dot.ts +0 -787
  19. package/src/node-polyfill.ts +0 -11
  20. package/src/observable-array.ts +0 -289
  21. package/src/styling/css-types.ts/css-angle.ts +0 -18
  22. package/src/styling/css-types.ts/css-color.ts +0 -233
  23. package/src/styling/css-types.ts/css-complex.ts +0 -20
  24. package/src/styling/css-types.ts/css-data-type.ts +0 -9
  25. package/src/styling/css-types.ts/css-filter.ts +0 -134
  26. package/src/styling/css-types.ts/css-length.ts +0 -20
  27. package/src/styling/css-types.ts/css-number.ts +0 -12
  28. package/src/styling/css-types.ts/css-percentage.ts +0 -10
  29. package/src/styling/css-types.ts/css-transform.ts +0 -220
  30. package/src/styling/css-types.ts/css-unknown.ts +0 -13
  31. package/src/styling/css-types.ts/css-url.ts +0 -41
  32. package/src/styling/i-dotcss.ts +0 -1198
  33. package/src/styling/style-builder.ts +0 -967
  34. package/src/styling/unit-function-tables.ts +0 -24
  35. package/tsconfig.json +0 -99
  36. package/unittests/advanced-bindings.test.ts +0 -421
  37. package/unittests/array-evaluation.test.ts +0 -7
  38. package/unittests/basic-functionality.test.ts +0 -88
  39. package/unittests/calc.test.ts +0 -6
  40. package/unittests/class-binding.test.ts +0 -227
  41. package/unittests/components/component-decorator.-.ts +0 -14
  42. package/unittests/components/components-data.test.ts +0 -153
  43. package/unittests/components/components.test.ts +0 -258
  44. package/unittests/computed.test.ts +0 -35
  45. package/unittests/core.ts +0 -66
  46. package/unittests/element-and-attribute-coverage.test.ts +0 -472
  47. package/unittests/hooks.test.ts +0 -67
  48. package/unittests/immutable-if.test.ts +0 -19
  49. package/unittests/input-bindings.test.ts +0 -166
  50. package/unittests/integration.test.ts +0 -5
  51. package/unittests/iterations.test.ts +0 -18
  52. package/unittests/logic.test.ts +0 -18
  53. package/unittests/non-function-props-rerender.test.ts +0 -86
  54. package/unittests/refs.test.ts +0 -36
  55. package/unittests/routing.-.ts +0 -56
  56. package/unittests/scopes.test.ts +0 -22
  57. package/unittests/special-tags.test.ts +0 -39
  58. package/unittests/styles.test.ts +0 -9
  59. package/unittests/styling/animations.test.ts +0 -14
  60. package/unittests/styling/filters.test.ts +0 -23
  61. package/unittests/styling/inline-styling.test.ts +0 -18
  62. package/unittests/styling/pseudo-selectors.test.ts +0 -33
  63. package/unittests/styling/transformations.test.ts +0 -234
  64. package/unittests/styling/value-interpretation.test.ts +0 -3
  65. package/unittests/testpage.ts +0 -5
  66. package/unittests/wait.test.ts +0 -31
  67. package/webpack.config.js +0 -28
package/src/dothtml.ts DELETED
@@ -1,39 +0,0 @@
1
-
2
- import dot from "./dot";
3
- import Component from "./component";
4
-
5
- dot.version = "5.2.2";
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
- * - Added "auto" as an accepted value to many length types.
29
- * - Made textIndent a numeric prop.
30
- */
31
-
32
-
33
-
34
- export default dot;
35
- export {default as DotComponent} from "./component";
36
- export {IDotElement} from "./i-dot";
37
- export {default as IDotCss} from "./styling/i-dotcss";
38
-
39
- // 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;