Skip to content

WML Components Base

starlightViewModes.switchTo

When working on web applications, there is no standard baseline. The WML Components Base Library establishes a foundation for your application, ensuring consistency and scalability. The core of this library is the WMLUIProperty, which represents the basic building block of every element in a web application. This property encapsulates all the essential features, and there are several subclasses like WMLRoute for routes, WMLView to leverage change detection, WMLImage for images and WMLMotionUIProperty for CSS animations and transitions. Each class has properties and methods to optimize your work in those features of your application. You can use this package and leave out the rest of the library and you will get very far building very robust and scalable applications

Terminal window
npm install -s --verbose @windmillcode/wml-components-base

The Building Blocks Of Web Apps

Using CSS Animations

Decent Example

  • if you want a different animation for you animation states simply use a different keyframe mabye suffixing the keyframes with open and close for organization

Pause And Play

  • if you want a different animation for you animation states simply use a different keyframe mabye suffixing the keyframes with open and close for organization
  • the percentage values at the keyframe styles for transtions are only conceptual becuase there are no percentage values with css transitions
  • if you pause and play the transition it will not reset the element it was transitioning, but the timer and transition function will reset to their beginning stages

WMLMotionUIProperty Transition Simple Example

WMLMotionUIProperty Transition Decent Example

WMLMotionUIProperty Transition Full Example

Custom Components

PropertyTypeDescription
isPresentbooleanIndicates if the UI property is currently present.
valueanyThe value associated with this UI property.
textstringThe text associated with this property.
classstringCSS class string for the property.
stylePartial<CSSStyleDeclaration>Inline styles for the property.
typeanyThe type of UI element (optional).
click(evt?: Event) => voidFunction to handle click events.
idstringUnique identifier for the UI property.
MethodDescription
updateClassStringUpdates the class string based on the current state.
toggleClassStringToggles a class string on or off.
PropertyTypeDescription
frameworkFrameworkHolds the detected framework information.
PropertyTypeDescription
nameWMLUIFrameworkTypeThe name of the detected UI framework.
PropertyTypeDescription
urlFunctionFunction that defines the endpoint’s URL.
automatebooleanIndicates whether to automate API requests for the endpoint.
PropertyTypeDescription
urlURLStores the constructed URL object based on provided properties.
NameSignatureDescription
domainget domain(): stringRetrieves the domain, including port if present.
fqdnget fqdn(): stringReturns the fully qualified domain name (FQDN).
toStringtoString(): stringConverts the URL object to a string.
NameTypeDescription
schemestringOptional, defaults to "https".
hoststringRequired, specifies the host name.
portnumberOptional, specifies the port.
pathstringOptional, specifies the path.
querystringOptional, specifies the query.
fragmentstringOptional, specifies the fragment.
PropertyTypeDescription
angularanyObject containing Angular-specific properties like cdref.
cdrefanyAngular’s ChangeDetectorRef, used for detecting changes in Angular applications (deprecated).
MethodDescription
get cdrefRetrieves the ChangeDetectorRef from the Angular-specific properties (deprecated).
set cdrefSets the ChangeDetectorRef in the Angular-specific properties (deprecated).
PropertyTypeDescription
cdrefanyAngular’s ChangeDetectorRef used for change detection in Angular applications.
PropertyTypeDescription
routestringDefines the route for the application, default is ”/”.
linkstringOptional link associated with the route.
routerLinkstringOptional router link for navigation.
PropertyTypeDescription
autoOpenbooleanAutomatically opens the UI element when true.
helperStylesPartial<CSSStyleDeclaration>Necessary for animations to work properly. Modify only if you know what you are doing.
keyFrameStyles{ [k: string]: Partial<CSSStyleDeclaration> }Object defining keyframe styles for animation. Use "0%", "10%", "11%", … "100%" according to typical CSS keyframes for the key values.
keyFrameNamestringName of the unique animation keyframe or unique css transition class .
motionState"open" | "opening" | "closing" | "closed"Current state of the motion .
motionEndEventanyFunction called at the end of an motion state.
motionKeyFrameEventanyFunction called at specific keyframes during the motion.
currentTransitionInfoanyInformation about the current transition state, including keyframe, current styles, transition end styles, and play state.
type"animation" | "transition"The type of motion to use, either CSS animations or CSS transitions.
eventType"subject" | "callback"Defines whether the motion events are handled using subject (for Angular) or callback (for all other JS Environment). This controls how motionEndEvent and motionKeyFrameEvent are triggered.
MethodSignatureReturn TypeDescription
get keyFrameNamekeyFrameName: stringstringRetrieves the current keyframe name used for the animation.
set keyFrameNamekeyFrameName(name: string): voidvoidSets a unique keyframe name for the motion animation.
getGroupMotionStategetGroupMotionState(): WMLMotionUIPropertyStateWMLMotionUIPropertyStateReturns the current motion state of the animation group.
motionEndEventmotionEndEvent(state: WMLMotionUIPropertyState): voidvoidFunction called at the end of an animation state.
triggerMotionEndEventtriggerMotionEndEvent(motionState?: WMLMotionUIPropertyState): voidvoidTriggers the motion end event with an optional motion state.
motionKeyFrameEventmotionKeyFrameEvent(keyFrame: string): voidvoidFunction called at specific keyframes during transition animations.
triggerMotionKeyFrameEventtriggerMotionKeyFrameEvent(keyFrame?: string): voidvoidTriggers the motion keyframe event with an optional keyframe.
animationEndanimationEnd(evt?: AnimationEvent): voidvoidHandles the animation end event and updates the motion state accordingly.
transitionEndtransitionEnd(evt?: TransitionEvent): voidvoidHandles the transition end event and updates the motion state accordingly.
openMotionopenMotion(): voidvoidTriggers the opening animation.
closeMotioncloseMotion(): voidvoidTriggers the closing animation.
pauseMotionpauseMotion(): voidvoidPauses the current motion animation or transition.
resumeMotionresumeMotion(): voidvoidResumes the motion animation or transition if it was paused.
injectKeyFramesinjectKeyFrames(): voidvoidInjects custom keyframes for the motion animation into the document’s styles.
updateKeyFramesupdateKeyFrames(props:WMLMotionUIProperty["keyFrameStyles"]): voidvoidInjects custom keyframes for the motion animation into the document’s styles.
createKeyFrameNamecreateKeyFrameName(): voidvoidCreates a unique keyframe name for the motion animation.
checkForDuplicateKeyFrameNamescheckForDuplicateKeyFrameNames(): booleanbooleanChecks for duplicate keyframe names and returns true if a duplicate is found.
setupTransitionssetupTransitions(): voidvoidSets up transitions for motion when using the "transition" type.
getElementgetElement(): ElementElementReturns the HTML element associated with this motion property.
getTransitionPropertiesgetTransitionProperties(): anyanyRetrieves the transition properties of the element.
PropertyTypeDescription
keyframestringCurrent keyframe percentage (e.g., "0%").
currentStylesobjectCurrent styles applied to the element.
transitionEndStylesArray<string>List of CSS properties that have completed transitioning.
playStatestringCurrent play state of the transition (e.g., "running", "paused").
ValueDescription
openThe UI element is fully open.
openingThe UI element is in the process of opening.
closingThe UI element is in the process of closing.
closedThe UI element is fully closed.
PropertyTypeDescription
cpntCThe custom component being wrapped.
propsPProperties associated with the custom component.
PropertyTypeDescription
srcstringSource URL for the image.
altstringAlt text for accessibility purposes.
ariaLabelstringARIA label for screen readers.
ariaExpandedbooleanIndicates whether the image is in an expanded state. Default is false.
NameSignatureDescription
onError(event?: any) => voidHandles the error event when loading the image.
PropertyTypeDescription
runningONE2EbooleanIndicates if an E2E (end-to-end) test is currently running.
dataanyData associated with the E2E test.
PropertyTypeDescription
queueT[]Internal array representing the queue of items.
MethodDescription
enqueue(item: T)Adds an item to the queue.
dequeue()Removes and returns the first item in the queue.
isEmpty()Checks if the queue is empty.
size()Returns the number of items in the queue.
getElementAt(index: number)Retrieves the element at a specific index in the queue.
PropertyTypeDescription
EQUALSstringFilter predicate to check if a value is equal.
STARTSWITHstringFilter predicate to check if a value starts with a string.
ENDSWITHstringFilter predicate to check if a value ends with a string.
CONTAINSstringFilter predicate to check if a value contains a string.

WMLAPIPageRequestModel (WMLAPIPaginationRequestModel is deprecated)

Section titled “WMLAPIPageRequestModel (WMLAPIPaginationRequestModel is deprecated)”
PropertyTypeDescription
fieldsArray<{ value: any }>Array of fields included in the request.
filterArray<{ key: string, value: any, predicate?: WMLAPIPageRequestModelFilterPredicateEnum }>Filter criteria with optional predicates.
sortArray<{ key: string, direction: "ASC" | "DESC" | "" }>Sorting criteria for the request.
cursor{ value?: string, order?: number }Cursor-based pagination options.
pageNumnumberCurrent page number in the pagination request.
pageSizenumberNumber of items per page.
errorOccuredIsPresentbooleanIndicates if an error occurred during the request.
MethodDescription
getIndexInfo()Returns start and end index information for the current page.

WMLAPIPageResponseModel (WMLAPIPaginationResponseModel is deprecated)

Section titled “WMLAPIPageResponseModel (WMLAPIPaginationResponseModel is deprecated)”
PropertyTypeDescription
columnsArray<{ value: string, type?: string }>Array of columns in the response data.
dataArray<any>Array of data returned by the API.
metadata{ startOrderValue?: number }Metadata about the response, including start order values.
pageNumnumberCurrent page number in the response.
pageSizenumberNumber of items per page in the response.
totalPagesnumberTotal number of pages in the response.
totalItemsnumberTotal number of items in the response.
MethodDescription
getIndexInfo()Returns start and end index information for the current page.
calculateCurrentState()Calculates pagination state based on total items and pages.
calcSectionBasedOnPageDetails()Slices data into sections based on page details.
PropertyTypeDescription
origstringOriginal string value to operate on. Default is "myString".
entitySuffixstringSuffix to strip from the original string. Default is an empty string.
prefixstringPrefix derived by splitting orig using entitySuffix.
NameSignatureDescription
camelCase(stripSuffix: boolean, suffix: string) => stringConverts the string to camelCase.
classify(stripSuffix: boolean, suffix: string) => stringConverts the string to a classified format (PascalCase).
capitalize(stripSuffix: boolean, suffix: string) => stringCapitalizes the first letter of the string and lowers the rest.
dasherize(stripSuffix: boolean, suffix: string) => stringConverts the string to a dashed format (kebab-case).
lowerCase(stripSuffix: boolean, suffix: string) => stringConverts the string to lowercase.
pascalCase(stripSuffix: boolean, suffix: string) => stringConverts the string to PascalCase.
upperCase(stripSuffix: boolean, suffix: string) => stringConverts the string to uppercase.
titleCase(stripSuffix: boolean, suffix: string) => stringConverts the string to title case, capitalizing the first letter of each word.
snakeCase(stripSuffix: boolean, suffix: string) => stringConverts the string to snake case (e.g., “my-string” becomes “my_string”).
PropertyTypeDescription
Window | {}The representation of the browser window. Its {} in non-browser environments.
PropertyTypeDescription
Document | {}The representation of the browser document. Its {} in non-browser environments.
Description
WMLDeepPartial<T> is a type that makes all properties of a type T optional, and if a property is an object, it recursively makes all of its properties optional as well. Functions are left unchanged.
ConditionBehavior
T[K] is a functionKeeps the function type intact.
T[K] is an objectRecursively makes all properties of the object optional using WMLDeepPartial.
T[K] is neither a function nor objectThe property becomes optional.
SignatureReturn TypeDescription
updateGlobal(props: WMLDeepPartial<WMLUIGlobal & { propFrameworkName?: string }>)voidUpdates the global WINDMILLCODE object with provided properties and optionally changes framework name. useful if detectframework gets the framework name wrong
PropertyTypeDescription
propFrameworkNamestring (optional)Optionally updates the framework name in the global object.
…restWMLDeepPartial<WMLUIGlobal>All other properties of WMLUIGlobal to be applied globally.
SignatureReturn TypeDescription
getGlobalObject(): anyanyReturns the appropriate global object based on the environment: globalThis, window, global, or self.
PropertyTypeDescription
globalThisanyStandard ECMAScript global object.
windowanyGlobal object for browser environments.
globalanyGlobal object for Node.js environments.
selfanyGlobal object for Web Workers.
ObjectFallback empty object if none of the above globals are available.
SignatureReturn TypeDescription
detectFramework(): WMLUIFrameworkTypeWMLUIFrameworkTypeDetects the framework used in the environment (React, Angular, Vue.js, etc.).
PropertyTypeDescription
myWindowanyRepresents the global window object or an empty object if window is undefined.
Description
Generates a UUID with an optional prefix and returns it as a string.
Description
Returns a function that generates class names based on the provided prefix. If the value is empty, it returns the first part of the prefix.
Description
Returns a function that generates ID names based on the provided prefix. If the value is empty, it returns the first part of the prefix.

fillMissingProperties(source: object, target: object)

Section titled “fillMissingProperties(source: object, target: object)”
Description
Recursively fills missing properties in the target object from the source object. If a property exists in both, the target keeps its value.

updateClassString(obj: any, myClassDefault: string, classListDefault: string)

Section titled “updateClassString(obj: any, myClassDefault: string, classListDefault: string)”
Description
Returns a function to manage the class list of an object. Can add, remove, toggle, or clear class names based on the current state of the object.

toggleClassString(targetClass: string, classList: Array<string>, predicate: Function)

Section titled “toggleClassString(targetClass: string, classList: Array<string>, predicate: Function)”
Description
Toggles a class string on or off within the provided class list. The predicate function determines the action.

generateRandomNumber(range: number, additional: number)

Section titled “generateRandomNumber(range: number, additional: number)”
Description
Generates a random number within the specified range and adds the additional value.
Description
Generates a random hex color code.

selectRandomOptionFromArray(myArray: Array<any>, index?: number)

Section titled “selectRandomOptionFromArray(myArray: Array<any>, index?: number)”
Description
Selects a random element from an array. Optionally, an index can be provided to limit the range.

replaceValuesWithPaths<T>(obj: any, path: string, predicate: Function): T

Section titled “replaceValuesWithPaths<T>(obj: any, path: string, predicate: Function): T”
Description
Recursively replaces values in an object with their corresponding path. The predicate function is used to modify the path value.

WMLUIPropertyDecorator(target: any, key: any)

Section titled “WMLUIPropertyDecorator(target: any, key: any)”
Description
Obsolete decorator for handling UI properties.

added WMLQueue just a regular Queue data structure thats all

added index accessing for WMLQueue

add generateRandomNumber, generateRandomColor,and selectRandomOptionFromArraywml

returned the ref created by addCustomComponent

WMLAPIPaginationRequestModel[“sort”][number][“direction”] enums are now “ASC” |“DESC” | ""

add WMLAPIPaginationResponseModel[“columns”] of type

Array<{
value:string,
type?:string
}>

to provide the developer column information

made WMLAPIPaginationResponseModel[“data”] Array generic

added generateClassPrefix method to functions

  • updated Function signatuire on WMLUIProperty##click so the event option is optional
  • provided WMLNGXTranslateLoader to work with ngx-translate
  • provided WMLModuleForRootProps to work with
  • attempting to deal with an issue where numbers are being returned if no feature is present
  • major change functions##addCustomComponent ref.instance.ngOnInit?.() only gets called if the angular versions is less than 14.1.0
  • minor change
  • added WMLDeepPartial, a utility types that will make all your nested properties optional
  • modified WMLNGXTranslateLoader##i18nLocation to return undefined so numbers dont turn to the indexes of the string
  • MAJOR rename to angular-wml-components-base
  • added fn replaceValuesWithPaths which will recursively go through an object and return a new obj with its values in path representation great for i18n
  • made a fix in genearate random color, where some times 5 digits where returned
  • WMLUIProperty.id by default is "" should help with type should hurt if your code depends on it it is still optional
  • generateClassPrefix prefix parameter supports ="" as default use case,ids and will remove the subsequent _ if its there
  • WMLUIProperty[“id”] default param is ""
  • provided access to WMLOptionsProps to the the container cpnt
  • wmlapipaginationrequestmodel##filter[].value is now the any type %!(EXTRA string=
  • updated package to reflect the version 16.2.80 of @angular/core package),
  • updated package to reflect the version 16.2.80 of @angular/core package,
  • updated package to reflect the version 16.2.90 of @angular/core package,
  • updated package to reflect the version 16.2.91 of @angular/core package
  • provided spyOnForES6Imports, which finally allows you to spyOnFunctions on es6 imports however refer to the stack overflow project on how to configure your angular app in order to get this to work it will not work alone

*in test.ts

...
const { defineProperty } = Object;
Object.defineProperty = function(object, name, meta) {
if (meta.get && !meta.configurable) {
// it might be an ES6 exports object
return defineProperty(object, name, {
...meta,
configurable: true,
});
}
return defineProperty(object, name, meta);
};
...
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
  • tsconfig.spec.json
...
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": [
"jasmine","node"
],
"module": "commonjs"
},
...
  • added mockDeclarations to wmltestutils so users can add their declarations ,
  • updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
  • updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
  • updated package to conform with @windmillcode/angular-wml-components-base for unit testing features
  • update type inference for replaceValuesWithPaths to be more friendly
  • added createBasicObservableError and WMLTestHttpHandler for interceptor test cases and throwing observable errors ,
  • updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
  • updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
  • updated package to conform with @windmillcode/angular-wml-components-base for unit testing features ,
  • updated package to reflect the version ^17.0.2 of @angular/core package
  • added data-source-utils.ts to help with pagination and data source logic ,
  • updated package to reflect the version ^17.0.4 of @angular/core package,
  • updated package to reflect the version ^17.0.5 of @angular/core package,
  • updated package to reflect the version ^17.0.6 of @angular/core package,
  • updated package to reflect the version ^17.0.7 of @angular/core package
  • added WMLAnimateUIProperty as the basis for all entities meant to be animated

,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.0.8 of @angular/core package
  • prevented animation end event from propagating to child events, given the children are not exactly the same as the parent, ,
  • updated package to conform with @windmillcode/angular-wml-components-base
  • added WMLAnimateUIProperty[“helperStyles”] to help animations run more smootly its value is
helperStyles:WMLUIProperty["style"]={
transform:"translate3d(0,0,0)"
}

and you can overwrite it as necessary ,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base
  • added generateIdPrefix ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.1.0 of @angular/core package
  • [BREAKING CHANGE] added WMLAnimateUIProperty.autoOpen, by default animations dont don anything if you need your animations to autoOpen simply go through all your class instances and make the update

,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.1.2 of @angular/core package
  • added toggle functionality for updateClassString ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.1.3 of @angular/core package,
  • updated package to reflect the version ^17.1.3 of @angular/core package,
  • updated package to reflect the version ^17.2.1 of @angular/core package,
  • updated package to reflect the version ^17.2.2 of @angular/core package,
  • updated package to reflect the version ^17.2.2 of @angular/core package,
  • updated package to reflect the version ^17.2.3 of @angular/core package
  • created WMLComponentBaseZero which shortens and hides the complex logic of our WMLComponents
  • Introduced WMLComponentBaseZero, a new base class designed to simplify and encapsulate the complex logic associated with WML components. This enhancement aims to provide a cleaner and more intuitive interface for working with WML components.
  1. Refactored WMLComponentBaseZeroProps:

    • Transitioned from a traditional class-based approach to a mixin-based pattern using WMLComponentBaseZeroPropsMixin. This change is intended to enhance flexibility and reusability across different component implementations.
    • The mixin WMLComponentBaseZeroPropsMixin is now used to dynamically extend a base class, incorporating custom properties and methods essential for WML components.
    • Introduced a new setState method within the mixin, providing a streamlined way to update component state.
  2. Introduced WMLComponentBaseZero:

    • This new base class leverages WMLComponentBaseZeroProps to offer a robust foundation for component development.
    • The constructor now initializes class and ID prefixes if they are provided, enabling more consistent and predictable styling and DOM structure.
    • Enhanced the listenForSetState method to work seamlessly with the new state management approach, ensuring changes are propagated efficiently and reliably.
  • The listenForSetState method now listens to changes from setStateSubj, aligning with the new state management strategy.
  • Destructor (ngOnDestroy) logic has been updated to ensure proper cleanup, reducing the risk of memory leaks and ensuring better resource management.
  • To leverage the new WMLComponentBaseZero, extend your components from this base class and utilize the provided mechanisms for state management and lifecycle handling.
  • The mixin approach offers enhanced customization, allowing developers to inject additional properties or methods as needed.
  • Review the updated implementation details in WMLComponentBaseZero and WMLComponentBaseZeroPropsMixin to fully understand the new component structure and behavior.
  • Test your components thoroughly to ensure compatibility with the new base class and to leverage the improvements in state management and lifecycle handling.

This update signifies our commitment to improving the developer experience and streamlining component development within the WML ecosystem. ,

  • updated package to conform with @windmillcode/angular-wml-components-base
  • [UPDATE] Added a new fields array of type Array<{value:any}> to the WMLAPIPaginationRequestModel class in data-source-utils.ts. This new field is designed to hold additional data fields that may be required during pagination requests.

  • [PATCH] Modified the animationEnd method in the WMLAnimateUIProperty class within models.ts. The condition now removes any spaces from this.animationClass before checking its presence in the event target’s className. This ensures the animation end logic accurately identifies the target regardless of space characters in the class name. ,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.2.4 of @angular/core package
  • [PATCH] In wml-components-base/src/lib/component-base.ts, added a new ReplaySubject called setStateEvent, which enhances state management within the component. Also adjusted the RxJS pipe in the setState method to include an additional operation that emits the updated state to setStateEvent, improving the reactivity of the component state.

,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.3.0 of @angular/core package ,
  • updated package to reflect the version ^17.3.1 of @angular/core package,
  • updated package to reflect the version ^17.3.2 of @angular/core package,
  • updated package to reflect the version ^17.3.3 of @angular/core package,
  • updated package to reflect the version ^17.3.4 of @angular/core package
  • added onError to wmlimage prperty ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.3.5 of @angular/core package
  • [UPDATE] ensure dervied class passed type to base classes Updated models.ts by add the WMLConstructorDecorator function, to streamline and optimize object initialization practices within the framework.
constructor(props:Partial<T>={}){
let origProps = Object.entries(props).filter(([key, val]) => {
return !key.startsWith('param');
});
Object.assign(this, { ...Object.fromEntries(origProps) });
}

so as not to overwhelm developers to use

@WMLConstructorDecorator
export class T {
constructor(props: Partial<T> = {}) { }
}

,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^17.3.6 of @angular/core package,
  • updated package to reflect the version ^17.3.7 of @angular/core package,
  • updated package to reflect the version ^17.3.7 of @angular/core package,
  • updated package to reflect the version ^17.3.8 of @angular/core package,
  • updated package to reflect the version ^17.3.9 of @angular/core package,
  • updated package to reflect the version ^18.0.0 of @angular/core package,
  • updated package to reflect the version ^18.0.0 of @angular/core package

[UPDATE] Modified replaceValuesWithPaths function in functions.ts to include a predicate for custom assignments.

File: functions.ts Section: replaceValuesWithPaths Function: replaceValuesWithPaths() ,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^18.0.1 of @angular/core package ,
  • updated package to reflect the version ^18.0.2 of @angular/core package,
  • updated package to reflect the version ^18.0.3 of @angular/core package,
  • updated package to reflect the version ^18.0.3 of @angular/core package,
  • updated package to reflect the version ^18.0.3 of @angular/core package
  • [FIX] projects/wml-components-base/src/lib/models.ts - WMLConstructorDecorator function: Added props to this.wmlInit?.(props). This means developers can now pass props to wmlInit. ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^18.0.5 of @angular/core package,
  • updated package to reflect the version ^18.0.6 of @angular/core package,
  • updated package to reflect the version ^18.1.0 of @angular/core package,
  • updated package to reflect the version ^18.1.0 of @angular/core package,
  • updated package to reflect the version ^18.1.0 of @angular/core package,
  • updated package to reflect the version ^18.1.0 of @angular/core package,
  • updated package to reflect the version ^18.1.0 of @angular/core package,
  • updated package to reflect the version ^18.1.0 of @angular/core package
  • [FIX] fixed an error with WMLConstructorDecorator where WMLInit was not being called ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to reflect the version ^18.1.1 of @angular/core package,
  • updated package to reflect the version ^18.1.2 of @angular/core package

7/27/2024 02:15:42 PM EST

[update] WMLRoute now extends WMLView in models.ts. If you were using WMLRoute, you now have access to WMLView’s properties, like cdref.

[update] Added new properties link and routerLink to WMLRoute in models.ts. This gives more flexibility for routing in your components.

[UPDATE] Changed WMLImage class to extend WMLRoute instead of WMLUIProperty in models.ts. This means WMLImage now includes routing properties route, link, and routerLink as well as cdref from WMLView ,

  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base
  • [MAJOR BREAKING CHANGES]
  • WMLUIProperty id attribute is undefined by default this is for accessbility and QA so values are not all defined with "" ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base ,
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • [BREAKING CHANGE] removed WMLButton and WMLButton2 use WMLButtonOneProps for WMLButton and WMLButtonZeroProps for WMLButton2
  • updated package to reflect the version 18.2.0 of @angular/core package
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to reflect the version 18.2.1 of @angular/core package
  • updated package to reflect the version 18.2.2 of @angular/core package

[BREAKING CHANGE] projects/wml-components-base/src/lib/models.ts WMLAnimateUIProperty logic has changed to become more compact. Removed animationClass,beginOpenStyles beginCloseStyles endOpenStyles endCloseStyles animationClass , now using keyFrameName and keyFrameStyles instead. Your animations might break if you were relying on the class name. Update your code to use keyFrameName.

[UPDATE] projects/wml-components-base/src/lib/models.ts Added keyFrameName to name your keyframe. Every keyframe name must be unique. If you don’t follow this rule, you’ll get an error.

[UPDATE] projects/wml-components-base/src/lib/models.ts WMLAnimateUIProperty has injectKeyFrames method now generates and inserts keyframes based on keyFrameName.

[UPDATE] IF WMLAnimateUIProperty.keyFrameName is left out an internal one is generated

  • [BREAKING CHANGE] WMLAnimateUIProperty is now WMLMotionUIProperty and anywhere you see animate on the class (careful not to confuse with css) change to motion
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to reflect the version 18.2.3 of @angular/core package
  • [BREAKING CHANGE] seperated angular features from core library to angular-wml-components-base moving WMLComponentBaseZeroPropsMixin, WMLComponentBaseZeroProps, WMLComponentBaseZero,addCustomComponent, WMLNGXTranslateLoader,WMLTestUtils to the angular base library deleting WMLModuleForRootProps

[UPDATE] Added new global object management functions updateGlobal and getGlobalObject in functions.ts. This gives developers access to globally update and retrieve the framework’s global object easily.

[UPDATE] Added a new WMLUIGlobal class in models.ts to represent the global configuration options for the library

[FIX] All references to WMLUIProperty.framework have been replaced with getGlobalObject().WINDMILLCODE.framework.name. Developers should now use the global framework object instead of relying on the static WMLUIProperty.framework.

  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • updated package to conform with @windmillcode/angular-wml-components-base
  • [UPDATE] added css transitions and pause & play functionaity to WMLMotionUIProperty
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to reflect the version 18.2.4 of @angular/core package
  • [FIX] fixed a bug where if the developer did not provided the keyframes in order the css transition would not follow the order according to the keyframe flags and even break
  • [UPDATE] New helper function updateKeyFrames one simple step now to update your keyframes
  • [BREAKING CHANGE] - chaned spelling error from injectKeyframes to injectKeyFrames IN WMLMotionUIProperty
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to reflect the version 18.2.5 of @angular/core package
  • updated package to reflect the version 18.2.6 of @angular/core package
  • updated package to reflect the version 18.2.7 of @angular/core package

[UPDATE] onError property updated in projects/wml-components-base/src/lib/models.ts Previously onError was optional. Now it’s an empty function by default. This means if onError is not set, it still exists as a function and won’t cause issues. Developers don’t have to worry about onError being undefined anymore.

[UPDATE] projects/wml-components-base/src/lib/models.ts added WMLUri class, which lets you build URLs with scheme, host, port, path, query, and fragment. You can now use this to manage URLs and get domain or fqdn directly.

[PATCH] In WMLMotionUIProperty inside projects/wml-components-base/src/lib/models.ts, added a new eventType property to handle either “subject” or “callback” events. If you’re dealing with frameworks like Angular, expect this to default to “subject.” but you can override at your covenience just know that you cant use both becuase internally there would be a conflict with the management of static variables between the two classes

[UPDATE] The triggerMotionEndEvent and triggerMotionKeyFrameEvent functions now use the eventType to decide how to handle events, so make sure you adjust accordingly if your app isn’t Angular-based. in WMLMotionUIProperty

[UPDATE] Deprecated comments on cdref getter and setter were removed in WMLView inside projects/wml-components-base/src/lib/models.ts. You won’t see any more notes about using angular.cdref—just use it directly now.

  • updated package to reflect the version 18.2.8 of @angular/core package
  • updated package to reflect the version 18.2.8 of @angular/core package
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to reflect the version 19.0.2 of @angular/core package
  • updated package to reflect the version 19.0.3 of @angular/core package
  • updated package to reflect the version 19.0.4 of @angular/core package
  • updated package to reflect the version 19.0.5 of @angular/core package
  • updated package to conform with @windmillcode/wml-components-base
  • [MAJOR UPDATE] updated packge to support SSR enviroments ensured that library was compatible with SSR by providing global objects WML_WINDOW ,WML_DOCUMENT for browser global objects window and document
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to reflect the version 19.0.6 of @angular/core package
  • updated package to reflect the version 19.0.7 of @angular/core package
  • updated package to reflect the version 19.1.0 of @angular/core package
  • updated package to reflect the version 19.1.1 of @angular/core package
  • updated package to reflect the version 19.1.2 of @angular/core package
  • updated package to reflect the version 19.1.3 of @angular/core package
  • update package to support the react native ecosystem
  • [UPDATE] Added the WMLStringObject class. This class includes utility methods like camelCase, classify, capitalize, dasherize, lowercase, pascalCase, upperCase, and titleCase for manipulating strings. Developers can now import and use these in their projects.
  • [UPDATE] Added snakeCase method to WMLStringObject
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to reflect the version 19.1.4 of @angular/core package
  • updated package to reflect the version 19.1.5 of @angular/core package
  • updated package to reflect the version 19.1.6 of @angular/core package
  • updated package to reflect the version 19.1.7 of @angular/core package
  • updated package to reflect the version 19.1.8 of @angular/core package
  • updated package to reflect the version 19.2.0 of @angular/core package
  • updated package to reflect the version 19.2.1 of @angular/core package
  • updated package to reflect the version 19.2.2 of @angular/core package
  • updated package to reflect the version 19.2.3 of @angular/core package
  • updated package to reflect the version 19.2.4 of @angular/core package
  • updated package to reflect the version 19.2.5 of @angular/core package
  • [UPDATE] deprecated WMLAPIPaginationRequestModel and WMLAPIPaginationResponseModel in favor of WMLPageRequestModel and WMLAPIPageResponseModel
  • [BREAKING CHANGE] Changed default pageSize from 0 to 5 in WMLAPIPageResponseModel - affects all pagination instances that don’t explicitly set pageSize
  • changed logic of functions in WMLAPIPageResponseModel investigate and modify your code as necessary
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to conform with @windmillcode/wml-components-base
  • updated package to reflect the version 19.2.8 of @angular/core package
  • updated package to reflect the version 19.2.9 of @angular/core package
  • updated package to reflect the version 19.2.10 of @angular/core package