@maggioli-design-system/magma-angular 0.0.1 → 1.0.0-beta.10

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 CHANGED
@@ -1,24 +1,53 @@
1
1
  # MagmaAngular
2
2
 
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project magma-angular` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project magma-angular`.
8
- > Note: Don't forget to add `--project magma-angular` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build magma-angular` 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 magma-angular`, go to the dist folder `cd dist/magma-angular` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test magma-angular` 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.dev/tools/cli) page.
3
+ Magma Angular specific building blocks on top of [@maggioli-design-system/magma](https://www.npmjs.com/package/@maggioli-design-system/magma) components.
4
+
5
+ ## Installation
6
+
7
+ Install package
8
+ ```
9
+ npm i @maggioli-design-system/magma-angular
10
+ ```
11
+
12
+ ### NgModule
13
+
14
+ ```
15
+ import { MagmaModule } from '@maggioli-design-system/magma-angular'
16
+
17
+ @NgModule({
18
+ imports: [
19
+ ...,
20
+ MagmaModule.forRoot(),
21
+ ],
22
+ bootstrap: [AppComponent],
23
+ })
24
+ export class AppModule {}
25
+ ```
26
+
27
+ ### Standalone
28
+
29
+ import module in `AppComponent`
30
+ ```
31
+ import { MagmaModule } from '@maggioli-design-system/magma-angular'
32
+
33
+ @Component({
34
+ selector: 'app-root',
35
+ standalone: true,
36
+ templateUrl: './app.component.html',
37
+ styleUrl: './app.component.scss',
38
+ imports: [..., MagmaModule],
39
+ })
40
+ export class AppComponent implements OnInit {}
41
+ ```
42
+
43
+ set config for module in `app.config.ts`
44
+ ```
45
+ import { MagmaModule } from '@maggioli-design-system/magma-angular';
46
+
47
+ export const appConfig: ApplicationConfig = {
48
+ providers: [
49
+ ...,
50
+ importProvidersFrom(MagmaModule.forRoot())
51
+ ],
52
+ };
53
+ ```
@@ -0,0 +1,30 @@
1
+ import { APP_INITIALIZER, NgModule } from '@angular/core';
2
+ import { defineCustomElements } from '@maggioli-design-system/magma/loader';
3
+ import { DIRECTIVES } from '../stencil-generated';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../stencil-generated/components";
6
+ export class MagmaModule {
7
+ static forRoot() {
8
+ return {
9
+ ngModule: MagmaModule,
10
+ providers: [
11
+ {
12
+ provide: APP_INITIALIZER,
13
+ useFactory: () => defineCustomElements,
14
+ multi: true,
15
+ },
16
+ ],
17
+ };
18
+ }
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MagmaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: MagmaModule, declarations: [i1.MdsAccordion, i1.MdsAccordionItem, i1.MdsAccordionTimer, i1.MdsAccordionTimerItem, i1.MdsAuthor, i1.MdsAvatar, i1.MdsBadge, i1.MdsBanner, i1.MdsBenchmarkBar, i1.MdsBibliography, i1.MdsBreadcrumb, i1.MdsBreadcrumbItem, i1.MdsButton, i1.MdsCard, i1.MdsCardContent, i1.MdsCardFooter, i1.MdsCardHeader, i1.MdsCardMedia, i1.MdsChip, i1.MdsDetails, i1.MdsDropdown, i1.MdsEntity, i1.MdsFile, i1.MdsFilePreview, i1.MdsFilter, i1.MdsFilterItem, i1.MdsHeader, i1.MdsHeaderBar, i1.MdsHelp, i1.MdsHorizontalScroll, i1.MdsHr, i1.MdsIcon, i1.MdsImg, i1.MdsInput, i1.MdsInputField, i1.MdsInputRange, i1.MdsInputSelect, i1.MdsInputSwitch, i1.MdsInputTip, i1.MdsInputTipItem, i1.MdsInputUpload, i1.MdsKeyboard, i1.MdsKeyboardKey, i1.MdsKpi, i1.MdsKpiItem, i1.MdsLabel, i1.MdsList, i1.MdsListItem, i1.MdsModal, i1.MdsNote, i1.MdsNotification, i1.MdsPaginator, i1.MdsPaginatorItem, i1.MdsPref, i1.MdsPrefAnimation, i1.MdsPrefConsumption, i1.MdsPrefContrast, i1.MdsPrefLanguage, i1.MdsPrefLanguageItem, i1.MdsPrefTheme, i1.MdsPriceTable, i1.MdsPriceTableFeatures, i1.MdsPriceTableFeaturesCell, i1.MdsPriceTableFeaturesRow, i1.MdsPriceTableHeader, i1.MdsPriceTableList, i1.MdsPriceTableListItem, i1.MdsProgress, i1.MdsPushNotification, i1.MdsPushNotifications, i1.MdsQuote, i1.MdsSeparator, i1.MdsSpinner, i1.MdsStepperBar, i1.MdsStepperBarItem, i1.MdsTab, i1.MdsTabBar, i1.MdsTabBarItem, i1.MdsTabItem, i1.MdsTable, i1.MdsTableBody, i1.MdsTableCell, i1.MdsTableFooter, i1.MdsTableHeader, i1.MdsTableHeaderCell, i1.MdsTableRow, i1.MdsText, i1.MdsToast, i1.MdsTooltip, i1.MdsTree, i1.MdsTreeItem, i1.MdsUrlView, i1.MdsUsage, i1.MdsVideoWall, i1.MdsZero], exports: [i1.MdsAccordion, i1.MdsAccordionItem, i1.MdsAccordionTimer, i1.MdsAccordionTimerItem, i1.MdsAuthor, i1.MdsAvatar, i1.MdsBadge, i1.MdsBanner, i1.MdsBenchmarkBar, i1.MdsBibliography, i1.MdsBreadcrumb, i1.MdsBreadcrumbItem, i1.MdsButton, i1.MdsCard, i1.MdsCardContent, i1.MdsCardFooter, i1.MdsCardHeader, i1.MdsCardMedia, i1.MdsChip, i1.MdsDetails, i1.MdsDropdown, i1.MdsEntity, i1.MdsFile, i1.MdsFilePreview, i1.MdsFilter, i1.MdsFilterItem, i1.MdsHeader, i1.MdsHeaderBar, i1.MdsHelp, i1.MdsHorizontalScroll, i1.MdsHr, i1.MdsIcon, i1.MdsImg, i1.MdsInput, i1.MdsInputField, i1.MdsInputRange, i1.MdsInputSelect, i1.MdsInputSwitch, i1.MdsInputTip, i1.MdsInputTipItem, i1.MdsInputUpload, i1.MdsKeyboard, i1.MdsKeyboardKey, i1.MdsKpi, i1.MdsKpiItem, i1.MdsLabel, i1.MdsList, i1.MdsListItem, i1.MdsModal, i1.MdsNote, i1.MdsNotification, i1.MdsPaginator, i1.MdsPaginatorItem, i1.MdsPref, i1.MdsPrefAnimation, i1.MdsPrefConsumption, i1.MdsPrefContrast, i1.MdsPrefLanguage, i1.MdsPrefLanguageItem, i1.MdsPrefTheme, i1.MdsPriceTable, i1.MdsPriceTableFeatures, i1.MdsPriceTableFeaturesCell, i1.MdsPriceTableFeaturesRow, i1.MdsPriceTableHeader, i1.MdsPriceTableList, i1.MdsPriceTableListItem, i1.MdsProgress, i1.MdsPushNotification, i1.MdsPushNotifications, i1.MdsQuote, i1.MdsSeparator, i1.MdsSpinner, i1.MdsStepperBar, i1.MdsStepperBarItem, i1.MdsTab, i1.MdsTabBar, i1.MdsTabBarItem, i1.MdsTabItem, i1.MdsTable, i1.MdsTableBody, i1.MdsTableCell, i1.MdsTableFooter, i1.MdsTableHeader, i1.MdsTableHeaderCell, i1.MdsTableRow, i1.MdsText, i1.MdsToast, i1.MdsTooltip, i1.MdsTree, i1.MdsTreeItem, i1.MdsUrlView, i1.MdsUsage, i1.MdsVideoWall, i1.MdsZero] });
21
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MagmaModule });
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MagmaModule, decorators: [{
24
+ type: NgModule,
25
+ args: [{
26
+ declarations: [...DIRECTIVES],
27
+ exports: [...DIRECT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VzdG9tRWxlbWVudHMgfSBmcm9tICdAbWFnZ2lvbGktZGVzaWduLXN5c3RlbS9tYWdtYS9sb2FkZXInO1xuaW1wb3J0IHsgRElSRUNUSVZFUyB9IGZyb20gJy4uL3N0ZW5jaWwtZ2VuZXJhdGVkJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbLi4uRElSRUNUSVZFU10sXG4gIGV4cG9ydHM6IFsuLi5ESVJFQ1RJVkVTXSxcbn0pXG5leHBvcnQgY2xhc3MgTWFnbWFNb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdCgpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPE1hZ21hTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBNYWdtYU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogQVBQX0lOSVRJQUxJWkVSLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6ICgpID0+IGRlZmluZUN1c3RvbUVsZW1lbnRzLFxuICAgICAgICAgIG11bHRpOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG5cbn1cbiJdfQ==
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Public API Surface of component-library
3
3
  */
4
- export * from './lib/component-library.module';
4
+ export * from './lib/magma.module';
5
5
  export { DIRECTIVES } from './stencil-generated';
6
6
  export * from './stencil-generated/components';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL21hZ21hLWFuZ3VsYXIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLE9BQU8sRUF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