@net7/boilerplate-arianna 5.6.0 → 5.6.2

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.
@@ -12,6 +12,13 @@ export declare class AwFacetsWrapperDS extends DataSource {
12
12
  onFacetChange({ eventPayload }: {
13
13
  eventPayload: any;
14
14
  }): void;
15
+ /**
16
+ * Surfaces validation feedback for a text input. The error is shown on
17
+ * blur/enter (so it never flashes mid-typing); once an error is visible
18
+ * it is re-evaluated on every keystroke so it clears as soon as the
19
+ * value becomes valid. No-op when the input declares no validation.
20
+ */
21
+ private _validateTextInput;
15
22
  updateFilteredTarget(target: any): void;
16
23
  updateInputLinks(): void;
17
24
  getRequestParams: () => {
@@ -156,6 +156,10 @@ declare const _default: {
156
156
  type: string;
157
157
  facetId: string;
158
158
  placeholder: string;
159
+ validation: {
160
+ pattern: RegExp;
161
+ message: string;
162
+ };
159
163
  filterConfig: {
160
164
  delay: number;
161
165
  searchIn: {
@@ -22,6 +22,11 @@ export declare class AwFacetInputText extends AwFacetInput {
22
22
  facetId: any;
23
23
  source: string;
24
24
  };
25
+ blurPayload: {
26
+ trigger: string;
27
+ facetId: any;
28
+ source: string;
29
+ };
25
30
  _meta: {
26
31
  facetId: any;
27
32
  };
@@ -27,6 +27,17 @@ export declare abstract class AwFacetInput {
27
27
  getSearchIn: () => any;
28
28
  getType: () => any;
29
29
  getOutput: () => any;
30
+ /**
31
+ * Pure validity check against the optional config-driven
32
+ * `validation: { pattern, message }`. Empty values are always valid
33
+ * (use `required` for emptiness). Does not mutate the output.
34
+ */
35
+ isValid(value?: any): boolean;
36
+ /**
37
+ * Validates the value and reflects the error state on the output (error
38
+ * flag / message) so the facet component can render it accessibly.
39
+ */
40
+ validate(value?: any): boolean;
30
41
  clear(): any;
31
42
  setIsEmpty: (empty: boolean) => void;
32
43
  setData: (newData: FacetInputData[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/boilerplate-arianna",
3
- "version": "5.6.0",
3
+ "version": "5.6.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.11",
6
6
  "@angular/core": "^17.3.11"