croco-html 2.3.1 → 2.5.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 (69) hide show
  1. package/README.md +2 -2
  2. package/esm2022/lib/components/add-files-btn/add-files-btn.component.mjs +3 -3
  3. package/esm2022/lib/components/editor/external-video-block/external-video-block.component.mjs +14 -23
  4. package/esm2022/lib/components/editor/external-video-block/vk-video-player/vk-video-player.component.mjs +20 -0
  5. package/esm2022/lib/components/editor/html-raw-editor/html-raw-editor.component.mjs +7 -8
  6. package/esm2022/lib/components/editor/image-editor/image-editor.component.mjs +9 -10
  7. package/esm2022/lib/components/editor/index.mjs +1 -1
  8. package/esm2022/lib/components/editor/main-editor/main-editor.component.mjs +13 -14
  9. package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +12 -13
  10. package/esm2022/lib/components/editor/text-editor/text-editor.component.mjs +9 -10
  11. package/esm2022/lib/components/editor/visual-editor/DefaultAligments.mjs +1 -1
  12. package/esm2022/lib/components/editor/visual-editor/DefaultTags.mjs +2 -2
  13. package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +27 -24
  14. package/esm2022/lib/components/file-id-select/file-id-select.component.mjs +6 -3
  15. package/esm2022/lib/components/index.mjs +1 -1
  16. package/esm2022/lib/components/upload-files-btn/upload-files-btn.component.mjs +3 -3
  17. package/esm2022/lib/components/xml-tags/file-image-tag-view/file-image-tag-view.component.mjs +3 -3
  18. package/esm2022/lib/components/xml-tags/index.mjs +1 -1
  19. package/esm2022/lib/components/xml-tags/xml-tag-external-video/resize-observable.mjs +1 -1
  20. package/esm2022/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.mjs +22 -6
  21. package/esm2022/lib/components/xml-tags/xml-tag-header-inner-text-view/xml-tag-header-inner-text-view.component.mjs +3 -4
  22. package/esm2022/lib/components/xml-tags/xml-tag-header-text-view/xml-tag-header-text-view.component.mjs +4 -5
  23. package/esm2022/lib/components/xml-tags/xml-tag-html-view/xml-tag-html-view.component.mjs +3 -3
  24. package/esm2022/lib/components/xml-tags/xml-tag-rich-text-view/xml-tag-rich-text-view.component.mjs +4 -5
  25. package/esm2022/lib/components/xml-tags/xml-tag-table-view/xml-tag-table-view.component.mjs +4 -5
  26. package/esm2022/lib/components/xml-tags/xml-tag-text-view/xml-tag-text-view.component.mjs +3 -4
  27. package/esm2022/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.mjs +12 -11
  28. package/esm2022/lib/croco-html.module.mjs +6 -3
  29. package/esm2022/lib/extensions/AngularMaterialTableMethods.mjs +1 -1
  30. package/esm2022/lib/extensions/BodyTagsExtensions.mjs +8 -7
  31. package/esm2022/lib/extensions/BootstrapTableMethods.mjs +1 -1
  32. package/esm2022/lib/extensions/HtmlExtractionMethods.mjs +1 -1
  33. package/esm2022/lib/extensions/HtmlRawTagDataConsts.mjs +1 -1
  34. package/esm2022/lib/extensions/ImageMethods.mjs +1 -1
  35. package/esm2022/lib/extensions/InterfaceBlock.mjs +1 -1
  36. package/esm2022/lib/extensions/TableBuilder.mjs +1 -1
  37. package/esm2022/lib/extensions/TableMethods.mjs +1 -1
  38. package/esm2022/lib/extensions/Tags.mjs +20 -0
  39. package/esm2022/lib/extensions/TextMethods.mjs +11 -2
  40. package/esm2022/lib/extensions/TextSimpleMethods.mjs +1 -1
  41. package/esm2022/lib/extensions/VideoMethods.mjs +12 -1
  42. package/esm2022/lib/extensions/XmlExtensions.mjs +1 -1
  43. package/esm2022/lib/extensions/index.mjs +1 -1
  44. package/esm2022/lib/index.mjs +1 -1
  45. package/esm2022/lib/models/models.mjs +1 -1
  46. package/esm2022/lib/pipes/RichTextToHtmlPipe.mjs +1 -1
  47. package/esm2022/lib/pipes/TagToSpanPipe.mjs +1 -1
  48. package/esm2022/lib/pipes/ToHtmlBodyTagsPipe.mjs +1 -1
  49. package/esm2022/lib/pipes/ToPreviewHtmlPipe.mjs +1 -1
  50. package/esm2022/lib/pipes/index.mjs +1 -1
  51. package/esm2022/lib/pipes/to-preview.pipe.mjs +1 -1
  52. package/esm2022/lib/services/file-upload.service.mjs +1 -1
  53. package/esm2022/lib/services/files-query.service.mjs +14 -4
  54. package/esm2022/public-api.mjs +1 -1
  55. package/fesm2022/croco-html.mjs +967 -888
  56. package/fesm2022/croco-html.mjs.map +1 -1
  57. package/lib/components/editor/external-video-block/external-video-block.component.d.ts +4 -6
  58. package/lib/components/editor/external-video-block/vk-video-player/vk-video-player.component.d.ts +10 -0
  59. package/lib/components/editor/main-editor-block/main-editor-block.component.d.ts +0 -1
  60. package/lib/components/editor/visual-editor/visual-editor.component.d.ts +9 -0
  61. package/lib/components/xml-tags/xml-tag-external-video/xml-tag-external-video.component.d.ts +3 -1
  62. package/lib/components/xml-tags/xml-tag-view/xml-tag-view.component.d.ts +1 -1
  63. package/lib/croco-html.module.d.ts +2 -1
  64. package/lib/extensions/Tags.d.ts +15 -0
  65. package/lib/extensions/TextMethods.d.ts +10 -1
  66. package/lib/extensions/VideoMethods.d.ts +5 -0
  67. package/lib/index.d.ts +2 -2
  68. package/lib/services/files-query.service.d.ts +12 -1
  69. package/package.json +1 -1
@@ -1,16 +1,14 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { ExternalVideoTagData } from '../../../extensions/VideoMethods';
2
+ import { ExternalVideoTagData, ExternalVideoSupportedTypes } from '../../../extensions';
3
3
  import { HtmlBodyTag } from '../../../models/models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ExternalVideoBlockComponent implements OnInit {
6
6
  tag: HtmlBodyTag;
7
7
  onTagUpdated: EventEmitter<HtmlBodyTag>;
8
- defaultLink: string;
9
- data: {
10
- youtubeLink: string;
11
- };
8
+ defaultYoutubeLink: string;
9
+ defaultVkLink: string;
10
+ protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
12
11
  tagData: ExternalVideoTagData;
13
- linkChanged(): void;
14
12
  ngOnInit(): void;
15
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ExternalVideoBlockComponent, never>;
16
14
  static ɵcmp: i0.ɵɵComponentDeclaration<ExternalVideoBlockComponent, "croco-html-external-video-block", never, { "tag": { "alias": "tag"; "required": false; }; }, { "onTagUpdated": "onTagUpdated"; }, never, never, false, never>;
@@ -0,0 +1,10 @@
1
+ import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
2
+ import * as i0 from "@angular/core";
3
+ export declare class VkVideoPlayerComponent {
4
+ private sanitizer;
5
+ set link(link: string);
6
+ safeUrl: SafeResourceUrl;
7
+ constructor(sanitizer: DomSanitizer);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<VkVideoPlayerComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<VkVideoPlayerComponent, "vk-video-player", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -6,7 +6,6 @@ export declare class MainEditorBlockComponent implements OnInit {
6
6
  tag: HtmlBodyTag;
7
7
  onTagSaved: EventEmitter<HtmlBodyTag>;
8
8
  onTagRemoved: EventEmitter<HtmlBodyTag>;
9
- constructor();
10
9
  tagUpdatedHandler(tag: HtmlBodyTag): void;
11
10
  save(): void;
12
11
  deleteItem(): void;
@@ -1,10 +1,13 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
3
+ import { ExternalVideoTagDataConsts } from '../../../extensions';
3
4
  import { TagItem, HtmlBodyTag } from '../../../models/models';
4
5
  import { FilePostingStarted } from '../../upload-files-btn/upload-files-btn.component';
5
6
  import { EAlignments } from "./DefaultAligments";
6
7
  import { CrocoHtmlOptions } from '../../../extensions/HtmlExtractionMethods';
7
8
  import * as i0 from "@angular/core";
9
+ export declare const defaultLinkYouTube = "https://youtu.be/jzBneaWSswY";
10
+ export declare const defaultLinkVk = "https://vk.com/video_ext.php?oid=-22822305&id=456241864&hd=2";
8
11
  export declare class VisualEditorComponent implements OnInit, AfterViewInit {
9
12
  private readonly _cdref;
10
13
  private readonly _options;
@@ -22,7 +25,13 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
22
25
  }[];
23
26
  showMarkUp: boolean;
24
27
  tags: TagItem[];
28
+ videoPlayers: {
29
+ type: string;
30
+ displayValue: string;
31
+ }[];
25
32
  selectedValue: string;
33
+ selectedVideoPlayer: string;
34
+ protected readonly ExternalVideoTagDataConsts: typeof ExternalVideoTagDataConsts;
26
35
  useHtmlRaw: boolean;
27
36
  html: string;
28
37
  isHtmlSet(): boolean;
@@ -1,6 +1,6 @@
1
1
  import { DestroyRef, ElementRef, OnInit } from '@angular/core';
2
2
  import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
3
- import { ExternalVideoTagData } from '../../../extensions';
3
+ import { ExternalVideoSupportedTypes, ExternalVideoTagData } from '../../../extensions';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class XmlTagExternalVideoComponent implements OnInit {
6
6
  private destroyRef;
@@ -8,8 +8,10 @@ export declare class XmlTagExternalVideoComponent implements OnInit {
8
8
  set tagData(value: ExternalVideoTagData);
9
9
  playerContainerRef?: ElementRef<HTMLElement>;
10
10
  videoId?: string;
11
+ _block: ExternalVideoTagData;
11
12
  playerWidth: import("@angular/core").WritableSignal<number>;
12
13
  playerHeight: import("@angular/core").WritableSignal<number>;
14
+ protected readonly ExternalVideoSupportedTypes: typeof ExternalVideoSupportedTypes;
13
15
  constructor(destroyRef: DestroyRef);
14
16
  ngOnInit(): void;
15
17
  private getYouTubeId;
@@ -2,7 +2,7 @@ import { InterfaceBlock } from "../../../extensions/InterfaceBlock";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class XmlTagViewComponent {
4
4
  data: InterfaceBlock[];
5
- constructor();
5
+ textTags: string[];
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<XmlTagViewComponent, never>;
7
7
  static ɵcmp: i0.ɵɵComponentDeclaration<XmlTagViewComponent, "croco-html-xml-tag-view", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
8
8
  }
@@ -58,8 +58,9 @@ import * as i56 from "@angular/material/icon";
58
58
  import * as i57 from "@angular/cdk/drag-drop";
59
59
  import * as i58 from "@angular/material/button-toggle";
60
60
  import * as i59 from "@angular/youtube-player";
61
+ import * as i60 from "./components/editor/external-video-block/vk-video-player/vk-video-player.component";
61
62
  export declare class CrocoHtmlModule {
62
63
  static ɵfac: i0.ɵɵFactoryDeclaration<CrocoHtmlModule, never>;
63
- static ɵmod: i0.ɵɵNgModuleDeclaration<CrocoHtmlModule, [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe], [typeof i27.CommonModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.NgSelectModule, typeof i30.MatBadgeModule, typeof i31.MatTableModule, typeof i32.MatExpansionModule, typeof i33.MatFormFieldModule, typeof i34.MatSnackBarModule, typeof i35.MatProgressBarModule, typeof i36.MatProgressSpinnerModule, typeof i37.MatTabsModule, typeof i38.MatMenuModule, typeof i39.MatCardModule, typeof i40.MatSelectModule, typeof i41.MatTooltipModule, typeof i42.MatCheckboxModule, typeof i43.MatChipsModule, typeof i44.MatListModule, typeof i45.MatButtonModule, typeof i46.MatInputModule, typeof i47.MatDialogModule, typeof i48.MatPaginatorModule, typeof i49.MatDatepickerModule, typeof i50.MatGridListModule, typeof i51.MatSlideToggleModule, typeof i52.MatTreeModule, typeof i53.MatNativeDateModule, typeof i54.MatAutocompleteModule, typeof i55.MatSidenavModule, typeof i56.MatIconModule, typeof i57.DragDropModule, typeof i58.MatButtonToggleModule, typeof i59.YouTubePlayerModule], [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe]>;
64
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CrocoHtmlModule, [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe], [typeof i27.CommonModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.NgSelectModule, typeof i30.MatBadgeModule, typeof i31.MatTableModule, typeof i32.MatExpansionModule, typeof i33.MatFormFieldModule, typeof i34.MatSnackBarModule, typeof i35.MatProgressBarModule, typeof i36.MatProgressSpinnerModule, typeof i37.MatTabsModule, typeof i38.MatMenuModule, typeof i39.MatCardModule, typeof i40.MatSelectModule, typeof i41.MatTooltipModule, typeof i42.MatCheckboxModule, typeof i43.MatChipsModule, typeof i44.MatListModule, typeof i45.MatButtonModule, typeof i46.MatInputModule, typeof i47.MatDialogModule, typeof i48.MatPaginatorModule, typeof i49.MatDatepickerModule, typeof i50.MatGridListModule, typeof i51.MatSlideToggleModule, typeof i52.MatTreeModule, typeof i53.MatNativeDateModule, typeof i54.MatAutocompleteModule, typeof i55.MatSidenavModule, typeof i56.MatIconModule, typeof i57.DragDropModule, typeof i58.MatButtonToggleModule, typeof i59.YouTubePlayerModule, typeof i60.VkVideoPlayerComponent], [typeof i1.UploadFilesBtnComponent, typeof i2.HtmlViewComponent, typeof i3.XmlTagTableViewComponent, typeof i4.XmlTagViewComponent, typeof i5.XmlTagRichTextViewComponent, typeof i6.XmlTagHtmlViewComponent, typeof i7.XmlTagTextViewComponent, typeof i8.XmlTagHeaderTextViewComponent, typeof i9.XmlTagHeaderInnerTextViewComponent, typeof i10.XmlTagExternalVideoComponent, typeof i11.HtmlRawViewComponent, typeof i12.FileImageTagViewComponent, typeof i2.HtmlViewComponent, typeof i13.MainEditorComponent, typeof i14.FileIdSelectComponent, typeof i15.TextEditorComponent, typeof i16.ExternalVideoBlockComponent, typeof i17.ImageEditorComponent, typeof i18.MainEditorBlockComponent, typeof i19.VisualEditorComponent, typeof i20.AddFilesBtnComponent, typeof i21.HtmlRawEditorComponent, typeof i22.RichTextToHtmlPipe, typeof i23.TagToSpanPipe, typeof i24.ToPreviewPipe, typeof i25.ToHtmlBodyTagsPipe, typeof i26.ToPreviewHtmlPipe]>;
64
65
  static ɵinj: i0.ɵɵInjectorDeclaration<CrocoHtmlModule>;
65
66
  }
@@ -0,0 +1,15 @@
1
+ export declare class Tags {
2
+ static readonly Text = "text";
3
+ static readonly H1 = "h1";
4
+ static readonly H2 = "h2";
5
+ static readonly H3 = "h3";
6
+ static readonly H4 = "h4";
7
+ static readonly H5 = "h5";
8
+ static readonly H6 = "h6";
9
+ static readonly HtmlRaw: string;
10
+ static readonly FileImage: string;
11
+ static readonly Table = "table";
12
+ static readonly RichText = "rich-text";
13
+ static readonly ExternalVideo: string;
14
+ static readonly UnsupportedTag = "unsupported-tag";
15
+ }
@@ -13,7 +13,16 @@ export interface RichTextData {
13
13
  children: Array<TextBlock | LineBreakBlock>;
14
14
  };
15
15
  }
16
+ export declare class TextTags {
17
+ static readonly text = "text";
18
+ static readonly h1 = "h1";
19
+ static readonly h2 = "h2";
20
+ static readonly h3 = "h3";
21
+ static readonly h4 = "h4";
22
+ static readonly h5 = "h5";
23
+ static readonly h6 = "h6";
24
+ static allTextTags: string[];
25
+ }
16
26
  export declare class TextMethods {
17
- static textTags: string[];
18
27
  static ExtractRichTextData(elem: HTMLElement): RichTextData;
19
28
  }
@@ -5,7 +5,12 @@ export declare class ExternalVideoTagDataConsts {
5
5
  }
6
6
  export declare class ExternalVideoSupportedTypes {
7
7
  static Youtube: string;
8
+ static VkVideo: string;
8
9
  }
10
+ export declare const ExternalVideoPlayers: {
11
+ type: string;
12
+ displayValue: string;
13
+ }[];
9
14
  export interface ExternalVideoTag {
10
15
  type: string;
11
16
  data: ExternalVideoTagData;
package/lib/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { VisualEditorComponent } from './components/editor/visual-editor/visual-
11
11
  import { AddFilesBtnComponent } from './components/add-files-btn/add-files-btn.component';
12
12
  import { XmlTagExternalVideoComponent } from "./components/xml-tags/xml-tag-external-video/xml-tag-external-video.component";
13
13
  import { HtmlRawEditorComponent } from "./components/editor/html-raw-editor/html-raw-editor.component";
14
- import { MatButtonModule } from '@angular/material/button';
14
+ import { MatNativeDateModule } from '@angular/material/core';
15
15
  import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
16
16
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
17
17
  import { HtmlRawViewComponent } from "./components/xml-tags/html-raw-view/html-raw-view.component";
@@ -19,4 +19,4 @@ export declare const EditorComponents: (typeof AddFilesBtnComponent | typeof Htm
19
19
  export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
20
20
  export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
21
21
  export declare const CrocoHtmlDeclarations: (typeof UploadFilesBtnComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof ImageEditorComponent | typeof VisualEditorComponent | typeof MainEditorComponent | typeof MainEditorBlockComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
22
- export declare const MaterialModules: (typeof MatButtonModule)[];
22
+ export declare const MaterialModules: (typeof MatNativeDateModule)[];
@@ -18,11 +18,22 @@ export interface FileRelationModel {
18
18
  relationCustomData: string;
19
19
  }
20
20
  export interface SearchFiles {
21
- fileName: string;
22
21
  q: string;
22
+ fileName: string;
23
+ applicationId: string;
24
+ fileTypes: Array<FileType>;
23
25
  count: number | null;
24
26
  offSet: number;
25
27
  }
28
+ export declare enum FileType {
29
+ Undefined = "Undefined",
30
+ Unknown = "Unknown",
31
+ Image = "Image",
32
+ Audio = "Audio",
33
+ Video = "Video",
34
+ Document = "Document",
35
+ Archive = "Archive"
36
+ }
26
37
  export interface GetListSearchModel {
27
38
  count: number | null;
28
39
  offSet: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",