@arsedizioni/ars-utils 22.0.10 → 22.0.11
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/arsedizioni-ars-utils-clipper.common.mjs +2 -11
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +6 -8
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1700 -1797
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +3 -12
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +2 -11
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +3 -12
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +2 -12
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +96 -123
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +4 -44
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +2 -11
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1 -7
- package/types/arsedizioni-ars-utils-core.d.ts +506 -490
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +3 -9
- package/types/arsedizioni-ars-utils-help.d.ts +34 -40
- package/types/arsedizioni-ars-utils-support.common.d.ts +3 -9
- package/types/arsedizioni-ars-utils-tinymce.d.ts +7 -13
- package/types/arsedizioni-ars-utils-ui.application.d.ts +46 -56
- package/types/arsedizioni-ars-utils-ui.d.ts +4 -35
- package/types/arsedizioni-ars-utils-ui.oauth.d.ts +1 -7
|
@@ -1,170 +1,186 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { PipeTransform, EventEmitter, OnDestroy, Signal } from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { EnvironmentProviders, PipeTransform, EventEmitter, OnDestroy, Signal } from '@angular/core';
|
|
3
|
+
import { DateAdapter, MatDateFormats } from '@angular/material/core';
|
|
4
4
|
import { Locale } from 'date-fns';
|
|
5
|
+
import { Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
6
|
import { SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
|
|
6
|
-
import { DateAdapter, MatDateFormats } from '@angular/material/core';
|
|
7
7
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Standalone providers for the ars-utils "core" layer.
|
|
12
|
+
*
|
|
13
|
+
* Registers the core pipes as injectable services so they can be used
|
|
14
|
+
* via `inject()` in services, guards, and resolvers — not only in templates.
|
|
15
|
+
* Components that use these pipes only in templates should import them
|
|
16
|
+
* directly via `imports: [FormatPipe, SafeHtmlPipe, ...]` instead.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* bootstrapApplication(AppComponent, {
|
|
20
|
+
* providers: [provideArsCore()]
|
|
21
|
+
* });
|
|
13
22
|
*/
|
|
14
|
-
declare
|
|
15
|
-
/** Maximum allowed file size in megabytes. Defaults to 5. */
|
|
16
|
-
readonly maxSizeMb: i0.InputSignal<number>;
|
|
17
|
-
/** Minimum required file size in megabytes. Defaults to 0. */
|
|
18
|
-
readonly minSizeMb: i0.InputSignal<number>;
|
|
19
|
-
/** The actual file size in megabytes to validate against the bounds. */
|
|
20
|
-
readonly size: i0.InputSignal<number>;
|
|
21
|
-
/**
|
|
22
|
-
* Validates that the bound file size falls within the configured min/max range.
|
|
23
|
-
* Returns `null` when no control value is present.
|
|
24
|
-
* @param control - The form control to validate.
|
|
25
|
-
*/
|
|
26
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileSizeValidatorDirective, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FileSizeValidatorDirective, "[fileSize]", never, { "maxSizeMb": { "alias": "maxSizeMb"; "required": false; "isSignal": true; }; "minSizeMb": { "alias": "minSizeMb"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
23
|
+
declare function provideArsCore(): EnvironmentProviders;
|
|
30
24
|
|
|
25
|
+
declare const MAT_DATE_FNS_FORMATS: MatDateFormats;
|
|
31
26
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
27
|
+
* date-fns adapter that integrates Angular Material's date picker with the date-fns library,
|
|
28
|
+
* applying `Europe/Rome` timezone for all parsed and created dates.
|
|
34
29
|
*/
|
|
35
|
-
declare class
|
|
36
|
-
|
|
37
|
-
readonly validIf: i0.InputSignal<boolean>;
|
|
30
|
+
declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
31
|
+
constructor(...args: unknown[]);
|
|
38
32
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param
|
|
33
|
+
* Returns the year component of the given date.
|
|
34
|
+
* @param date - The source date.
|
|
41
35
|
*/
|
|
42
|
-
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValidIfDirective, never>;
|
|
44
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidIfDirective, "[validIf]", never, { "validIf": { "alias": "validIf"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Directive that delegates validation to an externally provided validator function.
|
|
49
|
-
* Bind `[validator]="myFn"` where `myFn` is `(c: AbstractControl) => ValidationErrors | null`.
|
|
50
|
-
*/
|
|
51
|
-
declare class ValidatorDirective implements Validator {
|
|
52
|
-
/** The custom validator function to apply. */
|
|
53
|
-
readonly validator: i0.InputSignal<(control: AbstractControl) => ValidationErrors | null>;
|
|
36
|
+
getYear(date: Date): number;
|
|
54
37
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* @param control - The form control to validate.
|
|
38
|
+
* Returns the zero-based month index of the given date (0 = January).
|
|
39
|
+
* @param date - The source date.
|
|
58
40
|
*/
|
|
59
|
-
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorDirective, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidatorDirective, "[validator]", never, { "validator": { "alias": "validator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Directive that validates that the host control's value equals the value of another control.
|
|
66
|
-
* Bind `[equals]="otherControl"`.
|
|
67
|
-
*/
|
|
68
|
-
declare class EqualsValidatorDirective implements Validator {
|
|
69
|
-
/** The control whose value must match the host control's value. */
|
|
70
|
-
readonly equals: i0.InputSignal<AbstractControl<any, any, any>>;
|
|
41
|
+
getMonth(date: Date): number;
|
|
71
42
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @param control - The form control to validate.
|
|
43
|
+
* Returns the day-of-month of the given date (1-based).
|
|
44
|
+
* @param date - The source date.
|
|
75
45
|
*/
|
|
76
|
-
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EqualsValidatorDirective, never>;
|
|
78
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EqualsValidatorDirective, "[equals]", never, { "equals": { "alias": "equals"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Directive that validates a control value as a GUID / UUID string.
|
|
83
|
-
* Apply `guid` to a text input that expects a valid UUID.
|
|
84
|
-
*/
|
|
85
|
-
declare class GuidValidatorDirective implements Validator {
|
|
46
|
+
getDate(date: Date): number;
|
|
86
47
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* @param control - The form control to validate.
|
|
48
|
+
* Returns the day-of-week of the given date (0 = Sunday).
|
|
49
|
+
* @param date - The source date.
|
|
90
50
|
*/
|
|
91
|
-
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GuidValidatorDirective, never>;
|
|
93
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GuidValidatorDirective, "[guid]", never, {}, {}, never, never, true, never>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Directive that validates a semicolon-separated list of email addresses.
|
|
98
|
-
* Apply `emails` to a text input containing one or more addresses separated by `;`.
|
|
99
|
-
*/
|
|
100
|
-
declare class EmailsValidatorDirective implements Validator {
|
|
51
|
+
getDayOfWeek(date: Date): number;
|
|
101
52
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* @param control - The form control to validate.
|
|
53
|
+
* Returns an array of 12 month name strings formatted for the active locale.
|
|
54
|
+
* @param style - One of `'long'`, `'short'`, or `'narrow'`.
|
|
105
55
|
*/
|
|
106
|
-
|
|
107
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EmailsValidatorDirective, never>;
|
|
108
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EmailsValidatorDirective, "[emails]", never, {}, {}, never, never, true, never>;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Directive that validates a control value as a well-formed URL.
|
|
113
|
-
* Apply `url` to a text input that expects a URL.
|
|
114
|
-
*/
|
|
115
|
-
declare class UrlValidatorDirective implements Validator {
|
|
56
|
+
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
116
57
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* @param control - The form control to validate.
|
|
58
|
+
* Returns an array of 31 day-of-month label strings formatted using `Intl.DateTimeFormat`
|
|
59
|
+
* when available, falling back to plain numeric strings.
|
|
120
60
|
*/
|
|
121
|
-
|
|
122
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UrlValidatorDirective, never>;
|
|
123
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UrlValidatorDirective, "[url]", never, {}, {}, never, never, true, never>;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Directive that validates that a control value is not a future date.
|
|
128
|
-
* Apply `notFuture` to a text input that expects a date on or before today.
|
|
129
|
-
*/
|
|
130
|
-
declare class NotFutureValidatorDirective implements Validator {
|
|
61
|
+
getDateNames(): string[];
|
|
131
62
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* @param control - The form control to validate.
|
|
63
|
+
* Returns an array of 7 day-of-week name strings formatted for the active locale.
|
|
64
|
+
* @param style - One of `'long'`, `'short'`, or `'narrow'`.
|
|
135
65
|
*/
|
|
136
|
-
|
|
137
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotFutureValidatorDirective, never>;
|
|
138
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NotFutureValidatorDirective, "[notFuture]", never, {}, {}, never, never, true, never>;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Directive that validates that a string control value is not blank (whitespace-only).
|
|
143
|
-
* Apply `notEmpty` to a text input where non-blank content is required.
|
|
144
|
-
*/
|
|
145
|
-
declare class NotEmptyValidatorDirective implements Validator {
|
|
66
|
+
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
146
67
|
/**
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* @param control - The form control to validate.
|
|
68
|
+
* Returns the four-digit year string for the given date.
|
|
69
|
+
* @param date - The source date.
|
|
150
70
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
71
|
+
getYearName(date: Date): string;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the first day of the week for the active locale (0 = Sunday, 1 = Monday, …).
|
|
74
|
+
*/
|
|
75
|
+
getFirstDayOfWeek(): number;
|
|
76
|
+
/**
|
|
77
|
+
* Returns the number of days in the month of the given date.
|
|
78
|
+
* @param date - The source date.
|
|
79
|
+
*/
|
|
80
|
+
getNumDaysInMonth(date: Date): number;
|
|
81
|
+
/**
|
|
82
|
+
* Creates an independent copy of the given date.
|
|
83
|
+
* @param date - The date to clone.
|
|
84
|
+
*/
|
|
85
|
+
clone(date: Date): Date;
|
|
86
|
+
/**
|
|
87
|
+
* Creates a `Date` in the `Europe/Rome` timezone for the given year, month, and day.
|
|
88
|
+
* Throws an `Error` when any component is out of range.
|
|
89
|
+
* @param year - Full four-digit year.
|
|
90
|
+
* @param month - Zero-based month index (0 = January, 11 = December).
|
|
91
|
+
* @param date - Day-of-month (1-based).
|
|
92
|
+
*/
|
|
93
|
+
createDate(year: number, month: number, date: number): Date;
|
|
94
|
+
/**
|
|
95
|
+
* Returns today's date in the local timezone.
|
|
96
|
+
*/
|
|
97
|
+
today(): Date;
|
|
98
|
+
/**
|
|
99
|
+
* Parses a value into a `Date`.
|
|
100
|
+
* - Strings are first attempted as ISO 8601, then matched against each format in `parseFormat`.
|
|
101
|
+
* - Numbers are treated as Unix timestamps (milliseconds).
|
|
102
|
+
* - Existing `Date` instances are cloned.
|
|
103
|
+
* @param value - The value to parse.
|
|
104
|
+
* @param parseFormat - A format string or an array of format strings (date-fns tokens).
|
|
105
|
+
* @returns A valid `Date` in `Europe/Rome`, an invalid sentinel, or `null` for unrecognised input.
|
|
106
|
+
*/
|
|
107
|
+
parse(value: unknown, parseFormat: string | string[]): Date | null;
|
|
108
|
+
/**
|
|
109
|
+
* Formats a `Date` using the given date-fns display format string.
|
|
110
|
+
* Throws an `Error` when `date` is not valid.
|
|
111
|
+
* @param date - The date to format.
|
|
112
|
+
* @param displayFormat - A date-fns format string (e.g. `'P'`, `'LLL uuuu'`).
|
|
113
|
+
*/
|
|
114
|
+
format(date: Date, displayFormat: string): string;
|
|
115
|
+
/**
|
|
116
|
+
* Adds the given number of whole years to a date.
|
|
117
|
+
* @param date - The base date.
|
|
118
|
+
* @param years - Number of years to add (can be negative).
|
|
119
|
+
*/
|
|
120
|
+
addCalendarYears(date: Date, years: number): Date;
|
|
121
|
+
/**
|
|
122
|
+
* Adds the given number of whole months to a date.
|
|
123
|
+
* @param date - The base date.
|
|
124
|
+
* @param months - Number of months to add (can be negative).
|
|
125
|
+
*/
|
|
126
|
+
addCalendarMonths(date: Date, months: number): Date;
|
|
127
|
+
/**
|
|
128
|
+
* Adds the given number of whole days to a date.
|
|
129
|
+
* @param date - The base date.
|
|
130
|
+
* @param days - Number of days to add (can be negative).
|
|
131
|
+
*/
|
|
132
|
+
addCalendarDays(date: Date, days: number): Date;
|
|
133
|
+
/**
|
|
134
|
+
* Serialises a date to an ISO 8601 date string (`yyyy-MM-dd`).
|
|
135
|
+
* @param date - The date to serialise.
|
|
136
|
+
*/
|
|
137
|
+
toIso8601(date: Date): string;
|
|
138
|
+
/**
|
|
139
|
+
* Returns the given value when it is a valid `Date`, or `null` for an empty string.
|
|
140
|
+
* Deserialises valid ISO 8601 strings into `Date` instances.
|
|
141
|
+
* Delegates all other values to the base-class implementation.
|
|
142
|
+
* @param value - The raw value to deserialise.
|
|
143
|
+
*/
|
|
144
|
+
deserialize(value: unknown): Date | null;
|
|
145
|
+
/**
|
|
146
|
+
* Returns `true` when `obj` is an instance of `Date`.
|
|
147
|
+
* @param obj - The object to test.
|
|
148
|
+
*/
|
|
149
|
+
isDateInstance(obj: unknown): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Returns `true` when `date` represents a valid point in time.
|
|
152
|
+
* @param date - The date to validate.
|
|
153
|
+
*/
|
|
154
|
+
isValid(date: Date): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Returns a sentinel `Date` that represents an invalid date (`new Date(NaN)`).
|
|
157
|
+
*/
|
|
158
|
+
invalid(): Date;
|
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsAdapter, never>;
|
|
160
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsAdapter>;
|
|
154
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Standalone providers for the ars-utils date-fns adapter.
|
|
164
|
+
*
|
|
165
|
+
* Configures Angular Material to use {@link DateFnsAdapter} (Europe/Rome timezone)
|
|
166
|
+
* and the matching {@link MAT_DATE_FNS_FORMATS}.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* bootstrapApplication(AppComponent, {
|
|
170
|
+
* providers: [provideArsDateFns()]
|
|
171
|
+
* });
|
|
172
|
+
*/
|
|
173
|
+
declare function provideArsDateFns(): EnvironmentProviders;
|
|
155
174
|
|
|
156
175
|
/**
|
|
157
|
-
* Directive that
|
|
158
|
-
* Apply `
|
|
176
|
+
* Directive that moves browser focus to the host element after the first render cycle.
|
|
177
|
+
* Apply `autoFocus` to any focusable element to set focus automatically on initialisation.
|
|
159
178
|
*/
|
|
160
|
-
declare class
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
166
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordValidatorDirective, never>;
|
|
167
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordValidatorDirective, "[password]", never, {}, {}, never, never, true, never>;
|
|
179
|
+
declare class AutoFocusDirective {
|
|
180
|
+
private readonly elementRef;
|
|
181
|
+
constructor();
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFocusDirective, never>;
|
|
183
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoFocusDirective, "[autoFocus]", never, {}, {}, never, never, true, never>;
|
|
168
184
|
}
|
|
169
185
|
|
|
170
186
|
interface INode {
|
|
@@ -675,22 +691,204 @@ interface LoginResult<T> extends ApiResult<boolean> {
|
|
|
675
691
|
* into a {@link DateInterval} model, converting shorthand strings (e.g. "d/m") to dates.
|
|
676
692
|
* Apply `[dateIntervalChange]="interval"` to the host `<input>` element.
|
|
677
693
|
*/
|
|
678
|
-
declare class DateIntervalChangeDirective {
|
|
679
|
-
/** The date interval model to update when the input value changes. */
|
|
680
|
-
readonly dateIntervalChange: i0.InputSignal<DateInterval>;
|
|
681
|
-
/** When `true`, the directive updates the interval's end date; otherwise the start date. */
|
|
682
|
-
readonly end: i0.InputSignal<boolean>;
|
|
683
|
-
private readonly subject;
|
|
684
|
-
private readonly destroyRef;
|
|
685
|
-
constructor();
|
|
694
|
+
declare class DateIntervalChangeDirective {
|
|
695
|
+
/** The date interval model to update when the input value changes. */
|
|
696
|
+
readonly dateIntervalChange: i0.InputSignal<DateInterval>;
|
|
697
|
+
/** When `true`, the directive updates the interval's end date; otherwise the start date. */
|
|
698
|
+
readonly end: i0.InputSignal<boolean>;
|
|
699
|
+
private readonly subject;
|
|
700
|
+
private readonly destroyRef;
|
|
701
|
+
constructor();
|
|
702
|
+
/**
|
|
703
|
+
* Handles `keyup` events on the host element.
|
|
704
|
+
* Prevents default browser behaviour for the space key and forwards the event to the debounce pipeline.
|
|
705
|
+
* @param e - The keyboard event emitted by the host input.
|
|
706
|
+
*/
|
|
707
|
+
onKeyup(e: KeyboardEvent): void;
|
|
708
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateIntervalChangeDirective, never>;
|
|
709
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateIntervalChangeDirective, "[dateIntervalChange]", never, { "dateIntervalChange": { "alias": "dateIntervalChange"; "required": false; "isSignal": true; }; "end": { "alias": "end"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Directive that copies a string payload to the clipboard when the host element is clicked.
|
|
714
|
+
* Bind `[copyClipboard]="text"` to provide the content to copy and listen to `(copied)` for confirmation.
|
|
715
|
+
*/
|
|
716
|
+
declare class CopyClipboardDirective {
|
|
717
|
+
/** The text to copy to the clipboard. Bound via the `copyClipboard` attribute. */
|
|
718
|
+
readonly payload: i0.InputSignal<string>;
|
|
719
|
+
/** Emits the copied text after a successful copy operation. */
|
|
720
|
+
readonly copied: i0.OutputEmitterRef<string>;
|
|
721
|
+
/**
|
|
722
|
+
* Handles click events on the host element and copies the payload to the clipboard.
|
|
723
|
+
* Emits `copied` with the copied text on success.
|
|
724
|
+
* @param e - The mouse click event.
|
|
725
|
+
*/
|
|
726
|
+
onClick(e: MouseEvent): void;
|
|
727
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyClipboardDirective, never>;
|
|
728
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CopyClipboardDirective, "[copyClipboard]", never, { "payload": { "alias": "copyClipboard"; "required": false; "isSignal": true; }; }, { "copied": "copied"; }, never, never, true, never>;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Directive that validates a semicolon-separated list of email addresses.
|
|
733
|
+
* Apply `emails` to a text input containing one or more addresses separated by `;`.
|
|
734
|
+
*/
|
|
735
|
+
declare class EmailsValidatorDirective implements Validator {
|
|
736
|
+
/**
|
|
737
|
+
* Validates each address in a semicolon-separated email list.
|
|
738
|
+
* Returns `null` when the control is empty.
|
|
739
|
+
* @param control - The form control to validate.
|
|
740
|
+
*/
|
|
741
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
742
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmailsValidatorDirective, never>;
|
|
743
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EmailsValidatorDirective, "[emails]", never, {}, {}, never, never, true, never>;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Directive that validates that the host control's value equals the value of another control.
|
|
748
|
+
* Bind `[equals]="otherControl"`.
|
|
749
|
+
*/
|
|
750
|
+
declare class EqualsValidatorDirective implements Validator {
|
|
751
|
+
/** The control whose value must match the host control's value. */
|
|
752
|
+
readonly equals: i0.InputSignal<AbstractControl<any, any, any>>;
|
|
753
|
+
/**
|
|
754
|
+
* Validates that the host control value equals the bound control's value.
|
|
755
|
+
* Returns `null` (valid) when no control is bound.
|
|
756
|
+
* @param control - The form control to validate.
|
|
757
|
+
*/
|
|
758
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
759
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EqualsValidatorDirective, never>;
|
|
760
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EqualsValidatorDirective, "[equals]", never, { "equals": { "alias": "equals"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Directive that validates a file size against configurable minimum and maximum bounds.
|
|
765
|
+
* Bind `[fileSize]` together with `[size]="fileSizeInMb"`, `[maxSizeMb]`, and `[minSizeMb]`.
|
|
766
|
+
*/
|
|
767
|
+
declare class FileSizeValidatorDirective implements Validator {
|
|
768
|
+
/** Maximum allowed file size in megabytes. Defaults to 5. */
|
|
769
|
+
readonly maxSizeMb: i0.InputSignal<number>;
|
|
770
|
+
/** Minimum required file size in megabytes. Defaults to 0. */
|
|
771
|
+
readonly minSizeMb: i0.InputSignal<number>;
|
|
772
|
+
/** The actual file size in megabytes to validate against the bounds. */
|
|
773
|
+
readonly size: i0.InputSignal<number>;
|
|
774
|
+
/**
|
|
775
|
+
* Validates that the bound file size falls within the configured min/max range.
|
|
776
|
+
* Returns `null` when no control value is present.
|
|
777
|
+
* @param control - The form control to validate.
|
|
778
|
+
*/
|
|
779
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
780
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileSizeValidatorDirective, never>;
|
|
781
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileSizeValidatorDirective, "[fileSize]", never, { "maxSizeMb": { "alias": "maxSizeMb"; "required": false; "isSignal": true; }; "minSizeMb": { "alias": "minSizeMb"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Directive that validates a control value as a GUID / UUID string.
|
|
786
|
+
* Apply `guid` to a text input that expects a valid UUID.
|
|
787
|
+
*/
|
|
788
|
+
declare class GuidValidatorDirective implements Validator {
|
|
789
|
+
/**
|
|
790
|
+
* Validates that the control value is a well-formed GUID / UUID.
|
|
791
|
+
* Returns `null` when the control is empty.
|
|
792
|
+
* @param control - The form control to validate.
|
|
793
|
+
*/
|
|
794
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
795
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuidValidatorDirective, never>;
|
|
796
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GuidValidatorDirective, "[guid]", never, {}, {}, never, never, true, never>;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Directive that validates that a control value does not exceed a maximum word count.
|
|
801
|
+
* Bind `[maxTerms]="10"` to allow at most 10 whitespace-separated terms.
|
|
802
|
+
*/
|
|
803
|
+
declare class MaxTermsValidatorDirective implements Validator {
|
|
804
|
+
/** The maximum number of whitespace-separated terms allowed. */
|
|
805
|
+
readonly maxTerms: i0.InputSignal<number>;
|
|
806
|
+
/**
|
|
807
|
+
* Validates that the control value contains no more than the configured number of terms.
|
|
808
|
+
* Returns `null` when the control is empty.
|
|
809
|
+
* @param control - The form control to validate.
|
|
810
|
+
*/
|
|
811
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
812
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaxTermsValidatorDirective, never>;
|
|
813
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxTermsValidatorDirective, "[maxTerms]", never, { "maxTerms": { "alias": "maxTerms"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Directive that validates that a string control value is not blank (whitespace-only).
|
|
818
|
+
* Apply `notEmpty` to a text input where non-blank content is required.
|
|
819
|
+
*/
|
|
820
|
+
declare class NotEmptyValidatorDirective implements Validator {
|
|
821
|
+
/**
|
|
822
|
+
* Validates that the control value is a non-blank string.
|
|
823
|
+
* Returns `null` when the control is empty or not a string.
|
|
824
|
+
* @param control - The form control to validate.
|
|
825
|
+
*/
|
|
826
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
827
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotEmptyValidatorDirective, never>;
|
|
828
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NotEmptyValidatorDirective, "[notEmpty]", never, {}, {}, never, never, true, never>;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Directive that validates that the host control's value is different from another control's value.
|
|
833
|
+
* Bind `[notEqual]="otherControl"`.
|
|
834
|
+
*/
|
|
835
|
+
declare class NotEqualValidatorDirective implements Validator {
|
|
836
|
+
/** The control whose value must differ from the host control's value. */
|
|
837
|
+
readonly notEqual: i0.InputSignal<AbstractControl<any, any, any>>;
|
|
838
|
+
/**
|
|
839
|
+
* Validates that the host control value is not equal to the bound control's value.
|
|
840
|
+
* Also clears the `notequal` error on the other control when the host becomes valid.
|
|
841
|
+
* Returns `null` (valid) when no control is bound.
|
|
842
|
+
* @param control - The form control to validate.
|
|
843
|
+
*/
|
|
844
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
845
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotEqualValidatorDirective, never>;
|
|
846
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NotEqualValidatorDirective, "[notEqual]", never, { "notEqual": { "alias": "notEqual"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Directive that validates that a control value is not a future date.
|
|
851
|
+
* Apply `notFuture` to a text input that expects a date on or before today.
|
|
852
|
+
*/
|
|
853
|
+
declare class NotFutureValidatorDirective implements Validator {
|
|
854
|
+
/**
|
|
855
|
+
* Validates that the control value represents a date that is not in the future.
|
|
856
|
+
* Returns `null` when the control is empty.
|
|
857
|
+
* @param control - The form control to validate.
|
|
858
|
+
*/
|
|
859
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
860
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotFutureValidatorDirective, never>;
|
|
861
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NotFutureValidatorDirective, "[notFuture]", never, {}, {}, never, never, true, never>;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Directive that validates a control value as a sufficiently strong password.
|
|
866
|
+
* Apply `password` to a password input.
|
|
867
|
+
*/
|
|
868
|
+
declare class PasswordValidatorDirective implements Validator {
|
|
869
|
+
/**
|
|
870
|
+
* Validates that the control value meets the minimum password-strength requirements.
|
|
871
|
+
* @param control - The form control to validate.
|
|
872
|
+
*/
|
|
873
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
874
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordValidatorDirective, never>;
|
|
875
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordValidatorDirective, "[password]", never, {}, {}, never, never, true, never>;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Directive that removes focus from the host element after it is clicked,
|
|
880
|
+
* preventing the browser from keeping a visible focus ring post-interaction.
|
|
881
|
+
* Apply `removeFocus` to any focusable element (e.g. a button).
|
|
882
|
+
*/
|
|
883
|
+
declare class RemoveFocusDirective {
|
|
884
|
+
private readonly elementRef;
|
|
686
885
|
/**
|
|
687
|
-
* Handles
|
|
688
|
-
*
|
|
689
|
-
* @param e - The keyboard event emitted by the host input.
|
|
886
|
+
* Handles click events on the host element and blurs it on the next event-loop tick
|
|
887
|
+
* so that the click action completes before focus is removed.
|
|
690
888
|
*/
|
|
691
|
-
|
|
692
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
693
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
889
|
+
onClick(): void;
|
|
890
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveFocusDirective, never>;
|
|
891
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RemoveFocusDirective, "[removeFocus]", never, {}, {}, never, never, true, never>;
|
|
694
892
|
}
|
|
695
893
|
|
|
696
894
|
/**
|
|
@@ -709,111 +907,111 @@ declare class SqlDateValidatorDirective implements Validator {
|
|
|
709
907
|
}
|
|
710
908
|
|
|
711
909
|
/**
|
|
712
|
-
*
|
|
713
|
-
*
|
|
714
|
-
* Each item is matched either via its `searchBag.name` property (when present)
|
|
715
|
-
* or by converting the item itself to a lowercase string. The optional `metadata`
|
|
716
|
-
* argument is updated in-place with the total item count and the filtered count,
|
|
717
|
-
* making it usable in the template alongside `*ngFor`.
|
|
718
|
-
*
|
|
719
|
-
* Usage:
|
|
720
|
-
* ```html
|
|
721
|
-
* <div *ngFor="let item of items | search:filterText:meta">...</div>
|
|
722
|
-
* <div>Showing {{ meta.count }} of {{ meta.total }}</div>
|
|
723
|
-
* ```
|
|
910
|
+
* Directive that validates a time string against optional allowed time slot ranges.
|
|
911
|
+
* Bind `[time]` and optionally `[slots]="'08:00-12:00|14:00-18:00'"` (pipe-separated ranges).
|
|
724
912
|
*/
|
|
725
|
-
declare class
|
|
913
|
+
declare class TimeValidatorDirective implements Validator {
|
|
914
|
+
/** Optional pipe-separated list of allowed time ranges, e.g. `"08:00-12:00|14:00-18:00"`. */
|
|
915
|
+
readonly slots: i0.InputSignal<string>;
|
|
726
916
|
/**
|
|
727
|
-
*
|
|
728
|
-
*
|
|
729
|
-
* @param
|
|
730
|
-
* @param value - The search text to match against each item. May be `undefined`.
|
|
731
|
-
* @param metadata - Optional object that is updated with `total` and `count` after filtering.
|
|
732
|
-
* @returns The filtered array, the original array when no filter text is given,
|
|
733
|
-
* or `undefined` when `items` is `undefined`.
|
|
917
|
+
* Parses a `"HH:MM"` time string into a comparable integer (e.g. `"09:30"` -> `930`).
|
|
918
|
+
* Returns `-1` when the string is not a valid time.
|
|
919
|
+
* @param value - The time string to parse.
|
|
734
920
|
*/
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
921
|
+
private getTime;
|
|
922
|
+
/**
|
|
923
|
+
* Validates that the control value is a valid time string and, when slots are configured,
|
|
924
|
+
* that it falls within at least one of the allowed ranges.
|
|
925
|
+
* Returns `null` when the control is empty.
|
|
926
|
+
* @param control - The form control to validate.
|
|
927
|
+
*/
|
|
928
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
929
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeValidatorDirective, never>;
|
|
930
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimeValidatorDirective, "[time]", never, { "slots": { "alias": "slots"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
738
931
|
}
|
|
739
932
|
|
|
740
933
|
/**
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
* which is necessary when the predicate's captured state changes.
|
|
744
|
-
*
|
|
745
|
-
* Usage: `*ngFor="let item of items | callback:myFilter"`
|
|
934
|
+
* Directive that validates a control value as a well-formed URL.
|
|
935
|
+
* Apply `url` to a text input that expects a URL.
|
|
746
936
|
*/
|
|
747
|
-
declare class
|
|
937
|
+
declare class UrlValidatorDirective implements Validator {
|
|
748
938
|
/**
|
|
749
|
-
*
|
|
750
|
-
* Returns
|
|
751
|
-
* @param
|
|
752
|
-
* @param callback - A predicate function that returns `true` for items to keep.
|
|
753
|
-
* @returns A new filtered array, the original array when no callback is provided,
|
|
754
|
-
* or `undefined` when `items` is `undefined`.
|
|
939
|
+
* Validates that the control value is a well-formed URL.
|
|
940
|
+
* Returns `null` (valid) when the control is empty.
|
|
941
|
+
* @param control - The form control to validate.
|
|
755
942
|
*/
|
|
756
|
-
|
|
757
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
758
|
-
static
|
|
943
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
944
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UrlValidatorDirective, never>;
|
|
945
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UrlValidatorDirective, "[url]", never, {}, {}, never, never, true, never>;
|
|
759
946
|
}
|
|
760
947
|
|
|
761
948
|
/**
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
*
|
|
765
|
-
* Usage: `<div [innerHTML]="html | safeHtml"></div>`
|
|
949
|
+
* Directive that validates a control using the host object's `isValid()` method
|
|
950
|
+
* or a boolean expression passed via `[validIf]`.
|
|
766
951
|
*/
|
|
767
|
-
declare class
|
|
768
|
-
|
|
952
|
+
declare class ValidIfDirective implements Validator {
|
|
953
|
+
/** When `true`, the control is considered valid regardless of the bound value. */
|
|
954
|
+
readonly validIf: i0.InputSignal<boolean>;
|
|
769
955
|
/**
|
|
770
|
-
*
|
|
771
|
-
* @param
|
|
772
|
-
* @returns A `SafeHtml` value that can be bound to `[innerHTML]` without escaping.
|
|
956
|
+
* Validates the control value against a boolean flag or the value's own `isValid()` method.
|
|
957
|
+
* @param control - The form control to validate.
|
|
773
958
|
*/
|
|
774
|
-
|
|
775
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
776
|
-
static
|
|
959
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
960
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidIfDirective, never>;
|
|
961
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidIfDirective, "[validIf]", never, { "validIf": { "alias": "validIf"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
777
962
|
}
|
|
778
963
|
|
|
779
964
|
/**
|
|
780
|
-
*
|
|
781
|
-
*
|
|
965
|
+
* Directive that delegates validation to an externally provided validator function.
|
|
966
|
+
* Bind `[validator]="myFn"` where `myFn` is `(c: AbstractControl) => ValidationErrors | null`.
|
|
967
|
+
*/
|
|
968
|
+
declare class ValidatorDirective implements Validator {
|
|
969
|
+
/** The custom validator function to apply. */
|
|
970
|
+
readonly validator: i0.InputSignal<(control: AbstractControl) => ValidationErrors | null>;
|
|
971
|
+
/**
|
|
972
|
+
* Invokes the provided validator function against the given control.
|
|
973
|
+
* Returns `null` (valid) when no function is bound.
|
|
974
|
+
* @param control - The form control to validate.
|
|
975
|
+
*/
|
|
976
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
977
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorDirective, never>;
|
|
978
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidatorDirective, "[validator]", never, { "validator": { "alias": "validator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* Pipe that converts plain-text newlines (`\r\n`, `\r`, `\n`) to HTML `<br>` tags
|
|
983
|
+
* and marks the result as trusted HTML so Angular does not escape it.
|
|
782
984
|
*
|
|
783
|
-
* Usage:
|
|
985
|
+
* Usage: `{{ text | formatHtml }}`
|
|
784
986
|
*/
|
|
785
|
-
declare class
|
|
987
|
+
declare class FormatHtmlPipe implements PipeTransform {
|
|
786
988
|
private readonly sanitizer;
|
|
787
989
|
/**
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
* @
|
|
990
|
+
* Transforms a plain-text string into sanitized HTML by replacing newline characters
|
|
991
|
+
* with `<br>` tags.
|
|
992
|
+
* @param value - The input string to transform. Treated as an empty string when `undefined`.
|
|
993
|
+
* @returns A `SafeHtml` value that can be rendered with `[innerHTML]`.
|
|
791
994
|
*/
|
|
792
|
-
transform(value?: string):
|
|
793
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
794
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<
|
|
995
|
+
transform(value?: string): SafeHtml;
|
|
996
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatHtmlPipe, never>;
|
|
997
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormatHtmlPipe, "formatHtml", true>;
|
|
795
998
|
}
|
|
796
999
|
|
|
797
1000
|
/**
|
|
798
|
-
* Pipe that
|
|
799
|
-
* as sanitized HTML. When `regexValue` is `'\n'` and no `replaceValue` is given,
|
|
800
|
-
* newlines are replaced with `<br>` tags.
|
|
1001
|
+
* Pipe that converts a Markdown string to sanitized HTML using `SystemUtils.markdownToHtml`.
|
|
801
1002
|
*
|
|
802
|
-
* Usage: `{{ text |
|
|
1003
|
+
* Usage: `{{ text | formatMarkdown }}`
|
|
803
1004
|
*/
|
|
804
|
-
declare class
|
|
1005
|
+
declare class FormatMarkdownPipe implements PipeTransform {
|
|
805
1006
|
private readonly sanitizer;
|
|
806
1007
|
/**
|
|
807
|
-
*
|
|
808
|
-
*
|
|
809
|
-
* @
|
|
810
|
-
* @param regexValue - The regex pattern string to match (applied with the global flag).
|
|
811
|
-
* @param replaceValue - The replacement string. Defaults to `'<br>'` when `regexValue` is `'\n'` and this is falsy.
|
|
812
|
-
* @returns A `SafeHtml` value with all matches replaced, or `undefined` when the input is empty.
|
|
1008
|
+
* Transforms a Markdown string into sanitized HTML.
|
|
1009
|
+
* @param value - The Markdown input to convert. Treated as an empty string when `undefined`.
|
|
1010
|
+
* @returns A `SafeHtml` value that can be rendered with `[innerHTML]`.
|
|
813
1011
|
*/
|
|
814
|
-
transform(value
|
|
815
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
816
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<
|
|
1012
|
+
transform(value?: string): SafeHtml;
|
|
1013
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatMarkdownPipe, never>;
|
|
1014
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormatMarkdownPipe, "formatMarkdown", true>;
|
|
817
1015
|
}
|
|
818
1016
|
|
|
819
1017
|
/**
|
|
@@ -840,69 +1038,111 @@ declare class FormatPipe implements PipeTransform {
|
|
|
840
1038
|
}
|
|
841
1039
|
|
|
842
1040
|
/**
|
|
843
|
-
* Pipe that
|
|
844
|
-
*
|
|
1041
|
+
* Pipe that applies a global regex replacement on a string and returns the result
|
|
1042
|
+
* as sanitized HTML. When `regexValue` is `'\n'` and no `replaceValue` is given,
|
|
1043
|
+
* newlines are replaced with `<br>` tags.
|
|
845
1044
|
*
|
|
846
|
-
* Usage: `{{ text |
|
|
1045
|
+
* Usage: `{{ text | replace:'\n':'' }}`
|
|
847
1046
|
*/
|
|
848
|
-
declare class
|
|
1047
|
+
declare class ReplacePipe implements PipeTransform {
|
|
849
1048
|
private readonly sanitizer;
|
|
850
1049
|
/**
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
* @param value
|
|
854
|
-
* @
|
|
1050
|
+
* Replaces all occurrences of `regexValue` in `value` with `replaceValue`.
|
|
1051
|
+
* Returns `undefined` when `value` is empty or `undefined`.
|
|
1052
|
+
* @param value - The source string to process.
|
|
1053
|
+
* @param regexValue - The regex pattern string to match (applied with the global flag).
|
|
1054
|
+
* @param replaceValue - The replacement string. Defaults to `'<br>'` when `regexValue` is `'\n'` and this is falsy.
|
|
1055
|
+
* @returns A `SafeHtml` value with all matches replaced, or `undefined` when the input is empty.
|
|
1056
|
+
*/
|
|
1057
|
+
transform(value: string | undefined, regexValue: string, replaceValue: string): SafeHtml | undefined;
|
|
1058
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReplacePipe, never>;
|
|
1059
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ReplacePipe, "replace", true>;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Pipe that marks an HTML string as trusted so Angular does not escape it when
|
|
1064
|
+
* bound via `[innerHTML]`.
|
|
1065
|
+
*
|
|
1066
|
+
* Usage: `<div [innerHTML]="html | safeHtml"></div>`
|
|
1067
|
+
*/
|
|
1068
|
+
declare class SafeHtmlPipe implements PipeTransform {
|
|
1069
|
+
private readonly sanitizer;
|
|
1070
|
+
/**
|
|
1071
|
+
* Bypasses Angular's HTML sanitization and returns a `SafeHtml` instance.
|
|
1072
|
+
* @param value - The raw HTML string to trust. Treated as an empty string when `undefined`.
|
|
1073
|
+
* @returns A `SafeHtml` value that can be bound to `[innerHTML]` without escaping.
|
|
855
1074
|
*/
|
|
856
1075
|
transform(value?: string): SafeHtml;
|
|
857
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
858
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<
|
|
1076
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
1077
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", true>;
|
|
859
1078
|
}
|
|
860
1079
|
|
|
861
1080
|
/**
|
|
862
|
-
*
|
|
863
|
-
*
|
|
1081
|
+
* Pipe that marks a URL string as a trusted resource URL so Angular does not block it
|
|
1082
|
+
* when bound to attributes such as `[src]` or `[href]` on iframes, objects, or embeds.
|
|
1083
|
+
*
|
|
1084
|
+
* Usage: `<iframe [src]="url | safeUrl"></iframe>`
|
|
864
1085
|
*/
|
|
865
|
-
declare class
|
|
866
|
-
|
|
867
|
-
readonly payload: i0.InputSignal<string>;
|
|
868
|
-
/** Emits the copied text after a successful copy operation. */
|
|
869
|
-
readonly copied: i0.OutputEmitterRef<string>;
|
|
1086
|
+
declare class SafeUrlPipe implements PipeTransform {
|
|
1087
|
+
private readonly sanitizer;
|
|
870
1088
|
/**
|
|
871
|
-
*
|
|
872
|
-
*
|
|
873
|
-
* @
|
|
1089
|
+
* Bypasses Angular's resource-URL sanitization and returns a `SafeResourceUrl` instance.
|
|
1090
|
+
* @param value - The URL string to trust. Treated as an empty string when `undefined`.
|
|
1091
|
+
* @returns A `SafeResourceUrl` that can be bound to resource URL attributes without blocking.
|
|
874
1092
|
*/
|
|
875
|
-
|
|
876
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
877
|
-
static
|
|
1093
|
+
transform(value?: string): SafeResourceUrl;
|
|
1094
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeUrlPipe, never>;
|
|
1095
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeUrlPipe, "safeUrl", true>;
|
|
878
1096
|
}
|
|
879
1097
|
|
|
880
1098
|
/**
|
|
881
|
-
*
|
|
882
|
-
*
|
|
1099
|
+
* Impure pipe that filters an array using a caller-provided predicate function.
|
|
1100
|
+
* Because the pipe is impure it re-evaluates on every change-detection cycle,
|
|
1101
|
+
* which is necessary when the predicate's captured state changes.
|
|
1102
|
+
*
|
|
1103
|
+
* Usage: `*ngFor="let item of items | callback:myFilter"`
|
|
883
1104
|
*/
|
|
884
|
-
declare class
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
1105
|
+
declare class SearchCallbackPipe implements PipeTransform {
|
|
1106
|
+
/**
|
|
1107
|
+
* Filters `items` by applying `callback` to each element.
|
|
1108
|
+
* Returns the original array unchanged when either argument is falsy.
|
|
1109
|
+
* @param items - The source array to filter. May be `undefined`.
|
|
1110
|
+
* @param callback - A predicate function that returns `true` for items to keep.
|
|
1111
|
+
* @returns A new filtered array, the original array when no callback is provided,
|
|
1112
|
+
* or `undefined` when `items` is `undefined`.
|
|
1113
|
+
*/
|
|
1114
|
+
transform<T>(items: T[] | undefined, callback: ((item: T) => boolean) | undefined): T[] | undefined;
|
|
1115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchCallbackPipe, never>;
|
|
1116
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SearchCallbackPipe, "callback", true>;
|
|
889
1117
|
}
|
|
890
1118
|
|
|
891
1119
|
/**
|
|
892
|
-
*
|
|
893
|
-
*
|
|
1120
|
+
* Impure pipe that filters an array of searchable items against a text query.
|
|
1121
|
+
*
|
|
1122
|
+
* Each item is matched either via its `searchBag.name` property (when present)
|
|
1123
|
+
* or by converting the item itself to a lowercase string. The optional `metadata`
|
|
1124
|
+
* argument is updated in-place with the total item count and the filtered count,
|
|
1125
|
+
* making it usable in the template alongside `*ngFor`.
|
|
1126
|
+
*
|
|
1127
|
+
* Usage:
|
|
1128
|
+
* ```html
|
|
1129
|
+
* <div *ngFor="let item of items | search:filterText:meta">...</div>
|
|
1130
|
+
* <div>Showing {{ meta.count }} of {{ meta.total }}</div>
|
|
1131
|
+
* ```
|
|
894
1132
|
*/
|
|
895
|
-
declare class
|
|
896
|
-
/** The maximum number of whitespace-separated terms allowed. */
|
|
897
|
-
readonly maxTerms: i0.InputSignal<number>;
|
|
1133
|
+
declare class SearchFilterPipe implements PipeTransform {
|
|
898
1134
|
/**
|
|
899
|
-
*
|
|
900
|
-
*
|
|
901
|
-
* @param
|
|
1135
|
+
* Filters `items` by performing a case-insensitive substring match against `value`.
|
|
1136
|
+
* When `items` or `value` is falsy the original array is returned unfiltered.
|
|
1137
|
+
* @param items - The source array to filter. May be `undefined`.
|
|
1138
|
+
* @param value - The search text to match against each item. May be `undefined`.
|
|
1139
|
+
* @param metadata - Optional object that is updated with `total` and `count` after filtering.
|
|
1140
|
+
* @returns The filtered array, the original array when no filter text is given,
|
|
1141
|
+
* or `undefined` when `items` is `undefined`.
|
|
902
1142
|
*/
|
|
903
|
-
|
|
904
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
905
|
-
static
|
|
1143
|
+
transform(items?: any[], value?: string, metadata?: SearchFilterMetadata): any[] | undefined;
|
|
1144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchFilterPipe, never>;
|
|
1145
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SearchFilterPipe, "search", true>;
|
|
906
1146
|
}
|
|
907
1147
|
|
|
908
1148
|
declare const Breakpoints: {
|
|
@@ -1303,229 +1543,5 @@ declare class ThemeService implements OnDestroy {
|
|
|
1303
1543
|
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
1304
1544
|
}
|
|
1305
1545
|
|
|
1306
|
-
|
|
1307
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArsCoreModule, never>;
|
|
1308
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArsCoreModule, never, [typeof FileSizeValidatorDirective, typeof ValidIfDirective, typeof ValidatorDirective, typeof EqualsValidatorDirective, typeof GuidValidatorDirective, typeof EmailsValidatorDirective, typeof UrlValidatorDirective, typeof NotFutureValidatorDirective, typeof NotEmptyValidatorDirective, typeof PasswordValidatorDirective, typeof DateIntervalChangeDirective, typeof SqlDateValidatorDirective, typeof SearchFilterPipe, typeof SearchCallbackPipe, typeof SafeHtmlPipe, typeof SafeUrlPipe, typeof ReplacePipe, typeof FormatPipe, typeof FormatHtmlPipe, typeof CopyClipboardDirective, typeof AutoFocusDirective, typeof MaxTermsValidatorDirective], [typeof FileSizeValidatorDirective, typeof ValidIfDirective, typeof ValidatorDirective, typeof EqualsValidatorDirective, typeof GuidValidatorDirective, typeof EmailsValidatorDirective, typeof UrlValidatorDirective, typeof NotFutureValidatorDirective, typeof NotEmptyValidatorDirective, typeof PasswordValidatorDirective, typeof DateIntervalChangeDirective, typeof SqlDateValidatorDirective, typeof SearchFilterPipe, typeof SearchCallbackPipe, typeof SafeHtmlPipe, typeof SafeUrlPipe, typeof ReplacePipe, typeof FormatPipe, typeof FormatHtmlPipe, typeof CopyClipboardDirective, typeof AutoFocusDirective, typeof MaxTermsValidatorDirective]>;
|
|
1309
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ArsCoreModule>;
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
declare const MAT_DATE_FNS_FORMATS: MatDateFormats;
|
|
1313
|
-
/**
|
|
1314
|
-
* date-fns adapter that integrates Angular Material's date picker with the date-fns library,
|
|
1315
|
-
* applying `Europe/Rome` timezone for all parsed and created dates.
|
|
1316
|
-
*/
|
|
1317
|
-
declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
1318
|
-
constructor(...args: unknown[]);
|
|
1319
|
-
/**
|
|
1320
|
-
* Returns the year component of the given date.
|
|
1321
|
-
* @param date - The source date.
|
|
1322
|
-
*/
|
|
1323
|
-
getYear(date: Date): number;
|
|
1324
|
-
/**
|
|
1325
|
-
* Returns the zero-based month index of the given date (0 = January).
|
|
1326
|
-
* @param date - The source date.
|
|
1327
|
-
*/
|
|
1328
|
-
getMonth(date: Date): number;
|
|
1329
|
-
/**
|
|
1330
|
-
* Returns the day-of-month of the given date (1-based).
|
|
1331
|
-
* @param date - The source date.
|
|
1332
|
-
*/
|
|
1333
|
-
getDate(date: Date): number;
|
|
1334
|
-
/**
|
|
1335
|
-
* Returns the day-of-week of the given date (0 = Sunday).
|
|
1336
|
-
* @param date - The source date.
|
|
1337
|
-
*/
|
|
1338
|
-
getDayOfWeek(date: Date): number;
|
|
1339
|
-
/**
|
|
1340
|
-
* Returns an array of 12 month name strings formatted for the active locale.
|
|
1341
|
-
* @param style - One of `'long'`, `'short'`, or `'narrow'`.
|
|
1342
|
-
*/
|
|
1343
|
-
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
1344
|
-
/**
|
|
1345
|
-
* Returns an array of 31 day-of-month label strings formatted using `Intl.DateTimeFormat`
|
|
1346
|
-
* when available, falling back to plain numeric strings.
|
|
1347
|
-
*/
|
|
1348
|
-
getDateNames(): string[];
|
|
1349
|
-
/**
|
|
1350
|
-
* Returns an array of 7 day-of-week name strings formatted for the active locale.
|
|
1351
|
-
* @param style - One of `'long'`, `'short'`, or `'narrow'`.
|
|
1352
|
-
*/
|
|
1353
|
-
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
1354
|
-
/**
|
|
1355
|
-
* Returns the four-digit year string for the given date.
|
|
1356
|
-
* @param date - The source date.
|
|
1357
|
-
*/
|
|
1358
|
-
getYearName(date: Date): string;
|
|
1359
|
-
/**
|
|
1360
|
-
* Returns the first day of the week for the active locale (0 = Sunday, 1 = Monday, …).
|
|
1361
|
-
*/
|
|
1362
|
-
getFirstDayOfWeek(): number;
|
|
1363
|
-
/**
|
|
1364
|
-
* Returns the number of days in the month of the given date.
|
|
1365
|
-
* @param date - The source date.
|
|
1366
|
-
*/
|
|
1367
|
-
getNumDaysInMonth(date: Date): number;
|
|
1368
|
-
/**
|
|
1369
|
-
* Creates an independent copy of the given date.
|
|
1370
|
-
* @param date - The date to clone.
|
|
1371
|
-
*/
|
|
1372
|
-
clone(date: Date): Date;
|
|
1373
|
-
/**
|
|
1374
|
-
* Creates a `Date` in the `Europe/Rome` timezone for the given year, month, and day.
|
|
1375
|
-
* Throws an `Error` when any component is out of range.
|
|
1376
|
-
* @param year - Full four-digit year.
|
|
1377
|
-
* @param month - Zero-based month index (0 = January, 11 = December).
|
|
1378
|
-
* @param date - Day-of-month (1-based).
|
|
1379
|
-
*/
|
|
1380
|
-
createDate(year: number, month: number, date: number): Date;
|
|
1381
|
-
/**
|
|
1382
|
-
* Returns today's date in the local timezone.
|
|
1383
|
-
*/
|
|
1384
|
-
today(): Date;
|
|
1385
|
-
/**
|
|
1386
|
-
* Parses a value into a `Date`.
|
|
1387
|
-
* - Strings are first attempted as ISO 8601, then matched against each format in `parseFormat`.
|
|
1388
|
-
* - Numbers are treated as Unix timestamps (milliseconds).
|
|
1389
|
-
* - Existing `Date` instances are cloned.
|
|
1390
|
-
* @param value - The value to parse.
|
|
1391
|
-
* @param parseFormat - A format string or an array of format strings (date-fns tokens).
|
|
1392
|
-
* @returns A valid `Date` in `Europe/Rome`, an invalid sentinel, or `null` for unrecognised input.
|
|
1393
|
-
*/
|
|
1394
|
-
parse(value: unknown, parseFormat: string | string[]): Date | null;
|
|
1395
|
-
/**
|
|
1396
|
-
* Formats a `Date` using the given date-fns display format string.
|
|
1397
|
-
* Throws an `Error` when `date` is not valid.
|
|
1398
|
-
* @param date - The date to format.
|
|
1399
|
-
* @param displayFormat - A date-fns format string (e.g. `'P'`, `'LLL uuuu'`).
|
|
1400
|
-
*/
|
|
1401
|
-
format(date: Date, displayFormat: string): string;
|
|
1402
|
-
/**
|
|
1403
|
-
* Adds the given number of whole years to a date.
|
|
1404
|
-
* @param date - The base date.
|
|
1405
|
-
* @param years - Number of years to add (can be negative).
|
|
1406
|
-
*/
|
|
1407
|
-
addCalendarYears(date: Date, years: number): Date;
|
|
1408
|
-
/**
|
|
1409
|
-
* Adds the given number of whole months to a date.
|
|
1410
|
-
* @param date - The base date.
|
|
1411
|
-
* @param months - Number of months to add (can be negative).
|
|
1412
|
-
*/
|
|
1413
|
-
addCalendarMonths(date: Date, months: number): Date;
|
|
1414
|
-
/**
|
|
1415
|
-
* Adds the given number of whole days to a date.
|
|
1416
|
-
* @param date - The base date.
|
|
1417
|
-
* @param days - Number of days to add (can be negative).
|
|
1418
|
-
*/
|
|
1419
|
-
addCalendarDays(date: Date, days: number): Date;
|
|
1420
|
-
/**
|
|
1421
|
-
* Serialises a date to an ISO 8601 date string (`yyyy-MM-dd`).
|
|
1422
|
-
* @param date - The date to serialise.
|
|
1423
|
-
*/
|
|
1424
|
-
toIso8601(date: Date): string;
|
|
1425
|
-
/**
|
|
1426
|
-
* Returns the given value when it is a valid `Date`, or `null` for an empty string.
|
|
1427
|
-
* Deserialises valid ISO 8601 strings into `Date` instances.
|
|
1428
|
-
* Delegates all other values to the base-class implementation.
|
|
1429
|
-
* @param value - The raw value to deserialise.
|
|
1430
|
-
*/
|
|
1431
|
-
deserialize(value: unknown): Date | null;
|
|
1432
|
-
/**
|
|
1433
|
-
* Returns `true` when `obj` is an instance of `Date`.
|
|
1434
|
-
* @param obj - The object to test.
|
|
1435
|
-
*/
|
|
1436
|
-
isDateInstance(obj: unknown): boolean;
|
|
1437
|
-
/**
|
|
1438
|
-
* Returns `true` when `date` represents a valid point in time.
|
|
1439
|
-
* @param date - The date to validate.
|
|
1440
|
-
*/
|
|
1441
|
-
isValid(date: Date): boolean;
|
|
1442
|
-
/**
|
|
1443
|
-
* Returns a sentinel `Date` that represents an invalid date (`new Date(NaN)`).
|
|
1444
|
-
*/
|
|
1445
|
-
invalid(): Date;
|
|
1446
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsAdapter, never>;
|
|
1447
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsAdapter>;
|
|
1448
|
-
}
|
|
1449
|
-
declare class ArsDateFnsModule {
|
|
1450
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArsDateFnsModule, never>;
|
|
1451
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArsDateFnsModule, never, never, never>;
|
|
1452
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ArsDateFnsModule>;
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
/**
|
|
1456
|
-
* Directive that validates that the host control's value is different from another control's value.
|
|
1457
|
-
* Bind `[notEqual]="otherControl"`.
|
|
1458
|
-
*/
|
|
1459
|
-
declare class NotEqualValidatorDirective implements Validator {
|
|
1460
|
-
/** The control whose value must differ from the host control's value. */
|
|
1461
|
-
readonly notEqual: i0.InputSignal<AbstractControl<any, any, any>>;
|
|
1462
|
-
/**
|
|
1463
|
-
* Validates that the host control value is not equal to the bound control's value.
|
|
1464
|
-
* Also clears the `notequal` error on the other control when the host becomes valid.
|
|
1465
|
-
* Returns `null` (valid) when no control is bound.
|
|
1466
|
-
* @param control - The form control to validate.
|
|
1467
|
-
*/
|
|
1468
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
1469
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotEqualValidatorDirective, never>;
|
|
1470
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NotEqualValidatorDirective, "[notEqual]", never, { "notEqual": { "alias": "notEqual"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
/**
|
|
1474
|
-
* Directive that removes focus from the host element after it is clicked,
|
|
1475
|
-
* preventing the browser from keeping a visible focus ring post-interaction.
|
|
1476
|
-
* Apply `removeFocus` to any focusable element (e.g. a button).
|
|
1477
|
-
*/
|
|
1478
|
-
declare class RemoveFocusDirective {
|
|
1479
|
-
private readonly elementRef;
|
|
1480
|
-
/**
|
|
1481
|
-
* Handles click events on the host element and blurs it on the next event-loop tick
|
|
1482
|
-
* so that the click action completes before focus is removed.
|
|
1483
|
-
*/
|
|
1484
|
-
onClick(): void;
|
|
1485
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveFocusDirective, never>;
|
|
1486
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RemoveFocusDirective, "[removeFocus]", never, {}, {}, never, never, true, never>;
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* Directive that validates a time string against optional allowed time slot ranges.
|
|
1491
|
-
* Bind `[time]` and optionally `[slots]="'08:00-12:00|14:00-18:00'"` (pipe-separated ranges).
|
|
1492
|
-
*/
|
|
1493
|
-
declare class TimeValidatorDirective implements Validator {
|
|
1494
|
-
/** Optional pipe-separated list of allowed time ranges, e.g. `"08:00-12:00|14:00-18:00"`. */
|
|
1495
|
-
readonly slots: i0.InputSignal<string>;
|
|
1496
|
-
/**
|
|
1497
|
-
* Parses a `"HH:MM"` time string into a comparable integer (e.g. `"09:30"` -> `930`).
|
|
1498
|
-
* Returns `-1` when the string is not a valid time.
|
|
1499
|
-
* @param value - The time string to parse.
|
|
1500
|
-
*/
|
|
1501
|
-
private getTime;
|
|
1502
|
-
/**
|
|
1503
|
-
* Validates that the control value is a valid time string and, when slots are configured,
|
|
1504
|
-
* that it falls within at least one of the allowed ranges.
|
|
1505
|
-
* Returns `null` when the control is empty.
|
|
1506
|
-
* @param control - The form control to validate.
|
|
1507
|
-
*/
|
|
1508
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
1509
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TimeValidatorDirective, never>;
|
|
1510
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TimeValidatorDirective, "[time]", never, { "slots": { "alias": "slots"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* Pipe that converts a Markdown string to sanitized HTML using `SystemUtils.markdownToHtml`.
|
|
1515
|
-
*
|
|
1516
|
-
* Usage: `{{ text | formatMarkdown }}`
|
|
1517
|
-
*/
|
|
1518
|
-
declare class FormatMarkdownPipe implements PipeTransform {
|
|
1519
|
-
private readonly sanitizer;
|
|
1520
|
-
/**
|
|
1521
|
-
* Transforms a Markdown string into sanitized HTML.
|
|
1522
|
-
* @param value - The Markdown input to convert. Treated as an empty string when `undefined`.
|
|
1523
|
-
* @returns A `SafeHtml` value that can be rendered with `[innerHTML]`.
|
|
1524
|
-
*/
|
|
1525
|
-
transform(value?: string): SafeHtml;
|
|
1526
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormatMarkdownPipe, never>;
|
|
1527
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<FormatMarkdownPipe, "formatMarkdown", true>;
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
export { ArsCoreModule, ArsDateFnsModule, AutoFocusDirective, Breakpoints, BroadcastChannelManager, BroadcastService, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatHtmlPipe, FormatMarkdownPipe, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, RemoveFocusDirective, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel };
|
|
1546
|
+
export { AutoFocusDirective, Breakpoints, BroadcastChannelManager, BroadcastService, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatHtmlPipe, FormatMarkdownPipe, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, RemoveFocusDirective, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel, provideArsCore, provideArsDateFns };
|
|
1531
1547
|
export type { AddModel, AddResultModel, ApiResponse, ApiResult, BroadcastChannelMessageBag, BroadcastChannelSubscriberInfo, BroadcastMessageInfo, Checkable, DeleteResultModel, DoneResult, EnableDisableModel, ErrorInfo, File, Folder, FolderTree, INode, LoginResult, NameValueItem, PasswordStrength, QueryResultModel, SearchBag, SearchFilterMetadata, Searchable, SendToModel, ThemeType, UpdateModel, UpdateResultModel, Validated };
|