aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template8
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template12
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.d.ts10
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.js102
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.d.ts37
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.js4
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.json61
7 files changed, 0 insertions, 234 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template
deleted file mode 100644
index 04bcd1dd..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template
+++ /dev/null
@@ -1,8 +0,0 @@
-import { <%= classify(name) %>Pipe } from './<%= dasherize(name) %>.pipe';
-
-describe('<%= classify(name) %>Pipe', () => {
- it('create an instance', () => {
- const pipe = new <%= classify(name) %>Pipe();
- expect(pipe).toBeTruthy();
- });
-});
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template
deleted file mode 100644
index cd2a9014..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Pipe, PipeTransform } from '@angular/core';
-
-@Pipe({
- name: '<%= camelize(name) %>'
-})
-export class <%= classify(name) %>Pipe implements PipeTransform {
-
- transform(value: unknown, ...args: unknown[]): unknown {
- return null;
- }
-
-}
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.d.ts
deleted file mode 100644
index 6782ce02..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * @license
- * Copyright Google LLC 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 { Rule } from '@angular-devkit/schematics';
-import { Schema as PipeOptions } from './schema';
-export default function (options: PipeOptions): Rule;
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.js
deleted file mode 100644
index 989aeddf..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/index.js
+++ /dev/null
@@ -1,102 +0,0 @@
-"use strict";
-/**
- * @license
- * Copyright Google LLC 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
- */
-var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
-}) : (function(o, m, k, k2) {
- if (k2 === undefined) k2 = k;
- o[k2] = m[k];
-}));
-var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
- Object.defineProperty(o, "default", { enumerable: true, value: v });
-}) : function(o, v) {
- o["default"] = v;
-});
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
- __setModuleDefault(result, mod);
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const core_1 = require("@angular-devkit/core");
-const schematics_1 = require("@angular-devkit/schematics");
-const ts = __importStar(require("../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
-const ast_utils_1 = require("../utility/ast-utils");
-const change_1 = require("../utility/change");
-const find_module_1 = require("../utility/find-module");
-const parse_name_1 = require("../utility/parse-name");
-const workspace_1 = require("../utility/workspace");
-function addDeclarationToNgModule(options) {
- return (host) => {
- if (options.skipImport || !options.module) {
- return host;
- }
- const modulePath = options.module;
- const text = host.read(modulePath);
- if (text === null) {
- throw new schematics_1.SchematicsException(`File ${modulePath} does not exist.`);
- }
- const sourceText = text.toString('utf-8');
- const source = ts.createSourceFile(modulePath, sourceText, ts.ScriptTarget.Latest, true);
- const pipePath = `/${options.path}/` +
- (options.flat ? '' : core_1.strings.dasherize(options.name) + '/') +
- core_1.strings.dasherize(options.name) +
- '.pipe';
- const relativePath = (0, find_module_1.buildRelativePath)(modulePath, pipePath);
- const changes = (0, ast_utils_1.addDeclarationToModule)(source, modulePath, core_1.strings.classify(`${options.name}Pipe`), relativePath);
- const recorder = host.beginUpdate(modulePath);
- for (const change of changes) {
- if (change instanceof change_1.InsertChange) {
- recorder.insertLeft(change.pos, change.toAdd);
- }
- }
- host.commitUpdate(recorder);
- if (options.export) {
- const text = host.read(modulePath);
- if (text === null) {
- throw new schematics_1.SchematicsException(`File ${modulePath} does not exist.`);
- }
- const sourceText = text.toString('utf-8');
- const source = ts.createSourceFile(modulePath, sourceText, ts.ScriptTarget.Latest, true);
- const exportRecorder = host.beginUpdate(modulePath);
- const exportChanges = (0, ast_utils_1.addExportToModule)(source, modulePath, core_1.strings.classify(`${options.name}Pipe`), relativePath);
- for (const change of exportChanges) {
- if (change instanceof change_1.InsertChange) {
- exportRecorder.insertLeft(change.pos, change.toAdd);
- }
- }
- host.commitUpdate(exportRecorder);
- }
- return host;
- };
-}
-function default_1(options) {
- return async (host) => {
- if (options.path === undefined) {
- options.path = await (0, workspace_1.createDefaultPath)(host, options.project);
- }
- options.module = (0, find_module_1.findModuleFromOptions)(host, options);
- const parsedPath = (0, parse_name_1.parseName)(options.path, options.name);
- options.name = parsedPath.name;
- options.path = parsedPath.path;
- const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./files'), [
- options.skipTests ? (0, schematics_1.filter)((path) => !path.endsWith('.spec.ts.template')) : (0, schematics_1.noop)(),
- (0, schematics_1.applyTemplates)({
- ...core_1.strings,
- 'if-flat': (s) => (options.flat ? '' : s),
- ...options,
- }),
- (0, schematics_1.move)(parsedPath.path),
- ]);
- return (0, schematics_1.chain)([addDeclarationToNgModule(options), (0, schematics_1.mergeWith)(templateSource)]);
- };
-}
-exports.default = default_1;
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.d.ts
deleted file mode 100644
index efe58193..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.d.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Creates a new, generic pipe definition in the given or default project.
- */
-export interface Schema {
- /**
- * The declaring NgModule exports this pipe.
- */
- export?: boolean;
- /**
- * When true (the default) creates files at the top level of the project.
- */
- flat?: boolean;
- /**
- * The declaring NgModule.
- */
- module?: string;
- /**
- * The name of the pipe.
- */
- name: string;
- /**
- * The path at which to create the pipe, relative to the workspace root.
- */
- path?: string;
- /**
- * The name of the project.
- */
- project?: string;
- /**
- * Do not import this pipe into the owning NgModule.
- */
- skipImport?: boolean;
- /**
- * Do not create "spec.ts" test files for the new pipe.
- */
- skipTests?: boolean;
-}
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.js
deleted file mode 100644
index 4fb6d3d1..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.js
+++ /dev/null
@@ -1,4 +0,0 @@
-"use strict";
-// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
-// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
-Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.json b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.json
deleted file mode 100644
index 230785ae..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/pipe/schema.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema",
- "$id": "SchematicsAngularPipe",
- "title": "Angular Pipe Options Schema",
- "type": "object",
- "additionalProperties": false,
- "description": "Creates a new, generic pipe definition in the given or default project.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the pipe.",
- "$default": {
- "$source": "argv",
- "index": 0
- },
- "x-prompt": "What name would you like to use for the pipe?"
- },
- "path": {
- "type": "string",
- "format": "path",
- "description": "The path at which to create the pipe, relative to the workspace root.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project.",
- "$default": {
- "$source": "projectName"
- }
- },
- "flat": {
- "type": "boolean",
- "default": true,
- "description": "When true (the default) creates files at the top level of the project."
- },
- "skipTests": {
- "type": "boolean",
- "description": "Do not create \"spec.ts\" test files for the new pipe.",
- "default": false,
- "x-user-analytics": 12
- },
- "skipImport": {
- "type": "boolean",
- "default": false,
- "description": "Do not import this pipe into the owning NgModule.",
- "x-user-analytics": 18
- },
- "module": {
- "type": "string",
- "description": "The declaring NgModule.",
- "alias": "m"
- },
- "export": {
- "type": "boolean",
- "default": false,
- "description": "The declaring NgModule exports this pipe.",
- "x-user-analytics": 19
- }
- },
- "required": ["name"]
-}