@acorex/platform 19.2.10 → 19.2.12
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/common/index.d.ts +1 -0
- package/common/lib/file-type/file-type.provider.d.ts +14 -0
- package/common/lib/file-type/file-type.types.d.ts +44 -0
- package/common/lib/file-type/index.d.ts +2 -0
- package/common/lib/settings/settings.service.d.ts +1 -0
- package/fesm2022/acorex-platform-common.mjs +49 -4
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +7 -2
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +57 -22
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-BzLgFr7D.mjs → acorex-platform-themes-default-entity-master-list-view.component-DrHsaotw.mjs} +6 -18
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DrHsaotw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-search-popup.component-Blkpqvqa.mjs → acorex-platform-themes-default-search-popup.component-Ccouaqp4.mjs} +2 -2
- package/fesm2022/{acorex-platform-themes-default-search-popup.component-Blkpqvqa.mjs.map → acorex-platform-themes-default-search-popup.component-Ccouaqp4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-DYumYm5k.mjs → acorex-platform-themes-default-setting-page.component-CJoBVXTl.mjs} +2 -2
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-DYumYm5k.mjs.map → acorex-platform-themes-default-setting-page.component-CJoBVXTl.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +7 -7
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-2iWPztWW.mjs → acorex-platform-widgets-button-widget-designer.component-BWhqDxGH.mjs} +3 -3
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-BWhqDxGH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-BiCinIok.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-Ba_DdBAl.mjs} +2 -2
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-BiCinIok.mjs.map → acorex-platform-widgets-tabular-data-edit-popup.component-Ba_DdBAl.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-BaslkAPS.mjs → acorex-platform-widgets-tabular-data-view-popup.component-Ca6Cwzez.mjs} +2 -2
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-BaslkAPS.mjs.map → acorex-platform-widgets-tabular-data-view-popup.component-Ca6Cwzez.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +511 -669
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/index.d.ts +3 -2
- package/layout/builder/lib/builder/metadata/index.d.ts +1 -0
- package/layout/builder/lib/builder/metadata/metadata.types.d.ts +6 -0
- package/layout/builder/lib/builder/widget-column-renderer.d.ts +2 -1
- package/layout/builder/lib/builder/widget-map.d.ts +1 -0
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +2 -2
- package/layout/entity/lib/entity.viewmodel.d.ts +1 -0
- package/package.json +9 -9
- package/widgets/lib/widgets/advance/file/file-box-widget-view.component.d.ts +9 -7
- package/widgets/lib/widgets/advance/gallery/index.d.ts +0 -3
- package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget-edit.component.d.ts +22 -15
- package/widgets/lib/widgets/charts/bar-chart/bar-chart.type.d.ts +4 -12
- package/widgets/lib/widgets/charts/gauge-chart/gauge-chart-widget-edit.component.d.ts +29 -1
- package/widgets/lib/widgets/charts/gauge-chart/gauge-chart.type.d.ts +7 -3
- package/widgets/lib/widgets/charts/sticky-note/index.d.ts +2 -0
- package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget-edit.component.d.ts +9 -0
- package/widgets/lib/widgets/charts/sticky-note/sticky-note-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/editors/tabular-data/index.d.ts +3 -3
- package/widgets/lib/widgets/editors/tabular-data/{table-widget-column.component.d.ts → tabular-data-column.component.d.ts} +3 -3
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-filter.component.d.ts +6 -0
- package/widgets/lib/widgets/editors/tabular-data/tabular-data-widget-edit.component.d.ts +3 -3
- package/widgets/lib/widgets/editors/tabular-data/{table-widget-print.component.d.ts → tabular-data-widget-print.component.d.ts} +3 -3
- package/widgets/lib/widgets/index.d.ts +2 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BzLgFr7D.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-2iWPztWW.mjs.map +0 -1
- package/widgets/lib/widgets/advance/gallery/gallery-widget-column.component.d.ts +0 -6
- package/widgets/lib/widgets/advance/gallery/gallery-widget-edit.component.d.ts +0 -16
- package/widgets/lib/widgets/advance/gallery/gallery-widget-filter.component.d.ts +0 -6
- package/widgets/lib/widgets/editors/tabular-data/table-widget-filter.component.d.ts +0 -6
package/common/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './lib/file-storage';
|
|
|
8
8
|
export * from './lib/filters';
|
|
9
9
|
export * from './lib/layout';
|
|
10
10
|
export * from './lib/file-storage';
|
|
11
|
+
export * from './lib/file-type';
|
|
11
12
|
export * from './lib/search';
|
|
12
13
|
export * from './lib/settings';
|
|
13
14
|
export * from './lib/store';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { AXPFileType } from './file-type.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface AXPFileProvider {
|
|
5
|
+
items(): Promise<AXPFileType[]>;
|
|
6
|
+
}
|
|
7
|
+
export declare const AXP_FILE_TYPE_PROVIDER: InjectionToken<AXPFileProvider[]>;
|
|
8
|
+
export declare class AXPFileTypeProviderService implements AXPFileProvider {
|
|
9
|
+
private providers;
|
|
10
|
+
items(): Promise<AXPFileType[]>;
|
|
11
|
+
get(name: string): Promise<AXPFileType | undefined>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPFileTypeProviderService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPFileTypeProviderService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AXPMetaDataDefinition } from '@acorex/platform/layout/builder';
|
|
2
|
+
export interface AXPFileType {
|
|
3
|
+
/**
|
|
4
|
+
* The unique identifier for the file type.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The name unique of the file type.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The title of the file type.
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/**
|
|
15
|
+
* The description of the file type.
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
extensions: AXPFileExtension[];
|
|
19
|
+
/**
|
|
20
|
+
* The metadata associated with the file type.
|
|
21
|
+
*/
|
|
22
|
+
meta?: AXPMetaDataDefinition[];
|
|
23
|
+
}
|
|
24
|
+
export interface AXPFileExtension {
|
|
25
|
+
/**
|
|
26
|
+
* The unique identifier for the file extension.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The name unique of the file extension.
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* The title of the file extension.
|
|
34
|
+
*/
|
|
35
|
+
title: string;
|
|
36
|
+
/**
|
|
37
|
+
* The description of the file extension.
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The metadata associated with the file extension.
|
|
42
|
+
*/
|
|
43
|
+
meta?: AXPMetaDataDefinition[];
|
|
44
|
+
}
|
|
@@ -32,5 +32,6 @@ declare class ScopedSettingService {
|
|
|
32
32
|
defaultValues(): Promise<Record<string, unknown>>;
|
|
33
33
|
set<T = any>(key: string, value: T): Promise<void>;
|
|
34
34
|
set<T = any>(values: Record<string, T>): Promise<void>;
|
|
35
|
+
update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
|
|
35
36
|
}
|
|
36
37
|
export {};
|
|
@@ -2287,7 +2287,12 @@ class AXPSettingService {
|
|
|
2287
2287
|
this.onChanged = new Subject();
|
|
2288
2288
|
this.broadcastChannel = new BroadcastChannel('AXPSettingChannel'); // BroadcastChannel for sync
|
|
2289
2289
|
// Initialize scoped caches for dynamic scopes
|
|
2290
|
-
const staticScopes = [
|
|
2290
|
+
const staticScopes = [
|
|
2291
|
+
AXPSettingScope.Environment,
|
|
2292
|
+
AXPSettingScope.Global,
|
|
2293
|
+
AXPSettingScope.Tenant,
|
|
2294
|
+
AXPSettingScope.User,
|
|
2295
|
+
];
|
|
2291
2296
|
staticScopes.forEach((scope) => {
|
|
2292
2297
|
if (!this.scopedSettingsCache.has(scope)) {
|
|
2293
2298
|
this.scopedSettingsCache.set(scope, new Map());
|
|
@@ -2324,7 +2329,12 @@ class AXPSettingService {
|
|
|
2324
2329
|
if (this.scopedSettingsCache.size === 0) {
|
|
2325
2330
|
await this.load();
|
|
2326
2331
|
}
|
|
2327
|
-
const scopeOrder = [
|
|
2332
|
+
const scopeOrder = [
|
|
2333
|
+
AXPSettingScope.User,
|
|
2334
|
+
AXPSettingScope.Tenant,
|
|
2335
|
+
AXPSettingScope.Global,
|
|
2336
|
+
AXPSettingScope.Environment,
|
|
2337
|
+
];
|
|
2328
2338
|
for (const scope of scopeOrder) {
|
|
2329
2339
|
const scopeCache = this.scopedSettingsCache.get(scope);
|
|
2330
2340
|
if (scopeCache && scopeCache.has(key)) {
|
|
@@ -2339,7 +2349,12 @@ class AXPSettingService {
|
|
|
2339
2349
|
return get(defaults, key); // Fallback if no value is found
|
|
2340
2350
|
}
|
|
2341
2351
|
async defaultValues(scope) {
|
|
2342
|
-
let scopeOrder = [
|
|
2352
|
+
let scopeOrder = [
|
|
2353
|
+
AXPSettingScope.Environment,
|
|
2354
|
+
AXPSettingScope.Global,
|
|
2355
|
+
AXPSettingScope.Tenant,
|
|
2356
|
+
AXPSettingScope.User,
|
|
2357
|
+
].reverse();
|
|
2343
2358
|
const scopeIndex = scopeOrder.indexOf(scope);
|
|
2344
2359
|
if (scopeIndex === -1) {
|
|
2345
2360
|
throw new Error(`Invalid scope: ${scope}`);
|
|
@@ -2426,6 +2441,11 @@ class ScopedSettingService {
|
|
|
2426
2441
|
});
|
|
2427
2442
|
}
|
|
2428
2443
|
}
|
|
2444
|
+
async update(key, updateFn) {
|
|
2445
|
+
const currentValue = await this.get(key);
|
|
2446
|
+
const newValue = updateFn(currentValue);
|
|
2447
|
+
await this.set(key, newValue);
|
|
2448
|
+
}
|
|
2429
2449
|
}
|
|
2430
2450
|
|
|
2431
2451
|
//TODO Loading, Redirect, Drawer, Show toast
|
|
@@ -2779,6 +2799,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
2779
2799
|
}]
|
|
2780
2800
|
}] });
|
|
2781
2801
|
|
|
2802
|
+
const AXP_FILE_TYPE_PROVIDER = new InjectionToken('AXP_FILE_TYPE_PROVIDER');
|
|
2803
|
+
class AXPFileTypeProviderService {
|
|
2804
|
+
constructor() {
|
|
2805
|
+
this.providers = inject(AXP_FILE_TYPE_PROVIDER, { optional: true });
|
|
2806
|
+
}
|
|
2807
|
+
async items() {
|
|
2808
|
+
const items = [];
|
|
2809
|
+
if (Array.isArray(this.providers)) {
|
|
2810
|
+
for (const provider of this.providers) {
|
|
2811
|
+
items.push(...(await provider.items()));
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
return items;
|
|
2815
|
+
}
|
|
2816
|
+
async get(name) {
|
|
2817
|
+
return (await this.items()).find((c) => c.name == name);
|
|
2818
|
+
}
|
|
2819
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPFileTypeProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2820
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPFileTypeProviderService, providedIn: 'root' }); }
|
|
2821
|
+
}
|
|
2822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPFileTypeProviderService, decorators: [{
|
|
2823
|
+
type: Injectable,
|
|
2824
|
+
args: [{ providedIn: 'root' }]
|
|
2825
|
+
}] });
|
|
2826
|
+
|
|
2782
2827
|
const AXPSignOutAction = createAction('[SignOut] Action');
|
|
2783
2828
|
const AXPSignInAction = createAction('[SignIn] Action');
|
|
2784
2829
|
|
|
@@ -2786,5 +2831,5 @@ const AXPSignInAction = createAction('[SignIn] Action');
|
|
|
2786
2831
|
* Generated bundle index. Do not edit.
|
|
2787
2832
|
*/
|
|
2788
2833
|
|
|
2789
|
-
export { ALL_DEFAULT_OPERATORS, AXMEntityCrudService, AXMEntityCrudServiceImpl, AXMWorkflowErrorHandler, AXPAppStartUpProvider, AXPAppStartUpService, AXPClipBoardService, AXPCommonModule, AXPComponentLogoConfig, AXPComponentSlotDirective, AXPComponentSlotLoaderService, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPCustomOperatorService, AXPCustomOperatorServiceImpl, AXPDataGenerator, AXPDataProvider, AXPDataSeederService, AXPDexieEntityStorageService, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityQueryType, AXPEntityStorageService, AXPErrorHandlerRegistryService, AXPExportService, AXPExpressionEvaluatorService, AXPFileStorageService, AXPFileStorageStatus, AXPFilterOperatorMiddlewareService, AXPFilterOperatorMiddlewareServiceImpl, AXPFiltersProviderService, AXPFontIconLogoConfig, AXPFooterTextSlotComponent, AXPGlobalErrorHandler, AXPGridLayoutDirective, AXPImageUrlLogoConfig, AXPLogoComponent, AXPMenuProviderService, AXPMenuSearchDefinitionProvider, AXPMenuSearchProvider, AXPMenuService, AXPNavBarSlotComponent, AXPNavigateWorkflow, AXPPlatformDefaultConfigs, AXPRedirectEvent, AXPRefreshEvent, AXPRegionalService, AXPRelationshipCardinality, AXPRelationshipKind, AXPSearchCommandProvider, AXPSearchDefinitionActionBuilder, AXPSearchDefinitionBuilder, AXPSearchDefinitionProviderContext, AXPSearchDefinitionProviderService, AXPSearchService, AXPSettingDefaultValueProvider, AXPSettingDefinitionGroupBuilder, AXPSettingDefinitionProviderContext, AXPSettingDefinitionProviderService, AXPSettingDefinitionSectionBuilder, AXPSettingScope, AXPSettingService, AXPSignInAction, AXPSignOutAction, AXPStickyDirective, AXPTextLogoConfig, AXPToastAction, AXPWorkflowNavigateAction, AXPWorkflowRouterNavigateAction, AXP_APP_VERSION_PROVIDER, AXP_DATA_SEEDER_TOKEN, AXP_MENU_PROVIDER, AXP_PLATFORM_CONFIG_TOKEN, AXP_ROOT_CONFIG_TOKEN, AXP_SEARCH_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SETTING_VALUE_PROVIDER, BETWEEN_OPER, BOOLEAN_OPERATORS, CONTAINS_OPER, DATE_OPERATORS, ENDS_WITH_OPER, ENVIRONMENT, EQ_OPER, GTE_OPER, GT_OPER, IS_EMPTY_OPER, IS_NOT_EMPTY_OPER, LTE_OPER, LT_OPER, NOT_CONTAINS_OPER, NOT_EQ_OPER, NUMBER_OPERATORS, STARTS_WITH_OPER, STRING_OPERATORS, configPlatform, createAllQueryView, createQueryView, getEntityInfo, resolveActionLook };
|
|
2834
|
+
export { ALL_DEFAULT_OPERATORS, AXMEntityCrudService, AXMEntityCrudServiceImpl, AXMWorkflowErrorHandler, AXPAppStartUpProvider, AXPAppStartUpService, AXPClipBoardService, AXPCommonModule, AXPComponentLogoConfig, AXPComponentSlotDirective, AXPComponentSlotLoaderService, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPCustomOperatorService, AXPCustomOperatorServiceImpl, AXPDataGenerator, AXPDataProvider, AXPDataSeederService, AXPDexieEntityStorageService, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityQueryType, AXPEntityStorageService, AXPErrorHandlerRegistryService, AXPExportService, AXPExpressionEvaluatorService, AXPFileStorageService, AXPFileStorageStatus, AXPFileTypeProviderService, AXPFilterOperatorMiddlewareService, AXPFilterOperatorMiddlewareServiceImpl, AXPFiltersProviderService, AXPFontIconLogoConfig, AXPFooterTextSlotComponent, AXPGlobalErrorHandler, AXPGridLayoutDirective, AXPImageUrlLogoConfig, AXPLogoComponent, AXPMenuProviderService, AXPMenuSearchDefinitionProvider, AXPMenuSearchProvider, AXPMenuService, AXPNavBarSlotComponent, AXPNavigateWorkflow, AXPPlatformDefaultConfigs, AXPRedirectEvent, AXPRefreshEvent, AXPRegionalService, AXPRelationshipCardinality, AXPRelationshipKind, AXPSearchCommandProvider, AXPSearchDefinitionActionBuilder, AXPSearchDefinitionBuilder, AXPSearchDefinitionProviderContext, AXPSearchDefinitionProviderService, AXPSearchService, AXPSettingDefaultValueProvider, AXPSettingDefinitionGroupBuilder, AXPSettingDefinitionProviderContext, AXPSettingDefinitionProviderService, AXPSettingDefinitionSectionBuilder, AXPSettingScope, AXPSettingService, AXPSignInAction, AXPSignOutAction, AXPStickyDirective, AXPTextLogoConfig, AXPToastAction, AXPWorkflowNavigateAction, AXPWorkflowRouterNavigateAction, AXP_APP_VERSION_PROVIDER, AXP_DATA_SEEDER_TOKEN, AXP_FILE_TYPE_PROVIDER, AXP_MENU_PROVIDER, AXP_PLATFORM_CONFIG_TOKEN, AXP_ROOT_CONFIG_TOKEN, AXP_SEARCH_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SETTING_VALUE_PROVIDER, BETWEEN_OPER, BOOLEAN_OPERATORS, CONTAINS_OPER, DATE_OPERATORS, ENDS_WITH_OPER, ENVIRONMENT, EQ_OPER, GTE_OPER, GT_OPER, IS_EMPTY_OPER, IS_NOT_EMPTY_OPER, LTE_OPER, LT_OPER, NOT_CONTAINS_OPER, NOT_EQ_OPER, NUMBER_OPERATORS, STARTS_WITH_OPER, STRING_OPERATORS, configPlatform, createAllQueryView, createQueryView, getEntityInfo, resolveActionLook };
|
|
2790
2835
|
//# sourceMappingURL=acorex-platform-common.mjs.map
|