inferred-types 0.55.8 → 0.55.10
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/modules/inferred-types/dist/index.cjs +17 -5
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.ts +64 -21
- package/modules/inferred-types/dist/index.js +14 -5
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +19 -5
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.ts +53 -2
- package/modules/runtime/dist/index.js +16 -5
- package/modules/runtime/dist/index.js.map +1 -1
- package/modules/types/dist/index.d.ts +10 -18
- package/package.json +1 -1
|
@@ -56,6 +56,7 @@ __export(index_exports, {
|
|
|
56
56
|
createObjectMap: () => createObjectMap,
|
|
57
57
|
createTypeToken: () => createTypeToken,
|
|
58
58
|
cssColor: () => cssColor,
|
|
59
|
+
cssFromDefinition: () => cssFromDefinition,
|
|
59
60
|
csv: () => csv,
|
|
60
61
|
defineCss: () => defineCss,
|
|
61
62
|
defineObj: () => defineObj,
|
|
@@ -70,6 +71,7 @@ __export(index_exports, {
|
|
|
70
71
|
entries: () => entries,
|
|
71
72
|
errCondition: () => errCondition,
|
|
72
73
|
filter: () => filter,
|
|
74
|
+
filterEmpty: () => filterEmpty,
|
|
73
75
|
find: () => find,
|
|
74
76
|
fnMeta: () => fnMeta,
|
|
75
77
|
fromDefineObject: () => fromDefineObject,
|
|
@@ -260,6 +262,7 @@ __export(index_exports, {
|
|
|
260
262
|
isNewsUrl: () => isNewsUrl,
|
|
261
263
|
isNikeUrl: () => isNikeUrl,
|
|
262
264
|
isNorwegianNewsUrl: () => isNorwegianNewsUrl,
|
|
265
|
+
isNotEmpty: () => isNotEmpty,
|
|
263
266
|
isNotNull: () => isNotNull,
|
|
264
267
|
isNothing: () => isNothing,
|
|
265
268
|
isNull: () => isNull,
|
|
@@ -2690,15 +2693,15 @@ ${frameToCss(frames)}
|
|
|
2690
2693
|
}
|
|
2691
2694
|
|
|
2692
2695
|
// src/css/defineCss.ts
|
|
2693
|
-
function
|
|
2694
|
-
|
|
2695
|
-
`).join("");
|
|
2696
|
+
function cssFromDefinition(defn, indent = "", inline = false) {
|
|
2697
|
+
const nextDefn = inline ? " " : "\n";
|
|
2698
|
+
return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}${nextDefn}`).join("");
|
|
2696
2699
|
}
|
|
2697
2700
|
function defineCss(defn) {
|
|
2698
2701
|
const fn2 = (selector) => {
|
|
2699
2702
|
return selector ? `${selector} {
|
|
2700
|
-
${
|
|
2701
|
-
` :
|
|
2703
|
+
${cssFromDefinition(defn, " ")}}
|
|
2704
|
+
` : cssFromDefinition(defn);
|
|
2702
2705
|
};
|
|
2703
2706
|
return createFnWithProps(
|
|
2704
2707
|
fn2,
|
|
@@ -3141,6 +3144,11 @@ function createFixedLengthArray(content, quantity) {
|
|
|
3141
3144
|
// src/lists/filter.ts
|
|
3142
3145
|
var filter = "NOT READY";
|
|
3143
3146
|
|
|
3147
|
+
// src/lists/filterEmpty.ts
|
|
3148
|
+
function filterEmpty(...val) {
|
|
3149
|
+
return val.filter((i) => isNotEmpty(i));
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3144
3152
|
// src/lists/find.ts
|
|
3145
3153
|
function find(list2, deref = null) {
|
|
3146
3154
|
return (comparator) => {
|
|
@@ -5023,6 +5031,9 @@ function isEmail(val) {
|
|
|
5023
5031
|
function isEmpty(val) {
|
|
5024
5032
|
return isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && val.length === 0;
|
|
5025
5033
|
}
|
|
5034
|
+
function isNotEmpty(val) {
|
|
5035
|
+
return !(isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && (val?.length === 0 || val?.length === void 0));
|
|
5036
|
+
}
|
|
5026
5037
|
|
|
5027
5038
|
// src/type-guards/isErrorCondition.ts
|
|
5028
5039
|
function isErrorCondition(value, kind = null) {
|
|
@@ -6168,6 +6179,7 @@ function asVueRef(value) {
|
|
|
6168
6179
|
createObjectMap,
|
|
6169
6180
|
createTypeToken,
|
|
6170
6181
|
cssColor,
|
|
6182
|
+
cssFromDefinition,
|
|
6171
6183
|
csv,
|
|
6172
6184
|
defineCss,
|
|
6173
6185
|
defineObj,
|
|
@@ -6182,6 +6194,7 @@ function asVueRef(value) {
|
|
|
6182
6194
|
entries,
|
|
6183
6195
|
errCondition,
|
|
6184
6196
|
filter,
|
|
6197
|
+
filterEmpty,
|
|
6185
6198
|
find,
|
|
6186
6199
|
fnMeta,
|
|
6187
6200
|
fromDefineObject,
|
|
@@ -6372,6 +6385,7 @@ function asVueRef(value) {
|
|
|
6372
6385
|
isNewsUrl,
|
|
6373
6386
|
isNikeUrl,
|
|
6374
6387
|
isNorwegianNewsUrl,
|
|
6388
|
+
isNotEmpty,
|
|
6375
6389
|
isNotNull,
|
|
6376
6390
|
isNothing,
|
|
6377
6391
|
isNull,
|