Giter Club home page Giter Club logo

md2's People

Contributors

beleta avatar liuy97 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

md2's Issues

Compilation error when using Angular 8

Angular 8 shows this error when compiling a project that uses your library:

ERROR in ./node_modules/angular-md2/fesm2015/angular-md2.js 293:79-87
"export 'DOCUMENT' was not found in '@angular/platform-browser'
ℹ 「wdm」: Failed to compile.

The problem is that DOCUMENT has to be imported from @angular/common instead from @angular/platform-browser.

I have created a PR to address the issue: #6

ng build failed on external projects

ERROR in node_modules/angular-md2/lib/core/option/optgroup.d.ts(4,51): error TS2307: Cannot find module 'projects/angular-md/src/lib/core/common-behaviors/constructor'.
node_modules/angular-md2/lib/core/option/optgroup.d.ts(8,22): error TS2420: Class 'MdOptgroup' incorrectly implements interface 'CanDisable'.
  Property 'disabled' is missing in type 'MdOptgroup'.
node_modules/angular-md2/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts(9,52): error TS2307: Cannot find module 'projects/angular-md/src/lib/core/common-behaviors/constructor'.
node_modules/angular-md2/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts(21,22): error TS2420: Class 'MdPseudoCheckbox' incorrectly implements interface 'CanColor'.
  Property 'color' is missing in type 'MdPseudoCheckbox'.
node_modules/angular-md2/lib/select/optgroup.d.ts(4,52): error TS2307: Cannot find module 'projects/angular-md/src/lib/core/common-behaviors/constructor'.
node_modules/angular-md2/lib/select/optgroup.d.ts(8,22): error TS2420: Class 'Md2Optgroup' incorrectly implements interface 'CanDisable'.
  Property 'disabled' is missing in type 'Md2Optgroup'.

This error is present when ng build angular-md command produces some

strange import paths for the Constructor import:

file: dist/angular-md/lib/core/select/optgroup.d.ts:

export declare const _Md2OptgroupMixinBase: import("projects/angular-md/src/lib/core/common-behaviors/constructor").Constructor<CanDisable> & typeof Md2OptgroupBase;

file: dist/angular-md/lib/core/option/optgroup.d.ts:

export declare const _MdOptgroupMixinBase: import("projects/angular-md/src/lib/core/common-behaviors/constructor").Constructor<CanDisable> & typeof MdOptgroupBase;

file: dist/angular-md/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts:

export declare const _MdPseudoCheckboxBase: import("projects/angular-md/src/lib/core/common-behaviors/constructor").Constructor<CanColor> & typeof MdPseudoCheckboxBase;

those need be be relative for use in external projects:

file: dist/angular-md/lib/core/select/optgroup.d.ts:

export declare const _Md2OptgroupMixinBase: import("../core/common-behaviors/constructor").Constructor<CanDisable> & typeof Md2OptgroupBase;

file: dist/angular-md/lib/core/option/optgroup.d.ts:

export declare const _MdOptgroupMixinBase: import("../common-behaviors/constructor").Constructor<CanDisable> & typeof MdOptgroupBase;

file: dist/angular-md/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts:

export declare const _MdPseudoCheckboxBase: import("../../common-behaviors/constructor").Constructor<CanColor> & typeof MdPseudoCheckboxBase;

Angular v9 Support

We have upgraded our app (angular version 8) to v9-RC10 and we are getting following error in @angular Core.

as Error TS2724 Module '"../../../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2' ?

import { EventEmitter, Elementref, OnDestory, Renderer, TemplateRef, ViewContainerRef } from '@angular/core'

node_modules/@angular/core/core.d.ts:5678:31
5678 export declare abstract class Renderer2 {

is there any alternative or solution for it ? do we have any release for Angular 9 in near future ?

bug: Datepicker DateLocale.firstDayOfWeek

on old md2 version of datepicker, when i used locale service
constructor(private loc: DateLocale)

i could change
this.loc.firstDayOfWeek = 1;

this is broken here. It only changes weekdays headers, but not _weeks array itself.

I suspect
Md2MonthView._weeks
which differs from original version

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.