@ssv/ngx.command 3.2.0 → 3.3.0-dev.82

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/index.d.ts CHANGED
@@ -1,8 +1,192 @@
1
- export { SsvCommandModule } from "./command.module";
2
- export { provideSsvCommandOptions, COMMAND_OPTIONS, type CommandOptions } from "./command.options";
3
- export { command, commandAsync, Command, CommandAsync, type CanExecute, type CommandCreateOptions } from "./command";
4
- export { CommandDirective } from "./command.directive";
5
- export { CommandRefDirective } from "./command-ref.directive";
6
- export { type CanExecuteFormOptions, isCommand, isCommandCreator, canExecuteFromNgForm, canExecuteFromSignals } from "./command.util";
7
- export type { CommandCreator, ICommand } from "./command.model";
8
- export { VERSION } from "./version";
1
+ import * as _angular_core from '@angular/core';
2
+ import { InjectionToken, Provider, Signal, OnInit, Injector } from '@angular/core';
3
+ import { Observable } from 'rxjs';
4
+ import { AbstractControl } from '@angular/forms';
5
+
6
+ interface CommandOptions {
7
+ /**
8
+ * Css Class which gets added/removed on the Command element's host while Command `isExecuting$`.
9
+ */
10
+ executingCssClass: string;
11
+ /** Determines whether the disabled will be handled by the directive or not.
12
+ * Disable handled by directive's doesn't always play nice when used with other component/pipe/directive and they also handle disabled.
13
+ * This disables the handling manually and need to pass explicitly `[disabled]="!saveCmd.canExecute"`.
14
+ */
15
+ handleDisabled: boolean;
16
+ }
17
+ declare const COMMAND_OPTIONS: InjectionToken<CommandOptions>;
18
+ declare function provideSsvCommandOptions(options: Partial<CommandOptions> | ((defaults: Readonly<CommandOptions>) => Partial<CommandOptions>)): Provider[];
19
+
20
+ type ExecuteFn = (...args: any[]) => unknown;
21
+ type ExecuteAsyncFn = (...args: any[]) => Observable<unknown> | Promise<unknown>;
22
+ type CanExecute = (() => boolean) | Signal<boolean> | Observable<boolean>;
23
+ interface ICommand {
24
+ /** Determines whether the command is currently executing, as a snapshot value.
25
+ * @deprecated Use {@link $isExecuting} signal instead.
26
+ */
27
+ readonly isExecuting: boolean;
28
+ /** Determines whether the command is currently executing, as a signal. */
29
+ readonly $isExecuting: Signal<boolean>;
30
+ /** Determines whether the command can execute or not, as a snapshot value.
31
+ * @deprecated Use {@link $canExecute} signal instead.
32
+ */
33
+ readonly canExecute: boolean;
34
+ /** Determines whether the command can execute or not, as a signal. */
35
+ readonly $canExecute: Signal<boolean>;
36
+ /** Determines whether to auto destroy when having 0 subscribers (defaults to `true`).
37
+ * @deprecated Use using command/commandAsync is handled automatically.
38
+ */
39
+ autoDestroy: boolean;
40
+ /** Execute function to invoke. */
41
+ execute(...args: unknown[]): void;
42
+ /** Disposes all resources held by subscriptions. */
43
+ destroy(): void;
44
+ /** Subscribe listener, in order to handle auto disposing.
45
+ * @deprecated Use using command/commandAsync is handled automatically.
46
+ */
47
+ subscribe(): void;
48
+ /**
49
+ * Unsubscribe listener, in order to handle auto disposing.
50
+ * @deprecated Use using command/commandAsync is handled automatically.
51
+ */
52
+ unsubscribe(): void;
53
+ }
54
+ interface CommandCreator {
55
+ execute: (...args: any[]) => Observable<unknown> | Promise<unknown> | void;
56
+ canExecute?: CanExecute | Function;
57
+ params?: unknown | unknown[];
58
+ isAsync?: boolean;
59
+ host: unknown;
60
+ }
61
+
62
+ declare class SsvCommand implements OnInit {
63
+ #private;
64
+ readonly commandOrCreator: _angular_core.InputSignal<ICommand | CommandCreator>;
65
+ readonly ssvCommandOptions: _angular_core.InputSignal<Partial<CommandOptions>>;
66
+ readonly commandOptions: _angular_core.Signal<CommandOptions>;
67
+ readonly ssvCommandParams: _angular_core.InputSignal<unknown>;
68
+ readonly commandParams: _angular_core.Signal<unknown>;
69
+ readonly _hostClasses: _angular_core.Signal<string[]>;
70
+ private creatorParams;
71
+ get command(): ICommand;
72
+ private _command;
73
+ constructor();
74
+ ngOnInit(): void;
75
+ _handleClick(): void;
76
+ private trySetDisabled;
77
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SsvCommand, never>;
78
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SsvCommand, "[ssvCommand]", ["ssvCommand"], { "commandOrCreator": { "alias": "ssvCommand"; "required": true; "isSignal": true; }; "ssvCommandOptions": { "alias": "ssvCommandOptions"; "required": false; "isSignal": true; }; "ssvCommandParams": { "alias": "ssvCommandParams"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
79
+ }
80
+
81
+ /**
82
+ * Command creator ref, directive which allows creating Command in the template
83
+ * and associate it to a command (in order to share executions).
84
+ * @example
85
+ * ### Most common usage
86
+ * ```html
87
+ * <div #actionCmd="ssvCommandRef" [ssvCommandRef]="{host: this, execute: removeHero$, canExecute: isValid$}">
88
+ * <button [ssvCommand]="actionCmd.command" [ssvCommandParams]="hero">
89
+ * Remove
90
+ * </button>
91
+ * <button [ssvCommand]="actionCmd.command" [ssvCommandParams]="hero">
92
+ * Remove
93
+ * </button>
94
+ * </div>
95
+ * ```
96
+ *
97
+ */
98
+ declare class SsvCommandRef implements OnInit {
99
+ #private;
100
+ readonly commandCreator: _angular_core.InputSignal<CommandCreator>;
101
+ get command(): ICommand;
102
+ private _command;
103
+ constructor();
104
+ ngOnInit(): void;
105
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SsvCommandRef, never>;
106
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SsvCommandRef, "[ssvCommandRef]", ["ssvCommandRef"], { "commandCreator": { "alias": "ssvCommandRef"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
107
+ }
108
+
109
+ /** @deprecated Use standalone instead. */
110
+ declare class SsvCommandModule {
111
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SsvCommandModule, never>;
112
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SsvCommandModule, never, [typeof SsvCommand, typeof SsvCommandRef], [typeof SsvCommand, typeof SsvCommandRef]>;
113
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<SsvCommandModule>;
114
+ }
115
+
116
+ interface CommandCreateOptions {
117
+ isAsync: boolean;
118
+ injector?: Injector;
119
+ }
120
+ /** Creates an async {@link Command}. Must be used within an injection context.
121
+ * NOTE: this auto injects `DestroyRef` and handles auto destroy. {@link ICommand.autoDestroy} should not be used.
122
+ */
123
+ declare function commandAsync(execute: ExecuteAsyncFn, canExecute$?: CanExecute, opts?: Omit<CommandCreateOptions, "isAsync">): Command;
124
+ /** Creates a {@link Command}. Must be used within an injection context.
125
+ * NOTE: this auto injects `DestroyRef` and handles auto destroy. {@link ICommand.autoDestroy} should not be used.
126
+ */
127
+ declare function command(execute: ExecuteFn, canExecute$?: CanExecute, opts?: CommandCreateOptions): Command;
128
+ /**
129
+ * Command object used to encapsulate information which is needed to perform an action.
130
+ *
131
+ */
132
+ declare class Command implements ICommand {
133
+ get isExecuting(): boolean;
134
+ get canExecute(): boolean;
135
+ readonly $isExecuting: _angular_core.WritableSignal<boolean>;
136
+ readonly $canExecute: Signal<boolean>;
137
+ private readonly _$canExecute;
138
+ autoDestroy: boolean;
139
+ private executionPipe$;
140
+ private executionPipe$$;
141
+ private subscribersCount;
142
+ /**
143
+ * Creates an instance of Command.
144
+ *
145
+ * @param execute Execute function to invoke - use `isAsync: true` when `Observable<any>`.
146
+ * @param canExecute Observable which determines whether it can execute or not.
147
+ * @param isAsync Indicates that the execute function is async e.g. Observable.
148
+ * @deprecated Use {@link command} or {@link commandAsync} instead for creating instances.
149
+ */
150
+ constructor(execute: ExecuteFn, canExecute$?: CanExecute, isAsync?: boolean, injector?: Injector);
151
+ /** Execute function to invoke. */
152
+ execute(...args: unknown[]): void;
153
+ /** Disposes all resources held by subscriptions. */
154
+ destroy(): void;
155
+ subscribe(): void;
156
+ unsubscribe(): void;
157
+ private buildExecutionPipe;
158
+ }
159
+ /**
160
+ * Async Command object used to encapsulate information which is needed to perform an action,
161
+ * which takes an execute function as Observable/Promise.
162
+ * @deprecated Use {@link commandAsync} instead.
163
+ */
164
+ declare class CommandAsync extends Command {
165
+ /**
166
+ * @deprecated Use {@link commandAsync} instead to create an instance.
167
+ */
168
+ constructor(execute: ExecuteAsyncFn, canExecute$?: CanExecute);
169
+ }
170
+
171
+ /** Determines whether the arg object is of type `Command`. */
172
+ declare function isCommand(arg: unknown): arg is ICommand;
173
+ /** Determines whether the arg object is of type `CommandCreator`. */
174
+ declare function isCommandCreator(arg: unknown): arg is CommandCreator;
175
+ interface CanExecuteFormOptions {
176
+ /** Determines whether to check for validity. (defaults: true) */
177
+ validity?: boolean;
178
+ /** Determines whether to check whether UI has been touched. (defaults: true) */
179
+ dirty?: boolean;
180
+ }
181
+ /** Get can execute from form validity/pristine as an observable. */
182
+ declare function canExecuteFromNgForm(form: AbstractControl, options?: CanExecuteFormOptions): Observable<boolean>;
183
+ /** Can executed based on valid/dirty signal inputs. */
184
+ declare function canExecuteFromSignals(signals: {
185
+ valid: Signal<boolean>;
186
+ dirty: Signal<boolean>;
187
+ }, options?: CanExecuteFormOptions): Signal<boolean>;
188
+
189
+ declare const VERSION = "3.3.0-dev.82";
190
+
191
+ export { COMMAND_OPTIONS, Command, CommandAsync, SsvCommand, SsvCommandModule, SsvCommandRef, VERSION, canExecuteFromNgForm, canExecuteFromSignals, command, commandAsync, isCommand, isCommandCreator, provideSsvCommandOptions };
192
+ export type { CanExecute, CanExecuteFormOptions, CommandCreateOptions, CommandCreator, CommandOptions, ExecuteAsyncFn, ExecuteFn, ICommand };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssv/ngx.command",
3
- "version": "3.2.0",
3
+ "version": "3.3.0-dev.82",
4
4
  "versionSuffix": "",
5
5
  "description": "Command pattern implementation for angular. Command used to encapsulate information which is needed to perform an action.",
6
6
  "keywords": [
@@ -36,8 +36,6 @@
36
36
  },
37
37
  ".": {
38
38
  "types": "./index.d.ts",
39
- "esm2022": "./esm2022/ssv-ngx.command.mjs",
40
- "esm": "./esm2022/ssv-ngx.command.mjs",
41
39
  "default": "./fesm2022/ssv-ngx.command.mjs"
42
40
  }
43
41
  }
@@ -1,29 +0,0 @@
1
- import { OnInit, OnDestroy } from "@angular/core";
2
- import { ICommand, CommandCreator } from "./command.model";
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Command creator ref, directive which allows creating Command in the template
6
- * and associate it to a command (in order to share executions).
7
- * @example
8
- * ### Most common usage
9
- * ```html
10
- * <div #actionCmd="ssvCommandRef" [ssvCommandRef]="{host: this, execute: removeHero$, canExecute: isValid$}">
11
- * <button [ssvCommand]="actionCmd.command" [ssvCommandParams]="hero">
12
- * Remove
13
- * </button>
14
- * <button [ssvCommand]="actionCmd.command" [ssvCommandParams]="hero">
15
- * Remove
16
- * </button>
17
- * </div>
18
- * ```
19
- *
20
- */
21
- export declare class CommandRefDirective implements OnInit, OnDestroy {
22
- commandCreator: CommandCreator | undefined;
23
- get command(): ICommand;
24
- private _command;
25
- ngOnInit(): void;
26
- ngOnDestroy(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<CommandRefDirective, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<CommandRefDirective, "[ssvCommandRef]", ["ssvCommandRef"], { "commandCreator": { "alias": "ssvCommandRef"; "required": false; }; }, {}, never, never, true, never>;
29
- }
package/command.d.ts DELETED
@@ -1,65 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import type { ICommand } from "./command.model";
3
- import { Injector, type Signal } from "@angular/core";
4
- export type ExecuteFn = (...args: any[]) => unknown;
5
- export type ExecuteAsyncFn = (...args: any[]) => Observable<unknown> | Promise<unknown>;
6
- export type CanExecute = (() => boolean) | Signal<boolean> | Observable<boolean>;
7
- export interface CommandCreateOptions {
8
- isAsync: boolean;
9
- injector?: Injector;
10
- }
11
- /** Creates an async {@link Command}. Must be used within an injection context.
12
- * NOTE: this auto injects `DestroyRef` and handles auto destroy. {@link ICommand.autoDestroy} should not be used.
13
- */
14
- export declare function commandAsync(execute: ExecuteAsyncFn, canExecute$?: CanExecute, opts?: Omit<CommandCreateOptions, "isAsync">): Command;
15
- /** Creates a {@link Command}. Must be used within an injection context.
16
- * NOTE: this auto injects `DestroyRef` and handles auto destroy. {@link ICommand.autoDestroy} should not be used.
17
- */
18
- export declare function command(execute: ExecuteFn, canExecute$?: CanExecute, opts?: CommandCreateOptions): Command;
19
- /**
20
- * Command object used to encapsulate information which is needed to perform an action.
21
- * @deprecated Use {@link command} or {@link commandAsync} instead for creating instances.
22
- */
23
- export declare class Command implements ICommand {
24
- /** Determines whether the command is currently executing, as a snapshot value. */
25
- get isExecuting(): boolean;
26
- /** Determines whether the command can execute or not, as a snapshot value. */
27
- get canExecute(): boolean;
28
- /** Determines whether the command is currently executing, as an observable. */
29
- get isExecuting$(): Observable<boolean>;
30
- /** Determines whether to auto destroy when having 0 subscribers. */
31
- autoDestroy: boolean;
32
- /** Determines whether the command can execute or not, as an observable. */
33
- readonly canExecute$: Observable<boolean>;
34
- private _isExecuting$;
35
- private _isExecuting;
36
- private _canExecute;
37
- private executionPipe$;
38
- private isExecuting$$;
39
- private canExecute$$;
40
- private executionPipe$$;
41
- private subscribersCount;
42
- /**
43
- * Creates an instance of Command.
44
- *
45
- * @param execute Execute function to invoke - use `isAsync: true` when `Observable<any>`.
46
- * @param canExecute Observable which determines whether it can execute or not.
47
- * @param isAsync Indicates that the execute function is async e.g. Observable.
48
- */
49
- constructor(execute: ExecuteFn, canExecute$?: CanExecute, isAsync?: boolean, injector?: Injector);
50
- /** Execute function to invoke. */
51
- execute(...args: unknown[]): void;
52
- /** Disposes all resources held by subscriptions. */
53
- destroy(): void;
54
- subscribe(): void;
55
- unsubscribe(): void;
56
- private buildExecutionPipe;
57
- }
58
- /**
59
- * Async Command object used to encapsulate information which is needed to perform an action,
60
- * which takes an execute function as Observable/Promise.
61
- * @deprecated Use {@link commandAsync} instead.
62
- */
63
- export declare class CommandAsync extends Command {
64
- constructor(execute: ExecuteAsyncFn, canExecute$?: CanExecute);
65
- }
@@ -1,24 +0,0 @@
1
- import { OnInit, OnDestroy } from "@angular/core";
2
- import { type CommandOptions } from "./command.options";
3
- import { CommandCreator, type ICommand } from "./command.model";
4
- import * as i0 from "@angular/core";
5
- export declare class CommandDirective implements OnInit, OnDestroy {
6
- private readonly globalOptions;
7
- private readonly renderer;
8
- private readonly element;
9
- private readonly cdr;
10
- commandOrCreator: ICommand | CommandCreator | undefined;
11
- get commandOptions(): CommandOptions;
12
- set commandOptions(value: Partial<CommandOptions>);
13
- commandParams: unknown | unknown[];
14
- get command(): ICommand;
15
- private _command;
16
- private _commandOptions;
17
- private _destroy$;
18
- ngOnInit(): void;
19
- onClick(): void;
20
- ngOnDestroy(): void;
21
- private trySetDisabled;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<CommandDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<CommandDirective, "[ssvCommand]", ["ssvCommand"], { "commandOrCreator": { "alias": "ssvCommand"; "required": false; }; "commandOptions": { "alias": "ssvCommandOptions"; "required": false; }; "commandParams": { "alias": "ssvCommandParams"; "required": false; }; }, {}, never, never, true, never>;
24
- }
@@ -1,28 +0,0 @@
1
- import { Observable } from "rxjs";
2
- export interface ICommand {
3
- /** Determines whether the command is currently executing, as a snapshot value. */
4
- readonly isExecuting: boolean;
5
- /** Determines whether the command is currently executing, as an observable. */
6
- readonly isExecuting$: Observable<boolean>;
7
- /** Determines whether the command can execute or not, as a snapshot value. */
8
- readonly canExecute: boolean;
9
- /** Determines whether the command can execute or not, as an observable. */
10
- readonly canExecute$: Observable<boolean>;
11
- /** Determines whether to auto destroy when having 0 subscribers (defaults to `true`). */
12
- autoDestroy: boolean;
13
- /** Execute function to invoke. */
14
- execute(...args: unknown[]): void;
15
- /** Disposes all resources held by subscriptions. */
16
- destroy(): void;
17
- /** Subscribe listener, in order to handle auto disposing. */
18
- subscribe(): void;
19
- /** Unsubscribe listener, in order to handle auto disposing. */
20
- unsubscribe(): void;
21
- }
22
- export interface CommandCreator {
23
- execute: (...args: any[]) => Observable<unknown> | Promise<unknown> | void;
24
- canExecute?: Observable<boolean> | Function;
25
- params?: unknown | unknown[];
26
- isAsync?: boolean;
27
- host: unknown;
28
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./command.directive";
3
- import * as i2 from "./command-ref.directive";
4
- export declare class SsvCommandModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<SsvCommandModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<SsvCommandModule, never, [typeof i1.CommandDirective, typeof i2.CommandRefDirective], [typeof i1.CommandDirective, typeof i2.CommandRefDirective]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<SsvCommandModule>;
8
- }
@@ -1,18 +0,0 @@
1
- import { type EnvironmentProviders, InjectionToken } from "@angular/core";
2
- export interface CommandOptions {
3
- /**
4
- * Css Class which gets added/removed on the Command element's host while Command `isExecuting$`.
5
- */
6
- executingCssClass: string;
7
- /** Determines whether the disabled will be handled by the directive or not.
8
- * Disable handled by directive's doesn't always play nice when used with other component/pipe/directive and they also handle disabled.
9
- * This disables the handling manually and need to pass explicitly `[disabled]="!saveCmd.canExecute"`.
10
- */
11
- handleDisabled: boolean;
12
- /** Determine whether to set a `delay(1)` when setting the disabled. Which might be needed when working with external
13
- * components/directives (such as material button)
14
- */
15
- hasDisabledDelay: boolean;
16
- }
17
- export declare const COMMAND_OPTIONS: InjectionToken<CommandOptions>;
18
- export declare function provideSsvCommandOptions(options: Partial<CommandOptions> | ((defaults: Readonly<CommandOptions>) => Partial<CommandOptions>)): EnvironmentProviders;
package/command.util.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { AbstractControl } from "@angular/forms";
2
- import { Observable } from "rxjs";
3
- import { CommandCreator, ICommand } from "./command.model";
4
- import { type Signal } from "@angular/core";
5
- /** Determines whether the arg object is of type `Command`. */
6
- export declare function isCommand(arg: unknown): arg is ICommand;
7
- /** Determines whether the arg object is of type `CommandCreator`. */
8
- export declare function isCommandCreator(arg: unknown): arg is CommandCreator;
9
- export interface CanExecuteFormOptions {
10
- /** Determines whether to check for validity. (defaults: true) */
11
- validity?: boolean;
12
- /** Determines whether to check whether UI has been touched. (defaults: true) */
13
- dirty?: boolean;
14
- }
15
- /** Get can execute from form validity/pristine as an observable. */
16
- export declare function canExecuteFromNgForm(form: AbstractControl, options?: CanExecuteFormOptions): Observable<boolean>;
17
- /** Can executed based on valid/dirty signal inputs. */
18
- export declare function canExecuteFromSignals(signals: {
19
- valid: Signal<boolean>;
20
- dirty: Signal<boolean>;
21
- }, options?: CanExecuteFormOptions): Signal<boolean>;
@@ -1,57 +0,0 @@
1
- import { Directive, Input } from "@angular/core";
2
- import { isCommandCreator } from "./command.util";
3
- import { Command } from "./command";
4
- import * as i0 from "@angular/core";
5
- const NAME_CAMEL = "ssvCommandRef";
6
- /**
7
- * Command creator ref, directive which allows creating Command in the template
8
- * and associate it to a command (in order to share executions).
9
- * @example
10
- * ### Most common usage
11
- * ```html
12
- * <div #actionCmd="ssvCommandRef" [ssvCommandRef]="{host: this, execute: removeHero$, canExecute: isValid$}">
13
- * <button [ssvCommand]="actionCmd.command" [ssvCommandParams]="hero">
14
- * Remove
15
- * </button>
16
- * <button [ssvCommand]="actionCmd.command" [ssvCommandParams]="hero">
17
- * Remove
18
- * </button>
19
- * </div>
20
- * ```
21
- *
22
- */
23
- export class CommandRefDirective {
24
- commandCreator;
25
- get command() { return this._command; }
26
- _command;
27
- ngOnInit() {
28
- if (isCommandCreator(this.commandCreator)) {
29
- const isAsync = this.commandCreator.isAsync || this.commandCreator.isAsync === undefined;
30
- const execFn = this.commandCreator.execute.bind(this.commandCreator.host);
31
- this._command = new Command(execFn, this.commandCreator.canExecute, isAsync);
32
- }
33
- else {
34
- throw new Error(`${NAME_CAMEL}: [${NAME_CAMEL}] is not defined properly!`);
35
- }
36
- }
37
- ngOnDestroy() {
38
- // console.log("[commandRef::destroy]");
39
- if (this._command) {
40
- this._command.destroy();
41
- }
42
- }
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CommandRefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
44
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.9", type: CommandRefDirective, isStandalone: true, selector: "[ssvCommandRef]", inputs: { commandCreator: ["ssvCommandRef", "commandCreator"] }, exportAs: ["ssvCommandRef"], ngImport: i0 });
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CommandRefDirective, decorators: [{
47
- type: Directive,
48
- args: [{
49
- selector: `[${NAME_CAMEL}]`,
50
- exportAs: NAME_CAMEL,
51
- standalone: true,
52
- }]
53
- }], propDecorators: { commandCreator: [{
54
- type: Input,
55
- args: [NAME_CAMEL]
56
- }] } });
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1yZWYuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9uZ3guY29tbWFuZC9zcmMvY29tbWFuZC1yZWYuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUdwRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sV0FBVyxDQUFDOztBQUVwQyxNQUFNLFVBQVUsR0FBRyxlQUFlLENBQUM7QUFFbkM7Ozs7Ozs7Ozs7Ozs7Ozs7R0FnQkc7QUFNSCxNQUFNLE9BQU8sbUJBQW1CO0lBRVosY0FBYyxDQUE2QjtJQUU5RCxJQUFJLE9BQU8sS0FBZSxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDO0lBQ3pDLFFBQVEsQ0FBWTtJQUU1QixRQUFRO1FBQ1As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