@awc-ui/angular 1.0.0-beta.9 → 1.0.1
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 +43 -21
- package/fesm2022/awc-ui-angular.mjs +402 -309
- package/fesm2022/awc-ui-angular.mjs.map +1 -1
- package/index.d.ts +2137 -11
- package/package.json +8 -9
- package/awc-ui.module.d.ts +0 -72
- package/directives/angular-component-lib/utils.d.ts +0 -9
- package/directives/boolean-value-accessor.d.ts +0 -9
- package/directives/index.d.ts +0 -2
- package/directives/number-value-accessor.d.ts +0 -9
- package/directives/proxies.d.ts +0 -2005
- package/directives/radio-value-accessor.d.ts +0 -8
- package/directives/select-value-accessor.d.ts +0 -8
- package/directives/switch-value-accessor.d.ts +0 -21
- package/directives/text-value-accessor.d.ts +0 -8
- package/directives/value-accessor.d.ts +0 -18
- package/esm2022/awc-ui-angular.mjs +0 -5
- package/esm2022/awc-ui.module.mjs +0 -105
- package/esm2022/directives/angular-component-lib/utils.mjs +0 -59
- package/esm2022/directives/boolean-value-accessor.mjs +0 -38
- package/esm2022/directives/index.mjs +0 -85
- package/esm2022/directives/number-value-accessor.mjs +0 -40
- package/esm2022/directives/proxies.mjs +0 -2378
- package/esm2022/directives/radio-value-accessor.mjs +0 -35
- package/esm2022/directives/select-value-accessor.mjs +0 -35
- package/esm2022/directives/switch-value-accessor.mjs +0 -53
- package/esm2022/directives/text-value-accessor.mjs +0 -35
- package/esm2022/directives/value-accessor.mjs +0 -40
- package/esm2022/index.mjs +0 -15
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awc-ui/angular",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Angular
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Angular 20.3.31+ components for accessible Material Design 3 Web Components, with typed directives, forms, and Angular SSR support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
7
7
|
"angular-component",
|
|
@@ -37,8 +37,6 @@
|
|
|
37
37
|
"exports": {
|
|
38
38
|
".": {
|
|
39
39
|
"types": "./index.d.ts",
|
|
40
|
-
"esm2022": "./esm2022/awc-ui-angular.mjs",
|
|
41
|
-
"esm": "./esm2022/awc-ui-angular.mjs",
|
|
42
40
|
"default": "./fesm2022/awc-ui-angular.mjs"
|
|
43
41
|
},
|
|
44
42
|
"./package.json": {
|
|
@@ -55,11 +53,11 @@
|
|
|
55
53
|
"tslib": "^2.8.1"
|
|
56
54
|
},
|
|
57
55
|
"peerDependencies": {
|
|
58
|
-
"@angular/common": ">=
|
|
59
|
-
"@angular/core": ">=
|
|
60
|
-
"@angular/forms": ">=
|
|
56
|
+
"@angular/common": ">=20.3.31",
|
|
57
|
+
"@angular/core": ">=20.3.31",
|
|
58
|
+
"@angular/forms": ">=20.3.31",
|
|
61
59
|
"rxjs": "^7.4.0",
|
|
62
|
-
"@awc-ui/core": "1.0.
|
|
60
|
+
"@awc-ui/core": "1.0.1"
|
|
63
61
|
},
|
|
64
62
|
"license": "MIT",
|
|
65
63
|
"author": "AWC UI",
|
|
@@ -71,5 +69,6 @@
|
|
|
71
69
|
},
|
|
72
70
|
"bugs": {
|
|
73
71
|
"url": "https://github.com/awc-ui/core/issues"
|
|
74
|
-
}
|
|
72
|
+
},
|
|
73
|
+
"type": "module"
|
|
75
74
|
}
|
package/awc-ui.module.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
import { TextValueAccessor } from './directives/text-value-accessor';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "./directives/proxies";
|
|
6
|
-
import * as i3 from "./directives/text-value-accessor";
|
|
7
|
-
import * as i4 from "./directives/select-value-accessor";
|
|
8
|
-
import * as i5 from "./directives/boolean-value-accessor";
|
|
9
|
-
import * as i6 from "./directives/radio-value-accessor";
|
|
10
|
-
import * as i7 from "./directives/number-value-accessor";
|
|
11
|
-
import * as i8 from "./directives/switch-value-accessor";
|
|
12
|
-
/**
|
|
13
|
-
* ControlValueAccessor directives, so `[(ngModel)]` and `formControlName` bind
|
|
14
|
-
* to AWC UI inputs. Declared here rather than in `DIRECTIVES` because that
|
|
15
|
-
* array is GENERATED by the Stencil output target on every build and would
|
|
16
|
-
* discard anything added to it.
|
|
17
|
-
*/
|
|
18
|
-
export declare const VALUE_ACCESSORS: (typeof TextValueAccessor)[];
|
|
19
|
-
/**
|
|
20
|
-
* Registers ALL AWC UI custom elements (the Stencil lazy loader) during
|
|
21
|
-
* application bootstrap.
|
|
22
|
-
*
|
|
23
|
-
* Since the proxies became standalone (each one statically imports and
|
|
24
|
-
* registers its own element), this provider is NO LONGER REQUIRED — importing
|
|
25
|
-
* a proxy is enough. It is kept for backwards compatibility and for apps that
|
|
26
|
-
* use raw `md-*` tags without importing the corresponding proxy. Element
|
|
27
|
-
* definition is idempotent, so using both mechanisms together is harmless —
|
|
28
|
-
* but adding this provider forces the whole lazy-loader registry into the
|
|
29
|
-
* bundle, so prefer omitting it.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* // NgModule app
|
|
33
|
-
* @NgModule({
|
|
34
|
-
* imports: [AwcUiModule],
|
|
35
|
-
* providers: [provideAwcUi()],
|
|
36
|
-
* })
|
|
37
|
-
* export class AppModule {}
|
|
38
|
-
*
|
|
39
|
-
* // Standalone app
|
|
40
|
-
* bootstrapApplication(AppComponent, {
|
|
41
|
-
* providers: [provideAwcUi(), importProvidersFrom(AwcUiModule)],
|
|
42
|
-
* });
|
|
43
|
-
*
|
|
44
|
-
* SSR-safe: it is a no-op when `window` is not available.
|
|
45
|
-
*/
|
|
46
|
-
export declare function provideAwcUi(): Provider;
|
|
47
|
-
/**
|
|
48
|
-
* AwcUiModule
|
|
49
|
-
*
|
|
50
|
-
* Convenience module exporting ALL AWC UI component proxies (typed inputs,
|
|
51
|
-
* outputs and methods) plus the form value accessors.
|
|
52
|
-
*
|
|
53
|
-
* NOTE: the proxies are standalone components that register their own custom
|
|
54
|
-
* element on import — no loader bootstrap needed. For the smallest bundles,
|
|
55
|
-
* prefer importing individual components over this module: this module
|
|
56
|
-
* references all 81 proxies, so the whole component set ships with your app.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* // Smallest bundle — standalone component imports exactly what it uses:
|
|
60
|
-
* import { MdButton } from '@awc-ui/angular';
|
|
61
|
-
* @Component({ standalone: true, imports: [MdButton], ... })
|
|
62
|
-
*
|
|
63
|
-
* // Convenience — everything at once (ships all components):
|
|
64
|
-
* import { AwcUiModule } from '@awc-ui/angular';
|
|
65
|
-
* @NgModule({ imports: [AwcUiModule, ...] })
|
|
66
|
-
* export class AppModule {}
|
|
67
|
-
*/
|
|
68
|
-
export declare class AwcUiModule {
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AwcUiModule, never>;
|
|
70
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AwcUiModule, never, [typeof i1.CommonModule, typeof i2.MdAccordion, typeof i2.MdAccordionItem, typeof i2.MdAppBar, typeof i2.MdAreaChart, typeof i2.MdAutocomplete, typeof i2.MdAvatar, typeof i2.MdBadge, typeof i2.MdBarChart, typeof i2.MdBottomSheet, typeof i2.MdBreadcrumbItem, typeof i2.MdBreadcrumbs, typeof i2.MdButton, typeof i2.MdButtonGroup, typeof i2.MdCard, typeof i2.MdCheckbox, typeof i2.MdChip, typeof i2.MdColorPicker, typeof i2.MdDatePicker, typeof i2.MdDialog, typeof i2.MdDivider, typeof i2.MdFab, typeof i2.MdFabMenu, typeof i2.MdFabMenuItem, typeof i2.MdIconButton, typeof i2.MdLineChart, typeof i2.MdList, typeof i2.MdListItem, typeof i2.MdLoadingIndicator, typeof i2.MdMenu, typeof i2.MdMenuItem, typeof i2.MdMenuItemGroup, typeof i2.MdMeter, typeof i2.MdMultiSelect, typeof i2.MdNavigationBar, typeof i2.MdNavigationRail, typeof i2.MdNavigationRailTab, typeof i2.MdNavigationTab, typeof i2.MdNumberField, typeof i2.MdOrganizationChart, typeof i2.MdOtpField, typeof i2.MdPieChart, typeof i2.MdProgressIndicator, typeof i2.MdRadio, typeof i2.MdRating, typeof i2.MdRipple, typeof i2.MdSearch, typeof i2.MdSegmentedButton, typeof i2.MdSegmentedButtonSet, typeof i2.MdSelect, typeof i2.MdSelectOption, typeof i2.MdSideSheet, typeof i2.MdSkeleton, typeof i2.MdSlider, typeof i2.MdSnackbar, typeof i2.MdSparkline, typeof i2.MdSplitButton, typeof i2.MdStatusDot, typeof i2.MdStep, typeof i2.MdStepper, typeof i2.MdSubMenuItem, typeof i2.MdSwitch, typeof i2.MdTab, typeof i2.MdTabPanel, typeof i2.MdTabPanels, typeof i2.MdTable, typeof i2.MdTableBody, typeof i2.MdTableCell, typeof i2.MdTableContainer, typeof i2.MdTableExpandToggle, typeof i2.MdTableFoot, typeof i2.MdTableHead, typeof i2.MdTablePagination, typeof i2.MdTableRow, typeof i2.MdTableSortLabel, typeof i2.MdTableToolbar, typeof i2.MdTabs, typeof i2.MdTextField, typeof i2.MdTimePicker, typeof i2.MdToolbar, typeof i2.MdTooltip, typeof i2.MdTransferList, typeof i3.TextValueAccessor, typeof i4.SelectValueAccessor, typeof i5.BooleanValueAccessor, typeof i6.RadioValueAccessor, typeof i7.NumericValueAccessor, typeof i8.SwitchValueAccessor], [typeof i2.MdAccordion, typeof i2.MdAccordionItem, typeof i2.MdAppBar, typeof i2.MdAreaChart, typeof i2.MdAutocomplete, typeof i2.MdAvatar, typeof i2.MdBadge, typeof i2.MdBarChart, typeof i2.MdBottomSheet, typeof i2.MdBreadcrumbItem, typeof i2.MdBreadcrumbs, typeof i2.MdButton, typeof i2.MdButtonGroup, typeof i2.MdCard, typeof i2.MdCheckbox, typeof i2.MdChip, typeof i2.MdColorPicker, typeof i2.MdDatePicker, typeof i2.MdDialog, typeof i2.MdDivider, typeof i2.MdFab, typeof i2.MdFabMenu, typeof i2.MdFabMenuItem, typeof i2.MdIconButton, typeof i2.MdLineChart, typeof i2.MdList, typeof i2.MdListItem, typeof i2.MdLoadingIndicator, typeof i2.MdMenu, typeof i2.MdMenuItem, typeof i2.MdMenuItemGroup, typeof i2.MdMeter, typeof i2.MdMultiSelect, typeof i2.MdNavigationBar, typeof i2.MdNavigationRail, typeof i2.MdNavigationRailTab, typeof i2.MdNavigationTab, typeof i2.MdNumberField, typeof i2.MdOrganizationChart, typeof i2.MdOtpField, typeof i2.MdPieChart, typeof i2.MdProgressIndicator, typeof i2.MdRadio, typeof i2.MdRating, typeof i2.MdRipple, typeof i2.MdSearch, typeof i2.MdSegmentedButton, typeof i2.MdSegmentedButtonSet, typeof i2.MdSelect, typeof i2.MdSelectOption, typeof i2.MdSideSheet, typeof i2.MdSkeleton, typeof i2.MdSlider, typeof i2.MdSnackbar, typeof i2.MdSparkline, typeof i2.MdSplitButton, typeof i2.MdStatusDot, typeof i2.MdStep, typeof i2.MdStepper, typeof i2.MdSubMenuItem, typeof i2.MdSwitch, typeof i2.MdTab, typeof i2.MdTabPanel, typeof i2.MdTabPanels, typeof i2.MdTable, typeof i2.MdTableBody, typeof i2.MdTableCell, typeof i2.MdTableContainer, typeof i2.MdTableExpandToggle, typeof i2.MdTableFoot, typeof i2.MdTableHead, typeof i2.MdTablePagination, typeof i2.MdTableRow, typeof i2.MdTableSortLabel, typeof i2.MdTableToolbar, typeof i2.MdTabs, typeof i2.MdTextField, typeof i2.MdTimePicker, typeof i2.MdToolbar, typeof i2.MdTooltip, typeof i2.MdTransferList, typeof i3.TextValueAccessor, typeof i4.SelectValueAccessor, typeof i5.BooleanValueAccessor, typeof i6.RadioValueAccessor, typeof i7.NumericValueAccessor, typeof i8.SwitchValueAccessor]>;
|
|
71
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AwcUiModule>;
|
|
72
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const proxyInputs: (Cmp: any, inputs: string[]) => void;
|
|
2
|
-
export declare const proxyMethods: (Cmp: any, methods: string[]) => void;
|
|
3
|
-
export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void;
|
|
4
|
-
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
5
|
-
export declare function ProxyCmp(opts: {
|
|
6
|
-
defineCustomElementFn?: () => void;
|
|
7
|
-
inputs?: any;
|
|
8
|
-
methods?: any;
|
|
9
|
-
}): (cls: any) => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ValueAccessor } from './value-accessor';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BooleanValueAccessor extends ValueAccessor {
|
|
5
|
-
constructor(el: ElementRef);
|
|
6
|
-
writeValue(value: any): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanValueAccessor, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BooleanValueAccessor, "md-checkbox", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
package/directives/index.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import * as d from './proxies';
|
|
2
|
-
export declare const DIRECTIVES: (typeof d.MdAccordion | typeof d.MdAccordionItem | typeof d.MdAppBar | typeof d.MdAreaChart | typeof d.MdAutocomplete | typeof d.MdAvatar | typeof d.MdBadge | typeof d.MdBarChart | typeof d.MdBottomSheet | typeof d.MdBreadcrumbItem | typeof d.MdBreadcrumbs | typeof d.MdButton | typeof d.MdButtonGroup | typeof d.MdCard | typeof d.MdCheckbox | typeof d.MdChip | typeof d.MdColorPicker | typeof d.MdDatePicker | typeof d.MdDialog | typeof d.MdDivider | typeof d.MdFab | typeof d.MdFabMenu | typeof d.MdFabMenuItem | typeof d.MdIconButton | typeof d.MdLineChart | typeof d.MdList | typeof d.MdListItem | typeof d.MdLoadingIndicator | typeof d.MdMenu | typeof d.MdMenuItem | typeof d.MdMenuItemGroup | typeof d.MdMeter | typeof d.MdMultiSelect | typeof d.MdNavigationBar | typeof d.MdNavigationRail | typeof d.MdNavigationRailTab | typeof d.MdNavigationTab | typeof d.MdNumberField | typeof d.MdOrganizationChart | typeof d.MdOtpField | typeof d.MdPieChart | typeof d.MdProgressIndicator | typeof d.MdRadio | typeof d.MdRating | typeof d.MdRipple | typeof d.MdSearch | typeof d.MdSegmentedButton | typeof d.MdSegmentedButtonSet | typeof d.MdSelect | typeof d.MdSelectOption | typeof d.MdSideSheet | typeof d.MdSkeleton | typeof d.MdSlider | typeof d.MdSnackbar | typeof d.MdSparkline | typeof d.MdSplitButton | typeof d.MdStatusDot | typeof d.MdStep | typeof d.MdStepper | typeof d.MdSubMenuItem | typeof d.MdSwitch | typeof d.MdTab | typeof d.MdTabPanel | typeof d.MdTabPanels | typeof d.MdTable | typeof d.MdTableBody | typeof d.MdTableCell | typeof d.MdTableContainer | typeof d.MdTableExpandToggle | typeof d.MdTableFoot | typeof d.MdTableHead | typeof d.MdTablePagination | typeof d.MdTableRow | typeof d.MdTableSortLabel | typeof d.MdTableToolbar | typeof d.MdTabs | typeof d.MdTextField | typeof d.MdTimePicker | typeof d.MdToolbar | typeof d.MdTooltip | typeof d.MdTransferList)[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ValueAccessor } from './value-accessor';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NumericValueAccessor extends ValueAccessor {
|
|
5
|
-
constructor(el: ElementRef);
|
|
6
|
-
registerOnChange(fn: (_: number | null) => void): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumericValueAccessor, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NumericValueAccessor, "md-rating, md-slider, md-number-field", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|