@firestitch/form 18.0.29 → 18.0.31
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/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +17 -2
- package/app/directives/button.directive.d.ts +9 -1
- package/app/directives/confirm-tabs/confirm-tabs.directive.d.ts +32 -0
- package/app/directives/confirm-tabs/index.d.ts +1 -0
- package/app/directives/form/form.directive.d.ts +89 -29
- package/app/directives/form-base/form-base.directive.d.ts +86 -6
- package/app/directives/form-container/form-container.directive.d.ts +80 -0
- package/app/directives/form-container/index.d.ts +1 -0
- package/app/directives/index.d.ts +2 -1
- package/app/fs-form.module.d.ts +3 -2
- package/app/helpers/index.d.ts +1 -0
- package/app/helpers/within-same-dialog.d.ts +18 -0
- package/app/interfaces/form-owner.d.ts +17 -0
- package/app/interfaces/index.d.ts +1 -0
- package/app/services/fsform.service.d.ts +5 -5
- package/esm2022/app/components/form-dialog-actions/form-dialog-actions.component.mjs +50 -17
- package/esm2022/app/directives/button.directive.mjs +26 -9
- package/esm2022/app/directives/confirm-tabs/confirm-tabs.directive.mjs +50 -0
- package/esm2022/app/directives/confirm-tabs/index.mjs +2 -0
- package/esm2022/app/directives/form/form.directive.mjs +247 -241
- package/esm2022/app/directives/form-base/form-base.directive.mjs +255 -8
- package/esm2022/app/directives/form-container/form-container.directive.mjs +164 -0
- package/esm2022/app/directives/form-container/index.mjs +2 -0
- package/esm2022/app/directives/index.mjs +3 -2
- package/esm2022/app/fs-form.module.mjs +11 -6
- package/esm2022/app/guards/form-deactivate.guard.mjs +1 -1
- package/esm2022/app/helpers/index.mjs +2 -1
- package/esm2022/app/helpers/within-same-dialog.mjs +19 -0
- package/esm2022/app/interfaces/form-owner.mjs +2 -0
- package/esm2022/app/interfaces/index.mjs +2 -1
- package/esm2022/app/services/fsform.service.mjs +10 -7
- package/esm2022/public_api.mjs +3 -2
- package/fesm2022/firestitch-form.mjs +811 -320
- package/fesm2022/firestitch-form.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +3 -1
- package/app/directives/form-group/form-group.directive.d.ts +0 -15
- package/app/directives/form-group/index.d.ts +0 -1
- package/esm2022/app/directives/form-group/form-group.directive.mjs +0 -35
- package/esm2022/app/directives/form-group/index.mjs +0 -2
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export { FsForm } from './app/services/fsform.service';
|
|
|
3
3
|
export { FsFormGreaterDirective, FsFormGreaterEqualDirective, FsFormLesserEqualDirective, FsFormTemplateDirective } from './app/directives';
|
|
4
4
|
export { FsButtonDirective } from './app/directives/button.directive';
|
|
5
5
|
export { FsFormDialogCloseDirective } from './app/directives/form-dialog-close.directive';
|
|
6
|
-
export {
|
|
6
|
+
export { FsFormConfirmTabsDirective } from './app/directives/confirm-tabs/confirm-tabs.directive';
|
|
7
|
+
export { FsFormContainerDirective } from './app/directives/form-container/form-container.directive';
|
|
7
8
|
export { FsFormDirective } from './app/directives/form/form.directive';
|
|
8
9
|
export { FsSubmitButtonDirective } from './app/directives/submit-button.directive';
|
|
9
10
|
export { FsFormCompareDirective } from './app/directives/validators/compare.directive';
|
|
@@ -30,6 +31,7 @@ export { FsFormDialogActionsComponent } from './app/components';
|
|
|
30
31
|
export { FsValidators } from './app/validators/validators';
|
|
31
32
|
export { FormDeactivateGuard } from './app/guards/form-deactivate.guard';
|
|
32
33
|
export { ConfirmConfig } from './app/interfaces/confirm-config';
|
|
34
|
+
export { FsFormOwner } from './app/interfaces/form-owner';
|
|
33
35
|
export { SubmitEvent } from './app/interfaces/submit-event';
|
|
34
36
|
export { SubmittedEvent } from './app/interfaces/submitted-event';
|
|
35
37
|
export { ConfirmResult } from './app/enums/confirm-result';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ConfirmConfig } from '../../interfaces';
|
|
2
|
-
import { FsFormDirective } from '../form';
|
|
3
|
-
import { FsFormBaseDirective } from '../form-base';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FsFormGroupDirective extends FsFormBaseDirective {
|
|
6
|
-
private _formDirective;
|
|
7
|
-
triggerSubmit(): void;
|
|
8
|
-
triggerConfirm(): import("rxjs").Observable<import("@firestitch/form").ConfirmResult>;
|
|
9
|
-
get submitting(): boolean;
|
|
10
|
-
get confirm(): ConfirmConfig | boolean;
|
|
11
|
-
registerForm(formDirective: FsFormDirective): void;
|
|
12
|
-
deregisterForm(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormGroupDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormGroupDirective, "[fsFormGroup]", ["fsFormGroup"], {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './form-group.directive';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Directive, } from '@angular/core';
|
|
2
|
-
import { FsFormBaseDirective } from '../form-base';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class FsFormGroupDirective extends FsFormBaseDirective {
|
|
5
|
-
_formDirective;
|
|
6
|
-
triggerSubmit() {
|
|
7
|
-
return this._formDirective?.triggerSubmit();
|
|
8
|
-
}
|
|
9
|
-
triggerConfirm() {
|
|
10
|
-
return this._formDirective?.triggerConfirm();
|
|
11
|
-
}
|
|
12
|
-
get submitting() {
|
|
13
|
-
return this._formDirective?.submitting;
|
|
14
|
-
}
|
|
15
|
-
get confirm() {
|
|
16
|
-
return this._formDirective?.confirm;
|
|
17
|
-
}
|
|
18
|
-
registerForm(formDirective) {
|
|
19
|
-
this._formDirective = formDirective;
|
|
20
|
-
}
|
|
21
|
-
deregisterForm() {
|
|
22
|
-
this._formDirective = null;
|
|
23
|
-
}
|
|
24
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.7", type: FsFormGroupDirective, isStandalone: true, selector: "[fsFormGroup]", exportAs: ["fsFormGroup"], usesInheritance: true, ngImport: i0 });
|
|
26
|
-
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: FsFormGroupDirective, decorators: [{
|
|
28
|
-
type: Directive,
|
|
29
|
-
args: [{
|
|
30
|
-
selector: '[fsFormGroup]',
|
|
31
|
-
exportAs: 'fsFormGroup',
|
|
32
|
-
standalone: true,
|
|
33
|
-
}]
|
|
34
|
-
}] });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1ncm91cC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2RpcmVjdGl2ZXMvZm9ybS1ncm91cC9mb3JtLWdyb3VwLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxHQUNWLE1BQU0sZUFBZSxDQUFDO0FBS3ZCLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGNBQWMsQ0FBQzs7QUFRbkQsTUFBTSxPQUFPLG9CQUFxQixTQUFRLG1CQUFtQjtJQUVuRCxjQUFjLENBQWtCO0lBRWpDLGFBQWE7UUFDbEIsT0FBTyxJQUFJLENBQUMsY0FBYyxFQUFFLGFBQWEsRUFBRSxDQUFDO0lBQzlDLENBQUM7SUFFTSxjQUFjO1FBQ25CLE9BQU8sSUFBSSxDQUFDLGNBQWMsRUFBRSxjQUFjLEVBQUUsQ0FBQztJQUMvQyxDQUFDO0lBRUQsSUFBVyxVQUFVO1FBQ25CLE9BQU8sSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQ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2dlclN1Ym1pdCgpIHtcbiAgICByZXR1cm4gdGhpcy5fZm9ybURpcmVjdGl2ZT8udHJpZ2dlclN1Ym1pdCgpO1xuICB9XG5cbiAgcHVibGljIHRyaWdnZXJDb25maXJtKCkge1xuICAgIHJldHVybiB0aGlzLl9mb3JtRGlyZWN0aXZlPy50cmlnZ2VyQ29uZmlybSgpO1xuICB9XG5cbiAgcHVibGljIGdldCBzdWJtaXR0aW5nKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLl9mb3JtRGlyZWN0aXZlPy5zdWJtaXR0aW5nO1xuICB9XG5cbiAgcHVibGljIGdldCBjb25maXJtKCk6IENvbmZpcm1Db25maWcgfCBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5fZm9ybURpcmVjdGl2ZT8uY29uZmlybTtcbiAgfVxuXG4gIHB1YmxpYyByZWdpc3RlckZvcm0oZm9ybURpcmVjdGl2ZTogRnNGb3JtRGlyZWN0aXZlKSB7XG4gICAgdGhpcy5fZm9ybURpcmVjdGl2ZSA9IGZvcm1EaXJlY3RpdmU7XG4gIH1cblxuICBwdWJsaWMgZGVyZWdpc3RlckZvcm0oKSB7XG4gICAgdGhpcy5fZm9ybURpcmVjdGl2ZSA9IG51bGw7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './form-group.directive';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2RpcmVjdGl2ZXMvZm9ybS1ncm91cC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mb3JtLWdyb3VwLmRpcmVjdGl2ZSc7XG4iXX0=
|