@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.
- package/esm2022/lib/data-sources/aw-facets-wrapper.ds.mjs +39 -2
- package/esm2022/lib/layouts/search-layout/search-facets.config.mjs +14 -1
- package/esm2022/lib/search/aw-facet-inputs/aw-facet-input-text.mjs +5 -1
- package/esm2022/lib/search/aw-facet-inputs/aw-facet-input.mjs +34 -1
- package/fesm2022/net7-boilerplate-arianna.mjs +88 -1
- package/fesm2022/net7-boilerplate-arianna.mjs.map +1 -1
- package/lib/data-sources/aw-facets-wrapper.ds.d.ts +7 -0
- package/lib/layouts/search-layout/search-facets.config.d.ts +4 -0
- package/lib/search/aw-facet-inputs/aw-facet-input-text.d.ts +5 -0
- package/lib/search/aw-facet-inputs/aw-facet-input.d.ts +11 -0
- package/package.json +1 -1
|
@@ -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: () => {
|
|
@@ -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;
|