@ngutil/layout 0.0.3-dev.1 → 0.0.3-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ export * from "./lib/layout/layout.component";
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9sYXlvdXQvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9saWIvbGF5b3V0L2xheW91dC5jb21wb25lbnRcIlxuIl19
@@ -0,0 +1,12 @@
1
+ import { CommonModule } from "@angular/common";
2
+ import { Component } from "@angular/core";
3
+ import * as i0 from "@angular/core";
4
+ export class LayoutComponent {
5
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: LayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: LayoutComponent, isStandalone: true, selector: "nu-layout", ngImport: i0, template: `<p>layout works!</p>`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
7
+ }
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: LayoutComponent, decorators: [{
9
+ type: Component,
10
+ args: [{ selector: "nu-layout", standalone: true, imports: [CommonModule], template: `<p>layout works!</p>` }]
11
+ }] });
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2xheW91dC9zcmMvbGliL2xheW91dC9sYXlvdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUM5QyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFBOztBQVN6QyxNQUFNLE9BQU8sZUFBZTs4R0FBZixlQUFlO2tHQUFmLGVBQWUscUVBSGQsc0JBQXNCLHlFQUR0QixZQUFZOzsyRkFJYixlQUFlO2tCQVAzQixTQUFTOytCQUNJLFdBQVcsY0FDVCxJQUFJLFdBQ1AsQ0FBQyxZQUFZLENBQUMsWUFDYixzQkFBc0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tIFwiQGFuZ3VsYXIvY29tbW9uXCJcbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCJcblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6IFwibnUtbGF5b3V0XCIsXG4gICAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgICB0ZW1wbGF0ZTogYDxwPmxheW91dCB3b3JrcyE8L3A+YCxcbiAgICBzdHlsZVVybDogXCIuL2xheW91dC5jb21wb25lbnQuc2Nzc1wiXG59KVxuZXhwb3J0IGNsYXNzIExheW91dENvbXBvbmVudCB7fVxuIl19
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd1dGlsLWxheW91dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2xheW91dC9zcmMvbmd1dGlsLWxheW91dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -0,0 +1,19 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Component } from '@angular/core';
4
+
5
+ class LayoutComponent {
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: LayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: LayoutComponent, isStandalone: true, selector: "nu-layout", ngImport: i0, template: `<p>layout works!</p>`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
8
+ }
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: LayoutComponent, decorators: [{
10
+ type: Component,
11
+ args: [{ selector: "nu-layout", standalone: true, imports: [CommonModule], template: `<p>layout works!</p>` }]
12
+ }] });
13
+
14
+ /**
15
+ * Generated bundle index. Do not edit.
16
+ */
17
+
18
+ export { LayoutComponent };
19
+ //# sourceMappingURL=ngutil-layout.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngutil-layout.mjs","sources":["../../../../packages/layout/src/lib/layout/layout.component.ts","../../../../packages/layout/src/ngutil-layout.ts"],"sourcesContent":["import { CommonModule } from \"@angular/common\"\nimport { Component } from \"@angular/core\"\n\n@Component({\n selector: \"nu-layout\",\n standalone: true,\n imports: [CommonModule],\n template: `<p>layout works!</p>`,\n styleUrl: \"./layout.component.scss\"\n})\nexport class LayoutComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAUa,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHd,CAAsB,oBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EADtB,YAAY,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIb,eAAe,EAAA,UAAA,EAAA,CAAA;kBAP3B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,cACT,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,CAAC,YACb,CAAsB,oBAAA,CAAA,EAAA,CAAA;;;ACPpC;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./lib/layout/layout.component";
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LayoutComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "nu-layout", never, {}, {}, never, never, true, never>;
5
+ }
package/package.json CHANGED
@@ -1,17 +1,30 @@
1
1
  {
2
2
  "name": "@ngutil/layout",
3
- "version": "0.0.3-dev.1",
3
+ "version": "0.0.3-dev.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
- "directory": "../../dist/packages/layout"
6
+ "directory": "../../dist/packages/layout/"
7
7
  },
8
8
  "peerDependencies": {
9
9
  "@angular/common": "^17.1.0",
10
10
  "@angular/core": "^17.1.0",
11
- "@ngutil/aria": "^0.0.3-dev.1"
11
+ "@ngutil/aria": "0.0.3-dev.6"
12
12
  },
13
13
  "dependencies": {
14
14
  "tslib": "^2.3.0"
15
15
  },
16
- "sideEffects": false
17
- }
16
+ "sideEffects": false,
17
+ "module": "fesm2022/ngutil-layout.mjs",
18
+ "typings": "index.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./index.d.ts",
25
+ "esm2022": "./esm2022/ngutil-layout.mjs",
26
+ "esm": "./esm2022/ngutil-layout.mjs",
27
+ "default": "./fesm2022/ngutil-layout.mjs"
28
+ }
29
+ }
30
+ }
package/.eslintrc.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "extends": ["../../.eslintrc.yml"],
3
- "ignorePatterns": ["!**/*", "storybook-static"],
4
- "overrides": [
5
- {
6
- "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
- "rules": {}
8
- },
9
- {
10
- "files": ["*.ts", "*.tsx"],
11
- "rules": {}
12
- },
13
- {
14
- "files": ["*.js", "*.jsx"],
15
- "rules": {}
16
- },
17
- {
18
- "files": ["*.json"],
19
- "parser": "jsonc-eslint-parser",
20
- "rules": {
21
- "@nx/dependency-checks": "error"
22
- }
23
- }
24
- ]
25
- }
@@ -1,16 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/angular"
2
-
3
- const config: StorybookConfig = {
4
- stories: ["../**/*.stories.@(js|jsx|ts|tsx|mdx)"],
5
- addons: ["@storybook/addon-essentials", "@storybook/addon-interactions"],
6
- framework: {
7
- name: "@storybook/angular",
8
- options: {}
9
- }
10
- }
11
-
12
- export default config
13
-
14
- // To customize your webpack configuration you can use the webpackFinal field.
15
- // Check https://storybook.js.org/docs/react/builders/webpack#extending-storybooks-webpack-config
16
- // and https://nx.dev/recipes/storybook/custom-builder-configs
File without changes
@@ -1,16 +0,0 @@
1
- {
2
- "extends": "../tsconfig.json",
3
- "compilerOptions": {
4
- "emitDecoratorMetadata": true
5
- },
6
- "exclude": ["../**/*.spec.ts"],
7
- "include": [
8
- "../src/**/*.stories.ts",
9
- "../src/**/*.stories.js",
10
- "../src/**/*.stories.jsx",
11
- "../src/**/*.stories.tsx",
12
- "../src/**/*.stories.mdx",
13
- "*.js",
14
- "*.ts"
15
- ]
16
- }
package/jest.config.ts DELETED
@@ -1,22 +0,0 @@
1
- /* eslint-disable */
2
- export default {
3
- displayName: "layout",
4
- preset: "../../jest.preset.js",
5
- setupFilesAfterEnv: ["<rootDir>/src/test-setup.ts"],
6
- coverageDirectory: "../../coverage/packages/layout",
7
- transform: {
8
- "^.+\\.(ts|mjs|js|html)$": [
9
- "jest-preset-angular",
10
- {
11
- tsconfig: "<rootDir>/tsconfig.spec.json",
12
- stringifyContentPathRegex: "\\.(html|svg)$"
13
- }
14
- ]
15
- },
16
- transformIgnorePatterns: ["node_modules/(?!.*\\.mjs$)"],
17
- snapshotSerializers: [
18
- "jest-preset-angular/build/serializers/no-ng-attributes",
19
- "jest-preset-angular/build/serializers/ng-snapshot",
20
- "jest-preset-angular/build/serializers/html-comment"
21
- ]
22
- }
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/packages/layout",
4
- "lib": {
5
- "entryFile": "src/index.ts"
6
- }
7
- }
package/project.json DELETED
@@ -1,73 +0,0 @@
1
- {
2
- "name": "layout",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/layout/src",
5
- "prefix": "nu",
6
- "tags": [],
7
- "projectType": "library",
8
- "targets": {
9
- "build": {
10
- "executor": "@nx/angular:package",
11
- "outputs": ["{workspaceRoot}/dist/{projectRoot}"],
12
- "options": {
13
- "project": "packages/layout/ng-package.json"
14
- },
15
- "configurations": {
16
- "production": {
17
- "tsConfig": "packages/layout/tsconfig.lib.prod.json"
18
- },
19
- "development": {
20
- "tsConfig": "packages/layout/tsconfig.lib.json"
21
- }
22
- },
23
- "defaultConfiguration": "production"
24
- },
25
- "storybook": {
26
- "executor": "@storybook/angular:start-storybook",
27
- "options": {
28
- "port": 4400,
29
- "configDir": "packages/layout/.storybook",
30
- "browserTarget": "layout:build-storybook",
31
- "compodoc": false
32
- },
33
- "configurations": {
34
- "ci": {
35
- "quiet": true
36
- }
37
- }
38
- },
39
- "build-storybook": {
40
- "executor": "@storybook/angular:build-storybook",
41
- "outputs": ["{options.outputDir}"],
42
- "options": {
43
- "outputDir": "dist/storybook/layout",
44
- "configDir": "packages/layout/.storybook",
45
- "browserTarget": "layout:build-storybook",
46
- "compodoc": false
47
- },
48
- "configurations": {
49
- "ci": {
50
- "quiet": true
51
- }
52
- }
53
- },
54
- "test-storybook": {
55
- "executor": "nx:run-commands",
56
- "options": {
57
- "command": "test-storybook -c packages/layout/.storybook --url=http://localhost:4400"
58
- }
59
- },
60
- "static-storybook": {
61
- "executor": "@nx/web:file-server",
62
- "options": {
63
- "buildTarget": "layout:build-storybook",
64
- "staticFilePath": "dist/storybook/layout"
65
- },
66
- "configurations": {
67
- "ci": {
68
- "buildTarget": "layout:build-storybook:ci"
69
- }
70
- }
71
- }
72
- }
73
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./lib/layout/layout.component"
File without changes
@@ -1,22 +0,0 @@
1
- import { ComponentFixture, TestBed } from "@angular/core/testing"
2
-
3
- import { LayoutComponent } from "./layout.component"
4
-
5
- describe("LayoutComponent", () => {
6
- let component: LayoutComponent
7
- let fixture: ComponentFixture<LayoutComponent>
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [LayoutComponent]
12
- }).compileComponents()
13
-
14
- fixture = TestBed.createComponent(LayoutComponent)
15
- component = fixture.componentInstance
16
- fixture.detectChanges()
17
- })
18
-
19
- it("should create", () => {
20
- expect(component).toBeTruthy()
21
- })
22
- })
@@ -1,24 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/angular"
2
- import { expect } from "@storybook/jest"
3
- import { within } from "@storybook/testing-library"
4
-
5
- import { LayoutComponent } from "./layout.component"
6
-
7
- const meta: Meta<LayoutComponent> = {
8
- component: LayoutComponent,
9
- title: "LayoutComponent"
10
- }
11
- export default meta
12
- type Story = StoryObj<LayoutComponent>
13
-
14
- export const Primary: Story = {
15
- args: {}
16
- }
17
-
18
- export const Heading: Story = {
19
- args: {},
20
- play: async ({ canvasElement }) => {
21
- const canvas = within(canvasElement)
22
- expect(canvas.getByText(/layout works!/gi)).toBeTruthy()
23
- }
24
- }
@@ -1,11 +0,0 @@
1
- import { CommonModule } from "@angular/common"
2
- import { Component } from "@angular/core"
3
-
4
- @Component({
5
- selector: "nu-layout",
6
- standalone: true,
7
- imports: [CommonModule],
8
- template: `<p>layout works!</p>`,
9
- styleUrl: "./layout.component.scss"
10
- })
11
- export class LayoutComponent {}
package/src/test-setup.ts DELETED
@@ -1,9 +0,0 @@
1
- import "jest-preset-angular/setup-jest"
2
-
3
- // @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment
4
- globalThis.ngJest = {
5
- testEnvironmentOptions: {
6
- errorOnUnknownElements: true,
7
- errorOnUnknownProperties: true
8
- }
9
- }
package/tsconfig.json DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2022",
4
- "useDefineForClassFields": false,
5
- "forceConsistentCasingInFileNames": true,
6
- "strict": true,
7
- "noImplicitOverride": true,
8
- "noPropertyAccessFromIndexSignature": true,
9
- "noImplicitReturns": true,
10
- "noFallthroughCasesInSwitch": true
11
- },
12
- "files": [],
13
- "include": [],
14
- "references": [
15
- {
16
- "path": "./tsconfig.lib.json"
17
- },
18
- {
19
- "path": "./tsconfig.spec.json"
20
- },
21
- {
22
- "path": "./.storybook/tsconfig.json"
23
- }
24
- ],
25
- "extends": "../../tsconfig.base.json",
26
- "angularCompilerOptions": {
27
- "enableI18nLegacyMessageIdFormat": false,
28
- "strictInjectionParameters": true,
29
- "strictInputAccessModifiers": true,
30
- "strictTemplates": true
31
- }
32
- }
package/tsconfig.lib.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../dist/out-tsc",
5
- "declaration": true,
6
- "declarationMap": true,
7
- "inlineSources": true,
8
- "types": []
9
- },
10
- "exclude": [
11
- "src/**/*.spec.ts",
12
- "src/test-setup.ts",
13
- "jest.config.ts",
14
- "src/**/*.test.ts",
15
- "**/*.stories.ts",
16
- "**/*.stories.js"
17
- ],
18
- "include": ["src/**/*.ts"]
19
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.lib.json",
3
- "compilerOptions": {
4
- "declarationMap": false
5
- },
6
- "angularCompilerOptions": {
7
- "compilationMode": "partial"
8
- }
9
- }
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../dist/out-tsc",
5
- "module": "commonjs",
6
- "target": "es2016",
7
- "types": ["jest", "node"]
8
- },
9
- "files": ["src/test-setup.ts"],
10
- "include": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts"]
11
- }