imm-element-ui 2.8.4 → 2.8.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.
@@ -1,12 +1,12 @@
1
1
  import { ElementRef, QueryList, WritableSignal } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, CodeMirrorProps } from './form-type';
3
+ import { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, ImagePreviewProps, CodeMirrorProps } from './form-type';
4
4
  import { FieldControl } from './field-control';
5
5
  import { FormComponent } from '../form/form.component';
6
6
  import * as i0 from "@angular/core";
7
7
  export interface FormField {
8
8
  key?: string;
9
- type?: 'inputtext' | 'inputnumber' | 'select' | 'treeselect' | 'datepicker' | 'autocomplete' | 'multiselect' | 'radio' | 'textarea' | 'upload' | 'image' | 'codemirror' | 'rowselector';
9
+ type?: 'inputtext' | 'inputnumber' | 'select' | 'treeselect' | 'datepicker' | 'autocomplete' | 'multiselect' | 'radio' | 'textarea' | 'upload' | 'image' | 'imagepreview' | 'codemirror' | 'rowselector';
10
10
  default?: any;
11
11
  id?: string;
12
12
  name?: string;
@@ -26,6 +26,7 @@ export interface FormField {
26
26
  textAreaProps?: TextAreaProps;
27
27
  uploadProps?: UploadProps;
28
28
  imageProps?: ImageProps;
29
+ imagePreviewProps?: ImagePreviewProps;
29
30
  codeMirrorProps?: CodeMirrorProps;
30
31
  rowSelectorProps?: any;
31
32
  hide?: boolean;
@@ -10,10 +10,11 @@ import { RadioProps } from '../form-type/radio.type';
10
10
  import { TextAreaProps } from '../form-type/textarea.type';
11
11
  import { UploadProps } from '../form-type/upload.type';
12
12
  import { ImageProps } from '../form-type/image.type';
13
+ import { ImagePreviewProps } from '../form-type/imagepreview.type';
13
14
  import { CodeMirrorProps } from '../form-type/codemirror.type';
14
15
  import { RowSelectorProps } from '../form-type/rowselector.type';
15
16
  import * as i0 from "@angular/core";
16
- export { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, CodeMirrorProps, RowSelectorProps, };
17
+ export { InputTextProps, InputNumberProps, SelectProps, TreeSelectProps, DatePickerProps, AutoCompleteProps, MultiSelectProps, RadioProps, TextAreaProps, UploadProps, ImageProps, ImagePreviewProps, CodeMirrorProps, RowSelectorProps, };
17
18
  export declare class FormTypeComponent {
18
19
  field: import("@angular/core").InputSignal<FormField | undefined>;
19
20
  constructor();
@@ -0,0 +1,24 @@
1
+ import { FormField, FieldProps } from '../form-field/form-field';
2
+ import * as i0 from "@angular/core";
3
+ export interface ImagePreviewProps extends FieldProps {
4
+ baseUrl?: string;
5
+ separator?: string;
6
+ width?: number | string;
7
+ height?: number | string;
8
+ imageStyle?: any;
9
+ alt?: string;
10
+ }
11
+ export declare class ImagePreviewComponent {
12
+ field: import("@angular/core").InputSignal<FormField | undefined>;
13
+ props: ImagePreviewProps;
14
+ private readonly defaultBaseUrl;
15
+ constructor();
16
+ imageList(): string[];
17
+ resolveSrc(image: string): string;
18
+ imageWidth(): string;
19
+ imageHeight(): string;
20
+ previewImageStyle(): any;
21
+ private normalizeSize;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImagePreviewComponent, "form-imagepreview", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
+ }
@@ -1 +1,2 @@
1
1
  export * from './codemirror.type';
2
+ export * from './imagepreview.type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imm-element-ui",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"