tweak-ui 0.4.3 → 0.8.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 (200) hide show
  1. package/LICENSE +7 -7
  2. package/README.md +32 -32
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/lib/builder.d.ts +102 -162
  6. package/dist/lib/builder.d.ts.map +1 -1
  7. package/dist/lib/color/adapter.d.ts +7 -0
  8. package/dist/lib/color/adapter.d.ts.map +1 -0
  9. package/dist/lib/color/array-format.d.ts +9 -0
  10. package/dist/lib/color/array-format.d.ts.map +1 -0
  11. package/dist/lib/{color-formats → color}/converter.d.ts +18 -18
  12. package/dist/lib/color/converter.d.ts.map +1 -0
  13. package/dist/lib/color/css-string-format.d.ts +8 -0
  14. package/dist/lib/color/css-string-format.d.ts.map +1 -0
  15. package/dist/lib/color/formatter.d.ts +9 -0
  16. package/dist/lib/color/formatter.d.ts.map +1 -0
  17. package/dist/lib/color/hex-string-format.d.ts +9 -0
  18. package/dist/lib/color/hex-string-format.d.ts.map +1 -0
  19. package/dist/lib/{color-formats → color}/index.d.ts +3 -3
  20. package/dist/lib/color/index.d.ts.map +1 -0
  21. package/dist/lib/color/number-format.d.ts +9 -0
  22. package/dist/lib/color/number-format.d.ts.map +1 -0
  23. package/dist/lib/{color-formats → color}/object-format.d.ts +14 -14
  24. package/dist/lib/color/object-format.d.ts.map +1 -0
  25. package/dist/lib/{color-formats → color}/types.d.ts +107 -101
  26. package/dist/lib/color/types.d.ts.map +1 -0
  27. package/dist/lib/components/container/bar.d.ts +28 -0
  28. package/dist/lib/components/container/bar.d.ts.map +1 -0
  29. package/dist/lib/components/container/dialog.d.ts +14 -0
  30. package/dist/lib/components/container/dialog.d.ts.map +1 -0
  31. package/dist/lib/components/container/grid.d.ts +22 -0
  32. package/dist/lib/components/container/grid.d.ts.map +1 -0
  33. package/dist/lib/components/container/group.d.ts +55 -0
  34. package/dist/lib/components/container/group.d.ts.map +1 -0
  35. package/dist/lib/components/container/index.d.ts +10 -0
  36. package/dist/lib/components/container/index.d.ts.map +1 -0
  37. package/dist/lib/components/container/list.d.ts +25 -0
  38. package/dist/lib/components/container/list.d.ts.map +1 -0
  39. package/dist/lib/components/container/section.d.ts +28 -0
  40. package/dist/lib/components/container/section.d.ts.map +1 -0
  41. package/dist/lib/components/container/split.d.ts +40 -0
  42. package/dist/lib/components/container/split.d.ts.map +1 -0
  43. package/dist/lib/components/container/tabs.d.ts +23 -0
  44. package/dist/lib/components/container/tabs.d.ts.map +1 -0
  45. package/dist/lib/components/container/tree.d.ts +25 -0
  46. package/dist/lib/components/container/tree.d.ts.map +1 -0
  47. package/dist/lib/components/controls/angle.d.ts +47 -51
  48. package/dist/lib/components/controls/angle.d.ts.map +1 -1
  49. package/dist/lib/components/controls/bitmask.d.ts +41 -0
  50. package/dist/lib/components/controls/bitmask.d.ts.map +1 -0
  51. package/dist/lib/components/controls/bool.d.ts +52 -0
  52. package/dist/lib/components/controls/bool.d.ts.map +1 -0
  53. package/dist/lib/components/controls/color-picker.d.ts +41 -56
  54. package/dist/lib/components/controls/color-picker.d.ts.map +1 -1
  55. package/dist/lib/components/controls/color.d.ts +37 -51
  56. package/dist/lib/components/controls/color.d.ts.map +1 -1
  57. package/dist/lib/components/controls/index.d.ts +14 -10
  58. package/dist/lib/components/controls/index.d.ts.map +1 -1
  59. package/dist/lib/components/controls/input.d.ts +44 -0
  60. package/dist/lib/components/controls/input.d.ts.map +1 -0
  61. package/dist/lib/components/controls/matrix.d.ts +58 -0
  62. package/dist/lib/components/controls/matrix.d.ts.map +1 -0
  63. package/dist/lib/components/controls/point.d.ts +41 -47
  64. package/dist/lib/components/controls/point.d.ts.map +1 -1
  65. package/dist/lib/components/controls/poll.d.ts +12 -0
  66. package/dist/lib/components/controls/poll.d.ts.map +1 -0
  67. package/dist/lib/components/controls/scalar.d.ts +67 -0
  68. package/dist/lib/components/controls/scalar.d.ts.map +1 -0
  69. package/dist/lib/components/controls/select.d.ts +53 -59
  70. package/dist/lib/components/controls/select.d.ts.map +1 -1
  71. package/dist/lib/components/controls/spherical.d.ts +37 -74
  72. package/dist/lib/components/controls/spherical.d.ts.map +1 -1
  73. package/dist/lib/components/controls/string.d.ts +46 -0
  74. package/dist/lib/components/controls/string.d.ts.map +1 -0
  75. package/dist/lib/components/controls/vector.d.ts +54 -0
  76. package/dist/lib/components/controls/vector.d.ts.map +1 -0
  77. package/dist/lib/components/elements/button.d.ts +36 -0
  78. package/dist/lib/components/elements/button.d.ts.map +1 -0
  79. package/dist/lib/components/elements/divider.d.ts +4 -0
  80. package/dist/lib/components/elements/divider.d.ts.map +1 -0
  81. package/dist/lib/components/elements/graph.d.ts +8 -0
  82. package/dist/lib/components/elements/graph.d.ts.map +1 -0
  83. package/dist/lib/components/elements/image.d.ts +33 -0
  84. package/dist/lib/components/elements/image.d.ts.map +1 -0
  85. package/dist/lib/components/elements/index.d.ts +6 -0
  86. package/dist/lib/components/elements/index.d.ts.map +1 -0
  87. package/dist/lib/components/elements/widget.d.ts +27 -0
  88. package/dist/lib/components/elements/widget.d.ts.map +1 -0
  89. package/dist/lib/components/index.d.ts +3 -5
  90. package/dist/lib/components/index.d.ts.map +1 -1
  91. package/dist/lib/core/control.d.ts +20 -0
  92. package/dist/lib/core/control.d.ts.map +1 -0
  93. package/dist/lib/core/index.d.ts +3 -4
  94. package/dist/lib/core/index.d.ts.map +1 -1
  95. package/dist/lib/core/render.d.ts +7 -9
  96. package/dist/lib/core/render.d.ts.map +1 -1
  97. package/dist/lib/core/types.d.ts +73 -87
  98. package/dist/lib/core/types.d.ts.map +1 -1
  99. package/dist/lib/core/utils.d.ts +78 -93
  100. package/dist/lib/core/utils.d.ts.map +1 -1
  101. package/dist/lib/index.d.ts +21 -27
  102. package/dist/lib/index.d.ts.map +1 -1
  103. package/dist/lib/mount.d.ts +35 -45
  104. package/dist/lib/mount.d.ts.map +1 -1
  105. package/dist/lib/stats/index.d.ts +2 -0
  106. package/dist/lib/stats/index.d.ts.map +1 -0
  107. package/dist/lib/stats/sampler.d.ts +66 -0
  108. package/dist/lib/stats/sampler.d.ts.map +1 -0
  109. package/dist/lib/stats/stats-renderer.d.ts +16 -0
  110. package/dist/lib/stats/stats-renderer.d.ts.map +1 -0
  111. package/dist/style.css +1 -0
  112. package/dist/style.d.ts +4 -0
  113. package/dist/tweak-ui.module.js +2938 -2393
  114. package/dist/tweak-ui.module.js.map +1 -1
  115. package/dist/tweak-ui.umd.js +33 -4420
  116. package/dist/tweak-ui.umd.js.map +1 -1
  117. package/package.json +37 -51
  118. package/dist/index.html +0 -1063
  119. package/dist/lib/color-formats/array-format.d.ts +0 -9
  120. package/dist/lib/color-formats/array-format.d.ts.map +0 -1
  121. package/dist/lib/color-formats/array-format.spec.d.ts +0 -2
  122. package/dist/lib/color-formats/array-format.spec.d.ts.map +0 -1
  123. package/dist/lib/color-formats/converter.d.ts.map +0 -1
  124. package/dist/lib/color-formats/converter.spec.d.ts +0 -2
  125. package/dist/lib/color-formats/converter.spec.d.ts.map +0 -1
  126. package/dist/lib/color-formats/css-string-format.d.ts +0 -8
  127. package/dist/lib/color-formats/css-string-format.d.ts.map +0 -1
  128. package/dist/lib/color-formats/css-string-format.spec.d.ts +0 -2
  129. package/dist/lib/color-formats/css-string-format.spec.d.ts.map +0 -1
  130. package/dist/lib/color-formats/formatter.d.ts +0 -9
  131. package/dist/lib/color-formats/formatter.d.ts.map +0 -1
  132. package/dist/lib/color-formats/formatter.spec.d.ts +0 -2
  133. package/dist/lib/color-formats/formatter.spec.d.ts.map +0 -1
  134. package/dist/lib/color-formats/hex-string-format.d.ts +0 -8
  135. package/dist/lib/color-formats/hex-string-format.d.ts.map +0 -1
  136. package/dist/lib/color-formats/hex-string-format.spec.d.ts +0 -2
  137. package/dist/lib/color-formats/hex-string-format.spec.d.ts.map +0 -1
  138. package/dist/lib/color-formats/index.d.ts.map +0 -1
  139. package/dist/lib/color-formats/number-format.d.ts +0 -9
  140. package/dist/lib/color-formats/number-format.d.ts.map +0 -1
  141. package/dist/lib/color-formats/number-format.spec.d.ts +0 -2
  142. package/dist/lib/color-formats/number-format.spec.d.ts.map +0 -1
  143. package/dist/lib/color-formats/object-format.d.ts.map +0 -1
  144. package/dist/lib/color-formats/object-format.spec.d.ts +0 -2
  145. package/dist/lib/color-formats/object-format.spec.d.ts.map +0 -1
  146. package/dist/lib/color-formats/types.d.ts.map +0 -1
  147. package/dist/lib/components/button.d.ts +0 -29
  148. package/dist/lib/components/button.d.ts.map +0 -1
  149. package/dist/lib/components/content.d.ts +0 -22
  150. package/dist/lib/components/content.d.ts.map +0 -1
  151. package/dist/lib/components/controls/checkbox.d.ts +0 -29
  152. package/dist/lib/components/controls/checkbox.d.ts.map +0 -1
  153. package/dist/lib/components/controls/number.d.ts +0 -48
  154. package/dist/lib/components/controls/number.d.ts.map +0 -1
  155. package/dist/lib/components/controls/position.d.ts +0 -56
  156. package/dist/lib/components/controls/position.d.ts.map +0 -1
  157. package/dist/lib/components/controls/text.d.ts +0 -36
  158. package/dist/lib/components/controls/text.d.ts.map +0 -1
  159. package/dist/lib/components/groups/accordion.d.ts +0 -22
  160. package/dist/lib/components/groups/accordion.d.ts.map +0 -1
  161. package/dist/lib/components/groups/container.d.ts +0 -25
  162. package/dist/lib/components/groups/container.d.ts.map +0 -1
  163. package/dist/lib/components/groups/group.d.ts +0 -49
  164. package/dist/lib/components/groups/group.d.ts.map +0 -1
  165. package/dist/lib/components/groups/index.d.ts +0 -5
  166. package/dist/lib/components/groups/index.d.ts.map +0 -1
  167. package/dist/lib/components/groups/tabs.d.ts +0 -22
  168. package/dist/lib/components/groups/tabs.d.ts.map +0 -1
  169. package/dist/lib/components/image.d.ts +0 -37
  170. package/dist/lib/components/image.d.ts.map +0 -1
  171. package/dist/lib/core/registry.d.ts +0 -18
  172. package/dist/lib/core/registry.d.ts.map +0 -1
  173. package/dist/lib/core/value-accessor.d.ts +0 -18
  174. package/dist/lib/core/value-accessor.d.ts.map +0 -1
  175. package/dist/scss/_style.scss +0 -120
  176. package/dist/scss/_themes.scss +0 -23
  177. package/dist/scss/_utils.scss +0 -24
  178. package/dist/scss/_variables.scss +0 -30
  179. package/dist/scss/controls/_angle.scss +0 -64
  180. package/dist/scss/controls/_button.scss +0 -0
  181. package/dist/scss/controls/_checkbox.scss +0 -19
  182. package/dist/scss/controls/_color-picker.scss +0 -124
  183. package/dist/scss/controls/_color.scss +0 -14
  184. package/dist/scss/controls/_container.scss +0 -13
  185. package/dist/scss/controls/_group.scss +0 -69
  186. package/dist/scss/controls/_image.scss +0 -27
  187. package/dist/scss/controls/_number.scss +0 -38
  188. package/dist/scss/controls/_point.scss +0 -36
  189. package/dist/scss/controls/_position.scss +0 -9
  190. package/dist/scss/controls/_select.scss +0 -0
  191. package/dist/scss/controls/_spherical.scss +0 -87
  192. package/dist/scss/controls/_tabs.scss +0 -38
  193. package/dist/scss/controls/_text.scss +0 -0
  194. package/dist/scss/index.scss +0 -21
  195. package/dist/tweak-ui.css +0 -653
  196. package/dist/tweak-ui.css.map +0 -1
  197. package/dist/tweak-ui.min.css +0 -1
  198. package/dist/tweak-ui.min.css.map +0 -1
  199. package/dist/tweak-ui.umd.min.js +0 -17
  200. package/dist/tweak-ui.umd.min.js.map +0 -1
@@ -1,9 +0,0 @@
1
- import { ColorFormatter, RGBA } from './types';
2
- export declare class ArrayColorFormat implements ColorFormatter<number[]> {
3
- private components;
4
- private normalized;
5
- constructor(components: string[], normalized: boolean);
6
- parse(v: number[]): RGBA;
7
- format(rgba: RGBA): number[];
8
- }
9
- //# sourceMappingURL=array-format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"array-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/array-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,qBAAa,gBAAiB,YAAW,cAAc,CAAC,MAAM,EAAE,CAAC;IACnD,OAAO,CAAC,UAAU;IAAY,OAAO,CAAC,UAAU;gBAAxC,UAAU,EAAE,MAAM,EAAE,EAAU,UAAU,EAAE,OAAO;IAC9D,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE;IASjB,MAAM,CAAC,IAAI,EAAE,IAAI;CAKzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=array-format.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"array-format.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/array-format.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/converter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAyCrC;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAyBrC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=converter.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"converter.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/converter.spec.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import { ColorFormatter, RGBA } from './types';
2
- export declare class CssStringFormat implements ColorFormatter<string> {
3
- private components;
4
- constructor(components: string[]);
5
- parse(value: string): RGBA;
6
- format(rgba: RGBA): string;
7
- }
8
- //# sourceMappingURL=css-string-format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-string-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/css-string-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,qBAAa,eAAgB,YAAW,cAAc,CAAC,MAAM,CAAC;IAChD,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,MAAM,EAAE;IACjC,KAAK,CAAC,KAAK,EAAE,MAAM;IAanB,MAAM,CAAC,IAAI,EAAE,IAAI;CAYzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=css-string-format.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-string-format.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/css-string-format.spec.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { ColorFormatter } from './types';
2
- /**
3
- * Gets a formatter implementation for the given format
4
- *
5
- * @public
6
- * @param format - The format code
7
- */
8
- export declare function getColorFormatter(format?: string): ColorFormatter<any>;
9
- //# sourceMappingURL=formatter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/formatter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,MAAc,GAAG,cAAc,CAAC,GAAG,CAAC,CAiB7E"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=formatter.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatter.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/formatter.spec.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import { ColorFormatter, RGBA } from './types';
2
- export declare class HexStringFormat implements ColorFormatter<string> {
3
- private components;
4
- constructor(components: string[]);
5
- parse(value?: string): RGBA;
6
- format(rgba: RGBA): string;
7
- }
8
- //# sourceMappingURL=hex-string-format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hex-string-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/hex-string-format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,qBAAa,eAAgB,YAAW,cAAc,CAAC,MAAM,CAAC;IAChD,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,MAAM,EAAE;IACjC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM;IAgBpB,MAAM,CAAC,IAAI,EAAE,IAAI;CAQzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=hex-string-format.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hex-string-format.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/hex-string-format.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
@@ -1,9 +0,0 @@
1
- import { ColorFormatter, RGBA } from './types';
2
- export declare class NumberColorFormat implements ColorFormatter<number> {
3
- private components;
4
- private componentsRev;
5
- constructor(components: string[]);
6
- parse(v: number): RGBA;
7
- format(rgba: RGBA): number;
8
- }
9
- //# sourceMappingURL=number-format.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/number-format.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,qBAAa,iBAAkB,YAAW,cAAc,CAAC,MAAM,CAAC;IAElD,OAAO,CAAC,UAAU;IAD9B,OAAO,CAAC,aAAa,CAAU;gBACX,UAAU,EAAE,MAAM,EAAE;IAGjC,KAAK,CAAC,CAAC,EAAE,MAAM;IASf,MAAM,CAAC,IAAI,EAAE,IAAI;CAQzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=number-format.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number-format.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/number-format.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-format.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/object-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9C,qBAAa,iBACX,YAAW,cAAc,CAAC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;IACxC,OAAO,CAAC,UAAU;IAAY,OAAO,CAAC,UAAU;gBAAxC,UAAU,EAAE,MAAM,EAAE,EAAU,UAAU,EAAE,OAAO;IAC9D,KAAK,CAAC,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IASlC,MAAM,CAAC,IAAI,EAAE,IAAI;;;CAQzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=object-format.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-format.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/object-format.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/color-formats/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,GAAG;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,GAAG;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;IACT;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,GAAG;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAA;IACrB;;OAEG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,CAAA;CAC1B"}
@@ -1,29 +0,0 @@
1
- import { ComponentAttrs, ComponentModel } from '../core';
2
- /**
3
- * Button component attribuets
4
- * @public
5
- */
6
- export declare type ButtonAttrs = ComponentAttrs<ButtonModel>;
7
- /**
8
- * Button component model
9
- * @public
10
- */
11
- export interface ButtonModel extends ComponentModel {
12
- /**
13
- * The type name of the control
14
- */
15
- type: 'button';
16
- /**
17
- * The button text
18
- */
19
- text?: string;
20
- /**
21
- * This is callend when the control is clicked
22
- */
23
- onClick?: (ctrl: ButtonModel) => void;
24
- /**
25
- * Disables the control input
26
- */
27
- disabled?: boolean;
28
- }
29
- //# sourceMappingURL=button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/lib/components/button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGnE;;;GAGG;AACH,oBAAY,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA;AAErD;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAA;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -1,22 +0,0 @@
1
- import { Child } from 'mithril';
2
- import { ComponentAttrs, ComponentModel } from '../core';
3
- /**
4
- * Content component attributes
5
- * @public
6
- */
7
- export declare type ContentAttrs = ComponentAttrs<ContentModel>;
8
- /**
9
- * Content component model
10
- * @public
11
- */
12
- export interface ContentModel extends ComponentModel {
13
- /**
14
- * The type name of the control
15
- */
16
- type: 'content';
17
- /**
18
- * A mithril child
19
- */
20
- content?: Child;
21
- }
22
- //# sourceMappingURL=content.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/lib/components/content.ts"],"names":[],"mappings":"AAAA,OAAU,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGnE;;;GAGG;AACH,oBAAY,YAAY,GAAG,cAAc,CAAC,YAAY,CAAC,CAAA;AAEvD;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAA;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAA;CAChB"}
@@ -1,29 +0,0 @@
1
- import { ValueSource, ComponentAttrs, ComponentModel } from '../../core';
2
- /**
3
- * Checkbox component attrs
4
- * @public
5
- */
6
- export declare type CheckboxAttrs = ComponentAttrs<CheckboxModel>;
7
- /**
8
- * Describes a checkbox control
9
- * @public
10
- */
11
- export interface CheckboxModel<T = unknown> extends ComponentModel, ValueSource<T, boolean> {
12
- /**
13
- * The type name of the control
14
- */
15
- type: 'checkbox';
16
- /**
17
- * This is called when the control value changes
18
- */
19
- onChange?: (model: CheckboxModel, value: unknown) => void;
20
- /**
21
- * Text behind the checkbox or inside the buttn
22
- */
23
- text?: string;
24
- /**
25
- * Disables the control input
26
- */
27
- disabled?: boolean;
28
- }
29
- //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/controls/checkbox.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,WAAW,EACX,cAAc,EACd,cAAc,EACf,MAAM,YAAY,CAAA;AAGnB;;;GAGG;AACH,oBAAY,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;AAEzD;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,OAAO,CACxC,SAAQ,cAAc,EACpB,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACzD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -1,48 +0,0 @@
1
- import { ComponentModel, ComponentAttrs, ValueSource } from '../../core';
2
- /**
3
- * Number component attributes
4
- * @public
5
- */
6
- export declare type NumberAttrs = ComponentAttrs<NumberModel>;
7
- /**
8
- * Number component model
9
- * @public
10
- */
11
- export interface NumberModel<T = unknown> extends ComponentModel, ValueSource<T, number> {
12
- /**
13
- * The type name of the control
14
- */
15
- type: 'number' | 'slider';
16
- /**
17
- * The placeholder text
18
- */
19
- placeholder?: string;
20
- /**
21
- * The min value
22
- */
23
- min?: number;
24
- /**
25
- * The max value
26
- */
27
- max?: number;
28
- /**
29
- * The step value
30
- */
31
- step?: number;
32
- /**
33
- * This is called when the control value has been changed.
34
- */
35
- onInput?: (model: NumberModel<T>, value: unknown) => void;
36
- /**
37
- * This is called once the control value is committed by the user.
38
- *
39
- * @remarks
40
- * Unlike the `onInput` callback, this is not necessarily called for each value change.
41
- */
42
- onChange?: (model: NumberModel<T>, value: unknown) => void;
43
- /**
44
- * Disables the control input
45
- */
46
- disabled?: boolean;
47
- }
48
- //# sourceMappingURL=number.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/controls/number.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,cAAc,EACd,cAAc,EACd,WAAW,EACZ,MAAM,YAAY,CAAA;AAGnB;;;GAGG;AACH,oBAAY,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA;AAErD;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,cAAc,EAAE,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IACtF;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACzD;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -1,56 +0,0 @@
1
- import { ComponentAttrs, ComponentModel, ValueSource } from '../../core';
2
- /**
3
- * @public
4
- */
5
- export declare type PositionValue = number[] | {
6
- [key: string]: number;
7
- } | {
8
- [key: number]: number;
9
- };
10
- /**
11
- * Position component attributes
12
- * @public
13
- */
14
- export declare type PositionAttrs = ComponentAttrs<PositionModel>;
15
- /**
16
- * Position component model
17
- * @public
18
- */
19
- export declare type PositionModel<T = unknown> = ComponentModel & ValueSource<T, PositionValue> & {
20
- /**
21
- * The type name of the control
22
- */
23
- type: 'position';
24
- /**
25
- * The position object field names. Defaults to `['x', 'y', 'z']`
26
- */
27
- keys?: string[];
28
- /**
29
- * The min value
30
- */
31
- min?: number;
32
- /**
33
- * The max value
34
- */
35
- max?: number;
36
- /**
37
- * The step value
38
- */
39
- step?: number;
40
- /**
41
- * This is called when the control value has been changed.
42
- */
43
- onInput?: (model: PositionModel<T>, value: unknown, key?: string | number) => void;
44
- /**
45
- * This is called once the control value is committed by the user.
46
- *
47
- * @remarks
48
- * Unlike the `onInput` callback, this is not necessarily called for each value change.
49
- */
50
- onChange?: (model: PositionModel<T>, value: unknown, key?: string | number) => void;
51
- /**
52
- * Disables the control input
53
- */
54
- disabled?: boolean;
55
- };
56
- //# sourceMappingURL=position.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/controls/position.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,cAAc,EACd,cAAc,EACd,WAAW,EACZ,MAAM,YAAY,CAAA;AAInB;;GAEG;AACH,oBAAY,aAAa,GACrB,MAAM,EAAE,GACR;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GACzB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA;AAE7B;;;GAGG;AACH,oBAAY,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;AAEzD;;;GAGG;AACH,oBAAY,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,cAAc,GACrD,WAAW,CAAC,CAAC,EAAE,aAAa,CAAC,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,KAAK,EAAE,OAAO,EACd,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,KAClB,IAAI,CAAA;IACT;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,KAAK,EAAE,OAAO,EACd,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,KAClB,IAAI,CAAA;IACT;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAA"}
@@ -1,36 +0,0 @@
1
- import { ComponentModel, ValueSource, ComponentAttrs } from '../../core';
2
- /**
3
- * Text component attributes
4
- * @public
5
- */
6
- export declare type TextAttrs = ComponentAttrs<TextModel>;
7
- /**
8
- * Text component model
9
- * @public
10
- */
11
- export interface TextModel<T = unknown> extends ComponentModel, ValueSource<T, string> {
12
- /**
13
- * The type name of the control
14
- */
15
- type: 'text';
16
- /**
17
- * The placeholder text
18
- */
19
- placeholder?: string;
20
- /**
21
- * This is called when the control value has been changed.
22
- */
23
- onInput?: (model: TextModel<T>, value: unknown) => void;
24
- /**
25
- * This is called once the control value is committed by the user.
26
- *
27
- * @remarks
28
- * Unlike the `onInput` callback, this is not necessarily called for each value change.
29
- */
30
- onChange?: (model: TextModel<T>, value: unknown) => void;
31
- /**
32
- * Disables the control input
33
- */
34
- disabled?: boolean;
35
- }
36
- //# sourceMappingURL=text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/controls/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,cAAc,EACd,WAAW,EACX,cAAc,EACf,MAAM,YAAY,CAAA;AAGnB;;;GAGG;AACH,oBAAY,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;AAEjD;;;GAGG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,OAAO,CACpC,SAAQ,cAAc,EACpB,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACvD;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -1,22 +0,0 @@
1
- import { ComponentAttrs, ComponentGroupModel } from '../../core';
2
- import { GroupModel } from './group';
3
- /**
4
- * Accordeon component attribuets
5
- * @public
6
- */
7
- export declare type AccordeonAtts = ComponentAttrs<AccordeonModel>;
8
- /**
9
- * Accordeon component model
10
- * @public
11
- */
12
- export interface AccordeonModel extends ComponentGroupModel<GroupModel> {
13
- /**
14
- * The type name of the control
15
- */
16
- type: 'accordion';
17
- /**
18
- * The index of the group that should be open initially
19
- */
20
- expand?: number;
21
- }
22
- //# sourceMappingURL=accordion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/groups/accordion.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,cAAc,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAExF,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC;;;GAGG;AACH,oBAAY,aAAa,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE1D;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,mBAAmB,CAAC,UAAU,CAAC;IACrE;;OAEG;IACH,IAAI,EAAE,WAAW,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
@@ -1,25 +0,0 @@
1
- import { ComponentGroupModel, ComponentAttrs, ComponentModel } from '../../core';
2
- /**
3
- * Container component attributes
4
- * @public
5
- */
6
- export declare type ContainerAttrs = ComponentAttrs<ContainerModel>;
7
- /**
8
- * Container component model
9
- * @public
10
- */
11
- export interface ContainerModel extends ComponentGroupModel<ComponentModel> {
12
- /**
13
- * Component type name
14
- */
15
- type: 'container';
16
- /**
17
- * Enables horizontal layout
18
- */
19
- horizontal?: boolean;
20
- /**
21
- * Custom CSS Style
22
- */
23
- style?: Partial<CSSStyleDeclaration>;
24
- }
25
- //# sourceMappingURL=container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/groups/container.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,mBAAmB,EACnB,cAAc,EACd,cAAc,EACf,MAAM,YAAY,CAAA;AAGnB;;;GAGG;AACH,oBAAY,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE3D;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,mBAAmB,CAAC,cAAc,CAAC;IACzE;;OAEG;IACH,IAAI,EAAE,WAAW,CAAA;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACrC"}
@@ -1,49 +0,0 @@
1
- import { ComponentGroupModel, ComponentAttrs, ComponentModel } from '../../core';
2
- /**
3
- * Group component attributes
4
- * @public
5
- */
6
- export declare type GroupAttrs = ComponentAttrs<GroupModel>;
7
- /**
8
- * Group component model
9
- * @public
10
- */
11
- export interface GroupModel extends ComponentGroupModel<ComponentModel> {
12
- /**
13
- * Component type name
14
- */
15
- type: 'group';
16
- /**
17
- * Group title
18
- */
19
- title?: string;
20
- /**
21
- * Group CSS Style
22
- */
23
- style?: Partial<CSSStyleDeclaration>;
24
- /**
25
- * Whether the child elements can be collapsed
26
- */
27
- collapsible?: boolean;
28
- /**
29
- * Whether the child elements are collapsed
30
- */
31
- collapsed?: boolean;
32
- /**
33
- * Adds an offset to the left side
34
- */
35
- inset?: boolean;
36
- /**
37
- * Is called when this Group has been collapsed or expanded
38
- */
39
- onToggle?: (group: GroupModel) => void;
40
- /**
41
- * Is called when this Group has been expanded
42
- */
43
- onExpand?: (group: GroupModel) => void;
44
- /**
45
- * Is called when this Group has been collapsed
46
- */
47
- onCollapse?: (group: GroupModel) => void;
48
- }
49
- //# sourceMappingURL=group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/groups/group.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,mBAAmB,EACnB,cAAc,EACd,cAAc,EACf,MAAM,YAAY,CAAA;AAGnB;;;GAGG;AACH,oBAAY,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEnD;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,mBAAmB,CAAC,cAAc,CAAC;IACrE;;OAEG;IACH,IAAI,EAAE,OAAO,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACtC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;CACzC"}
@@ -1,5 +0,0 @@
1
- export * from './accordion';
2
- export * from './container';
3
- export * from './group';
4
- export * from './tabs';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/groups/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
@@ -1,22 +0,0 @@
1
- import { ComponentAttrs, ComponentGroupModel } from '../../core';
2
- import { GroupModel } from './group';
3
- /**
4
- * Tabs component attributes
5
- * @public
6
- */
7
- export declare type TabsAtts = ComponentAttrs<TabsModel>;
8
- /**
9
- * Tabs component model
10
- * @public
11
- */
12
- export interface TabsModel extends ComponentGroupModel<GroupModel> {
13
- /**
14
- * The type name of the control
15
- */
16
- type: 'tabs';
17
- /**
18
- * The index of the opened tab
19
- */
20
- active: number;
21
- }
22
- //# sourceMappingURL=tabs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/groups/tabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,cAAc,EACd,mBAAmB,EACpB,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC;;;GAGG;AACH,oBAAY,QAAQ,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;AAEhD;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,mBAAmB,CAAC,UAAU,CAAC;IAChE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf"}
@@ -1,37 +0,0 @@
1
- import { ComponentModel, ComponentAttrs } from '../core';
2
- /**
3
- * Image component attrs
4
- * @public
5
- */
6
- export declare type ImageAttrs = ComponentAttrs<ImageModel>;
7
- /**
8
- * Image component model
9
- * @public
10
- */
11
- export interface ImageModel extends ComponentModel {
12
- /**
13
- * The type name of the control
14
- */
15
- type: 'image';
16
- /**
17
- * The image source url
18
- */
19
- src?: string | string[];
20
- /**
21
- * Aspect ratio of the picture container
22
- */
23
- aspect?: string;
24
- /**
25
- * A fixed width
26
- */
27
- width?: number | string;
28
- /**
29
- *
30
- */
31
- fit?: 'contain' | 'cover' | 'fill';
32
- /**
33
- * This is callend when the control is clicked
34
- */
35
- onClick?: (ctrl: ImageModel) => void;
36
- }
37
- //# sourceMappingURL=image.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/lib/components/image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGnE;;;GAGG;AACH,oBAAY,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEnD;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;OAEG;IACH,IAAI,EAAE,OAAO,CAAA;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAA;CACrC"}
@@ -1,18 +0,0 @@
1
- import type { ComponentAttrs, ComponentType } from './types';
2
- /**
3
- * Gets a registered component for a given type name
4
- *
5
- * @public
6
- * @param type - The component type
7
- */
8
- export declare function getComponent<T extends ComponentAttrs<any>>(type: string): ComponentType<T>;
9
- /**
10
- * Registers a component
11
- *
12
- * @public
13
- * @param type - The component type name
14
- * @param comp - The component
15
- * @param override - Allows to override an already registered component
16
- */
17
- export declare function component<T>(type: string, comp: ComponentType<T>, override?: boolean): void;
18
- //# sourceMappingURL=registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/lib/core/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5D;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,EACxD,IAAI,EAAE,MAAM,GACX,aAAa,CAAC,CAAC,CAAC,CAKlB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,QAAQ,GAAE,OAAe,QAO1B"}
@@ -1,18 +0,0 @@
1
- import type { ValueSource } from './types';
2
- /**
3
- * Gets a value of a view model
4
- *
5
- * @public
6
- * @param model - The model of a component
7
- */
8
- export declare function getValue<V>(model: ValueSource<any, V>): V;
9
- /**
10
- * Sets a value on a view model
11
- *
12
- * @public
13
- * @param model - The model of a component
14
- * @param value - The value for the component
15
- * @returns the encoded value as it was written to the model
16
- */
17
- export declare function setValue<V>(model: ValueSource<any, V>, value: V): unknown;
18
- //# sourceMappingURL=value-accessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"value-accessor.d.ts","sourceRoot":"","sources":["../../../src/lib/core/value-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAEzD;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAIzE"}