@ethlete/core 0.2.0-next.10 → 0.2.0-next.12
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/esm2020/lib/components/public-api.mjs +2 -0
- package/esm2020/lib/components/structured-data/public-api.mjs +2 -0
- package/esm2020/lib/components/structured-data/structured-data.component.mjs +37 -0
- package/esm2020/lib/public-api.mjs +2 -1
- package/esm2020/lib/types/angular.types.mjs +16 -2
- package/esm2020/lib/utils/public-api.mjs +3 -2
- package/esm2020/lib/utils/reactive-binding.util.mjs +102 -0
- package/fesm2015/ethlete-core.mjs +156 -8
- package/fesm2015/ethlete-core.mjs.map +1 -1
- package/fesm2020/ethlete-core.mjs +156 -8
- package/fesm2020/ethlete-core.mjs.map +1 -1
- package/lib/components/public-api.d.ts +1 -0
- package/lib/components/structured-data/public-api.d.ts +1 -0
- package/lib/components/structured-data/structured-data.component.d.ts +11 -0
- package/lib/public-api.d.ts +1 -0
- package/lib/types/angular.types.d.ts +7 -0
- package/lib/utils/public-api.d.ts +2 -1
- package/lib/utils/reactive-binding.util.d.ts +19 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './structured-data/public-api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './structured-data.component';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import { JsonLD } from '@ethlete/types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StructuredDataComponent {
|
|
5
|
+
private readonly _sanitizer;
|
|
6
|
+
set data(currentValue: JsonLD.WithContext<JsonLD.Thing> | JsonLD.Graph | null | undefined);
|
|
7
|
+
jsonLD?: SafeHtml;
|
|
8
|
+
getSafeHTML(value: JsonLD.WithContext<JsonLD.Thing> | JsonLD.Graph | null | undefined): SafeHtml;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StructuredDataComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StructuredDataComponent, "et-structured-data", never, { "data": "data"; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
package/lib/public-api.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { QueryList } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
1
3
|
export type NgClassType = string | string[] | Set<string> | {
|
|
2
4
|
[klass: string]: any;
|
|
3
5
|
} | null | undefined;
|
|
6
|
+
export declare class TypedQueryList<T> extends QueryList<T> {
|
|
7
|
+
get changes(): Observable<TypedQueryList<T>>;
|
|
8
|
+
readonly first: T | undefined;
|
|
9
|
+
readonly last: T | undefined;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
type AttributeValueBinding = {
|
|
4
|
+
render: boolean;
|
|
5
|
+
value: boolean | string | number;
|
|
6
|
+
};
|
|
7
|
+
type AttributeRenderBinding = boolean;
|
|
8
|
+
export type ReactiveAttributes = {
|
|
9
|
+
attribute: string | string[];
|
|
10
|
+
observable: Observable<AttributeValueBinding | AttributeRenderBinding>;
|
|
11
|
+
elementRef?: ElementRef<HTMLElement>;
|
|
12
|
+
};
|
|
13
|
+
export interface ReactiveBindingResult {
|
|
14
|
+
reset: () => void;
|
|
15
|
+
remove: (...attributes: string[]) => void;
|
|
16
|
+
push: (value: ReactiveAttributes) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const createReactiveBindings: (...values: ReactiveAttributes[]) => ReactiveBindingResult;
|
|
19
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/core",
|
|
3
|
-
"version": "0.2.0-next.
|
|
3
|
+
"version": "0.2.0-next.12",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "2.4.1"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@angular/common": "^14.0.0 || ^15.0.0",
|
|
9
9
|
"@angular/core": "^14.0.0 || ^15.0.0",
|
|
10
|
-
"rxjs": "7.8.0",
|
|
11
|
-
"@angular/cdk": "15.1.0",
|
|
12
10
|
"@angular/platform-browser": "15.1.0",
|
|
13
|
-
"@ethlete/types": "0.2.0-next.
|
|
11
|
+
"@ethlete/types": "0.2.0-next.4",
|
|
12
|
+
"rxjs": "7.8.0",
|
|
13
|
+
"@angular/cdk": "15.1.0"
|
|
14
14
|
},
|
|
15
15
|
"module": "fesm2015/ethlete-core.mjs",
|
|
16
16
|
"es2020": "fesm2020/ethlete-core.mjs",
|