Skip to content

Commit 84358af

Browse files
committed
Add dist folder
1 parent 0df0c78 commit 84358af

544 files changed

Lines changed: 17155 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/node_modules/
2-
/dist/
32
/temp/
43
/demo/dist/
54
npm-debug.log

dist/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015-2018 Angular ng-bootstrap team
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

dist/README.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# NG Bootstrap - [Angular](http://angular.io/) directives specific to [Bootstrap 4](https://getbootstrap.com/)
2+
3+
[![npm version](https://badge.fury.io/js/%40ng-bootstrap%2Fng-bootstrap.svg)](https://badge.fury.io/js/%40ng-bootstrap%2Fng-bootstrap)
4+
[![Build Status](https://travis-ci.org/ng-bootstrap/ng-bootstrap.svg?branch=master)](https://travis-ci.org/ng-bootstrap/ng-bootstrap)
5+
[![devDependency Status](https://david-dm.org/ng-bootstrap/ng-bootstrap/dev-status.svg?branch=master)](https://david-dm.org/ng-bootstrap/ng-bootstrap#info=devDependencies)
6+
[![Sauce Test Status](https://saucelabs.com/browser-matrix/pkozlowski.svg)](https://saucelabs.com/u/pkozlowski)
7+
8+
Welcome to the Angular version of the [Angular UI Bootstrap](https://github.com/angular-ui/bootstrap) library.
9+
This library is being built from scratch by the [ui-bootstrap team](https://github.com/angular-ui/bootstrap).
10+
We are using TypeScript and targeting the Bootstrap 4 CSS framework.
11+
12+
As with Bootstrap 4, this library is a work in progress. Please check out our list of
13+
[issues](https://github.com/ng-bootstrap/ng-bootstrap/issues) to see all the things we are implementing.
14+
Feel free to make comments there.
15+
16+
## Table of Contents
17+
18+
- [Demo](#demo)
19+
- [Dependencies](#dependencies)
20+
- [Installation](#installation)
21+
- [SystemJS](#systemjs)
22+
- [Supported browsers](#supported-browsers)
23+
- [Contributing to the project](#contributing-to-the-project)
24+
- [Getting Help](#getting-help)
25+
- [You think you've found a bug?](#you-think-youve-found-a-bug)
26+
- [Code of Conduct](#code-of-conduct)
27+
28+
## Demo
29+
30+
View all the directives in action at https://ng-bootstrap.github.io
31+
32+
## Dependencies
33+
* [Angular](https://angular.io) (tested with 5.0.2)
34+
* [Bootstrap 4](https://www.getbootstrap.com) (tested with 4.0.0)
35+
36+
## Installation
37+
After installing the above dependencies, install `ng-bootstrap` via:
38+
```shell
39+
npm install --save @ng-bootstrap/ng-bootstrap
40+
```
41+
Once installed you need to import our main module:
42+
```js
43+
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
44+
```
45+
The only remaining part is to list the imported module in your application module. The exact method will be slightly
46+
different for the root (top-level) module for which you should end up with the code similar to (notice `NgbModule.forRoot()`):
47+
```js
48+
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
49+
50+
@NgModule({
51+
declarations: [AppComponent, ...],
52+
imports: [NgbModule.forRoot(), ...],
53+
bootstrap: [AppComponent]
54+
})
55+
export class AppModule {
56+
}
57+
```
58+
59+
Other modules in your application can simply import `NgbModule`:
60+
61+
```js
62+
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
63+
64+
@NgModule({
65+
declarations: [OtherComponent, ...],
66+
imports: [NgbModule, ...],
67+
})
68+
export class OtherModule {
69+
}
70+
```
71+
72+
### SystemJS
73+
If you are using SystemJS, you should also adjust your configuration to point to the UMD bundle.
74+
75+
In your systemjs config file, `map` needs to tell the System loader where to look for `ng-bootstrap`:
76+
```js
77+
map: {
78+
'@ng-bootstrap/ng-bootstrap': 'node_modules/@ng-bootstrap/ng-bootstrap/bundles/ng-bootstrap.js',
79+
}
80+
```
81+
## Supported browsers
82+
83+
We support the same browsers and versions supported by both Bootstrap 4 and Angular, whichever is _more_ restrictive.
84+
See [this](https://github.com/angular/angular/blob/master/README.md) for up-to-date Angular browser support.
85+
86+
* Chrome (45+)
87+
* Firefox (40+)
88+
* IE (10+)
89+
* Edge (20+)
90+
* Safari (7+)
91+
92+
Also check [Bootstrap 4's notes](https://getbootstrap.com/docs/4.0/getting-started/browsers-devices/#supported-browsers) on browsers support.
93+
94+
## Contributing to the project
95+
96+
Please check the [CONTRIBUTING.md](CONTRIBUTING.md) doc for contribution guidelines.
97+
98+
## Getting Help
99+
100+
Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](http://stackoverflow.com/questions/tagged/ng-bootstrap) where maintainers are looking at questions tagged with `ng-bootstrap`.
101+
102+
StackOverflow is a much better place to ask questions since:
103+
* there are hundreds of people willing to help on StackOverflow
104+
* questions and answers stay available for public viewing so your question / answer might help someone else
105+
* SO voting system assures that the best answers are prominently visible.
106+
107+
To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.
108+
109+
## You think you've found a bug?
110+
111+
Oh, we are ashamed and want to fix it ASAP! But before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a _minimal_ reproduction scenario using http://plnkr.co. Having a live, reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like:
112+
* version of Angular used
113+
* version of this library that you are using
114+
* 3rd-party libraries used, if any
115+
* and most importantly - a use-case that fails
116+
117+
A minimal reproduce scenario using http://plnkr.co/ allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
118+
The best part is that you do not need to create plunks from scratch - you can fork one from our [demo page](https://ng-bootstrap.github.io/#/components).
119+
120+
We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
121+
122+
Unfortunately we are not able to investigate / fix bugs without a minimal reproduce scenario using http://plnkr.co, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced.
123+
124+
## Code of Conduct
125+
126+
Please take a moment and read our [Code of Conduct](CODE_OF_CONDUCT.md)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* Configuration service for the NgbAccordion component.
3+
* You can inject this service, typically in your root component, and customize the values of its properties in
4+
* order to provide default values for all the accordions used in the application.
5+
*/
6+
export declare class NgbAccordionConfig {
7+
closeOthers: boolean;
8+
type: string;
9+
}

dist/accordion/accordion-config.js

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/accordion/accordion-config.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"__symbolic":"module","version":4,"metadata":{"NgbAccordionConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}]}}}]

dist/accordion/accordion-config.ngfactory.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class"},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}}}],"symbols":[{"__symbol":0,"name":"NgbAccordionConfig","filePath":"./accordion-config"}]}

dist/accordion/accordion.d.ts

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
import { AfterContentChecked, EventEmitter, QueryList, TemplateRef } from '@angular/core';
2+
import { NgbAccordionConfig } from './accordion-config';
3+
/**
4+
* This directive should be used to wrap accordion panel titles that need to contain HTML markup or other directives.
5+
*/
6+
export declare class NgbPanelTitle {
7+
templateRef: TemplateRef<any>;
8+
constructor(templateRef: TemplateRef<any>);
9+
}
10+
/**
11+
* This directive must be used to wrap accordion panel content.
12+
*/
13+
export declare class NgbPanelContent {
14+
templateRef: TemplateRef<any>;
15+
constructor(templateRef: TemplateRef<any>);
16+
}
17+
/**
18+
* The NgbPanel directive represents an individual panel with the title and collapsible
19+
* content
20+
*/
21+
export declare class NgbPanel implements AfterContentChecked {
22+
/**
23+
* A flag determining whether the panel is disabled or not.
24+
* When disabled, the panel cannot be toggled.
25+
*/
26+
disabled: boolean;
27+
/**
28+
* An optional id for the panel. The id should be unique.
29+
* If not provided, it will be auto-generated.
30+
*/
31+
id: string;
32+
/**
33+
* A flag telling if the panel is currently open
34+
*/
35+
isOpen: boolean;
36+
/**
37+
* The title for the panel.
38+
*/
39+
title: string;
40+
/**
41+
* Accordion's types of panels to be applied per panel basis.
42+
* Bootstrap recognizes the following types: "primary", "secondary", "success", "danger", "warning", "info", "light"
43+
* and "dark"
44+
*/
45+
type: string;
46+
titleTpl: NgbPanelTitle | null;
47+
contentTpl: NgbPanelContent | null;
48+
titleTpls: QueryList<NgbPanelTitle>;
49+
contentTpls: QueryList<NgbPanelContent>;
50+
ngAfterContentChecked(): void;
51+
}
52+
/**
53+
* The payload of the change event fired right before toggling an accordion panel
54+
*/
55+
export interface NgbPanelChangeEvent {
56+
/**
57+
* Id of the accordion panel that is toggled
58+
*/
59+
panelId: string;
60+
/**
61+
* Whether the panel will be opened (true) or closed (false)
62+
*/
63+
nextState: boolean;
64+
/**
65+
* Function that will prevent panel toggling if called
66+
*/
67+
preventDefault: () => void;
68+
}
69+
/**
70+
* The NgbAccordion directive is a collection of panels.
71+
* It can assure that only one panel can be opened at a time.
72+
*/
73+
export declare class NgbAccordion implements AfterContentChecked {
74+
panels: QueryList<NgbPanel>;
75+
/**
76+
* An array or comma separated strings of panel identifiers that should be opened
77+
*/
78+
activeIds: string | string[];
79+
/**
80+
* Whether the other panels should be closed when a panel is opened
81+
*/
82+
closeOtherPanels: boolean;
83+
/**
84+
* Whether the closed panels should be hidden without destroying them
85+
*/
86+
destroyOnHide: boolean;
87+
/**
88+
* Accordion's types of panels to be applied globally.
89+
* Bootstrap recognizes the following types: "primary", "secondary", "success", "danger", "warning", "info", "light"
90+
* and "dark
91+
*/
92+
type: string;
93+
/**
94+
* A panel change event fired right before the panel toggle happens. See NgbPanelChangeEvent for payload details
95+
*/
96+
panelChange: EventEmitter<NgbPanelChangeEvent>;
97+
constructor(config: NgbAccordionConfig);
98+
/**
99+
* Programmatically toggle a panel with a given id.
100+
*/
101+
toggle(panelId: string): void;
102+
ngAfterContentChecked(): void;
103+
private _closeOthers(panelId);
104+
private _updateActiveIds();
105+
}

0 commit comments

Comments
 (0)