Coder Social home page Coder Social logo

src-zone / material Goto Github PK

View Code? Open in Web Editor NEW
148.0 9.0 22.0 5.1 MB

A lightweight Material Design library for Angular based on Google's Material Components for the Web.

Home Page: https://material.src.zone

License: Apache License 2.0

TypeScript 85.63% HTML 10.34% JavaScript 0.91% SCSS 3.12%
blox-material material-components angular angular-components angular-directives material-design typescript web material ngx

material's People

Contributors

alexhladin avatar davegaeddert avatar dependencies-bot avatar dependencies[bot] avatar floogulinc avatar gjdev avatar jorgevargas1989 avatar nitishk72 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  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

material's Issues

Move and refactor our unit tests

We currently test the Blox material components in the testsuite for our website. The tests should be moved to this repo. This will require some refactoring to drop the dependencies from the website and its infra from the unit tests.

Angular - cli 7 support

Hello,
Are you planning to update your project and the tutorial to angular 7 and angular cli 7 ?

Dependencies.io troubleshooting

We're opening this issue to inform you about problems with your dependencies.io configuration or build failures.

We'll add a comment here when we see problems. You can close this issue when
you have things resolved -- we'll open it back up if we detect new problems.

Helpful links:

Note: To help keep your repo as clean as possible, this is the only issue
that we're going to open and comment on. Feel free to delete the comments
that are made as you resolve them, if you want to keep this issue short and tidy.

codelyzer versions available: 4.0.0

There are new versions of codelyzer available from npm.

4.0.0

Features

Enable the new rule by adding the following line in your tslint.json config file:

"no-output-on-prefix-name": true

Thanks to eromano for the rule implementation!

Breaking Changes

  • The rules templates-use-public, no-access-missing-member, invoke-injectable and template-to-ng-template no longer exist. Remove them from your tslint.json configuration.

angulartics2 versions available: 4.0.0

There are new versions of angulartics2 available from npm.

4.0.0

4.0.0 (2017-11-09)

New Features:

  • Bundle size reduction, in most cases more than 80%
    • rxjs lettable operators
    • splitting providers into separate imports since code shaking / dead code removal doesn't yet work effectively on unused classes.
  • support for Angular v5 (not required)
  • new project landing page https://angulartics.github.io/angulartics2/
  • typescript definitions for all settings
  • added angularticsLabel and angularticsValue shortcuts to angulartics2On directive
  • clicky.com provider #172
  • pass settings to Angulartics2Module.forRoot as a second parameter
// shown passing settings on init
Angulartics2Module.forRoot([Angulartics2GoogleAnalytics], {
  developerMode: true,
  pageTracking: {
    clearIds: true,
  },
});

Breaking Changes:

  • rxjs v5.5.0 minimum required
  • angulartics2On renamed input angularticsEvent to angularticsAction
  • removed empty Angulartics2Module.forChild. Use Angulartics2Module instead.
  • Imports have changed for all providers

Before

import { Angulartics2, Angulartics2GoogleAnalytics } from 'angulartics2';

After

import { Angulartics2 } from 'angulartics2';
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';

Support for Ivy Engine

Hi, I would like to use this library but it is missing support for the Ivy rendering engine (Angular version 14). Is there any chance this repo can be updated to the latest version of Angular so that we can use it? Thanks.

Implement mdcFocusTrap stacking

Currently the mdcFocusTrap directive only allows one trap to be active at a time.Trying to activate an mdcFocusTrap while another one is already active results in an error being thrown. It would be nice if instead of an error, the newly activated focus-trap will 'pause' the previous focus-trap. On deactivation, it should activate (un-pause) the previous focus-trap again.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

How to handle a checkbox in a clickable ListItem

Hello!

I have a list with clickable items. I want to have a checkbox before the items to select them but as I check the checkbox, the click event from the ListItem is fired. Any thoughts on how can I handle that?

Thanks for the great set of components.

Add sideEffect: false to package.json

To improve tree shaking of @blox/material code for dependend projects, please add the property "sideEffects" with value false to the package.json.

BUG: Select box error when outlined is true

When using the select box and outlined is true this error comes to the console when I click the select box.

I was using the official Stackblitz Select example when I discovered this.

ERROR TypeError: Cannot read property 'classList' of null
at EmulatedEncapsulationDomRenderer2.DefaultDomRenderer2.removeClass (dom_renderer.ts:181)
at DebugRenderer2.removeClass (services.ts:795)
at Object.removeClass (mdc.select.directive.ts:108)
at MDCLineRippleFoundation.activate (foundation.js:87)
at Object.activateBottomLine (mdc.select.directive.ts:127)
at MDCSelectFoundation.handleFocus_ (foundation.js:123)
at HTMLSelectElement.MDCSelectFoundation.this.focusHandler (foundation.js:34)
at ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (ng_zone.ts:262)
at ZoneDelegate.invokeTask (zone.js:420)

Incorrect bundle sourcemaps for site debugging

When debugging the site, the sourcemaps for the @blox/material bundle point to the transpiled javascript, instead of the original typescript sources. (I.e. for mdc.button.directive.ts you will see javascript code in Chrome Devtools, instead of the typescript code).

This is probably a problem in the site/webpack.config.js, because testing in another project that depends on @blox/material does show the typescript sources correctly.

Postcss warning

Hello,

When compiling my angular project, i keep receiving those warnings:

./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/styles.scss)
Module Warning (from ./node_modules/postcss-loader/src/index.js):
Warning

(6914:3) start value has mixed support, consider using flex-start instead

I think that they are mainly related to the imported sass styles inside my styles.scss file

@import "material-components-web/material-components-web";

Is there anyway to override the align-items: start; property which causing this or to disable those warnings?

Thanks.

Console error when using mdcList directive with nonInteractive property

Hello,

I just wanted to report the following console error when using mdcList directive with nonInteractive property:

image

My source code was taken from https://blox.src.zone/material/components/list, below a short part of it:

<ul mdcList [nonInteractive]="true">
  <li mdcListItem>
    <i mdcListItemGraphic class="material-icons">share</i>
    <span mdcListItemText>
      Proxy
      <span mdcListItemSecondaryText>Used to bypass CORS limitations on browsers</span>
    </span>
    <div mdcListItemMeta mdcSelect>
      <select mdcSelectControl [(ngModel)]="settings.proxy.url">
        <option *ngFor="let proxy of getProxies()" [value]="proxy.url">{{ proxy.name }}</option>
      </select>
      <label mdcFloatingLabel></label>
    </div>
  </li>
  ...
</ul>

The non interactive effect seems to work but i always keep getting the console error (when used inside a *ngFor loop, it keeps printing a bunch of console errors).

Also, down below my dependencies versions:

image

Thanks.

Import material components web

Failed to compile.

./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/styles.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):

undefined
^
Can't find stylesheet to import.

7 │ @import "material-components-web/material-components-web";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

stdin 7:9 root stylesheet
in D:\dashboard\src\styles.scss (line 7, column 9)

This is my styles.scss

$mdc-theme-primary: #6200ee;
$mdc-theme-secondary: #018786;
$mdc-theme-background: #fff;

@import "material-components-web/material-components-web";


**In angular.json**

"styles": [
              "src/styles.scss"
            ],
            "stylePreprocessorOptions": {
              "includePaths": [
                  "node_modules"
              ]
          }
I am running Angular: 8.2.0

Regression: when routes change through 'normal' links, they don't activate the corresponding mdcTabRouter element anymore

This seems to beintroduced with the upgrade to Angular9. To reproduce:

  1. Go to https://blox.src.zone/material
  2. Click the GUIDES tab
  3. Click the Components link from the list of guides (NOT from the tabs).
  4. Notice that the COMPONENTS tab isn't activated. It should have been

Another way to reproduce:

  1. Go straight to https://blox.src.zone/material/components/button by clicking this link
  2. After page load the COMPONENTS tab should be active, but it isn't.

Rename some component properties

To have more unform naming of component properties, rename the following properties:

  • mdcIconToggle: isOn/isOnChange → on/onChange.
  • mdcLinearProgress: isIndeterminate → indeterminate, isReversed → reversed, isClosed → closed.
  • mdcListDivider: hasInset → inset.
  • mdcSimpleMenu: isOpen/isOpenChange → open/openChange.
  • mdcSlider: isDiscrete → discrete, hasMarkers → markers.
  • mdcTab: isActive → active.
  • mdcToolbar: isFixed→ fixed, isWaterfall→ waterfall, isFixedLastrowOnly→ fixedLastrowOnly, isFlexible→ flexible, isFlexibleDefaultBehavior→ flexibleDefaultBehavior.

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.