dothtml 5.2.9 → 5.2.11

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 (59) hide show
  1. package/lib/arg-callback-obj.d.ts +29 -29
  2. package/lib/arg-callback-obj.js +63 -63
  3. package/lib/built-in-components/nav-link.d.ts +8 -8
  4. package/lib/built-in-components/nav-link.js +23 -23
  5. package/lib/built-in-components/router.d.ts +57 -57
  6. package/lib/built-in-components/router.js +281 -281
  7. package/lib/built-in-components/router.js.map +1 -1
  8. package/lib/component.d.ts +82 -82
  9. package/lib/component.js +328 -328
  10. package/lib/dot-util.d.ts +26 -26
  11. package/lib/dot-util.js +61 -61
  12. package/lib/dot.d.ts +5 -5
  13. package/lib/dot.js +1121 -1095
  14. package/lib/dot.js.map +1 -1
  15. package/lib/dothtml.d.ts +29 -28
  16. package/lib/dothtml.js +14 -37
  17. package/lib/dothtml.js.map +1 -1
  18. package/lib/err.d.ts +2 -2
  19. package/lib/err.js +25 -25
  20. package/lib/event-bus.d.ts +10 -10
  21. package/lib/event-bus.js +36 -36
  22. package/lib/i-dot.d.ts +689 -674
  23. package/lib/i-dot.js +2 -2
  24. package/lib/node-polyfill.d.ts +2 -2
  25. package/lib/node-polyfill.js +13 -13
  26. package/lib/observable-array.d.ts +49 -49
  27. package/lib/observable-array.js +273 -273
  28. package/lib/pages/home-page.d.ts +9 -0
  29. package/lib/pages/home-page.js +24 -0
  30. package/lib/pages/home-page.js.map +1 -0
  31. package/lib/styling/css-types.ts/css-angle.d.ts +7 -7
  32. package/lib/styling/css-types.ts/css-angle.js +21 -21
  33. package/lib/styling/css-types.ts/css-color.d.ts +9 -9
  34. package/lib/styling/css-types.ts/css-color.js +823 -823
  35. package/lib/styling/css-types.ts/css-complex.d.ts +7 -7
  36. package/lib/styling/css-types.ts/css-complex.js +22 -22
  37. package/lib/styling/css-types.ts/css-data-type.d.ts +5 -5
  38. package/lib/styling/css-types.ts/css-data-type.js +8 -8
  39. package/lib/styling/css-types.ts/css-filter.d.ts +22 -22
  40. package/lib/styling/css-types.ts/css-filter.js +120 -120
  41. package/lib/styling/css-types.ts/css-length.d.ts +7 -7
  42. package/lib/styling/css-types.ts/css-length.js +23 -23
  43. package/lib/styling/css-types.ts/css-number.d.ts +6 -6
  44. package/lib/styling/css-types.ts/css-number.js +16 -16
  45. package/lib/styling/css-types.ts/css-percentage.d.ts +5 -5
  46. package/lib/styling/css-types.ts/css-percentage.js +12 -12
  47. package/lib/styling/css-types.ts/css-transform.d.ts +38 -38
  48. package/lib/styling/css-types.ts/css-transform.js +182 -182
  49. package/lib/styling/css-types.ts/css-unknown.d.ts +6 -6
  50. package/lib/styling/css-types.ts/css-unknown.js +16 -16
  51. package/lib/styling/css-types.ts/css-url.d.ts +6 -6
  52. package/lib/styling/css-types.ts/css-url.js +44 -44
  53. package/lib/styling/i-dotcss.d.ts +1085 -1085
  54. package/lib/styling/i-dotcss.js +2 -2
  55. package/lib/styling/style-builder.d.ts +24 -24
  56. package/lib/styling/style-builder.js +814 -814
  57. package/lib/styling/unit-function-tables.d.ts +10 -10
  58. package/lib/styling/unit-function-tables.js +26 -26
  59. package/package.json +9 -8
@@ -1,82 +1,82 @@
1
- import { IDotElement } from "./i-dot";
2
- import IDotCss from "./styling/i-dotcss";
3
- declare abstract class Component {
4
- #private;
5
- /**
6
- * Called once per component, on the first build.
7
- * TODO: this shouldn't require an instance of the component. Please experiment with fixing this.
8
- */
9
- static initializeComponent<T extends Component>(obj: T): void;
10
- static build<T extends Component>(obj: T): HTMLElement;
11
- /**
12
- * Called any time the component needs to be completely rebuilt.
13
- */
14
- static rebuild<T extends Component>(obj: T): void;
15
- static initializeEventHandlers(obj: any): void;
16
- static createProp(activePropContainer: Function, name: string): void;
17
- static configureDependency(cc: Component, name: string): void;
18
- static updateProp(obj: Component, name: string): void;
19
- constructor(...args: Array<any>);
20
- /**
21
- * A function returning DOThtml (required).
22
- */
23
- abstract builder(...args: Array<any>): IDotElement;
24
- /**
25
- *
26
- */
27
- props: {
28
- [key: string]: any;
29
- };
30
- /**
31
- * A series of events that can be raised from inside the component.
32
- */
33
- events: {
34
- [key: string]: (...params: Array<any>) => void;
35
- };
36
- /**
37
- * An optional function that gets called before the component is created, scoped to the new component object.
38
- */
39
- created(...args: Array<any>): void;
40
- /**
41
- * An optional function called after the element has been added. One parameter will be provided containing the added element.
42
- */
43
- ready(): void;
44
- /**
45
- * An optional function called before the component is deleted.
46
- */
47
- deleting(): void;
48
- /**
49
- * An optional function called after the component is deleted.
50
- */
51
- deleted(): void;
52
- /**
53
- * An optional function called after the component is built.
54
- */
55
- built(): void;
56
- on(event: string, handler: Function): void;
57
- off(event: string, handler: Function): void;
58
- private __$el;
59
- private __built;
60
- private __stylesSet;
61
- private __eventsInitialized;
62
- private __propContainer;
63
- private __args;
64
- /**
65
- * The main element of this component - automatically set after the builder is called.
66
- */
67
- get $el(): HTMLElement;
68
- $refs: {
69
- [key: string]: HTMLElement;
70
- };
71
- /**
72
- * Name of the component (optional). If provided, dot and the VDBO will be extended.
73
- */
74
- name: string;
75
- /**
76
- * An optional function that is called after builder that stylizes the component using a scoped style builder.
77
- */
78
- style?(styleBuilder: IDotCss): void;
79
- $styleBuilder?: Function;
80
- $updateStyles(): void;
81
- }
82
- export default Component;
1
+ import { IDotElement } from "./i-dot";
2
+ import IDotCss from "./styling/i-dotcss";
3
+ declare abstract class Component {
4
+ #private;
5
+ /**
6
+ * Called once per component, on the first build.
7
+ * TODO: this shouldn't require an instance of the component. Please experiment with fixing this.
8
+ */
9
+ static initializeComponent<T extends Component>(obj: T): void;
10
+ static build<T extends Component>(obj: T): HTMLElement;
11
+ /**
12
+ * Called any time the component needs to be completely rebuilt.
13
+ */
14
+ static rebuild<T extends Component>(obj: T): void;
15
+ static initializeEventHandlers(obj: any): void;
16
+ static createProp(activePropContainer: Function, name: string): void;
17
+ static configureDependency(cc: Component, name: string): void;
18
+ static updateProp(obj: Component, name: string): void;
19
+ constructor(...args: Array<any>);
20
+ /**
21
+ * A function returning DOThtml (required).
22
+ */
23
+ abstract builder(...args: Array<any>): IDotElement;
24
+ /**
25
+ *
26
+ */
27
+ props: {
28
+ [key: string]: any;
29
+ };
30
+ /**
31
+ * A series of events that can be raised from inside the component.
32
+ */
33
+ events: {
34
+ [key: string]: (...params: Array<any>) => void;
35
+ };
36
+ /**
37
+ * An optional function that gets called before the component is created, scoped to the new component object.
38
+ */
39
+ created(...args: Array<any>): void;
40
+ /**
41
+ * An optional function called after the element has been added. One parameter will be provided containing the added element.
42
+ */
43
+ ready(): void;
44
+ /**
45
+ * An optional function called before the component is deleted.
46
+ */
47
+ deleting(): void;
48
+ /**
49
+ * An optional function called after the component is deleted.
50
+ */
51
+ deleted(): void;
52
+ /**
53
+ * An optional function called after the component is built.
54
+ */
55
+ built(): void;
56
+ on(event: string, handler: Function): void;
57
+ off(event: string, handler: Function): void;
58
+ private __$el;
59
+ private __built;
60
+ private __stylesSet;
61
+ private __eventsInitialized;
62
+ private __propContainer;
63
+ private __args;
64
+ /**
65
+ * The main element of this component - automatically set after the builder is called.
66
+ */
67
+ get $el(): HTMLElement;
68
+ $refs: {
69
+ [key: string]: HTMLElement;
70
+ };
71
+ /**
72
+ * Name of the component (optional). If provided, dot and the VDBO will be extended.
73
+ */
74
+ name: string;
75
+ /**
76
+ * An optional function that is called after builder that stylizes the component using a scoped style builder.
77
+ */
78
+ style?(styleBuilder: IDotCss): void;
79
+ $styleBuilder?: Function;
80
+ $updateStyles(): void;
81
+ }
82
+ export default Component;