-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add identifier results to playground
- Loading branch information
1 parent
9da68f4
commit 0de1ae4
Showing
7 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/_vue3-migration-test/src/x-modules/identifier-results/components/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as TestIdentifierResults } from './test-identifier-results.vue'; |
10 changes: 10 additions & 0 deletions
10
...e3-migration-test/src/x-modules/identifier-results/components/test-identifier-results.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<IdentifierResults #default="{ identifierResult }" :maxItemsToRender="3"> | ||
<IdentifierResult :result="identifierResult" /> | ||
</IdentifierResults> | ||
</template> | ||
|
||
<script setup> | ||
import IdentifierResults from '../../../../../x-components/src/x-modules/identifier-results/components/identifier-results.vue'; | ||
import IdentifierResult from '../../../../../x-components/src/x-modules/identifier-results/components/identifier-result.vue'; | ||
</script> |
2 changes: 2 additions & 0 deletions
2
packages/_vue3-migration-test/src/x-modules/identifier-results/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './components'; | ||
export * from './x-module'; |
40 changes: 40 additions & 0 deletions
40
packages/_vue3-migration-test/src/x-modules/identifier-results/x-module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { PrivateXModuleOptions } from '../../../../x-components/src/plugins/x-plugin.types'; | ||
import { IdentifierResultsXModule } from '../../../../x-components/src/x-modules/identifier-results/x-module'; | ||
export const identifierResultsXModule: PrivateXModuleOptions<IdentifierResultsXModule> = { | ||
storeModule: { | ||
state: { | ||
config: { | ||
debounceInMs: 600, | ||
maxItemsToRequest: 10, | ||
identifierDetectionRegexp: '^[0-9]{2,}$', | ||
separatorChars: '-/ ' | ||
}, | ||
identifierResults: [ | ||
{ | ||
identifier: { | ||
value: '123A' | ||
} | ||
}, | ||
{ | ||
identifier: { | ||
value: '123B' | ||
} | ||
}, | ||
{ | ||
identifier: { | ||
value: '123C' | ||
} | ||
}, | ||
{ | ||
identifier: { | ||
value: '123D' | ||
} | ||
} | ||
], | ||
origin: null, | ||
query: 'test', | ||
params: {}, | ||
status: 'initial' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters