@elite.framework/ng.core 1.0.30 → 1.0.32

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.
package/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import * as rxjs from 'rxjs';
9
9
  import { Observable } from 'rxjs';
10
10
  import { HttpParameterCodec, HttpParams, HttpHeaders, HttpClient, HttpRequest } from '@angular/common/http';
11
11
  import { MessageService, MenuItem, SortEvent } from 'primeng/api';
12
+ import { AttachmentDto as AttachmentDto$1 } from '@framework/ng.core';
12
13
  import * as i5$1 from '@ngx-translate/core';
13
14
  import { TranslateService } from '@ngx-translate/core';
14
15
  import { DynamicDialogRef, DynamicDialogConfig, DialogService } from 'primeng/dynamicdialog';
@@ -251,28 +252,23 @@ declare class FormlyFieldButton extends FieldType$1 {
251
252
  static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldButton, "formly-field-button", never, {}, {}, never, never, true, never>;
252
253
  }
253
254
 
254
- declare class AttachmentDto {
255
- binaryObjectId?: string;
256
- description?: string;
257
- tiMt?: string | any;
258
- id?: number;
259
- tiNa?: string;
260
- base64?: string;
261
- }
262
-
263
255
  declare class AttachmentTypeComponent extends FieldType$1 {
264
256
  private messageService;
257
+ defaultAcceptTypes: string;
265
258
  maxFileSize: number;
266
259
  url: string;
267
260
  tenantId: number;
268
261
  private env;
269
262
  constructor(messageService: MessageService);
270
- get attachments(): AttachmentDto[];
271
- set attachments(value: AttachmentDto[]);
263
+ get attachments(): AttachmentDto$1[];
264
+ set attachments(value: AttachmentDto$1[]);
265
+ get attachment(): AttachmentDto$1 | null;
266
+ set attachment(value: AttachmentDto$1 | null);
272
267
  onUpload(event: any): Promise<void>;
273
268
  remove(index: number): void;
274
269
  choose(event: any, callback: any): void;
275
270
  private fileToBase64;
271
+ private isFileTypeAllowed;
276
272
  getFileLabel(mime: string): string;
277
273
  getLabelClass(mime: string): string;
278
274
  getIconColor(mime: string): string;
@@ -875,6 +871,8 @@ interface GenericSelectorProps extends FormlyFieldProps$1 {
875
871
  serviceName: string;
876
872
  listEndpoint?: string | ((model: any) => string);
877
873
  labelField?: string;
874
+ loadDefaultField?: string;
875
+ loadDefaultValue?: string;
878
876
  valueField?: string;
879
877
  multiple?: boolean;
880
878
  loadDefault?: boolean;
@@ -1283,6 +1281,17 @@ declare class RtlLang implements OnChanges {
1283
1281
  static ɵdir: i0.ɵɵDirectiveDeclaration<RtlLang, "[appRtlLang]", never, { "lang": { "alias": "appRtlLang"; "required": false; }; }, {}, never, never, true, never>;
1284
1282
  }
1285
1283
 
1284
+ declare class AttachmentDto {
1285
+ id?: number;
1286
+ binaryObjectId?: string;
1287
+ description?: string;
1288
+ mimeType?: string | any;
1289
+ fileName?: string;
1290
+ base64?: string;
1291
+ caption?: string;
1292
+ link?: string;
1293
+ }
1294
+
1286
1295
  type FilterType = 'text' | 'number' | 'select' | 'date';
1287
1296
  interface FilterDef<T> {
1288
1297
  /** اسم الحقل في بياناتك */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elite.framework/ng.core",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0"