@acorex/platform 20.7.3 → 20.7.4

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.
@@ -6,7 +6,7 @@ import { AXBasePageComponent } from '@acorex/components/page';
6
6
  import * as _acorex_platform_core from '@acorex/platform/core';
7
7
  import { AXPDeviceService, AXPValidationRule, AXPTag, AXPFileListItem, AXPExpressionEvaluatorService, AXPExecuteCommandResult, AXPActionMenuItem } from '@acorex/platform/core';
8
8
  import { AXStyleColorType, AXClickEvent, AXStyleLookType, AXDataSource, AXValueChangedEvent, AXDataSourceFilterOption, AXDirection, AXButtonClickEvent } from '@acorex/cdk/common';
9
- import { AXPClipBoardService, AXPLanguage, AXPStatusDefinition, AXPStatusTransition, AXPStatusProvider } from '@acorex/platform/common';
9
+ import { AXPClipBoardService, AXPLanguage, AXCFileUploaderAction, AXCFileUploaderCapabilities, AXPStatusDefinition, AXPStatusTransition, AXPStatusProvider } from '@acorex/platform/common';
10
10
  import { AXDropListDroppedEvent } from '@acorex/cdk/drag-drop';
11
11
  import { AXPDragDropListItem } from '@acorex/platform/layout/components';
12
12
  import { AXValidationService } from '@acorex/core/validation';
@@ -17,7 +17,6 @@ import { AXCodeEditorDefaultLanguage } from '@acorex/components/code-editor';
17
17
  import { AXRowCommandItemClickEvent, AXDataTableComponent, AXRowCommandItem } from '@acorex/components/data-table';
18
18
  import { AXPCommand } from '@acorex/platform/runtime';
19
19
  import { AXFileService } from '@acorex/core/file';
20
- import { AXUploaderService } from '@acorex/cdk/uploader';
21
20
  import { AXMediaViewerData } from '@acorex/components/media-viewer';
22
21
  import * as _acorex_components_map from '@acorex/components/map';
23
22
  import { AXMapData, AXMapPolygon, AXPoiMarker } from '@acorex/components/map';
@@ -2263,20 +2262,10 @@ declare class AXPFileUploaderWidgetColumnComponent extends AXPColumnWidgetCompon
2263
2262
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPFileUploaderWidgetColumnComponent, "axp-file-uploader-widget-column", never, { "rawValue": { "alias": "rawValue"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; }, {}, never, never, true, never>;
2264
2263
  }
2265
2264
 
2266
- interface FileUploaderActionContext {
2267
- host: AXPFileUploaderWidgetEditComponent;
2268
- }
2269
- interface FileUploaderAction {
2270
- plugin: string;
2271
- global?: boolean;
2272
- text?: string;
2273
- textKey?: string;
2274
- icon?: string;
2275
- run: (ctx: FileUploaderActionContext) => void | Promise<void>;
2276
- }
2277
2265
  declare class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent<AXPFileListItem[] | undefined> {
2278
2266
  protected readonly fileService: AXFileService;
2279
2267
  private readonly hooks;
2268
+ private readonly fileActionsService;
2280
2269
  protected multiple: _angular_core.Signal<boolean>;
2281
2270
  private readonly acceptOverride;
2282
2271
  protected accept: _angular_core.Signal<string>;
@@ -2291,11 +2280,10 @@ declare class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent
2291
2280
  protected maxFileSize: _angular_core.Signal<number>;
2292
2281
  protected isDragOver: _angular_core.WritableSignal<boolean>;
2293
2282
  private readonly innerActions;
2294
- protected fileActions: _angular_core.Signal<FileUploaderAction[]>;
2283
+ protected readonly fileActions: _angular_core.Signal<AXCFileUploaderAction[]>;
2295
2284
  ngOnInit(): void;
2296
2285
  private loadActions;
2297
2286
  private configureFromHooks;
2298
- protected uploadFromComputer(): Promise<void>;
2299
2287
  /**
2300
2288
  * Process files from various sources (file picker, drag-drop, etc.)
2301
2289
  */
@@ -2312,7 +2300,7 @@ declare class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent
2312
2300
  */
2313
2301
  handleFileRename(file: AXPFileListItem): void;
2314
2302
  clear(): void;
2315
- private readonly capabilities;
2303
+ protected readonly capabilities: AXCFileUploaderCapabilities;
2316
2304
  onFileChange(event: {
2317
2305
  event: Event;
2318
2306
  files: File[];
@@ -2388,7 +2376,7 @@ declare class AXPFileUploaderWidgetService {
2388
2376
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPFileUploaderWidgetService>;
2389
2377
  }
2390
2378
 
2391
- declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<AXMediaViewerData[]> {
2379
+ declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<AXPFileListItem[]> {
2392
2380
  protected thumbnail: _angular_core.Signal<boolean>;
2393
2381
  protected height: _angular_core.Signal<string>;
2394
2382
  protected header: _angular_core.Signal<boolean>;
@@ -2396,9 +2384,37 @@ declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<AXMe
2396
2384
  protected fullScreenButton: _angular_core.Signal<boolean>;
2397
2385
  protected allowUploadTypes: _angular_core.Signal<string[]>;
2398
2386
  protected allowUpload: _angular_core.Signal<boolean>;
2399
- uploadService: AXUploaderService;
2400
- uploaderService: AXPFileUploaderWidgetService;
2401
- upload(): Promise<void>;
2387
+ protected plugins: _angular_core.Signal<{
2388
+ name: string;
2389
+ options?: unknown;
2390
+ }[]>;
2391
+ protected excludePlugins: _angular_core.Signal<string[]>;
2392
+ protected readonly fileService: AXFileService;
2393
+ private readonly hooks;
2394
+ private readonly fileActionsService;
2395
+ private gallery;
2396
+ /**
2397
+ * Convert AXPFileListItem[] to AXMediaViewerData[] for display in media viewer
2398
+ */
2399
+ protected readonly mediaViewerData: _angular_core.Signal<AXMediaViewerData[]>;
2400
+ private readonly innerActions;
2401
+ protected readonly fileActions: _angular_core.Signal<AXCFileUploaderAction[]>;
2402
+ ngOnInit(): void;
2403
+ private loadActions;
2404
+ /**
2405
+ * Convert AXPFileListItem to AXMediaViewerData for display in media viewer
2406
+ */
2407
+ private fileItemToMediaViewerData;
2408
+ protected readonly capabilities: AXCFileUploaderCapabilities;
2409
+ /**
2410
+ * Process files from various sources (file picker, drag-drop, etc.)
2411
+ * This method is called by drag-and-drop handler
2412
+ */
2413
+ private processFiles;
2414
+ onFileChange(event: {
2415
+ event: Event;
2416
+ files: File[];
2417
+ }): void;
2402
2418
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPGalleryWidgetEditComponent, never>;
2403
2419
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPGalleryWidgetEditComponent, "axp-gallery-widget-edit", never, {}, {}, never, never, true, never>;
2404
2420
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/platform",
3
- "version": "20.7.3",
3
+ "version": "20.7.4",
4
4
  "peerDependencies": {
5
5
  "@acorex/cdk": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
6
6
  "@acorex/core": "^19.0.0 || ^20.0.0 || ^21.0.0-next.0",
@@ -27,10 +27,6 @@
27
27
  "types": "./index.d.ts",
28
28
  "default": "./fesm2022/acorex-platform.mjs"
29
29
  },
30
- "./auth": {
31
- "types": "./auth/index.d.ts",
32
- "default": "./fesm2022/acorex-platform-auth.mjs"
33
- },
34
30
  "./common": {
35
31
  "types": "./common/index.d.ts",
36
32
  "default": "./fesm2022/acorex-platform-common.mjs"
@@ -47,6 +43,10 @@
47
43
  "types": "./native/index.d.ts",
48
44
  "default": "./fesm2022/acorex-platform-native.mjs"
49
45
  },
46
+ "./auth": {
47
+ "types": "./auth/index.d.ts",
48
+ "default": "./fesm2022/acorex-platform-auth.mjs"
49
+ },
50
50
  "./runtime": {
51
51
  "types": "./runtime/index.d.ts",
52
52
  "default": "./fesm2022/acorex-platform-runtime.mjs"