@rxap/form-system 13.1.0 → 13.2.0

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.
@@ -0,0 +1,26 @@
1
+ import { IdOrInstanceOrToken } from '@rxap/definition';
2
+ import { BaseDataSource, DataSourceLoader, BaseDataSourceMetadata, BaseDataSourceViewer } from '@rxap/data-source';
3
+ import { ControlOptions } from '@rxap/utilities';
4
+ import { UseDataSourceSettings } from '../decorators/use-data-source';
5
+ import { InputSelectOptionsSettings } from '../directives/input-select-options.directive';
6
+ import { ExtractFormDefinitionMixin } from './extract-form-definition.mixin';
7
+ import { ExtractDataSourcesMixin } from './extract-data-sources.mixin';
8
+ import { ExtractControlMixin } from './extract-control.mixin';
9
+ import { Injector } from '@angular/core';
10
+ import { AbstractControl } from '@angular/forms';
11
+ export interface UseOptionsDataSourceSettings<Source> extends UseDataSourceSettings<Source, ControlOptions | Record<string, any>> {
12
+ }
13
+ export declare const DATA_SOURCE_NAME = "options";
14
+ export declare function ComposeOptionsTransformers(...fnc: Array<(value: any) => any>): (value: any) => any;
15
+ export declare function UseOptionsDataSource<Source>(dataSource: IdOrInstanceOrToken<BaseDataSource<Source>>, settings?: InputSelectOptionsSettings<Source>): (target: any, propertyKey: string) => any;
16
+ export interface ExtractOptionsDataSourceMixin extends ExtractFormDefinitionMixin, ExtractDataSourcesMixin, ExtractControlMixin {
17
+ }
18
+ export declare class ExtractOptionsDataSourceMixin {
19
+ protected settings?: UseOptionsDataSourceSettings<any>;
20
+ protected readonly dataSourceLoader: DataSourceLoader;
21
+ metadata?: BaseDataSourceMetadata;
22
+ viewer?: BaseDataSourceViewer;
23
+ protected dataSource?: BaseDataSource<ControlOptions | Record<string, any>>;
24
+ protected readonly injector: Injector;
25
+ protected extractOptionsDatasource(control?: AbstractControl): BaseDataSource<ControlOptions | Record<string, any>>;
26
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/form-system",
3
- "version": "13.1.0",
3
+ "version": "13.2.0",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/form-system",