eligius 3.0.0 → 3.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/dist/configuration-api.d.mts +17 -2
- package/dist/index.d.mts +22 -3
- package/dist/index.mjs +52 -2
- package/dist/index.mjs.map +1 -1
- package/dist/metadata.d.mts +21 -2
- package/dist/metadata.mjs +51 -1
- package/dist/metadata.mjs.map +1 -1
- package/package.json +1 -1
package/dist/metadata.d.mts
CHANGED
|
@@ -3190,6 +3190,21 @@ declare class DOMEventListenerController$1 implements IController<IDOMEventListe
|
|
|
3190
3190
|
detach(_eventbus: IEventbus): void;
|
|
3191
3191
|
}
|
|
3192
3192
|
//#endregion
|
|
3193
|
+
//#region src/operation/metadata/parameter-types.d.ts
|
|
3194
|
+
/**
|
|
3195
|
+
* Every parameter type the operation and controller metadata may use. The
|
|
3196
|
+
* metadata generator fails on a type name that is not in this list.
|
|
3197
|
+
*
|
|
3198
|
+
* `RegExp` and the DOM node types (`Element`, `Text`, `Comment`, `Document`,
|
|
3199
|
+
* `DocumentFragment`) are the names the generator emits for `string | RegExp`
|
|
3200
|
+
* and `string | JQuery.Node` properties.
|
|
3201
|
+
*
|
|
3202
|
+
* Kept out of `types.ts`: the generated metadata index re-exports `types.ts`
|
|
3203
|
+
* into the `metadata` namespace, whose consumers expect only metadata
|
|
3204
|
+
* functions there.
|
|
3205
|
+
*/
|
|
3206
|
+
export declare const PARAMETER_TYPES: readonly ["ParameterType:htmlElementName", "ParameterType:className", "ParameterType:selector", "ParameterType:string", "ParameterType:number", "ParameterType:object", "ParameterType:boolean", "ParameterType:array", "ParameterType:eventTopic", "ParameterType:eventName", "ParameterType:systemName", "ParameterType:actionName", "ParameterType:controllerName", "ParameterType:dimensions", "ParameterType:dimensionsModifier", "ParameterType:url", "ParameterType:htmlContent", "ParameterType:labelId", "ParameterType:ImagePath", "ParameterType:QuadrantPosition", "ParameterType:jQuery", "ParameterType:expression", "ParameterType:mathfunction", "ParameterType:cssProperties", "ParameterType:function", "ParameterType:Date", "ParameterType:languagecode", "ParameterType:RegExp", "ParameterType:Element", "ParameterType:Text", "ParameterType:Comment", "ParameterType:Document", "ParameterType:DocumentFragment"];
|
|
3207
|
+
//#endregion
|
|
3193
3208
|
//#region src/operation/metadata/types.d.ts
|
|
3194
3209
|
export type THasRequired = {
|
|
3195
3210
|
required?: boolean;
|
|
@@ -3222,7 +3237,11 @@ export interface IOperationMetadata<T> {
|
|
|
3222
3237
|
outputProperties?: TPropertiesMetadata<T>;
|
|
3223
3238
|
}
|
|
3224
3239
|
export type TParameterTypesDelimited = `${TParameterTypes}` | `${TParameterTypes}|${string}`;
|
|
3225
|
-
export type TParameterTypes =
|
|
3240
|
+
export type TParameterTypes = (typeof PARAMETER_TYPES)[number];
|
|
3241
|
+
/**
|
|
3242
|
+
* A parameter type without its `ParameterType:` prefix, e.g. `className`.
|
|
3243
|
+
*/
|
|
3244
|
+
export type TParameterTypeName = TParameterTypes extends `ParameterType:${infer Name}` ? Name : never;
|
|
3226
3245
|
export type TOperationCategory = 'DOM' | 'Controller' | 'Data' | 'Control Flow' | 'Animation' | 'Form' | 'Scroll' | 'Focus' | 'Array' | 'String' | 'Text' | 'Date' | 'HTTP' | 'Action' | 'Utility' | 'Accessibility';
|
|
3227
3246
|
//#endregion
|
|
3228
3247
|
//#region src/controllers/metadata/types.d.ts
|
|
@@ -3637,7 +3656,7 @@ declare function wait(): IOperationMetadata<IWaitOperationData>;
|
|
|
3637
3656
|
//#region src/operation/metadata/when.d.ts
|
|
3638
3657
|
declare function when(): IOperationMetadata<IWhenOperationData>;
|
|
3639
3658
|
declare namespace index_d_exports$2 {
|
|
3640
|
-
export { IOperationMetadata, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, THasDescription, THasErased, THasRequired, TOperationCategory, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, announceToScreenReader, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, clearStorage, compareDate, concatenateStrings, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, filterArray, findInArray, forEach, formatDate, formatText, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isElementInViewport, loadFromStorage, loadJson, log, mapArray, math, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, replaceString, replaceText, requestAction, saveToStorage, scrollToElement, scrollToPosition, selectElement, setData, setElementAttributes, setElementContent, setFocus, setFormValue, setGlobalData, setOperationData, setStyle, setVariable, sortArray, splitString, startAction, substringText, toggleClass, toggleElement, toggleFormElement, validateForm, wait, when };
|
|
3659
|
+
export { IOperationMetadata, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, THasDescription, THasErased, THasRequired, TOperationCategory, TParameterTypeName, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, announceToScreenReader, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, clearStorage, compareDate, concatenateStrings, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, filterArray, findInArray, forEach, formatDate, formatText, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isElementInViewport, loadFromStorage, loadJson, log, mapArray, math, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, replaceString, replaceText, requestAction, saveToStorage, scrollToElement, scrollToPosition, selectElement, setData, setElementAttributes, setElementContent, setFocus, setFormValue, setGlobalData, setOperationData, setStyle, setVariable, sortArray, splitString, startAction, substringText, toggleClass, toggleElement, toggleFormElement, validateForm, wait, when };
|
|
3641
3660
|
}
|
|
3642
3661
|
//#endregion
|
|
3643
3662
|
export { index_d_exports as ctrlmetadata, index_d_exports$1 as eventmetadata, index_d_exports$2 as metadata };
|
package/dist/metadata.mjs
CHANGED
|
@@ -2749,5 +2749,55 @@ var metadata_exports$2 = /* @__PURE__ */ __exportAll({
|
|
|
2749
2749
|
});
|
|
2750
2750
|
|
|
2751
2751
|
//#endregion
|
|
2752
|
-
|
|
2752
|
+
//#region src/operation/metadata/parameter-types.ts
|
|
2753
|
+
/**
|
|
2754
|
+
* Every parameter type the operation and controller metadata may use. The
|
|
2755
|
+
* metadata generator fails on a type name that is not in this list.
|
|
2756
|
+
*
|
|
2757
|
+
* `RegExp` and the DOM node types (`Element`, `Text`, `Comment`, `Document`,
|
|
2758
|
+
* `DocumentFragment`) are the names the generator emits for `string | RegExp`
|
|
2759
|
+
* and `string | JQuery.Node` properties.
|
|
2760
|
+
*
|
|
2761
|
+
* Kept out of `types.ts`: the generated metadata index re-exports `types.ts`
|
|
2762
|
+
* into the `metadata` namespace, whose consumers expect only metadata
|
|
2763
|
+
* functions there.
|
|
2764
|
+
*/
|
|
2765
|
+
const PARAMETER_TYPES = [
|
|
2766
|
+
"ParameterType:htmlElementName",
|
|
2767
|
+
"ParameterType:className",
|
|
2768
|
+
"ParameterType:selector",
|
|
2769
|
+
"ParameterType:string",
|
|
2770
|
+
"ParameterType:number",
|
|
2771
|
+
"ParameterType:object",
|
|
2772
|
+
"ParameterType:boolean",
|
|
2773
|
+
"ParameterType:array",
|
|
2774
|
+
"ParameterType:eventTopic",
|
|
2775
|
+
"ParameterType:eventName",
|
|
2776
|
+
"ParameterType:systemName",
|
|
2777
|
+
"ParameterType:actionName",
|
|
2778
|
+
"ParameterType:controllerName",
|
|
2779
|
+
"ParameterType:dimensions",
|
|
2780
|
+
"ParameterType:dimensionsModifier",
|
|
2781
|
+
"ParameterType:url",
|
|
2782
|
+
"ParameterType:htmlContent",
|
|
2783
|
+
"ParameterType:labelId",
|
|
2784
|
+
"ParameterType:ImagePath",
|
|
2785
|
+
"ParameterType:QuadrantPosition",
|
|
2786
|
+
"ParameterType:jQuery",
|
|
2787
|
+
"ParameterType:expression",
|
|
2788
|
+
"ParameterType:mathfunction",
|
|
2789
|
+
"ParameterType:cssProperties",
|
|
2790
|
+
"ParameterType:function",
|
|
2791
|
+
"ParameterType:Date",
|
|
2792
|
+
"ParameterType:languagecode",
|
|
2793
|
+
"ParameterType:RegExp",
|
|
2794
|
+
"ParameterType:Element",
|
|
2795
|
+
"ParameterType:Text",
|
|
2796
|
+
"ParameterType:Comment",
|
|
2797
|
+
"ParameterType:Document",
|
|
2798
|
+
"ParameterType:DocumentFragment"
|
|
2799
|
+
];
|
|
2800
|
+
|
|
2801
|
+
//#endregion
|
|
2802
|
+
export { PARAMETER_TYPES, metadata_exports as ctrlmetadata, metadata_exports$1 as eventmetadata, metadata_exports$2 as metadata };
|
|
2753
2803
|
//# sourceMappingURL=metadata.mjs.map
|