@wemake4u/form-player-se 1.0.44 → 1.0.45

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.
@@ -1,2 +1,2 @@
1
- import { Control, ControlContext } from '../controls/control';
1
+ import { Control, ControlContext } from './control';
2
2
  export declare function createControl(context: ControlContext): Control;
@@ -4,11 +4,13 @@ import * as i0 from "@angular/core";
4
4
  export declare class TabControlDirective implements OnInit {
5
5
  private sirioTab;
6
6
  private destroyRef;
7
+ component: any;
7
8
  constructor(sirioTab: SirioTabComponent, destroyRef: DestroyRef);
8
9
  ngOnInit(): void;
9
10
  private HandleIndexChange;
10
11
  private validateIndex;
12
+ private disableAutoFocus;
11
13
  private setFocus;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TabControlDirective, [{ host: true; }, null]>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<TabControlDirective, "[tabControl]", never, {}, {}, never, never, true, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TabControlDirective, "[tabControl]", never, { "component": { "alias": "register"; "required": false; }; }, {}, never, never, true, never>;
14
16
  }
@@ -46,6 +46,7 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
46
46
  recursionLevel: number;
47
47
  identity: string;
48
48
  identityIndex?: number;
49
+ disableAutoFocus?: boolean;
49
50
  Texts: {
50
51
  i18n: {
51
52
  it: {
@@ -474,5 +475,5 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
474
475
  private markForAutoFocus;
475
476
  private requireAutoFocus;
476
477
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
477
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; "identity": { "alias": "identity"; "required": false; }; "identityIndex": { "alias": "identityIndex"; "required": false; }; }, {}, never, never, true, never>;
478
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; "identity": { "alias": "identity"; "required": false; }; "identityIndex": { "alias": "identityIndex"; "required": false; }; "disableAutoFocus": { "alias": "disableAutoFocus"; "required": false; }; }, {}, never, never, true, never>;
478
479
  }
@@ -431,6 +431,9 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
431
431
  private isInactive;
432
432
  private clearControls;
433
433
  private clearFormArrays;
434
+ private getCurrentForm;
435
+ private disableAutoFocus;
436
+ private autoFocus;
434
437
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
435
438
  static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "strict": { "alias": "strict"; "required": false; }; "showNav": { "alias": "showNav"; "required": false; }; "showNavButton": { "alias": "showNavButton"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "showFormTitle": { "alias": "showFormTitle"; "required": false; }; "progressStatus": { "alias": "progressStatus"; "required": false; }; "navSize": { "alias": "navSize"; "required": false; }; "groupMode": { "alias": "groupMode"; "required": false; }; "activeNav": { "alias": "activeNav"; "required": false; }; }, { "valueChange": "valueChange"; "initialized": "initialized"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
436
439
  }
@@ -42,7 +42,7 @@ export declare class ProgrammabilityService {
42
42
  invalidate(value: string | null): void;
43
43
  invalidateAll(): void;
44
44
  watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void): void;
45
- getDependencies(expression: string): (string | string[])[];
45
+ getDependencies(formGroup: FormGroup, expression: string): (string | string[])[];
46
46
  get verbose(): boolean;
47
47
  get cacheable(): boolean;
48
48
  private _verbose;
@@ -10,6 +10,7 @@ interface Form {
10
10
  verticalAlignment: string | null;
11
11
  isTemplate: boolean | null;
12
12
  i18n: any;
13
+ disableAutoFocus?: boolean;
13
14
  components: Component[];
14
15
  }
15
16
  interface Component {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wemake4u/form-player-se",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^18.2.0",
package/public-api.d.ts CHANGED
@@ -18,3 +18,35 @@ export * from './lib/interact/confirmation';
18
18
  export * from './lib/interact/notification';
19
19
  export * from './lib/interact/prompt';
20
20
  export * from './lib/builtIn/builtIn';
21
+ export * from './lib/controls/control';
22
+ export * from './lib/controls/form';
23
+ export * from './lib/controls/textfield';
24
+ export * from './lib/controls/select';
25
+ export * from './lib/controls/taglist';
26
+ export * from './lib/controls/number';
27
+ export * from './lib/controls/date';
28
+ export * from './lib/controls/time';
29
+ export * from './lib/controls/datetime';
30
+ export * from './lib/controls/toggle';
31
+ export * from './lib/controls/checkbox';
32
+ export * from './lib/controls/chipradio';
33
+ export * from './lib/controls/radio';
34
+ export * from './lib/controls/chipchecklist';
35
+ export * from './lib/controls/checklist';
36
+ export * from './lib/controls/textarea';
37
+ export * from './lib/controls/filepicker';
38
+ export * from './lib/controls/text';
39
+ export * from './lib/controls/html';
40
+ export * from './lib/controls/image';
41
+ export * from './lib/controls/tab';
42
+ export * from './lib/controls/chart';
43
+ export * from './lib/controls/accordion';
44
+ export * from './lib/controls/dynamiclist';
45
+ export * from './lib/controls/group';
46
+ export * from './lib/controls/table';
47
+ export * from './lib/controls/button';
48
+ export * from './lib/controls/separator';
49
+ export * from './lib/controls/spacer';
50
+ export * from './lib/controls/iframe';
51
+ export * from './lib/controls/tooltip';
52
+ export * from './lib/controls/displayfield';
@@ -1,17 +0,0 @@
1
- export function patchFunction(instance, methodName, wrapper) {
2
- const FLAG = `__patched_${String(methodName)}__`;
3
- const anyInstance = instance;
4
- // avoid re-patch
5
- if (anyInstance[FLAG]) {
6
- return;
7
- }
8
- const original = instance[methodName];
9
- if (typeof original !== 'function') {
10
- throw new Error(`Property '${String(methodName)}' is not a function`);
11
- }
12
- instance[methodName] = function (...args) {
13
- return wrapper.call(this, args, (...innerArgs) => original.apply(this, innerArgs));
14
- };
15
- anyInstance[FLAG] = true;
16
- }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2lyaW8vc3JjL2xpYi91dGlscy9wYXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsYUFBYSxDQUkzQixRQUFXLEVBQ1gsVUFBYSxFQUNiLE9BSVE7SUFFUixNQUFNLElBQUksR0FBRyxhQUFhLE1BQU0sQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDO0lBQ2pELE1BQU0sV0FBVyxHQUFHLFFBQWUsQ0FBQztJQUVwQyxpQkFBaUI7SUFDakIsSUFBSSxXQUFXLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztRQUN0QixPQUFPO0lBQ1QsQ0FBQztJQUVELE1BQU0sUUFBUSxHQUFHLFFBQVEsQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUV0QyxJQUFJLE9BQU8sUUFBUSxLQUFLLFVBQVUsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQ2IsYUFBYSxNQUFNL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hPT0gJ2Z1bmN0aW9uJykge1xyXG4gICAgdGhyb3cgbmV3IEVycm9yKFxyXG4gICAgICBgUHJvcGVydHkgJyR7U3RyaW5nKG1ldGhvZE5hbWUpfScgaXMgbm90IGEgZnVuY3Rpb25gXHJcbiAgICApO1xyXG4gIH1cclxuXHJcbiAgaW5zdGFuY2VbbWV0aG9kTmFtZV0gPSBmdW5jdGlvbiAodGhpczogVCwgLi4uYXJnczogYW55W10pIHtcclxuICAgIHJldHVybiB3cmFwcGVyLmNhbGwoXHJcbiAgICAgIHRoaXMsXHJcbiAgICAgIGFyZ3MsXHJcbiAgICAgICguLi5pbm5lckFyZ3M6IGFueVtdKSA9PlxyXG4gICAgICAgIChvcmlnaW5hbCBhcyBGdW5jdGlvbikuYXBwbHkodGhpcywgaW5uZXJBcmdzKVxyXG4gICAgKTtcclxuICB9IGFzIFRbS107XHJcblxyXG4gIGFueUluc3RhbmNlW0ZMQUddID0gdHJ1ZTtcclxufVxyXG4iXX0=
@@ -1 +0,0 @@
1
- export declare function patchFunction<T extends object, K extends keyof T>(instance: T, methodName: K, wrapper: (this: T, args: any[], original: (...args: any[]) => any) => any): void;