@omnia/fx-models 8.0.105-vnext → 8.0.107-vnext
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.
@@ -1,5 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
//have issue with guidvalue can't auto cast to string if have more extension method here.
|
4
|
+
// declare global {
|
5
|
+
// interface String {
|
6
|
+
// equals?: {
|
7
|
+
// component<TElement = typeof omfx>(cb: (elements: TElement) => any): boolean;
|
8
|
+
// }
|
9
|
+
// }
|
10
|
+
// }
|
3
11
|
const _equalsObject = {};
|
4
12
|
// only add extension methods when running in browser, not in node.js
|
5
13
|
if (globalThis.omnia) {
|
@@ -11,4 +19,19 @@ if (globalThis.omnia) {
|
|
11
19
|
configurable: false,
|
12
20
|
enumerable: false
|
13
21
|
});
|
22
|
+
// Object.defineProperty(String.prototype["equals"], "element", {
|
23
|
+
// value: function () {
|
24
|
+
// return function (cb: (elements) => any) {
|
25
|
+
// const elementName = cb(new Proxy({}, {
|
26
|
+
// get(target, key: string) {
|
27
|
+
// return key;
|
28
|
+
// }
|
29
|
+
// }) as any);
|
30
|
+
// return this.toString().replace(/-/g, "").toLowerCase().indexof(elementName.toLowerCase()) > -1;
|
31
|
+
// };
|
32
|
+
// },
|
33
|
+
// writable: false,
|
34
|
+
// configurable: false,
|
35
|
+
// enumerable: false
|
36
|
+
// });
|
14
37
|
}
|
@@ -63,7 +63,7 @@ export declare const RatioTypeDefinitions: readonly ["default", "landscape"];
|
|
63
63
|
export type RatioTypes = typeof RatioTypeDefinitions[number];
|
64
64
|
export declare const RatioTypesName = "RatioTypes";
|
65
65
|
/** List */
|
66
|
-
export declare const ListItemVariantDefinitions: readonly ["default", "delete"];
|
66
|
+
export declare const ListItemVariantDefinitions: readonly ["default", "delete", "navigation"];
|
67
67
|
export type ListItemVariants = typeof ListItemVariantDefinitions[number];
|
68
68
|
export declare const ListItemVariantsName = "ListItemVariants";
|
69
69
|
export declare const ListTypeDefinitions: readonly ["default", "navigation", "options"];
|
@@ -48,7 +48,7 @@ exports.IconSizesName = "OIconSizes";
|
|
48
48
|
exports.RatioTypeDefinitions = ["default", "landscape"];
|
49
49
|
exports.RatioTypesName = "RatioTypes";
|
50
50
|
/** List */
|
51
|
-
exports.ListItemVariantDefinitions = ["default", "delete"];
|
51
|
+
exports.ListItemVariantDefinitions = ["default", "delete", "navigation"];
|
52
52
|
exports.ListItemVariantsName = "ListItemVariants";
|
53
53
|
exports.ListTypeDefinitions = ["default", "navigation", "options"];
|
54
54
|
exports.ListTypesName = "ListTypes";
|