Skip to content

Feature/examples search filter #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 20, 2018

Conversation

TomVanDenBroeck
Copy link
Contributor

@TomVanDenBroeck TomVanDenBroeck commented Oct 9, 2018

PR Checklist

This PR fulfills the following requirements:

  • The commit message follows our guidelines: Contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A changelog entry was added

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • [*] Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Resolved issues


export class AppModule {};`;

public searchfilterExampleJS1 = `public stuff: SearchFilterChoice[] = [{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add import { SearchFilterChoice } from '@acpaas-ui/ngx-components/forms'; here.

## Usage

```typescript
import { SearchFilterModule } from '@acpaas-ui/ngx-components/search-filter'`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.../forms 😉

| ----------- | ------ | -------------------------- |
| `@Input() id: string;` | - | Field id. |
| `@Input() name: string;` | - | Field name. |
| `@Input() flyoutSize: enum;` | `FlyoutSize.Small` | Passed along to `auiFlyout`. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps describe it a bit more. It's straight forward, but you can copy some content from the flyout.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: maybe it's better to provide link to the appropriate documentation?

| `@Input() id: string;` | - | Field id. |
| `@Input() name: string;` | - | Field name. |
| `@Input() flyoutSize: enum;` | `FlyoutSize.Small` | Passed along to `auiFlyout`. |
| `@Input() flyoutAlign: string;` | `'left'` | Passed along to `auiFlyout`. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here ;-)

@@ -0,0 +1,83 @@
# @acpaas-ui/ngx-components/forms

The search-filter is a JIRA-like filter component with remote search capabilities.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

search filter (without hyphen).

| ----------- | ------ | -------------------------- |
| `@Input() id: string;` | - | Field id. |
| `@Input() name: string;` | - | Field name. |
| `@Input() flyoutSize: enum;` | `FlyoutSize.Small` | Passed along to `auiFlyout`. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: maybe it's better to provide link to the appropriate documentation?

| `@Input() id: string;` | - | Field id. |
| `@Input() name: string;` | - | Field name. |
| `@Input() flyoutSize: enum;` | `FlyoutSize.Small` | Passed along to `auiFlyout`. |
| `@Input() flyoutAlign: string;` | `'left'` | Passed along to `auiFlyout`. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here ;-)

| `@Input() choices: SearchFilterChoice[];` | - | Available choices. |
| `@Input() remote: boolean;` | `false` | Enable remote searching. |
| `@Input() placeholder: string;` | `'Zoeken'` | Search field placeholder text. |
| `@Input() inputDelay: string;` | `'150'` | Delay the search callback on the input field. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really a string? Then we should list it in our technical debt document.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no number when verifying in the new components. Older readme had a wrong type defined.

@@ -1,4 +1,5 @@
import { NotificationsState } from './store.types';
import { NOTIFICATIONS_INITIAL_VALUE } from './notifications/notifications.initial-state';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be careful when using git stash!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deze zit er nog steeds in?!

Copy link
Contributor Author

@TomVanDenBroeck TomVanDenBroeck Nov 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ik kan de NOTIFICATIONS_INITIAL_VALUE toch niet weg doen, want dan is er een error dat deze niet kan gevonden worden. wat is uw voorstel?

padding: 0 $spacer;
}
}
a-button--navigation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this? Leftover?

@@ -1,4 +1,5 @@
import { NotificationsState } from './store.types';
import { NOTIFICATIONS_INITIAL_VALUE } from './notifications/notifications.initial-state';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deze zit er nog steeds in?!

@@ -47,40 +47,6 @@ main {
}
}

.o-header__link {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waarom wordt dit allemaal verwijderd?

# Conflicts:
#	package-lock.json
#	packages/forms/src/lib/mask/README.md
#	packages/forms/src/lib/range-slider/README.md
#	packages/forms/src/lib/timepicker/README.md
#	packages/forms/src/lib/wysiwyg/README.md
@TriangleJuice
Copy link
Contributor

Er zit nog een bug in de search filter component zelf: als er geen resultaten zijn, dan wordt er een paragraaf getoond met een verkeerde class (u-padding-xs) op. De correcte class is u-margin-xs.

# Conflicts:
#	package-lock.json
#	styleguide/index.html
@TomVanDenBroeck TomVanDenBroeck merged commit adf1658 into master Nov 20, 2018
@MichaelCastiau MichaelCastiau deleted the feature/examples_search-filter branch March 10, 2020 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants