ngx-axis-appforge 1.0.2 → 1.0.3
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/fesm2022/ngx-axis-appforge-core.mjs +28 -5
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-providers.mjs +6 -2
- package/fesm2022/ngx-axis-appforge-providers.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-axis-appforge-core.d.ts +2 -1
- package/types/ngx-axis-appforge-providers.d.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, inject } from '@angular/core';
|
|
2
|
-
import { AXIS_COMPONENTS_TOKEN, AXIS_SCRIPTS_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, ComponentsLoader, AXIS_COMPONENTS_LOADER_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN } from 'ngx-axis-appforge/core';
|
|
2
|
+
import { AXIS_COMPONENTS_TOKEN, AXIS_SCRIPTS_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, ComponentsLoader, AXIS_COMPONENTS_LOADER_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN, AXIS_ROUTE_STATE_COMPONENT_TOKEN } from 'ngx-axis-appforge/core';
|
|
3
3
|
import { provideEchartsCore } from 'ngx-echarts';
|
|
4
4
|
|
|
5
5
|
function provideAxisAppforge(config) {
|
|
@@ -42,7 +42,11 @@ function provideAxisAppforge(config) {
|
|
|
42
42
|
{
|
|
43
43
|
provide: AXIS_EVENT_HANDLER_DESCS_TOKEN,
|
|
44
44
|
useValue: config?.eventHandlerDescs,
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
provide: AXIS_ROUTE_STATE_COMPONENT_TOKEN,
|
|
48
|
+
useValue: config?.routeStateComponent,
|
|
49
|
+
},
|
|
46
50
|
];
|
|
47
51
|
}
|
|
48
52
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-providers.mjs","sources":["../../../providers/providers.ts","../../../providers/ngx-axis-appforge-providers.ts"],"sourcesContent":["import { inject, Provider, Type } from \"@angular/core\";\nimport { AXIS_COMPONENTS_LOADER_TOKEN, AXIS_COMPONENTS_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_SCRIPTS_TOKEN, Cmplib, ComponentsLoader, EventHandlerDescGroup, EventsHandler } from \"ngx-axis-appforge/core\";\nimport { provideEchartsCore } from 'ngx-echarts';\nexport function provideAxisAppforge(config?: { cmplibs?: Cmplib[], scripts?: { [name: string]: string }, eventHandlers?: (EventsHandler | Type<EventsHandler>)[], eventHandlerDescs?: EventHandlerDescGroup[] }): Provider {\n return [\n provideEchartsCore({ echarts: () => import('echarts'), }),\n {\n provide: AXIS_COMPONENTS_TOKEN,\n useValue: config?.cmplibs?.map(lib => lib.cmpMap)?.reduce((a, b) => ({ ...a, ...b }), {})\n },\n {\n provide: AXIS_SCRIPTS_TOKEN,\n useValue: config?.scripts,\n },\n {\n provide: AXIS_DESIGN_CMPLIBS_TOKEN,\n useValue: config?.cmplibs?.map(lib => ({ libName: lib.name, lib: lib.examples })),\n },\n {\n provide: AXIS_COMPONENTS_LOADER_TOKEN,\n useClass: ComponentsLoader,\n },\n {\n provide: AXIS_EVENT_HANDLERS_TOKEN,\n useFactory: () => {\n let eventHandlers: EventsHandler[] | undefined;\n if (config?.eventHandlers) {\n eventHandlers = [];\n for (let e of config.eventHandlers) {\n if (e instanceof Type) {\n eventHandlers.push(inject(e));\n } else {\n eventHandlers.push(e);\n }\n }\n }\n return eventHandlers;\n },\n\n },\n {\n provide: AXIS_EVENT_HANDLER_DESCS_TOKEN,\n useValue: config?.eventHandlerDescs,\n }\n ]\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-providers.mjs","sources":["../../../providers/providers.ts","../../../providers/ngx-axis-appforge-providers.ts"],"sourcesContent":["import { inject, Provider, Type } from \"@angular/core\";\nimport { ControlValueAccessor } from \"@angular/forms\";\nimport { AXIS_COMPONENTS_LOADER_TOKEN, AXIS_COMPONENTS_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_ROUTE_STATE_COMPONENT_TOKEN, AXIS_SCRIPTS_TOKEN, Cmplib, ComponentsLoader, EventHandlerDescGroup, EventsHandler } from \"ngx-axis-appforge/core\";\nimport { provideEchartsCore } from 'ngx-echarts';\nexport function provideAxisAppforge(config?: { cmplibs?: Cmplib[], scripts?: { [name: string]: string }, eventHandlers?: (EventsHandler | Type<EventsHandler>)[], eventHandlerDescs?: EventHandlerDescGroup[], routeStateComponent?: Type<ControlValueAccessor> }): Provider {\n return [\n provideEchartsCore({ echarts: () => import('echarts'), }),\n {\n provide: AXIS_COMPONENTS_TOKEN,\n useValue: config?.cmplibs?.map(lib => lib.cmpMap)?.reduce((a, b) => ({ ...a, ...b }), {})\n },\n {\n provide: AXIS_SCRIPTS_TOKEN,\n useValue: config?.scripts,\n },\n {\n provide: AXIS_DESIGN_CMPLIBS_TOKEN,\n useValue: config?.cmplibs?.map(lib => ({ libName: lib.name, lib: lib.examples })),\n },\n {\n provide: AXIS_COMPONENTS_LOADER_TOKEN,\n useClass: ComponentsLoader,\n },\n {\n provide: AXIS_EVENT_HANDLERS_TOKEN,\n useFactory: () => {\n let eventHandlers: EventsHandler[] | undefined;\n if (config?.eventHandlers) {\n eventHandlers = [];\n for (let e of config.eventHandlers) {\n if (e instanceof Type) {\n eventHandlers.push(inject(e));\n } else {\n eventHandlers.push(e);\n }\n }\n }\n return eventHandlers;\n },\n\n },\n {\n provide: AXIS_EVENT_HANDLER_DESCS_TOKEN,\n useValue: config?.eventHandlerDescs,\n },\n {\n provide: AXIS_ROUTE_STATE_COMPONENT_TOKEN,\n useValue: config?.routeStateComponent,\n },\n ]\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAIM,SAAU,mBAAmB,CAAC,MAA6N,EAAA;IAC7P,OAAO;AACH,QAAA,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,OAAO,SAAS,CAAC,GAAG,CAAC;AACzD,QAAA;AACI,YAAA,OAAO,EAAE,qBAAqB;AAC9B,YAAA,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC3F,SAAA;AACD,QAAA;AACI,YAAA,OAAO,EAAE,kBAAkB;YAC3B,QAAQ,EAAE,MAAM,EAAE,OAAO;AAC5B,SAAA;AACD,QAAA;AACI,YAAA,OAAO,EAAE,yBAAyB;YAClC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;AACpF,SAAA;AACD,QAAA;AACI,YAAA,OAAO,EAAE,4BAA4B;AACrC,YAAA,QAAQ,EAAE,gBAAgB;AAC7B,SAAA;AACD,QAAA;AACI,YAAA,OAAO,EAAE,yBAAyB;YAClC,UAAU,EAAE,MAAK;AACb,gBAAA,IAAI,aAA0C;AAC9C,gBAAA,IAAI,MAAM,EAAE,aAAa,EAAE;oBACvB,aAAa,GAAG,EAAE;AAClB,oBAAA,KAAK,IAAI,CAAC,IAAI,MAAM,CAAC,aAAa,EAAE;AAChC,wBAAA,IAAI,CAAC,YAAY,IAAI,EAAE;4BACnB,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;wBACjC;6BAAO;AACH,4BAAA,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;wBACzB;oBACJ;gBACJ;AACA,gBAAA,OAAO,aAAa;YACxB,CAAC;AAEJ,SAAA;AACD,QAAA;AACI,YAAA,OAAO,EAAE,8BAA8B;YACvC,QAAQ,EAAE,MAAM,EAAE,iBAAiB;AACtC,SAAA;AACD,QAAA;AACI,YAAA,OAAO,EAAE,gCAAgC;YACzC,QAAQ,EAAE,MAAM,EAAE,mBAAmB;AACxC,SAAA;KACJ;AACL;;AClDA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -533,6 +533,7 @@ declare const AXIS_CURRENT_USER_PERMISSIONS_TOKEN: InjectionToken<string[]>;
|
|
|
533
533
|
declare const AXIS_HTTP_CONTEXT_DATA_TOKEN: InjectionToken<{
|
|
534
534
|
[key: string]: any;
|
|
535
535
|
} | BehaviorSubject<any>>;
|
|
536
|
+
declare const AXIS_ROUTE_STATE_COMPONENT_TOKEN: InjectionToken<Type<ControlValueAccessor>>;
|
|
536
537
|
declare const AXIS_FORM_REGISTE_CONTROL_TOKEN: InjectionToken<(opt: RegisteFormControlOptions) => void>;
|
|
537
538
|
declare const AXIS_FORM_UNREGISTE_CONTROL_TOKEN: InjectionToken<(opt: string) => void>;
|
|
538
539
|
declare const AXIS_FILE_BASE_URL_TOKEN: InjectionToken<string | BehaviorSubject<string>>;
|
|
@@ -857,5 +858,5 @@ declare function fn(fnBody: string, argsObj: any, ignoreUndefined?: boolean, pri
|
|
|
857
858
|
|
|
858
859
|
declare function sendApi(opt: ApiOptions, http: HttpClient): Observable<any>;
|
|
859
860
|
|
|
860
|
-
export { AXIS_COMPONENTS_LOADER_TOKEN, AXIS_COMPONENTS_TOKEN, AXIS_CURRENT_USER_PERMISSIONS_TOKEN, AXIS_DESIGN_ALL_PERMISSIONS_TOKEN, AXIS_DESIGN_CAN_LOOP_TOKEN, AXIS_DESIGN_CHOOSE_COMPONENT_FUNC_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_GETTER_TOKEN, AXIS_DESIGN_OPTIONS_NODE_FOR_MENU, AXIS_DESIGN_SCOPE_INFOS_GETTER_TOKEN, AXIS_DESIGN_SCOPE_INFOS_REFRESH_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN, AXIS_FILE_BASE_URL_TOKEN, AXIS_FORM_REGISTE_CONTROL_TOKEN, AXIS_FORM_UNREGISTE_CONTROL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_HTTP_CONTEXT_TOKEN, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, AXIS_SCRIPTS_TOKEN, Base, BaseDesignSetting, BaseMenu, BaseOptions, CommonMenu, ComponentsLoader, DataHandler, DataOptions, DesignBuilder, DynamicDirective, ElementNode, FormValidators, FunField, FunFieldBase, FunFieldValueBase, HowLongPipe, InputTrigger, InputValidator, OptionsNode, ScopeDirective, SimpleMenu, ValueAccess, ValueAccessOptions, ValueDesignSetting, assignDefaultField, baseFbConfig, baseFunField, buildValidators, codeName, copy, deepMerge, fn, isEquals, listSort, nameCode, obj2Arr, objDiff, rebuildObject, recursionArray, recursionObject, sendApi, trackByFn, updateAndValidAll, valueFbConfig, valueFunField };
|
|
861
|
+
export { AXIS_COMPONENTS_LOADER_TOKEN, AXIS_COMPONENTS_TOKEN, AXIS_CURRENT_USER_PERMISSIONS_TOKEN, AXIS_DESIGN_ALL_PERMISSIONS_TOKEN, AXIS_DESIGN_CAN_LOOP_TOKEN, AXIS_DESIGN_CHOOSE_COMPONENT_FUNC_TOKEN, AXIS_DESIGN_CMPLIBS_TOKEN, AXIS_DESIGN_COMPONENT_INFO_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_FOR_SETTING_TOKEN, AXIS_DESIGN_COMPONENT_REF_GETTER_TOKEN, AXIS_DESIGN_OPTIONS_NODE_FOR_MENU, AXIS_DESIGN_SCOPE_INFOS_GETTER_TOKEN, AXIS_DESIGN_SCOPE_INFOS_REFRESH_TOKEN, AXIS_EVENT_HANDLERS_TOKEN, AXIS_EVENT_HANDLER_DESCS_TOKEN, AXIS_FILE_BASE_URL_TOKEN, AXIS_FORM_REGISTE_CONTROL_TOKEN, AXIS_FORM_UNREGISTE_CONTROL_TOKEN, AXIS_HTTP_CONTEXT_DATA_TOKEN, AXIS_HTTP_CONTEXT_TOKEN, AXIS_INJECT_DATA_TOKEN, AXIS_INJECT_FUNC_TOKEN, AXIS_ROUTE_STATE_COMPONENT_TOKEN, AXIS_SCRIPTS_TOKEN, Base, BaseDesignSetting, BaseMenu, BaseOptions, CommonMenu, ComponentsLoader, DataHandler, DataOptions, DesignBuilder, DynamicDirective, ElementNode, FormValidators, FunField, FunFieldBase, FunFieldValueBase, HowLongPipe, InputTrigger, InputValidator, OptionsNode, ScopeDirective, SimpleMenu, ValueAccess, ValueAccessOptions, ValueDesignSetting, assignDefaultField, baseFbConfig, baseFunField, buildValidators, codeName, copy, deepMerge, fn, isEquals, listSort, nameCode, obj2Arr, objDiff, rebuildObject, recursionArray, recursionObject, sendApi, trackByFn, updateAndValidAll, valueFbConfig, valueFunField };
|
|
861
862
|
export type { Cmplib, DataSourceOptions, DesignBindElementsResult, DesignBuildResult, DesignConfig, DynamicFnOptions, EventDesc, EventHandlerDesc, EventHandlerDescGroup, EventHandlerOptions, EventsHandler, Example, ExampleBuilder, ExampleDesc, ExampleGroup, FunFieldOptions, FunFieldValue, MyErrorsOptions, MyValidationErrors, NextInfo, OptionsChangeEvent, RegisteFormControlOptions, RegisteValueAccessOptions, ScopeInfo, TriggeEventsOptions };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type, Provider } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
3
|
import { Cmplib, EventsHandler, EventHandlerDescGroup } from 'ngx-axis-appforge/core';
|
|
3
4
|
|
|
4
5
|
declare function provideAxisAppforge(config?: {
|
|
@@ -8,6 +9,7 @@ declare function provideAxisAppforge(config?: {
|
|
|
8
9
|
};
|
|
9
10
|
eventHandlers?: (EventsHandler | Type<EventsHandler>)[];
|
|
10
11
|
eventHandlerDescs?: EventHandlerDescGroup[];
|
|
12
|
+
routeStateComponent?: Type<ControlValueAccessor>;
|
|
11
13
|
}): Provider;
|
|
12
14
|
|
|
13
15
|
export { provideAxisAppforge };
|