Skip to content

Commit 9530fde

Browse files
authored
Merge pull request #3 from nglibrary/revert-2-gh-pages
Revert "gh-pages update"
2 parents 6eeb2d5 + 5e2700e commit 9530fde

Some content is hidden

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

71 files changed

+10082
-7846
lines changed

.angular-cli.json

Lines changed: 0 additions & 57 deletions
This file was deleted.

.editorconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# Editor configuration, see http://editorconfig.org
1+
# http://editorconfig.org
2+
23
root = true
34

45
[*]
56
charset = utf-8
67
indent_style = space
78
indent_size = 2
9+
end_of_line = lf
810
insert_final_newline = true
911
trim_trailing_whitespace = true
1012

1113
[*.md]
12-
max_line_length = off
1314
trim_trailing_whitespace = false

.gitignore

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,24 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
2-
3-
# compiled output
4-
/dist
5-
/tmp
6-
/out-tsc
7-
8-
# dependencies
9-
/node_modules
1+
# Node
2+
node_modules
3+
npm-debug.log
104

11-
# IDEs and editors
12-
/.idea
13-
.project
14-
.classpath
15-
.c9/
16-
*.launch
17-
.settings/
18-
*.sublime-workspace
5+
# Yarn
6+
yarn-error.log
197

20-
# IDE - VSCode
21-
.vscode/*
22-
!.vscode/settings.json
23-
!.vscode/tasks.json
24-
!.vscode/launch.json
25-
!.vscode/extensions.json
8+
# JetBrains
9+
.idea/
2610

27-
# misc
28-
/.sass-cache
29-
/connect.lock
30-
/coverage
31-
/libpeerconnection.log
32-
npm-debug.log
33-
testem.log
34-
/typings
11+
# VS Code
12+
.vscode/
3513

36-
# e2e
37-
/e2e/*.js
38-
/e2e/*.map
14+
# Windows
15+
Thumbs.db
16+
Desktop.ini
3917

40-
# System Files
18+
# Mac
4119
.DS_Store
42-
Thumbs.db
20+
21+
# Temporary files
22+
coverage/
23+
docs
24+
tmp

.npmignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Node
2+
node_modules
3+
npm-debug.log
4+
5+
# Yarn
6+
yarn-error.log
7+
8+
# JetBrains
9+
.idea/
10+
11+
# VS Code
12+
.vscode/
13+
14+
# Windows
15+
Thumbs.db
16+
Desktop.ini
17+
18+
# Mac
19+
.DS_Store
20+
21+
# Temporary files
22+
coverage/
23+
demo/
24+
docs
25+
tmp
26+
27+
# Library files
28+
src/

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
sudo: required
2+
dist: trusty
3+
addons:
4+
apt:
5+
sources:
6+
- google-chrome
7+
packages:
8+
- google-chrome-stable
9+
language: node_js
10+
node_js:
11+
- node
12+
before_script:
13+
- export DISPLAY=:99.0
14+
- sh -e /etc/init.d/xvfb start
15+
- sleep 3
16+
cache:
17+
yarn: true
18+
notifications:
19+
email: false
20+
after_success:
21+
- npm run semantic-release
22+
branches:
23+
except:
24+
- /^v\d+\.\d+\.\d+$/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Oleksii Trekhleb
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 all
13+
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 THE
21+
SOFTWARE.

README.md

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
1-
# Utils
1+
# `Angular utils library`
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.1.3.
3+
[![Greenkeeper badge](https://badges.greenkeeper.io/nglibrary/utils.svg)](https://greenkeeper.io/)
44

5-
## Development server
5+
Set of utilities for Angular 4+
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7+
# Quick Start
88

9-
## Code scaffolding
9+
```bash
1010

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`.
11+
yarn add @nglibrary/utils
1212

13-
## Build
14-
15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
16-
17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24-
Before running the tests make sure you are serving the app via `ng serve`.
25-
26-
## Further help
27-
28-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
13+
```

debug.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[0716/024328.322:ERROR:file_io.cc(134)] WriteFile: The pipe is being closed. (0xE8)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { ElementRef, OnDestroy, OnInit, Renderer } from '@angular/core';
2+
import { NgControl } from '@angular/forms';
3+
import { Subscription } from 'rxjs/Subscription';
4+
import { UtilsGlobalConfig } from '../../utils.config';
5+
export declare class ControlInfoDirective implements OnInit, OnDestroy {
6+
private currElRef;
7+
private renderer;
8+
private formControl;
9+
private utilsConfig;
10+
controlInfo: any;
11+
value: any;
12+
targetEl: any;
13+
subscription: Subscription;
14+
targetElClasses: any;
15+
globalConfig: any;
16+
allClasses: any[];
17+
onfocus: boolean;
18+
errors: string[];
19+
config: {
20+
selector: any;
21+
prefix: string;
22+
class: {
23+
valid: string;
24+
invalid: string;
25+
pristine: string;
26+
dirty: string;
27+
touched: string;
28+
unTouched: string;
29+
hasErrors: string;
30+
noErrors: string;
31+
disabled: string;
32+
enabled: string;
33+
hasValue: string;
34+
noValue: string;
35+
onFocus: string;
36+
};
37+
};
38+
constructor(currElRef: ElementRef, renderer: Renderer, formControl: NgControl, utilsConfig: UtilsGlobalConfig);
39+
ngOnInit(): void;
40+
ngOnDestroy(): void;
41+
getClasses(classes: string[]): string[];
42+
focus(): void;
43+
blur(): void;
44+
private closest(matchesSelector, el, selector);
45+
private match(el, selector);
46+
private check();
47+
}

0 commit comments

Comments
 (0)