ngx-edu-sharing-ui 0.7.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 (171) hide show
  1. package/.browserslistrc +16 -0
  2. package/.eslintrc.json +44 -0
  3. package/README.md +40 -0
  4. package/assets/scss/mixins.scss +95 -0
  5. package/assets/scss/variables.scss +33 -0
  6. package/karma.conf.js +42 -0
  7. package/ng-package.json +10 -0
  8. package/package.json +19 -0
  9. package/src/lib/actionbar/actionbar.component.html +59 -0
  10. package/src/lib/actionbar/actionbar.component.scss +123 -0
  11. package/src/lib/actionbar/actionbar.component.ts +174 -0
  12. package/src/lib/common/edu-sharing-ui-common.module.ts +80 -0
  13. package/src/lib/directives/border-box-observer.directive.ts +75 -0
  14. package/src/lib/directives/check-text-overflow.directive.ts +61 -0
  15. package/src/lib/directives/drag-nodes/drag-nodes.ts +32 -0
  16. package/src/lib/directives/drag-nodes/nodes-drag-source.directive.ts +79 -0
  17. package/src/lib/directives/drag-nodes/nodes-drag.directive.ts +43 -0
  18. package/src/lib/directives/drag-nodes/nodes-drop-target.directive.ts +116 -0
  19. package/src/lib/directives/focus-state.directive.ts +34 -0
  20. package/src/lib/directives/icon.directive.ts +142 -0
  21. package/src/lib/directives/nodes-drop-target-legacy.directive.ts +155 -0
  22. package/src/lib/dropdown/dropdown.component.html +32 -0
  23. package/src/lib/dropdown/dropdown.component.scss +67 -0
  24. package/src/lib/dropdown/dropdown.component.ts +71 -0
  25. package/src/lib/edu-sharing-ui-configuration.ts +47 -0
  26. package/src/lib/edu-sharing-ui.module.ts +49 -0
  27. package/src/lib/list-items/available-widgets.ts +30 -0
  28. package/src/lib/list-items/format-duration.pipe.ts +17 -0
  29. package/src/lib/list-items/list-base/list-base.component.html +52 -0
  30. package/src/lib/list-items/list-base/list-base.component.ts +44 -0
  31. package/src/lib/list-items/list-collection-info/list-collection-info.component.html +48 -0
  32. package/src/lib/list-items/list-collection-info/list-collection-info.component.scss +8 -0
  33. package/src/lib/list-items/list-collection-info/list-collection-info.component.ts +24 -0
  34. package/src/lib/list-items/list-counts/list-counts.component.html +1 -0
  35. package/src/lib/list-items/list-counts/list-counts.component.scss +3 -0
  36. package/src/lib/list-items/list-counts/list-counts.component.ts +59 -0
  37. package/src/lib/list-items/list-items.module.ts +33 -0
  38. package/src/lib/list-items/list-node-license/list-node-license.component.html +8 -0
  39. package/src/lib/list-items/list-node-license/list-node-license.component.ts +47 -0
  40. package/src/lib/list-items/list-node-replication-source/list-node-replication-source.component.html +11 -0
  41. package/src/lib/list-items/list-node-replication-source/list-node-replication-source.component.ts +60 -0
  42. package/src/lib/list-items/list-node-workflow/list-node-workflow.component.html +3 -0
  43. package/src/lib/list-items/list-node-workflow/list-node-workflow.component.ts +21 -0
  44. package/src/lib/list-items/list-text/list-text.component.html +176 -0
  45. package/src/lib/list-items/list-text/list-text.component.scss +3 -0
  46. package/src/lib/list-items/list-text/list-text.component.ts +107 -0
  47. package/src/lib/list-items/list-widget.ts +52 -0
  48. package/src/lib/list-items/node-row/node-row.component.html +31 -0
  49. package/src/lib/list-items/node-row/node-row.component.scss +50 -0
  50. package/src/lib/list-items/node-row/node-row.component.ts +16 -0
  51. package/src/lib/list-items/node-source.pipe.ts +48 -0
  52. package/src/lib/node-entries/combined-data-source.ts +51 -0
  53. package/src/lib/node-entries/custom-templates-data-source.ts +6 -0
  54. package/src/lib/node-entries/drag-preview/drag-preview.component.html +6 -0
  55. package/src/lib/node-entries/drag-preview/drag-preview.component.scss +35 -0
  56. package/src/lib/node-entries/drag-preview/drag-preview.component.ts +15 -0
  57. package/src/lib/node-entries/entries-model.ts +120 -0
  58. package/src/lib/node-entries/items-cap.ts +54 -0
  59. package/src/lib/node-entries/list-item-label.pipe.ts +28 -0
  60. package/src/lib/node-entries/mixins.scss +23 -0
  61. package/src/lib/node-entries/node-cache.spec.ts +199 -0
  62. package/src/lib/node-entries/node-cache.ts +81 -0
  63. package/src/lib/node-entries/node-data-source-remote.ts +33 -0
  64. package/src/lib/node-entries/node-data-source.ts +148 -0
  65. package/src/lib/node-entries/node-entries-card/node-entries-card.component.html +167 -0
  66. package/src/lib/node-entries/node-entries-card/node-entries-card.component.scss +28 -0
  67. package/src/lib/node-entries/node-entries-card/node-entries-card.component.ts +132 -0
  68. package/src/lib/node-entries/node-entries-card/node-entries-card.main.scss +261 -0
  69. package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.html +205 -0
  70. package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.scss +181 -0
  71. package/src/lib/node-entries/node-entries-card-grid/node-entries-card-grid.component.ts +361 -0
  72. package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.html +100 -0
  73. package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.scss +46 -0
  74. package/src/lib/node-entries/node-entries-card-small/node-entries-card-small.component.ts +40 -0
  75. package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.html +23 -0
  76. package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.scss +58 -0
  77. package/src/lib/node-entries/node-entries-global-options/node-entries-global-options.component.ts +16 -0
  78. package/src/lib/node-entries/node-entries-global.service.ts +79 -0
  79. package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.html +25 -0
  80. package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.scss +32 -0
  81. package/src/lib/node-entries/node-entries-table/column-chooser/column-chooser.component.ts +31 -0
  82. package/src/lib/node-entries/node-entries-table/node-entries-table.component.html +270 -0
  83. package/src/lib/node-entries/node-entries-table/node-entries-table.component.scss +169 -0
  84. package/src/lib/node-entries/node-entries-table/node-entries-table.component.ts +333 -0
  85. package/src/lib/node-entries/node-entries-templates.service.ts +31 -0
  86. package/src/lib/node-entries/node-entries-wrapper.component.ts +363 -0
  87. package/src/lib/node-entries/node-entries.component.html +33 -0
  88. package/src/lib/node-entries/node-entries.component.scss +13 -0
  89. package/src/lib/node-entries/node-entries.component.ts +151 -0
  90. package/src/lib/node-entries/node-entries.module.ts +93 -0
  91. package/src/lib/node-entries/node-rating/node-rating.component.html +53 -0
  92. package/src/lib/node-entries/node-rating/node-rating.component.scss +31 -0
  93. package/src/lib/node-entries/node-rating/node-rating.component.ts +105 -0
  94. package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.html +39 -0
  95. package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.scss +44 -0
  96. package/src/lib/node-entries/node-stats-badges/node-stats-badges.component.ts +43 -0
  97. package/src/lib/node-entries/node-type-badge/node-type-badge.component.html +31 -0
  98. package/src/lib/node-entries/node-type-badge/node-type-badge.component.scss +5 -0
  99. package/src/lib/node-entries/node-type-badge/node-type-badge.component.ts +36 -0
  100. package/src/lib/node-entries/option-button/option-button.component.ts +42 -0
  101. package/src/lib/node-entries/preview-image/preview-image.component.html +19 -0
  102. package/src/lib/node-entries/preview-image/preview-image.component.scss +31 -0
  103. package/src/lib/node-entries/preview-image/preview-image.component.ts +47 -0
  104. package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.html +27 -0
  105. package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.scss +9 -0
  106. package/src/lib/node-entries/sort-select-panel/sort-select-panel.component.ts +26 -0
  107. package/src/lib/node-url/node-url.component.html +66 -0
  108. package/src/lib/node-url/node-url.component.scss +32 -0
  109. package/src/lib/node-url/node-url.component.ts +136 -0
  110. package/src/lib/pipes/file-size.pipe.ts +24 -0
  111. package/src/lib/pipes/format-date.pipe.ts +39 -0
  112. package/src/lib/pipes/node-icon.pipe.ts +11 -0
  113. package/src/lib/pipes/node-image-size.pipe.ts +18 -0
  114. package/src/lib/pipes/node-image.pipe.ts +71 -0
  115. package/src/lib/pipes/node-person-name.pipe.ts +41 -0
  116. package/src/lib/pipes/node-title.pipe.ts +12 -0
  117. package/src/lib/pipes/option-tooltip.pipe.ts +32 -0
  118. package/src/lib/pipes/replace-chars.pipe.ts +21 -0
  119. package/src/lib/pipes/vcard-name.pipe.ts +11 -0
  120. package/src/lib/services/abstract/app.service.ts +4 -0
  121. package/src/lib/services/abstract/keyboard-shortcuts.service.ts +10 -0
  122. package/src/lib/services/abstract/options-helper.service.ts +29 -0
  123. package/src/lib/services/abstract/toast.service.ts +5 -0
  124. package/src/lib/services/accessibility.service.ts +101 -0
  125. package/src/lib/services/local-events.service.ts +29 -0
  126. package/src/lib/services/node-entries.service.ts +172 -0
  127. package/src/lib/services/node-helper.service.ts +239 -0
  128. package/src/lib/services/nodes-drag-drop.service.ts +165 -0
  129. package/src/lib/services/options-helper-data.service.ts +186 -0
  130. package/src/lib/services/repo-url.service.ts +46 -0
  131. package/src/lib/services/temporary-storage.service.ts +58 -0
  132. package/src/lib/services/ui.service.ts +182 -0
  133. package/src/lib/sort-dropdown/sort-dropdown.component.html +22 -0
  134. package/src/lib/sort-dropdown/sort-dropdown.component.scss +47 -0
  135. package/src/lib/sort-dropdown/sort-dropdown.component.ts +42 -0
  136. package/src/lib/spinner/spinner.component.html +14 -0
  137. package/src/lib/spinner/spinner.component.scss +141 -0
  138. package/src/lib/spinner/spinner.component.ts +12 -0
  139. package/src/lib/translations/README.md +44 -0
  140. package/src/lib/translations/fallback-translation-handler.ts +7 -0
  141. package/src/lib/translations/languages.ts +6 -0
  142. package/src/lib/translations/translation-loader.spec.ts +352 -0
  143. package/src/lib/translations/translation-loader.ts +189 -0
  144. package/src/lib/translations/translation-source.ts +9 -0
  145. package/src/lib/translations/translations.module.ts +49 -0
  146. package/src/lib/translations/translations.service.spec.ts +152 -0
  147. package/src/lib/translations/translations.service.ts +188 -0
  148. package/src/lib/types/accessibillity.ts +15 -0
  149. package/src/lib/types/api-models.ts +4 -0
  150. package/src/lib/types/drag-drop.ts +22 -0
  151. package/src/lib/types/keyboard-shortcuts.ts +29 -0
  152. package/src/lib/types/list-item.ts +67 -0
  153. package/src/lib/types/option-item.ts +247 -0
  154. package/src/lib/types/workflow.ts +35 -0
  155. package/src/lib/util/DateHelper.spec.ts +112 -0
  156. package/src/lib/util/DateHelper.ts +197 -0
  157. package/src/lib/util/VCard.ts +277 -0
  158. package/src/lib/util/color-helper.ts +125 -0
  159. package/src/lib/util/duration-helper.spec.ts +35 -0
  160. package/src/lib/util/duration-helper.ts +98 -0
  161. package/src/lib/util/functions.ts +15 -0
  162. package/src/lib/util/helper.ts +60 -0
  163. package/src/lib/util/isNumeric.ts +13 -0
  164. package/src/lib/util/rest-helper.ts +28 -0
  165. package/src/lib/util/ui-animation.ts +154 -0
  166. package/src/lib/util/ui-constants.ts +20 -0
  167. package/src/module.ts +76 -0
  168. package/src/test.ts +28 -0
  169. package/tsconfig.lib.json +15 -0
  170. package/tsconfig.lib.prod.json +10 -0
  171. package/tsconfig.spec.json +17 -0
@@ -0,0 +1,154 @@
1
+ import { style, animate, transition, trigger, state } from '@angular/animations';
2
+ export class UIAnimation {
3
+ public static ANIMATION_TIME_FAST = 100;
4
+ public static ANIMATION_TIME_NORMAL = 200;
5
+ public static ANIMATION_TIME_SLOW = 300;
6
+ public static fade(time = UIAnimation.ANIMATION_TIME_NORMAL) {
7
+ return [
8
+ transition(':enter', [style({ opacity: 0 }), animate(time, style({ opacity: 1 }))]),
9
+ transition(':leave', [animate(time, style({ opacity: 0 }))]),
10
+ ];
11
+ }
12
+ public static fromBottom(time = UIAnimation.ANIMATION_TIME_NORMAL) {
13
+ return [
14
+ transition(':enter', [
15
+ style({ transform: 'translateY(100%)' }),
16
+ animate(time, style({ transform: 'translateY(0)' })),
17
+ ]),
18
+ transition(':leave', [
19
+ style({ transform: 'translateY(0)' }),
20
+ animate(time, style({ transform: 'translateY(100%)' })),
21
+ ]),
22
+ ];
23
+ }
24
+ public static fromLeft(time = UIAnimation.ANIMATION_TIME_NORMAL) {
25
+ return [
26
+ transition(':enter', [
27
+ style({ transform: 'translateX(-100%)' }),
28
+ animate(time, style({ transform: 'translateX(0)' })),
29
+ ]),
30
+ transition(':leave', [
31
+ style({ transform: 'translateX(0)' }),
32
+ animate(time, style({ transform: 'translateX(-100%)' })),
33
+ ]),
34
+ ];
35
+ }
36
+ public static fromRight(time: number | string = UIAnimation.ANIMATION_TIME_NORMAL) {
37
+ return [
38
+ transition(':enter', [
39
+ style({ transform: 'translateX(100%)' }),
40
+ animate(time, style({ transform: 'translateX(0)' })),
41
+ ]),
42
+ transition(':leave', [
43
+ style({ transform: 'translateX(0)' }),
44
+ animate(time, style({ transform: 'translateX(100%)' })),
45
+ ]),
46
+ ];
47
+ }
48
+ public static infobarBottom(time = UIAnimation.ANIMATION_TIME_NORMAL) {
49
+ return [
50
+ transition(':enter', [
51
+ style({ bottom: '-70px' }),
52
+ animate(time + 'ms ease', style({ bottom: '0' })),
53
+ ]),
54
+ transition(':leave', [
55
+ style({ bottom: '0' }),
56
+ animate(time + 'ms ease', style({ bottom: '-70px' })),
57
+ ]),
58
+ ];
59
+ }
60
+ /**
61
+ * Useful animation for opening any overflow menus
62
+ * @param time
63
+ * @returns {AnimationStateTransitionMetadata[]}
64
+ */
65
+ public static openOverlay(time = UIAnimation.ANIMATION_TIME_NORMAL) {
66
+ return [
67
+ transition(':enter', [
68
+ style({ 'transform-origin': '50% 0%', transform: 'scaleY(0.5)', opacity: 0 }),
69
+ animate(time, style({ transform: 'scaleY(1)', opacity: 1 })),
70
+ ]),
71
+ transition(':leave', [
72
+ style({ 'transform-origin': '50% 0%', transform: 'scaleY(1)', opacity: 1 }),
73
+ animate(time, style({ transform: 'scaleY(0.5)', opacity: 0 })),
74
+ ]),
75
+ ];
76
+ }
77
+ /**
78
+ * Useful animation for opening any overflow menus - inverted (from bottom to top)
79
+ * @param time
80
+ * @returns {AnimationStateTransitionMetadata[]}
81
+ */
82
+ public static openOverlayBottom(time = UIAnimation.ANIMATION_TIME_NORMAL) {
83
+ return [
84
+ transition(':enter', [
85
+ style({ 'transform-origin': '50% 100%', transform: 'scaleY(0.5)', opacity: 0 }),
86
+ animate(time, style({ transform: 'scaleY(1)', opacity: 1 })),
87
+ ]),
88
+ transition(':leave', [
89
+ style({ 'transform-origin': '50% 100%', transform: 'scaleY(1)', opacity: 1 }),
90
+ animate(time, style({ transform: 'scaleY(0.5)', opacity: 0 })),
91
+ ]),
92
+ ];
93
+ }
94
+ /**
95
+ * Useful animation to switch different content insides a dialog (navigating between contents)
96
+ * @param time
97
+ * @returns {AnimationStateTransitionMetadata[]}
98
+ */
99
+ public static switchDialog(time = UIAnimation.ANIMATION_TIME_NORMAL) {
100
+ return [
101
+ transition(':enter', [
102
+ style({ 'transform-origin': '50% 0%', transform: 'scaleY(0)', opacity: 0 }),
103
+ animate(time, style({ transform: 'scaleY(1)', opacity: 1 })),
104
+ ]),
105
+ ];
106
+ }
107
+ /**
108
+ * Useful animation to switch different content insides a dialog (navigating between contents)
109
+ * This is a special variant which does work without ngIf fields, it will remove display states
110
+ */
111
+ public static switchDialogBoolean(time = UIAnimation.ANIMATION_TIME_NORMAL) {
112
+ return [
113
+ state(
114
+ 'false',
115
+ style({
116
+ opacity: 0,
117
+ 'transform-origin': '50% 0%',
118
+ transform: 'scaleY(0)',
119
+ display: 'none',
120
+ }),
121
+ ),
122
+ state(
123
+ 'true',
124
+ style({ opacity: 1, 'transform-origin': '50% 0%', transform: 'scaleY(100%)' }),
125
+ ),
126
+ transition('false => true', [style({ display: '' }), animate(time + 'ms ease-in-out')]),
127
+ transition('true => false', [animate(time + 'ms ease-in-out')]),
128
+ ];
129
+ }
130
+ /**
131
+ * Useful animation for showing any modal cards
132
+ * @param time
133
+ * @returns {AnimationStateTransitionMetadata[]}
134
+ */
135
+ public static cardAnimation(time = UIAnimation.ANIMATION_TIME_NORMAL) {
136
+ return [
137
+ transition(':enter', [
138
+ style({
139
+ 'transform-origin': '50% 0%',
140
+ transform: 'scaleY(0.5) translateY(-100%)',
141
+ opacity: 0,
142
+ }),
143
+ animate(
144
+ time + 'ms ease',
145
+ style({ transform: 'scaleY(1) translateY(0)', opacity: 1 }),
146
+ ),
147
+ ]),
148
+ transition(':leave', [
149
+ style({ 'transform-origin': '50% 0%', opacity: 1 }),
150
+ animate(time + 'ms ease', style({ opacity: 0 })),
151
+ ]),
152
+ ];
153
+ }
154
+ }
@@ -0,0 +1,20 @@
1
+ export class UIConstants {
2
+ public static ROUTER_PREFIX = 'components/';
3
+ // also declared in scss!
4
+ public static MOBILE_WIDTH = 700;
5
+ public static MOBILE_HEIGHT = 750;
6
+ public static MOBILE_HEIGHT_WITH_KEYBOARD = 550;
7
+ public static MOBILE_STAGE = 100;
8
+ public static MOBILE_TAB_SWITCH_WIDTH = UIConstants.MOBILE_WIDTH + UIConstants.MOBILE_STAGE * 2;
9
+ public static MEDIA_QUERY_MIN_WIDTH = 'min-width';
10
+ public static MEDIA_QUERY_MAX_WIDTH = 'max-width';
11
+ public static MEDIA_QUERY_MIN_HEIGHT = 'min-height';
12
+ public static MEDIA_QUERY_MAX_HEIGHT = 'max-height';
13
+
14
+ public static QUERY_PARAM_LIST_VIEW_TYPE = 'displayType';
15
+ }
16
+ export enum OPEN_URL_MODE {
17
+ Current, // Current Window, or In App browser on cordova
18
+ Blank, // New Window, or In App browser on cordova
19
+ BlankSystemBrowser, // New Window, or system browser on cordova
20
+ }
package/src/module.ts ADDED
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Public API Surface of edu-sharing-ui
3
+ */
4
+
5
+ export * from './lib/edu-sharing-ui.module';
6
+ export * from './lib/edu-sharing-ui-configuration';
7
+ export * from './lib/translations/fallback-translation-handler';
8
+ export * from './lib/translations/translation-loader';
9
+ export * from './lib/common/edu-sharing-ui-common.module';
10
+ export * from './lib/translations/translations.module';
11
+ export * from './lib/translations/translations.service';
12
+ export * from './lib/node-entries/node-data-source';
13
+ export * from './lib/node-entries/node-data-source-remote';
14
+ export * from './lib/node-entries/items-cap';
15
+ export * from './lib/node-entries/combined-data-source';
16
+ export * from './lib/node-entries/entries-model';
17
+ export * from './lib/node-entries/node-entries-global.service';
18
+ export * from './lib/node-entries/node-cache';
19
+ export * from './lib/node-entries/node-entries.module';
20
+ export * from './lib/node-entries/node-entries-wrapper.component';
21
+ export * from './lib/node-entries/list-item-label.pipe';
22
+ export * from './lib/directives/icon.directive';
23
+ export * from './lib/directives/border-box-observer.directive';
24
+ export * from './lib/directives/drag-nodes/drag-nodes';
25
+ export * from './lib/directives/drag-nodes/nodes-drop-target.directive';
26
+ export * from './lib/directives/drag-nodes/nodes-drag-source.directive';
27
+ export * from './lib/directives/drag-nodes/nodes-drag.directive';
28
+ export * from './lib/directives/check-text-overflow.directive';
29
+ export * from './lib/directives/focus-state.directive';
30
+ export * from './lib/sort-dropdown/sort-dropdown.component';
31
+ export * from './lib/actionbar/actionbar.component';
32
+ export * from './lib/list-items/list-items.module';
33
+ export * from './lib/list-items/list-text/list-text.component';
34
+ export * from './lib/list-items/list-base/list-base.component';
35
+ export * from './lib/list-items/list-counts/list-counts.component';
36
+ export * from './lib/list-items/format-duration.pipe';
37
+ export * from './lib/list-items/node-row/node-row.component';
38
+ export * from './lib/pipes/format-date.pipe';
39
+ export * from './lib/pipes/vcard-name.pipe';
40
+ export * from './lib/pipes/node-icon.pipe';
41
+ export * from './lib/pipes/node-image.pipe';
42
+ export * from './lib/pipes/node-image-size.pipe';
43
+ export * from './lib/pipes/file-size.pipe';
44
+ export * from './lib/pipes/node-person-name.pipe';
45
+ export * from './lib/pipes/node-title.pipe';
46
+ export * from './lib/services/abstract/app.service';
47
+ export * from './lib/services/abstract/options-helper.service';
48
+ export * from './lib/services/abstract/keyboard-shortcuts.service';
49
+ export * from './lib/services/abstract/toast.service';
50
+ export * from './lib/services/local-events.service';
51
+ export * from './lib/services/ui.service';
52
+ export * from './lib/services/accessibility.service';
53
+ export * from './lib/services/nodes-drag-drop.service';
54
+ export * from './lib/services/options-helper-data.service';
55
+ export * from './lib/services/temporary-storage.service';
56
+ export * from './lib/services/node-helper.service';
57
+ export * from './lib/services/repo-url.service';
58
+ export * from './lib/types/workflow';
59
+ export * from './lib/types/drag-drop';
60
+ export * from './lib/types/option-item';
61
+ export * from './lib/types/keyboard-shortcuts';
62
+ export * from './lib/types/list-item';
63
+ export * from './lib/types/accessibillity';
64
+ export * from './lib/util/color-helper';
65
+ export * from './lib/util/VCard';
66
+ export * from './lib/util/functions';
67
+ export * from './lib/util/DateHelper';
68
+ export * from './lib/util/helper';
69
+ export * from './lib/util/rest-helper';
70
+ export * from './lib/util/duration-helper';
71
+ export * from './lib/util/ui-animation';
72
+ export * from './lib/util/ui-constants';
73
+ export * from './lib/util/isNumeric';
74
+ export * from './lib/spinner/spinner.component';
75
+ export * from './lib/node-url/node-url.component';
76
+ export * from './lib/dropdown/dropdown.component';
package/src/test.ts ADDED
@@ -0,0 +1,28 @@
1
+ // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
+
3
+ import 'zone.js';
4
+ import 'zone.js/testing';
5
+ import { getTestBed } from '@angular/core/testing';
6
+ import {
7
+ BrowserDynamicTestingModule,
8
+ platformBrowserDynamicTesting,
9
+ } from '@angular/platform-browser-dynamic/testing';
10
+
11
+ declare const require: {
12
+ context(
13
+ path: string,
14
+ deep?: boolean,
15
+ filter?: RegExp,
16
+ ): {
17
+ <T>(id: string): T;
18
+ keys(): string[];
19
+ };
20
+ };
21
+
22
+ // First, initialize the Angular testing environment.
23
+ getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
24
+
25
+ // Then we find all the tests.
26
+ const context = require.context('./', true, /\.spec\.ts$/);
27
+ // And load the modules.
28
+ context.keys().map(context);
@@ -0,0 +1,15 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/lib",
6
+ "declaration": true,
7
+ "declarationMap": true,
8
+ "inlineSources": true,
9
+ "types": []
10
+ },
11
+ "exclude": [
12
+ "src/test.ts",
13
+ "**/*.spec.ts"
14
+ ]
15
+ }
@@ -0,0 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "compilationMode": "partial"
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/spec",
6
+ "types": [
7
+ "jasmine"
8
+ ]
9
+ },
10
+ "files": [
11
+ "src/test.ts"
12
+ ],
13
+ "include": [
14
+ "**/*.spec.ts",
15
+ "**/*.d.ts"
16
+ ]
17
+ }