@design-system-rte/angular 0.1.1-rc2 → 0.1.1-rc3
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.
- package/README.md +24 -0
- package/esm2022/design-system-rte-angular.mjs +5 -0
- package/esm2022/lib/lib.component.mjs +19 -0
- package/esm2022/lib/lib.service.mjs +14 -0
- package/esm2022/public-api.mjs +6 -0
- package/fesm2022/design-system-rte-angular.mjs +42 -0
- package/fesm2022/design-system-rte-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/lib.component.d.ts +5 -0
- package/lib/lib.service.d.ts +6 -0
- package/package.json +18 -48
- package/public-api.d.ts +2 -0
- package/.editorconfig +0 -15
- package/.storybook/main.ts +0 -25
- package/.storybook/preview.scss +0 -10
- package/.storybook/preview.ts +0 -27
- package/.storybook/tsconfig.doc.json +0 -7
- package/.storybook/tsconfig.json +0 -11
- package/.storybook/typings.d.ts +0 -4
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -127
- package/src/assets/.gitkeep +0 -0
- package/src/components/button/button.component.html +0 -7
- package/src/components/button/button.component.scss +0 -156
- package/src/components/button/button.component.spec.ts +0 -23
- package/src/components/button/button.component.stories.ts +0 -103
- package/src/components/button/button.component.ts +0 -25
- package/src/components/grid/col/col.directive.ts +0 -37
- package/src/components/grid/grid.directive.stories.ts +0 -149
- package/src/components/grid/grid.directive.ts +0 -24
- package/src/components/link/link.component.html +0 -5
- package/src/components/link/link.component.scss +0 -108
- package/src/components/link/link.component.stories.ts +0 -61
- package/src/components/link/link.component.ts +0 -19
- package/src/components/radio-button/radio-button.component.html +0 -24
- package/src/components/radio-button/radio-button.component.scss +0 -140
- package/src/components/radio-button/radio-button.component.stories.ts +0 -75
- package/src/components/radio-button/radio-button.component.ts +0 -23
- package/src/components/radio-button-group/radio-button-group.component.html +0 -45
- package/src/components/radio-button-group/radio-button-group.component.scss +0 -82
- package/src/components/radio-button-group/radio-button-group.component.stories.ts +0 -124
- package/src/components/radio-button-group/radio-button-group.component.ts +0 -30
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -32
- package/tsconfig.spec.json +0 -14
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Lib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project lib`.
|
|
8
|
+
> Note: Don't forget to add `--project lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build lib`, go to the dist folder `cd dist/lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLXN5c3RlbS1ydGUtYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2xpYi9zcmMvZGVzaWduLXN5c3RlbS1ydGUtYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class LibComponent {
|
|
4
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibComponent, isStandalone: true, selector: "lib-lib", ngImport: i0, template: `
|
|
6
|
+
<p>
|
|
7
|
+
lib works!
|
|
8
|
+
</p>
|
|
9
|
+
`, isInline: true, styles: [""] }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibComponent, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{ selector: 'lib-lib', standalone: true, imports: [], template: `
|
|
14
|
+
<p>
|
|
15
|
+
lib works!
|
|
16
|
+
</p>
|
|
17
|
+
` }]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGliLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2xpYi9zcmMvbGliL2xpYi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFhMUMsTUFBTSxPQUFPLFlBQVk7K0dBQVosWUFBWTttR0FBWixZQUFZLG1FQVBiOzs7O0dBSVQ7OzRGQUdVLFlBQVk7a0JBWHhCLFNBQVM7K0JBQ0UsU0FBUyxjQUNQLElBQUksV0FDUCxFQUFFLFlBQ0Q7Ozs7R0FJVCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdsaWItbGliJyxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgaW1wb3J0czogW10sXG4gIHRlbXBsYXRlOiBgXG4gICAgPHA+XG4gICAgICBsaWIgd29ya3MhXG4gICAgPC9wPlxuICBgLFxuICBzdHlsZXM6IGBgXG59KVxuZXhwb3J0IGNsYXNzIExpYkNvbXBvbmVudCB7XG5cbn1cbiJdfQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class LibService {
|
|
4
|
+
constructor() { }
|
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibService, providedIn: 'root' }); }
|
|
7
|
+
}
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibService, decorators: [{
|
|
9
|
+
type: Injectable,
|
|
10
|
+
args: [{
|
|
11
|
+
providedIn: 'root'
|
|
12
|
+
}]
|
|
13
|
+
}], ctorParameters: () => [] });
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGliLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9saWIvc3JjL2xpYi9saWIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sVUFBVTtJQUVyQixnQkFBZ0IsQ0FBQzsrR0FGTixVQUFVO21IQUFWLFVBQVUsY0FGVCxNQUFNOzs0RkFFUCxVQUFVO2tCQUh0QixVQUFVO21CQUFDO29CQUNWLFVBQVUsRUFBRSxNQUFNO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgTGliU2VydmljZSB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of lib
|
|
3
|
+
*/
|
|
4
|
+
export * from './lib/lib.service';
|
|
5
|
+
export * from './lib/lib.component';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2xpYi9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgbGliXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvbGliLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbGliLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class LibService {
|
|
5
|
+
constructor() { }
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibService, providedIn: 'root' }); }
|
|
8
|
+
}
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibService, decorators: [{
|
|
10
|
+
type: Injectable,
|
|
11
|
+
args: [{
|
|
12
|
+
providedIn: 'root'
|
|
13
|
+
}]
|
|
14
|
+
}], ctorParameters: () => [] });
|
|
15
|
+
|
|
16
|
+
class LibComponent {
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LibComponent, isStandalone: true, selector: "lib-lib", ngImport: i0, template: `
|
|
19
|
+
<p>
|
|
20
|
+
lib works!
|
|
21
|
+
</p>
|
|
22
|
+
`, isInline: true, styles: [""] }); }
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LibComponent, decorators: [{
|
|
25
|
+
type: Component,
|
|
26
|
+
args: [{ selector: 'lib-lib', standalone: true, imports: [], template: `
|
|
27
|
+
<p>
|
|
28
|
+
lib works!
|
|
29
|
+
</p>
|
|
30
|
+
` }]
|
|
31
|
+
}] });
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* Public API Surface of lib
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Generated bundle index. Do not edit.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
export { LibComponent, LibService };
|
|
42
|
+
//# sourceMappingURL=design-system-rte-angular.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-system-rte-angular.mjs","sources":["../../../projects/lib/src/lib/lib.service.ts","../../../projects/lib/src/lib/lib.component.ts","../../../projects/lib/src/public-api.ts","../../../projects/lib/src/design-system-rte-angular.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LibService {\n\n constructor() { }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-lib',\n standalone: true,\n imports: [],\n template: `\n <p>\n lib works!\n </p>\n `,\n styles: ``\n})\nexport class LibComponent {\n\n}\n","/*\n * Public API Surface of lib\n */\n\nexport * from './lib/lib.service';\nexport * from './lib/lib.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,UAAU,CAAA;AAErB,IAAA,WAAA,GAAA;+GAFW,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAV,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,cAFT,MAAM,EAAA,CAAA,CAAA;;4FAEP,UAAU,EAAA,UAAA,EAAA,CAAA;kBAHtB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCSY,YAAY,CAAA;+GAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,YAAY,EAPb,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAGU,YAAY,EAAA,UAAA,EAAA,CAAA;kBAXxB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EACP,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,EAAE,EACD,QAAA,EAAA;;;;AAIT,EAAA,CAAA,EAAA;;;ACVH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,55 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design-system-rte/angular",
|
|
3
|
-
"version": "0.1.1-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"storybook": "ng run angular:storybook --port 7007",
|
|
8
|
-
"build-storybook": "ng run angular:build-storybook --output-dir ../design-docs/storybook-static/angular --config-dir .storybook",
|
|
9
|
-
"test:ci": "npx playwright install && npx start-server-and-test storybook http://localhost:7007 test",
|
|
10
|
-
"test": "test-storybook --url http://localhost:7007"
|
|
11
|
-
},
|
|
12
|
-
"description": "Angular components for the Design System RTE",
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
3
|
+
"version": "0.1.1-rc3",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^17.3.0",
|
|
6
|
+
"@angular/core": "^17.3.0"
|
|
15
7
|
},
|
|
16
8
|
"dependencies": {
|
|
17
|
-
"
|
|
18
|
-
"@angular/common": "^17.3.0",
|
|
19
|
-
"@angular/compiler": "^17.3.0",
|
|
20
|
-
"@angular/core": "^17.3.0",
|
|
21
|
-
"@angular/forms": "^17.3.0",
|
|
22
|
-
"@angular/platform-browser": "^17.3.0",
|
|
23
|
-
"@angular/platform-browser-dynamic": "^17.3.0",
|
|
24
|
-
"@angular/router": "^17.3.0",
|
|
25
|
-
"rxjs": "~7.8.0",
|
|
26
|
-
"tslib": "^2.3.0",
|
|
27
|
-
"zone.js": "~0.14.3",
|
|
28
|
-
"@design-system-rte/core": "^0.1.2-rc2"
|
|
9
|
+
"tslib": "^2.3.0"
|
|
29
10
|
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"@storybook/test": "^8.6.6",
|
|
44
|
-
"@storybook/test-runner": "^0.22.0",
|
|
45
|
-
"@types/jasmine": "~5.1.0",
|
|
46
|
-
"jasmine-core": "~5.1.0",
|
|
47
|
-
"karma": "~6.4.0",
|
|
48
|
-
"karma-chrome-launcher": "~3.2.0",
|
|
49
|
-
"karma-coverage": "~2.2.0",
|
|
50
|
-
"karma-jasmine": "~5.1.0",
|
|
51
|
-
"karma-jasmine-html-reporter": "~2.1.0",
|
|
52
|
-
"storybook": "^8.6.6",
|
|
53
|
-
"typescript": "~5.4.2"
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/design-system-rte-angular.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"esm2022": "./esm2022/design-system-rte-angular.mjs",
|
|
21
|
+
"esm": "./esm2022/design-system-rte-angular.mjs",
|
|
22
|
+
"default": "./fesm2022/design-system-rte-angular.mjs"
|
|
23
|
+
}
|
|
54
24
|
}
|
|
55
25
|
}
|
package/public-api.d.ts
ADDED
package/.editorconfig
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
charset = utf-8
|
|
5
|
-
indent_style = space
|
|
6
|
-
indent_size = 2
|
|
7
|
-
insert_final_newline = true
|
|
8
|
-
trim_trailing_whitespace = true
|
|
9
|
-
|
|
10
|
-
[*.ts]
|
|
11
|
-
quote_type = single
|
|
12
|
-
|
|
13
|
-
[*.md]
|
|
14
|
-
max_line_length = off
|
|
15
|
-
trim_trailing_whitespace = false
|
package/.storybook/main.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { StorybookConfig } from '@storybook/angular';
|
|
2
|
-
|
|
3
|
-
import { join, dirname } from "path"
|
|
4
|
-
|
|
5
|
-
function getAbsolutePath(value: string): any {
|
|
6
|
-
return dirname(require.resolve(join(value, 'package.json')))
|
|
7
|
-
}
|
|
8
|
-
const config: StorybookConfig = {
|
|
9
|
-
"stories": [
|
|
10
|
-
"../src/**/*.mdx",
|
|
11
|
-
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
|
12
|
-
],
|
|
13
|
-
"addons": [
|
|
14
|
-
getAbsolutePath('@storybook/addon-essentials'),
|
|
15
|
-
getAbsolutePath('@storybook/addon-onboarding'),
|
|
16
|
-
getAbsolutePath('@chromatic-com/storybook'),
|
|
17
|
-
getAbsolutePath('@storybook/addon-interactions'),
|
|
18
|
-
getAbsolutePath("@storybook/addon-a11y")
|
|
19
|
-
],
|
|
20
|
-
"framework": {
|
|
21
|
-
"name": getAbsolutePath('@storybook/angular'),
|
|
22
|
-
"options": {}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export default config;
|
package/.storybook/preview.scss
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
@use "@design-system-rte/core/tokens/_mixins.scss" as *;
|
|
2
|
-
@use "@design-system-rte/core/components/grid/grid.stories.scss" as *;
|
|
3
|
-
@use "@design-system-rte/core/components/grid/grid.scss" as *;
|
|
4
|
-
|
|
5
|
-
@include theme-selector('bleu_iceberg');
|
|
6
|
-
@include theme-selector('bleu_iceberg', 'dark');
|
|
7
|
-
@include theme-selector('violet');
|
|
8
|
-
@include theme-selector('violet', 'dark');
|
|
9
|
-
@include theme-selector('vert_foret');
|
|
10
|
-
@include theme-selector('vert_foret', 'dark');
|
package/.storybook/preview.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Preview } from '@storybook/angular'
|
|
2
|
-
import { setCompodocJson } from "@storybook/addon-docs/angular";
|
|
3
|
-
import docJson from "../documentation.json";
|
|
4
|
-
setCompodocJson(docJson);
|
|
5
|
-
|
|
6
|
-
import { addons } from '@storybook/preview-api';
|
|
7
|
-
|
|
8
|
-
const preview: Preview = {
|
|
9
|
-
parameters: {
|
|
10
|
-
controls: {
|
|
11
|
-
matchers: {
|
|
12
|
-
color: /(background|color)$/i,
|
|
13
|
-
date: /Date$/i,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
addons.getChannel().on('THEME_CHANGED', (theme) => {
|
|
20
|
-
document.querySelector("html")?.setAttribute("data-mode", theme.theme);
|
|
21
|
-
document.querySelector("html")?.setAttribute("data-theme", theme.color);
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
document.querySelector("html")?.setAttribute("data-theme", "bleu_iceberg");
|
|
25
|
-
document.querySelector("html")?.setAttribute("data-mode", "light");
|
|
26
|
-
|
|
27
|
-
export default preview;
|
package/.storybook/tsconfig.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig.app.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"types": ["node"],
|
|
5
|
-
"allowSyntheticDefaultImports": true,
|
|
6
|
-
"resolveJsonModule": true
|
|
7
|
-
},
|
|
8
|
-
"exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
|
|
9
|
-
"include": ["../src/**/*.stories.*", "./preview.ts"],
|
|
10
|
-
"files": ["./typings.d.ts"]
|
|
11
|
-
}
|
package/.storybook/typings.d.ts
DELETED
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
-
"version": "0.2.0",
|
|
4
|
-
"configurations": [
|
|
5
|
-
{
|
|
6
|
-
"name": "ng serve",
|
|
7
|
-
"type": "chrome",
|
|
8
|
-
"request": "launch",
|
|
9
|
-
"preLaunchTask": "npm: start",
|
|
10
|
-
"url": "http://localhost:4200/"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "ng test",
|
|
14
|
-
"type": "chrome",
|
|
15
|
-
"request": "launch",
|
|
16
|
-
"preLaunchTask": "npm: test",
|
|
17
|
-
"url": "http://localhost:9876/debug.html"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
package/.vscode/tasks.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"tasks": [
|
|
5
|
-
{
|
|
6
|
-
"type": "npm",
|
|
7
|
-
"script": "start",
|
|
8
|
-
"isBackground": true,
|
|
9
|
-
"problemMatcher": {
|
|
10
|
-
"owner": "typescript",
|
|
11
|
-
"pattern": "$tsc",
|
|
12
|
-
"background": {
|
|
13
|
-
"activeOnStart": true,
|
|
14
|
-
"beginsPattern": {
|
|
15
|
-
"regexp": "(.*?)"
|
|
16
|
-
},
|
|
17
|
-
"endsPattern": {
|
|
18
|
-
"regexp": "bundle generation complete"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "npm",
|
|
25
|
-
"script": "test",
|
|
26
|
-
"isBackground": true,
|
|
27
|
-
"problemMatcher": {
|
|
28
|
-
"owner": "typescript",
|
|
29
|
-
"pattern": "$tsc",
|
|
30
|
-
"background": {
|
|
31
|
-
"activeOnStart": true,
|
|
32
|
-
"beginsPattern": {
|
|
33
|
-
"regexp": "(.*?)"
|
|
34
|
-
},
|
|
35
|
-
"endsPattern": {
|
|
36
|
-
"regexp": "bundle generation complete"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
package/angular.json
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"newProjectRoot": "projects",
|
|
5
|
-
"projects": {
|
|
6
|
-
"angular": {
|
|
7
|
-
"projectType": "library",
|
|
8
|
-
"schematics": {},
|
|
9
|
-
"root": "",
|
|
10
|
-
"sourceRoot": "src",
|
|
11
|
-
"prefix": "app",
|
|
12
|
-
"architect": {
|
|
13
|
-
"build": {
|
|
14
|
-
"builder": "@angular-devkit/build-angular:application",
|
|
15
|
-
"options": {
|
|
16
|
-
"outputPath": "dist/angular",
|
|
17
|
-
"index": "src/index.html",
|
|
18
|
-
"browser": "src/main.ts",
|
|
19
|
-
"polyfills": [
|
|
20
|
-
"zone.js"
|
|
21
|
-
],
|
|
22
|
-
"tsConfig": "tsconfig.app.json",
|
|
23
|
-
"assets": [
|
|
24
|
-
"src/assets"
|
|
25
|
-
],
|
|
26
|
-
"styles": [],
|
|
27
|
-
"scripts": [],
|
|
28
|
-
"stylePreprocessorOptions": {
|
|
29
|
-
"includePaths": ["../"]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"configurations": {
|
|
33
|
-
"production": {
|
|
34
|
-
"budgets": [
|
|
35
|
-
{
|
|
36
|
-
"type": "initial",
|
|
37
|
-
"maximumWarning": "500kb",
|
|
38
|
-
"maximumError": "1mb"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"type": "anyComponentStyle",
|
|
42
|
-
"maximumWarning": "2kb",
|
|
43
|
-
"maximumError": "4kb"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"outputHashing": "all"
|
|
47
|
-
},
|
|
48
|
-
"development": {
|
|
49
|
-
"optimization": false,
|
|
50
|
-
"extractLicenses": false,
|
|
51
|
-
"sourceMap": true
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"defaultConfiguration": "production"
|
|
55
|
-
},
|
|
56
|
-
"serve": {
|
|
57
|
-
"builder": "@angular-devkit/build-angular:dev-server",
|
|
58
|
-
"configurations": {
|
|
59
|
-
"production": {
|
|
60
|
-
"buildTarget": "angular:build:production"
|
|
61
|
-
},
|
|
62
|
-
"development": {
|
|
63
|
-
"buildTarget": "angular:build:development"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"defaultConfiguration": "development"
|
|
67
|
-
},
|
|
68
|
-
"extract-i18n": {
|
|
69
|
-
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
70
|
-
"options": {
|
|
71
|
-
"buildTarget": "angular:build"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"test": {
|
|
75
|
-
"builder": "@angular-devkit/build-angular:karma",
|
|
76
|
-
"options": {
|
|
77
|
-
"polyfills": [
|
|
78
|
-
"zone.js",
|
|
79
|
-
"zone.js/testing"
|
|
80
|
-
],
|
|
81
|
-
"tsConfig": "tsconfig.spec.json",
|
|
82
|
-
"assets": [
|
|
83
|
-
"src/assets"
|
|
84
|
-
],
|
|
85
|
-
"styles": [],
|
|
86
|
-
"scripts": []
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"storybook": {
|
|
90
|
-
"builder": "@storybook/angular:start-storybook",
|
|
91
|
-
"options": {
|
|
92
|
-
"configDir": ".storybook",
|
|
93
|
-
"browserTarget": "angular:build",
|
|
94
|
-
"compodoc": true,
|
|
95
|
-
"compodocArgs": [
|
|
96
|
-
"-e",
|
|
97
|
-
"json",
|
|
98
|
-
"-d",
|
|
99
|
-
"."
|
|
100
|
-
],
|
|
101
|
-
"styles": ["@design-system-rte/core/tokens/main.scss", ".storybook/preview.scss"],
|
|
102
|
-
"port": 6006
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"build-storybook": {
|
|
106
|
-
"builder": "@storybook/angular:build-storybook",
|
|
107
|
-
"options": {
|
|
108
|
-
"configDir": ".storybook",
|
|
109
|
-
"browserTarget": "angular:build",
|
|
110
|
-
"styles": ["@design-system-rte/core/tokens/main.scss", ".storybook/preview.scss"],
|
|
111
|
-
"compodoc": true,
|
|
112
|
-
"compodocArgs": [
|
|
113
|
-
"-e",
|
|
114
|
-
"json",
|
|
115
|
-
"-d",
|
|
116
|
-
"."
|
|
117
|
-
],
|
|
118
|
-
"outputDir": "storybook-static"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"cli": {
|
|
125
|
-
"analytics": "9019dcae-6ff4-41d3-acb7-b8e169519772"
|
|
126
|
-
}
|
|
127
|
-
}
|
package/src/assets/.gitkeep
DELETED
|
File without changes
|