Giter Club home page Giter Club logo

angular2-mdl-ext's Introduction

angular2-mdl-ext's People

Contributors

abdulqadir93 avatar adasq avatar alexey-vykhrystyuk-arcadia avatar avykhrystyuk avatar canyaman avatar dadakoko avatar greenkeeper[bot] avatar greenkeeperio-bot avatar janpio avatar jkisiolek avatar leojpod avatar mseemann avatar nikotm avatar piotrekdonicz avatar rmc00 avatar tb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular2-mdl-ext's Issues

[Expansion Panel] ngFor not working as expected

I'm using the expansion panel with an *ngFor loop

<mdl-expansion-panel-group #panelGroup>
<mdl-expansion-panel *ngFor="let user of users; let i = index">
...

The toggles now work seperately from each other. So panel 1 does not collapse panel 2 when it is expanded etc

For example
<button (click)="panelGroup.getPanel(0).toggle()">Toggle 1</button
will expand and collapse the first panel, but it does nothing with a second or third panel

select option popup opening upwards

I'm using the mdl-select with cascading selects.
I have 3 select in a vertical layout.
I have a problem when I select the second one. It has a long list (10 options), so instead of opening down (I guess because it feels there is no space) it opens upward. The problem is that I have e fixed navbar and the list goes under it, so I'm not able to reach and select the first couple of items on the list.
This is happening on iOS safari not on desktop.

Is there a way to always open the option list down?

Select depends on popover

When installing select via npm, I get the following error:

ERROR in ./~/@angular2-mdl-ext/select/select.js
Module not found: Error: Can't resolve '../popover' in '/home/simon/Projekte/stay-and-charge-app/node_modules/@angular2-mdl-ext/select'

Installing popover solves the issue.

An in-range update of gulp-clean-css is breaking the build 🚨

Version 2.1.2 of gulp-clean-css just got published.

Branch Build failing 🚨
Dependency gulp-clean-css
Current Version 2.1.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As gulp-clean-css is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

The new version differs by 1 commits .

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Unable to install angular2-mdl-ext for Angular 2.2.4

I'm getting the following error /node_modules/@angular-mdl/expansion-panel/expansion-panel.component.ts (20,38): Cannot find module '@angular/platform-browser/ani
mations'.)

I think this is because is targeting Angular 4.

I don't know how to install a package version for Angular 2.2.4

Fix Placeholder on Select

Some recent changes from #140 may have affected the placeholder for #116 and this issue might need some discussion to decide on how the placeholder text on the select should work.

The work done in #116 assumed that if a value wasn't present in an option the the placeholder should appear instead of the text of whatever the field was. If this isn't clear, the demo app has an example where "County" is the placeholder and selecting none used to revert back to the placeholder "County" instead of displaying the selected "None" label (like it does now).

I prefer the way it originally worked because it allowed a user to default back to the original state with a placeholder. Feel free to discuss.

Building from Windows platform doesn't work

I get the following error when I build in Windows, but I don't get it with a Nix platform.

Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\components\select\option.ts:15:12
Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\components\select\select.ts:39:14
Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\e2e-app\app\app.component.ts:14:12
Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\e2e-app\app\app.component.ts:29:12
Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\e2e-app\app\app.component.ts:30:11
Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\e2e-app\app\popover\popover.component.ts:12:12
Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\e2e-app\app\select\select.component.ts:16:12
Cannot find name 'require'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\e2e-app\main.ts:5:4
Cannot find name 'process'.

ERROR in [default] C:\Users\user\Documents\GitHub\angular2-mdl-ext\src\e2e-app\polyfills.ts:3:0
Cannot find name 'require'.

Getting error for missing $popover-direction-up-bottom-offset variable

I installed @angular2-mdl-ext yesterday and received an error that there was a missing variable $popover-direction-up-bottom-offset.

I added the $popover-direction-up-bottom-offset: 20px; to my styles.scss file to make the error go away. Everything is working now. Have I missed something?

An in-range update of node-sass is breaking the build 🚨

Version 3.12.3 of node-sass just got published.

Branch Build failing 🚨
Dependency node-sass
Current Version 3.12.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As node-sass is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

  • βœ… ci/circleci Your tests passed on CircleCI! Details

Release Notes v3.12.3

Fixes


Supported Environments

OS Architecture Node
Windows x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6,7
OSX x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7
Linux x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7
FreeBSD i386 & amd64 0.10, 0.12, 1, 2, 3, 4, 5, 6

*Linux support refers to Ubuntu, Debian, and CentOS 5

Commits

The new version differs by 4 commits .

  • bee91ae 3.12.3
  • c5a2d38 Merge pull request #1803 from sass/feat/log-to-stdout
  • e7ad0cb Send npmlog to stdout
  • e0aef95 Fix typo in error handling

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

[Select] Error in more recent version of Angular2

I get the error Can't construct a query for the property "optionComponents" of "MdlSelectComponent" since the query selector wasn't defined. when I try to use the select component.

My code is:

    <mdl-select [(ngModel)]="heroId">
        <mdl-option *ngFor="let h of heroes" [value]="h.id">{{h.name}}</mdl-option>
    </mdl-select>

The code is very similar to the sample in docs, I think the problem is the update in Angular2.

support AOT for the components

  • generate the module metadata with ngc
  • generate es2015 modules (esm)
  • add module property to package.json
  • provide a umd bundle verison

Not able to close angular2-mdl-ext/expansion-panel

Hello team,

I am referring the single panel expansion example from here, but I am not able to close or toggle the expansion panel. Following is my HTML code:

<mdl-expansion-panel> <mdl-expansion-panel-header> <mdl-expansion-panel-header-list-content>Primary Title</mdl-expansion-panel-header-list-content> <mdl-expansion-panel-header-secondary-content>Secondary value</mdl-expansion-panel-header-secondary-content> </mdl-expansion-panel-header> <mdl-expansion-panel-content> <mdl-expansion-panel-body> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </mdl-expansion-panel-body> <mdl-expansion-panel-footer> <mdl-button>Cancel</mdl-button> <mdl-button>Save</mdl-button> </mdl-expansion-panel-footer> </mdl-expansion-panel-content> </mdl-expansion-panel>

This is the exact code copied from the above url.

Expansion panel

How to make expansion panel opened by default instead of closed?

gulp dist with npm version check

until now npm publish fails if the version didn't changed. try to find a way to only publish npm packages with a changed version number

An in-range update of node-sass is breaking the build 🚨

Version 3.13.0 of node-sass just got published.

Branch Build failing 🚨
Dependency node-sass
Current Version 3.12.5
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As node-sass is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

  • βœ… ci/circleci Your tests passed on CircleCI! Details

Release Notes v3.13.0

In v3.12.x we made some change to how did logging. Namely we adopted npmlog, which is used by npm itself. This has caused a variety off issues we have not been able to reliably address. As such v3.13.0 undoes this change. Thanks too all the patient folks who helps up debug our logging issues.

Fixes

  • Use console.log and console.error for logging (@xzyfer)

Supported Environments

OS Architecture Node
Windows x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6,7
OSX x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7
Linux x86 & x64 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7
FreeBSD i386 & amd64 0.10, 0.12, 1, 2, 3, 4, 5, 6

*Linux support refers to Ubuntu, Debian, and CentOS 5

Commits

The new version differs by 3 commits .

  • 2e7f370 3.13.0
  • cb8774f Merge pull request #1806 from sass/feat/console-log
  • d83ebc8 Use console for logging instead of npmlog

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

[Feature request] Add disabled option for mdl-option

Hi @mseemann, currently, the module only support disabled option for mdl-select.
Could you please add disabled option for mdl-option also?

For now, I am using workaround by adding a .disabled css class to mdl-option as follow,

mdl-select {
  mdl-option.disabled {
    pointer-events: none;
    cursor: default;
  }
}

However, when I click on the disabled option, mdl-popover is still closed.

Theming is not working for select in e2e-app

Theming customization are not applied. You can see it by looking at the active selection text color - its not $palette-blue-500;.

We need to fix it in e2e-app and document how to apply customization.

This requires manual import of SCSS per component?

Renderer.animate is no longer supported!

hi!

When you try use dalogServiceAlert angular says:

ERROR Error: Renderer.animate is no longer supported! at RendererAdapter.animate (core.es5.js:10470) [angular] at MdlDialogHostComponent.show (mdl-dialog-host.component.js:79) [angular] at vendor.bundle.js:29645:39 [angular] at Object.onInvokeTask (core.es5.js:4116) [angular] at ZoneDelegate.invokeTask (zone.js:397) [angular] at Zone.runTask (zone.js:165) [<root> => angular] at ZoneTask.invoke (zone.js:460) [<root>] at timer (zone.js:1540) [<root>]

Unable to select on options change

Change detection is not working correctly within Select component, when the options set is replaced.

Steps to reproduce:

  1. Include the following component into your code:

    import { Component, ViewChild } from '@angular/core';
    
    @Component({
    selector: 'app-select-bug',
    template: `
      <mdl-select
        placeholder="From"
        [(ngModel)]="selectOne"
        (change)="handleChange($event, 'from')">
        <mdl-option *ngFor="let option of groupOne" [value]="option">
          {{option}}
        </mdl-option>
      </mdl-select>
      <mdl-select
        #select
        placeholder="To"
        [(ngModel)]="selectTwo"
        (change)="handleChange($event, 'to')">
        <mdl-option *ngFor="let option of groupTwo" [value]="option">
          {{option}}
        </mdl-option>
      </mdl-select>
    `
    })
    export class SelectBugComponent {
    groupTwoPure: string[] = ['two', 'three', 'four', 'five'];
    groupOne: string[] = ['one', 'two', 'three'];
    groupTwo: string[];
    selectOne:string;
    selectTwo:string;
    data:string;
    @ViewChild('select') select;
    constructor() {
      this.groupTwo = [...this.groupTwoPure];
    }
    
    handleChange(value, handler) {
      if(handler === 'from') {
        this.groupTwo = this.groupTwoPure.filter((value, index) => {
          return index >= this.groupOne.indexOf(this.selectOne) - 1;
        });
        this.select.reset();
      }
    
      this.data = `From ${this.selectOne} to ${this.selectTwo}`;
      console.log(this.data);
    }
    
    }
  2. Pick three from the first select

  3. Pick one from the first select

  4. Try picking two from the second select

As a workaround I have added a change subscription to optionsComponent's ngAfterViewInit method, as seen here:

public ngAfterViewInit() {
        this.optionComponents.changes.subscribe( change => {
          this.bindOptions();
        });
        this.bindOptions();
        this.renderValue(this.ngModel);
    }

Another workaround is to wrap reset method in setTimeout to give the change detection mechanism enough time to digest changes, but it is not reliable and results in bad UX (visual delay on pick).

Async select options

When set people https://github.com/mseemann/angular2-mdl-ext/blob/master/src/e2e-app/app/select/select.component.ts#L23 async, i.e.

  people: any[] = [];
  
  ngOnInit() {
    // ...
    setTimeout(() => {
      this.people = null;
      this.people = [
        {id: 1, name: 'Bryan Cranston'},
        {id: 2, name: 'Aaron Paul'},
        {id: 3, name: 'Bob Odenkirk'},
        {id: 4, name: 'Dean Norris'},
        {id: 5, name: 'Jonathan Banks'},
        {id: 6, name: 'Seal Henry Olusegun Olumide Adeola Samuel'},
        {id: 7, name: 'Rami Malek'},
        {id: 8, name: 'Christian Slater'},
        {id: 9, name: 'Martin WallstrΓΆm'},
        {id: 10, name: 'Angela Sarafyan'},
        {id: 11, name: 'Robert Pattinson'},
        {id: 12, name: 'Billy Bob Thornton'}
      ];
    }, 250);
  }

then initial selection of is not rendered.

Dont know how to fix it yet.

ReferenceError: Event is not defined on angular universal

after importing [email protected] inside my angular server side render 4.0.1 project i have "ReferenceError: Event is not defined" on node server

__metadata('design:paramtypes', [Event])
in this snippet
__decorate$2([
_angular_core.HostListener('document:click', ['$event']),
__metadata$2('design:type', Function),
__metadata$2('design:paramtypes', [Event]),
__metadata$2('design:returntype', void 0)
], MdlPopoverComponent.prototype, "onDocumentClick", null);

after i commented this code new error popup: KeyboardEvent is not defined __metadata('design:paramtypes', [KeyboardEvent]),

on client side render angular 2.4 it works fine

The text inside input field of mdl-select is selectable when mdl-select component is disabled

In your demo site, currently, I can double click to select the text inside input field (e.g 'France') of mdl-select when mdl-select.disabled is set to true.

<mdl-select [(ngModel)]="countryCode" placeholder="Select country" disabled="true">
  <mdl-option *ngFor="let c of countries" [value]="c.code">{{c.name}}</mdl-option>
</mdl-select>

It is not possible with the default html . It would be nice if you can fix the problem.

popover should include horizontal direction

currently the popover will open right of the target that opens it. This should be configurable to open left, right, up, down, etc. It should also be smart enough to know when it's reached the edge of the window. It currently opens to the right, OFF the screen and has no ability to open to the left of it. This makes the component unusable for targets that sit on the right side of the screen.

Visual issues on Select component

  1. Component's height ignores being out of view. A possible solution might be to check available height via JS. But issue is fixable on users' end, using custom css. ( As a side issue, you have !important here, which seems to be unnecessary, and forces user to use !important as well)
    localhost-8100-dashboard-meals
  2. Text overflow is ignored when select is focused and options list is closed as seen here:
    screenshot from 2016-09-30 20 48 21

An in-range update of rollup is breaking the build 🚨

Version 0.36.4 of rollup just got published.

Branch Build failing 🚨
Dependency rollup
Current Version 0.36.3
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As rollup is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

The new version differs by 9 commits .

  • fca14db -> v0.36.4
  • 3da03c6 Merge pull request #1106 from rollup/fix-977
  • 3a89cf7 Merge pull request #1076 from zackschuster/patch-1
  • 59f815b Update tests after #1037
  • ab3b38f Bundle execution is only dependent on program level call expressions
  • e8b44a7 Merge branch 'called-but-unused-import' of github.com:mbostock/rollup into fix-977
  • da4fb22 destructure options in Scope constructor
  • 82f2149 Add another failing test case.
  • b65657f Add failing test case for #977.

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

How to include css styles with Webpack 2?

Not familiar yet with Webpack 2, but would you be able to help?

Here's my module.rules settings:

        {
          test: /\.scss$/,
          use: [
            'raw-loader',
            {
              loader: 'sass-loader',
              options: {
                includePaths: [
                  '../node_modules/@angular2-mdl-ext/popover',
                  '../node_modules/@angular2-mdl-ext/select'
                ]
              }
            }
          ]
        },

object item with id=0 is not selectable

unsuccessfully i am trying to pick first value of an array of objects. but without multiple="true" this code works fine

 sphere =[{id:0,name:'wewe'},{id:1,name:'ghjghj'}]

<mdl-select [(ngModel)]="sphere" multiple="true" placeholder="Select countries">
      <mdl-option mdl-ripple *ngFor="let c of work_sphere" [value]="c.id">{{c.name}}</mdl-option>
</mdl-select>

Bug: Select Component initial value is not displayed properly when using reactive forms and pulling options data from a HTTP service

I tried to create a plunk with a minimal reproduction but could not find any public deploys of this repository:

http://plnkr.co/edit/6crj2W

The use case is, I have a component that is pulling in data, creating child components and passing in populated forms. I see that the initial value is working fine using static forms so I'm not 100% sure this isn't something I'm doing wrong either.

MdlExpansionPanelModule Imports BrowserModule

Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.

  • Comment the import of MdlExpansionPanelModule in src\app\shared\shared.module.ts (lines 8 and 19).
  • Go to http://localhost:4200/lazy. Works fine now.

mdl-select dropdown items always displayed

Setting up a simple mdl-select (as per sample) and the dropdown is always displayed and the down arrow is located underneath the text area and not to the right.

<mdl-select *ngFor="let f of filters" [(ngModel)]="selectedFilters" multiple="true" placeholder="Select {{f.name}}">
    <mdl-option *ngFor="let v of f.values" [value]="v.id">{{v.name}}</mdl-option>
</mdl-select>

image

Even if I copy/paste the sample app code from github it still renders incorrectly.

Or am I doing something wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.