sidebar color changes

This commit is contained in:
venbatechnologies@gmail.com 2018-09-22 00:19:35 +05:30
parent 6082271d4b
commit 938c5d8ec2
51 changed files with 2664 additions and 322 deletions

21
ng6-seed/node_modules/@types/aws-sdk/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

2
ng6-seed/node_modules/@types/aws-sdk/README.md generated vendored Normal file
View File

@ -0,0 +1,2 @@
This is a stub types definition for aws-sdk (https://github.com/aws/aws-sdk-js).
aws-sdk provides its own type definitions, so you don't need @types/aws-sdk installed!

51
ng6-seed/node_modules/@types/aws-sdk/package.json generated vendored Normal file
View File

@ -0,0 +1,51 @@
{
"_args": [
[
"@types/aws-sdk@2.7.0",
"/opt/lampp/htdocs/sparqsineedge/ng6-seed"
]
],
"_development": true,
"_from": "@types/aws-sdk@2.7.0",
"_id": "@types/aws-sdk@2.7.0",
"_inBundle": false,
"_integrity": "sha1-g1iLPRTr3KHUzl4CM4dXdWjOgvM=",
"_location": "/@types/aws-sdk",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@types/aws-sdk@2.7.0",
"name": "@types/aws-sdk",
"escapedName": "@types%2faws-sdk",
"scope": "@types",
"rawSpec": "2.7.0",
"saveSpec": null,
"fetchSpec": "2.7.0"
},
"_requiredBy": [
"#DEV:/"
],
"_resolved": "https://registry.npmjs.org/@types/aws-sdk/-/aws-sdk-2.7.0.tgz",
"_spec": "2.7.0",
"_where": "/opt/lampp/htdocs/sparqsineedge/ng6-seed",
"author": "",
"bugs": {
"url": "https://github.com/aws/aws-sdk-js/issues"
},
"dependencies": {
"aws-sdk": "*"
},
"description": "Stub TypeScript definitions entry for aws-sdk, which provides its own types definitions",
"homepage": "https://github.com/aws/aws-sdk-js#readme",
"license": "MIT",
"main": "",
"name": "@types/aws-sdk",
"repository": {
"type": "git",
"url": "git+https://github.com/aws/aws-sdk-js.git"
},
"scripts": {},
"typings": null,
"version": "2.7.0"
}

View File

@ -5,12 +5,12 @@
This package contains type definitions for Node.js (http://nodejs.org/).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v8
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v8
Additional Details
* Last updated: Fri, 09 Mar 2018 00:01:00 GMT
* Last updated: Thu, 30 Aug 2018 16:35:52 GMT
* Dependencies: none
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
# Credits
These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Oliver Joseph Ash <https://github.com/OliverJAsh>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Huw <https://github.com/hoo29>.
These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>.

View File

@ -1,4 +1,4 @@
// Type definitions for Node.js 8.9.x
// Type definitions for Node.js 8.10.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
@ -13,11 +13,15 @@
// Deividas Bakanas <https://github.com/DeividasBakanas>
// Kelvin Jin <https://github.com/kjin>
// Alvis HT Tang <https://github.com/alvis>
// Oliver Joseph Ash <https://github.com/OliverJAsh>
// Sebastian Silbermann <https://github.com/eps1lon>
// Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
// Alberto Schiabel <https://github.com/jkomyno>
// Huw <https://github.com/hoo29>
// Nicolas Even <https://github.com/n-e>
// Bruno Scheufler <https://github.com/brunoscheufler>
// Hoàng Văn Khải <https://github.com/KSXGitHub>
// Lishude <https://github.com/islishude>
// Andrew Makarov <https://github.com/r3nya>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
@ -29,6 +33,7 @@ interface Console {
Console: NodeJS.ConsoleConstructor;
assert(value: any, message?: string, ...optionalParams: any[]): void;
dir(obj: any, options?: NodeJS.InspectOptions): void;
debug(message?: any, ...optionalParams: any[]): void;
error(message?: any, ...optionalParams: any[]): void;
info(message?: any, ...optionalParams: any[]): void;
log(message?: any, ...optionalParams: any[]): void;
@ -214,10 +219,6 @@ declare var Buffer: {
*/
new(buffer: Buffer): Buffer;
prototype: Buffer;
/**
* Allocates a new Buffer using an {array} of octets.
*/
from(array: any[]): Buffer;
/**
* When passed a reference to the .buffer property of a TypedArray instance,
* the newly created Buffer will share the same allocated memory as the TypedArray.
@ -228,9 +229,10 @@ declare var Buffer: {
*/
from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
/**
* Copies the passed {buffer} data onto a new Buffer instance.
* Creates a new Buffer using the passed {data}
* @param data data to create a new Buffer
*/
from(buffer: Buffer): Buffer;
from(data: any[] | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
/**
* Creates a new Buffer containing the given JavaScript string {str}.
* If provided, the {encoding} parameter identifies the character encoding.
@ -470,6 +472,7 @@ declare namespace NodeJS {
rss: number;
heapTotal: number;
heapUsed: number;
external: number;
}
export interface CpuUsage {
@ -525,10 +528,11 @@ declare namespace NodeJS {
}
export interface WriteStream extends Socket {
readonly writableHighWaterMark: number;
columns?: number;
rows?: number;
_write(chunk: any, encoding: string, callback: Function): void;
_destroy(err: Error, callback: Function): void;
_destroy(err: Error | undefined, callback: Function): void;
_final(callback: Function): void;
setDefaultEncoding(encoding: string): this;
cork(): void;
@ -536,10 +540,11 @@ declare namespace NodeJS {
destroy(error?: Error): void;
}
export interface ReadStream extends Socket {
readonly readableHighWaterMark: number;
isRaw?: boolean;
setRawMode?(mode: boolean): void;
_read(size: number): void;
_destroy(err: Error, callback: Function): void;
_destroy(err: Error | undefined, callback: Function): void;
push(chunk: any, encoding?: string): boolean;
destroy(error?: Error): void;
}
@ -556,6 +561,7 @@ declare namespace NodeJS {
abort(): void;
chdir(directory: string): void;
cwd(): string;
debugPort: number;
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
env: ProcessEnv;
exit(code?: number): never;
@ -790,6 +796,7 @@ declare namespace NodeJS {
class Module {
static runMain(): void;
static wrap(code: string): string;
static builtinModules: string[];
static Module: typeof Module;
@ -889,7 +896,7 @@ declare module "querystring" {
decodeURIComponent?: Function;
}
interface ParsedUrlQuery { [key: string]: string | string[]; }
interface ParsedUrlQuery { [key: string]: string | string[] | undefined; }
export function stringify<T>(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string;
export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
@ -942,6 +949,7 @@ declare module "http" {
'access-control-allow-headers'?: string;
'accept-patch'?: string;
'accept-ranges'?: string;
'authorization'?: string;
'age'?: string;
'allow'?: string;
'alt-svc'?: string;
@ -969,6 +977,7 @@ declare module "http" {
'transfer-encoding'?: string;
'tk'?: string;
'upgrade'?: string;
'user-agent'?: string;
'vary'?: string;
'via'?: string;
'warning'?: string;
@ -1131,6 +1140,7 @@ declare module "http" {
}
export class Agent {
maxFreeSockets: number;
maxSockets: number;
sockets: any;
requests: any;
@ -1466,27 +1476,28 @@ declare module "zlib" {
export function createInflateRaw(options?: ZlibOptions): InflateRaw;
export function createUnzip(options?: ZlibOptions): Unzip;
export function deflate(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
export function deflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
export function deflateRaw(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
export function gzip(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
export function gunzip(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
export function inflate(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
export function inflateRaw(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
export function unzip(buf: Buffer | string, callback: (error: Error | null, result: Buffer) => void): void;
export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer;
type InputType = string | Buffer | DataView /* | TypedArray */;
export function deflate(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
export function deflate(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
export function deflateRaw(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
export function deflateRaw(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
export function gzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
export function gzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
export function gunzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
export function gunzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
export function inflate(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
export function inflate(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
export function inflateRaw(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
export function inflateRaw(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
export function unzip(buf: InputType, callback: (error: Error | null, result: Buffer) => void): void;
export function unzip(buf: InputType, options: ZlibOptions, callback: (error: Error | null, result: Buffer) => void): void;
export function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
export namespace constants {
// Allowed flush values.
@ -1578,6 +1589,7 @@ declare module "os" {
netmask: string;
mac: string;
internal: boolean;
cidr: string | null;
}
export interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
@ -1757,6 +1769,7 @@ declare module "https" {
export class Agent extends http.Agent {
constructor(options?: AgentOptions);
options: AgentOptions;
}
export class Server extends tls.Server {
@ -1950,6 +1963,9 @@ declare module "readline" {
completer?: Completer | AsyncCompleter;
terminal?: boolean;
historySize?: number;
prompt?: string;
crlfDelay?: number;
removeHistoryDuplicates?: boolean;
}
export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): ReadLine;
@ -1988,10 +2004,10 @@ declare module "vm" {
}
export function createContext(sandbox?: Context): Context;
export function isContext(sandbox: Context): boolean;
export function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions): any;
export function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
export function runInDebugContext(code: string): any;
export function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions): any;
export function runInThisContext(code: string, options?: RunningScriptOptions): any;
export function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
export function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
}
declare module "child_process" {
@ -2080,9 +2096,10 @@ declare module "child_process" {
gid?: number;
shell?: boolean | string;
windowsVerbatimArguments?: boolean;
windowsHide?: boolean;
}
export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess;
export function spawn(command: string, args?: ReadonlyArray<string>, options?: SpawnOptions): ChildProcess;
export interface ExecOptions {
cwd?: string;
@ -2348,6 +2365,9 @@ declare module "url" {
export function format(urlObject: UrlObject | string): string;
export function resolve(from: string, to: string): string;
export function domainToASCII(domain: string): string;
export function domainToUnicode(domain: string): string;
export interface URLFormatOptions {
auth?: boolean;
fragment?: boolean;
@ -2360,7 +2380,7 @@ declare module "url" {
append(name: string, value: string): void;
delete(name: string): void;
entries(): IterableIterator<[string, string]>;
forEach(callback: (value: string, name: string) => void): void;
forEach(callback: (value: string, name: string, searchParams: this) => void): void;
get(name: string): string | null;
getAll(name: string): string[];
has(name: string): boolean;
@ -2428,6 +2448,12 @@ declare module "dns" {
export function __promisify__(hostname: string, options?: LookupOptions | number): Promise<{ address: string | LookupAddress[], family?: number }>;
}
export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException, hostname: string, service: string) => void): void;
export namespace lookupService {
export function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
}
export interface ResolveOptions {
ttl: boolean;
}
@ -2441,11 +2467,23 @@ declare module "dns" {
ttl: number;
}
export interface AnyARecord extends RecordWithTtl {
type: "A";
}
export interface AnyAaaaRecord extends RecordWithTtl {
type: "AAAA";
}
export interface MxRecord {
priority: number;
exchange: string;
}
export interface AnyMxRecord extends MxRecord {
type: "MX";
}
export interface NaptrRecord {
flags: string;
service: string;
@ -2455,6 +2493,10 @@ declare module "dns" {
preference: number;
}
export interface AnyNaptrRecord extends NaptrRecord {
type: "NAPTR";
}
export interface SoaRecord {
nsname: string;
hostmaster: string;
@ -2465,6 +2507,10 @@ declare module "dns" {
minttl: number;
}
export interface AnySoaRecord extends SoaRecord {
type: "SOA";
}
export interface SrvRecord {
priority: number;
weight: number;
@ -2472,9 +2518,45 @@ declare module "dns" {
name: string;
}
export interface AnySrvRecord extends SrvRecord {
type: "SRV";
}
export interface AnyTxtRecord {
type: "TXT";
entries: string[];
}
export interface AnyNsRecord {
type: "NS";
value: string;
}
export interface AnyPtrRecord {
type: "PTR";
value: string;
}
export interface AnyCnameRecord {
type: "CNAME";
value: string;
}
export type AnyRecord = AnyARecord |
AnyAaaaRecord |
AnyCnameRecord |
AnyMxRecord |
AnyNaptrRecord |
AnyNsRecord |
AnyPtrRecord |
AnySoaRecord |
AnySrvRecord |
AnyTxtRecord;
export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
export function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
export function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
export function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException, addresses: AnyRecord[]) => void): void;
export function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
export function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
export function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
@ -2483,17 +2565,18 @@ declare module "dns" {
export function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException, addresses: SoaRecord) => void): void;
export function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
export function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
export function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][]) => void): void;
export function resolve(hostname: string, rrtype: string, callback: (err: NodeJS.ErrnoException, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void): void;
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
export namespace resolve {
export function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
export function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
export function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
export function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
export function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
export function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
export function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
export function __promisify__(hostname: string, rrtype?: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][]>;
export function __promisify__(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
}
export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
@ -2519,16 +2602,53 @@ declare module "dns" {
}
export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
export namespace resolveCname {
export function __promisify__(hostname: string): Promise<string[]>;
}
export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: MxRecord[]) => void): void;
export namespace resolveMx {
export function __promisify__(hostname: string): Promise<MxRecord[]>;
}
export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: NaptrRecord[]) => void): void;
export namespace resolveNaptr {
export function __promisify__(hostname: string): Promise<NaptrRecord[]>;
}
export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
export namespace resolveNs {
export function __promisify__(hostname: string): Promise<string[]>;
}
export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[]) => void): void;
export namespace resolvePtr {
export function __promisify__(hostname: string): Promise<string[]>;
}
export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException, address: SoaRecord) => void): void;
export namespace resolveSoa {
export function __promisify__(hostname: string): Promise<SoaRecord>;
}
export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: SrvRecord[]) => void): void;
export namespace resolveSrv {
export function __promisify__(hostname: string): Promise<SrvRecord[]>;
}
export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: string[][]) => void): void;
export namespace resolveTxt {
export function __promisify__(hostname: string): Promise<string[][]>;
}
export function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException, addresses: AnyRecord[]) => void): void;
export namespace resolveAny {
export function __promisify__(hostname: string): Promise<AnyRecord[]>;
}
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException, hostnames: string[]) => void): void;
export function setServers(servers: string[]): void;
export function getServers(): string[];
// Error codes
export var NODATA: string;
@ -2555,6 +2675,25 @@ declare module "dns" {
export var LOADIPHLPAPI: string;
export var ADDRGETNETWORKPARAMS: string;
export var CANCELLED: string;
export class Resolver {
getServers: typeof getServers;
setServers: typeof setServers;
resolve: typeof resolve;
resolve4: typeof resolve4;
resolve6: typeof resolve6;
resolveAny: typeof resolveAny;
resolveCname: typeof resolveCname;
resolveMx: typeof resolveMx;
resolveNaptr: typeof resolveNaptr;
resolveNs: typeof resolveNs;
resolvePtr: typeof resolvePtr;
resolveSoa: typeof resolveSoa;
resolveSrv: typeof resolveSrv;
resolveTxt: typeof resolveTxt;
reverse: typeof reverse;
cancel(): void;
}
}
declare module "net" {
@ -2838,8 +2977,8 @@ declare module "dgram" {
export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
export class Socket extends events.EventEmitter {
send(msg: Buffer | String | any[], port: number, address: string, callback?: (error: Error | null, bytes: number) => void): void;
send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error | null, bytes: number) => void): void;
send(msg: Buffer | string | Uint8Array | any[], port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
send(msg: Buffer | string | Uint8Array, offset: number, length: number, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
bind(port?: number, address?: string, callback?: () => void): void;
bind(port?: number, callback?: () => void): void;
bind(callback?: () => void): void;
@ -3355,7 +3494,7 @@ declare module "fs" {
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
*/
export function symlink(target: PathLike, path: PathLike, type: string | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: (err: NodeJS.ErrnoException) => void): void;
/**
* Asynchronous symlink(2) - Create a new symbolic link to an existing file.
@ -3374,6 +3513,8 @@ declare module "fs" {
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
*/
export function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
export type Type = "dir" | "file" | "junction";
}
/**
@ -3383,7 +3524,7 @@ declare module "fs" {
* @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
* When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
*/
export function symlinkSync(target: PathLike, path: PathLike, type?: string | null): void;
export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
/**
* Asynchronous readlink(2) - read value of a symbolic link.
@ -4656,11 +4797,11 @@ declare module "path" {
/**
* The platform-specific file separator. '\\' or '/'.
*/
export var sep: string;
export var sep: '\\' | '/';
/**
* The platform-specific file delimiter. ';' or ':'.
*/
export var delimiter: string;
export var delimiter: ';' | ':';
/**
* Returns an object from a path string - the opposite of format().
*
@ -5150,9 +5291,9 @@ declare module "crypto" {
update(data: string, input_encoding: Utf8AsciiBinaryEncoding, output_encoding: HexBase64BinaryEncoding): string;
final(): Buffer;
final(output_encoding: string): string;
setAutoPadding(auto_padding?: boolean): void;
setAutoPadding(auto_padding?: boolean): this;
getAuthTag(): Buffer;
setAAD(buffer: Buffer): void;
setAAD(buffer: Buffer): this;
}
export function createDecipher(algorithm: string, password: any): Decipher;
export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
@ -5163,9 +5304,9 @@ declare module "crypto" {
update(data: string, input_encoding: HexBase64BinaryEncoding, output_encoding: Utf8AsciiBinaryEncoding): string;
final(): Buffer;
final(output_encoding: string): string;
setAutoPadding(auto_padding?: boolean): void;
setAuthTag(tag: Buffer): void;
setAAD(buffer: Buffer): void;
setAutoPadding(auto_padding?: boolean): this;
setAuthTag(tag: Buffer): this;
setAAD(buffer: Buffer): this;
}
export function createSign(algorithm: string): Signer;
export interface Signer extends NodeJS.WritableStream {
@ -5273,11 +5414,12 @@ declare module "stream" {
encoding?: string;
objectMode?: boolean;
read?: (this: Readable, size?: number) => any;
destroy?: (error?: Error) => any;
destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
}
export class Readable extends Stream implements NodeJS.ReadableStream {
readable: boolean;
readonly readableHighWaterMark: number;
constructor(opts?: ReadableOptions);
_read(size: number): void;
read(size?: number): any;
@ -5289,7 +5431,7 @@ declare module "stream" {
unshift(chunk: any): void;
wrap(oldStream: NodeJS.ReadableStream): this;
push(chunk: any, encoding?: string): boolean;
_destroy(err: Error, callback: Function): void;
_destroy(error: Error | null, callback: (error?: Error) => void): void;
destroy(error?: Error): void;
/**
@ -5355,18 +5497,19 @@ declare module "stream" {
highWaterMark?: number;
decodeStrings?: boolean;
objectMode?: boolean;
write?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
writev?: (chunks: Array<{ chunk: string | Buffer, encoding: string }>, callback: Function) => any;
destroy?: (error?: Error) => any;
write?: (chunk: any, encoding: string, callback: Function) => any;
writev?: (chunks: Array<{ chunk: any, encoding: string }>, callback: Function) => any;
destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
final?: (callback: (error?: Error) => void) => void;
}
export class Writable extends Stream implements NodeJS.WritableStream {
writable: boolean;
readonly writableHighWaterMark: number;
constructor(opts?: WritableOptions);
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
_destroy(err: Error, callback: Function): void;
_destroy(error: Error | null, callback: (error?: Error) => void): void;
_final(callback: Function): void;
write(chunk: any, cb?: Function): boolean;
write(chunk: any, encoding?: string, cb?: Function): boolean;
@ -5454,10 +5597,11 @@ declare module "stream" {
// Note: Duplex extends both Readable and Writable.
export class Duplex extends Readable implements Writable {
writable: boolean;
readonly writableHighWaterMark: number;
constructor(opts?: DuplexOptions);
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
_destroy(err: Error, callback: Function): void;
_destroy(error: Error | null, callback: (error?: Error) => void): void;
_final(callback: Function): void;
write(chunk: any, cb?: Function): boolean;
write(chunk: any, encoding?: string, cb?: Function): boolean;
@ -5545,22 +5689,54 @@ declare module "util" {
export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
export function promisify<TResult>(fn: (callback: (err: Error, result: TResult) => void) => void): () => Promise<TResult>;
export function promisify(fn: (callback: (err: Error) => void) => void): () => Promise<void>;
export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: Error, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
export function promisify<T1>(fn: (arg1: T1, callback: (err: Error) => void) => void): (arg1: T1) => Promise<void>;
export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
export function promisify<TResult>(fn: (callback: (err: Error | null, result: TResult) => void) => void): () => Promise<TResult>;
export function promisify(fn: (callback: (err?: Error | null) => void) => void): () => Promise<void>;
export function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
export function promisify<T1>(fn: (arg1: T1, callback: (err?: Error | null) => void) => void): (arg1: T1) => Promise<void>;
export function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
export function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
export function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
export function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
export function promisify<T1, T2, T3, T4, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
export function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
export function promisify<T1, T2, T3, T4, T5, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: Error | null, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
export function promisify<T1, T2, T3, T4, T5>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: Error | null) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
export function promisify(fn: Function): Function;
export namespace promisify {
const custom: symbol;
}
export class TextDecoder {
readonly encoding: string;
readonly fatal: boolean;
readonly ignoreBOM: boolean;
constructor(
encoding?: string,
options?: { fatal?: boolean; ignoreBOM?: boolean }
);
decode(
input?:
Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer
| null,
options?: { stream?: boolean }
): string;
}
export class TextEncoder {
readonly encoding: string;
constructor();
encode(input?: string): Uint8Array;
}
}
declare module "assert" {
@ -5573,34 +5749,30 @@ declare module "assert" {
expected: any;
operator: string;
generatedMessage: boolean;
code: 'ERR_ASSERTION';
constructor(options?: {
message?: string; actual?: any; expected?: any;
operator?: string; stackStartFunction?: Function
operator?: string; stackStartFn?: Function
});
}
export function fail(message: string): void;
export function fail(actual: any, expected: any, message?: string, operator?: string): void;
export function fail(message?: string): never;
export function fail(actual: any, expected: any, message?: string, operator?: string, stackStartFn?: Function): never;
export function ok(value: any, message?: string): void;
export function equal(actual: any, expected: any, message?: string): void;
export function notEqual(actual: any, expected: any, message?: string): void;
export function deepEqual(actual: any, expected: any, message?: string): void;
export function notDeepEqual(acutal: any, expected: any, message?: string): void;
export function notDeepEqual(actual: any, expected: any, message?: string): void;
export function strictEqual(actual: any, expected: any, message?: string): void;
export function notStrictEqual(actual: any, expected: any, message?: string): void;
export function deepStrictEqual(actual: any, expected: any, message?: string): void;
export function notDeepStrictEqual(actual: any, expected: any, message?: string): void;
export function throws(block: Function, message?: string): void;
export function throws(block: Function, error: Function, message?: string): void;
export function throws(block: Function, error: RegExp, message?: string): void;
export function throws(block: Function, error: (err: any) => boolean, message?: string): void;
export function throws(block: Function, error: RegExp | Function, message?: string): void;
export function doesNotThrow(block: Function, message?: string): void;
export function doesNotThrow(block: Function, error: Function, message?: string): void;
export function doesNotThrow(block: Function, error: RegExp, message?: string): void;
export function doesNotThrow(block: Function, error: (err: any) => boolean, message?: string): void;
export function doesNotThrow(block: Function, error: RegExp | Function, message?: string): void;
export function ifError(value: any): void;
}
@ -6052,6 +6224,23 @@ declare module "async_hooks" {
*/
export function createHook(options: HookCallbacks): AsyncHook;
export interface AsyncResourceOptions {
/**
* The ID of the execution context that created this async event.
* Default: `executionAsyncId()`
*/
triggerAsyncId?: number;
/**
* Disables automatic `emitDestroy` when the object is garbage collected.
* This usually does not need to be set (even if `emitDestroy` is called
* manually), unless the resource's `asyncId` is retrieved and the
* sensitive API's `emitDestroy` is called with it.
* Default: `false`
*/
requireManualDestroy?: boolean;
}
/**
* The class AsyncResource was designed to be extended by the embedder's async resources.
* Using this users can easily trigger the lifetime events of their own resources.
@ -6061,10 +6250,12 @@ declare module "async_hooks" {
* AsyncResource() is meant to be extended. Instantiating a
* new AsyncResource() also triggers init. If triggerAsyncId is omitted then
* async_hook.executionAsyncId() is used.
* @param type the name of this async resource type
* @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created
* @param type The type of async event.
* @param triggerAsyncId The ID of the execution context that created
* this async event (default: `executionAsyncId()`), or an
* AsyncResourceOptions object (since 8.10)
*/
constructor(type: string, triggerAsyncId?: number)
constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions);
/**
* Call AsyncHooks before callbacks.

View File

@ -244,7 +244,7 @@ declare module "inspector" {
*/
export interface CallArgument {
/**
* Primitive value.
* Primitive value or serializable javascript object.
*/
value?: any;
/**
@ -416,7 +416,7 @@ declare module "inspector" {
*/
userGesture?: boolean;
/**
* Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.
* Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
*/
awaitPromise?: boolean;
}
@ -468,7 +468,7 @@ declare module "inspector" {
*/
userGesture?: boolean;
/**
* Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.
* Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
*/
awaitPromise?: boolean;
}
@ -561,11 +561,18 @@ declare module "inspector" {
*/
generatePreview?: boolean;
/**
* Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error.
* Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
*/
awaitPromise?: boolean;
}
export interface QueryObjectsParameterType {
/**
* Identifier of the prototype to return objects for.
*/
prototypeObjectId: Runtime.RemoteObjectId;
}
export interface EvaluateReturnType {
/**
* Evaluation result.
@ -636,6 +643,13 @@ declare module "inspector" {
exceptionDetails?: Runtime.ExceptionDetails;
}
export interface QueryObjectsReturnType {
/**
* Array with objects.
*/
objects: Runtime.RemoteObject;
}
export interface ExecutionContextCreatedEventDataType {
/**
* A newly created execution context.
@ -1476,6 +1490,10 @@ declare module "inspector" {
* Collect accurate call counts beyond simple 'covered' or 'not covered'.
*/
callCount?: boolean;
/**
* Collect block-based coverage.
*/
detailed?: boolean;
}
export interface StopReturnType {
@ -1749,6 +1767,12 @@ declare module "inspector" {
*/
post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
/**
* @experimental
*/
post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
/**
* Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
*/

View File

@ -1,34 +1,37 @@
{
"_args": [
[
"@types/node@8.9.5",
"/opt/lampp/htdocs/optima/ng6-seed"
"@types/node@8.10.29",
"/opt/lampp/htdocs/sparqsineedge/ng6-seed"
]
],
"_development": true,
"_from": "@types/node@8.9.5",
"_id": "@types/node@8.9.5",
"_from": "@types/node@8.10.29",
"_id": "@types/node@8.10.29",
"_inBundle": false,
"_integrity": "sha512-jRHfWsvyMtXdbhnz5CVHxaBgnV6duZnPlQuRSo/dm/GnmikNcmZhxIES4E9OZjUmQ8C+HCl4KJux+cXN/ErGDQ==",
"_integrity": "sha512-zbteaWZ2mdduacm0byELwtRyhYE40aK+pAanQk415gr1eRuu67x7QGOLmn8jz5zI8LDK7d0WI/oT6r5Trz4rzQ==",
"_location": "/@types/node",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@types/node@8.9.5",
"raw": "@types/node@8.10.29",
"name": "@types/node",
"escapedName": "@types%2fnode",
"scope": "@types",
"rawSpec": "8.9.5",
"rawSpec": "8.10.29",
"saveSpec": null,
"fetchSpec": "8.9.5"
"fetchSpec": "8.10.29"
},
"_requiredBy": [
"#DEV:/"
],
"_resolved": "http://registry.npmjs.org/@types/node/-/node-8.9.5.tgz",
"_spec": "8.9.5",
"_where": "/opt/lampp/htdocs/optima/ng6-seed",
"_resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.29.tgz",
"_spec": "8.10.29",
"_where": "/opt/lampp/htdocs/sparqsineedge/ng6-seed",
"bugs": {
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
},
"contributors": [
{
"name": "Microsoft TypeScript",
@ -82,10 +85,6 @@
"name": "Alvis HT Tang",
"url": "https://github.com/alvis"
},
{
"name": "Oliver Joseph Ash",
"url": "https://github.com/OliverJAsh"
},
{
"name": "Sebastian Silbermann",
"url": "https://github.com/eps1lon"
@ -101,19 +100,40 @@
{
"name": "Huw",
"url": "https://github.com/hoo29"
},
{
"name": "Nicolas Even",
"url": "https://github.com/n-e"
},
{
"name": "Bruno Scheufler",
"url": "https://github.com/brunoscheufler"
},
{
"name": "Hoàng Văn Khải",
"url": "https://github.com/KSXGitHub"
},
{
"name": "Lishude",
"url": "https://github.com/islishude"
},
{
"name": "Andrew Makarov",
"url": "https://github.com/r3nya"
}
],
"dependencies": {},
"description": "TypeScript definitions for Node.js",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
"license": "MIT",
"main": "",
"name": "@types/node",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"typeScriptVersion": "2.1",
"typesPublisherContentHash": "a07078094e2c211481ee1e42c2803623fdd21ba0b36d2344aa09d1d21279c17b",
"version": "8.9.5"
"typesPublisherContentHash": "5139d82c560925ff8b374db9a046e4c65785fbc1bef3fac032b329518fb2077c",
"version": "8.10.29"
}

17
ng6-seed/node_modules/aws-sdk/.changes/2.319.0.json generated vendored Normal file
View File

@ -0,0 +1,17 @@
[
{
"type": "feature",
"category": "DirectoryService",
"description": "Added CreateLogSubscription, DeleteLogSubscription, and ListLogSubscriptions APIs for Microsoft AD. Customers can now opt in to have Windows security event logs from the domain controllers forwarded to a log group in their account."
},
{
"type": "feature",
"category": "EC2",
"description": "You can now launch f1.4xlarge, a new instance size within the existing f1 family which provides two Xilinx Virtex Field Programmable Arrays (FPGAs) for acceleration. FPGA acceleration provide additional performance and time sensitivity for specialized accelerated workloads such as clinical genomics and real-time video processing. F1.4xlarge instances are available in the US East (N. Virginia), US West (Oregon), GovCloud (US), and EU West (Dublin) AWS Regions."
},
{
"type": "feature",
"category": "RDS",
"description": "This launch enables RDS start-db-cluster and stop-db-cluster. Stopping and starting Amazon Aurora clusters helps you manage costs for development and test environments. You can temporarily stop all the DB instances in your cluster, instead of setting up and tearing down all the DB instances each time that you use the cluster."
}
]

View File

@ -1,7 +1,12 @@
# Changelog for AWS SDK for JavaScript
<!--LATEST=2.318.0-->
<!--LATEST=2.319.0-->
<!--ENTRYINSERT-->
## 2.319.0
* feature: DirectoryService: Added CreateLogSubscription, DeleteLogSubscription, and ListLogSubscriptions APIs for Microsoft AD. Customers can now opt in to have Windows security event logs from the domain controllers forwarded to a log group in their account.
* feature: EC2: You can now launch f1.4xlarge, a new instance size within the existing f1 family which provides two Xilinx Virtex Field Programmable Arrays (FPGAs) for acceleration. FPGA acceleration provide additional performance and time sensitivity for specialized accelerated workloads such as clinical genomics and real-time video processing. F1.4xlarge instances are available in the US East (N. Virginia), US West (Oregon), GovCloud (US), and EU West (Dublin) AWS Regions.
* feature: RDS: This launch enables RDS start-db-cluster and stop-db-cluster. Stopping and starting Amazon Aurora clusters helps you manage costs for development and test environments. You can temporarily stop all the DB instances in your cluster, instead of setting up and tearing down all the DB instances each time that you use the cluster.
## 2.318.0
* feature: CloudWatch: Amazon CloudWatch adds the ability to request png image snapshots of metric widgets using the GetMetricWidgetImage API.
* feature: Organizations: Introducing a new exception - AccountOwnerNotVerifiedException which will be returned for InviteAccountToOrganization call for unverified accounts.

View File

@ -25,7 +25,7 @@ version.
To use the SDK in the browser, simply add the following script tag to your
HTML pages:
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.318.0.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.319.0.min.js"></script>
You can also build a custom browser SDK with your specified set of AWS services.
This can allow you to reduce the SDK's size, specify different API versions of

View File

@ -229,6 +229,23 @@
}
}
},
"CreateLogSubscription": {
"input": {
"type": "structure",
"required": [
"DirectoryId",
"LogGroupName"
],
"members": {
"DirectoryId": {},
"LogGroupName": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"CreateMicrosoftAD": {
"input": {
"type": "structure",
@ -339,6 +356,21 @@
}
}
},
"DeleteLogSubscription": {
"input": {
"type": "structure",
"required": [
"DirectoryId"
],
"members": {
"DirectoryId": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"DeleteSnapshot": {
"input": {
"type": "structure",
@ -476,7 +508,7 @@
},
"SecurityGroupId": {},
"AvailabilityZones": {
"shape": "S2q"
"shape": "S2v"
}
}
},
@ -490,7 +522,7 @@
"CustomerUserName": {},
"SecurityGroupId": {},
"AvailabilityZones": {
"shape": "S2q"
"shape": "S2v"
},
"ConnectIps": {
"type": "list",
@ -499,7 +531,7 @@
}
},
"RadiusSettings": {
"shape": "S2u"
"shape": "S2z"
},
"RadiusStatus": {},
"StageReason": {},
@ -723,7 +755,7 @@
"members": {
"DirectoryId": {},
"RadiusSettings": {
"shape": "S2u"
"shape": "S2z"
}
}
},
@ -861,6 +893,37 @@
}
}
},
"ListLogSubscriptions": {
"input": {
"type": "structure",
"members": {
"DirectoryId": {},
"NextToken": {},
"Limit": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"LogSubscriptions": {
"type": "list",
"member": {
"type": "structure",
"members": {
"DirectoryId": {},
"LogGroupName": {},
"SubscriptionCreatedDateTime": {
"type": "timestamp"
}
}
}
},
"NextToken": {}
}
}
},
"ListSchemaExtensions": {
"input": {
"type": "structure",
@ -1094,7 +1157,7 @@
"members": {
"DirectoryId": {},
"RadiusSettings": {
"shape": "S2u"
"shape": "S2z"
}
}
},
@ -1175,11 +1238,11 @@
}
}
},
"S2q": {
"S2v": {
"type": "list",
"member": {}
},
"S2u": {
"S2z": {
"type": "structure",
"members": {
"RadiusServers": {

View File

@ -3232,6 +3232,26 @@
}
}
},
"StartDBCluster": {
"input": {
"type": "structure",
"required": [
"DBClusterIdentifier"
],
"members": {
"DBClusterIdentifier": {}
}
},
"output": {
"resultWrapper": "StartDBClusterResult",
"type": "structure",
"members": {
"DBCluster": {
"shape": "S1q"
}
}
}
},
"StartDBInstance": {
"input": {
"type": "structure",
@ -3252,6 +3272,26 @@
}
}
},
"StopDBCluster": {
"input": {
"type": "structure",
"required": [
"DBClusterIdentifier"
],
"members": {
"DBClusterIdentifier": {}
}
},
"output": {
"resultWrapper": "StopDBClusterResult",
"type": "structure",
"members": {
"DBCluster": {
"shape": "S1q"
}
}
}
},
"StopDBInstance": {
"input": {
"type": "structure",

View File

@ -75,6 +75,14 @@ declare class DirectoryService extends Service {
* Creates a Simple AD directory. Before you call CreateDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
*/
createDirectory(callback?: (err: AWSError, data: DirectoryService.Types.CreateDirectoryResult) => void): Request<DirectoryService.Types.CreateDirectoryResult, AWSError>;
/**
* Creates a subscription to forward real time Directory Service domain controller security logs to the specified CloudWatch log group in your AWS account.
*/
createLogSubscription(params: DirectoryService.Types.CreateLogSubscriptionRequest, callback?: (err: AWSError, data: DirectoryService.Types.CreateLogSubscriptionResult) => void): Request<DirectoryService.Types.CreateLogSubscriptionResult, AWSError>;
/**
* Creates a subscription to forward real time Directory Service domain controller security logs to the specified CloudWatch log group in your AWS account.
*/
createLogSubscription(callback?: (err: AWSError, data: DirectoryService.Types.CreateLogSubscriptionResult) => void): Request<DirectoryService.Types.CreateLogSubscriptionResult, AWSError>;
/**
* Creates a Microsoft AD in the AWS cloud. Before you call CreateMicrosoftAD, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateMicrosoftAD operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
*/
@ -115,6 +123,14 @@ declare class DirectoryService extends Service {
* Deletes an AWS Directory Service directory. Before you call DeleteDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the DeleteDirectory operation, see AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
*/
deleteDirectory(callback?: (err: AWSError, data: DirectoryService.Types.DeleteDirectoryResult) => void): Request<DirectoryService.Types.DeleteDirectoryResult, AWSError>;
/**
* Deletes the specified log subscription.
*/
deleteLogSubscription(params: DirectoryService.Types.DeleteLogSubscriptionRequest, callback?: (err: AWSError, data: DirectoryService.Types.DeleteLogSubscriptionResult) => void): Request<DirectoryService.Types.DeleteLogSubscriptionResult, AWSError>;
/**
* Deletes the specified log subscription.
*/
deleteLogSubscription(callback?: (err: AWSError, data: DirectoryService.Types.DeleteLogSubscriptionResult) => void): Request<DirectoryService.Types.DeleteLogSubscriptionResult, AWSError>;
/**
* Deletes a directory snapshot.
*/
@ -243,6 +259,14 @@ declare class DirectoryService extends Service {
* Lists the address blocks that you have added to a directory.
*/
listIpRoutes(callback?: (err: AWSError, data: DirectoryService.Types.ListIpRoutesResult) => void): Request<DirectoryService.Types.ListIpRoutesResult, AWSError>;
/**
* Lists the active log subscriptions for the AWS account.
*/
listLogSubscriptions(params: DirectoryService.Types.ListLogSubscriptionsRequest, callback?: (err: AWSError, data: DirectoryService.Types.ListLogSubscriptionsResult) => void): Request<DirectoryService.Types.ListLogSubscriptionsResult, AWSError>;
/**
* Lists the active log subscriptions for the AWS account.
*/
listLogSubscriptions(callback?: (err: AWSError, data: DirectoryService.Types.ListLogSubscriptionsResult) => void): Request<DirectoryService.Types.ListLogSubscriptionsResult, AWSError>;
/**
* Lists all schema extensions applied to a Microsoft AD Directory.
*/
@ -563,6 +587,18 @@ declare namespace DirectoryService {
*/
DirectoryId?: DirectoryId;
}
export interface CreateLogSubscriptionRequest {
/**
* Identifier (ID) of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.
*/
DirectoryId: DirectoryId;
/**
* The name of the CloudWatch log group where the real-time domain controller logs are forwarded.
*/
LogGroupName: LogGroupName;
}
export interface CreateLogSubscriptionResult {
}
export interface CreateMicrosoftADRequest {
/**
* The fully qualified domain name for the directory, such as corp.example.com. This name will resolve inside your VPC only. It does not need to be publicly resolvable.
@ -671,6 +707,14 @@ declare namespace DirectoryService {
*/
DirectoryId?: DirectoryId;
}
export interface DeleteLogSubscriptionRequest {
/**
* Identifier (ID) of the directory whose log subscription you want to delete.
*/
DirectoryId: DirectoryId;
}
export interface DeleteLogSubscriptionResult {
}
export interface DeleteSnapshotRequest {
/**
* The identifier of the directory snapshot to be deleted.
@ -1268,6 +1312,30 @@ declare namespace DirectoryService {
*/
NextToken?: NextToken;
}
export interface ListLogSubscriptionsRequest {
/**
* If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your AWS account. If there are no log subscriptions for the AWS account or the directory, an empty list will be returned.
*/
DirectoryId?: DirectoryId;
/**
* The token for the next set of items to return.
*/
NextToken?: NextToken;
/**
* The maximum number of items returned.
*/
Limit?: Limit;
}
export interface ListLogSubscriptionsResult {
/**
* A list of active LogSubscription objects for calling the AWS account.
*/
LogSubscriptions?: LogSubscriptions;
/**
* The token for the next set of items to return.
*/
NextToken?: NextToken;
}
export interface ListSchemaExtensionsRequest {
/**
* The identifier of the directory from which to retrieve the schema extension information.
@ -1316,6 +1384,22 @@ declare namespace DirectoryService {
*/
NextToken?: NextToken;
}
export type LogGroupName = string;
export interface LogSubscription {
/**
* Identifier (ID) of the directory that you want to associate with the log subscription.
*/
DirectoryId?: DirectoryId;
/**
* The name of the log group.
*/
LogGroupName?: LogGroupName;
/**
* The date and time that the log subscription was created.
*/
SubscriptionCreatedDateTime?: SubscriptionCreatedDateTime;
}
export type LogSubscriptions = LogSubscription[];
export type ManualSnapshotsLimitReached = boolean;
export type NextToken = string;
export type OrganizationalUnitDN = string;
@ -1540,6 +1624,7 @@ declare namespace DirectoryService {
export type StateLastUpdatedDateTime = Date;
export type SubnetId = string;
export type SubnetIds = SubnetId[];
export type SubscriptionCreatedDateTime = Date;
export interface Tag {
/**
* Required name of the tag. The string value can be Unicode characters and cannot be prefixed with "aws:". The string can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").

View File

@ -10079,7 +10079,7 @@ declare namespace EC2 {
*/
Status?: SummaryStatus;
}
export type InstanceType = "t1.micro"|"t2.nano"|"t2.micro"|"t2.small"|"t2.medium"|"t2.large"|"t2.xlarge"|"t2.2xlarge"|"t3.nano"|"t3.micro"|"t3.small"|"t3.medium"|"t3.large"|"t3.xlarge"|"t3.2xlarge"|"m1.small"|"m1.medium"|"m1.large"|"m1.xlarge"|"m3.medium"|"m3.large"|"m3.xlarge"|"m3.2xlarge"|"m4.large"|"m4.xlarge"|"m4.2xlarge"|"m4.4xlarge"|"m4.10xlarge"|"m4.16xlarge"|"m2.xlarge"|"m2.2xlarge"|"m2.4xlarge"|"cr1.8xlarge"|"r3.large"|"r3.xlarge"|"r3.2xlarge"|"r3.4xlarge"|"r3.8xlarge"|"r4.large"|"r4.xlarge"|"r4.2xlarge"|"r4.4xlarge"|"r4.8xlarge"|"r4.16xlarge"|"r5.large"|"r5.xlarge"|"r5.2xlarge"|"r5.4xlarge"|"r5.8xlarge"|"r5.12xlarge"|"r5.16xlarge"|"r5.24xlarge"|"r5.metal"|"r5d.large"|"r5d.xlarge"|"r5d.2xlarge"|"r5d.4xlarge"|"r5d.8xlarge"|"r5d.12xlarge"|"r5d.16xlarge"|"r5d.24xlarge"|"r5d.metal"|"x1.16xlarge"|"x1.32xlarge"|"x1e.xlarge"|"x1e.2xlarge"|"x1e.4xlarge"|"x1e.8xlarge"|"x1e.16xlarge"|"x1e.32xlarge"|"i2.xlarge"|"i2.2xlarge"|"i2.4xlarge"|"i2.8xlarge"|"i3.large"|"i3.xlarge"|"i3.2xlarge"|"i3.4xlarge"|"i3.8xlarge"|"i3.16xlarge"|"i3.metal"|"hi1.4xlarge"|"hs1.8xlarge"|"c1.medium"|"c1.xlarge"|"c3.large"|"c3.xlarge"|"c3.2xlarge"|"c3.4xlarge"|"c3.8xlarge"|"c4.large"|"c4.xlarge"|"c4.2xlarge"|"c4.4xlarge"|"c4.8xlarge"|"c5.large"|"c5.xlarge"|"c5.2xlarge"|"c5.4xlarge"|"c5.9xlarge"|"c5.18xlarge"|"c5d.large"|"c5d.xlarge"|"c5d.2xlarge"|"c5d.4xlarge"|"c5d.9xlarge"|"c5d.18xlarge"|"cc1.4xlarge"|"cc2.8xlarge"|"g2.2xlarge"|"g2.8xlarge"|"g3.4xlarge"|"g3.8xlarge"|"g3.16xlarge"|"cg1.4xlarge"|"p2.xlarge"|"p2.8xlarge"|"p2.16xlarge"|"p3.2xlarge"|"p3.8xlarge"|"p3.16xlarge"|"d2.xlarge"|"d2.2xlarge"|"d2.4xlarge"|"d2.8xlarge"|"f1.2xlarge"|"f1.16xlarge"|"m5.large"|"m5.xlarge"|"m5.2xlarge"|"m5.4xlarge"|"m5.12xlarge"|"m5.24xlarge"|"m5d.large"|"m5d.xlarge"|"m5d.2xlarge"|"m5d.4xlarge"|"m5d.12xlarge"|"m5d.24xlarge"|"h1.2xlarge"|"h1.4xlarge"|"h1.8xlarge"|"h1.16xlarge"|"z1d.large"|"z1d.xlarge"|"z1d.2xlarge"|"z1d.3xlarge"|"z1d.6xlarge"|"z1d.12xlarge"|string;
export type InstanceType = "t1.micro"|"t2.nano"|"t2.micro"|"t2.small"|"t2.medium"|"t2.large"|"t2.xlarge"|"t2.2xlarge"|"t3.nano"|"t3.micro"|"t3.small"|"t3.medium"|"t3.large"|"t3.xlarge"|"t3.2xlarge"|"m1.small"|"m1.medium"|"m1.large"|"m1.xlarge"|"m3.medium"|"m3.large"|"m3.xlarge"|"m3.2xlarge"|"m4.large"|"m4.xlarge"|"m4.2xlarge"|"m4.4xlarge"|"m4.10xlarge"|"m4.16xlarge"|"m2.xlarge"|"m2.2xlarge"|"m2.4xlarge"|"cr1.8xlarge"|"r3.large"|"r3.xlarge"|"r3.2xlarge"|"r3.4xlarge"|"r3.8xlarge"|"r4.large"|"r4.xlarge"|"r4.2xlarge"|"r4.4xlarge"|"r4.8xlarge"|"r4.16xlarge"|"r5.large"|"r5.xlarge"|"r5.2xlarge"|"r5.4xlarge"|"r5.8xlarge"|"r5.12xlarge"|"r5.16xlarge"|"r5.24xlarge"|"r5.metal"|"r5d.large"|"r5d.xlarge"|"r5d.2xlarge"|"r5d.4xlarge"|"r5d.8xlarge"|"r5d.12xlarge"|"r5d.16xlarge"|"r5d.24xlarge"|"r5d.metal"|"x1.16xlarge"|"x1.32xlarge"|"x1e.xlarge"|"x1e.2xlarge"|"x1e.4xlarge"|"x1e.8xlarge"|"x1e.16xlarge"|"x1e.32xlarge"|"i2.xlarge"|"i2.2xlarge"|"i2.4xlarge"|"i2.8xlarge"|"i3.large"|"i3.xlarge"|"i3.2xlarge"|"i3.4xlarge"|"i3.8xlarge"|"i3.16xlarge"|"i3.metal"|"hi1.4xlarge"|"hs1.8xlarge"|"c1.medium"|"c1.xlarge"|"c3.large"|"c3.xlarge"|"c3.2xlarge"|"c3.4xlarge"|"c3.8xlarge"|"c4.large"|"c4.xlarge"|"c4.2xlarge"|"c4.4xlarge"|"c4.8xlarge"|"c5.large"|"c5.xlarge"|"c5.2xlarge"|"c5.4xlarge"|"c5.9xlarge"|"c5.18xlarge"|"c5d.large"|"c5d.xlarge"|"c5d.2xlarge"|"c5d.4xlarge"|"c5d.9xlarge"|"c5d.18xlarge"|"cc1.4xlarge"|"cc2.8xlarge"|"g2.2xlarge"|"g2.8xlarge"|"g3.4xlarge"|"g3.8xlarge"|"g3.16xlarge"|"cg1.4xlarge"|"p2.xlarge"|"p2.8xlarge"|"p2.16xlarge"|"p3.2xlarge"|"p3.8xlarge"|"p3.16xlarge"|"d2.xlarge"|"d2.2xlarge"|"d2.4xlarge"|"d2.8xlarge"|"f1.2xlarge"|"f1.4xlarge"|"f1.16xlarge"|"m5.large"|"m5.xlarge"|"m5.2xlarge"|"m5.4xlarge"|"m5.12xlarge"|"m5.24xlarge"|"m5d.large"|"m5d.xlarge"|"m5d.2xlarge"|"m5d.4xlarge"|"m5d.12xlarge"|"m5d.24xlarge"|"h1.2xlarge"|"h1.4xlarge"|"h1.8xlarge"|"h1.16xlarge"|"z1d.large"|"z1d.xlarge"|"z1d.2xlarge"|"z1d.3xlarge"|"z1d.6xlarge"|"z1d.12xlarge"|string;
export type InstanceTypeList = InstanceType[];
export type Integer = number;
export type InterfacePermissionType = "INSTANCE-ATTACH"|"EIP-ASSOCIATE"|string;

View File

@ -750,19 +750,35 @@ declare class RDS extends Service {
*/
revokeDBSecurityGroupIngress(callback?: (err: AWSError, data: RDS.Types.RevokeDBSecurityGroupIngressResult) => void): Request<RDS.Types.RevokeDBSecurityGroupIngressResult, AWSError>;
/**
* Starts a DB instance that was stopped using the AWS console, the stop-db-instance AWS CLI command, or the StopDBInstance action. For more information, see Stopping and Starting a DB instance in the AWS RDS user guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.
* Starts an Amazon Aurora DB cluster that was stopped using the AWS console, the stop-db-cluster AWS CLI command, or the StopDBCluster action.
*/
startDBCluster(params: RDS.Types.StartDBClusterMessage, callback?: (err: AWSError, data: RDS.Types.StartDBClusterResult) => void): Request<RDS.Types.StartDBClusterResult, AWSError>;
/**
* Starts an Amazon Aurora DB cluster that was stopped using the AWS console, the stop-db-cluster AWS CLI command, or the StopDBCluster action.
*/
startDBCluster(callback?: (err: AWSError, data: RDS.Types.StartDBClusterResult) => void): Request<RDS.Types.StartDBClusterResult, AWSError>;
/**
* Starts an Amazon RDS DB instance that was stopped using the AWS console, the stop-db-instance AWS CLI command, or the StopDBInstance action. For more information, see Starting an Amazon RDS DB Instance That Was Previously Stopped in the Amazon RDS User Guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora DB clusters, use StartDBCluster instead.
*/
startDBInstance(params: RDS.Types.StartDBInstanceMessage, callback?: (err: AWSError, data: RDS.Types.StartDBInstanceResult) => void): Request<RDS.Types.StartDBInstanceResult, AWSError>;
/**
* Starts a DB instance that was stopped using the AWS console, the stop-db-instance AWS CLI command, or the StopDBInstance action. For more information, see Stopping and Starting a DB instance in the AWS RDS user guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.
* Starts an Amazon RDS DB instance that was stopped using the AWS console, the stop-db-instance AWS CLI command, or the StopDBInstance action. For more information, see Starting an Amazon RDS DB Instance That Was Previously Stopped in the Amazon RDS User Guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora DB clusters, use StartDBCluster instead.
*/
startDBInstance(callback?: (err: AWSError, data: RDS.Types.StartDBInstanceResult) => void): Request<RDS.Types.StartDBInstanceResult, AWSError>;
/**
* Stops a DB instance. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary. For more information, see Stopping and Starting a DB instance in the AWS RDS user guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.
* Stops an Amazon Aurora DB cluster. When you stop a DB cluster, Aurora retains the DB cluster's metadata, including its endpoints and DB parameter groups. Aurora also retains the transaction logs so you can do a point-in-time restore if necessary.
*/
stopDBCluster(params: RDS.Types.StopDBClusterMessage, callback?: (err: AWSError, data: RDS.Types.StopDBClusterResult) => void): Request<RDS.Types.StopDBClusterResult, AWSError>;
/**
* Stops an Amazon Aurora DB cluster. When you stop a DB cluster, Aurora retains the DB cluster's metadata, including its endpoints and DB parameter groups. Aurora also retains the transaction logs so you can do a point-in-time restore if necessary.
*/
stopDBCluster(callback?: (err: AWSError, data: RDS.Types.StopDBClusterResult) => void): Request<RDS.Types.StopDBClusterResult, AWSError>;
/**
* Stops an Amazon RDS DB instance. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary. For more information, see Stopping an Amazon RDS DB Instance Temporarily in the Amazon RDS User Guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora clusters, use StopDBCluster instead.
*/
stopDBInstance(params: RDS.Types.StopDBInstanceMessage, callback?: (err: AWSError, data: RDS.Types.StopDBInstanceResult) => void): Request<RDS.Types.StopDBInstanceResult, AWSError>;
/**
* Stops a DB instance. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary. For more information, see Stopping and Starting a DB instance in the AWS RDS user guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.
* Stops an Amazon RDS DB instance. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary. For more information, see Stopping an Amazon RDS DB Instance Temporarily in the Amazon RDS User Guide. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora clusters, use StopDBCluster instead.
*/
stopDBInstance(callback?: (err: AWSError, data: RDS.Types.StopDBInstanceResult) => void): Request<RDS.Types.StopDBInstanceResult, AWSError>;
/**
@ -1213,7 +1229,7 @@ declare namespace RDS {
*/
EnableCloudwatchLogsExports?: LogTypeList;
/**
* The DB engine mode of the DB cluster, either provisioned or serverless.
* The DB engine mode of the DB cluster, either provisioned, serverless, or parallelquery.
*/
EngineMode?: String;
/**
@ -1822,7 +1838,7 @@ declare namespace RDS {
EnabledCloudwatchLogsExports?: LogTypeList;
Capacity?: IntegerOptional;
/**
* The DB engine mode of the DB cluster, either provisioned or serverless.
* The DB engine mode of the DB cluster, either provisioned, serverless, or parallelquery.
*/
EngineMode?: String;
ScalingConfigurationInfo?: ScalingConfigurationInfo;
@ -5138,7 +5154,7 @@ declare namespace RDS {
*/
EnableCloudwatchLogsExports?: LogTypeList;
/**
* The DB engine mode of the DB cluster, either provisioned or serverless.
* The DB engine mode of the DB cluster, either provisioned, serverless, or parallelquery.
*/
EngineMode?: String;
/**
@ -5680,6 +5696,15 @@ declare namespace RDS {
SourceRegions?: SourceRegionList;
}
export type SourceType = "db-instance"|"db-parameter-group"|"db-security-group"|"db-snapshot"|"db-cluster"|"db-cluster-snapshot"|string;
export interface StartDBClusterMessage {
/**
* The DB cluster identifier of the Amazon Aurora DB cluster to be started. This parameter is stored as a lowercase string.
*/
DBClusterIdentifier: String;
}
export interface StartDBClusterResult {
DBCluster?: DBCluster;
}
export interface StartDBInstanceMessage {
/**
* The user-supplied instance identifier.
@ -5689,6 +5714,15 @@ declare namespace RDS {
export interface StartDBInstanceResult {
DBInstance?: DBInstance;
}
export interface StopDBClusterMessage {
/**
* The DB cluster identifier of the Amazon Aurora DB cluster to be stopped. This parameter is stored as a lowercase string.
*/
DBClusterIdentifier: String;
}
export interface StopDBClusterResult {
DBCluster?: DBCluster;
}
export interface StopDBInstanceMessage {
/**
* The user-supplied instance identifier.

View File

@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* @constant
*/
VERSION: '2.318.0',
VERSION: '2.319.0',
/**
* @api private

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
// AWS SDK for JavaScript v2.318.0
// AWS SDK for JavaScript v2.319.0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
@ -103893,6 +103893,26 @@ module.exports={
}
}
},
"StartDBCluster": {
"input": {
"type": "structure",
"required": [
"DBClusterIdentifier"
],
"members": {
"DBClusterIdentifier": {}
}
},
"output": {
"resultWrapper": "StartDBClusterResult",
"type": "structure",
"members": {
"DBCluster": {
"shape": "S1q"
}
}
}
},
"StartDBInstance": {
"input": {
"type": "structure",
@ -103913,6 +103933,26 @@ module.exports={
}
}
},
"StopDBCluster": {
"input": {
"type": "structure",
"required": [
"DBClusterIdentifier"
],
"members": {
"DBClusterIdentifier": {}
}
},
"output": {
"resultWrapper": "StopDBClusterResult",
"type": "structure",
"members": {
"DBCluster": {
"shape": "S1q"
}
}
}
},
"StopDBInstance": {
"input": {
"type": "structure",
@ -137024,7 +137064,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.318.0',
VERSION: '2.319.0',
/**
* @api private
@ -156352,7 +156392,7 @@ function v4(options, buf, offset) {
module.exports = v4;
},{"./lib/bytesToUuid":364,"./lib/rng":365}],368:[function(require,module,exports){
// AWS SDK for JavaScript v2.318.0
// AWS SDK for JavaScript v2.319.0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
require('./browser_loader');

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.318.0',
VERSION: '2.319.0',
/**
* @api private

View File

@ -1,30 +1,36 @@
{
"_from": "aws-sdk",
"_id": "aws-sdk@2.318.0",
"_args": [
[
"aws-sdk@2.319.0",
"/opt/lampp/htdocs/sparqsineedge/ng6-seed"
]
],
"_development": true,
"_from": "aws-sdk@2.319.0",
"_id": "aws-sdk@2.319.0",
"_inBundle": false,
"_integrity": "sha512-w2XT+DOKOczoRaB9R0cRCZSwHkw4JfngMlUKeRhMbzOvW9orOZB2SeMgz+Pz1jKU3VSJDMpvB/Z3P68nvDxb8Q==",
"_integrity": "sha512-Ez8rs036lMoKJxHast6W3m07o1Wzg5h3RffsAoOwRwVmuNXW3xtnPR6XW3+/HaG7vSIk55tZjHo1PECaOY3aeg==",
"_location": "/aws-sdk",
"_phantomChildren": {
"querystring": "0.2.0"
},
"_requested": {
"type": "tag",
"type": "version",
"registry": true,
"raw": "aws-sdk",
"raw": "aws-sdk@2.319.0",
"name": "aws-sdk",
"escapedName": "aws-sdk",
"rawSpec": "",
"rawSpec": "2.319.0",
"saveSpec": null,
"fetchSpec": "latest"
"fetchSpec": "2.319.0"
},
"_requiredBy": [
"#USER",
"/"
"#DEV:/",
"/@types/aws-sdk"
],
"_resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.318.0.tgz",
"_shasum": "b9e8e795d4ae9d5ba428cdaa75dde49acce708d4",
"_spec": "aws-sdk",
"_where": "/opt/lampp/htdocs/optima/ng6-seed",
"_resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.319.0.tgz",
"_spec": "2.319.0",
"_where": "/opt/lampp/htdocs/sparqsineedge/ng6-seed",
"author": {
"name": "Amazon Web Services",
"url": "https://aws.amazon.com/"
@ -41,7 +47,6 @@
"bugs": {
"url": "https://github.com/aws/aws-sdk-js/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Loren Segal",
@ -63,7 +68,6 @@
"uuid": "3.1.0",
"xml2js": "0.4.19"
},
"deprecated": false,
"description": "AWS SDK for JavaScript",
"devDependencies": {
"@types/node": "6.0.92",
@ -174,5 +178,5 @@
},
"types": "index.d.ts",
"typings": "index.d.ts",
"version": "2.318.0"
"version": "2.319.0"
}

21
ng6-seed/node_modules/ngx-mat-select-search/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018 Bithost GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

131
ng6-seed/node_modules/ngx-mat-select-search/README.md generated vendored Normal file
View File

@ -0,0 +1,131 @@
# NgxMatSelectSearch
[https://github.com/bithost-gmbh/ngx-mat-select-search](https://github.com/bithost-gmbh/ngx-mat-select-search)
## What does it do?
This library provides an angular component providing an input field for searching / filtering [MatSelect](https://material.angular.io/components/select/overview) options of the [Angular Material](https://material.angular.io) library.
![Example](src/assets/example.png)
## Try it
See it in action at [https://stackblitz.com/github/bithost-gmbh/ngx-mat-select-search-example](https://stackblitz.com/github/bithost-gmbh/ngx-mat-select-search-example?file=src%2Fapp%2Fapp.component.html)
**Important Note**: This project is meant as a temporary implementation of [https://github.com/angular/material2/issues/5697](https://github.com/angular/material2/issues/5697).
The goal is to have an implementation in the official Angular Material repository,
once [https://github.com/angular/material2/pull/7835](https://github.com/angular/material2/pull/7835)
is merged.
## How to use it?
Install `ngx-mat-select-search` in your project:
```
npm install ngx-mat-select-search
```
Import the `NgxMatSelectSearchModule` in your `app.module.ts`:
```typescript
import { MatFormFieldModule, MatSelectModule } from '@angular/material';
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
@NgModule({
imports: [
ReactiveFormsModule,
BrowserAnimationsModule,
MatSelectModule,
MatFormFieldModule,
NgxMatSelectSearchModule
],
})
export class AppModule {}
```
Use the `ngx-mat-select-search` component inside a `mat-select` element:
```html
<mat-form-field>
<mat-select [formControl]="bankCtrl" placeholder="Bank" #singleSelect>
<ngx-mat-select-search [formControl]="bankFilterCtrl"></ngx-mat-select-search>
<mat-option *ngFor="let bank of filteredBanks | async" [value]="bank">
{{bank.name}}
</mat-option>
</mat-select>
</mat-form-field>
```
See the example in [https://github.com/bithost-gmbh/ngx-mat-select-search/blob/master/src/app/app.component.html](https://github.com/bithost-gmbh/ngx-mat-select-search/blob/master/src/app/app.component.html)
and [https://github.com/bithost-gmbh/ngx-mat-select-search/blob/master/src/app/app.component.ts](https://github.com/bithost-gmbh/ngx-mat-select-search/blob/master/src/app/app.component.ts)
how to wire the `ngx-mat-select-search` and filter the options available.
Or have a look at [https://github.com/bithost-gmbh/ngx-mat-select-search-example](https://github.com/bithost-gmbh/ngx-mat-select-search-example) to see it in a standalone app.
### Labels
In order to change the labels, use the inputs specified in the [API](#api) section as follows:
```html
...
<ngx-mat-select-search [formControl]="bankFilterCtrl"
[placeholderLabel]="'Find bank...'"
[noEntriesFoundLabel]="'no matching bank found'"></ngx-mat-select-search>
...
```
### Compatibility
* `@angular/core`: `^5.0.0 || ^6.0.0`,
* `@angular/cdk`: `^5.0.0 || ^6.0.0`,
* `@angular/material`: `^5.0.0 || ^6.0.0`,
* `rxjs`: `^5.5.2 || ^6.0.0`
### API
The `MatSelectSearchComponent` implements the [ControlValueAccessor](https://angular.io/api/forms/ControlValueAccessor) interface.
Furthermore, it provides the following inputs:
#### Inputs
```typescript
/** Label of the search placeholder */
@Input() placeholderLabel = 'Suche';
/** Label to be shown when no entries are found. Set to null if no message should be shown. */
@Input() noEntriesFoundLabel = 'Keine Optionen gefunden';
/**
* Whether or not the search field should be cleared after the dropdown menu is closed.
* Useful for server-side filtering. See [#3](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/3)
*/
@Input() clearSearchInput = false;
```
#### Customize clear icon
In order to customize the search icon, add the `ngxMatSelectSearchClear` to your custom clear item (a `mat-icon` or any other element) and place it inside the `ngx-mat-select-search` component:
```html
<ngx-mat-select-search>
<mat-icon ngxMatSelectSearchClear>delete</mat-icon>
</ngx-mat-select-search>
```
## Known Problems / Solutions
* The search input is placed outside of the visible screen if the select element is at the top of the screen
(in the stackblitz example, remove the header
or add some content above the select and scroll the select to the top edge). [#1](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/1)
Workaround: use the disableOptionCentering option on the `<mat-select>`
[https://material.angular.io/components/select/api](https://material.angular.io/components/select/api)
## Development
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.1.
### Contributions
Contributions are welcome, please open an issue and preferrably file a pull request.
### Development server
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.
### Build
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.
### Library Build / NPM Package
Run `npm run build-lib` to build the library and generate an NPM package.
The build artifacts will be stored in the `dist-lib/` folder.
### Running unit tests
Run `npm run test` to execute the unit tests via [Karma](https://karma-runner.github.io).

View File

@ -0,0 +1,290 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/material'), require('rxjs'), require('rxjs/operators'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('ngx-mat-select-search', ['exports', '@angular/core', '@angular/forms', '@angular/material', 'rxjs', 'rxjs/operators', '@angular/common'], factory) :
(factory((global['ngx-mat-select-search'] = {}),global.ng.core,global.ng.forms,global.ng.material,global.rxjs,global.Rx.Observable.prototype,global.ng.common));
}(this, (function (exports,core,forms,material,rxjs,operators,common) { 'use strict';
var MatSelectSearchClearDirective = /** @class */ (function () {
function MatSelectSearchClearDirective() {
}
return MatSelectSearchClearDirective;
}());
MatSelectSearchClearDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[ngxMatSelectSearchClear]'
},] },
];
var MatSelectSearchComponent = /** @class */ (function () {
function MatSelectSearchComponent(matSelect, changeDetectorRef) {
this.matSelect = matSelect;
this.changeDetectorRef = changeDetectorRef;
this.placeholderLabel = 'Suche';
this.noEntriesFoundLabel = 'Keine Optionen gefunden';
this.clearSearchInput = true;
this.onChange = function (_) { };
this.onTouched = function (_) { };
this.overlayClassSet = false;
this.change = new core.EventEmitter();
this._onDestroy = new rxjs.Subject();
}
Object.defineProperty(MatSelectSearchComponent.prototype, "value", {
get: function () {
return this._value;
},
enumerable: true,
configurable: true
});
MatSelectSearchComponent.prototype.ngOnInit = function () {
var _this = this;
var panelClass = 'mat-select-search-panel';
if (this.matSelect.panelClass) {
if (Array.isArray(this.matSelect.panelClass)) {
this.matSelect.panelClass.push(panelClass);
}
else if (typeof this.matSelect.panelClass === 'string') {
this.matSelect.panelClass = [this.matSelect.panelClass, panelClass];
}
else if (typeof this.matSelect.panelClass === 'object') {
this.matSelect.panelClass[panelClass] = true;
}
}
else {
this.matSelect.panelClass = panelClass;
}
this.matSelect.openedChange
.pipe(operators.delay(1), operators.takeUntil(this._onDestroy))
.subscribe(function (opened) {
if (opened) {
_this.getWidth();
_this._focus();
}
else {
_this._reset();
}
});
this.matSelect.openedChange
.pipe(operators.take(1))
.pipe(operators.takeUntil(this._onDestroy))
.subscribe(function () {
_this._options = _this.matSelect.options;
_this._options.changes
.pipe(operators.takeUntil(_this._onDestroy))
.subscribe(function () {
var keyManager = _this.matSelect._keyManager;
if (keyManager && _this.matSelect.panelOpen) {
setTimeout(function () {
keyManager.setFirstItemActive();
_this.getWidth();
}, 1);
}
});
});
this.change
.pipe(operators.takeUntil(this._onDestroy))
.subscribe(function () {
_this.changeDetectorRef.detectChanges();
});
this.initMultipleHandling();
};
MatSelectSearchComponent.prototype.ngOnDestroy = function () {
this._onDestroy.next();
this._onDestroy.complete();
};
MatSelectSearchComponent.prototype.ngAfterViewInit = function () {
var _this = this;
this.setOverlayClass();
this.matSelect.openedChange
.pipe(operators.take(1), operators.takeUntil(this._onDestroy)).subscribe(function () {
_this.matSelect.options.changes
.pipe(operators.takeUntil(_this._onDestroy))
.subscribe(function () {
_this.changeDetectorRef.markForCheck();
});
});
};
MatSelectSearchComponent.prototype._handleKeydown = function (event) {
if (event.keyCode === 32) {
event.stopPropagation();
}
};
MatSelectSearchComponent.prototype.writeValue = function (value) {
var valueChanged = value !== this._value;
if (valueChanged) {
this._value = value;
this.change.emit(value);
}
};
MatSelectSearchComponent.prototype.onInputChange = function (value) {
var valueChanged = value !== this._value;
if (valueChanged) {
this.initMultiSelectedValues();
this._value = value;
this.onChange(value);
this.change.emit(value);
}
};
MatSelectSearchComponent.prototype.onBlur = function (value) {
this.writeValue(value);
this.onTouched();
};
MatSelectSearchComponent.prototype.registerOnChange = function (fn) {
this.onChange = fn;
};
MatSelectSearchComponent.prototype.registerOnTouched = function (fn) {
this.onTouched = fn;
};
MatSelectSearchComponent.prototype._focus = function () {
if (!this.searchSelectInput) {
return;
}
var panel = this.matSelect.panel.nativeElement;
var scrollTop = panel.scrollTop;
this.searchSelectInput.nativeElement.focus();
panel.scrollTop = scrollTop;
};
MatSelectSearchComponent.prototype._reset = function (focus) {
if (!this.searchSelectInput) {
return;
}
if (this.clearSearchInput) {
this.searchSelectInput.nativeElement.value = '';
this.onInputChange('');
}
if (focus) {
this._focus();
}
};
MatSelectSearchComponent.prototype.setOverlayClass = function () {
var _this = this;
if (this.overlayClassSet) {
return;
}
var overlayClass = 'cdk-overlay-pane-select-search';
this.matSelect.overlayDir.attach
.pipe(operators.takeUntil(this._onDestroy))
.subscribe(function () {
var element = _this.searchSelectInput.nativeElement;
var overlayElement;
while (element = element.parentElement) {
if (element.classList.contains('cdk-overlay-pane')) {
overlayElement = element;
break;
}
}
if (overlayElement) {
overlayElement.classList.add(overlayClass);
}
});
this.overlayClassSet = true;
};
MatSelectSearchComponent.prototype.initMultipleHandling = function () {
var _this = this;
this.matSelect.valueChange
.pipe(operators.takeUntil(this._onDestroy))
.subscribe(function (values) {
if (_this.matSelect.multiple) {
var restoreSelectedValues_1 = false;
if (_this._value && _this._value.length
&& _this.previousSelectedValues && Array.isArray(_this.previousSelectedValues)) {
if (!values || !Array.isArray(values)) {
values = [];
}
var optionValues_1 = _this.matSelect.options.map(function (option) { return option.value; });
_this.previousSelectedValues.forEach(function (previousValue) {
if (values.indexOf(previousValue) === -1 && optionValues_1.indexOf(previousValue) === -1) {
values.push(previousValue);
restoreSelectedValues_1 = true;
}
});
}
if (restoreSelectedValues_1) {
_this.matSelect._onChange(values);
}
_this.previousSelectedValues = values;
}
});
};
MatSelectSearchComponent.prototype.getWidth = function () {
if (!this.innerSelectSearch || !this.innerSelectSearch.nativeElement) {
return;
}
var element = this.innerSelectSearch.nativeElement;
var panelElement;
while (element = element.parentElement) {
if (element.classList.contains('mat-select-panel')) {
panelElement = element;
break;
}
}
if (panelElement) {
this.innerSelectSearch.nativeElement.style.width = panelElement.clientWidth + 'px';
}
};
MatSelectSearchComponent.prototype.initMultiSelectedValues = function () {
if (this.matSelect.multiple && !this._value) {
this.previousSelectedValues = this.matSelect.options
.filter(function (option) { return option.selected; })
.map(function (option) { return option.value; });
}
};
return MatSelectSearchComponent;
}());
MatSelectSearchComponent.decorators = [
{ type: core.Component, args: [{
selector: 'ngx-mat-select-search',
template: "<!-- Placeholder to adjust vertical offset of the mat-option elements -->\n<input matInput class=\"mat-select-search-input mat-select-search-hidden\"/>\n\n<!-- Note: the mat-datepicker-content mat-tab-header are needed to inherit the material theme colors, see PR #22 -->\n<div\n #innerSelectSearch\n class=\"mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header\"\n [ngClass]=\"{'mat-select-search-inner-multiple': matSelect.multiple}\">\n <input matInput\n class=\"mat-select-search-input\"\n autocomplete=\"off\"\n #searchSelectInput\n (keydown)=\"_handleKeydown($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (blur)=\"onBlur($event.target.value)\"\n [placeholder]=\"placeholderLabel\"\n />\n <button mat-button *ngIf=\"value\"\n mat-icon-button\n aria-label=\"Clear\"\n (click)=\"_reset(true)\"\n class=\"mat-select-search-clear\">\n <ng-content *ngIf=\"clearIcon; else defaultIcon\" select=\"[ngxMatSelectSearchClear]\"></ng-content>\n <ng-template #defaultIcon>\n <mat-icon>close</mat-icon>\n </ng-template>\n </button>\n</div>\n\n<div *ngIf=\"noEntriesFoundLabel && value && _options?.length === 0\"\n class=\"mat-select-search-no-entries-found\">\n {{noEntriesFoundLabel}}\n</div>\n<!--\nCopyright (c) 2018 Bithost GmbH All Rights Reserved.\n\nUse of this source code is governed by an MIT-style license that can be\nfound in the LICENSE file at https://angular.io/license\n-->\n",
styles: [".mat-select-search-hidden{visibility:hidden}.mat-select-search-inner{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;-webkit-box-shadow:none;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple{width:100%}/deep/ .mat-select-search-panel{-webkit-transform:none!important;transform:none!important;max-height:350px;overflow-x:hidden}.mat-select-search-input{padding:16px 36px 16px 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-select-search-no-entries-found{padding:16px}.mat-select-search-clear{position:absolute;right:4px;top:5px}/deep/ .cdk-overlay-pane-select-search{margin-top:-50px}"],
providers: [
{
provide: forms.NG_VALUE_ACCESSOR,
useExisting: core.forwardRef(function () { return MatSelectSearchComponent; }),
multi: true
}
],
changeDetection: core.ChangeDetectionStrategy.OnPush
},] },
];
MatSelectSearchComponent.ctorParameters = function () { return [
{ type: material.MatSelect, decorators: [{ type: core.Inject, args: [material.MatSelect,] },] },
{ type: core.ChangeDetectorRef, },
]; };
MatSelectSearchComponent.propDecorators = {
"placeholderLabel": [{ type: core.Input },],
"noEntriesFoundLabel": [{ type: core.Input },],
"clearSearchInput": [{ type: core.Input },],
"searchSelectInput": [{ type: core.ViewChild, args: ['searchSelectInput', { read: core.ElementRef },] },],
"innerSelectSearch": [{ type: core.ViewChild, args: ['innerSelectSearch', { read: core.ElementRef },] },],
"clearIcon": [{ type: core.ContentChild, args: [MatSelectSearchClearDirective,] },],
};
var NgxMatSelectSearchModule = /** @class */ (function () {
function NgxMatSelectSearchModule() {
}
return NgxMatSelectSearchModule;
}());
NgxMatSelectSearchModule.decorators = [
{ type: core.NgModule, args: [{
imports: [
common.CommonModule,
material.MatButtonModule,
material.MatIconModule,
material.MatInputModule
],
declarations: [
MatSelectSearchComponent,
MatSelectSearchClearDirective
],
exports: [
MatSelectSearchComponent,
MatSelectSearchClearDirective
]
},] },
];
exports.MatSelectSearchComponent = MatSelectSearchComponent;
exports.NgxMatSelectSearchModule = NgxMatSelectSearchModule;
exports.ɵa = MatSelectSearchClearDirective;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=ngx-mat-select-search.umd.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,540 @@
import { Directive, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Inject, Input, ViewChild, ContentChild, NgModule } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { MatSelect, MatButtonModule, MatInputModule, MatIconModule } from '@angular/material';
import { Subject } from 'rxjs';
import { delay, take, takeUntil } from 'rxjs/operators';
import { CommonModule } from '@angular/common';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Directive for providing a custom clear-icon.
* e.g.
* <ngx-mat-select-search [formControl]="bankFilterCtrl">
* <mat-icon ngxMatSelectSearchClear>delete</mat-icon>
* </ngx-mat-select-search>
*/
class MatSelectSearchClearDirective {
}
MatSelectSearchClearDirective.decorators = [
{ type: Directive, args: [{
selector: '[ngxMatSelectSearchClear]'
},] },
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Copyright (c) 2018 Bithost GmbH All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Component providing an input field for searching MatSelect options.
*
* Example usage:
*
* interface Bank {
* id: string;
* name: string;
* }
*
* \@Component({
* selector: 'my-app-data-selection',
* template: `
* <mat-form-field>
* <mat-select [formControl]="bankCtrl" placeholder="Bank">
* <ngx-mat-select-search [formControl]="bankFilterCtrl"></ngx-mat-select-search>
* <mat-option *ngFor="let bank of filteredBanks | async" [value]="bank.id">
* {{bank.name}}
* </mat-option>
* </mat-select>
* </mat-form-field>
* `
* })
* export class DataSelectionComponent implements OnInit, OnDestroy {
*
* // control for the selected bank
* public bankCtrl: FormControl = new FormControl();
* // control for the MatSelect filter keyword
* public bankFilterCtrl: FormControl = new FormControl();
*
* // list of banks
* private banks: Bank[] = [{name: 'Bank A', id: 'A'}, {name: 'Bank B', id: 'B'}, {name: 'Bank C', id: 'C'}];
* // list of banks filtered by search keyword
* public filteredBanks: ReplaySubject<Bank[]> = new ReplaySubject<Bank[]>(1);
*
* // Subject that emits when the component has been destroyed.
* private _onDestroy = new Subject<void>();
*
*
* ngOnInit() {
* // load the initial bank list
* this.filteredBanks.next(this.banks.slice());
* // listen for search field value changes
* this.bankFilterCtrl.valueChanges
* .pipe(takeUntil(this._onDestroy))
* .subscribe(() => {
* this.filterBanks();
* });
* }
*
* ngOnDestroy() {
* this._onDestroy.next();
* this._onDestroy.complete();
* }
*
* private filterBanks() {
* if (!this.banks) {
* return;
* }
*
* // get the search keyword
* let search = this.bankFilterCtrl.value;
* if (!search) {
* this.filteredBanks.next(this.banks.slice());
* return;
* } else {
* search = search.toLowerCase();
* }
*
* // filter the banks
* this.filteredBanks.next(
* this.banks.filter(bank => bank.name.toLowerCase().indexOf(search) > -1)
* );
* }
* }
*/
class MatSelectSearchComponent {
/**
* @param {?} matSelect
* @param {?} changeDetectorRef
*/
constructor(matSelect, changeDetectorRef) {
this.matSelect = matSelect;
this.changeDetectorRef = changeDetectorRef;
/**
* Label of the search placeholder
*/
this.placeholderLabel = 'Suche';
/**
* Label to be shown when no entries are found. Set to null if no message should be shown.
*/
this.noEntriesFoundLabel = 'Keine Optionen gefunden';
/**
* Whether or not the search field should be cleared after the dropdown menu is closed.
* Useful for server-side filtering. See [#3](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/3)
*/
this.clearSearchInput = true;
this.onChange = (_) => { };
this.onTouched = (_) => { };
/**
* Whether the backdrop class has been set
*/
this.overlayClassSet = false;
/**
* Event that emits when the current value changes
*/
this.change = new EventEmitter();
/**
* Subject that emits when the component has been destroyed.
*/
this._onDestroy = new Subject();
}
/**
* Current search value
* @return {?}
*/
get value() {
return this._value;
}
/**
* @return {?}
*/
ngOnInit() {
// set custom panel class
const /** @type {?} */ panelClass = 'mat-select-search-panel';
if (this.matSelect.panelClass) {
if (Array.isArray(this.matSelect.panelClass)) {
this.matSelect.panelClass.push(panelClass);
}
else if (typeof this.matSelect.panelClass === 'string') {
this.matSelect.panelClass = [this.matSelect.panelClass, panelClass];
}
else if (typeof this.matSelect.panelClass === 'object') {
this.matSelect.panelClass[panelClass] = true;
}
}
else {
this.matSelect.panelClass = panelClass;
}
// when the select dropdown panel is opened or closed
this.matSelect.openedChange
.pipe(delay(1), takeUntil(this._onDestroy))
.subscribe((opened) => {
if (opened) {
// focus the search field when opening
this.getWidth();
this._focus();
}
else {
// clear it when closing
this._reset();
}
});
// set the first item active after the options changed
this.matSelect.openedChange
.pipe(take(1))
.pipe(takeUntil(this._onDestroy))
.subscribe(() => {
this._options = this.matSelect.options;
this._options.changes
.pipe(takeUntil(this._onDestroy))
.subscribe(() => {
const /** @type {?} */ keyManager = this.matSelect._keyManager;
if (keyManager && this.matSelect.panelOpen) {
// avoid "expression has been changed" error
setTimeout(() => {
keyManager.setFirstItemActive();
this.getWidth();
}, 1);
}
});
});
// detect changes when the input changes
this.change
.pipe(takeUntil(this._onDestroy))
.subscribe(() => {
this.changeDetectorRef.detectChanges();
});
this.initMultipleHandling();
}
/**
* @return {?}
*/
ngOnDestroy() {
this._onDestroy.next();
this._onDestroy.complete();
}
/**
* @return {?}
*/
ngAfterViewInit() {
this.setOverlayClass();
// update view when available options change
this.matSelect.openedChange
.pipe(take(1), takeUntil(this._onDestroy)).subscribe(() => {
this.matSelect.options.changes
.pipe(takeUntil(this._onDestroy))
.subscribe(() => {
this.changeDetectorRef.markForCheck();
});
});
}
/**
* Handles the key down event with MatSelect.
* Allows e.g. selecting with enter key, navigation with arrow keys, etc.
* @param {?} event
* @return {?}
*/
_handleKeydown(event) {
if (event.keyCode === 32) {
// do not propagate spaces to MatSelect, as this would select the currently active option
event.stopPropagation();
}
}
/**
* @param {?} value
* @return {?}
*/
writeValue(value) {
const /** @type {?} */ valueChanged = value !== this._value;
if (valueChanged) {
this._value = value;
this.change.emit(value);
}
}
/**
* @param {?} value
* @return {?}
*/
onInputChange(value) {
const /** @type {?} */ valueChanged = value !== this._value;
if (valueChanged) {
this.initMultiSelectedValues();
this._value = value;
this.onChange(value);
this.change.emit(value);
}
}
/**
* @param {?} value
* @return {?}
*/
onBlur(value) {
this.writeValue(value);
this.onTouched();
}
/**
* @param {?} fn
* @return {?}
*/
registerOnChange(fn) {
this.onChange = fn;
}
/**
* @param {?} fn
* @return {?}
*/
registerOnTouched(fn) {
this.onTouched = fn;
}
/**
* Focuses the search input field
* @return {?}
*/
_focus() {
if (!this.searchSelectInput) {
return;
}
// save and restore scrollTop of panel, since it will be reset by focus()
// note: this is hacky
const /** @type {?} */ panel = this.matSelect.panel.nativeElement;
const /** @type {?} */ scrollTop = panel.scrollTop;
// focus
this.searchSelectInput.nativeElement.focus();
panel.scrollTop = scrollTop;
}
/**
* Resets the current search value
* @param {?=} focus whether to focus after resetting
* @return {?}
*/
_reset(focus) {
if (!this.searchSelectInput) {
return;
}
if (this.clearSearchInput) {
this.searchSelectInput.nativeElement.value = '';
this.onInputChange('');
}
if (focus) {
this._focus();
}
}
/**
* Sets the overlay class to correct offsetY
* so that the selected option is at the position of the select box when opening
* @return {?}
*/
setOverlayClass() {
if (this.overlayClassSet) {
return;
}
const /** @type {?} */ overlayClass = 'cdk-overlay-pane-select-search';
this.matSelect.overlayDir.attach
.pipe(takeUntil(this._onDestroy))
.subscribe(() => {
// note: this is hacky, but currently there is no better way to do this
let /** @type {?} */ element = this.searchSelectInput.nativeElement;
let /** @type {?} */ overlayElement;
while (element = element.parentElement) {
if (element.classList.contains('cdk-overlay-pane')) {
overlayElement = element;
break;
}
}
if (overlayElement) {
overlayElement.classList.add(overlayClass);
}
});
this.overlayClassSet = true;
}
/**
* Initializes handling <mat-select [multiple]="true">
* Note: to improve this code, mat-select should be extended to allow disabling resetting the selection while filtering.
* @return {?}
*/
initMultipleHandling() {
// if <mat-select [multiple]="true">
// store previously selected values and restore them when they are deselected
// because the option is not available while we are currently filtering
this.matSelect.valueChange
.pipe(takeUntil(this._onDestroy))
.subscribe((values) => {
if (this.matSelect.multiple) {
let /** @type {?} */ restoreSelectedValues = false;
if (this._value && this._value.length
&& this.previousSelectedValues && Array.isArray(this.previousSelectedValues)) {
if (!values || !Array.isArray(values)) {
values = [];
}
const /** @type {?} */ optionValues = this.matSelect.options.map(option => option.value);
this.previousSelectedValues.forEach(previousValue => {
if (values.indexOf(previousValue) === -1 && optionValues.indexOf(previousValue) === -1) {
// if a value that was selected before is deselected and not found in the options, it was deselected
// due to the filtering, so we restore it.
values.push(previousValue);
restoreSelectedValues = true;
}
});
}
if (restoreSelectedValues) {
this.matSelect._onChange(values);
}
this.previousSelectedValues = values;
}
});
}
/**
* Set the width of the innerSelectSearch to fit even custom scrollbars
* And support all Operation Systems
* @return {?}
*/
getWidth() {
if (!this.innerSelectSearch || !this.innerSelectSearch.nativeElement) {
return;
}
let /** @type {?} */ element = this.innerSelectSearch.nativeElement;
let /** @type {?} */ panelElement;
while (element = element.parentElement) {
if (element.classList.contains('mat-select-panel')) {
panelElement = element;
break;
}
}
if (panelElement) {
this.innerSelectSearch.nativeElement.style.width = panelElement.clientWidth + 'px';
}
}
/**
* Initialize this.previousSelectedValues once the first filtering occurs.
* @return {?}
*/
initMultiSelectedValues() {
if (this.matSelect.multiple && !this._value) {
this.previousSelectedValues = this.matSelect.options
.filter(option => option.selected)
.map(option => option.value);
}
}
}
MatSelectSearchComponent.decorators = [
{ type: Component, args: [{
selector: 'ngx-mat-select-search',
template: `<!-- Placeholder to adjust vertical offset of the mat-option elements -->
<input matInput class="mat-select-search-input mat-select-search-hidden"/>
<!-- Note: the mat-datepicker-content mat-tab-header are needed to inherit the material theme colors, see PR #22 -->
<div
#innerSelectSearch
class="mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header"
[ngClass]="{'mat-select-search-inner-multiple': matSelect.multiple}">
<input matInput
class="mat-select-search-input"
autocomplete="off"
#searchSelectInput
(keydown)="_handleKeydown($event)"
(input)="onInputChange($event.target.value)"
(blur)="onBlur($event.target.value)"
[placeholder]="placeholderLabel"
/>
<button mat-button *ngIf="value"
mat-icon-button
aria-label="Clear"
(click)="_reset(true)"
class="mat-select-search-clear">
<ng-content *ngIf="clearIcon; else defaultIcon" select="[ngxMatSelectSearchClear]"></ng-content>
<ng-template #defaultIcon>
<mat-icon>close</mat-icon>
</ng-template>
</button>
</div>
<div *ngIf="noEntriesFoundLabel && value && _options?.length === 0"
class="mat-select-search-no-entries-found">
{{noEntriesFoundLabel}}
</div>
<!--
Copyright (c) 2018 Bithost GmbH All Rights Reserved.
Use of this source code is governed by an MIT-style license that can be
found in the LICENSE file at https://angular.io/license
-->
`,
styles: [`.mat-select-search-hidden{visibility:hidden}.mat-select-search-inner{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;-webkit-box-shadow:none;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple{width:100%}/deep/ .mat-select-search-panel{-webkit-transform:none!important;transform:none!important;max-height:350px;overflow-x:hidden}.mat-select-search-input{padding:16px 36px 16px 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-select-search-no-entries-found{padding:16px}.mat-select-search-clear{position:absolute;right:4px;top:5px}/deep/ .cdk-overlay-pane-select-search{margin-top:-50px}`],
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => MatSelectSearchComponent),
multi: true
}
],
changeDetection: ChangeDetectionStrategy.OnPush
},] },
];
/** @nocollapse */
MatSelectSearchComponent.ctorParameters = () => [
{ type: MatSelect, decorators: [{ type: Inject, args: [MatSelect,] },] },
{ type: ChangeDetectorRef, },
];
MatSelectSearchComponent.propDecorators = {
"placeholderLabel": [{ type: Input },],
"noEntriesFoundLabel": [{ type: Input },],
"clearSearchInput": [{ type: Input },],
"searchSelectInput": [{ type: ViewChild, args: ['searchSelectInput', { read: ElementRef },] },],
"innerSelectSearch": [{ type: ViewChild, args: ['innerSelectSearch', { read: ElementRef },] },],
"clearIcon": [{ type: ContentChild, args: [MatSelectSearchClearDirective,] },],
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Copyright (c) 2018 Bithost GmbH All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
class NgxMatSelectSearchModule {
}
NgxMatSelectSearchModule.decorators = [
{ type: NgModule, args: [{
imports: [
CommonModule,
MatButtonModule,
MatIconModule,
MatInputModule
],
declarations: [
MatSelectSearchComponent,
MatSelectSearchClearDirective
],
exports: [
MatSelectSearchComponent,
MatSelectSearchClearDirective
]
},] },
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { MatSelectSearchComponent, NgxMatSelectSearchModule, MatSelectSearchClearDirective as ɵa };
//# sourceMappingURL=ngx-mat-select-search.js.map

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,285 @@
import { Directive, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Inject, Input, ViewChild, ContentChild, NgModule } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { MatSelect, MatButtonModule, MatInputModule, MatIconModule } from '@angular/material';
import { Subject } from 'rxjs';
import { delay, take, takeUntil } from 'rxjs/operators';
import { CommonModule } from '@angular/common';
var MatSelectSearchClearDirective = /** @class */ (function () {
function MatSelectSearchClearDirective() {
}
return MatSelectSearchClearDirective;
}());
MatSelectSearchClearDirective.decorators = [
{ type: Directive, args: [{
selector: '[ngxMatSelectSearchClear]'
},] },
];
var MatSelectSearchComponent = /** @class */ (function () {
function MatSelectSearchComponent(matSelect, changeDetectorRef) {
this.matSelect = matSelect;
this.changeDetectorRef = changeDetectorRef;
this.placeholderLabel = 'Suche';
this.noEntriesFoundLabel = 'Keine Optionen gefunden';
this.clearSearchInput = true;
this.onChange = function (_) { };
this.onTouched = function (_) { };
this.overlayClassSet = false;
this.change = new EventEmitter();
this._onDestroy = new Subject();
}
Object.defineProperty(MatSelectSearchComponent.prototype, "value", {
get: function () {
return this._value;
},
enumerable: true,
configurable: true
});
MatSelectSearchComponent.prototype.ngOnInit = function () {
var _this = this;
var panelClass = 'mat-select-search-panel';
if (this.matSelect.panelClass) {
if (Array.isArray(this.matSelect.panelClass)) {
this.matSelect.panelClass.push(panelClass);
}
else if (typeof this.matSelect.panelClass === 'string') {
this.matSelect.panelClass = [this.matSelect.panelClass, panelClass];
}
else if (typeof this.matSelect.panelClass === 'object') {
this.matSelect.panelClass[panelClass] = true;
}
}
else {
this.matSelect.panelClass = panelClass;
}
this.matSelect.openedChange
.pipe(delay(1), takeUntil(this._onDestroy))
.subscribe(function (opened) {
if (opened) {
_this.getWidth();
_this._focus();
}
else {
_this._reset();
}
});
this.matSelect.openedChange
.pipe(take(1))
.pipe(takeUntil(this._onDestroy))
.subscribe(function () {
_this._options = _this.matSelect.options;
_this._options.changes
.pipe(takeUntil(_this._onDestroy))
.subscribe(function () {
var keyManager = _this.matSelect._keyManager;
if (keyManager && _this.matSelect.panelOpen) {
setTimeout(function () {
keyManager.setFirstItemActive();
_this.getWidth();
}, 1);
}
});
});
this.change
.pipe(takeUntil(this._onDestroy))
.subscribe(function () {
_this.changeDetectorRef.detectChanges();
});
this.initMultipleHandling();
};
MatSelectSearchComponent.prototype.ngOnDestroy = function () {
this._onDestroy.next();
this._onDestroy.complete();
};
MatSelectSearchComponent.prototype.ngAfterViewInit = function () {
var _this = this;
this.setOverlayClass();
this.matSelect.openedChange
.pipe(take(1), takeUntil(this._onDestroy)).subscribe(function () {
_this.matSelect.options.changes
.pipe(takeUntil(_this._onDestroy))
.subscribe(function () {
_this.changeDetectorRef.markForCheck();
});
});
};
MatSelectSearchComponent.prototype._handleKeydown = function (event) {
if (event.keyCode === 32) {
event.stopPropagation();
}
};
MatSelectSearchComponent.prototype.writeValue = function (value) {
var valueChanged = value !== this._value;
if (valueChanged) {
this._value = value;
this.change.emit(value);
}
};
MatSelectSearchComponent.prototype.onInputChange = function (value) {
var valueChanged = value !== this._value;
if (valueChanged) {
this.initMultiSelectedValues();
this._value = value;
this.onChange(value);
this.change.emit(value);
}
};
MatSelectSearchComponent.prototype.onBlur = function (value) {
this.writeValue(value);
this.onTouched();
};
MatSelectSearchComponent.prototype.registerOnChange = function (fn) {
this.onChange = fn;
};
MatSelectSearchComponent.prototype.registerOnTouched = function (fn) {
this.onTouched = fn;
};
MatSelectSearchComponent.prototype._focus = function () {
if (!this.searchSelectInput) {
return;
}
var panel = this.matSelect.panel.nativeElement;
var scrollTop = panel.scrollTop;
this.searchSelectInput.nativeElement.focus();
panel.scrollTop = scrollTop;
};
MatSelectSearchComponent.prototype._reset = function (focus) {
if (!this.searchSelectInput) {
return;
}
if (this.clearSearchInput) {
this.searchSelectInput.nativeElement.value = '';
this.onInputChange('');
}
if (focus) {
this._focus();
}
};
MatSelectSearchComponent.prototype.setOverlayClass = function () {
var _this = this;
if (this.overlayClassSet) {
return;
}
var overlayClass = 'cdk-overlay-pane-select-search';
this.matSelect.overlayDir.attach
.pipe(takeUntil(this._onDestroy))
.subscribe(function () {
var element = _this.searchSelectInput.nativeElement;
var overlayElement;
while (element = element.parentElement) {
if (element.classList.contains('cdk-overlay-pane')) {
overlayElement = element;
break;
}
}
if (overlayElement) {
overlayElement.classList.add(overlayClass);
}
});
this.overlayClassSet = true;
};
MatSelectSearchComponent.prototype.initMultipleHandling = function () {
var _this = this;
this.matSelect.valueChange
.pipe(takeUntil(this._onDestroy))
.subscribe(function (values) {
if (_this.matSelect.multiple) {
var restoreSelectedValues_1 = false;
if (_this._value && _this._value.length
&& _this.previousSelectedValues && Array.isArray(_this.previousSelectedValues)) {
if (!values || !Array.isArray(values)) {
values = [];
}
var optionValues_1 = _this.matSelect.options.map(function (option) { return option.value; });
_this.previousSelectedValues.forEach(function (previousValue) {
if (values.indexOf(previousValue) === -1 && optionValues_1.indexOf(previousValue) === -1) {
values.push(previousValue);
restoreSelectedValues_1 = true;
}
});
}
if (restoreSelectedValues_1) {
_this.matSelect._onChange(values);
}
_this.previousSelectedValues = values;
}
});
};
MatSelectSearchComponent.prototype.getWidth = function () {
if (!this.innerSelectSearch || !this.innerSelectSearch.nativeElement) {
return;
}
var element = this.innerSelectSearch.nativeElement;
var panelElement;
while (element = element.parentElement) {
if (element.classList.contains('mat-select-panel')) {
panelElement = element;
break;
}
}
if (panelElement) {
this.innerSelectSearch.nativeElement.style.width = panelElement.clientWidth + 'px';
}
};
MatSelectSearchComponent.prototype.initMultiSelectedValues = function () {
if (this.matSelect.multiple && !this._value) {
this.previousSelectedValues = this.matSelect.options
.filter(function (option) { return option.selected; })
.map(function (option) { return option.value; });
}
};
return MatSelectSearchComponent;
}());
MatSelectSearchComponent.decorators = [
{ type: Component, args: [{
selector: 'ngx-mat-select-search',
template: "<!-- Placeholder to adjust vertical offset of the mat-option elements -->\n<input matInput class=\"mat-select-search-input mat-select-search-hidden\"/>\n\n<!-- Note: the mat-datepicker-content mat-tab-header are needed to inherit the material theme colors, see PR #22 -->\n<div\n #innerSelectSearch\n class=\"mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header\"\n [ngClass]=\"{'mat-select-search-inner-multiple': matSelect.multiple}\">\n <input matInput\n class=\"mat-select-search-input\"\n autocomplete=\"off\"\n #searchSelectInput\n (keydown)=\"_handleKeydown($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (blur)=\"onBlur($event.target.value)\"\n [placeholder]=\"placeholderLabel\"\n />\n <button mat-button *ngIf=\"value\"\n mat-icon-button\n aria-label=\"Clear\"\n (click)=\"_reset(true)\"\n class=\"mat-select-search-clear\">\n <ng-content *ngIf=\"clearIcon; else defaultIcon\" select=\"[ngxMatSelectSearchClear]\"></ng-content>\n <ng-template #defaultIcon>\n <mat-icon>close</mat-icon>\n </ng-template>\n </button>\n</div>\n\n<div *ngIf=\"noEntriesFoundLabel && value && _options?.length === 0\"\n class=\"mat-select-search-no-entries-found\">\n {{noEntriesFoundLabel}}\n</div>\n<!--\nCopyright (c) 2018 Bithost GmbH All Rights Reserved.\n\nUse of this source code is governed by an MIT-style license that can be\nfound in the LICENSE file at https://angular.io/license\n-->\n",
styles: [".mat-select-search-hidden{visibility:hidden}.mat-select-search-inner{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;-webkit-box-shadow:none;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple{width:100%}/deep/ .mat-select-search-panel{-webkit-transform:none!important;transform:none!important;max-height:350px;overflow-x:hidden}.mat-select-search-input{padding:16px 36px 16px 16px;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-select-search-no-entries-found{padding:16px}.mat-select-search-clear{position:absolute;right:4px;top:5px}/deep/ .cdk-overlay-pane-select-search{margin-top:-50px}"],
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(function () { return MatSelectSearchComponent; }),
multi: true
}
],
changeDetection: ChangeDetectionStrategy.OnPush
},] },
];
MatSelectSearchComponent.ctorParameters = function () { return [
{ type: MatSelect, decorators: [{ type: Inject, args: [MatSelect,] },] },
{ type: ChangeDetectorRef, },
]; };
MatSelectSearchComponent.propDecorators = {
"placeholderLabel": [{ type: Input },],
"noEntriesFoundLabel": [{ type: Input },],
"clearSearchInput": [{ type: Input },],
"searchSelectInput": [{ type: ViewChild, args: ['searchSelectInput', { read: ElementRef },] },],
"innerSelectSearch": [{ type: ViewChild, args: ['innerSelectSearch', { read: ElementRef },] },],
"clearIcon": [{ type: ContentChild, args: [MatSelectSearchClearDirective,] },],
};
var NgxMatSelectSearchModule = /** @class */ (function () {
function NgxMatSelectSearchModule() {
}
return NgxMatSelectSearchModule;
}());
NgxMatSelectSearchModule.decorators = [
{ type: NgModule, args: [{
imports: [
CommonModule,
MatButtonModule,
MatIconModule,
MatInputModule
],
declarations: [
MatSelectSearchComponent,
MatSelectSearchClearDirective
],
exports: [
MatSelectSearchComponent,
MatSelectSearchClearDirective
]
},] },
];
export { MatSelectSearchComponent, NgxMatSelectSearchModule, MatSelectSearchClearDirective as ɵa };
//# sourceMappingURL=ngx-mat-select-search.js.map

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,9 @@
/**
* Directive for providing a custom clear-icon.
* e.g.
* <ngx-mat-select-search [formControl]="bankFilterCtrl">
* <mat-icon ngxMatSelectSearchClear>delete</mat-icon>
* </ngx-mat-select-search>
*/
export declare class MatSelectSearchClearDirective {
}

View File

@ -0,0 +1,163 @@
/**
* Copyright (c) 2018 Bithost GmbH All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { MatOption, MatSelect } from '@angular/material';
import { MatSelectSearchClearDirective } from './mat-select-search-clear.directive';
/**
* Component providing an input field for searching MatSelect options.
*
* Example usage:
*
* interface Bank {
* id: string;
* name: string;
* }
*
* @Component({
* selector: 'my-app-data-selection',
* template: `
* <mat-form-field>
* <mat-select [formControl]="bankCtrl" placeholder="Bank">
* <ngx-mat-select-search [formControl]="bankFilterCtrl"></ngx-mat-select-search>
* <mat-option *ngFor="let bank of filteredBanks | async" [value]="bank.id">
* {{bank.name}}
* </mat-option>
* </mat-select>
* </mat-form-field>
* `
* })
* export class DataSelectionComponent implements OnInit, OnDestroy {
*
* // control for the selected bank
* public bankCtrl: FormControl = new FormControl();
* // control for the MatSelect filter keyword
* public bankFilterCtrl: FormControl = new FormControl();
*
* // list of banks
* private banks: Bank[] = [{name: 'Bank A', id: 'A'}, {name: 'Bank B', id: 'B'}, {name: 'Bank C', id: 'C'}];
* // list of banks filtered by search keyword
* public filteredBanks: ReplaySubject<Bank[]> = new ReplaySubject<Bank[]>(1);
*
* // Subject that emits when the component has been destroyed.
* private _onDestroy = new Subject<void>();
*
*
* ngOnInit() {
* // load the initial bank list
* this.filteredBanks.next(this.banks.slice());
* // listen for search field value changes
* this.bankFilterCtrl.valueChanges
* .pipe(takeUntil(this._onDestroy))
* .subscribe(() => {
* this.filterBanks();
* });
* }
*
* ngOnDestroy() {
* this._onDestroy.next();
* this._onDestroy.complete();
* }
*
* private filterBanks() {
* if (!this.banks) {
* return;
* }
*
* // get the search keyword
* let search = this.bankFilterCtrl.value;
* if (!search) {
* this.filteredBanks.next(this.banks.slice());
* return;
* } else {
* search = search.toLowerCase();
* }
*
* // filter the banks
* this.filteredBanks.next(
* this.banks.filter(bank => bank.name.toLowerCase().indexOf(search) > -1)
* );
* }
* }
*/
export declare class MatSelectSearchComponent implements OnInit, OnDestroy, AfterViewInit, ControlValueAccessor {
matSelect: MatSelect;
private changeDetectorRef;
/** Label of the search placeholder */
placeholderLabel: string;
/** Label to be shown when no entries are found. Set to null if no message should be shown. */
noEntriesFoundLabel: string;
/**
* Whether or not the search field should be cleared after the dropdown menu is closed.
* Useful for server-side filtering. See [#3](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/3)
*/
clearSearchInput: boolean;
/** Reference to the search input field */
searchSelectInput: ElementRef;
/** Reference to the search input field */
innerSelectSearch: ElementRef;
/** Reference to custom search input clear icon */
clearIcon: MatSelectSearchClearDirective;
/** Current search value */
readonly value: string;
private _value;
onChange: Function;
onTouched: Function;
/** Reference to the MatSelect options */
_options: QueryList<MatOption>;
/** Previously selected values when using <mat-select [multiple]="true">*/
private previousSelectedValues;
/** Whether the backdrop class has been set */
private overlayClassSet;
/** Event that emits when the current value changes */
private change;
/** Subject that emits when the component has been destroyed. */
private _onDestroy;
constructor(matSelect: MatSelect, changeDetectorRef: ChangeDetectorRef);
ngOnInit(): void;
ngOnDestroy(): void;
ngAfterViewInit(): void;
/**
* Handles the key down event with MatSelect.
* Allows e.g. selecting with enter key, navigation with arrow keys, etc.
* @param event
*/
_handleKeydown(event: KeyboardEvent): void;
writeValue(value: string): void;
onInputChange(value: any): void;
onBlur(value: string): void;
registerOnChange(fn: Function): void;
registerOnTouched(fn: Function): void;
/**
* Focuses the search input field
*/
_focus(): void;
/**
* Resets the current search value
* @param focus whether to focus after resetting
*/
_reset(focus?: boolean): void;
/**
* Sets the overlay class to correct offsetY
* so that the selected option is at the position of the select box when opening
*/
private setOverlayClass();
/**
* Initializes handling <mat-select [multiple]="true">
* Note: to improve this code, mat-select should be extended to allow disabling resetting the selection while filtering.
*/
private initMultipleHandling();
/**
* Set the width of the innerSelectSearch to fit even custom scrollbars
* And support all Operation Systems
*/
private getWidth();
/**
* Initialize this.previousSelectedValues once the first filtering occurs.
*/
initMultiSelectedValues(): void;
}

View File

@ -0,0 +1,5 @@
/**
* Generated bundle index. Do not edit.
*/
export * from './public_api';
export { MatSelectSearchClearDirective as ɵa } from './mat-select-search-clear.directive';

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
export declare class NgxMatSelectSearchModule {
}

View File

@ -0,0 +1,103 @@
{
"_from": "ngx-mat-select-search",
"_id": "ngx-mat-select-search@1.3.1",
"_inBundle": false,
"_integrity": "sha512-ZggcqsfcJZ1tcy6ZgNnifrvn/ahWJqRO2B7QXHt0FDUo4lrv/2cuHALzwuwlY/z8rZeH+ZEmaAevzQtYH8mKpA==",
"_location": "/ngx-mat-select-search",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "ngx-mat-select-search",
"name": "ngx-mat-select-search",
"escapedName": "ngx-mat-select-search",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/ngx-mat-select-search/-/ngx-mat-select-search-1.3.1.tgz",
"_shasum": "0139560d80d0926d6f5544a7effa6263607a5914",
"_spec": "ngx-mat-select-search",
"_where": "/opt/lampp/htdocs/sparqsineedge/ng6-seed",
"author": {
"name": "Esteban Marin, Bithost GmbH"
},
"bugs": {
"url": "https://github.com/bithost-gmbh/ngx-mat-select-search/issues"
},
"bundleDependencies": false,
"dependencies": {
"tslib": "^1.9.0"
},
"deprecated": false,
"description": "Library that provides an angular component providing an input field for searching / filtering MatSelect options of the Angular Material library.",
"devDependencies": {
"@angular-devkit/build-angular": "~0.6.5",
"@angular/animations": "^6.0.3",
"@angular/cdk": "^6.1.0",
"@angular/cli": "^6.0.5",
"@angular/common": "^6.0.3",
"@angular/compiler": "^6.0.3",
"@angular/compiler-cli": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/forms": "^6.0.3",
"@angular/http": "^6.0.3",
"@angular/language-service": "^6.0.3",
"@angular/material": "^6.1.0",
"@angular/platform-browser": "^6.0.3",
"@angular/platform-browser-dynamic": "^6.0.3",
"@angular/router": "^6.0.3",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"core-js": "^2.4.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"ng-packagr": "^2.4.2",
"protractor": "~5.1.2",
"rxjs": "^6.2.0",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.7.2",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.19"
},
"es2015": "esm2015/ngx-mat-select-search.js",
"homepage": "https://github.com/bithost-gmbh/ngx-mat-select-search",
"keywords": [
"angular",
"angular 2",
"material",
"MatSelect",
"select",
"search",
"filter"
],
"license": "MIT",
"main": "bundles/ngx-mat-select-search.umd.js",
"metadata": "ngx-mat-select-search.metadata.json",
"module": "esm5/ngx-mat-select-search.js",
"name": "ngx-mat-select-search",
"peerDependencies": {
"@angular/core": "^5.0.0 || ^6.0.0",
"@angular/cdk": "^5.0.0 || ^6.0.0",
"@angular/material": "^5.0.0 || ^6.0.0",
"rxjs": "^5.5.2 || ^6.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bithost-gmbh/ngx-mat-select-search.git"
},
"typings": "ngx-mat-select-search.d.ts",
"version": "1.3.1"
}

View File

@ -0,0 +1,2 @@
export * from './mat-select-search.component';
export * from './ngx-mat-select-search.module';

View File

@ -7197,6 +7197,14 @@
"resolved": "https://registry.npmjs.org/ngx-color-picker/-/ngx-color-picker-4.5.3.tgz",
"integrity": "sha512-CJca1od05yf2j8OKUm5ar+mIVFB3n01+vbMpLeT+9/drKYCxgmtxxmmsgwWBNNXWYa2GNYB7PGH+mdKQkeypOg=="
},
"ngx-mat-select-search": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/ngx-mat-select-search/-/ngx-mat-select-search-1.3.1.tgz",
"integrity": "sha512-ZggcqsfcJZ1tcy6ZgNnifrvn/ahWJqRO2B7QXHt0FDUo4lrv/2cuHALzwuwlY/z8rZeH+ZEmaAevzQtYH8mKpA==",
"requires": {
"tslib": "^1.9.0"
}
},
"ngx-perfect-scrollbar": {
"version": "5.0.0-7",
"resolved": "https://registry.npmjs.org/ngx-perfect-scrollbar/-/ngx-perfect-scrollbar-5.0.0-7.tgz",

View File

@ -49,6 +49,7 @@
"ng2-file-upload": "1.2.1",
"ng2-validation": "4.2.0",
"ngx-color-picker": "^4.0.3",
"ngx-mat-select-search": "^1.3.1",
"ngx-perfect-scrollbar": "5.0.0-7",
"perfect-scrollbar": "^1.3.0",
"quill": "^1.2.0",

View File

@ -4,7 +4,9 @@
<div class="opt-side relative ">
<div class="sidebar-container ">
<div class="branding text-center">
<h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
<!-- <h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
</h2> -->
<h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> SINEEDGE </span>
</h2>
</div>
<div class="main-nav">
@ -86,7 +88,9 @@
<div fxFlex.sm="100" fxFlex.xs="100" fxFlex.md="33.33" fxFlex.lg="33.33" fxFlex.xl="33.33" fxFlex="100">
<div class="horizontal-logo">
<div class="branding text-center">
<h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
<!-- <h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
</h2> -->
<h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> SINEEDGE</span>
</h2>
</div>
</div>

View File

@ -30,10 +30,9 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
sidebarBg: boolean = true;
currentLang = 'en';
layoutDir = 'ltr';
menuLayout : any = 'vertical-menu';
selectedSidebarImage : any = 'bg-1';
selectedSidebarColor : any = 'sidebar-default';
selectedSidebarColor : any = 'sidebar-blue';
selectedHeaderColor : any = 'header-default';
collapsedClass : any = 'side-panel-opened';

View File

@ -3,15 +3,14 @@
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
</h2>
</div> -->
<div class="container"
fxLayout
fxLayout.xs="column"
fxLayoutAlign="center"
fxLayoutGap="20px"
fxLayoutGap.xs="0">
<div class="mat-dialog-title" fxFlex>Branch</div>
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
<div fxFlex></div>
<div class="ml-xs mr-xs" style="width: 100%;"
fxLayout="row"
fxLayoutAlign="center">
<h2 mat-dialog-title style="width: 30%;"> Branch &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h2>
<div style="width: 40%;"></div>
<div style="width: 30%;text-align:right;">
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
</div>
</div>
<!-- {{empresas|json}} -->
@ -21,7 +20,7 @@
<div class="form-group">
<mat-dialog-content>
<div class="mb-2">
<div class="ml-xs mr-xs">
<mat-form-field>
<!-- <ngx-select-dropdown [multiple]="false" [value]="citydatas.city_id" [options]="citydatas" ></ngx-select-dropdown> -->
<mat-select placeholder="Pick Up City name" required [formControl]="_branchForm.controls['fk_city_id']">
@ -33,7 +32,7 @@
<!-- <small *ngIf="!_branchForm.controls['fk_city_id'].valid && _branchForm.controls['fk_city_id'].touched" class="mat-text-warn">You must Pickup City Name.</small> -->
</div>
<div class="mb-1">
<div class="ml-xs mr-xs">
<mat-form-field>
<input matInput type="text" placeholder="Branch Name" required [formControl]="_branchForm.controls['name']">
<mat-error *ngIf="!_branchForm.controls['name'].valid && _branchForm.controls['name'].touched">You must inculde a Name</mat-error>
@ -63,3 +62,7 @@
</mat-dialog-content>
</div>
</form>
<!--
-->

View File

@ -4,5 +4,7 @@ mat-form-field{
mat-dialog-container{
width:10% !important;
}
.container{
width:10% !important;
}
//style="width: 100%"

View File

@ -1,9 +1,11 @@
<div class="pad-wrap">
<mat-card-content>
<div style="text-align: right;">
<button mat-raised-button color="primary" (click)="addBranch()" [disabled]="dialogRef"> + Add Branch</button>
</div>
</div>
<br>
<div *ngIf="loader">
<mat-progress-bar mode="indeterminate" color="accent" class="mb-1"></mat-progress-bar>
</div>
<div class="example-header">
<mat-form-field>
@ -13,28 +15,36 @@
<div class="example-container mat-elevation-z8">
<mat-table [dataSource]="dataSource" matSort>
<mat-table *ngIf="dataSource.length > 0" #table [dataSource]="dataSource" matSort >
<ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef mat-sort-header> Name </mat-header-cell>
<ng-container matColumnDef="SerialNo">
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
</ng-container>
<ng-container matColumnDef="BranchName">
<mat-header-cell *matHeaderCellDef mat-sort-header> Branch Name </mat-header-cell>
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
</ng-container>
<ng-container matColumnDef="cname">
<ng-container matColumnDef="CityName">
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
</ng-container>
<ng-container matColumnDef="isactive">
<ng-container matColumnDef="IsActive">
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
<mat-cell *matCellDef="let row"> {{row.isactive}} </mat-cell>
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
</mat-cell>
</ng-container>
<ng-container matColumnDef="actions">
<mat-header-cell *matHeaderCellDef> </mat-header-cell>
<ng-container matColumnDef="Actions">
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
<mat-cell *matCellDef="let row">
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editBranch(row)"><mat-icon>edit</mat-icon></button>
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.branch_id)"><mat-icon>delete_outline</mat-icon></button>
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editBranch(row)"><mat-icon>edit</mat-icon></button>
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.branch_id)"><mat-icon>delete_outline</mat-icon></button>
</mat-cell>
</ng-container>
@ -43,42 +53,12 @@
</mat-row>
</mat-table>
<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>
<p *ngIf="dataSource.length === 0">No records found</p>
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
</div>
<!--<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<ng-container matColumnDef="position">
<th mat-header-cell *matHeaderCellDef> No. </th>
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</ng-container>
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef> Name </th>
<td mat-cell *matCellDef="let element"> {{element.name}} </td>
</ng-container>
<ng-container matColumnDef="weight">
<th mat-header-cell *matHeaderCellDef> Weight </th>
<td mat-cell *matCellDef="let element"> {{element.weight}} </td>
</ng-container>
<ng-container matColumnDef="symbol">
<th mat-header-cell *matHeaderCellDef> Symbol </th>
<td mat-cell *matCellDef="let element"> {{element.symbol}} </td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>-->
</mat-card-content>
<!--<mat-table #table [dataSource]="dataSource" matSort>
<ng-container matColumnDef="{{column.id}}" *ngFor="let column of columnNames">
<mat-header-cell *matHeaderCellDef mat-sort-header> {{column.value}} </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element[column.id]}} </mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
</mat-table>-->
<p *ngIf="dataSource.length === 0">No records found</p>

View File

@ -95,3 +95,24 @@ th {
padding-left: 6px;
font-size: 20px;
}**/
.example-container {
display: flex;
flex-direction: column;
min-width: 300px;
}
.example-header {
min-height: 64px;
padding: 8px 24px 0;
}
.mat-form-field {
font-size: 14px;
width: 100%;
}
.mat-table {
overflow: auto;
max-height: 500px;
}

View File

@ -30,14 +30,11 @@ export class BranchListComponent implements OnInit {
loader: boolean = false;
BranchList: any = [];
userData = null;
public dataLength: number;
public dataSource = new MatTableDataSource();
// displayedColumns = ['name', 'email', 'phone', 'company'];
displayedColumns = ['name','cname', 'isactive','actions'];
displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
@ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort;

View File

@ -1,37 +1,14 @@
<mat-card>
<!-- <div class="selectedSidebarColor"> -->
<!-- <div class="app search-i" [dir]="layoutDir" [ngClass]="[ menuLayout, selectedSidebarImage, , selectedHeaderColor]" > -->
<mat-card-title><span> Master Details </span></mat-card-title>
<mat-card-subtitle> Pickup the Master to View Master Detail </mat-card-subtitle>
<!-- </div> -->
<mat-card-title><span> Masters </span></mat-card-title>
<mat-card-subtitle> Pick up for Master</mat-card-subtitle>
<mat-card-content>
<div fxFlex.gt-sm="40" fxFlex="100"></div>
<div fxFlex.gt-sm="30" fxFlex="100">
<!-- NORMAL Search Field -->
<!-- <mat-form-field>
<mat-select placeholder="Select Master" [(ngModel)]="pickUpMasterData" required [disabled]="isDisabled" #MasterDataControl="ngModel">
<!-- <mat-option (click)="onChangedData()" *ngFor="let masters of masterArray" [value]="masters.value" [disabled]="masters.disabled"> ->
<mat-option *ngFor="let masters of masterArray" [value]="masters.code" [disabled]="masters.disabled">
{{ masters.viewValue }}
</mat-option>
</mat-select>
</mat-form-field> -->
<!-- Autocomplete Field -->
<!-- <mat-form-field>
<input matInput placeholder="Select Master" [matAutocomplete]="tdAuto" [(ngModel)]="currentState" #modelDir="ngModel" required
(ngModelChange)="this.tdStates = filterStates(currentState)" [disabled]="tdDisabled">
<mat-autocomplete #tdAuto="matAutocomplete">
<mat-option *ngFor="let state of tdStates" [value]="state.viewValue">
{{ state.viewValue }}
</mat-option>
</mat-autocomplete>
</mat-form-field> -->
<!-- Searchable dropdown Field -->
<!-- <form [formGroup]="_MasterForm" (submit)="onSubmit()">
<div class="form-group">-->
<div class="mb-1">
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
<div class="ml-xs mr-xs" style="width: 30%;">
</div>
<div class="ml-xs mr-xs" style="width: 30%;">
<mat-form-field>
<mat-select placeholder="Select" #singleSelect required [formControl]="masterCtrl">
<ngx-mat-select-search [formControl]="masterFilterCtrl" ></ngx-mat-select-search>
@ -39,21 +16,17 @@
{{master.name}}
</mat-option>
</mat-select>
</mat-form-field>
<!-- <small *ngIf="masterCtrl.touched" class="mat-text-warn">You must Pick up a Master Name.</small> -->
</div>
<!--</div>
</form> -->
</div>
</mat-card-content>
</mat-card-content>
<hr>
<hr>
<div *ngIf="masterCtrl.value =='master-1'" >
<app-industry_classification-list></app-industry_classification-list>
</div>
<div *ngIf="masterCtrl.value =='master-2'">
@ -119,27 +92,5 @@
<div *ngIf="masterCtrl.value =='master-22'">
<app-lender-hierarchy-list></app-lender-hierarchy-list>
</div>
<!-- <div *ngIf="masterCtrl.value =='datatable'">
<data-table></data-table></div>
<div *ngIf="masterCtrl.value =='usertable'">
<app-usertable></app-usertable>
</div> -->
<!-- <div *ngIf="currentState == 'Industry Classification'" >
<app-industry-master-list></app-industry-master-list>
</div>
<div *ngIf="currentState == 'Product'" >
<app-product-list></app-product-list>
</div>
<div *ngIf="currentState == 'Sub Product'" >
<app-sub-product-list></app-sub-product-list>
</div> -->
<!-- <div *ngIf="pickUpMasterData =='master-1'">
<app-industry-master-list></app-industry-master-list>
</div>
<div *ngIf="pickUpMasterData =='master-2'">
<app-product-list></app-product-list>
</div>
<div *ngIf="pickUpMasterData =='master-3'">
<app-sub-product-list></app-sub-product-list>
</div> -->
</mat-card>

View File

@ -12,6 +12,7 @@ import {
MatButtonModule,MatTableModule,MatPaginatorModule,
MatProgressBarModule,MatDialogModule, MatSortModule,
MatToolbarModule,MatSelectModule } from '@angular/material';
import { MatTooltipModule } from '@angular/material/tooltip';
import { DemoMaterialModule } from '../../shared/demo.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
@ -104,7 +105,8 @@ import { MastersService } from '../service/masters/masters.service';
FileUploadModule,
NgxMatSelectSearchModule,
NgxDatatableModule,
MatSortModule
MatSortModule,
MatTooltipModule
],
declarations: [MastersComponent,
IndustryClassificationListComponent,

View File

@ -30,7 +30,7 @@ const MENUITEMS : Menu[] = [
state:'setting',
name:'Settings',
type:'sub',
icon:'explore',
icon:'settings',
children:[
{state:'users',name:'User List'},
{state:'mastermodule',name:'Master Details'}

View File

@ -6,7 +6,8 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Optima - Angular 6 Material Admin Template</title>
<!-- <title>Optima - Angular 6 Material Admin Template</title> -->
<title> SineEdge </title>
<script>
if (global === undefined) {