@net7/components 3.0.2-rc.2

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 (232) hide show
  1. package/README.md +24 -0
  2. package/esm2020/lib/components/advanced-autocomplete/advanced-autocomplete.mjs +25 -0
  3. package/esm2020/lib/components/advanced-autocomplete/advanced-autocomplete.mock.mjs +100 -0
  4. package/esm2020/lib/components/alert/alert.mjs +24 -0
  5. package/esm2020/lib/components/alert/alert.mock.mjs +11 -0
  6. package/esm2020/lib/components/anchor-wrapper/anchor-wrapper.mjs +35 -0
  7. package/esm2020/lib/components/breadcrumbs/breadcrumbs.mjs +25 -0
  8. package/esm2020/lib/components/breadcrumbs/breadcrumbs.mock.mjs +25 -0
  9. package/esm2020/lib/components/bubble-chart/bubble-chart.mjs +315 -0
  10. package/esm2020/lib/components/bubble-chart/bubble-chart.mock.mjs +4025 -0
  11. package/esm2020/lib/components/carousel/carousel.mjs +89 -0
  12. package/esm2020/lib/components/carousel/carousel.mock.mjs +135 -0
  13. package/esm2020/lib/components/chart/chart.mjs +37 -0
  14. package/esm2020/lib/components/chart/chart.mock.mjs +112 -0
  15. package/esm2020/lib/components/content-placeholder/content-placeholder.mjs +17 -0
  16. package/esm2020/lib/components/content-placeholder/content-placeholder.mock.mjs +13 -0
  17. package/esm2020/lib/components/data-widget/data-widget.mjs +29 -0
  18. package/esm2020/lib/components/data-widget/data-widget.mock.mjs +13 -0
  19. package/esm2020/lib/components/datepicker/datepicker.mjs +44 -0
  20. package/esm2020/lib/components/datepicker/datepicker.mock.mjs +8 -0
  21. package/esm2020/lib/components/facet/facet.mjs +24 -0
  22. package/esm2020/lib/components/facet/facet.mock.mjs +103 -0
  23. package/esm2020/lib/components/facet-header/facet-header.mjs +24 -0
  24. package/esm2020/lib/components/facet-header/facet-header.mock.mjs +9 -0
  25. package/esm2020/lib/components/facet-year-range/facet-year-range.mjs +53 -0
  26. package/esm2020/lib/components/facet-year-range/facet-year-range.mock.mjs +30 -0
  27. package/esm2020/lib/components/footer/footer.mjs +25 -0
  28. package/esm2020/lib/components/footer/footer.mock.mjs +48 -0
  29. package/esm2020/lib/components/header/header.mjs +51 -0
  30. package/esm2020/lib/components/header/header.mock.mjs +83 -0
  31. package/esm2020/lib/components/hero/hero.mjs +41 -0
  32. package/esm2020/lib/components/hero/hero.mock.mjs +25 -0
  33. package/esm2020/lib/components/histogram-range/histogram-range.mjs +376 -0
  34. package/esm2020/lib/components/histogram-range/histogram-range.mock.mjs +243 -0
  35. package/esm2020/lib/components/image-viewer/image-viewer.mjs +55 -0
  36. package/esm2020/lib/components/image-viewer/image-viewer.mock.mjs +25 -0
  37. package/esm2020/lib/components/image-viewer-tools/image-viewer-tools.mjs +28 -0
  38. package/esm2020/lib/components/image-viewer-tools/image-viewer-tools.mock.mjs +54 -0
  39. package/esm2020/lib/components/inner-title/inner-title.mjs +40 -0
  40. package/esm2020/lib/components/inner-title/inner-title.mock.mjs +52 -0
  41. package/esm2020/lib/components/input-checkbox/input-checkbox.mjs +24 -0
  42. package/esm2020/lib/components/input-checkbox/input-checkbox.mock.mjs +25 -0
  43. package/esm2020/lib/components/input-link/input-link.mjs +24 -0
  44. package/esm2020/lib/components/input-link/input-link.mock.mjs +38 -0
  45. package/esm2020/lib/components/input-select/input-select.mjs +24 -0
  46. package/esm2020/lib/components/input-select/input-select.mock.mjs +12 -0
  47. package/esm2020/lib/components/input-text/input-text.mjs +24 -0
  48. package/esm2020/lib/components/input-text/input-text.mock.mjs +13 -0
  49. package/esm2020/lib/components/item-preview/item-preview.mjs +25 -0
  50. package/esm2020/lib/components/item-preview/item-preview.mock.mjs +43 -0
  51. package/esm2020/lib/components/loader/loader.mjs +16 -0
  52. package/esm2020/lib/components/loader/loader.mock.mjs +4 -0
  53. package/esm2020/lib/components/map/map.mjs +64 -0
  54. package/esm2020/lib/components/map/map.mock.mjs +25 -0
  55. package/esm2020/lib/components/metadata-viewer/metadata-viewer.mjs +19 -0
  56. package/esm2020/lib/components/metadata-viewer/metadata-viewer.mock.mjs +74 -0
  57. package/esm2020/lib/components/nav/nav.mjs +22 -0
  58. package/esm2020/lib/components/nav/nav.mock.mjs +29 -0
  59. package/esm2020/lib/components/pagination/pagination.mjs +31 -0
  60. package/esm2020/lib/components/pagination/pagination.mock.mjs +23 -0
  61. package/esm2020/lib/components/progress-line/progress-line.mjs +19 -0
  62. package/esm2020/lib/components/progress-line/progress-line.mock.mjs +5 -0
  63. package/esm2020/lib/components/sidebar-header/sidebar-header.mjs +24 -0
  64. package/esm2020/lib/components/sidebar-header/sidebar-header.mock.mjs +9 -0
  65. package/esm2020/lib/components/signup/signup.mjs +44 -0
  66. package/esm2020/lib/components/signup/signup.mock.mjs +106 -0
  67. package/esm2020/lib/components/simple-autocomplete/simple-autocomplete.mjs +25 -0
  68. package/esm2020/lib/components/simple-autocomplete/simple-autocomplete.mock.mjs +15 -0
  69. package/esm2020/lib/components/table/table.mjs +35 -0
  70. package/esm2020/lib/components/table/table.mock.mjs +152 -0
  71. package/esm2020/lib/components/tag/tag.mjs +24 -0
  72. package/esm2020/lib/components/tag/tag.mock.mjs +8 -0
  73. package/esm2020/lib/components/text-viewer/text-viewer.mjs +37 -0
  74. package/esm2020/lib/components/text-viewer/text-viewer.mock.mjs +39 -0
  75. package/esm2020/lib/components/timeline/timeline.mjs +51 -0
  76. package/esm2020/lib/components/timeline/timeline.mock.mjs +137 -0
  77. package/esm2020/lib/components/toast/toast.mjs +24 -0
  78. package/esm2020/lib/components/toast/toast.mock.mjs +47 -0
  79. package/esm2020/lib/components/tooltip-content/tooltip-content.mjs +25 -0
  80. package/esm2020/lib/components/tooltip-content/tooltip-content.mock.mjs +19 -0
  81. package/esm2020/lib/components/tree/tree.mjs +25 -0
  82. package/esm2020/lib/components/tree/tree.mock.mjs +274 -0
  83. package/esm2020/lib/components/wizard/wizard.mjs +24 -0
  84. package/esm2020/lib/components/wizard/wizard.mock.mjs +29 -0
  85. package/esm2020/lib/dv-components-lib.module.mjs +191 -0
  86. package/esm2020/lib/shared-interfaces.mjs +2 -0
  87. package/esm2020/net7-components.mjs +5 -0
  88. package/esm2020/public-api.mjs +93 -0
  89. package/fesm2015/net7-components.mjs +8154 -0
  90. package/fesm2015/net7-components.mjs.map +1 -0
  91. package/fesm2020/net7-components.mjs +8168 -0
  92. package/fesm2020/net7-components.mjs.map +1 -0
  93. package/lib/components/advanced-autocomplete/advanced-autocomplete.d.ts +57 -0
  94. package/lib/components/advanced-autocomplete/advanced-autocomplete.mock.d.ts +2 -0
  95. package/lib/components/alert/alert.d.ts +46 -0
  96. package/lib/components/alert/alert.mock.d.ts +2 -0
  97. package/lib/components/anchor-wrapper/anchor-wrapper.d.ts +16 -0
  98. package/lib/components/breadcrumbs/breadcrumbs.d.ts +50 -0
  99. package/lib/components/breadcrumbs/breadcrumbs.mock.d.ts +2 -0
  100. package/lib/components/bubble-chart/bubble-chart.d.ts +108 -0
  101. package/lib/components/bubble-chart/bubble-chart.mock.d.ts +2 -0
  102. package/lib/components/carousel/carousel.d.ts +166 -0
  103. package/lib/components/carousel/carousel.mock.d.ts +2 -0
  104. package/lib/components/chart/chart.d.ts +46 -0
  105. package/lib/components/chart/chart.mock.d.ts +2 -0
  106. package/lib/components/content-placeholder/content-placeholder.d.ts +28 -0
  107. package/lib/components/content-placeholder/content-placeholder.mock.d.ts +2 -0
  108. package/lib/components/data-widget/data-widget.d.ts +50 -0
  109. package/lib/components/data-widget/data-widget.mock.d.ts +2 -0
  110. package/lib/components/datepicker/datepicker.d.ts +43 -0
  111. package/lib/components/datepicker/datepicker.mock.d.ts +2 -0
  112. package/lib/components/facet/facet.d.ts +129 -0
  113. package/lib/components/facet/facet.mock.d.ts +2 -0
  114. package/lib/components/facet-header/facet-header.d.ts +44 -0
  115. package/lib/components/facet-header/facet-header.mock.d.ts +2 -0
  116. package/lib/components/facet-year-range/facet-year-range.d.ts +83 -0
  117. package/lib/components/facet-year-range/facet-year-range.mock.d.ts +2 -0
  118. package/lib/components/footer/footer.d.ts +118 -0
  119. package/lib/components/footer/footer.mock.d.ts +2 -0
  120. package/lib/components/header/header.d.ts +281 -0
  121. package/lib/components/header/header.mock.d.ts +2 -0
  122. package/lib/components/hero/hero.d.ts +75 -0
  123. package/lib/components/hero/hero.mock.d.ts +2 -0
  124. package/lib/components/histogram-range/histogram-range.d.ts +113 -0
  125. package/lib/components/histogram-range/histogram-range.mock.d.ts +2 -0
  126. package/lib/components/image-viewer/image-viewer.d.ts +61 -0
  127. package/lib/components/image-viewer/image-viewer.mock.d.ts +2 -0
  128. package/lib/components/image-viewer-tools/image-viewer-tools.d.ts +116 -0
  129. package/lib/components/image-viewer-tools/image-viewer-tools.mock.d.ts +2 -0
  130. package/lib/components/inner-title/inner-title.d.ts +61 -0
  131. package/lib/components/inner-title/inner-title.mock.d.ts +2 -0
  132. package/lib/components/input-checkbox/input-checkbox.d.ts +67 -0
  133. package/lib/components/input-checkbox/input-checkbox.mock.d.ts +2 -0
  134. package/lib/components/input-link/input-link.d.ts +54 -0
  135. package/lib/components/input-link/input-link.mock.d.ts +2 -0
  136. package/lib/components/input-select/input-select.d.ts +67 -0
  137. package/lib/components/input-select/input-select.mock.d.ts +2 -0
  138. package/lib/components/input-text/input-text.d.ts +81 -0
  139. package/lib/components/input-text/input-text.mock.d.ts +2 -0
  140. package/lib/components/item-preview/item-preview.d.ts +93 -0
  141. package/lib/components/item-preview/item-preview.mock.d.ts +2 -0
  142. package/lib/components/loader/loader.d.ts +22 -0
  143. package/lib/components/loader/loader.mock.d.ts +2 -0
  144. package/lib/components/map/map.d.ts +69 -0
  145. package/lib/components/map/map.mock.d.ts +2 -0
  146. package/lib/components/metadata-viewer/metadata-viewer.d.ts +65 -0
  147. package/lib/components/metadata-viewer/metadata-viewer.mock.d.ts +8 -0
  148. package/lib/components/nav/nav.d.ts +66 -0
  149. package/lib/components/nav/nav.mock.d.ts +2 -0
  150. package/lib/components/pagination/pagination.d.ts +94 -0
  151. package/lib/components/pagination/pagination.mock.d.ts +2 -0
  152. package/lib/components/progress-line/progress-line.d.ts +23 -0
  153. package/lib/components/progress-line/progress-line.mock.d.ts +2 -0
  154. package/lib/components/sidebar-header/sidebar-header.d.ts +44 -0
  155. package/lib/components/sidebar-header/sidebar-header.mock.d.ts +2 -0
  156. package/lib/components/signup/signup.d.ts +109 -0
  157. package/lib/components/signup/signup.mock.d.ts +2 -0
  158. package/lib/components/simple-autocomplete/simple-autocomplete.d.ts +40 -0
  159. package/lib/components/simple-autocomplete/simple-autocomplete.mock.d.ts +2 -0
  160. package/lib/components/table/table.d.ts +89 -0
  161. package/lib/components/table/table.mock.d.ts +2 -0
  162. package/lib/components/tag/tag.d.ts +45 -0
  163. package/lib/components/tag/tag.mock.d.ts +2 -0
  164. package/lib/components/text-viewer/text-viewer.d.ts +34 -0
  165. package/lib/components/text-viewer/text-viewer.mock.d.ts +2 -0
  166. package/lib/components/timeline/timeline.d.ts +30 -0
  167. package/lib/components/timeline/timeline.mock.d.ts +2 -0
  168. package/lib/components/toast/toast.d.ts +84 -0
  169. package/lib/components/toast/toast.mock.d.ts +2 -0
  170. package/lib/components/tooltip-content/tooltip-content.d.ts +24 -0
  171. package/lib/components/tooltip-content/tooltip-content.mock.d.ts +2 -0
  172. package/lib/components/tree/tree.d.ts +79 -0
  173. package/lib/components/tree/tree.mock.d.ts +2 -0
  174. package/lib/components/wizard/wizard.d.ts +57 -0
  175. package/lib/components/wizard/wizard.mock.d.ts +2 -0
  176. package/lib/dv-components-lib.module.d.ts +50 -0
  177. package/lib/shared-interfaces.d.ts +60 -0
  178. package/net7-components.d.ts +5 -0
  179. package/package.json +44 -0
  180. package/public-api.d.ts +85 -0
  181. package/src/lib/styles/_imports.scss +77 -0
  182. package/src/lib/styles/atoms/_button.scss +205 -0
  183. package/src/lib/styles/components/_advanced-autocomplete.scss +190 -0
  184. package/src/lib/styles/components/_alert.scss +115 -0
  185. package/src/lib/styles/components/_anchor-wrapper.scss +29 -0
  186. package/src/lib/styles/components/_breadcrumbs.scss +99 -0
  187. package/src/lib/styles/components/_bubble-chart.scss +33 -0
  188. package/src/lib/styles/components/_carousel.scss +184 -0
  189. package/src/lib/styles/components/_chart.scss +28 -0
  190. package/src/lib/styles/components/_content-placeholder.scss +74 -0
  191. package/src/lib/styles/components/_data-widget.scss +93 -0
  192. package/src/lib/styles/components/_datepicker.scss +29 -0
  193. package/src/lib/styles/components/_facet-header.scss +58 -0
  194. package/src/lib/styles/components/_facet-year-range.scss +63 -0
  195. package/src/lib/styles/components/_facet.scss +164 -0
  196. package/src/lib/styles/components/_footer.scss +116 -0
  197. package/src/lib/styles/components/_header.scss +474 -0
  198. package/src/lib/styles/components/_hero.scss +207 -0
  199. package/src/lib/styles/components/_histogram-range.scss +36 -0
  200. package/src/lib/styles/components/_image-viewer-tools.scss +225 -0
  201. package/src/lib/styles/components/_image-viewer.scss +173 -0
  202. package/src/lib/styles/components/_inner-title.scss +161 -0
  203. package/src/lib/styles/components/_input-checkbox.scss +50 -0
  204. package/src/lib/styles/components/_input-link.scss +78 -0
  205. package/src/lib/styles/components/_input-select.scss +25 -0
  206. package/src/lib/styles/components/_input-text.scss +53 -0
  207. package/src/lib/styles/components/_item-preview.scss +218 -0
  208. package/src/lib/styles/components/_loader.scss +54 -0
  209. package/src/lib/styles/components/_map.scss +31 -0
  210. package/src/lib/styles/components/_metadata-viewer.scss +52 -0
  211. package/src/lib/styles/components/_nav.scss +57 -0
  212. package/src/lib/styles/components/_pagination.scss +170 -0
  213. package/src/lib/styles/components/_progress-line.scss +53 -0
  214. package/src/lib/styles/components/_sidebar-header.scss +69 -0
  215. package/src/lib/styles/components/_signup.scss +157 -0
  216. package/src/lib/styles/components/_simple-autocomplete.scss +60 -0
  217. package/src/lib/styles/components/_table.scss +129 -0
  218. package/src/lib/styles/components/_tag.scss +51 -0
  219. package/src/lib/styles/components/_text-viewer.scss +446 -0
  220. package/src/lib/styles/components/_timeline.scss +29 -0
  221. package/src/lib/styles/components/_toast.scss +99 -0
  222. package/src/lib/styles/components/_tooltip-content.scss +29 -0
  223. package/src/lib/styles/components/_tree.scss +208 -0
  224. package/src/lib/styles/components/_wizard.scss +150 -0
  225. package/src/lib/styles/generic/_color_scheme.scss +27 -0
  226. package/src/lib/styles/generic/_mixins.scss +81 -0
  227. package/src/lib/styles/generic/_variables.scss +385 -0
  228. package/src/lib/styles/global/_forms.scss +122 -0
  229. package/src/lib/styles/global/_global.scss +46 -0
  230. package/src/lib/styles/global/_normalize.scss +433 -0
  231. package/src/lib/styles/global/_typography.scss +88 -0
  232. package/src/lib/styles/utilities/_grids.scss +361 -0
@@ -0,0 +1,75 @@
1
+ import { Anchor } from '../../shared-interfaces';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Interface for HeroComponent's "data"
5
+ *
6
+ * @property title (required)
7
+ * @property text (optional)
8
+ * @property input (optional)
9
+ * - placeholder (optional)
10
+ * - icon (optional)
11
+ * - payload (optional)
12
+ * @property button (optional)
13
+ * - text (optional)
14
+ * - anchor (optional)
15
+ * @property image (optional)
16
+ * @property backgroundImage (optional)
17
+ * @property classes (optional)
18
+ * @property payload (optional)
19
+ * @property _meta (optional)
20
+ */
21
+ export interface HeroData {
22
+ /**
23
+ * main text displayed in the hero section
24
+ */
25
+ title: string;
26
+ /**
27
+ * additional text under the title
28
+ */
29
+ text?: string;
30
+ /**
31
+ * input field (usually for search) and it's parameters
32
+ */
33
+ input?: {
34
+ placeholder: string;
35
+ icon: string;
36
+ payload: any;
37
+ };
38
+ /**
39
+ * call to action button and it's parameters
40
+ */
41
+ button?: {
42
+ text: string;
43
+ anchor?: Anchor;
44
+ };
45
+ /**
46
+ * image displayed inside the hero
47
+ */
48
+ image?: string;
49
+ /**
50
+ * background image that covers the full background area of the hero
51
+ */
52
+ backgroundImage?: string;
53
+ /**
54
+ * additional html classes
55
+ */
56
+ classes?: string;
57
+ /**
58
+ * action click's payload
59
+ */
60
+ payload?: any;
61
+ /**
62
+ * additional info
63
+ */
64
+ _meta?: any;
65
+ }
66
+ export declare class HeroComponent {
67
+ data: HeroData;
68
+ emit: any;
69
+ getBackgroundImageCssValue(backgroundImage: any): string;
70
+ onClick(payload: any): void;
71
+ onInputChange(payload: any, value: any): void;
72
+ onInputEnter(payload: any, value: any): void;
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeroComponent, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeroComponent, "n7-hero", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
75
+ }
@@ -0,0 +1,2 @@
1
+ import { HeroData } from './hero';
2
+ export declare const HERO_MOCK: HeroData;
@@ -0,0 +1,113 @@
1
+ import { AfterContentChecked } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Interface for HistogramRangeComponent's "data"
5
+ */
6
+ export interface HistogramRangeData {
7
+ /**
8
+ * unique identifier for the histogram-range svg
9
+ */
10
+ containerId: string;
11
+ /**
12
+ * total width for the svg element
13
+ */
14
+ width: number;
15
+ /**
16
+ * total height for the svg element
17
+ */
18
+ height: number;
19
+ /**
20
+ * Internal margins of the svg
21
+ */
22
+ margin: {
23
+ left: number;
24
+ right: number;
25
+ top: number;
26
+ bottom: number;
27
+ };
28
+ /**
29
+ * Theme of the histogram
30
+ */
31
+ colours: {
32
+ top: string;
33
+ bottom: string;
34
+ accent: string;
35
+ };
36
+ /**
37
+ * Data for the histogram bars
38
+ */
39
+ items: {
40
+ /** default label of the item */
41
+ label: string;
42
+ /** y-axis value of the bar (height) */
43
+ value: number;
44
+ /** payload that the item should emit when selected */
45
+ payload: any;
46
+ /**
47
+ * 'upper' values of the range.
48
+ * only used when each bar represents a range.
49
+ */
50
+ range?: {
51
+ /** label loaded when selected by the right-most pointer */
52
+ label: string;
53
+ /** payload emitted when selected by the right-most pointer */
54
+ payload: any;
55
+ };
56
+ }[];
57
+ /**
58
+ * Axis settings
59
+ */
60
+ axis?: {
61
+ /** Y Axis settings */
62
+ yAxis?: {
63
+ /** Turn on and off the axis */
64
+ show?: boolean;
65
+ /** Manually set the axis values to show */
66
+ values?: number[];
67
+ /** How many ticks do you want to see */
68
+ tickAmount?: number;
69
+ };
70
+ };
71
+ /**
72
+ * expose the draw function outside of n7-frontend/components library
73
+ * this is needed to redraw bubble-chart-component on command
74
+ */
75
+ setDraw?: any;
76
+ /**
77
+ * setSliders
78
+ */
79
+ setSliders?: LabelCouple;
80
+ /**
81
+ * Public api
82
+ */
83
+ setApi?: any;
84
+ }
85
+ declare type Sliders = {
86
+ x: number;
87
+ y: number;
88
+ }[];
89
+ declare type LabelCouple = [string, string];
90
+ export declare class HistogramRangeComponent implements AfterContentChecked {
91
+ data: HistogramRangeData;
92
+ emit: any;
93
+ private d3;
94
+ private sliders;
95
+ private _loaded;
96
+ private colourBars;
97
+ private getSelectedRange;
98
+ ngAfterContentChecked(): void;
99
+ draw: () => void;
100
+ /** Avoid collision of the slider labels */
101
+ textCollision: (sliders: Sliders) => void;
102
+ /** Get x-axis position from label */
103
+ labelToX(): any;
104
+ /** Public api that allows to dinamically change the bars */
105
+ setBars: (newBars: any) => void;
106
+ /** Public api that allows to dinamically change the slider position */
107
+ setSliders: ([startLabel, endLabel]: [any, any]) => any;
108
+ /** Emits an event when the component has loaded */
109
+ emitLoaded(payload: any): void;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<HistogramRangeComponent, never>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<HistogramRangeComponent, "n7-histogram-range", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
112
+ }
113
+ export {};
@@ -0,0 +1,2 @@
1
+ import { HistogramRangeData } from './histogram-range';
2
+ export declare const HISTOGRAM_RANGE_MOCK: HistogramRangeData;
@@ -0,0 +1,61 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Interface for ImageViewerComponent's images "data"
4
+ *
5
+ * Here the main options available, for a complete guide of image settings
6
+ * view the official openseadragon documentation https://openseadragon.github.io/
7
+ * All available options here: https://openseadragon.github.io/docs/OpenSeadragon.html
8
+ *
9
+ * @property type (required)
10
+ * Admitted values:
11
+ * 'image' | 'zoomifytileservice' | 'openstreetmaps' | 'tiledmapservice' | 'legacy-image-pyramid'
12
+ * @property height (optional) image height
13
+ * @property width (optional) image width
14
+ * @property url (required) image url
15
+ * @property buildPyramid (optional)
16
+ * @property crossOriginPolicy (optional) Admitted values 'Anonymous' | 'use-credentials' | false;
17
+ */
18
+ export interface ImageData {
19
+ type: 'image' | 'zoomifytileservice' | 'openstreetmaps' | 'tiledmapservice' | 'legacy-image-pyramid';
20
+ height?: number;
21
+ width?: number;
22
+ url: string;
23
+ buildPyramid: boolean;
24
+ crossOriginPolicy?: 'Anonymous' | 'use-credentials' | false;
25
+ }
26
+ /**
27
+ * Interface for ImageViewerComponent's "data"
28
+ *
29
+ * @property prefixUrl (optional) Prepends the prefixUrl to navImages paths.
30
+ * Default is //openseadragon.github.io/openseadragon/images/
31
+ * @property classes (optional)
32
+ * @property viewerWidth (optional)
33
+ * @property viewerHeight (optional)
34
+ * @property images (required)
35
+ * @property viewerId (required) The id to assign to the imageviewer container
36
+ * @property libOptions (required)
37
+ */
38
+ export interface ImageViewerData {
39
+ prefixUrl?: string;
40
+ classes?: string;
41
+ viewerWidth?: number;
42
+ viewerHeight?: number;
43
+ images: ImageData[] | string;
44
+ viewerId: string;
45
+ hideNavigation?: boolean;
46
+ libOptions: any;
47
+ _setViewer: any;
48
+ }
49
+ /**
50
+ * ImageViewerComponent <n7-image-viewer>
51
+ *
52
+ */
53
+ export declare class ImageViewerComponent {
54
+ data: ImageViewerData;
55
+ emit: any;
56
+ private _loaded;
57
+ ngAfterContentChecked(): void;
58
+ onClick(payload: any): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageViewerComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerComponent, "n7-image-viewer", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
61
+ }
@@ -0,0 +1,2 @@
1
+ import { ImageViewerData } from './image-viewer';
2
+ export declare const IMAGE_VIEWER_MOCK: ImageViewerData;
@@ -0,0 +1,116 @@
1
+ import { Anchor } from '../../shared-interfaces';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Interface for ImageViewerButtonsData, defines the thumbnail
5
+ * url and its relative payload
6
+ * @property thumb
7
+ * @property payload
8
+ */
9
+ export interface ImageViewerThumbData {
10
+ /**
11
+ * Thumbnail URL
12
+ */
13
+ thumb: string;
14
+ /**
15
+ * Payload on thumbnail click
16
+ */
17
+ payload: any;
18
+ /**
19
+ * Thumbnail caption
20
+ */
21
+ caption?: string;
22
+ }
23
+ /**
24
+ * Interface for ImageViewerButtonsData, defines the look and
25
+ * payload of the controls buttons
26
+ * @property icon
27
+ * @property payload
28
+ */
29
+ export interface ImageViewerButtonData {
30
+ /**
31
+ * CSS class of the icon. Usually from n7 icon pack
32
+ */
33
+ icon: string;
34
+ /**
35
+ * Button Anchor
36
+ */
37
+ anchor?: Anchor;
38
+ isActive?: boolean;
39
+ }
40
+ /**
41
+ * Interface for ImageViewerToolsComponent's "data"
42
+ * @property images
43
+ * @property description
44
+ * @property controls
45
+ * @property showDescription
46
+ * @property showThumbnails
47
+ * @property classes (optional)
48
+ * @property payload (optional)
49
+ * @property _meta (optional)
50
+ */
51
+ export interface ImageViewerToolsData {
52
+ /**
53
+ * list of image's thumbnails
54
+ */
55
+ images: ImageViewerThumbData[];
56
+ /**
57
+ * description to be shown in the box
58
+ */
59
+ description?: string;
60
+ /**
61
+ * description/thumbnails visibility controls
62
+ */
63
+ controls: {
64
+ description: ImageViewerButtonData;
65
+ thumbs: ImageViewerButtonData;
66
+ closedescription: ImageViewerButtonData;
67
+ };
68
+ /**
69
+ * Description / thumbnail togglers
70
+ */
71
+ isVisible: {
72
+ /** Toggle description box visibility */
73
+ description: boolean;
74
+ /** Toggle thumbnails strip visibility */
75
+ thumbnails: boolean;
76
+ };
77
+ /**
78
+ * description overlay navigation
79
+ */
80
+ navigation?: {
81
+ prev: {
82
+ payload: any;
83
+ classes?: any;
84
+ };
85
+ next: {
86
+ payload: any;
87
+ classes?: any;
88
+ };
89
+ };
90
+ /**
91
+ * Initial image in array (progressive number from 0)
92
+ */
93
+ initial: number;
94
+ /**
95
+ * additional html classes
96
+ */
97
+ classes?: string;
98
+ /**
99
+ * action click's payload
100
+ */
101
+ payload?: any;
102
+ /**
103
+ * additional info
104
+ */
105
+ _meta?: any;
106
+ }
107
+ /**
108
+ * ImageViewerToolsComponent <n7-image-viewer-tools>
109
+ */
110
+ export declare class ImageViewerToolsComponent {
111
+ data: ImageViewerToolsData;
112
+ emit: any;
113
+ onClick(payload: any): void;
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageViewerToolsComponent, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerToolsComponent, "n7-image-viewer-tools", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
116
+ }
@@ -0,0 +1,2 @@
1
+ import { ImageViewerToolsData } from './image-viewer-tools';
2
+ export declare const IMAGE_VIEWER_TOOLS_MOCK: ImageViewerToolsData;
@@ -0,0 +1,61 @@
1
+ import { Anchor, Icon } from '../../shared-interfaces';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Interface for InnerTitleComponent's "data"
5
+ *
6
+ * @property NAME (required|options) <--- TODO: update with interface properties
7
+ */
8
+ export interface InnerTitleData {
9
+ icon?: Icon;
10
+ image?: string;
11
+ title: {
12
+ main: {
13
+ text: string;
14
+ classes?: any;
15
+ };
16
+ secondary?: {
17
+ text: string;
18
+ classes?: any;
19
+ };
20
+ };
21
+ tools?: string;
22
+ actions?: {
23
+ select?: {
24
+ label?: string;
25
+ options: InnerTitleOptions[];
26
+ payload?: any;
27
+ };
28
+ search?: {
29
+ placeholder: string;
30
+ payload: any;
31
+ button?: {
32
+ text: string;
33
+ payload: any;
34
+ };
35
+ _meta?: any;
36
+ };
37
+ buttons?: InnerTitleButtons[];
38
+ };
39
+ }
40
+ export interface InnerTitleOptions {
41
+ text: string;
42
+ value: string;
43
+ disabled?: boolean;
44
+ selected?: boolean;
45
+ }
46
+ export interface InnerTitleButtons {
47
+ anchor: Anchor;
48
+ text: string;
49
+ classes?: any;
50
+ icon?: Icon;
51
+ }
52
+ export declare class InnerTitleComponent {
53
+ data: InnerTitleData;
54
+ emit: any;
55
+ onClick(payload: any): void;
56
+ onChange(payload: any, value: any): void;
57
+ onInputChange(payload: any, value: any): void;
58
+ onInputEnter(payload: any, value: any): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<InnerTitleComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<InnerTitleComponent, "n7-inner-title", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
61
+ }
@@ -0,0 +1,2 @@
1
+ import { InnerTitleData } from './inner-title';
2
+ export declare const INNER_TITLE_MOCK: InnerTitleData;
@@ -0,0 +1,67 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Interface for InputCheckbox
4
+ *
5
+ * @property id (required)
6
+ * @property label (required)
7
+ * @property checked (optional)
8
+ * @property disabled (optional)
9
+ * @property payload (optional)
10
+ * @property classes (optional)
11
+ * @property _meta (optional)
12
+ */
13
+ export interface InputCheckbox {
14
+ /**
15
+ * Unique ID for the checkbox
16
+ */
17
+ id: string;
18
+ /**
19
+ * Label for the checkbox
20
+ */
21
+ label: string;
22
+ /**
23
+ * Defaults the checkbox to be checked
24
+ */
25
+ checked?: boolean;
26
+ /**
27
+ * Sets the disabled HTML attribute
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * Payload for the change event
32
+ */
33
+ payload?: any;
34
+ /**
35
+ * Additional HTML Classes
36
+ */
37
+ classes?: string;
38
+ /**
39
+ * Additional data for the component's logic
40
+ */
41
+ _meta?: any;
42
+ }
43
+ /**
44
+ * Interface for InputCheckboxData
45
+ * @property checkboxes (required)
46
+ */
47
+ export interface InputCheckboxData {
48
+ /**
49
+ * An array of input checkboxes
50
+ */
51
+ checkboxes: InputCheckbox[];
52
+ /**
53
+ * Fieldset (group) legend label
54
+ */
55
+ legend?: string;
56
+ /**
57
+ * Additional HTML Classes
58
+ */
59
+ classes?: string;
60
+ }
61
+ export declare class InputCheckboxComponent {
62
+ data: InputCheckboxData;
63
+ emit: any;
64
+ onChange(inputPayload: any, value?: any): void;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputCheckboxComponent, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputCheckboxComponent, "n7-input-checkbox", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
67
+ }
@@ -0,0 +1,2 @@
1
+ import { InputCheckboxData } from './input-checkbox';
2
+ export declare const INPUT_CHECKBOX_MOCK: InputCheckboxData;
@@ -0,0 +1,54 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Interface for an InputLink
4
+ *
5
+ * @property icon (optional)
6
+ * @property text (required)
7
+ * @property counter (optional)
8
+ * @property payload (optional)
9
+ * @property classes (optional)
10
+ * @property _meta (optional)
11
+ */
12
+ export interface InputLink {
13
+ /**
14
+ * The rendered text of the link
15
+ */
16
+ text: string;
17
+ /**
18
+ * An icon to be added next to the text
19
+ */
20
+ icon?: string;
21
+ /**
22
+ * A colorful counter with a number
23
+ */
24
+ counter?: number;
25
+ /**
26
+ * The payload for the click event
27
+ */
28
+ payload?: any;
29
+ /**
30
+ * Additional HTML Classes
31
+ */
32
+ classes?: any;
33
+ /**
34
+ * Additional data for the component's logic
35
+ */
36
+ _meta?: any;
37
+ }
38
+ /**
39
+ * Interface for InputLinkData
40
+ * @property links (required)
41
+ */
42
+ export interface InputLinkData {
43
+ /**
44
+ * A list of input links
45
+ */
46
+ links: InputLink[];
47
+ }
48
+ export declare class InputLinkComponent {
49
+ data: InputLinkData;
50
+ emit: any;
51
+ onChange(payload: any): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputLinkComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputLinkComponent, "n7-input-link", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
54
+ }
@@ -0,0 +1,2 @@
1
+ import { InputLinkData } from './input-link';
2
+ export declare const INPUT_LINK_MOCK: InputLinkData;
@@ -0,0 +1,67 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Interface for InputSelect
4
+ *
5
+ * @property id (required)
6
+ * @property options (required)
7
+ * @property label (optional)
8
+ * @property disabled (optional)
9
+ * @property icon (optional)
10
+ * @property payload (optional)
11
+ * @property classes (optional)
12
+ * @property _meta (optional)
13
+ */
14
+ export interface InputSelectData {
15
+ /**
16
+ * A unique ID for the select item
17
+ */
18
+ id: string;
19
+ /**
20
+ * The array of <option> elements
21
+ */
22
+ options: Array<{
23
+ /**
24
+ * The rendered text for the <option> element
25
+ */
26
+ label: string;
27
+ /**
28
+ * The event value for the <option> element
29
+ */
30
+ value: string | number;
31
+ /**
32
+ * Sets the option as default (selected)
33
+ */
34
+ selected?: boolean;
35
+ /**
36
+ * Prevents the user from selecting this option
37
+ */
38
+ disabled?: boolean;
39
+ }>;
40
+ /**
41
+ * Label for the <select> element
42
+ */
43
+ label?: string;
44
+ /**
45
+ * Prevents the user from changing any option
46
+ */
47
+ disabled?: boolean;
48
+ /**
49
+ * Payload for the select's change event
50
+ */
51
+ payload?: any;
52
+ /**
53
+ * Additional HTML Classes
54
+ */
55
+ classes?: any;
56
+ /**
57
+ * Additional data for the component's logic
58
+ */
59
+ _meta?: any;
60
+ }
61
+ export declare class InputSelectComponent {
62
+ data: InputSelectData;
63
+ emit: any;
64
+ onChange(inputPayload: any, value?: any): void;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectComponent, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "n7-input-select", never, { "data": "data"; "emit": "emit"; }, {}, never, never>;
67
+ }
@@ -0,0 +1,2 @@
1
+ import { InputSelectData } from './input-select';
2
+ export declare const INPUT_SELECT_MOCK: InputSelectData;