Git Product home page Git Product logo

igniteui-angular-samples's Introduction

CI Build Status

Ignite UI for Angular - Samples

This project is using Ignite UI for Angular components to demonstrate different scenarios related to the usage of each component. The project is tightly related to Ignite UI DocFX Site Builder. All samples are part of the official component topics from our website.

The project is divided into two separate applications:

  • A default application, which uses all the igniteui-angular components to demonstrate sample applications

  • A Line of Business application, complemented with UI and functionality from the Ignite UI for Angular Charts and Ignite UI for Angular Excel library.

Setup

To setup the project run:

npm install

Build

Default App

To build the application project run:

npm run build

Line of Business App

To build the application project run:

npm run build:app-lob

These commands will produce an AOT build and live editing samples supporting both Sass and CSS.

Dev Server

Default App

To start the application dev server run:

npm run start

To start in modern browsers only, run:

npm run start:es6

Line of Business App

To start the application dev server run:

npm run start:app-lob

Starting from Angular v8 the project will not be supported/start in IE due to the new default compilation target es2015.

Dev Server and Live Editing

Default App

To generate the live editing applications along with the dev server run:

npm run start:live-editing

To start in modern browsers only, run:

npm run start:live-editing:es6

To generate live editing applications, using only Sass for styling run:

npm run start:live-editing:noCss

Line of Business App

To generate the live editing applications along with the dev server run:

npm run start:app-lob:live-editing

To omit CSS styling in the live editing applications:

npm run start:app-lob:live-editing:noCss

Live-Editing

All live-editing capabilities are performed by the package, that was previously part of the project.

Live-editing documentation could be found here. If you are interested in how the engine works, read the following section.

One of the most important functionality is the Configurator Generator as each Ignite UI for Angular component has a separate configurations (config) generator - read the following section if you are interested in the actual structure and how to configure it.

Live-Editing Watcher

Use this command to start the server with capability to regenerate live editing JSON files (e.g. "/src/assets/samples/avatar-sample-3.json") when a change related to the samples is made:

npm run start:watch-live-editing

To start in modern browsers only, run:

npm run start:watch-live-editing:es6

Generate Live-Editing JSON files

To generate only the live editing samples files (e.g. "/src/assets/samples/avatar-sample-3.json") run:

Default App

With CSS styling generation

npm run generate-live-editing --css=true

Without CSS styling generation:

npm run generate-live-editing

Line of Business App

With CSS styling generation

npm run generate-live-editing --css=true --appDv=true

Without CSS styling generation:

npm run generate-live-editing --appDv=true

Running with the DocFX project

In order to combine the execution of both DocFX and Ignite UI Angular Samples projects, use npm run start. After starting both projects you will see the embed samples into the DocFX site builder, under localhost:port hostname.

Running with custom igniteui-angular build

In order to test a specific branch created in igniteui-angular project with igniteui-angular-samples you have to follow these steps:

In igniteui-angular :

  • build the source code with the version/branch you want to test:
npm run build:lib
  • copy the builded igniteui-angular folder, located in the dist directory

In igniteui-angular-samples:

  • paste the copied igniteui-angular folder in the place of its corresponding folder in node_modules directory

igniteui-angular-samples's People

Contributors

3phase avatar aleksandyr avatar bazal4o avatar chronossf avatar ddincheva avatar didimmova avatar diyandimitrov avatar dkamburov avatar dobromirts avatar gedinakova avatar gmurray81 avatar hanastasov avatar hussar-mtrela avatar igdmdimitrov avatar ivaylog avatar kdinev avatar lipata avatar mpavlinov avatar nrobakova avatar onlyexeption avatar pamelabrasil avatar sboykova avatar simeonoff avatar sisivanova avatar svetloslav15 avatar tachojelev avatar teodosiah avatar viktorslavov avatar wnvko avatar zdrawku 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

Watchers

 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

igniteui-angular-samples's Issues

Change badge demo to reflect changes in the badge

Description

Badge won't use position property any more and position has to be set via CSS.

Result

Till now position input was used to set the badge position.

Expected result

Position input should be removed and CSS added to position the badge.

Angular samples styling issues.

Description

Several angular samples styling issues.

Steps to reproduce

  1. Go to https://staging.infragistics.local/products/ignite-ui-angular/angular/components/buttongroup.html

  2. Click on the "format align left" button.

  3. Click on "London" button.

  4. Go to https://staging.infragistics.local/products/ignite-ui-angular/angular/components/button.html

  5. Inspect the "Disabled" button.

  6. Go to the bottom of the page to last demo.

  7. Inspect the two icon buttons.

Result

2. and 3:
The background of the selected button is not visible
buttongroup
5. The background is not set. The font is not set.
button

7. The icon buttons are positioned vertically:
button2

Expected result

2. and 3.
The background of the selected button should be visible.
Note: when Vertical selection is used only the bottom border of the selected is visible, which is different from horizontal selection when both left and right borders are visible.
buttongroupexpected
**5.**The background should be set. The font should be set.
buttonexpected
7. The icon buttons should be positioned horizontally:
button2expected

Create random user service for the grid sample data and other upcoming use cases

Description

Create new data service that is generating random user.
Consider using of Azure or Amazon.
Currently we are using randoumuser.me api, and we need to consider our own data service provider```

    public getData(): Promise<any> {
        return new Promise((resolve, reject) => {
            this.http.get("https://randomuser.me/api/?inc=gender,name,picture&results=" + 200)
                .subscribe((data: IServiceResponse) => {
                    resolve(data.results);
                });
        });
    }

igxGrid sample renders with columns off screen on first load

Description

When I first go to https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid.html, the grid shows with many columns, such that Track Progress is only partially shown and country flag is outside the shown grid. No scrollbar exists to see those columns. (Chrome)

When I resize the browser, the grid reorganizes such that some of the columns (Athlete Number, Beats per minute, Top Speed) don't render, and now Track Progress and Country show.

Steps to reproduce

  1. go to https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid.html
  2. or else refresh/hard refresh the page

Result

image

Expected result

When I resize the Chrome window, here's what I show:
image

Change all css usage to scss

Description

Start using of SCSS for all component samples in angular-samples repo.
Verify that the stackblitz configuration is working as well.

Live editing feature

Provide a feature all of the samples to be able to be consumed as files in order to be used by third-party software for live editing.

Carousel arrows are white and not visible

Description

The carousel arrows in the samples are white and are not visible because the background is white too.

Steps to reproduce

  1. Open any of the carousel samples.

Result

Arrows are not visible.

Expected result

Arrows should be visible.

Attachments

capture

IgxGrid sample does not work in IE 11

Description

IgxGrid sample does not work in IE 11.

Steps to reproduce

  1. Run the application
  2. Open http://localhost:4200/grid in IE 11.

Result

The grid sample appears broken. If you open the console you'll see "ERROR TypeError: Object doesn't support property or method 'includes'".

Expected result

The sample should work and no critical console errors should be displayed.

Attachments

capture

some controls do not show in Edge

Description

A number of the controls get 'stuck' in a loading state upon visiting the documentation:
https://www.infragistics.com/products/ignite-ui-angular/angular/components/circular_progress.html
https://www.infragistics.com/products/ignite-ui-angular/angular/components/dialog.html
https://www.infragistics.com/products/ignite-ui-angular/angular/components/slider.html

May be more, didn't test exhaustively.

Steps to reproduce

  1. Go to URL
  2. ...
  3. profit

Result

Control starts to load, then the loading circle freezes.

Expected result

Control loads and displays.

Attachments

ngedge0
ngedge

Update awesome grid sample

Description

We would like for the scroll of the grid to be removed and for the paging to be add again.

A new sample of the Grid will be created which will include virtualization on a later stage.

  • Add paging

New sample of the igxGrid need to be created

Description

New sample of the igxGrid need to be created. It needs to include the Virtualization and to be more data oriented then the awesome Grid.

A mock up and Spec need to be created.

Cannot access .json files from assets

Description

Cannot access .json files from assets

Steps to reproduce

  1. Open some of the .json files located in /assets/samples/

Result

File not found.

Expected result

You should be able to access the files.

still referencing js-blocks

Description

Samples still reference deprecated igniteui-js-blocks. Should now be referencing igniteui-angular.

Steps to reproduce

  1. Open /package.json

Result

"igniteui-js-blocks": "^5.0.1",

Expected result

"igniteui-angular": "^5.1.0",

Loading of production angular components samples 'hangs' occasionally on Edge

Description

The page is not loaded on Edge every time, Ctrl + F5 refresh is needed. Maybe this is somehow related to the Iframe element which is loading the Samples links in DocFX project.

Steps to reproduce

Open Edge browser and load our official demos page:
https://www.infragistics.com/products/ignite-ui-angular/angular/components/tabbar.html

Result

No samples are loaded

Expected result

Samples should be loaded

Attachments

image

Samples live editing files do not go in assets on build

Description

Samples live editing files do not go in assets on build.

Steps to reproduce

  1. Build application
  2. Go to /dist/assets

Result

There are not no /samples/ directory with JSON files.

Expected result

Samples directory should be there.

Grid example ehancements

  • All instance of the fuchsia color to be changed with byzantium.
    This concerns - selected grid cell, toggle, active filter input, active sorting icon, progress bar color.
  • Highlight color for places 1, 2 & 3 to become #FCF1FB
  • The cup icons for places 1, 2 & 3 to be changed with attached SVG images with gold, silver and bronze.
    trophy-icons-grid.zip
    Important - the SVGs should be 20x20 px. The icon container should generally be 24x24 px, with the icon centered vertically and horizontally.
  • Text in number cells should always be aligned right. Header text above such cells should also be aligned right.
  • In the 'Top Speed' column, make sure there are always the same number of symbols after the '.' -- currently it would display '5.1', but '5'. It should be '5.0' so alignment doesn't break.
  • Some flags and country names are currently mismatched. There's an issue logged in the IgniteUI/DocFX repository about this. IgniteUI/igniteui-docfx#19
  • Make male names match with male avatars, and female names with female avatars

Update Angular CLI from 1.5.0 to 1.6.5.

Description

Cannot run the project because of the CLI dependency. Please update the Angular CLI.

Steps to reproduce

  1. npm install
  2. npm run start

Result

There are errors.

Expected result

There shouldn't be any errors.

StackBlitz badge sample is not working

Description

StackBlitz badge sample is not working

Steps to reproduce

Click on any StackBlitz button in the badge demo

Result

Import error, can't find file:
app/model/member.model.ts

Expected result

The sample should run without errors

navigation page

Description

It would be useful to have a nav bar to navigate through the samples. Currently, you can get to any particular sample by typing its route into the URL, but you have to know its route. Easier/faster to pick from a nav bar.

Would be awesome to have them organized into each control (for controls which have more than 1 sample).

Enable Live switch toggle

Description

Boston Marathon igxGrid sample should allow turning back on "live" data once disabled via the igx-switch.

Steps to reproduce

  1. Run Boston Marathon sample.
  2. Switch Live data off.
  3. Try switch Live data on.

Result

The switch is disabled once turned off.

Expected result

Should be able to toggle the button at any point.

Attachments

image

Fix Grid Sample-header

Description

There is no space between slider component and slider label text.

Result

image

Expected result

What is the expected result after following the steps to reproduce?
image

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.