c3-components 0.0.3 → 0.0.5

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 (128) hide show
  1. package/CONTRIBUTING.md +80 -0
  2. package/README.md +1 -1
  3. package/_index.scss +3 -0
  4. package/ng-package.json +19 -0
  5. package/package.json +8 -20
  6. package/src/lib/c3-dialog/c3-dialog.module.ts +30 -0
  7. package/src/lib/c3-dialog/components/c3-dialog-confirm.component.ts +44 -0
  8. package/src/lib/c3-dialog/components/c3-dialog-embed-child.component.ts +40 -0
  9. package/src/lib/c3-dialog/components/c3-dialog-prompt.component.ts +81 -0
  10. package/src/lib/c3-dialog/services/c3-dialog.service.ts +87 -0
  11. package/src/lib/c3-dropdown/c3-dropdown.module.ts +12 -0
  12. package/src/lib/c3-dropdown/components/c3-dropdown.component.spec.ts +22 -0
  13. package/src/lib/c3-dropdown/components/c3-dropdown.component.ts +39 -0
  14. package/src/lib/c3-dropdown/directives/c3-dropdown.trigger.ts +161 -0
  15. package/src/lib/c3-file/c3-download/c3-download.module.ts +10 -0
  16. package/src/lib/c3-file/c3-download/c3-download.service.ts +16 -0
  17. package/src/lib/c3-file/c3-input-file/c3-input-file.module.ts +30 -0
  18. package/src/lib/c3-file/c3-input-file/class/c3-input-file.ts +62 -0
  19. package/src/lib/c3-file/c3-input-file/components/c3-input-file/c3-input-file.component.html +7 -0
  20. package/src/lib/c3-file/c3-input-file/components/c3-input-file/c3-input-file.component.ts +96 -0
  21. package/src/lib/c3-file/c3-input-file/components/c3-input-file-container/c3-input-file-container.component.ts +53 -0
  22. package/src/lib/c3-file/c3-input-file/components/c3-input-file-displayer/c3-input-file-displayer.component.ts +107 -0
  23. package/src/lib/c3-file/c3-input-file/components/c3-input-file-trigger/c3-input-file-trigger.component.ts +22 -0
  24. package/src/lib/c3-file/c3-input-file/directives/c3-input-file-trigger.directive.ts +27 -0
  25. package/src/lib/c3-file-upload/c3-file-upload.module.ts +8 -0
  26. package/src/lib/c3-file-viewer/c3-file-viewer.module.ts +34 -0
  27. package/src/lib/c3-file-viewer/components/c3-file-viewer-actions/c3-file-viewer-actions.component.html +185 -0
  28. package/src/lib/c3-file-viewer/components/c3-file-viewer-actions/c3-file-viewer-actions.component.spec.ts +23 -0
  29. package/src/lib/c3-file-viewer/components/c3-file-viewer-actions/c3-file-viewer-actions.component.ts +15 -0
  30. package/src/lib/c3-file-viewer/components/c3-file-viewer-image/c3-file-viewer-image.component.html +7 -0
  31. package/src/lib/c3-file-viewer/components/c3-file-viewer-image/c3-file-viewer-image.component.spec.ts +23 -0
  32. package/src/lib/c3-file-viewer/components/c3-file-viewer-image/c3-file-viewer-image.component.ts +14 -0
  33. package/src/lib/c3-file-viewer/components/c3-file-viewer-pdf/c3-file-viewer-pdf.component.html +7 -0
  34. package/src/lib/c3-file-viewer/components/c3-file-viewer-pdf/c3-file-viewer-pdf.component.spec.ts +23 -0
  35. package/src/lib/c3-file-viewer/components/c3-file-viewer-pdf/c3-file-viewer-pdf.component.ts +25 -0
  36. package/src/lib/c3-file-viewer/components/c3-file-viewer-video/c3-file-viewer-video.component.css +0 -0
  37. package/src/lib/c3-file-viewer/components/c3-file-viewer-video/c3-file-viewer-video.component.html +1 -0
  38. package/src/lib/c3-file-viewer/components/c3-file-viewer-video/c3-file-viewer-video.component.spec.ts +23 -0
  39. package/src/lib/c3-file-viewer/components/c3-file-viewer-video/c3-file-viewer-video.component.ts +35 -0
  40. package/src/lib/c3-file-viewer/components/public/c3-file-viewer/c3-file-viewer.component.html +32 -0
  41. package/src/lib/c3-file-viewer/components/public/c3-file-viewer/c3-file-viewer.component.spec.ts +23 -0
  42. package/src/lib/c3-file-viewer/components/public/c3-file-viewer/c3-file-viewer.component.ts +93 -0
  43. package/src/lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.component.spec.ts +23 -0
  44. package/src/lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.component.ts +34 -0
  45. package/src/lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.spec.ts +22 -0
  46. package/src/lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.ts +12 -0
  47. package/src/lib/c3-file-viewer/consts/default.config.ts +41 -0
  48. package/src/lib/c3-file-viewer/directives/full-screen.directive.spec.ts +11 -0
  49. package/src/lib/c3-file-viewer/directives/full-screen.directive.ts +68 -0
  50. package/src/lib/c3-file-viewer/models/custom-file-event.model.ts +9 -0
  51. package/src/lib/c3-file-viewer/models/file-metadata.ts +13 -0
  52. package/src/lib/c3-file-viewer/models/file-viewer-config.model.ts +53 -0
  53. package/src/lib/c3-file-viewer/models/file-viewer.ts +259 -0
  54. package/src/lib/c3-file-viewer/models/http.client.ts +23 -0
  55. package/src/lib/c3-highlight-text/c3-highlight-text.module.ts +12 -0
  56. package/src/lib/c3-menu/c3-menu.module.ts +12 -0
  57. package/src/lib/c3-modal/c3-modal.module.ts +12 -0
  58. package/src/lib/c3-navbar/c3-navbar.module.ts +12 -0
  59. package/src/lib/c3-pdf-dialog/c3-pdf-dialog.module.ts +12 -0
  60. package/src/lib/c3-rounded-title/c3-rounded-title.module.ts +12 -0
  61. package/src/lib/c3-safe-url/pipes/c3-safe-url.pipe.spec.ts +8 -0
  62. package/src/lib/c3-safe-url/pipes/c3-safe-url.pipe.ts +13 -0
  63. package/src/lib/c3-tabs/c3-tabs.module.ts +12 -0
  64. package/{public-api.d.ts → src/public-api.ts} +9 -0
  65. package/tailwind.config.js +8 -0
  66. package/tsconfig.lib.json +14 -0
  67. package/tsconfig.lib.prod.json +10 -0
  68. package/tsconfig.spec.json +14 -0
  69. package/esm2020/c3-components.mjs +0 -5
  70. package/esm2020/lib/c3-dialog/c3-dialog.module.mjs +0 -56
  71. package/esm2020/lib/c3-dialog/components/c3-dialog-confirm.component.mjs +0 -52
  72. package/esm2020/lib/c3-dialog/components/c3-dialog-embed-child.component.mjs +0 -32
  73. package/esm2020/lib/c3-dialog/components/c3-dialog-prompt.component.mjs +0 -95
  74. package/esm2020/lib/c3-dialog/services/c3-dialog.service.mjs +0 -79
  75. package/esm2020/lib/c3-dropdown/c3-dropdown.module.mjs +0 -20
  76. package/esm2020/lib/c3-dropdown/components/c3-dropdown.component.mjs +0 -45
  77. package/esm2020/lib/c3-dropdown/directives/c3-dropdown.trigger.mjs +0 -128
  78. package/esm2020/lib/c3-file-viewer/c3-file-viewer.module.mjs +0 -51
  79. package/esm2020/lib/c3-file-viewer/components/c3-file-viewer-actions/c3-file-viewer-actions.component.mjs +0 -17
  80. package/esm2020/lib/c3-file-viewer/components/c3-file-viewer-dialog/c3-file-viewer-dialog.mjs +0 -20
  81. package/esm2020/lib/c3-file-viewer/components/c3-file-viewer-image/c3-file-viewer-image.component.mjs +0 -20
  82. package/esm2020/lib/c3-file-viewer/components/c3-file-viewer-pdf/c3-file-viewer-pdf.component.mjs +0 -23
  83. package/esm2020/lib/c3-file-viewer/components/c3-file-viewer-video/c3-file-viewer-video.component.mjs +0 -32
  84. package/esm2020/lib/c3-file-viewer/components/public/c3-file-viewer/c3-file-viewer.component.mjs +0 -86
  85. package/esm2020/lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.component.mjs +0 -34
  86. package/esm2020/lib/c3-file-viewer/consts/default.config.mjs +0 -40
  87. package/esm2020/lib/c3-file-viewer/directives/full-screen.directive.mjs +0 -66
  88. package/esm2020/lib/c3-file-viewer/models/custom-file-event.model.mjs +0 -7
  89. package/esm2020/lib/c3-file-viewer/models/file-metadata.mjs +0 -2
  90. package/esm2020/lib/c3-file-viewer/models/file-viewer-config.model.mjs +0 -2
  91. package/esm2020/lib/c3-file-viewer/models/file-viewer.mjs +0 -206
  92. package/esm2020/lib/c3-file-viewer/models/http.client.mjs +0 -2
  93. package/esm2020/lib/c3-safe-url/pipes/c3-safe-url.pipe.mjs +0 -21
  94. package/esm2020/public-api.mjs +0 -34
  95. package/fesm2015/c3-components.mjs +0 -1055
  96. package/fesm2015/c3-components.mjs.map +0 -1
  97. package/fesm2020/c3-components.mjs +0 -1053
  98. package/fesm2020/c3-components.mjs.map +0 -1
  99. package/index.d.ts +0 -5
  100. package/lib/c3-dialog/c3-dialog.module.d.ts +0 -16
  101. package/lib/c3-dialog/components/c3-dialog-confirm.component.d.ts +0 -23
  102. package/lib/c3-dialog/components/c3-dialog-embed-child.component.d.ts +0 -18
  103. package/lib/c3-dialog/components/c3-dialog-prompt.component.d.ts +0 -31
  104. package/lib/c3-dialog/services/c3-dialog.service.d.ts +0 -19
  105. package/lib/c3-dropdown/c3-dropdown.module.d.ts +0 -10
  106. package/lib/c3-dropdown/components/c3-dropdown.component.d.ts +0 -15
  107. package/lib/c3-dropdown/directives/c3-dropdown.trigger.d.ts +0 -45
  108. package/lib/c3-file-viewer/c3-file-viewer.module.d.ts +0 -18
  109. package/lib/c3-file-viewer/components/c3-file-viewer-actions/c3-file-viewer-actions.component.d.ts +0 -8
  110. package/lib/c3-file-viewer/components/c3-file-viewer-dialog/c3-file-viewer-dialog.d.ts +0 -8
  111. package/lib/c3-file-viewer/components/c3-file-viewer-image/c3-file-viewer-image.component.d.ts +0 -9
  112. package/lib/c3-file-viewer/components/c3-file-viewer-pdf/c3-file-viewer-pdf.component.d.ts +0 -9
  113. package/lib/c3-file-viewer/components/c3-file-viewer-video/c3-file-viewer-video.component.d.ts +0 -12
  114. package/lib/c3-file-viewer/components/public/c3-file-viewer/c3-file-viewer.component.d.ts +0 -25
  115. package/lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.component.d.ts +0 -12
  116. package/lib/c3-file-viewer/consts/default.config.d.ts +0 -2
  117. package/lib/c3-file-viewer/directives/full-screen.directive.d.ts +0 -12
  118. package/lib/c3-file-viewer/models/custom-file-event.model.d.ts +0 -5
  119. package/lib/c3-file-viewer/models/file-metadata.d.ts +0 -12
  120. package/lib/c3-file-viewer/models/file-viewer-config.model.d.ts +0 -48
  121. package/lib/c3-file-viewer/models/file-viewer.d.ts +0 -65
  122. package/lib/c3-file-viewer/models/http.client.d.ts +0 -14
  123. package/lib/c3-safe-url/pipes/c3-safe-url.pipe.d.ts +0 -10
  124. /package/{lib → src/lib}/c3-dropdown/styles/_c3-dropdown.sass +0 -0
  125. /package/{lib → src/lib}/c3-file-viewer/styles/_c3-file-viewer.sass +0 -0
  126. /package/{lib → src/lib}/c3-styles/_c3-core.sass +0 -0
  127. /package/{lib → src/lib}/c3-styles/_c3-root-variables.sass +0 -0
  128. /package/{lib → src/lib}/c3-styles/_utils.sass +0 -0
@@ -0,0 +1,259 @@
1
+ import { BehaviorSubject, Observable, map, tap } from 'rxjs';
2
+ import { DEFAULT_CONFIG } from '../consts/default.config';
3
+ import { C3FileViewerConfig } from './file-viewer-config.model';
4
+ import { HttpClient } from '@angular/common/http';
5
+ import { CustomFileEvent } from './custom-file-event.model';
6
+ import { FileMetadata } from './file-metadata';
7
+ import { inject } from '@angular/core';
8
+
9
+ export class C3FileViewer {
10
+ private _config: C3FileViewerConfig = DEFAULT_CONFIG;
11
+ get config(): C3FileViewerConfig {
12
+ return this._config;
13
+ }
14
+
15
+ set config(value: C3FileViewerConfig) {
16
+ this._config = this.mergeConfig(DEFAULT_CONFIG, value);
17
+ this.config$.next(this._config);
18
+ }
19
+ public config$ = new BehaviorSubject<C3FileViewerConfig>(DEFAULT_CONFIG);
20
+
21
+ public fullscreen$ = new BehaviorSubject<Boolean>(false);
22
+
23
+ public customFile$ = new BehaviorSubject<any>(null);
24
+ public index$ = new BehaviorSubject<number>(0);
25
+ public loading: boolean = true;
26
+ public currentIndex: number = 0;
27
+
28
+ get currentFile(): FileMetadata {
29
+ return this.filesObjectUrl[this.currentIndex];
30
+ }
31
+
32
+ public style = {
33
+ transform: '',
34
+ msTransform: '',
35
+ oTransform: '',
36
+ webkitTransform: '',
37
+ minHeight: 'auto',
38
+ maxHeight: 'auto',
39
+ height: 'auto',
40
+ minWidth: 'auto',
41
+ maxWidth: 'auto',
42
+ width: 'auto',
43
+ };
44
+ public styleHeight = '100%';
45
+ public hovered = false;
46
+
47
+ public set files(value: FileMetadata[]) {
48
+ this._files = value;
49
+ this.currentIndex = 0;
50
+ this.index$.next(this.currentIndex);
51
+
52
+ this.filesObjectUrl = value.map((file) => {
53
+ return {
54
+ ...file,
55
+ objectUrl: file.objectUrl || this.createObjectURL(file),
56
+ };
57
+ });
58
+ }
59
+
60
+ public get files(): FileMetadata[] {
61
+ return this._files;
62
+ }
63
+
64
+ private _files: FileMetadata[] = [];
65
+
66
+ public filesObjectUrl: Array<
67
+ FileMetadata & {
68
+ objectUrl?: Observable<string>;
69
+ }
70
+ > = [];
71
+
72
+ private scale = 1;
73
+ private rotation = 0;
74
+ private translateX = 0;
75
+ private translateY = 0;
76
+ private prevX: number = 0;
77
+ private prevY: number = 0;
78
+
79
+ constructor({
80
+ config,
81
+ files,
82
+ }: {
83
+ config?: C3FileViewerConfig;
84
+ files?: FileMetadata[];
85
+ }) {
86
+ if (config) this.config = config;
87
+ if (files) this.files = files;
88
+
89
+ this.config$.subscribe((config) => {
90
+ const { minHeight, maxHeight, minWidth, maxWidth, height, width } =
91
+ config;
92
+ this.style.minHeight = this.valueToCss(minHeight);
93
+ this.style.height = this.valueToCss(height);
94
+ this.style.width = this.valueToCss(width);
95
+ this.style.maxHeight = this.valueToCss(maxHeight);
96
+ this.style.minWidth = this.valueToCss(minWidth);
97
+ this.style.maxWidth = this.valueToCss(maxWidth);
98
+ this.styleHeight = this.valueToCss(height);
99
+
100
+ this.updateStyle();
101
+ });
102
+ }
103
+
104
+ createObjectURL(file: FileMetadata) {
105
+ this.onLoadStart(file);
106
+ return this.getFile(file.location).pipe(
107
+ map((response) => URL.createObjectURL(response)),
108
+ tap(() => this.onLoad(file))
109
+ );
110
+ }
111
+
112
+ getFile(location: string) {
113
+ const client =
114
+ this.config.customClient ||
115
+ inject(HttpClient).get.bind(inject(HttpClient));
116
+ if (!client) {
117
+ throw new Error(
118
+ 'No http client provided. Please provide a custom client or import HttpClientModule'
119
+ );
120
+ }
121
+
122
+ return client(location, {
123
+ responseType: 'blob',
124
+ });
125
+ }
126
+
127
+ previousImage(event: KeyboardEvent | MouseEvent) {
128
+ if (this.canNavigate(event)) {
129
+ this.loading = true;
130
+ if (this.currentIndex > 0) this.currentIndex--;
131
+ else this.currentIndex = this.files.length - 1;
132
+ this.index$.next(this.currentIndex);
133
+ this.reset();
134
+ }
135
+ }
136
+
137
+ nextImage(event: KeyboardEvent | MouseEvent) {
138
+ if (this.canNavigate(event)) {
139
+ this.loading = true;
140
+ if (this.currentIndex < this.files.length - 1) this.currentIndex++;
141
+ else this.currentIndex = 0;
142
+ this.index$.next(this.currentIndex);
143
+ this.reset();
144
+ }
145
+ }
146
+
147
+ zoomIn() {
148
+ this.scale *= 1 + (this.config.zoomFactor || 0);
149
+ this.updateStyle();
150
+ }
151
+
152
+ zoomOut() {
153
+ if (this.scale > (this.config.zoomFactor || 0)) {
154
+ this.scale /= 1 + (this.config.zoomFactor || 0);
155
+ }
156
+ this.updateStyle();
157
+ }
158
+
159
+ scrollZoom(evt: WheelEvent) {
160
+ if (this.config.wheelZoom) {
161
+ evt.deltaY > 0 ? this.zoomOut() : this.zoomIn();
162
+ return false;
163
+ } else {
164
+ return true;
165
+ }
166
+ }
167
+
168
+ rotateClockwise() {
169
+ this.rotation += 90;
170
+ this.updateStyle();
171
+ }
172
+
173
+ rotateCounterClockwise() {
174
+ this.rotation -= 90;
175
+ this.updateStyle();
176
+ }
177
+
178
+ onLoad(file: FileMetadata) {
179
+ this.loading = false;
180
+ }
181
+
182
+ onLoadStart(file: FileMetadata) {
183
+ this.loading = true;
184
+ }
185
+
186
+ imageNotFound(file: FileMetadata) {
187
+ this.loading = false;
188
+ this.customFile$.next(new CustomFileEvent('imageNotFound', file.location));
189
+ }
190
+
191
+ onDragOver(evt: DragEvent) {
192
+ this.translateX += evt.clientX - this.prevX;
193
+ this.translateY += evt.clientY - this.prevY;
194
+ this.prevX = evt.clientX;
195
+ this.prevY = evt.clientY;
196
+ this.updateStyle();
197
+ }
198
+
199
+ onDragStart(evt: DragEvent) {
200
+ if (evt.target && evt.dataTransfer && evt.dataTransfer.setDragImage) {
201
+ const target = evt.target as HTMLDivElement;
202
+ const nextElementSibling = target.nextElementSibling as HTMLDivElement;
203
+
204
+ if (nextElementSibling)
205
+ evt.dataTransfer.setDragImage(nextElementSibling, 0, 0);
206
+ }
207
+ this.prevX = evt.clientX;
208
+ this.prevY = evt.clientY;
209
+ }
210
+
211
+ toggleFullscreen() {
212
+ const fullScreenValue = this.fullscreen$.getValue();
213
+ this.fullscreen$.next(!fullScreenValue);
214
+ if (fullScreenValue) this.reset();
215
+ }
216
+
217
+ reset() {
218
+ this.scale = 1;
219
+ this.rotation = 0;
220
+ this.translateX = 0;
221
+ this.translateY = 0;
222
+ this.updateStyle();
223
+ }
224
+
225
+ private canNavigate(event: any) {
226
+ return (
227
+ event == null || (this.config.allowKeyboardNavigation && this.hovered)
228
+ );
229
+ }
230
+
231
+ private updateStyle() {
232
+ this.style.transform = `translate(${this.translateX}px, ${this.translateY}px) rotate(${this.rotation}deg) scale(${this.scale})`;
233
+ this.style.msTransform = this.style.transform;
234
+ this.style.webkitTransform = this.style.transform;
235
+ this.style.oTransform = this.style.transform;
236
+ }
237
+
238
+ private valueToCss(value: number | string | undefined) {
239
+ return value ? (typeof value === 'string' ? value : value + 'px') : 'auto';
240
+ }
241
+
242
+ private mergeConfig(
243
+ defaultValues: C3FileViewerConfig,
244
+ overrideValues: C3FileViewerConfig
245
+ ): C3FileViewerConfig {
246
+ let result: C3FileViewerConfig = { ...defaultValues };
247
+ if (overrideValues) {
248
+ result = { ...defaultValues, ...overrideValues };
249
+
250
+ if (overrideValues.btnIcons) {
251
+ result.btnIcons = {
252
+ ...defaultValues.btnIcons,
253
+ ...overrideValues.btnIcons,
254
+ };
255
+ }
256
+ }
257
+ return result;
258
+ }
259
+ }
@@ -0,0 +1,23 @@
1
+ import { HttpContext, HttpHeaders, HttpParams } from '@angular/common/http';
2
+
3
+ export interface HttpClientOptions {
4
+ headers?:
5
+ | HttpHeaders
6
+ | {
7
+ [header: string]: string | string[];
8
+ };
9
+ context?: HttpContext;
10
+ observe?: 'body';
11
+ params?:
12
+ | HttpParams
13
+ | {
14
+ [param: string]:
15
+ | string
16
+ | number
17
+ | boolean
18
+ | ReadonlyArray<string | number | boolean>;
19
+ };
20
+ reportProgress?: boolean;
21
+ responseType: 'blob';
22
+ withCredentials?: boolean;
23
+ }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+
5
+
6
+ @NgModule({
7
+ declarations: [],
8
+ imports: [
9
+ CommonModule
10
+ ]
11
+ })
12
+ export class C3HighlightTextModule { }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+
5
+
6
+ @NgModule({
7
+ declarations: [],
8
+ imports: [
9
+ CommonModule
10
+ ]
11
+ })
12
+ export class C3MenuModule { }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+
5
+
6
+ @NgModule({
7
+ declarations: [],
8
+ imports: [
9
+ CommonModule
10
+ ]
11
+ })
12
+ export class C3ModalModule { }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+
5
+
6
+ @NgModule({
7
+ declarations: [],
8
+ imports: [
9
+ CommonModule
10
+ ]
11
+ })
12
+ export class C3NavbarModule { }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+
5
+
6
+ @NgModule({
7
+ declarations: [],
8
+ imports: [
9
+ CommonModule
10
+ ]
11
+ })
12
+ export class C3PdfDialogModule { }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+
5
+
6
+ @NgModule({
7
+ declarations: [],
8
+ imports: [
9
+ CommonModule
10
+ ]
11
+ })
12
+ export class C3RoundedTitleModule { }
@@ -0,0 +1,8 @@
1
+ import { C3SafeUrlPipe } from './c3-safe-url.pipe';
2
+
3
+ describe('C3SafeUrlPipe', () => {
4
+ it('create an instance', () => {
5
+ const pipe = new C3SafeUrlPipe();
6
+ expect(pipe).toBeTruthy();
7
+ });
8
+ });
@@ -0,0 +1,13 @@
1
+ import { Pipe, PipeTransform } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+
4
+ @Pipe({
5
+ name: 'c3SafeUrl',
6
+ standalone: true,
7
+ })
8
+ export class C3SafeUrlPipe implements PipeTransform {
9
+ constructor(private sanitizer: DomSanitizer) {}
10
+ transform(url: string | null) {
11
+ return url ? this.sanitizer.bypassSecurityTrustResourceUrl(url) : '';
12
+ }
13
+ }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+
5
+
6
+ @NgModule({
7
+ declarations: [],
8
+ imports: [
9
+ CommonModule
10
+ ]
11
+ })
12
+ export class C3TabsModule { }
@@ -1,10 +1,16 @@
1
+ /*
2
+ * Public API Surface of c3-components
3
+ */
4
+
1
5
  export * from './lib/c3-file-viewer/models/http.client';
6
+
2
7
  /**
3
8
  * Dropdown
4
9
  */
5
10
  export * from './lib/c3-dropdown/components/c3-dropdown.component';
6
11
  export * from './lib/c3-dropdown/directives/c3-dropdown.trigger';
7
12
  export * from './lib/c3-dropdown/c3-dropdown.module';
13
+
8
14
  /**
9
15
  * Dialog
10
16
  */
@@ -13,17 +19,20 @@ export * from './lib/c3-dialog/components/c3-dialog-prompt.component';
13
19
  export * from './lib/c3-dialog/components/c3-dialog-embed-child.component';
14
20
  export * from './lib/c3-dialog/services/c3-dialog.service';
15
21
  export * from './lib/c3-dialog/c3-dialog.module';
22
+
16
23
  /**
17
24
  * File Viewer
18
25
  */
19
26
  export * from './lib/c3-file-viewer/components/public/c3-file-viewer/c3-file-viewer.component';
20
27
  export * from './lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog.component';
28
+ export * from './lib/c3-file-viewer/components/public/c3-file-viewer-dialog/c3-file-viewer-dialog';
21
29
  export * from './lib/c3-file-viewer/directives/full-screen.directive';
22
30
  export * from './lib/c3-file-viewer/models/custom-file-event.model';
23
31
  export * from './lib/c3-file-viewer/models/file-viewer-config.model';
24
32
  export * from './lib/c3-file-viewer/models/file-viewer';
25
33
  export * from './lib/c3-file-viewer/models/file-metadata';
26
34
  export * from './lib/c3-file-viewer/c3-file-viewer.module';
35
+
27
36
  /**
28
37
  * Safe Url
29
38
  */
@@ -0,0 +1,8 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ["./src/**/*.{html,ts}"],
4
+ theme: {
5
+ extend: {},
6
+ },
7
+ plugins: [],
8
+ };
@@ -0,0 +1,14 @@
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
+ "**/*.spec.ts"
13
+ ]
14
+ }
@@ -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,14 @@
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
+ "include": [
11
+ "**/*.spec.ts",
12
+ "**/*.d.ts"
13
+ ]
14
+ }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYzMtY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2MzLWNvbXBvbmVudHMvc3JjL2MzLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,56 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { MatButtonModule } from '@angular/material/button';
4
- import { MatDialogModule } from '@angular/material/dialog';
5
- import { MatFormFieldModule } from '@angular/material/form-field';
6
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import { FlexLayoutModule } from '@angular/flex-layout';
8
- import { MatInputModule } from '@angular/material/input';
9
- import { ConfirmDialogComponent } from './components/c3-dialog-confirm.component';
10
- import { C3DialogEmbedChildComponent } from './components/c3-dialog-embed-child.component';
11
- import { C3PromptDialogComponent } from './components/c3-dialog-prompt.component';
12
- import { C3DialogService } from './services/c3-dialog.service';
13
- import * as i0 from "@angular/core";
14
- export class C3DialogModule {
15
- }
16
- C3DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: C3DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
- C3DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: C3DialogModule, declarations: [ConfirmDialogComponent,
18
- C3PromptDialogComponent,
19
- C3DialogEmbedChildComponent], imports: [CommonModule,
20
- MatDialogModule,
21
- MatButtonModule,
22
- MatFormFieldModule,
23
- MatInputModule,
24
- FormsModule,
25
- FlexLayoutModule,
26
- ReactiveFormsModule] });
27
- C3DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: C3DialogModule, providers: [C3DialogService], imports: [CommonModule,
28
- MatDialogModule,
29
- MatButtonModule,
30
- MatFormFieldModule,
31
- MatInputModule,
32
- FormsModule,
33
- FlexLayoutModule,
34
- ReactiveFormsModule] });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: C3DialogModule, decorators: [{
36
- type: NgModule,
37
- args: [{
38
- declarations: [
39
- ConfirmDialogComponent,
40
- C3PromptDialogComponent,
41
- C3DialogEmbedChildComponent,
42
- ],
43
- imports: [
44
- CommonModule,
45
- MatDialogModule,
46
- MatButtonModule,
47
- MatFormFieldModule,
48
- MatInputModule,
49
- FormsModule,
50
- FlexLayoutModule,
51
- ReactiveFormsModule,
52
- ],
53
- providers: [C3DialogService],
54
- }]
55
- }] });
56
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYzMtZGlhbG9nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2MzLWNvbXBvbmVudHMvc3JjL2xpYi9jMy1kaWFsb2cvYzMtZGlhbG9nLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZUFBZSxFQU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WxkQ29tcG9uZW50IH0gZnJvbSAnLi9jb21wb25lbnRzL2MzLWRpYWxvZy1lbWJlZC1jaGlsZC5jb21wb25lbnQnO1xuaW1wb3J0IHsgQzNQcm9tcHREaWFsb2dDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvYzMtZGlhbG9nLXByb21wdC5jb21wb25lbnQnO1xuaW1wb3J0IHsgQzNEaWFsb2dTZXJ2aWNlIH0gZnJvbSAnLi9zZXJ2aWNlcy9jMy1kaWFsb2cuc2VydmljZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIENvbmZpcm1EaWFsb2dDb21wb25lbnQsXG4gICAgQzNQcm9tcHREaWFsb2dDb21wb25lbnQsXG4gICAgQzNEaWFsb2dFbWJlZENoaWxkQ29tcG9uZW50LFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIE1hdERpYWxvZ01vZHVsZSxcbiAgICBNYXRCdXR0b25Nb2R1bGUsXG4gICAgTWF0Rm9ybUZpZWxkTW9kdWxlLFxuICAgIE1hdElucHV0TW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIEZsZXhMYXlvdXRNb2R1bGUsXG4gICAgUmVhY3RpdmVGb3Jtc01vZHVsZSxcbiAgXSxcbiAgcHJvdmlkZXJzOiBbQzNEaWFsb2dTZXJ2aWNlXSxcbn0pXG5leHBvcnQgY2xhc3MgQzNEaWFsb2dNb2R1bGUge31cbiJdfQ==
@@ -1,52 +0,0 @@
1
- import { Component, Inject } from '@angular/core';
2
- import { MAT_DIALOG_DATA } from '@angular/material/dialog';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/material/dialog";
5
- import * as i2 from "@angular/material/button";
6
- import * as i3 from "@angular/flex-layout/flex";
7
- export class ConfirmDialogComponent {
8
- constructor(dialogRef, data) {
9
- this.dialogRef = dialogRef;
10
- this.data = data;
11
- }
12
- onNoClick() {
13
- this.dialogRef.close();
14
- }
15
- }
16
- ConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
17
- ConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ConfirmDialogComponent, selector: "ConfirmDialogComponent", ngImport: i0, template: `
18
- <mat-dialog-content>
19
- <div [innerHtml]="data.text"></div>
20
- </mat-dialog-content>
21
- <mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">
22
- <button mat-button mat-dialog-close [color]="data.reject?.color">
23
- {{ data.reject?.text }}
24
- </button>
25
- <button mat-button [color]="data.accept?.color" [mat-dialog-close]="true">
26
- {{ data.accept?.text }}
27
- </button>
28
- </mat-dialog-actions>
29
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
31
- type: Component,
32
- args: [{
33
- selector: 'ConfirmDialogComponent',
34
- template: `
35
- <mat-dialog-content>
36
- <div [innerHtml]="data.text"></div>
37
- </mat-dialog-content>
38
- <mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">
39
- <button mat-button mat-dialog-close [color]="data.reject?.color">
40
- {{ data.reject?.text }}
41
- </button>
42
- <button mat-button [color]="data.accept?.color" [mat-dialog-close]="true">
43
- {{ data.accept?.text }}
44
- </button>
45
- </mat-dialog-actions>
46
- `,
47
- }]
48
- }], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
49
- type: Inject,
50
- args: [MAT_DIALOG_DATA]
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b24+XHJcbiAgICA8L21hdC1kaWFsb2ctYWN0aW9ucz5cclxuICBgLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgQ29uZmlybURpYWxvZ0NvbXBvbmVudCB7XHJcbiAgY29uc3RydWN0b3IoXHJcbiAgICBwdWJsaWMgZGlhbG9nUmVmOiBNYXREaWFsb2dSZWY8Q29uZmlybURpYWxvZ0NvbXBvbmVudD4sXHJcbiAgICBASW5qZWN0KE1BVF9ESUFMT0dfREFUQSlcclxuICAgIHB1YmxpYyBkYXRhOiBDb25maXJtQ29uZmlnXHJcbiAgKSB7fVxyXG5cclxuICBvbk5vQ2xpY2soKTogdm9pZCB7XHJcbiAgICB0aGlzLmRpYWxvZ1JlZi5jbG9zZSgpO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,32 +0,0 @@
1
- import { Component, Inject, ViewChild, ViewContainerRef, } from '@angular/core';
2
- import { MAT_DIALOG_DATA } from '@angular/material/dialog';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/material/dialog";
5
- export class C3DialogEmbedChildComponent {
6
- constructor(dialogRef, data, _cdr) {
7
- this.dialogRef = dialogRef;
8
- this.data = data;
9
- this._cdr = _cdr;
10
- }
11
- ngAfterViewInit() {
12
- this.createdComponent = this.target.createComponent(this.data.component);
13
- this._cdr.detectChanges();
14
- }
15
- }
16
- C3DialogEmbedChildComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: C3DialogEmbedChildComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
17
- C3DialogEmbedChildComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: C3DialogEmbedChildComponent, selector: "C3DialogEmbedChildComponent", viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: `<mat-dialog-content>
18
- <ng-template #target></ng-template>
19
- </mat-dialog-content>`, isInline: true, dependencies: [{ kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: C3DialogEmbedChildComponent, decorators: [{
21
- type: Component,
22
- args: [{ selector: 'C3DialogEmbedChildComponent', template: `<mat-dialog-content>
23
- <ng-template #target></ng-template>
24
- </mat-dialog-content>` }]
25
- }], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
26
- type: Inject,
27
- args: [MAT_DIALOG_DATA]
28
- }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { target: [{
29
- type: ViewChild,
30
- args: ['target', { read: ViewContainerRef }]
31
- }] } });
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYzMtZGlhbG9nLWVtYmVkLWNoaWxkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2MzLWNvbXBvbmVudHMvc3JjL2xpYi9jMy1kaWFsb2cvY29tcG9uZW50cy9jMy1kaWFsb2ctZW1iZWQtY2hpbGQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFHTCxTQUFTLEVBRVQsTUFBTSxFQUVOLFNBQVMsRUFDVCxnQkFBZ0IsR0FDakIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFnQixlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7O0FBU3pFLE1BQU0sT0FBTywyQkFBMkI7SUFPdEMsWUFDUyxTQUFtRSxFQUVuRSxJQUVOLEVBQ08sSUFBdUI7UUFMeEIsY0FBUyxHQUFULFNBQVMsQ0FBMEQ7UUFFbkUsU0FBSSxHQUF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