Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp

## ngc logs
Expand Down Expand Up @@ -44,4 +43,5 @@ Thumbs.db

# output files
demo/dist
bundles
dist
bundles
9 changes: 9 additions & 0 deletions demo/src/app/pages/modules/search/search.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import { AlertModal } from "../../../modals/alert.modal";
const exampleStandardTemplate = `
<sui-search placeholder="Example Search..."
[hasIcon]="hasIcon"
[allowEmptyQuery]="allowEmptyQuery"
[options]="options"
[searchDelay]="0"
(resultSelected)="alertSelected($event)"></sui-search>

<div class="ui segment">
<sui-checkbox [(ngModel)]="hasIcon">Has icon?</sui-checkbox>
<sui-checkbox [(ngModel)]="allowEmptyQuery">Allow empty query?</sui-checkbox>
</div>
`;

Expand Down Expand Up @@ -57,6 +59,12 @@ export class SearchPage {
description: "Sets whether or not the search displays an icon.",
defaultValue: "true"
},
{
name: "allowEmptyQuery",
type: "boolean",
description: "Sets whether the search element display result with empty query.",
defaultValue: "false"
},
{
name: "options",
type: "T[]",
Expand Down Expand Up @@ -165,6 +173,7 @@ export class SearchExampleStandard {
"Yellow", "Zebra"];

public hasIcon:boolean = true;
public allowEmptyQuery:boolean = true;

public get options():string[] {
return SearchExampleStandard.standardOptions;
Expand Down
7 changes: 7 additions & 0 deletions locales/de.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { IPartialLocaleValues } from "../dist";
/**
* locale : German (de)
* author : Ciara Ward : https://github.com/ciaraward
*/
declare const de: IPartialLocaleValues;
export default de;
51 changes: 51 additions & 0 deletions locales/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locales/de.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions locales/en-AU.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { IPartialLocaleValues } from "../dist";
/**
* locale : Australian (en-AU)
* author : Trevor Daniels : https://github.com/trevordaniels
*/
declare const enAU: IPartialLocaleValues;
export default enAU;
11 changes: 11 additions & 0 deletions locales/en-AU.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locales/en-AU.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions locales/en-GB.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ILocaleValues } from "../dist";
declare const enGB: ILocaleValues;
export default enGB;
56 changes: 56 additions & 0 deletions locales/en-GB.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locales/en-GB.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions locales/en-US.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { IPartialLocaleValues } from "../dist";
declare const enUS: IPartialLocaleValues;
export default enUS;
14 changes: 14 additions & 0 deletions locales/en-US.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locales/en-US.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions locales/es.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { IPartialLocaleValues } from "../dist";
/**
* locale : Spanish (es)
* author : Facundo Donato : https://github.com/genuinefafa
*/
declare const es: IPartialLocaleValues;
export default es;
51 changes: 51 additions & 0 deletions locales/es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions locales/es.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions locales/fr.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { IPartialLocaleValues } from "../dist";
/**
* locale : French (fr)
* author : Ciara Ward : https://github.com/ciaraward
*/
declare const fr: IPartialLocaleValues;
export default fr;
Loading