@ti-tecnologico-de-monterrey-oficial/ds-ng 1.5.1317-c → 1.5.1317-d

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.
@@ -0,0 +1,13 @@
1
+ import { FormControl, FormGroup } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export type IBmbTextEditorPromptType = 'link' | 'image';
4
+ export declare class BmbTextEditorPromptComponent {
5
+ type: import("@angular/core").InputSignal<IBmbTextEditorPromptType>;
6
+ formValues: import("@angular/core").OutputEmitterRef<Record<string, unknown>>;
7
+ cancelForm: import("@angular/core").OutputEmitterRef<void>;
8
+ formGroup: FormGroup;
9
+ getFormControl(name: string): FormControl;
10
+ handleFormGroupState(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BmbTextEditorPromptComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<BmbTextEditorPromptComponent, "app-bmb-text-editor-prompt", never, { "type": { "alias": "type"; "required": true; "isSignal": true; }; }, { "formValues": "formValues"; "cancelForm": "cancelForm"; }, never, never, true, never>;
13
+ }
@@ -1,9 +1,12 @@
1
1
  import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
4
+ import { BmbProjectionContentService } from '../../services/projection/projection.service';
5
+ import { IBmbTextEditorPromptType } from './bmb-text-editor-prompt/bmb-text-editor-prompt.component';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class BmbTextEditorComponent implements AfterViewInit, OnInit {
6
- private sanitizer;
8
+ private readonly sanitizer;
9
+ private readonly projectionContent;
7
10
  control: import("@angular/core").InputSignal<FormControl<any>>;
8
11
  editor: ElementRef<HTMLDivElement>;
9
12
  sanitizedContent: import("@angular/core").WritableSignal<SafeHtml>;
@@ -11,18 +14,21 @@ export declare class BmbTextEditorComponent implements AfterViewInit, OnInit {
11
14
  showTableDialog: boolean;
12
15
  tableRows: number;
13
16
  tableColumns: number;
17
+ userSelection: Range | null;
14
18
  detectAlignment(): void;
15
19
  applyAlignment(alignment: string): void;
16
- constructor(sanitizer: DomSanitizer);
20
+ constructor(sanitizer: DomSanitizer, projectionContent: BmbProjectionContentService);
17
21
  ngOnInit(): void;
18
22
  ngAfterViewInit(): void;
19
23
  handleChange(event: Event, type: string): void;
20
24
  execCommand(command: string, value?: string | null): void;
21
- insertLink(): void;
25
+ openPrompt(type: IBmbTextEditorPromptType, event: MouseEvent): void;
26
+ handleClosePrompt(values: Record<string, unknown>): void;
27
+ insertLink(values: Record<string, unknown>): void;
28
+ insertImage(values: Record<string, unknown>): void;
22
29
  updateContent(): void;
23
30
  clearFormatting(): void;
24
31
  getCurrentState(): any;
25
- insertImage(): void;
26
32
  isValidImageUrl(url: string): boolean;
27
33
  openTableDialog(): void;
28
34
  closeTableDialog(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ti-tecnologico-de-monterrey-oficial/ds-ng",
3
- "version": "1.5.1317-c",
3
+ "version": "1.5.1317-d",
4
4
  "description": "Design System oficial del Tecnológico de Monterrey - Descubre cómo nuestro Design System no solo da forma a la estética, sino que también impulsa la consistencia en cada rincón de nuestro diseño, proporcionando una base sólida para construir experiencias memorables y coherentes. Únete a nosotros en este viaje donde la creatividad, coherencia y elegancia se encuentran para dar vida a un mundo visualmente armonioso y funcionalmente fluido.",
5
5
  "keywords": [
6
6
  "angular",