@descope-ui/descope-autocomplete-field 0.0.15 → 0.0.16
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.16](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-autocomplete-field-0.0.15...@descope-ui/descope-autocomplete-field-0.0.16) (2025-06-26)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@descope-ui/common` updated to version `0.0.14`
|
|
10
|
+
* `@descope-ui/theme-globals` updated to version `0.0.14`
|
|
11
|
+
* `@descope-ui/theme-input-wrapper` updated to version `0.1.3`
|
|
12
|
+
* `@descope-ui/descope-combo-box` updated to version `0.1.3`
|
|
5
13
|
## [0.0.15](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-autocomplete-field-0.0.14...@descope-ui/descope-autocomplete-field-0.0.15) (2025-06-09)
|
|
6
14
|
|
|
7
15
|
### Dependency Updates
|
|
@@ -506,3 +506,20 @@ test.describe('logic', () => {
|
|
|
506
506
|
expect(await component.screenshot()).toMatchSnapshot();
|
|
507
507
|
});
|
|
508
508
|
});
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
test.describe('custom error message', () => {
|
|
512
|
+
loopPresets({
|
|
513
|
+
'value missing: default': { required: 'true', defaultErrorMessageValueMissing: 'true' },
|
|
514
|
+
'value missing: custom': { required: 'true', 'data-errormessage-value-missing': 'custom message' },
|
|
515
|
+
'value missing: empty': { required: 'true', 'data-errormessage-value-missing': '' },
|
|
516
|
+
}, (preset, name) => {
|
|
517
|
+
test(name, async({ page, browserName }) => {
|
|
518
|
+
test.skip(browserName === 'webkit');
|
|
519
|
+
await page.goto(getStoryUrl(storyName, preset));
|
|
520
|
+
const component = createAutocompleteTestDriver(page.locator(componentName));
|
|
521
|
+
await page.getByRole('button').getByText('Submit').click();
|
|
522
|
+
expect(await component.screenshot({ animations: 'disabled', delay: 6000 })).toMatchSnapshot();
|
|
523
|
+
});
|
|
524
|
+
});
|
|
525
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope-ui/descope-autocomplete-field",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./src/component/index.js"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@vaadin/custom-field": "24.3.4",
|
|
22
|
-
"@descope-ui/common": "0.0.
|
|
23
|
-
"@descope-ui/theme-globals": "0.0.
|
|
24
|
-
"@descope-ui/theme-input-wrapper": "0.1.
|
|
25
|
-
"@descope-ui/descope-combo-box": "0.1.
|
|
22
|
+
"@descope-ui/common": "0.0.14",
|
|
23
|
+
"@descope-ui/theme-globals": "0.0.14",
|
|
24
|
+
"@descope-ui/theme-input-wrapper": "0.1.3",
|
|
25
|
+
"@descope-ui/descope-combo-box": "0.1.3"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"link-workspace-packages": false
|
|
@@ -108,15 +108,17 @@ const Template = ({
|
|
|
108
108
|
export default {
|
|
109
109
|
component: componentName,
|
|
110
110
|
title: 'descope-autocomplete-field',
|
|
111
|
-
decorators: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
decorators: [
|
|
112
|
+
(story, { args }) => {
|
|
113
|
+
setTimeout(() => {
|
|
114
|
+
document.querySelector('descope-autocomplete-field').fetchResults =
|
|
115
|
+
mockFetchResults;
|
|
116
|
+
});
|
|
115
117
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
],
|
|
118
|
+
return story();
|
|
119
|
+
},
|
|
120
|
+
withForm,
|
|
121
|
+
],
|
|
120
122
|
argTypes: {
|
|
121
123
|
...labelControl,
|
|
122
124
|
...placeholderControl,
|
|
@@ -151,4 +153,5 @@ Default.args = {
|
|
|
151
153
|
bordered: true,
|
|
152
154
|
size: 'md',
|
|
153
155
|
'allow-custom-value': false,
|
|
156
|
+
'data-errormessage-value-missing': 'Please fill out this field.',
|
|
154
157
|
};
|