native-document 1.0.69 → 1.0.70
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/.npmrc.example +0 -0
- package/components.js +0 -0
- package/dist/native-document.dev.js +4 -2
- package/dist/native-document.dev.js.map +1 -1
- package/dist/native-document.min.js +1 -1
- package/hrm.js +0 -0
- package/package.json +1 -1
- package/src/data/ObservableArray.js +1 -0
- package/src/data/ObservableWhen.js +0 -0
- package/src/devtools/hrm/ComponentRegistry.js +0 -0
- package/src/devtools/hrm/hrm.hook.template.js +0 -0
- package/src/devtools/hrm/hrm.orbservable.hook.template.js +0 -0
- package/src/devtools/hrm/nd-vite-hot-reload.js +0 -0
- package/src/devtools/hrm/transformComponent.js +0 -0
- package/src/elements/control/show-when.js +0 -0
- package/src/utils/filters/date.js +2 -0
- package/src/utils/filters/index.js +0 -0
- package/src/utils/filters/standard.js +1 -1
- package/src/utils/filters/strings.js +0 -0
- package/src/utils/filters/utils.js +0 -0
- package/src/utils/memoize.js +0 -0
- package/src/utils/service.js +0 -0
- package/types/filters/dates.d.ts +43 -0
- package/types/filters/standard.d.ts +71 -0
- package/types/filters/strings.d.ts +21 -0
- package/types/filters/types.d.ts +20 -0
- package/types/memoize.d.ts +0 -0
- package/types/native-fetch.d.ts +0 -0
- package/types/observable.d.ts +6 -0
- package/types/service.d.ts +0 -0
package/.npmrc.example
CHANGED
|
File without changes
|
package/components.js
ADDED
|
File without changes
|
|
@@ -2394,7 +2394,7 @@ var NativeDocument = (function (exports) {
|
|
|
2394
2394
|
);
|
|
2395
2395
|
}
|
|
2396
2396
|
|
|
2397
|
-
function
|
|
2397
|
+
function inArray(observableOrArray){
|
|
2398
2398
|
return createFilter(observableOrArray, (value, arr) => arr.includes(value));
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
@@ -2541,12 +2541,14 @@ var NativeDocument = (function (exports) {
|
|
|
2541
2541
|
|
|
2542
2542
|
const timeAfter = (observableOrValue) => {
|
|
2543
2543
|
return createFilter(observableOrValue, (value, target) => {
|
|
2544
|
+
if (!value || !target) return false;
|
|
2544
2545
|
return getSecondsOfDay(value) > getSecondsOfDay(target);
|
|
2545
2546
|
});
|
|
2546
2547
|
};
|
|
2547
2548
|
|
|
2548
2549
|
const timeBefore = (observableOrValue) => {
|
|
2549
2550
|
return createFilter(observableOrValue, (value, target) => {
|
|
2551
|
+
if (!value || !target) return false;
|
|
2550
2552
|
return getSecondsOfDay(value) < getSecondsOfDay(target);
|
|
2551
2553
|
});
|
|
2552
2554
|
};
|
|
@@ -2625,7 +2627,6 @@ var NativeDocument = (function (exports) {
|
|
|
2625
2627
|
|
|
2626
2628
|
var index = /*#__PURE__*/Object.freeze({
|
|
2627
2629
|
__proto__: null,
|
|
2628
|
-
In: In,
|
|
2629
2630
|
all: all,
|
|
2630
2631
|
and: and,
|
|
2631
2632
|
any: any,
|
|
@@ -2650,6 +2651,7 @@ var NativeDocument = (function (exports) {
|
|
|
2650
2651
|
greaterThanOrEqual: greaterThanOrEqual,
|
|
2651
2652
|
gt: gt,
|
|
2652
2653
|
gte: gte,
|
|
2654
|
+
inArray: inArray,
|
|
2653
2655
|
includes: includes,
|
|
2654
2656
|
isEmpty: isEmpty,
|
|
2655
2657
|
isNotEmpty: isNotEmpty,
|