@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 +51 -22
- package/esm2022/lib/magma.module.mjs +30 -0
- package/esm2022/public-api.mjs +2 -2
- package/esm2022/stencil-generated/components.mjs +469 -357
- package/esm2022/stencil-generated/index.mjs +5 -2
- package/fesm2022/maggioli-design-system-magma-angular.mjs +486 -375
- package/fesm2022/maggioli-design-system-magma-angular.mjs.map +1 -1
- package/lib/magma.module.d.ts +9 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -1
- package/stencil-generated/components.d.ts +162 -125
- package/stencil-generated/index.d.ts +1 -1
- package/esm2022/lib/component-library.module.mjs +0 -31
- package/lib/component-library.module.d.ts +0 -7
package/README.md
CHANGED
|
@@ -1,24 +1,53 @@
|
|
|
1
1
|
# MagmaAngular
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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: [...DIRECTIVES],
|
|
28
|
+
}]
|
|
29
|
+
}] });
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFnbWEubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbWFnbWEtYW5ndWxhci9zcmMvbGliL21hZ21hLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUF1QixRQUFRLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDdkYsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFDNUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDOzs7QUFNbEQsTUFBTSxPQUFPLFdB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ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogQVBQX0lOSVRJQUxJWkVSLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6ICgpID0+IGRlZmluZUN1c3RvbUVsZW1lbnRzLFxuICAgICAgICAgIG11bHRpOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9O1xuICB9XG5cbn1cbiJdfQ==
|
package/esm2022/public-api.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Public API Surface of component-library
|
|
3
3
|
*/
|
|
4
|
-
export * from './lib/
|
|
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,
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL21hZ21hLWFuZ3VsYXIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNqRCxjQUFjLGdDQUFnQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBjb21wb25lbnQtbGlicmFyeVxuICovXG5leHBvcnQgKiBmcm9tICcuL2xpYi9tYWdtYS5tb2R1bGUnO1xuZXhwb3J0IHsgRElSRUNUSVZFUyB9IGZyb20gJy4vc3RlbmNpbC1nZW5lcmF0ZWQnO1xuZXhwb3J0ICogZnJvbSAnLi9zdGVuY2lsLWdlbmVyYXRlZC9jb21wb25lbnRzJztcbiJdfQ==
|