@skyux/lookup 5.5.0-alpha.0 → 5.5.0-beta.0

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.
Files changed (2) hide show
  1. package/documentation.json +20 -0
  2. package/package.json +23 -9
@@ -9522,6 +9522,26 @@
9522
9522
  "filePath": "/projects/lookup/documentation/code-examples/country-field/basic/country-field-demo.module.ts",
9523
9523
  "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyCountryFieldModule } from '@skyux/lookup';\n\nimport { CountryFieldDemoComponent } from './country-field-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyCountryFieldModule,\n SkyInputBoxModule,\n ],\n declarations: [CountryFieldDemoComponent],\n exports: [CountryFieldDemoComponent],\n})\nexport class CountryFieldDemoModule {}\n"
9524
9524
  },
9525
+ {
9526
+ "fileName": "lookup-async-demo.component.html",
9527
+ "filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.component.html",
9528
+ "rawContents": "<form\n class=\"lookup-demo-form\"\n novalidate\n [formGroup]=\"myForm\"\n (ngSubmit)=\"onSubmit()\"\n>\n <div class=\"sky-form-group\">\n <sky-input-box>\n <label class=\"sky-control-label\" skyId #nameLabel=\"skyId\">\n Favorite name\n </label>\n <sky-lookup\n formControlName=\"name\"\n selectMode=\"single\"\n [ariaLabelledBy]=\"nameLabel.id\"\n [data]=\"people\"\n [searchFilters]=\"getSearchFilters()\"\n (searchAsync)=\"searchAsync($event)\"\n >\n </sky-lookup>\n </sky-input-box>\n </div>\n <div class=\"lookup-demo-alert\">\n <strong>Form model:</strong>\n <pre>{{ myForm.value | json }}</pre>\n </div>\n <button class=\"sky-btn sky-btn-default\" type=\"submit\">Submit</button>\n</form>\n"
9529
+ },
9530
+ {
9531
+ "fileName": "lookup-async-demo.component.scss",
9532
+ "filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.component.scss",
9533
+ "rawContents": ".lookup-demo-alert {\n padding: 10px;\n margin-bottom: 10px;\n border: 1px solid #cdcfd2;\n border-radius: 3px;\n}\n\n.lookup-demo-alert pre {\n margin: 0;\n}\n"
9534
+ },
9535
+ {
9536
+ "fileName": "lookup-async-demo.component.ts",
9537
+ "filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.component.ts",
9538
+ "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport { SkyAutocompleteSearchAsyncArgs } from 'lookup';\n\nimport {\n SkyAutocompleteSearchAsyncResult,\n SkyAutocompleteSearchFunctionFilter,\n} from '@skyux/lookup';\nimport { Subject } from 'rxjs';\n\n@Component({\n selector: 'app-async-lookup-demo',\n templateUrl: './lookup-async-demo.component.html',\n styleUrls: ['./lookup-async-demo.component.scss'],\n})\nexport class LookupAsyncDemoComponent implements OnInit {\n public myForm: FormGroup;\n\n public people: any[] = [\n { name: 'Abed' },\n { name: 'Alex' },\n { name: 'Ben' },\n { name: 'Britta' },\n { name: 'Buzz' },\n { name: 'Craig' },\n { name: 'Elroy' },\n { name: 'Garrett' },\n { name: 'Ian' },\n { name: 'Jeff' },\n { name: 'Leonard' },\n { name: 'Neil' },\n { name: 'Pierce' },\n { name: 'Preston' },\n { name: 'Rachel' },\n { name: 'Shirley' },\n { name: 'Todd' },\n { name: 'Troy' },\n { name: 'Vaughn' },\n { name: 'Vicki' },\n ];\n\n public name: any[] = [this.people[15]];\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.createForm();\n\n // If you need to execute some logic after the lookup values change,\n // subscribe to Angular's built-in value changes observable.\n this.myForm.valueChanges.subscribe((changes) => {\n console.log('Lookup value changes:', changes);\n });\n }\n\n // Only show people in the search results that have not been chosen already.\n public getSearchFilters(): SkyAutocompleteSearchFunctionFilter[] {\n const name: any[] = this.myForm.controls.name.value;\n return [\n (searchText: string, item: any): boolean => {\n const found = name.find((option) => option.name === item.name);\n return !found;\n },\n ];\n }\n\n public onSubmit(): void {\n alert('Form submitted with: ' + JSON.stringify(this.myForm.value));\n }\n\n public searchAsync($event: SkyAutocompleteSearchAsyncArgs) {\n const result = new Subject<SkyAutocompleteSearchAsyncResult>();\n $event.result = result;\n setTimeout(() => {\n const searchText = $event.searchText.toLowerCase();\n const items = this.people.filter((person) => {\n return person.name.toLowerCase().includes(searchText);\n });\n result.next({\n hasMore: false,\n items,\n totalCount: items.length,\n });\n }, 800);\n }\n\n private createForm(): void {\n this.myForm = this.formBuilder.group({\n name: new FormControl(this.name),\n });\n }\n}\n"
9539
+ },
9540
+ {
9541
+ "fileName": "lookup-async-demo.module.ts",
9542
+ "filePath": "/projects/lookup/documentation/code-examples/lookup/async/lookup-async-demo.module.ts",
9543
+ "rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { SkyLookupModule } from '@skyux/lookup';\n\nimport { LookupAsyncDemoComponent } from './lookup-async-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIdModule,\n SkyInputBoxModule,\n SkyLookupModule,\n ],\n declarations: [LookupAsyncDemoComponent],\n exports: [LookupAsyncDemoComponent],\n})\nexport class LookupAsyncDemoModule {}\n"
9544
+ },
9525
9545
  {
9526
9546
  "fileName": "lookup-custom-picker-demo-modal.component.html",
9527
9547
  "filePath": "/projects/lookup/documentation/code-examples/lookup/custom-picker/lookup-custom-picker-demo-modal.component.html",
package/package.json CHANGED
@@ -1,23 +1,37 @@
1
1
  {
2
2
  "name": "@skyux/lookup",
3
- "version": "5.5.0-alpha.0",
3
+ "version": "5.5.0-beta.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.16",
6
6
  "@angular/core": "^12.2.16",
7
7
  "@angular/router": "^12.2.16",
8
- "@skyux/core": "5.5.0-alpha.0",
9
- "@skyux/modals": "5.5.0-alpha.0",
10
- "@skyux/forms": "5.5.0-alpha.0",
11
- "@skyux/i18n": "5.5.0-alpha.0",
12
- "@skyux/indicators": "5.5.0-alpha.0",
13
- "@skyux/layout": "5.5.0-alpha.0",
14
- "@skyux/lists": "5.5.0-alpha.0",
15
- "@skyux/theme": "5.5.0-alpha.0"
8
+ "@skyux/core": "5.5.0-beta.0",
9
+ "@skyux/modals": "5.5.0-beta.0",
10
+ "@skyux/forms": "5.5.0-beta.0",
11
+ "@skyux/i18n": "5.5.0-beta.0",
12
+ "@skyux/indicators": "5.5.0-beta.0",
13
+ "@skyux/layout": "5.5.0-beta.0",
14
+ "@skyux/lists": "5.5.0-beta.0",
15
+ "@skyux/theme": "5.5.0-beta.0"
16
16
  },
17
17
  "dependencies": {
18
18
  "intl-tel-input": "14.1.0",
19
19
  "tslib": "^2.3.1"
20
20
  },
21
+ "author": "Blackbaud, Inc.",
22
+ "keywords": [
23
+ "blackbaud",
24
+ "skyux"
25
+ ],
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/blackbaud/skyux.git"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/blackbaud/skyux/issues"
33
+ },
34
+ "homepage": "https://github.com/blackbaud/skyux#readme",
21
35
  "main": "bundles/skyux-lookup.umd.js",
22
36
  "module": "fesm2015/skyux-lookup.js",
23
37
  "es2015": "fesm2015/skyux-lookup.js",