Skip to content

Commit

Permalink
'[CHECKPOINT]' updated package to reflect the version 18.2.3 of @angu…
Browse files Browse the repository at this point in the history
…lar/core package
  • Loading branch information
Judimax committed Sep 9, 2024
1 parent b82c825 commit 2d39b81
Show file tree
Hide file tree
Showing 69 changed files with 283 additions and 1,003 deletions.
6 changes: 5 additions & 1 deletion projects/wml-accordion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.2200 [9/3/24]

updated package to conform with @windmillcode/angular-wml-components-base[Previous
updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.3000 [9/4/24]

updated package to reflect the version 18.2.3 of @angular/core package[Previous
WML Schematics](/Windmillcode-Angular-CDK-Docs/schematics/wml-schematics/)[Next
WML Button](/Windmillcode-Angular-CDK-Docs/components/wml-button/)
8 changes: 4 additions & 4 deletions projects/wml-accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"peerDependencies": {
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0",
"@windmillcode/wml-components-base": "^18.2.3000",
"@windmillcode/angular-wml-components-base": "^18.2.3000"
"@windmillcode/angular-wml-components-base": "^18.2.3100",
"@windmillcode/wml-components-base": "^18.2.3100"
},
"private": false,
"schematics": "",
"scripts": {
"build": "npx ng build"
},
"version": "18.2.3000"
}
"version": "18.2.3100"
}
4 changes: 2 additions & 2 deletions projects/wml-accordion/src/lib/test-utils/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import { WMLTestUtils } from "@windmillcode/angular-wml-components-base";
import { WMLAngularTestUtils } from "@windmillcode/angular-wml-components-base";

export let wmlTestUtils= new WMLTestUtils()
export let wmlTestUtils= new WMLAngularTestUtils()


781 changes: 0 additions & 781 deletions projects/wml-angular-components-base/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion projects/wml-angular-components-base/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/angular-wml-components-base",
"dest": "../../dist/wml-angular-components-base",
"lib": {
"entryFile": "src/public-api.ts"
},
Expand Down
8 changes: 4 additions & 4 deletions projects/wml-angular-components-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"tslib": "^2.3.0"
},
"funding": "https://www.gofundme.com/f/strengthen-our-business-to-take-on-bigger-initiati?utm_campaign=p_lico+share-sheet-first-launch&utm_medium=copy_link&utm_source=customer",
"homepage": "https://windmillcode.github.io/Windmillcode-Angular-CDK-Docs//intro/wml-components-base",
"homepage": "https://windmillcode.github.io/Windmillcode-Angular-CDK-Docs//components/wml-angular-components-base",
"name": "@windmillcode/angular-wml-components-base",
"peerDependencies": {
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0",
"@windmillcode/wml-components-base": "^18.2.3000"
"@windmillcode/wml-components-base": "^18.2.3100"
},
"private": false,
"schematics": "",
"scripts": {
"build": "npx ng build"
},
"version": "18.2.3000"
}
"version": "18.2.3100"
}
11 changes: 8 additions & 3 deletions projects/wml-angular-components-base/src/lib/models.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
import { Type } from "@angular/core";
import { TranslateLoader } from "@ngx-translate/core";
import { Subject, of } from "rxjs";
import {WMLMotionUIProperty,WMLMotionUIPropertyState,WMLConstructorDecorator} from "@windmillcode/wml-components-base";
import {WMLMotionUIProperty,WMLMotionUIPropertyState} from "@windmillcode/wml-components-base";


export class WMLAngularMotionUIProperty<V=any,T=any> extends WMLMotionUIProperty<V,T>{
override motionEndEvent = new Subject<WMLMotionUIPropertyState>();
}


@WMLConstructorDecorator
export class WMLAngularCustomComponent<C=any,P=any> {
constructor(props:Partial<WMLAngularCustomComponent> = {}){
constructor(params: Partial<WMLAngularCustomComponent> = {}) {
let origParams = Object.entries(params)
.filter(([key,val]) => {
return !key.startsWith('param');
});
Object.assign(this, { ...Object.fromEntries(origParams) });
}

cpnt!:Type<C>
props!:P
}
Expand Down
12 changes: 6 additions & 6 deletions projects/wml-angular-components-base/src/lib/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { throwError, Observable, of } from "rxjs";
// i18n


export class WMLTestUtils {
constructor(props: Partial<WMLTestUtils> = {}) {
export class WMLAngularTestUtils {
constructor(props: Partial<WMLAngularTestUtils> = {}) {
this.checkForSingleton();
let origProps = Object.entries(props)
.filter(([key,val]) => {
Expand All @@ -27,11 +27,11 @@ export class WMLTestUtils {
mockDeclarations:any[] = []

private checkForSingleton() {
if (WMLTestUtils.isInit) {
if (WMLAngularTestUtils.isInit) {
throw new SingletonError();
}
else {
WMLTestUtils.isInit = true;
WMLAngularTestUtils.isInit = true;
}
}

Expand Down Expand Up @@ -167,8 +167,8 @@ export let createBasicObservableError = (err= new Error())=>{
}


export class WMLTestHttpHandler extends HttpHandler {
constructor(props: Partial<WMLTestHttpHandler> = {}) {
export class WMLAngularTestHttpHandler extends HttpHandler {
constructor(props: Partial<WMLAngularTestHttpHandler> = {}) {
super()
let origProps = Object.entries(props)
.filter(([key,val]) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// i18n


import { WMLTestUtils } from "@windmillcode/angular-wml-components-base";
import { WMLAngularTestUtils } from "@windmillcode/angular-wml-components-base";

export let wmlTestUtils= new WMLTestUtils()
export let wmlTestUtils= new WMLAngularTestUtils()


6 changes: 5 additions & 1 deletion projects/wml-button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,10 @@ updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.2200 [9/3/24]

updated package to conform with @windmillcode/angular-wml-components-base[Previous
updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.3000 [9/4/24]

updated package to reflect the version 18.2.3 of @angular/core package[Previous
WML Accordion](/Windmillcode-Angular-CDK-Docs/components/wml-accordion/)[Next
WML Chips](/Windmillcode-Angular-CDK-Docs/components/wml-chips/)
8 changes: 4 additions & 4 deletions projects/wml-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"peerDependencies": {
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0",
"@windmillcode/wml-components-base": "^18.2.3000",
"@windmillcode/angular-wml-components-base": "^18.2.3000"
"@windmillcode/angular-wml-components-base": "^18.2.3100",
"@windmillcode/wml-components-base": "^18.2.3100"
},
"private": false,
"schematics": "",
"scripts": {
"build": "npx ng build"
},
"version": "18.2.3000"
}
"version": "18.2.3100"
}
4 changes: 2 additions & 2 deletions projects/wml-button/src/lib/test-utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// i18n


import { WMLTestUtils } from "@windmillcode/angular-wml-components-base";
import { WMLAngularTestUtils } from "@windmillcode/angular-wml-components-base";

export let wmlTestUtils= new WMLTestUtils()
export let wmlTestUtils= new WMLAngularTestUtils()


6 changes: 5 additions & 1 deletion projects/wml-chips/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.2200 [9/3/24]

updated package to conform with @windmillcode/angular-wml-components-base[Previous
updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.3000 [9/4/24]

updated package to reflect the version 18.2.3 of @angular/core package[Previous
WML Button](/Windmillcode-Angular-CDK-Docs/components/wml-button/)[Next
WML Field](/Windmillcode-Angular-CDK-Docs/components/wml-field/)
10 changes: 5 additions & 5 deletions projects/wml-chips/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"@angular/cdk": "^18.0.0",
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0",
"@windmillcode/angular-wml-button": "^18.2.3000",
"@windmillcode/wml-components-base": "^18.2.3000",
"@windmillcode/angular-wml-components-base": "^18.2.3000"
"@windmillcode/angular-wml-button": "^18.2.3100",
"@windmillcode/angular-wml-components-base": "^18.2.3100",
"@windmillcode/wml-components-base": "^18.2.3100"
},
"private": false,
"schematics": "",
"scripts": {
"build": "npx ng build",
"test": "npx ng test wml-chips --code-coverage"
},
"version": "18.2.3000"
}
"version": "18.2.3100"
}
4 changes: 2 additions & 2 deletions projects/wml-chips/src/lib/test-utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// i18n


import { WMLTestUtils } from "@windmillcode/angular-wml-components-base";
import { WMLAngularTestUtils } from "@windmillcode/angular-wml-components-base";

export let wmlTestUtils= new WMLTestUtils()
export let wmlTestUtils= new WMLAngularTestUtils()


6 changes: 5 additions & 1 deletion projects/wml-components-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -777,5 +777,9 @@ updated package to reflect the version 18.2.2 of @angular/core package

### v18.2.2200 [9/3/24]

updated package to conform with @windmillcode/angular-wml-components-base[Next
updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.3000 [9/4/24]

updated package to reflect the version 18.2.3 of @angular/core package[Next
WML Schematics](/Windmillcode-Angular-CDK-Docs/schematics/wml-schematics/)
4 changes: 2 additions & 2 deletions projects/wml-components-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"scripts": {
"build": "npx ng build"
},
"version": "18.2.3000"
}
"version": "18.2.3100"
}
67 changes: 35 additions & 32 deletions projects/wml-components-base/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ import { detectFramework, updateClassString } from "./functions";


export type WMLUIFramework='React' | 'Angular' | 'Vue.js' | 'Svelte' | 'Ember.js' | 'Backbone.js' | 'Preact' | 'Next.js' | 'Nuxt.js' | 'Gatsby' | 'Remix' | 'NestJS' | 'VanillaJS'| 'Lit' | 'Alpine.js' | 'Mithril.js' | 'Aurelia' | 'Riot.js' | 'Inferno' | 'Stencil'
export function WMLConstructorDecorator<T extends { new(...args: any[]): { } }>(ReversedBase: T) {

return class extends ReversedBase {
constructor(...args: any[]) {
const props: Partial<T> = args[0] || {};
super(props);
Object.entries(props).forEach(([key, value]) => {
if (!key.startsWith('prop')) {
this[key] = value;
}
});
// @ts-ignore
this.wmlInit?.(props)

}

// wmlInit?:Function
} ;
}


export class WMLUIProperty<V=any,T=any>{
constructor(props:Partial<WMLUIProperty<V,T>> = {}){
Object.assign(
Expand Down Expand Up @@ -49,26 +70,6 @@ export class WMLUIProperty<V=any,T=any>{

}

export function WMLConstructorDecorator<T extends { new(...args: any[]): { } }>(ReversedBase: T) {

return class extends ReversedBase {
constructor(...args: any[]) {
const props: Partial<T> = args[0] || {};
super(props);
Object.entries(props).forEach(([key, value]) => {
if (!key.startsWith('prop')) {
this[key] = value;
}
});
// @ts-ignore
this.wmlInit?.(props)

}

// wmlInit?:Function
} ;
}

export class WMLEndpoint {
constructor(props:Partial<WMLEndpoint>={}){
Object.assign(
Expand Down Expand Up @@ -96,16 +97,18 @@ export class WMLView<V=any,T=any> extends WMLUIProperty<V,T>{
/**
* @deprecated use angular.cdref instead
*/
cdref?:any
angular = {
// ChangeDetectorRef
get cdref(){
return this.cdref
},
get cdref(){
return this.angular.cdref
}
/**
* @deprecated use angular.cdref instead
*/
set cdref(val){
this.angular.cdref = val
}
angular:any = {
// ChangeDetectorRef
set cdref(val){
this.cdref = val
}
cdref:null
}
}

Expand Down Expand Up @@ -193,7 +196,7 @@ export class WMLMotionUIProperty<V=any,T=any> extends WMLView<V,T> {
getGroupMotionState:()=> WMLMotionUIPropertyState =()=>{
return this.motionState
}
motionEndEvent:any = (WMLMotionUIPropertyState)=>{
motionEndEvent:any = (state:WMLMotionUIPropertyState)=>{
}
readonly animationEnd:(evt?:AnimationEvent)=> void =(evt)=>{

Expand All @@ -213,13 +216,13 @@ export class WMLMotionUIProperty<V=any,T=any> extends WMLView<V,T> {
})
if(["Angular"].includes(WMLMotionUIProperty.framework )){
// @ts-ignore
this.motionEndEvent?.next(this.motionState)
this.motionEndEvent.next?.(this.motionState)
}
else{
this.motionEndEvent(this.motionState)
}
if(["Angular"].includes(WMLMotionUIProperty.framework )){
this.cdref?.detectChanges()
this.angular.cdref?.detectChanges()
}

}
Expand Down
6 changes: 5 additions & 1 deletion projects/wml-field/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,10 @@ updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.2200 [9/3/24]

updated package to conform with @windmillcode/angular-wml-components-base[Previous
updated package to conform with @windmillcode/angular-wml-components-base

### v18.2.3000 [9/4/24]

updated package to reflect the version 18.2.3 of @angular/core package[Previous
WML Chips](/Windmillcode-Angular-CDK-Docs/components/wml-chips/)[Next
WML File Manager](/Windmillcode-Angular-CDK-Docs/components/wml-file-manager/)
8 changes: 4 additions & 4 deletions projects/wml-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"peerDependencies": {
"@angular/common": "^18.0.0",
"@angular/core": "^18.0.0",
"@windmillcode/wml-components-base": "^18.2.3000",
"@windmillcode/angular-wml-components-base": "^18.2.3000"
"@windmillcode/angular-wml-components-base": "^18.2.3100",
"@windmillcode/wml-components-base": "^18.2.3100"
},
"private": false,
"schematics": "",
"scripts": {
"build": "npx ng build"
},
"version": "18.2.3000"
}
"version": "18.2.3100"
}
Loading

0 comments on commit 2d39b81

Please sign in to comment.